From 7f3f2289d8314f3564fe7f1e29af9df2de0ebb7c Mon Sep 17 00:00:00 2001 From: helenye-stripe <111009531+helenye-stripe@users.noreply.github.com> Date: Thu, 23 Oct 2025 10:19:16 -0700 Subject: [PATCH 1/5] Turn off rubocop format on save (#1711) --- .vscode/settings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 1553da29..b8b9e5f6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -8,5 +8,5 @@ // Rubocop settings "ruby.rubocop.configFilePath": ".rubocop.yml", - "ruby.rubocop.onSave": true + "ruby.rubocop.onSave": false } From 1fbf42e7db24e80b0bc1c84deff8ada7f662b378 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 27 Oct 2025 23:28:50 +0000 Subject: [PATCH 2/5] Update generated code (#1700) * Update generated code for v2050 and * Update generated code for v2093 and * Update generated code for v2095 and * Update generated code for v2096 and * Update generated code for v2099 and --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com> --- API_VERSION | 2 +- OPENAPI_VERSION | 2 +- lib/stripe/api_version.rb | 2 +- ...ling_meter_error_report_triggered_event.rb | 10 +- .../v1_billing_meter_no_meter_found_event.rb | 10 +- lib/stripe/object_types.rb | 3 + lib/stripe/params.rb | 11 + .../params/account_capability_list_params.rb | 2 +- .../account_capability_retrieve_params.rb | 2 +- .../account_capability_update_params.rb | 2 +- lib/stripe/params/account_create_params.rb | 253 +- lib/stripe/params/account_delete_params.rb | 2 +- .../account_external_account_create_params.rb | 8 +- .../account_external_account_delete_params.rb | 2 +- .../account_external_account_list_params.rb | 2 +- ...ccount_external_account_retrieve_params.rb | 2 +- .../account_external_account_update_params.rb | 6 +- .../params/account_link_create_params.rb | 4 +- lib/stripe/params/account_list_params.rb | 4 +- .../account_login_link_create_params.rb | 2 +- .../params/account_person_create_params.rb | 38 +- .../params/account_person_delete_params.rb | 2 +- .../params/account_person_list_params.rb | 4 +- .../params/account_person_retrieve_params.rb | 2 +- .../params/account_person_update_params.rb | 38 +- lib/stripe/params/account_persons_params.rb | 4 +- lib/stripe/params/account_reject_params.rb | 2 +- .../params/account_retrieve_current_params.rb | 2 +- lib/stripe/params/account_retrieve_params.rb | 2 +- .../params/account_session_create_params.rb | 80 +- lib/stripe/params/account_update_params.rb | 245 +- .../params/apple_pay_domain_create_params.rb | 2 +- .../params/apple_pay_domain_delete_params.rb | 2 +- .../params/apple_pay_domain_list_params.rb | 2 +- .../apple_pay_domain_retrieve_params.rb | 2 +- .../params/application_fee_list_params.rb | 4 +- .../application_fee_refund_create_params.rb | 2 +- .../application_fee_refund_list_params.rb | 2 +- .../application_fee_refund_retrieve_params.rb | 2 +- .../application_fee_refund_update_params.rb | 2 +- .../params/application_fee_retrieve_params.rb | 2 +- .../params/apps/secret_create_params.rb | 4 +- .../params/apps/secret_delete_where_params.rb | 4 +- lib/stripe/params/apps/secret_find_params.rb | 4 +- lib/stripe/params/apps/secret_list_params.rb | 4 +- lib/stripe/params/balance_retrieve_params.rb | 2 +- .../balance_settings_retrieve_params.rb | 2 +- .../params/balance_settings_update_params.rb | 10 +- .../params/balance_transaction_list_params.rb | 4 +- .../balance_transaction_retrieve_params.rb | 2 +- .../params/billing/alert_activate_params.rb | 2 +- .../params/billing/alert_archive_params.rb | 2 +- .../params/billing/alert_create_params.rb | 6 +- .../params/billing/alert_deactivate_params.rb | 2 +- .../params/billing/alert_list_params.rb | 2 +- .../params/billing/alert_retrieve_params.rb | 2 +- .../credit_balance_summary_retrieve_params.rb | 8 +- .../credit_balance_transaction_list_params.rb | 2 +- ...dit_balance_transaction_retrieve_params.rb | 2 +- .../billing/credit_grant_create_params.rb | 14 +- .../billing/credit_grant_expire_params.rb | 2 +- .../billing/credit_grant_list_params.rb | 2 +- .../billing/credit_grant_retrieve_params.rb | 2 +- .../billing/credit_grant_update_params.rb | 2 +- .../billing/credit_grant_void_grant_params.rb | 2 +- .../params/billing/meter_create_params.rb | 8 +- .../params/billing/meter_deactivate_params.rb | 2 +- .../meter_event_adjustment_create_params.rb | 4 +- .../billing/meter_event_create_params.rb | 2 +- .../meter_event_summary_list_params.rb | 2 +- .../params/billing/meter_list_params.rb | 2 +- .../params/billing/meter_reactivate_params.rb | 2 +- .../params/billing/meter_retrieve_params.rb | 2 +- .../params/billing/meter_update_params.rb | 2 +- .../configuration_create_params.rb | 33 +- .../configuration_list_params.rb | 2 +- .../configuration_retrieve_params.rb | 2 +- .../configuration_update_params.rb | 33 +- .../billing_portal/session_create_params.rb | 24 +- lib/stripe/params/charge_capture_params.rb | 4 +- lib/stripe/params/charge_create_params.rb | 12 +- lib/stripe/params/charge_list_params.rb | 4 +- lib/stripe/params/charge_retrieve_params.rb | 2 +- lib/stripe/params/charge_search_params.rb | 2 +- lib/stripe/params/charge_update_params.rb | 8 +- .../params/checkout/session_create_params.rb | 267 +- .../params/checkout/session_expire_params.rb | 2 +- .../checkout/session_line_item_list_params.rb | 2 +- .../session_list_line_items_params.rb | 2 +- .../params/checkout/session_list_params.rb | 6 +- .../checkout/session_retrieve_params.rb | 2 +- .../params/checkout/session_update_params.rb | 22 +- .../params/climate/order_cancel_params.rb | 2 +- .../params/climate/order_create_params.rb | 4 +- .../params/climate/order_list_params.rb | 2 +- .../params/climate/order_retrieve_params.rb | 2 +- .../params/climate/order_update_params.rb | 4 +- .../params/climate/product_list_params.rb | 2 +- .../params/climate/product_retrieve_params.rb | 2 +- .../params/climate/supplier_list_params.rb | 2 +- .../climate/supplier_retrieve_params.rb | 2 +- .../confirmation_token_create_params.rb | 122 +- .../confirmation_token_retrieve_params.rb | 2 +- lib/stripe/params/country_spec_list_params.rb | 2 +- .../params/country_spec_retrieve_params.rb | 2 +- lib/stripe/params/coupon_create_params.rb | 6 +- lib/stripe/params/coupon_delete_params.rb | 2 +- lib/stripe/params/coupon_list_params.rb | 4 +- lib/stripe/params/coupon_retrieve_params.rb | 2 +- lib/stripe/params/coupon_update_params.rb | 4 +- .../params/credit_note_create_params.rb | 29 +- .../credit_note_line_item_list_params.rb | 2 +- lib/stripe/params/credit_note_list_params.rb | 4 +- ...dit_note_list_preview_line_items_params.rb | 29 +- .../credit_note_preview_lines_list_params.rb | 29 +- .../params/credit_note_preview_params.rb | 29 +- .../params/credit_note_retrieve_params.rb | 2 +- .../params/credit_note_update_params.rb | 2 +- .../credit_note_void_credit_note_params.rb | 2 +- ...tomer_balance_transaction_create_params.rb | 2 +- ...ustomer_balance_transaction_list_params.rb | 2 +- ...mer_balance_transaction_retrieve_params.rb | 2 +- ...tomer_balance_transaction_update_params.rb | 2 +- .../customer_cash_balance_retrieve_params.rb | 2 +- ...er_cash_balance_transaction_list_params.rb | 2 +- ...ash_balance_transaction_retrieve_params.rb | 2 +- .../customer_cash_balance_update_params.rb | 4 +- ...omer_create_funding_instructions_params.rb | 6 +- lib/stripe/params/customer_create_params.rb | 22 +- .../params/customer_delete_discount_params.rb | 2 +- lib/stripe/params/customer_delete_params.rb | 2 +- .../customer_fund_cash_balance_params.rb | 2 +- ...omer_funding_instructions_create_params.rb | 6 +- lib/stripe/params/customer_list_params.rb | 4 +- .../customer_list_payment_methods_params.rb | 2 +- .../customer_payment_method_list_params.rb | 2 +- ...customer_payment_method_retrieve_params.rb | 2 +- .../customer_payment_source_create_params.rb | 2 +- .../customer_payment_source_delete_params.rb | 2 +- .../customer_payment_source_list_params.rb | 2 +- ...customer_payment_source_retrieve_params.rb | 2 +- .../customer_payment_source_update_params.rb | 6 +- .../customer_payment_source_verify_params.rb | 2 +- lib/stripe/params/customer_retrieve_params.rb | 2 +- ...customer_retrieve_payment_method_params.rb | 2 +- lib/stripe/params/customer_search_params.rb | 2 +- .../params/customer_session_create_params.rb | 99 +- .../params/customer_tax_id_create_params.rb | 2 +- .../params/customer_tax_id_delete_params.rb | 2 +- .../params/customer_tax_id_list_params.rb | 2 +- .../params/customer_tax_id_retrieve_params.rb | 2 +- lib/stripe/params/customer_update_params.rb | 20 +- lib/stripe/params/dispute_close_params.rb | 2 +- lib/stripe/params/dispute_list_params.rb | 4 +- lib/stripe/params/dispute_retrieve_params.rb | 2 +- lib/stripe/params/dispute_update_params.rb | 18 +- .../active_entitlement_list_params.rb | 2 +- .../active_entitlement_retrieve_params.rb | 2 +- .../entitlements/feature_create_params.rb | 2 +- .../entitlements/feature_list_params.rb | 2 +- .../entitlements/feature_retrieve_params.rb | 2 +- .../entitlements/feature_update_params.rb | 2 +- .../params/ephemeral_key_create_params.rb | 2 +- .../params/ephemeral_key_delete_params.rb | 2 +- lib/stripe/params/event_list_params.rb | 4 +- lib/stripe/params/event_retrieve_params.rb | 2 +- .../params/exchange_rate_list_params.rb | 2 +- .../params/exchange_rate_retrieve_params.rb | 2 +- lib/stripe/params/file_create_params.rb | 4 +- lib/stripe/params/file_link_create_params.rb | 2 +- lib/stripe/params/file_link_list_params.rb | 4 +- .../params/file_link_retrieve_params.rb | 2 +- lib/stripe/params/file_link_update_params.rb | 2 +- lib/stripe/params/file_list_params.rb | 4 +- lib/stripe/params/file_retrieve_params.rb | 2 +- .../account_disconnect_params.rb | 2 +- .../account_list_owners_params.rb | 2 +- .../account_list_params.rb | 4 +- .../account_owner_list_params.rb | 2 +- .../account_refresh_account_params.rb | 2 +- .../account_refresh_params.rb | 2 +- .../account_retrieve_params.rb | 2 +- .../account_subscribe_params.rb | 2 +- .../account_unsubscribe_params.rb | 2 +- .../session_create_params.rb | 6 +- .../session_retrieve_params.rb | 2 +- .../transaction_list_params.rb | 6 +- .../transaction_retrieve_params.rb | 2 +- .../forwarding/request_create_params.rb | 6 +- .../params/forwarding/request_list_params.rb | 4 +- .../forwarding/request_retrieve_params.rb | 2 +- .../verification_report_list_params.rb | 4 +- .../verification_report_retrieve_params.rb | 2 +- .../verification_session_cancel_params.rb | 2 +- .../verification_session_create_params.rb | 10 +- .../verification_session_list_params.rb | 4 +- .../verification_session_redact_params.rb | 2 +- .../verification_session_retrieve_params.rb | 2 +- .../verification_session_update_params.rb | 8 +- lib/stripe/params/invoice_add_lines_params.rb | 18 +- .../params/invoice_attach_payment_params.rb | 7 +- lib/stripe/params/invoice_create_params.rb | 70 +- .../params/invoice_create_preview_params.rb | 92 +- lib/stripe/params/invoice_delete_params.rb | 2 +- .../params/invoice_finalize_invoice_params.rb | 2 +- .../params/invoice_item_create_params.rb | 10 +- .../params/invoice_item_delete_params.rb | 2 +- lib/stripe/params/invoice_item_list_params.rb | 4 +- .../params/invoice_item_retrieve_params.rb | 2 +- .../params/invoice_item_update_params.rb | 10 +- .../params/invoice_line_item_list_params.rb | 2 +- .../params/invoice_line_item_update_params.rb | 16 +- lib/stripe/params/invoice_list_params.rb | 6 +- .../invoice_mark_uncollectible_params.rb | 2 +- lib/stripe/params/invoice_pay_params.rb | 2 +- .../params/invoice_payment_list_params.rb | 9 +- .../params/invoice_payment_retrieve_params.rb | 2 +- .../params/invoice_remove_lines_params.rb | 4 +- ...voice_rendering_template_archive_params.rb | 2 +- .../invoice_rendering_template_list_params.rb | 2 +- ...oice_rendering_template_retrieve_params.rb | 2 +- ...ice_rendering_template_unarchive_params.rb | 2 +- lib/stripe/params/invoice_retrieve_params.rb | 2 +- lib/stripe/params/invoice_search_params.rb | 2 +- .../params/invoice_send_invoice_params.rb | 2 +- .../params/invoice_update_lines_params.rb | 18 +- lib/stripe/params/invoice_update_params.rb | 68 +- .../params/invoice_void_invoice_params.rb | 2 +- .../issuing/authorization_approve_params.rb | 2 +- .../issuing/authorization_capture_params.rb | 26 +- .../issuing/authorization_create_params.rb | 34 +- .../issuing/authorization_decline_params.rb | 2 +- .../issuing/authorization_expire_params.rb | 2 +- .../authorization_finalize_amount_params.rb | 16 +- .../issuing/authorization_increment_params.rb | 2 +- .../issuing/authorization_list_params.rb | 4 +- .../issuing/authorization_respond_params.rb | 2 +- .../issuing/authorization_retrieve_params.rb | 2 +- .../issuing/authorization_reverse_params.rb | 2 +- .../issuing/authorization_update_params.rb | 2 +- .../params/issuing/card_create_params.rb | 16 +- .../issuing/card_deliver_card_params.rb | 2 +- .../params/issuing/card_fail_card_params.rb | 2 +- lib/stripe/params/issuing/card_list_params.rb | 4 +- .../params/issuing/card_retrieve_params.rb | 2 +- .../params/issuing/card_return_card_params.rb | 2 +- .../params/issuing/card_ship_card_params.rb | 2 +- .../params/issuing/card_submit_card_params.rb | 2 +- .../params/issuing/card_update_params.rb | 16 +- .../issuing/cardholder_create_params.rb | 24 +- .../params/issuing/cardholder_list_params.rb | 4 +- .../issuing/cardholder_retrieve_params.rb | 2 +- .../issuing/cardholder_update_params.rb | 24 +- .../params/issuing/dispute_create_params.rb | 22 +- .../params/issuing/dispute_list_params.rb | 4 +- .../params/issuing/dispute_retrieve_params.rb | 2 +- .../params/issuing/dispute_submit_params.rb | 2 +- .../params/issuing/dispute_update_params.rb | 20 +- .../personalization_design_activate_params.rb | 2 +- .../personalization_design_create_params.rb | 6 +- ...ersonalization_design_deactivate_params.rb | 2 +- .../personalization_design_list_params.rb | 4 +- .../personalization_design_reject_params.rb | 4 +- .../personalization_design_retrieve_params.rb | 2 +- .../personalization_design_update_params.rb | 6 +- .../issuing/physical_bundle_list_params.rb | 2 +- .../physical_bundle_retrieve_params.rb | 2 +- .../params/issuing/token_list_params.rb | 4 +- .../params/issuing/token_retrieve_params.rb | 2 +- .../params/issuing/token_update_params.rb | 2 +- ...transaction_create_force_capture_params.rb | 28 +- ...ansaction_create_unlinked_refund_params.rb | 28 +- .../params/issuing/transaction_list_params.rb | 4 +- .../issuing/transaction_refund_params.rb | 2 +- .../issuing/transaction_retrieve_params.rb | 2 +- .../issuing/transaction_update_params.rb | 2 +- lib/stripe/params/mandate_retrieve_params.rb | 2 +- .../payment_attempt_record_list_params.rb | 22 + .../payment_attempt_record_retrieve_params.rb | 13 + ...nt_amount_details_line_item_list_params.rb | 22 + ...nt_intent_apply_customer_balance_params.rb | 2 +- .../params/payment_intent_cancel_params.rb | 2 +- .../params/payment_intent_capture_params.rb | 185 +- .../params/payment_intent_confirm_params.rb | 447 +- .../params/payment_intent_create_params.rb | 451 +- ...t_intent_increment_authorization_params.rb | 185 +- .../params/payment_intent_list_params.rb | 4 +- .../params/payment_intent_retrieve_params.rb | 2 +- .../params/payment_intent_search_params.rb | 2 +- .../params/payment_intent_update_params.rb | 439 +- ...ment_intent_verify_microdeposits_params.rb | 2 +- .../params/payment_link_create_params.rb | 127 +- .../payment_link_line_item_list_params.rb | 2 +- .../payment_link_list_line_items_params.rb | 2 +- lib/stripe/params/payment_link_list_params.rb | 2 +- .../params/payment_link_retrieve_params.rb | 2 +- .../params/payment_link_update_params.rb | 109 +- .../params/payment_method_attach_params.rb | 2 +- ...ment_method_configuration_create_params.rb | 256 +- ...ayment_method_configuration_list_params.rb | 2 +- ...nt_method_configuration_retrieve_params.rb | 2 +- ...ment_method_configuration_update_params.rb | 256 +- .../params/payment_method_create_params.rb | 126 +- .../params/payment_method_detach_params.rb | 2 +- .../payment_method_domain_create_params.rb | 2 +- .../payment_method_domain_list_params.rb | 2 +- .../payment_method_domain_retrieve_params.rb | 2 +- .../payment_method_domain_update_params.rb | 2 +- .../payment_method_domain_validate_params.rb | 2 +- .../params/payment_method_list_params.rb | 4 +- .../params/payment_method_retrieve_params.rb | 2 +- .../params/payment_method_update_params.rb | 12 +- ..._report_payment_attempt_canceled_params.rb | 19 + ...rd_report_payment_attempt_failed_params.rb | 19 + ...eport_payment_attempt_guaranteed_params.rb | 19 + ...rt_payment_attempt_informational_params.rb | 93 + ...nt_record_report_payment_attempt_params.rb | 186 + .../payment_record_report_payment_params.rb | 252 + .../payment_record_report_refund_params.rb | 79 + .../params/payment_record_retrieve_params.rb | 13 + lib/stripe/params/payout_cancel_params.rb | 2 +- lib/stripe/params/payout_create_params.rb | 2 +- lib/stripe/params/payout_list_params.rb | 6 +- lib/stripe/params/payout_retrieve_params.rb | 2 +- lib/stripe/params/payout_reverse_params.rb | 2 +- lib/stripe/params/payout_update_params.rb | 2 +- lib/stripe/params/plan_create_params.rb | 8 +- lib/stripe/params/plan_delete_params.rb | 2 +- lib/stripe/params/plan_list_params.rb | 4 +- lib/stripe/params/plan_retrieve_params.rb | 2 +- lib/stripe/params/plan_update_params.rb | 2 +- lib/stripe/params/price_create_params.rb | 18 +- lib/stripe/params/price_list_params.rb | 6 +- lib/stripe/params/price_retrieve_params.rb | 2 +- lib/stripe/params/price_search_params.rb | 2 +- lib/stripe/params/price_update_params.rb | 8 +- lib/stripe/params/product_create_params.rb | 18 +- lib/stripe/params/product_delete_params.rb | 2 +- .../params/product_feature_create_params.rb | 2 +- .../params/product_feature_delete_params.rb | 2 +- .../params/product_feature_list_params.rb | 2 +- .../params/product_feature_retrieve_params.rb | 2 +- lib/stripe/params/product_list_params.rb | 4 +- lib/stripe/params/product_retrieve_params.rb | 2 +- lib/stripe/params/product_search_params.rb | 2 +- lib/stripe/params/product_update_params.rb | 6 +- .../params/promotion_code_create_params.rb | 8 +- .../params/promotion_code_list_params.rb | 4 +- .../params/promotion_code_retrieve_params.rb | 2 +- .../params/promotion_code_update_params.rb | 6 +- lib/stripe/params/quote_accept_params.rb | 2 +- lib/stripe/params/quote_cancel_params.rb | 2 +- ...computed_upfront_line_items_list_params.rb | 2 +- lib/stripe/params/quote_create_params.rb | 30 +- .../params/quote_finalize_quote_params.rb | 2 +- .../params/quote_line_item_list_params.rb | 2 +- ...list_computed_upfront_line_items_params.rb | 2 +- .../params/quote_list_line_items_params.rb | 2 +- lib/stripe/params/quote_list_params.rb | 2 +- lib/stripe/params/quote_pdf_params.rb | 2 +- lib/stripe/params/quote_retrieve_params.rb | 2 +- lib/stripe/params/quote_update_params.rb | 24 +- .../radar/early_fraud_warning_list_params.rb | 4 +- .../early_fraud_warning_retrieve_params.rb | 2 +- .../params/radar/value_list_create_params.rb | 2 +- .../params/radar/value_list_delete_params.rb | 2 +- .../radar/value_list_item_create_params.rb | 2 +- .../radar/value_list_item_delete_params.rb | 2 +- .../radar/value_list_item_list_params.rb | 4 +- .../radar/value_list_item_retrieve_params.rb | 2 +- .../params/radar/value_list_list_params.rb | 4 +- .../radar/value_list_retrieve_params.rb | 2 +- .../params/radar/value_list_update_params.rb | 2 +- lib/stripe/params/refund_cancel_params.rb | 2 +- lib/stripe/params/refund_create_params.rb | 2 +- lib/stripe/params/refund_expire_params.rb | 2 +- lib/stripe/params/refund_list_params.rb | 4 +- lib/stripe/params/refund_retrieve_params.rb | 2 +- lib/stripe/params/refund_update_params.rb | 2 +- .../reporting/report_run_create_params.rb | 4 +- .../reporting/report_run_list_params.rb | 4 +- .../reporting/report_run_retrieve_params.rb | 2 +- .../reporting/report_type_list_params.rb | 2 +- .../reporting/report_type_retrieve_params.rb | 2 +- lib/stripe/params/review_approve_params.rb | 2 +- lib/stripe/params/review_list_params.rb | 4 +- lib/stripe/params/review_retrieve_params.rb | 2 +- .../params/setup_attempt_list_params.rb | 4 +- .../params/setup_intent_cancel_params.rb | 2 +- .../params/setup_intent_confirm_params.rb | 168 +- .../params/setup_intent_create_params.rb | 176 +- lib/stripe/params/setup_intent_list_params.rb | 4 +- .../params/setup_intent_retrieve_params.rb | 2 +- .../params/setup_intent_update_params.rb | 164 +- ...etup_intent_verify_microdeposits_params.rb | 2 +- .../params/shipping_rate_create_params.rb | 12 +- .../params/shipping_rate_list_params.rb | 4 +- .../params/shipping_rate_retrieve_params.rb | 2 +- .../params/shipping_rate_update_params.rb | 6 +- .../sigma/scheduled_query_run_list_params.rb | 2 +- .../scheduled_query_run_retrieve_params.rb | 2 +- lib/stripe/params/source_create_params.rb | 26 +- lib/stripe/params/source_detach_params.rb | 2 +- lib/stripe/params/source_retrieve_params.rb | 2 +- .../params/source_transaction_list_params.rb | 2 +- lib/stripe/params/source_update_params.rb | 22 +- lib/stripe/params/source_verify_params.rb | 2 +- .../params/subscription_cancel_params.rb | 4 +- .../params/subscription_create_params.rb | 80 +- .../subscription_delete_discount_params.rb | 2 +- .../params/subscription_item_create_params.rb | 10 +- .../params/subscription_item_delete_params.rb | 2 +- .../params/subscription_item_list_params.rb | 2 +- .../subscription_item_retrieve_params.rb | 2 +- .../params/subscription_item_update_params.rb | 10 +- lib/stripe/params/subscription_list_params.rb | 10 +- .../params/subscription_migrate_params.rb | 6 +- .../params/subscription_resume_params.rb | 2 +- .../params/subscription_retrieve_params.rb | 2 +- .../subscription_schedule_cancel_params.rb | 2 +- .../subscription_schedule_create_params.rb | 60 +- .../subscription_schedule_list_params.rb | 10 +- .../subscription_schedule_release_params.rb | 2 +- .../subscription_schedule_retrieve_params.rb | 2 +- .../subscription_schedule_update_params.rb | 56 +- .../params/subscription_search_params.rb | 2 +- .../params/subscription_update_params.rb | 78 +- .../params/tax/calculation_create_params.rb | 16 +- .../tax/calculation_line_item_list_params.rb | 2 +- .../tax/calculation_list_line_items_params.rb | 2 +- .../params/tax/calculation_retrieve_params.rb | 2 +- .../params/tax/registration_create_params.rb | 339 +- .../params/tax/registration_list_params.rb | 2 +- .../tax/registration_retrieve_params.rb | 2 +- .../params/tax/registration_update_params.rb | 2 +- .../params/tax/settings_retrieve_params.rb | 2 +- .../params/tax/settings_update_params.rb | 8 +- ...nsaction_create_from_calculation_params.rb | 2 +- .../tax/transaction_create_reversal_params.rb | 6 +- .../tax/transaction_line_item_list_params.rb | 2 +- .../tax/transaction_list_line_items_params.rb | 2 +- .../params/tax/transaction_retrieve_params.rb | 2 +- lib/stripe/params/tax_code_list_params.rb | 2 +- lib/stripe/params/tax_code_retrieve_params.rb | 2 +- lib/stripe/params/tax_id_create_params.rb | 4 +- lib/stripe/params/tax_id_delete_params.rb | 2 +- lib/stripe/params/tax_id_list_params.rb | 4 +- lib/stripe/params/tax_id_retrieve_params.rb | 2 +- lib/stripe/params/tax_rate_create_params.rb | 2 +- lib/stripe/params/tax_rate_list_params.rb | 4 +- lib/stripe/params/tax_rate_retrieve_params.rb | 2 +- lib/stripe/params/tax_rate_update_params.rb | 2 +- .../terminal/configuration_create_params.rb | 85 +- .../terminal/configuration_delete_params.rb | 2 +- .../terminal/configuration_list_params.rb | 2 +- .../terminal/configuration_retrieve_params.rb | 2 +- .../terminal/configuration_update_params.rb | 85 +- .../connection_token_create_params.rb | 2 +- .../params/terminal/location_create_params.rb | 8 +- .../params/terminal/location_delete_params.rb | 2 +- .../params/terminal/location_list_params.rb | 2 +- .../terminal/location_retrieve_params.rb | 2 +- .../params/terminal/location_update_params.rb | 8 +- .../terminal/reader_cancel_action_params.rb | 2 +- .../terminal/reader_collect_inputs_params.rb | 26 +- .../reader_collect_payment_method_params.rb | 10 +- .../reader_confirm_payment_intent_params.rb | 8 +- .../params/terminal/reader_create_params.rb | 2 +- .../params/terminal/reader_delete_params.rb | 2 +- .../params/terminal/reader_list_params.rb | 2 +- .../reader_present_payment_method_params.rb | 10 +- .../reader_process_payment_intent_params.rb | 10 +- .../reader_process_setup_intent_params.rb | 8 +- .../terminal/reader_refund_payment_params.rb | 6 +- .../params/terminal/reader_retrieve_params.rb | 2 +- .../reader_set_reader_display_params.rb | 18 +- .../reader_succeed_input_collection_params.rb | 2 +- .../reader_timeout_input_collection_params.rb | 2 +- .../params/terminal/reader_update_params.rb | 2 +- .../confirmation_token_create_params.rb | 122 +- .../customer_fund_cash_balance_params.rb | 2 +- .../issuing/authorization_capture_params.rb | 26 +- .../issuing/authorization_create_params.rb | 34 +- .../issuing/authorization_expire_params.rb | 2 +- .../authorization_finalize_amount_params.rb | 16 +- .../issuing/authorization_increment_params.rb | 2 +- .../issuing/authorization_respond_params.rb | 2 +- .../issuing/authorization_reverse_params.rb | 2 +- .../issuing/card_deliver_card_params.rb | 2 +- .../issuing/card_fail_card_params.rb | 2 +- .../issuing/card_return_card_params.rb | 2 +- .../issuing/card_ship_card_params.rb | 2 +- .../issuing/card_submit_card_params.rb | 2 +- .../personalization_design_activate_params.rb | 2 +- ...ersonalization_design_deactivate_params.rb | 2 +- .../personalization_design_reject_params.rb | 4 +- ...transaction_create_force_capture_params.rb | 28 +- ...ansaction_create_unlinked_refund_params.rb | 28 +- .../issuing/transaction_refund_params.rb | 2 +- .../test_helpers/refund_expire_params.rb | 2 +- .../reader_present_payment_method_params.rb | 10 +- .../reader_succeed_input_collection_params.rb | 2 +- .../reader_timeout_input_collection_params.rb | 2 +- .../test_helpers/test_clock_advance_params.rb | 2 +- .../test_helpers/test_clock_create_params.rb | 2 +- .../test_helpers/test_clock_delete_params.rb | 2 +- .../test_helpers/test_clock_list_params.rb | 2 +- .../test_clock_retrieve_params.rb | 2 +- .../treasury/inbound_transfer_fail_params.rb | 4 +- ...transfer_return_inbound_transfer_params.rb | 2 +- .../inbound_transfer_succeed_params.rb | 2 +- .../treasury/outbound_payment_fail_params.rb | 2 +- .../treasury/outbound_payment_post_params.rb | 2 +- ..._payment_return_outbound_payment_params.rb | 4 +- .../outbound_payment_update_params.rb | 8 +- .../treasury/outbound_transfer_fail_params.rb | 2 +- .../treasury/outbound_transfer_post_params.rb | 2 +- ...ransfer_return_outbound_transfer_params.rb | 4 +- .../outbound_transfer_update_params.rb | 8 +- .../treasury/received_credit_create_params.rb | 6 +- .../treasury/received_debit_create_params.rb | 6 +- lib/stripe/params/token_create_params.rb | 109 +- lib/stripe/params/token_retrieve_params.rb | 2 +- lib/stripe/params/topup_cancel_params.rb | 2 +- lib/stripe/params/topup_create_params.rb | 2 +- lib/stripe/params/topup_list_params.rb | 6 +- lib/stripe/params/topup_retrieve_params.rb | 2 +- lib/stripe/params/topup_update_params.rb | 2 +- lib/stripe/params/transfer_create_params.rb | 2 +- lib/stripe/params/transfer_list_params.rb | 4 +- lib/stripe/params/transfer_retrieve_params.rb | 2 +- .../params/transfer_reversal_create_params.rb | 2 +- .../params/transfer_reversal_list_params.rb | 2 +- .../transfer_reversal_retrieve_params.rb | 2 +- .../params/transfer_reversal_update_params.rb | 2 +- lib/stripe/params/transfer_update_params.rb | 2 +- .../treasury/credit_reversal_create_params.rb | 2 +- .../treasury/credit_reversal_list_params.rb | 2 +- .../credit_reversal_retrieve_params.rb | 2 +- .../treasury/debit_reversal_create_params.rb | 2 +- .../treasury/debit_reversal_list_params.rb | 2 +- .../debit_reversal_retrieve_params.rb | 2 +- .../financial_account_close_params.rb | 4 +- .../financial_account_create_params.rb | 32 +- ...ancial_account_features_retrieve_params.rb | 2 +- ...inancial_account_features_update_params.rb | 28 +- .../treasury/financial_account_list_params.rb | 4 +- ...ancial_account_retrieve_features_params.rb | 2 +- .../financial_account_retrieve_params.rb | 2 +- ...inancial_account_update_features_params.rb | 28 +- .../financial_account_update_params.rb | 34 +- .../inbound_transfer_cancel_params.rb | 2 +- .../inbound_transfer_create_params.rb | 2 +- .../treasury/inbound_transfer_fail_params.rb | 4 +- .../treasury/inbound_transfer_list_params.rb | 2 +- .../inbound_transfer_retrieve_params.rb | 2 +- ...transfer_return_inbound_transfer_params.rb | 2 +- .../inbound_transfer_succeed_params.rb | 2 +- .../outbound_payment_cancel_params.rb | 2 +- .../outbound_payment_create_params.rb | 16 +- .../treasury/outbound_payment_fail_params.rb | 2 +- .../treasury/outbound_payment_list_params.rb | 4 +- .../treasury/outbound_payment_post_params.rb | 2 +- .../outbound_payment_retrieve_params.rb | 2 +- ..._payment_return_outbound_payment_params.rb | 4 +- .../outbound_payment_update_params.rb | 8 +- .../outbound_transfer_cancel_params.rb | 2 +- .../outbound_transfer_create_params.rb | 8 +- .../treasury/outbound_transfer_fail_params.rb | 2 +- .../treasury/outbound_transfer_list_params.rb | 2 +- .../treasury/outbound_transfer_post_params.rb | 2 +- .../outbound_transfer_retrieve_params.rb | 2 +- ...ransfer_return_outbound_transfer_params.rb | 4 +- .../outbound_transfer_update_params.rb | 8 +- .../treasury/received_credit_create_params.rb | 6 +- .../treasury/received_credit_list_params.rb | 4 +- .../received_credit_retrieve_params.rb | 2 +- .../treasury/received_debit_create_params.rb | 6 +- .../treasury/received_debit_list_params.rb | 2 +- .../received_debit_retrieve_params.rb | 2 +- .../treasury/transaction_entry_list_params.rb | 6 +- .../transaction_entry_retrieve_params.rb | 2 +- .../treasury/transaction_list_params.rb | 8 +- .../treasury/transaction_retrieve_params.rb | 2 +- .../meter_event_adjustment_create_params.rb | 4 +- .../v2/billing/meter_event_create_params.rb | 2 +- .../meter_event_session_create_params.rb | 2 +- .../meter_event_stream_create_params.rb | 4 +- .../core/event_destination_create_params.rb | 6 +- .../core/event_destination_delete_params.rb | 2 +- .../core/event_destination_disable_params.rb | 2 +- .../core/event_destination_enable_params.rb | 2 +- .../v2/core/event_destination_list_params.rb | 2 +- .../v2/core/event_destination_ping_params.rb | 2 +- .../core/event_destination_retrieve_params.rb | 2 +- .../core/event_destination_update_params.rb | 4 +- .../params/v2/core/event_list_params.rb | 27 +- .../params/v2/core/event_retrieve_params.rb | 2 +- .../params/webhook_endpoint_create_params.rb | 2 +- .../params/webhook_endpoint_delete_params.rb | 2 +- .../params/webhook_endpoint_list_params.rb | 2 +- .../webhook_endpoint_retrieve_params.rb | 2 +- .../params/webhook_endpoint_update_params.rb | 2 +- lib/stripe/resources.rb | 3 + lib/stripe/resources/account.rb | 102 +- lib/stripe/resources/account_session.rb | 78 +- lib/stripe/resources/application_fee.rb | 2 +- lib/stripe/resources/apps/secret.rb | 2 +- lib/stripe/resources/balance.rb | 36 +- lib/stripe/resources/balance_settings.rb | 8 +- lib/stripe/resources/balance_transaction.rb | 2 +- lib/stripe/resources/bank_account.rb | 8 +- lib/stripe/resources/billing/alert.rb | 4 +- .../billing/credit_balance_summary.rb | 10 +- .../billing/credit_balance_transaction.rb | 16 +- lib/stripe/resources/billing/credit_grant.rb | 10 +- lib/stripe/resources/billing/meter.rb | 8 +- .../billing/meter_event_adjustment.rb | 2 +- .../resources/billing_portal/configuration.rb | 28 +- .../resources/billing_portal/session.rb | 22 +- lib/stripe/resources/capability.rb | 12 +- lib/stripe/resources/card.rb | 2 +- lib/stripe/resources/cash_balance.rb | 2 +- lib/stripe/resources/charge.rb | 208 +- lib/stripe/resources/checkout/session.rb | 234 +- lib/stripe/resources/climate/order.rb | 6 +- lib/stripe/resources/climate/product.rb | 2 +- lib/stripe/resources/climate/supplier.rb | 2 +- lib/stripe/resources/confirmation_token.rb | 186 +- lib/stripe/resources/country_spec.rb | 6 +- lib/stripe/resources/coupon.rb | 4 +- lib/stripe/resources/credit_note.rb | 34 +- lib/stripe/resources/credit_note_line_item.rb | 8 +- lib/stripe/resources/customer.rb | 18 +- .../customer_cash_balance_transaction.rb | 22 +- lib/stripe/resources/customer_session.rb | 92 +- lib/stripe/resources/discount.rb | 2 +- lib/stripe/resources/dispute.rb | 34 +- lib/stripe/resources/event.rb | 4 +- .../financial_connections/account.rb | 18 +- .../financial_connections/session.rb | 4 +- .../financial_connections/transaction.rb | 2 +- lib/stripe/resources/forwarding/request.rb | 10 +- lib/stripe/resources/funding_instructions.rb | 40 +- .../resources/identity/verification_report.rb | 36 +- .../identity/verification_session.rb | 26 +- lib/stripe/resources/invoice.rb | 84 +- lib/stripe/resources/invoice_item.rb | 14 +- lib/stripe/resources/invoice_line_item.rb | 28 +- lib/stripe/resources/invoice_payment.rb | 6 +- lib/stripe/resources/issuing/authorization.rb | 38 +- lib/stripe/resources/issuing/card.rb | 20 +- lib/stripe/resources/issuing/cardholder.rb | 24 +- lib/stripe/resources/issuing/dispute.rb | 20 +- .../issuing/personalization_design.rb | 6 +- .../resources/issuing/physical_bundle.rb | 2 +- lib/stripe/resources/issuing/token.rb | 12 +- lib/stripe/resources/issuing/transaction.rb | 32 +- lib/stripe/resources/line_item.rb | 4 +- lib/stripe/resources/mandate.rb | 44 +- .../resources/payment_attempt_record.rb | 1903 ++ lib/stripe/resources/payment_intent.rb | 303 +- ...payment_intent_amount_details_line_item.rb | 132 + lib/stripe/resources/payment_link.rb | 123 +- lib/stripe/resources/payment_method.rb | 202 +- .../resources/payment_method_configuration.rb | 272 +- lib/stripe/resources/payment_method_domain.rb | 24 +- lib/stripe/resources/payment_record.rb | 2031 ++ lib/stripe/resources/payout.rb | 6 +- lib/stripe/resources/person.rb | 40 +- lib/stripe/resources/plan.rb | 4 +- lib/stripe/resources/price.rb | 14 +- lib/stripe/resources/product.rb | 4 +- lib/stripe/resources/promotion_code.rb | 6 +- lib/stripe/resources/quote.rb | 50 +- lib/stripe/resources/refund.rb | 90 +- lib/stripe/resources/reporting/report_run.rb | 2 +- lib/stripe/resources/review.rb | 4 +- lib/stripe/resources/setup_attempt.rb | 58 +- lib/stripe/resources/setup_intent.rb | 54 +- lib/stripe/resources/shipping_rate.rb | 10 +- .../resources/sigma/scheduled_query_run.rb | 2 +- lib/stripe/resources/source.rb | 58 +- .../resources/source_mandate_notification.rb | 6 +- lib/stripe/resources/source_transaction.rb | 10 +- lib/stripe/resources/subscription.rb | 60 +- lib/stripe/resources/subscription_item.rb | 2 +- lib/stripe/resources/subscription_schedule.rb | 52 +- lib/stripe/resources/tax/calculation.rb | 24 +- .../resources/tax/calculation_line_item.rb | 6 +- lib/stripe/resources/tax/registration.rb | 296 +- lib/stripe/resources/tax/settings.rb | 12 +- lib/stripe/resources/tax/transaction.rb | 20 +- .../resources/tax/transaction_line_item.rb | 2 +- lib/stripe/resources/tax_id.rb | 4 +- lib/stripe/resources/tax_rate.rb | 2 +- .../resources/terminal/configuration.rb | 84 +- lib/stripe/resources/terminal/location.rb | 6 +- lib/stripe/resources/terminal/reader.rb | 106 +- .../resources/test_helpers/test_clock.rb | 4 +- .../resources/treasury/credit_reversal.rb | 2 +- .../resources/treasury/debit_reversal.rb | 4 +- .../resources/treasury/financial_account.rb | 12 +- .../treasury/financial_account_features.rb | 44 +- .../resources/treasury/inbound_transfer.rb | 14 +- .../resources/treasury/outbound_payment.rb | 22 +- .../resources/treasury/outbound_transfer.rb | 20 +- .../resources/treasury/received_credit.rb | 16 +- .../resources/treasury/received_debit.rb | 14 +- lib/stripe/resources/treasury/transaction.rb | 6 +- .../resources/treasury/transaction_entry.rb | 4 +- .../v2/billing/meter_event_adjustment.rb | 2 +- lib/stripe/resources/v2/core/event.rb | 4 +- .../resources/v2/core/event_destination.rb | 8 +- lib/stripe/services.rb | 3 + .../financial_connections/account_service.rb | 2 +- .../payment_attempt_record_service.rb | 28 + ...intent_amount_details_line_item_service.rb | 17 + lib/stripe/services/payment_intent_service.rb | 7 + lib/stripe/services/payment_record_service.rb | 101 + lib/stripe/services/payout_service.rb | 2 +- .../services/terminal/reader_service.rb | 16 +- lib/stripe/services/v1_services.rb | 4 +- rbi/stripe.rbi | 21228 +++++++++++----- .../params/account_capability_list_params.rbi | 2 +- .../account_capability_retrieve_params.rbi | 2 +- .../account_capability_update_params.rbi | 2 +- rbi/stripe/params/account_create_params.rbi | 265 +- rbi/stripe/params/account_delete_params.rbi | 2 +- ...account_external_account_create_params.rbi | 8 +- ...account_external_account_delete_params.rbi | 2 +- .../account_external_account_list_params.rbi | 2 +- ...count_external_account_retrieve_params.rbi | 2 +- ...account_external_account_update_params.rbi | 6 +- .../params/account_link_create_params.rbi | 4 +- rbi/stripe/params/account_list_params.rbi | 4 +- .../account_login_link_create_params.rbi | 2 +- .../params/account_person_create_params.rbi | 38 +- .../params/account_person_delete_params.rbi | 2 +- .../params/account_person_list_params.rbi | 4 +- .../params/account_person_retrieve_params.rbi | 2 +- .../params/account_person_update_params.rbi | 38 +- rbi/stripe/params/account_persons_params.rbi | 4 +- rbi/stripe/params/account_reject_params.rbi | 2 +- .../account_retrieve_current_params.rbi | 2 +- rbi/stripe/params/account_retrieve_params.rbi | 2 +- .../params/account_session_create_params.rbi | 80 +- rbi/stripe/params/account_update_params.rbi | 257 +- .../params/apple_pay_domain_create_params.rbi | 2 +- .../params/apple_pay_domain_delete_params.rbi | 2 +- .../params/apple_pay_domain_list_params.rbi | 2 +- .../apple_pay_domain_retrieve_params.rbi | 2 +- .../params/application_fee_list_params.rbi | 4 +- .../application_fee_refund_create_params.rbi | 2 +- .../application_fee_refund_list_params.rbi | 2 +- ...application_fee_refund_retrieve_params.rbi | 2 +- .../application_fee_refund_update_params.rbi | 2 +- .../application_fee_retrieve_params.rbi | 2 +- .../params/apps/secret_create_params.rbi | 4 +- .../apps/secret_delete_where_params.rbi | 4 +- rbi/stripe/params/apps/secret_find_params.rbi | 4 +- rbi/stripe/params/apps/secret_list_params.rbi | 4 +- rbi/stripe/params/balance_retrieve_params.rbi | 2 +- .../balance_settings_retrieve_params.rbi | 2 +- .../params/balance_settings_update_params.rbi | 10 +- .../balance_transaction_list_params.rbi | 4 +- .../balance_transaction_retrieve_params.rbi | 2 +- .../params/billing/alert_activate_params.rbi | 2 +- .../params/billing/alert_archive_params.rbi | 2 +- .../params/billing/alert_create_params.rbi | 6 +- .../billing/alert_deactivate_params.rbi | 2 +- .../params/billing/alert_list_params.rbi | 2 +- .../params/billing/alert_retrieve_params.rbi | 2 +- ...credit_balance_summary_retrieve_params.rbi | 8 +- ...credit_balance_transaction_list_params.rbi | 2 +- ...it_balance_transaction_retrieve_params.rbi | 2 +- .../billing/credit_grant_create_params.rbi | 20 +- .../billing/credit_grant_expire_params.rbi | 2 +- .../billing/credit_grant_list_params.rbi | 2 +- .../billing/credit_grant_retrieve_params.rbi | 2 +- .../billing/credit_grant_update_params.rbi | 2 +- .../credit_grant_void_grant_params.rbi | 2 +- .../params/billing/meter_create_params.rbi | 8 +- .../billing/meter_deactivate_params.rbi | 2 +- .../meter_event_adjustment_create_params.rbi | 4 +- .../billing/meter_event_create_params.rbi | 2 +- .../meter_event_summary_list_params.rbi | 2 +- .../params/billing/meter_list_params.rbi | 2 +- .../billing/meter_reactivate_params.rbi | 2 +- .../params/billing/meter_retrieve_params.rbi | 2 +- .../params/billing/meter_update_params.rbi | 2 +- .../configuration_create_params.rbi | 39 +- .../configuration_list_params.rbi | 2 +- .../configuration_retrieve_params.rbi | 2 +- .../configuration_update_params.rbi | 39 +- .../billing_portal/session_create_params.rbi | 24 +- rbi/stripe/params/charge_capture_params.rbi | 4 +- rbi/stripe/params/charge_create_params.rbi | 12 +- rbi/stripe/params/charge_list_params.rbi | 4 +- rbi/stripe/params/charge_retrieve_params.rbi | 2 +- rbi/stripe/params/charge_search_params.rbi | 2 +- rbi/stripe/params/charge_update_params.rbi | 8 +- .../params/checkout/session_create_params.rbi | 273 +- .../params/checkout/session_expire_params.rbi | 2 +- .../session_line_item_list_params.rbi | 2 +- .../session_list_line_items_params.rbi | 2 +- .../params/checkout/session_list_params.rbi | 6 +- .../checkout/session_retrieve_params.rbi | 2 +- .../params/checkout/session_update_params.rbi | 22 +- .../params/climate/order_cancel_params.rbi | 2 +- .../params/climate/order_create_params.rbi | 4 +- .../params/climate/order_list_params.rbi | 2 +- .../params/climate/order_retrieve_params.rbi | 2 +- .../params/climate/order_update_params.rbi | 4 +- .../params/climate/product_list_params.rbi | 2 +- .../climate/product_retrieve_params.rbi | 2 +- .../params/climate/supplier_list_params.rbi | 2 +- .../climate/supplier_retrieve_params.rbi | 2 +- .../confirmation_token_create_params.rbi | 122 +- .../confirmation_token_retrieve_params.rbi | 2 +- .../params/country_spec_list_params.rbi | 2 +- .../params/country_spec_retrieve_params.rbi | 2 +- rbi/stripe/params/coupon_create_params.rbi | 6 +- rbi/stripe/params/coupon_delete_params.rbi | 2 +- rbi/stripe/params/coupon_list_params.rbi | 4 +- rbi/stripe/params/coupon_retrieve_params.rbi | 2 +- rbi/stripe/params/coupon_update_params.rbi | 4 +- .../params/credit_note_create_params.rbi | 42 +- .../credit_note_line_item_list_params.rbi | 2 +- rbi/stripe/params/credit_note_list_params.rbi | 4 +- ...it_note_list_preview_line_items_params.rbi | 42 +- .../credit_note_preview_lines_list_params.rbi | 42 +- .../params/credit_note_preview_params.rbi | 42 +- .../params/credit_note_retrieve_params.rbi | 2 +- .../params/credit_note_update_params.rbi | 2 +- .../credit_note_void_credit_note_params.rbi | 2 +- ...omer_balance_transaction_create_params.rbi | 2 +- ...stomer_balance_transaction_list_params.rbi | 2 +- ...er_balance_transaction_retrieve_params.rbi | 2 +- ...omer_balance_transaction_update_params.rbi | 2 +- .../customer_cash_balance_retrieve_params.rbi | 2 +- ...r_cash_balance_transaction_list_params.rbi | 2 +- ...sh_balance_transaction_retrieve_params.rbi | 2 +- .../customer_cash_balance_update_params.rbi | 4 +- ...mer_create_funding_instructions_params.rbi | 6 +- rbi/stripe/params/customer_create_params.rbi | 22 +- .../customer_delete_discount_params.rbi | 2 +- rbi/stripe/params/customer_delete_params.rbi | 2 +- .../customer_fund_cash_balance_params.rbi | 2 +- ...mer_funding_instructions_create_params.rbi | 6 +- rbi/stripe/params/customer_list_params.rbi | 4 +- .../customer_list_payment_methods_params.rbi | 2 +- .../customer_payment_method_list_params.rbi | 2 +- ...ustomer_payment_method_retrieve_params.rbi | 2 +- .../customer_payment_source_create_params.rbi | 2 +- .../customer_payment_source_delete_params.rbi | 2 +- .../customer_payment_source_list_params.rbi | 2 +- ...ustomer_payment_source_retrieve_params.rbi | 2 +- .../customer_payment_source_update_params.rbi | 6 +- .../customer_payment_source_verify_params.rbi | 2 +- .../params/customer_retrieve_params.rbi | 2 +- ...ustomer_retrieve_payment_method_params.rbi | 2 +- rbi/stripe/params/customer_search_params.rbi | 2 +- .../params/customer_session_create_params.rbi | 150 +- .../params/customer_tax_id_create_params.rbi | 2 +- .../params/customer_tax_id_delete_params.rbi | 2 +- .../params/customer_tax_id_list_params.rbi | 2 +- .../customer_tax_id_retrieve_params.rbi | 2 +- rbi/stripe/params/customer_update_params.rbi | 20 +- rbi/stripe/params/dispute_close_params.rbi | 2 +- rbi/stripe/params/dispute_list_params.rbi | 4 +- rbi/stripe/params/dispute_retrieve_params.rbi | 2 +- rbi/stripe/params/dispute_update_params.rbi | 18 +- .../active_entitlement_list_params.rbi | 2 +- .../active_entitlement_retrieve_params.rbi | 2 +- .../entitlements/feature_create_params.rbi | 2 +- .../entitlements/feature_list_params.rbi | 2 +- .../entitlements/feature_retrieve_params.rbi | 2 +- .../entitlements/feature_update_params.rbi | 2 +- .../params/ephemeral_key_create_params.rbi | 2 +- .../params/ephemeral_key_delete_params.rbi | 2 +- rbi/stripe/params/event_list_params.rbi | 4 +- rbi/stripe/params/event_retrieve_params.rbi | 2 +- .../params/exchange_rate_list_params.rbi | 2 +- .../params/exchange_rate_retrieve_params.rbi | 2 +- rbi/stripe/params/file_create_params.rbi | 4 +- rbi/stripe/params/file_link_create_params.rbi | 2 +- rbi/stripe/params/file_link_list_params.rbi | 4 +- .../params/file_link_retrieve_params.rbi | 2 +- rbi/stripe/params/file_link_update_params.rbi | 2 +- rbi/stripe/params/file_list_params.rbi | 4 +- rbi/stripe/params/file_retrieve_params.rbi | 2 +- .../account_disconnect_params.rbi | 2 +- .../account_list_owners_params.rbi | 2 +- .../account_list_params.rbi | 4 +- .../account_owner_list_params.rbi | 2 +- .../account_refresh_account_params.rbi | 2 +- .../account_refresh_params.rbi | 2 +- .../account_retrieve_params.rbi | 2 +- .../account_subscribe_params.rbi | 2 +- .../account_unsubscribe_params.rbi | 2 +- .../session_create_params.rbi | 6 +- .../session_retrieve_params.rbi | 2 +- .../transaction_list_params.rbi | 6 +- .../transaction_retrieve_params.rbi | 2 +- .../forwarding/request_create_params.rbi | 6 +- .../params/forwarding/request_list_params.rbi | 4 +- .../forwarding/request_retrieve_params.rbi | 2 +- .../verification_report_list_params.rbi | 4 +- .../verification_report_retrieve_params.rbi | 2 +- .../verification_session_cancel_params.rbi | 2 +- .../verification_session_create_params.rbi | 10 +- .../verification_session_list_params.rbi | 4 +- .../verification_session_redact_params.rbi | 2 +- .../verification_session_retrieve_params.rbi | 2 +- .../verification_session_update_params.rbi | 8 +- .../params/invoice_add_lines_params.rbi | 18 +- .../params/invoice_attach_payment_params.rbi | 13 +- rbi/stripe/params/invoice_create_params.rbi | 70 +- .../params/invoice_create_preview_params.rbi | 92 +- rbi/stripe/params/invoice_delete_params.rbi | 2 +- .../invoice_finalize_invoice_params.rbi | 2 +- .../params/invoice_item_create_params.rbi | 10 +- .../params/invoice_item_delete_params.rbi | 2 +- .../params/invoice_item_list_params.rbi | 4 +- .../params/invoice_item_retrieve_params.rbi | 2 +- .../params/invoice_item_update_params.rbi | 10 +- .../params/invoice_line_item_list_params.rbi | 2 +- .../invoice_line_item_update_params.rbi | 16 +- rbi/stripe/params/invoice_list_params.rbi | 6 +- .../invoice_mark_uncollectible_params.rbi | 2 +- rbi/stripe/params/invoice_pay_params.rbi | 2 +- .../params/invoice_payment_list_params.rbi | 15 +- .../invoice_payment_retrieve_params.rbi | 2 +- .../params/invoice_remove_lines_params.rbi | 4 +- ...oice_rendering_template_archive_params.rbi | 2 +- ...invoice_rendering_template_list_params.rbi | 2 +- ...ice_rendering_template_retrieve_params.rbi | 2 +- ...ce_rendering_template_unarchive_params.rbi | 2 +- rbi/stripe/params/invoice_retrieve_params.rbi | 2 +- rbi/stripe/params/invoice_search_params.rbi | 2 +- .../params/invoice_send_invoice_params.rbi | 2 +- .../params/invoice_update_lines_params.rbi | 18 +- rbi/stripe/params/invoice_update_params.rbi | 68 +- .../params/invoice_void_invoice_params.rbi | 2 +- .../issuing/authorization_approve_params.rbi | 2 +- .../issuing/authorization_capture_params.rbi | 26 +- .../issuing/authorization_create_params.rbi | 34 +- .../issuing/authorization_decline_params.rbi | 2 +- .../issuing/authorization_expire_params.rbi | 2 +- .../authorization_finalize_amount_params.rbi | 16 +- .../authorization_increment_params.rbi | 2 +- .../issuing/authorization_list_params.rbi | 4 +- .../issuing/authorization_respond_params.rbi | 2 +- .../issuing/authorization_retrieve_params.rbi | 2 +- .../issuing/authorization_reverse_params.rbi | 2 +- .../issuing/authorization_update_params.rbi | 2 +- .../params/issuing/card_create_params.rbi | 16 +- .../issuing/card_deliver_card_params.rbi | 2 +- .../params/issuing/card_fail_card_params.rbi | 2 +- .../params/issuing/card_list_params.rbi | 4 +- .../params/issuing/card_retrieve_params.rbi | 2 +- .../issuing/card_return_card_params.rbi | 2 +- .../params/issuing/card_ship_card_params.rbi | 2 +- .../issuing/card_submit_card_params.rbi | 2 +- .../params/issuing/card_update_params.rbi | 16 +- .../issuing/cardholder_create_params.rbi | 24 +- .../params/issuing/cardholder_list_params.rbi | 4 +- .../issuing/cardholder_retrieve_params.rbi | 2 +- .../issuing/cardholder_update_params.rbi | 24 +- .../params/issuing/dispute_create_params.rbi | 22 +- .../params/issuing/dispute_list_params.rbi | 4 +- .../issuing/dispute_retrieve_params.rbi | 2 +- .../params/issuing/dispute_submit_params.rbi | 2 +- .../params/issuing/dispute_update_params.rbi | 20 +- ...personalization_design_activate_params.rbi | 2 +- .../personalization_design_create_params.rbi | 6 +- ...rsonalization_design_deactivate_params.rbi | 2 +- .../personalization_design_list_params.rbi | 4 +- .../personalization_design_reject_params.rbi | 4 +- ...personalization_design_retrieve_params.rbi | 2 +- .../personalization_design_update_params.rbi | 6 +- .../issuing/physical_bundle_list_params.rbi | 2 +- .../physical_bundle_retrieve_params.rbi | 2 +- .../params/issuing/token_list_params.rbi | 4 +- .../params/issuing/token_retrieve_params.rbi | 2 +- .../params/issuing/token_update_params.rbi | 2 +- ...ransaction_create_force_capture_params.rbi | 28 +- ...nsaction_create_unlinked_refund_params.rbi | 28 +- .../issuing/transaction_list_params.rbi | 4 +- .../issuing/transaction_refund_params.rbi | 2 +- .../issuing/transaction_retrieve_params.rbi | 2 +- .../issuing/transaction_update_params.rbi | 2 +- rbi/stripe/params/mandate_retrieve_params.rbi | 2 +- .../payment_attempt_record_list_params.rbi | 32 + ...payment_attempt_record_retrieve_params.rbi | 15 + ...t_amount_details_line_item_list_params.rbi | 32 + ...t_intent_apply_customer_balance_params.rbi | 2 +- .../params/payment_intent_cancel_params.rbi | 2 +- .../params/payment_intent_capture_params.rbi | 286 +- .../params/payment_intent_confirm_params.rbi | 548 +- .../params/payment_intent_create_params.rbi | 552 +- ..._intent_increment_authorization_params.rbi | 292 +- .../params/payment_intent_list_params.rbi | 4 +- .../params/payment_intent_retrieve_params.rbi | 2 +- .../params/payment_intent_search_params.rbi | 2 +- .../params/payment_intent_update_params.rbi | 540 +- ...ent_intent_verify_microdeposits_params.rbi | 2 +- .../params/payment_link_create_params.rbi | 146 +- .../payment_link_line_item_list_params.rbi | 2 +- .../payment_link_list_line_items_params.rbi | 2 +- .../params/payment_link_list_params.rbi | 2 +- .../params/payment_link_retrieve_params.rbi | 2 +- .../params/payment_link_update_params.rbi | 128 +- .../params/payment_method_attach_params.rbi | 2 +- ...ent_method_configuration_create_params.rbi | 276 +- ...yment_method_configuration_list_params.rbi | 2 +- ...t_method_configuration_retrieve_params.rbi | 2 +- ...ent_method_configuration_update_params.rbi | 276 +- .../params/payment_method_create_params.rbi | 131 +- .../params/payment_method_detach_params.rbi | 2 +- .../payment_method_domain_create_params.rbi | 2 +- .../payment_method_domain_list_params.rbi | 2 +- .../payment_method_domain_retrieve_params.rbi | 2 +- .../payment_method_domain_update_params.rbi | 2 +- .../payment_method_domain_validate_params.rbi | 2 +- .../params/payment_method_list_params.rbi | 4 +- .../params/payment_method_retrieve_params.rbi | 2 +- .../params/payment_method_update_params.rbi | 12 +- ...report_payment_attempt_canceled_params.rbi | 29 + ...d_report_payment_attempt_failed_params.rbi | 29 + ...port_payment_attempt_guaranteed_params.rbi | 29 + ...t_payment_attempt_informational_params.rbi | 147 + ...t_record_report_payment_attempt_params.rbi | 282 + .../payment_record_report_payment_params.rbi | 377 + .../payment_record_report_refund_params.rbi | 113 + .../params/payment_record_retrieve_params.rbi | 15 + rbi/stripe/params/payout_cancel_params.rbi | 2 +- rbi/stripe/params/payout_create_params.rbi | 2 +- rbi/stripe/params/payout_list_params.rbi | 6 +- rbi/stripe/params/payout_retrieve_params.rbi | 2 +- rbi/stripe/params/payout_reverse_params.rbi | 2 +- rbi/stripe/params/payout_update_params.rbi | 2 +- rbi/stripe/params/plan_create_params.rbi | 8 +- rbi/stripe/params/plan_delete_params.rbi | 2 +- rbi/stripe/params/plan_list_params.rbi | 4 +- rbi/stripe/params/plan_retrieve_params.rbi | 2 +- rbi/stripe/params/plan_update_params.rbi | 2 +- rbi/stripe/params/price_create_params.rbi | 18 +- rbi/stripe/params/price_list_params.rbi | 6 +- rbi/stripe/params/price_retrieve_params.rbi | 2 +- rbi/stripe/params/price_search_params.rbi | 2 +- rbi/stripe/params/price_update_params.rbi | 8 +- rbi/stripe/params/product_create_params.rbi | 18 +- rbi/stripe/params/product_delete_params.rbi | 2 +- .../params/product_feature_create_params.rbi | 2 +- .../params/product_feature_delete_params.rbi | 2 +- .../params/product_feature_list_params.rbi | 2 +- .../product_feature_retrieve_params.rbi | 2 +- rbi/stripe/params/product_list_params.rbi | 4 +- rbi/stripe/params/product_retrieve_params.rbi | 2 +- rbi/stripe/params/product_search_params.rbi | 2 +- rbi/stripe/params/product_update_params.rbi | 6 +- .../params/promotion_code_create_params.rbi | 8 +- .../params/promotion_code_list_params.rbi | 4 +- .../params/promotion_code_retrieve_params.rbi | 2 +- .../params/promotion_code_update_params.rbi | 6 +- rbi/stripe/params/quote_accept_params.rbi | 2 +- rbi/stripe/params/quote_cancel_params.rbi | 2 +- ...omputed_upfront_line_items_list_params.rbi | 2 +- rbi/stripe/params/quote_create_params.rbi | 30 +- .../params/quote_finalize_quote_params.rbi | 2 +- .../params/quote_line_item_list_params.rbi | 2 +- ...ist_computed_upfront_line_items_params.rbi | 2 +- .../params/quote_list_line_items_params.rbi | 2 +- rbi/stripe/params/quote_list_params.rbi | 2 +- rbi/stripe/params/quote_pdf_params.rbi | 2 +- rbi/stripe/params/quote_retrieve_params.rbi | 2 +- rbi/stripe/params/quote_update_params.rbi | 24 +- .../radar/early_fraud_warning_list_params.rbi | 4 +- .../early_fraud_warning_retrieve_params.rbi | 2 +- .../params/radar/value_list_create_params.rbi | 2 +- .../params/radar/value_list_delete_params.rbi | 2 +- .../radar/value_list_item_create_params.rbi | 2 +- .../radar/value_list_item_delete_params.rbi | 2 +- .../radar/value_list_item_list_params.rbi | 4 +- .../radar/value_list_item_retrieve_params.rbi | 2 +- .../params/radar/value_list_list_params.rbi | 4 +- .../radar/value_list_retrieve_params.rbi | 2 +- .../params/radar/value_list_update_params.rbi | 2 +- rbi/stripe/params/refund_cancel_params.rbi | 2 +- rbi/stripe/params/refund_create_params.rbi | 2 +- rbi/stripe/params/refund_expire_params.rbi | 2 +- rbi/stripe/params/refund_list_params.rbi | 4 +- rbi/stripe/params/refund_retrieve_params.rbi | 2 +- rbi/stripe/params/refund_update_params.rbi | 2 +- .../reporting/report_run_create_params.rbi | 4 +- .../reporting/report_run_list_params.rbi | 4 +- .../reporting/report_run_retrieve_params.rbi | 2 +- .../reporting/report_type_list_params.rbi | 2 +- .../reporting/report_type_retrieve_params.rbi | 2 +- rbi/stripe/params/review_approve_params.rbi | 2 +- rbi/stripe/params/review_list_params.rbi | 4 +- rbi/stripe/params/review_retrieve_params.rbi | 2 +- .../params/setup_attempt_list_params.rbi | 4 +- .../params/setup_intent_cancel_params.rbi | 2 +- .../params/setup_intent_confirm_params.rbi | 168 +- .../params/setup_intent_create_params.rbi | 182 +- .../params/setup_intent_list_params.rbi | 4 +- .../params/setup_intent_retrieve_params.rbi | 2 +- .../params/setup_intent_update_params.rbi | 170 +- ...tup_intent_verify_microdeposits_params.rbi | 2 +- .../params/shipping_rate_create_params.rbi | 12 +- .../params/shipping_rate_list_params.rbi | 4 +- .../params/shipping_rate_retrieve_params.rbi | 2 +- .../params/shipping_rate_update_params.rbi | 6 +- .../sigma/scheduled_query_run_list_params.rbi | 2 +- .../scheduled_query_run_retrieve_params.rbi | 2 +- rbi/stripe/params/source_create_params.rbi | 26 +- rbi/stripe/params/source_detach_params.rbi | 2 +- rbi/stripe/params/source_retrieve_params.rbi | 2 +- .../params/source_transaction_list_params.rbi | 2 +- rbi/stripe/params/source_update_params.rbi | 22 +- rbi/stripe/params/source_verify_params.rbi | 2 +- .../params/subscription_cancel_params.rbi | 4 +- .../params/subscription_create_params.rbi | 80 +- .../subscription_delete_discount_params.rbi | 2 +- .../subscription_item_create_params.rbi | 10 +- .../subscription_item_delete_params.rbi | 2 +- .../params/subscription_item_list_params.rbi | 2 +- .../subscription_item_retrieve_params.rbi | 2 +- .../subscription_item_update_params.rbi | 10 +- .../params/subscription_list_params.rbi | 10 +- .../params/subscription_migrate_params.rbi | 6 +- .../params/subscription_resume_params.rbi | 2 +- .../params/subscription_retrieve_params.rbi | 2 +- .../subscription_schedule_cancel_params.rbi | 2 +- .../subscription_schedule_create_params.rbi | 60 +- .../subscription_schedule_list_params.rbi | 10 +- .../subscription_schedule_release_params.rbi | 2 +- .../subscription_schedule_retrieve_params.rbi | 2 +- .../subscription_schedule_update_params.rbi | 56 +- .../params/subscription_search_params.rbi | 2 +- .../params/subscription_update_params.rbi | 78 +- .../params/tax/calculation_create_params.rbi | 16 +- .../tax/calculation_line_item_list_params.rbi | 2 +- .../calculation_list_line_items_params.rbi | 2 +- .../tax/calculation_retrieve_params.rbi | 2 +- .../params/tax/registration_create_params.rbi | 345 +- .../params/tax/registration_list_params.rbi | 2 +- .../tax/registration_retrieve_params.rbi | 2 +- .../params/tax/registration_update_params.rbi | 2 +- .../params/tax/settings_retrieve_params.rbi | 2 +- .../params/tax/settings_update_params.rbi | 8 +- ...saction_create_from_calculation_params.rbi | 2 +- .../transaction_create_reversal_params.rbi | 6 +- .../tax/transaction_line_item_list_params.rbi | 2 +- .../transaction_list_line_items_params.rbi | 2 +- .../tax/transaction_retrieve_params.rbi | 2 +- rbi/stripe/params/tax_code_list_params.rbi | 2 +- .../params/tax_code_retrieve_params.rbi | 2 +- rbi/stripe/params/tax_id_create_params.rbi | 4 +- rbi/stripe/params/tax_id_delete_params.rbi | 2 +- rbi/stripe/params/tax_id_list_params.rbi | 4 +- rbi/stripe/params/tax_id_retrieve_params.rbi | 2 +- rbi/stripe/params/tax_rate_create_params.rbi | 2 +- rbi/stripe/params/tax_rate_list_params.rbi | 4 +- .../params/tax_rate_retrieve_params.rbi | 2 +- rbi/stripe/params/tax_rate_update_params.rbi | 2 +- .../terminal/configuration_create_params.rbi | 101 +- .../terminal/configuration_delete_params.rbi | 2 +- .../terminal/configuration_list_params.rbi | 2 +- .../configuration_retrieve_params.rbi | 2 +- .../terminal/configuration_update_params.rbi | 101 +- .../connection_token_create_params.rbi | 2 +- .../terminal/location_create_params.rbi | 8 +- .../terminal/location_delete_params.rbi | 2 +- .../params/terminal/location_list_params.rbi | 2 +- .../terminal/location_retrieve_params.rbi | 2 +- .../terminal/location_update_params.rbi | 8 +- .../terminal/reader_cancel_action_params.rbi | 2 +- .../terminal/reader_collect_inputs_params.rbi | 26 +- .../reader_collect_payment_method_params.rbi | 10 +- .../reader_confirm_payment_intent_params.rbi | 8 +- .../params/terminal/reader_create_params.rbi | 2 +- .../params/terminal/reader_delete_params.rbi | 2 +- .../params/terminal/reader_list_params.rbi | 2 +- .../reader_present_payment_method_params.rbi | 10 +- .../reader_process_payment_intent_params.rbi | 10 +- .../reader_process_setup_intent_params.rbi | 8 +- .../terminal/reader_refund_payment_params.rbi | 6 +- .../terminal/reader_retrieve_params.rbi | 2 +- .../reader_set_reader_display_params.rbi | 18 +- ...reader_succeed_input_collection_params.rbi | 2 +- ...reader_timeout_input_collection_params.rbi | 2 +- .../params/terminal/reader_update_params.rbi | 2 +- .../confirmation_token_create_params.rbi | 122 +- .../customer_fund_cash_balance_params.rbi | 2 +- .../issuing/authorization_capture_params.rbi | 26 +- .../issuing/authorization_create_params.rbi | 34 +- .../issuing/authorization_expire_params.rbi | 2 +- .../authorization_finalize_amount_params.rbi | 16 +- .../authorization_increment_params.rbi | 2 +- .../issuing/authorization_respond_params.rbi | 2 +- .../issuing/authorization_reverse_params.rbi | 2 +- .../issuing/card_deliver_card_params.rbi | 2 +- .../issuing/card_fail_card_params.rbi | 2 +- .../issuing/card_return_card_params.rbi | 2 +- .../issuing/card_ship_card_params.rbi | 2 +- .../issuing/card_submit_card_params.rbi | 2 +- ...personalization_design_activate_params.rbi | 2 +- ...rsonalization_design_deactivate_params.rbi | 2 +- .../personalization_design_reject_params.rbi | 4 +- ...ransaction_create_force_capture_params.rbi | 28 +- ...nsaction_create_unlinked_refund_params.rbi | 28 +- .../issuing/transaction_refund_params.rbi | 2 +- .../test_helpers/refund_expire_params.rbi | 2 +- .../reader_present_payment_method_params.rbi | 10 +- ...reader_succeed_input_collection_params.rbi | 2 +- ...reader_timeout_input_collection_params.rbi | 2 +- .../test_clock_advance_params.rbi | 2 +- .../test_helpers/test_clock_create_params.rbi | 2 +- .../test_helpers/test_clock_delete_params.rbi | 2 +- .../test_helpers/test_clock_list_params.rbi | 2 +- .../test_clock_retrieve_params.rbi | 2 +- .../treasury/inbound_transfer_fail_params.rbi | 4 +- ...ransfer_return_inbound_transfer_params.rbi | 2 +- .../inbound_transfer_succeed_params.rbi | 2 +- .../treasury/outbound_payment_fail_params.rbi | 2 +- .../treasury/outbound_payment_post_params.rbi | 2 +- ...payment_return_outbound_payment_params.rbi | 4 +- .../outbound_payment_update_params.rbi | 8 +- .../outbound_transfer_fail_params.rbi | 2 +- .../outbound_transfer_post_params.rbi | 2 +- ...ansfer_return_outbound_transfer_params.rbi | 4 +- .../outbound_transfer_update_params.rbi | 8 +- .../received_credit_create_params.rbi | 6 +- .../treasury/received_debit_create_params.rbi | 6 +- rbi/stripe/params/token_create_params.rbi | 121 +- rbi/stripe/params/token_retrieve_params.rbi | 2 +- rbi/stripe/params/topup_cancel_params.rbi | 2 +- rbi/stripe/params/topup_create_params.rbi | 2 +- rbi/stripe/params/topup_list_params.rbi | 6 +- rbi/stripe/params/topup_retrieve_params.rbi | 2 +- rbi/stripe/params/topup_update_params.rbi | 2 +- rbi/stripe/params/transfer_create_params.rbi | 2 +- rbi/stripe/params/transfer_list_params.rbi | 4 +- .../params/transfer_retrieve_params.rbi | 2 +- .../transfer_reversal_create_params.rbi | 2 +- .../params/transfer_reversal_list_params.rbi | 2 +- .../transfer_reversal_retrieve_params.rbi | 2 +- .../transfer_reversal_update_params.rbi | 2 +- rbi/stripe/params/transfer_update_params.rbi | 2 +- .../credit_reversal_create_params.rbi | 2 +- .../treasury/credit_reversal_list_params.rbi | 2 +- .../credit_reversal_retrieve_params.rbi | 2 +- .../treasury/debit_reversal_create_params.rbi | 2 +- .../treasury/debit_reversal_list_params.rbi | 2 +- .../debit_reversal_retrieve_params.rbi | 2 +- .../financial_account_close_params.rbi | 4 +- .../financial_account_create_params.rbi | 32 +- ...ncial_account_features_retrieve_params.rbi | 2 +- ...nancial_account_features_update_params.rbi | 28 +- .../financial_account_list_params.rbi | 4 +- ...ncial_account_retrieve_features_params.rbi | 2 +- .../financial_account_retrieve_params.rbi | 2 +- ...nancial_account_update_features_params.rbi | 28 +- .../financial_account_update_params.rbi | 34 +- .../inbound_transfer_cancel_params.rbi | 2 +- .../inbound_transfer_create_params.rbi | 2 +- .../treasury/inbound_transfer_fail_params.rbi | 4 +- .../treasury/inbound_transfer_list_params.rbi | 2 +- .../inbound_transfer_retrieve_params.rbi | 2 +- ...ransfer_return_inbound_transfer_params.rbi | 2 +- .../inbound_transfer_succeed_params.rbi | 2 +- .../outbound_payment_cancel_params.rbi | 2 +- .../outbound_payment_create_params.rbi | 16 +- .../treasury/outbound_payment_fail_params.rbi | 2 +- .../treasury/outbound_payment_list_params.rbi | 4 +- .../treasury/outbound_payment_post_params.rbi | 2 +- .../outbound_payment_retrieve_params.rbi | 2 +- ...payment_return_outbound_payment_params.rbi | 4 +- .../outbound_payment_update_params.rbi | 8 +- .../outbound_transfer_cancel_params.rbi | 2 +- .../outbound_transfer_create_params.rbi | 8 +- .../outbound_transfer_fail_params.rbi | 2 +- .../outbound_transfer_list_params.rbi | 2 +- .../outbound_transfer_post_params.rbi | 2 +- .../outbound_transfer_retrieve_params.rbi | 2 +- ...ansfer_return_outbound_transfer_params.rbi | 4 +- .../outbound_transfer_update_params.rbi | 8 +- .../received_credit_create_params.rbi | 6 +- .../treasury/received_credit_list_params.rbi | 4 +- .../received_credit_retrieve_params.rbi | 2 +- .../treasury/received_debit_create_params.rbi | 6 +- .../treasury/received_debit_list_params.rbi | 2 +- .../received_debit_retrieve_params.rbi | 2 +- .../transaction_entry_list_params.rbi | 6 +- .../transaction_entry_retrieve_params.rbi | 2 +- .../treasury/transaction_list_params.rbi | 8 +- .../treasury/transaction_retrieve_params.rbi | 2 +- .../meter_event_adjustment_create_params.rbi | 4 +- .../v2/billing/meter_event_create_params.rbi | 2 +- .../meter_event_session_create_params.rbi | 2 +- .../meter_event_stream_create_params.rbi | 4 +- .../core/event_destination_create_params.rbi | 6 +- .../core/event_destination_delete_params.rbi | 2 +- .../core/event_destination_disable_params.rbi | 2 +- .../core/event_destination_enable_params.rbi | 2 +- .../v2/core/event_destination_list_params.rbi | 2 +- .../v2/core/event_destination_ping_params.rbi | 2 +- .../event_destination_retrieve_params.rbi | 2 +- .../core/event_destination_update_params.rbi | 4 +- .../params/v2/core/event_list_params.rbi | 45 +- .../params/v2/core/event_retrieve_params.rbi | 2 +- .../params/webhook_endpoint_create_params.rbi | 2 +- .../params/webhook_endpoint_delete_params.rbi | 2 +- .../params/webhook_endpoint_list_params.rbi | 2 +- .../webhook_endpoint_retrieve_params.rbi | 2 +- .../params/webhook_endpoint_update_params.rbi | 2 +- rbi/stripe/resources/account.rbi | 135 +- rbi/stripe/resources/account_link.rbi | 2 +- rbi/stripe/resources/account_session.rbi | 80 +- rbi/stripe/resources/apple_pay_domain.rbi | 8 +- rbi/stripe/resources/application_fee.rbi | 16 +- .../resources/application_fee_refund.rbi | 4 +- rbi/stripe/resources/apps/secret.rbi | 10 +- rbi/stripe/resources/balance.rbi | 36 +- rbi/stripe/resources/balance_settings.rbi | 8 +- rbi/stripe/resources/balance_transaction.rbi | 6 +- rbi/stripe/resources/bank_account.rbi | 12 +- rbi/stripe/resources/billing/alert.rbi | 24 +- .../resources/billing/alert_triggered.rbi | 2 +- .../billing/credit_balance_summary.rbi | 12 +- .../billing/credit_balance_transaction.rbi | 26 +- rbi/stripe/resources/billing/credit_grant.rbi | 28 +- rbi/stripe/resources/billing/meter.rbi | 22 +- rbi/stripe/resources/billing/meter_event.rbi | 2 +- .../billing/meter_event_adjustment.rbi | 4 +- .../billing_portal/configuration.rbi | 36 +- .../resources/billing_portal/session.rbi | 26 +- rbi/stripe/resources/capability.rbi | 14 +- rbi/stripe/resources/card.rbi | 6 +- rbi/stripe/resources/cash_balance.rbi | 2 +- rbi/stripe/resources/charge.rbi | 262 +- rbi/stripe/resources/checkout/session.rbi | 281 +- rbi/stripe/resources/climate/order.rbi | 20 +- rbi/stripe/resources/climate/product.rbi | 6 +- rbi/stripe/resources/climate/supplier.rbi | 4 +- rbi/stripe/resources/confirmation_token.rbi | 194 +- .../resources/connect_collection_transfer.rbi | 2 +- rbi/stripe/resources/country_spec.rbi | 8 +- rbi/stripe/resources/coupon.rbi | 14 +- rbi/stripe/resources/credit_note.rbi | 70 +- .../resources/credit_note_line_item.rbi | 16 +- rbi/stripe/resources/customer.rbi | 65 +- .../customer_balance_transaction.rbi | 8 +- .../customer_cash_balance_transaction.rbi | 36 +- rbi/stripe/resources/customer_session.rbi | 99 +- rbi/stripe/resources/discount.rbi | 8 +- rbi/stripe/resources/dispute.rbi | 66 +- .../entitlements/active_entitlement.rbi | 4 +- .../active_entitlement_summary.rbi | 2 +- rbi/stripe/resources/entitlements/feature.rbi | 6 +- rbi/stripe/resources/ephemeral_key.rbi | 4 +- rbi/stripe/resources/event.rbi | 6 +- rbi/stripe/resources/exchange_rate.rbi | 2 +- rbi/stripe/resources/file.rbi | 6 +- rbi/stripe/resources/file_link.rbi | 8 +- .../financial_connections/account.rbi | 46 +- .../account_ownership.rbi | 2 +- .../financial_connections/session.rbi | 12 +- .../financial_connections/transaction.rbi | 4 +- rbi/stripe/resources/forwarding/request.rbi | 14 +- rbi/stripe/resources/funding_instructions.rbi | 40 +- .../identity/verification_report.rbi | 38 +- .../identity/verification_session.rbi | 42 +- rbi/stripe/resources/invoice.rbi | 186 +- rbi/stripe/resources/invoice_item.rbi | 36 +- rbi/stripe/resources/invoice_line_item.rbi | 40 +- rbi/stripe/resources/invoice_payment.rbi | 15 +- .../resources/invoice_rendering_template.rbi | 10 +- .../resources/issuing/authorization.rbi | 60 +- rbi/stripe/resources/issuing/card.rbi | 34 +- rbi/stripe/resources/issuing/cardholder.rbi | 34 +- rbi/stripe/resources/issuing/dispute.rbi | 56 +- .../issuing/personalization_design.rbi | 16 +- .../resources/issuing/physical_bundle.rbi | 4 +- rbi/stripe/resources/issuing/token.rbi | 18 +- rbi/stripe/resources/issuing/transaction.rbi | 48 +- rbi/stripe/resources/line_item.rbi | 10 +- rbi/stripe/resources/mandate.rbi | 46 +- .../resources/payment_attempt_record.rbi | 2012 ++ rbi/stripe/resources/payment_intent.rbi | 359 +- ...ayment_intent_amount_details_line_item.rbi | 128 + rbi/stripe/resources/payment_link.rbi | 149 +- rbi/stripe/resources/payment_method.rbi | 224 +- .../payment_method_configuration.rbi | 278 +- .../resources/payment_method_domain.rbi | 34 +- rbi/stripe/resources/payment_record.rbi | 2093 ++ rbi/stripe/resources/payout.rbi | 32 +- rbi/stripe/resources/person.rbi | 48 +- rbi/stripe/resources/plan.rbi | 16 +- rbi/stripe/resources/price.rbi | 26 +- rbi/stripe/resources/product.rbi | 22 +- rbi/stripe/resources/product_feature.rbi | 2 +- rbi/stripe/resources/promotion_code.rbi | 16 +- rbi/stripe/resources/quote.rbi | 118 +- .../resources/radar/early_fraud_warning.rbi | 6 +- rbi/stripe/resources/radar/value_list.rbi | 12 +- .../resources/radar/value_list_item.rbi | 8 +- rbi/stripe/resources/refund.rbi | 111 +- rbi/stripe/resources/reporting/report_run.rbi | 8 +- .../resources/reporting/report_type.rbi | 2 +- rbi/stripe/resources/reversal.rbi | 8 +- rbi/stripe/resources/review.rbi | 14 +- rbi/stripe/resources/setup_attempt.rbi | 92 +- rbi/stripe/resources/setup_intent.rbi | 95 +- rbi/stripe/resources/shipping_rate.rbi | 18 +- .../resources/sigma/scheduled_query_run.rbi | 6 +- rbi/stripe/resources/source.rbi | 66 +- .../resources/source_mandate_notification.rbi | 8 +- rbi/stripe/resources/source_transaction.rbi | 10 +- rbi/stripe/resources/subscription.rbi | 120 +- rbi/stripe/resources/subscription_item.rbi | 20 +- .../resources/subscription_schedule.rbi | 128 +- rbi/stripe/resources/tax/calculation.rbi | 32 +- .../resources/tax/calculation_line_item.rbi | 6 +- rbi/stripe/resources/tax/registration.rbi | 301 +- rbi/stripe/resources/tax/settings.rbi | 12 +- rbi/stripe/resources/tax/transaction.rbi | 30 +- .../resources/tax/transaction_line_item.rbi | 2 +- rbi/stripe/resources/tax_code.rbi | 2 +- rbi/stripe/resources/tax_id.rbi | 20 +- rbi/stripe/resources/tax_rate.rbi | 8 +- .../resources/terminal/configuration.rbi | 103 +- .../resources/terminal/connection_token.rbi | 2 +- rbi/stripe/resources/terminal/location.rbi | 16 +- rbi/stripe/resources/terminal/reader.rbi | 167 +- .../resources/test_helpers/test_clock.rbi | 16 +- rbi/stripe/resources/token.rbi | 6 +- rbi/stripe/resources/topup.rbi | 14 +- rbi/stripe/resources/transfer.rbi | 16 +- .../resources/treasury/credit_reversal.rbi | 8 +- .../resources/treasury/debit_reversal.rbi | 10 +- .../resources/treasury/financial_account.rbi | 32 +- .../treasury/financial_account_features.rbi | 44 +- .../resources/treasury/inbound_transfer.rbi | 26 +- .../resources/treasury/outbound_payment.rbi | 36 +- .../resources/treasury/outbound_transfer.rbi | 34 +- .../resources/treasury/received_credit.rbi | 28 +- .../resources/treasury/received_debit.rbi | 18 +- rbi/stripe/resources/treasury/transaction.rbi | 26 +- .../resources/treasury/transaction_entry.rbi | 24 +- .../v2/billing/meter_event_adjustment.rbi | 2 +- rbi/stripe/resources/v2/core/event.rbi | 4 +- .../resources/v2/core/event_destination.rbi | 8 +- rbi/stripe/resources/webhook_endpoint.rbi | 10 +- .../services/account_capability_service.rbi | 6 +- .../account_external_account_service.rbi | 10 +- rbi/stripe/services/account_link_service.rbi | 2 +- .../services/account_login_link_service.rbi | 2 +- .../services/account_person_service.rbi | 10 +- rbi/stripe/services/account_service.rbi | 14 +- .../services/account_session_service.rbi | 2 +- .../services/apple_pay_domain_service.rbi | 8 +- .../application_fee_refund_service.rbi | 8 +- .../services/application_fee_service.rbi | 4 +- rbi/stripe/services/apps/secret_service.rbi | 8 +- rbi/stripe/services/balance_service.rbi | 2 +- .../services/balance_settings_service.rbi | 4 +- .../services/balance_transaction_service.rbi | 4 +- rbi/stripe/services/billing/alert_service.rbi | 12 +- .../credit_balance_summary_service.rbi | 2 +- .../credit_balance_transaction_service.rbi | 4 +- .../services/billing/credit_grant_service.rbi | 12 +- .../meter_event_adjustment_service.rbi | 2 +- .../services/billing/meter_event_service.rbi | 2 +- .../billing/meter_event_summary_service.rbi | 2 +- rbi/stripe/services/billing/meter_service.rbi | 12 +- .../billing_portal/configuration_service.rbi | 8 +- .../billing_portal/session_service.rbi | 2 +- rbi/stripe/services/charge_service.rbi | 12 +- .../checkout/session_line_item_service.rbi | 2 +- .../services/checkout/session_service.rbi | 10 +- rbi/stripe/services/climate/order_service.rbi | 10 +- .../services/climate/product_service.rbi | 4 +- .../services/climate/supplier_service.rbi | 4 +- .../services/confirmation_token_service.rbi | 2 +- rbi/stripe/services/country_spec_service.rbi | 4 +- rbi/stripe/services/coupon_service.rbi | 10 +- .../credit_note_line_item_service.rbi | 2 +- .../credit_note_preview_lines_service.rbi | 2 +- rbi/stripe/services/credit_note_service.rbi | 12 +- .../customer_balance_transaction_service.rbi | 8 +- .../customer_cash_balance_service.rbi | 4 +- ...tomer_cash_balance_transaction_service.rbi | 4 +- .../customer_funding_instructions_service.rbi | 2 +- .../customer_payment_method_service.rbi | 4 +- .../customer_payment_source_service.rbi | 12 +- rbi/stripe/services/customer_service.rbi | 14 +- .../services/customer_session_service.rbi | 2 +- .../services/customer_tax_id_service.rbi | 8 +- rbi/stripe/services/dispute_service.rbi | 8 +- .../active_entitlement_service.rbi | 4 +- .../services/entitlements/feature_service.rbi | 8 +- rbi/stripe/services/ephemeral_key_service.rbi | 4 +- rbi/stripe/services/event_service.rbi | 4 +- rbi/stripe/services/exchange_rate_service.rbi | 4 +- rbi/stripe/services/file_link_service.rbi | 8 +- rbi/stripe/services/file_service.rbi | 6 +- .../account_owner_service.rbi | 2 +- .../financial_connections/account_service.rbi | 14 +- .../financial_connections/session_service.rbi | 4 +- .../transaction_service.rbi | 4 +- .../services/forwarding/request_service.rbi | 6 +- .../identity/verification_report_service.rbi | 4 +- .../identity/verification_session_service.rbi | 12 +- rbi/stripe/services/invoice_item_service.rbi | 10 +- .../services/invoice_line_item_service.rbi | 4 +- .../services/invoice_payment_service.rbi | 4 +- .../invoice_rendering_template_service.rbi | 8 +- rbi/stripe/services/invoice_service.rbi | 32 +- .../issuing/authorization_service.rbi | 10 +- rbi/stripe/services/issuing/card_service.rbi | 8 +- .../services/issuing/cardholder_service.rbi | 8 +- .../services/issuing/dispute_service.rbi | 10 +- .../personalization_design_service.rbi | 8 +- .../issuing/physical_bundle_service.rbi | 4 +- rbi/stripe/services/issuing/token_service.rbi | 6 +- .../services/issuing/transaction_service.rbi | 6 +- rbi/stripe/services/mandate_service.rbi | 2 +- .../payment_attempt_record_service.rbi | 19 + ...ntent_amount_details_line_item_service.rbi | 13 + .../services/payment_intent_service.rbi | 23 +- .../payment_link_line_item_service.rbi | 2 +- rbi/stripe/services/payment_link_service.rbi | 8 +- .../payment_method_configuration_service.rbi | 8 +- .../payment_method_domain_service.rbi | 10 +- .../services/payment_method_service.rbi | 12 +- .../services/payment_record_service.rbi | 62 + rbi/stripe/services/payout_service.rbi | 14 +- rbi/stripe/services/plan_service.rbi | 10 +- rbi/stripe/services/price_service.rbi | 10 +- .../services/product_feature_service.rbi | 8 +- rbi/stripe/services/product_service.rbi | 12 +- .../services/promotion_code_service.rbi | 8 +- ...te_computed_upfront_line_items_service.rbi | 2 +- .../services/quote_line_item_service.rbi | 2 +- rbi/stripe/services/quote_service.rbi | 14 +- .../radar/early_fraud_warning_service.rbi | 4 +- .../radar/value_list_item_service.rbi | 8 +- .../services/radar/value_list_service.rbi | 10 +- rbi/stripe/services/refund_service.rbi | 10 +- .../services/reporting/report_run_service.rbi | 6 +- .../reporting/report_type_service.rbi | 4 +- rbi/stripe/services/review_service.rbi | 6 +- rbi/stripe/services/setup_attempt_service.rbi | 2 +- rbi/stripe/services/setup_intent_service.rbi | 14 +- rbi/stripe/services/shipping_rate_service.rbi | 8 +- .../sigma/scheduled_query_run_service.rbi | 4 +- rbi/stripe/services/source_service.rbi | 10 +- .../services/source_transaction_service.rbi | 2 +- .../services/subscription_item_service.rbi | 10 +- .../subscription_schedule_service.rbi | 12 +- rbi/stripe/services/subscription_service.rbi | 18 +- .../tax/calculation_line_item_service.rbi | 2 +- .../services/tax/calculation_service.rbi | 4 +- .../services/tax/registration_service.rbi | 8 +- rbi/stripe/services/tax/settings_service.rbi | 4 +- .../tax/transaction_line_item_service.rbi | 2 +- .../services/tax/transaction_service.rbi | 6 +- rbi/stripe/services/tax_code_service.rbi | 4 +- rbi/stripe/services/tax_id_service.rbi | 8 +- rbi/stripe/services/tax_rate_service.rbi | 8 +- .../terminal/configuration_service.rbi | 10 +- .../terminal/connection_token_service.rbi | 2 +- .../services/terminal/location_service.rbi | 10 +- .../services/terminal/reader_service.rbi | 42 +- .../confirmation_token_service.rbi | 2 +- .../test_helpers/customer_service.rbi | 2 +- .../issuing/authorization_service.rbi | 14 +- .../test_helpers/issuing/card_service.rbi | 10 +- .../personalization_design_service.rbi | 6 +- .../issuing/transaction_service.rbi | 6 +- .../services/test_helpers/refund_service.rbi | 2 +- .../test_helpers/terminal/reader_service.rbi | 6 +- .../test_helpers/test_clock_service.rbi | 10 +- .../treasury/inbound_transfer_service.rbi | 6 +- .../treasury/outbound_payment_service.rbi | 8 +- .../treasury/outbound_transfer_service.rbi | 8 +- .../treasury/received_credit_service.rbi | 2 +- .../treasury/received_debit_service.rbi | 2 +- rbi/stripe/services/token_service.rbi | 4 +- rbi/stripe/services/topup_service.rbi | 10 +- .../services/transfer_reversal_service.rbi | 8 +- rbi/stripe/services/transfer_service.rbi | 8 +- .../treasury/credit_reversal_service.rbi | 6 +- .../treasury/debit_reversal_service.rbi | 6 +- .../financial_account_features_service.rbi | 4 +- .../treasury/financial_account_service.rbi | 10 +- .../treasury/inbound_transfer_service.rbi | 8 +- .../treasury/outbound_payment_service.rbi | 8 +- .../treasury/outbound_transfer_service.rbi | 8 +- .../treasury/received_credit_service.rbi | 4 +- .../treasury/received_debit_service.rbi | 4 +- .../treasury/transaction_entry_service.rbi | 4 +- .../services/treasury/transaction_service.rbi | 4 +- rbi/stripe/services/v1_services.rbi | 2 + .../meter_event_adjustment_service.rbi | 2 +- .../v2/billing/meter_event_service.rbi | 2 +- .../billing/meter_event_session_service.rbi | 2 +- .../v2/core/event_destination_service.rbi | 16 +- rbi/stripe/services/v2/core/event_service.rbi | 4 +- .../services/webhook_endpoint_service.rbi | 10 +- test/stripe/generated_examples_test.rb | 9 +- 1616 files changed, 41056 insertions(+), 18284 deletions(-) create mode 100644 lib/stripe/params/payment_attempt_record_list_params.rb create mode 100644 lib/stripe/params/payment_attempt_record_retrieve_params.rb create mode 100644 lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb create mode 100644 lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb create mode 100644 lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb create mode 100644 lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb create mode 100644 lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb create mode 100644 lib/stripe/params/payment_record_report_payment_attempt_params.rb create mode 100644 lib/stripe/params/payment_record_report_payment_params.rb create mode 100644 lib/stripe/params/payment_record_report_refund_params.rb create mode 100644 lib/stripe/params/payment_record_retrieve_params.rb create mode 100644 lib/stripe/resources/payment_attempt_record.rb create mode 100644 lib/stripe/resources/payment_intent_amount_details_line_item.rb create mode 100644 lib/stripe/resources/payment_record.rb create mode 100644 lib/stripe/services/payment_attempt_record_service.rb create mode 100644 lib/stripe/services/payment_intent_amount_details_line_item_service.rb create mode 100644 lib/stripe/services/payment_record_service.rb create mode 100644 rbi/stripe/params/payment_attempt_record_list_params.rbi create mode 100644 rbi/stripe/params/payment_attempt_record_retrieve_params.rbi create mode 100644 rbi/stripe/params/payment_intent_amount_details_line_item_list_params.rbi create mode 100644 rbi/stripe/params/payment_record_report_payment_attempt_canceled_params.rbi create mode 100644 rbi/stripe/params/payment_record_report_payment_attempt_failed_params.rbi create mode 100644 rbi/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rbi create mode 100644 rbi/stripe/params/payment_record_report_payment_attempt_informational_params.rbi create mode 100644 rbi/stripe/params/payment_record_report_payment_attempt_params.rbi create mode 100644 rbi/stripe/params/payment_record_report_payment_params.rbi create mode 100644 rbi/stripe/params/payment_record_report_refund_params.rbi create mode 100644 rbi/stripe/params/payment_record_retrieve_params.rbi create mode 100644 rbi/stripe/resources/payment_attempt_record.rbi create mode 100644 rbi/stripe/resources/payment_intent_amount_details_line_item.rbi create mode 100644 rbi/stripe/resources/payment_record.rbi create mode 100644 rbi/stripe/services/payment_attempt_record_service.rbi create mode 100644 rbi/stripe/services/payment_intent_amount_details_line_item_service.rbi create mode 100644 rbi/stripe/services/payment_record_service.rbi diff --git a/API_VERSION b/API_VERSION index fb725068..7fa3a2d3 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -2025-09-30.clover \ No newline at end of file +577fcb57736b925392ea563c0284df9002c75ac9 \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index f0bb0d52..edaae7f4 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2028 \ No newline at end of file +v2099 \ No newline at end of file diff --git a/lib/stripe/api_version.rb b/lib/stripe/api_version.rb index 2666b78b..589d3c09 100644 --- a/lib/stripe/api_version.rb +++ b/lib/stripe/api_version.rb @@ -3,7 +3,7 @@ module Stripe module ApiVersion - CURRENT = "2025-09-30.clover" + CURRENT = "2025-10-29.clover" CURRENT_MAJOR = "clover" end end diff --git a/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb b/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb index 450480dd..b1939188 100644 --- a/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +++ b/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb @@ -9,11 +9,11 @@ module Stripe "v1.billing.meter.error_report_triggered" end - class V1BillingMeterErrorReportTriggeredEventData < Stripe::StripeObject - class Reason < Stripe::StripeObject - class ErrorType < Stripe::StripeObject - class SampleError < Stripe::StripeObject - class Request < Stripe::StripeObject + class V1BillingMeterErrorReportTriggeredEventData < ::Stripe::StripeObject + class Reason < ::Stripe::StripeObject + class ErrorType < ::Stripe::StripeObject + class SampleError < ::Stripe::StripeObject + class Request < ::Stripe::StripeObject # The request idempotency key. attr_reader :identifier diff --git a/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb b/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb index 4e671dc7..fdbf9652 100644 --- a/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +++ b/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb @@ -9,11 +9,11 @@ module Stripe "v1.billing.meter.no_meter_found" end - class V1BillingMeterNoMeterFoundEventData < Stripe::StripeObject - class Reason < Stripe::StripeObject - class ErrorType < Stripe::StripeObject - class SampleError < Stripe::StripeObject - class Request < Stripe::StripeObject + class V1BillingMeterNoMeterFoundEventData < ::Stripe::StripeObject + class Reason < ::Stripe::StripeObject + class ErrorType < ::Stripe::StripeObject + class SampleError < ::Stripe::StripeObject + class Request < ::Stripe::StripeObject # The request idempotency key. attr_reader :identifier diff --git a/lib/stripe/object_types.rb b/lib/stripe/object_types.rb index 1e90101a..bf2f4a07 100644 --- a/lib/stripe/object_types.rb +++ b/lib/stripe/object_types.rb @@ -88,11 +88,14 @@ module Stripe LineItem.object_name => LineItem, LoginLink.object_name => LoginLink, Mandate.object_name => Mandate, + PaymentAttemptRecord.object_name => PaymentAttemptRecord, PaymentIntent.object_name => PaymentIntent, + PaymentIntentAmountDetailsLineItem.object_name => PaymentIntentAmountDetailsLineItem, PaymentLink.object_name => PaymentLink, PaymentMethod.object_name => PaymentMethod, PaymentMethodConfiguration.object_name => PaymentMethodConfiguration, PaymentMethodDomain.object_name => PaymentMethodDomain, + PaymentRecord.object_name => PaymentRecord, Payout.object_name => Payout, Person.object_name => Person, Plan.object_name => Plan, diff --git a/lib/stripe/params.rb b/lib/stripe/params.rb index 20dfc1c9..3994015d 100644 --- a/lib/stripe/params.rb +++ b/lib/stripe/params.rb @@ -271,6 +271,9 @@ require "stripe/params/issuing/transaction_refund_params" require "stripe/params/issuing/transaction_retrieve_params" require "stripe/params/issuing/transaction_update_params" require "stripe/params/mandate_retrieve_params" +require "stripe/params/payment_attempt_record_list_params" +require "stripe/params/payment_attempt_record_retrieve_params" +require "stripe/params/payment_intent_amount_details_line_item_list_params" require "stripe/params/payment_intent_apply_customer_balance_params" require "stripe/params/payment_intent_cancel_params" require "stripe/params/payment_intent_capture_params" @@ -303,6 +306,14 @@ require "stripe/params/payment_method_domain_validate_params" require "stripe/params/payment_method_list_params" require "stripe/params/payment_method_retrieve_params" require "stripe/params/payment_method_update_params" +require "stripe/params/payment_record_report_payment_attempt_canceled_params" +require "stripe/params/payment_record_report_payment_attempt_failed_params" +require "stripe/params/payment_record_report_payment_attempt_guaranteed_params" +require "stripe/params/payment_record_report_payment_attempt_informational_params" +require "stripe/params/payment_record_report_payment_attempt_params" +require "stripe/params/payment_record_report_payment_params" +require "stripe/params/payment_record_report_refund_params" +require "stripe/params/payment_record_retrieve_params" require "stripe/params/payout_cancel_params" require "stripe/params/payout_create_params" require "stripe/params/payout_list_params" diff --git a/lib/stripe/params/account_capability_list_params.rb b/lib/stripe/params/account_capability_list_params.rb index ae7a0b01..085751b3 100644 --- a/lib/stripe/params/account_capability_list_params.rb +++ b/lib/stripe/params/account_capability_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class AccountCapabilityListParams < Stripe::RequestParams + class AccountCapabilityListParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/account_capability_retrieve_params.rb b/lib/stripe/params/account_capability_retrieve_params.rb index dad6951b..b3db97b7 100644 --- a/lib/stripe/params/account_capability_retrieve_params.rb +++ b/lib/stripe/params/account_capability_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class AccountCapabilityRetrieveParams < Stripe::RequestParams + class AccountCapabilityRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/account_capability_update_params.rb b/lib/stripe/params/account_capability_update_params.rb index ffd309ad..459fe764 100644 --- a/lib/stripe/params/account_capability_update_params.rb +++ b/lib/stripe/params/account_capability_update_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class AccountCapabilityUpdateParams < Stripe::RequestParams + class AccountCapabilityUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # To request a new capability for an account, pass true. There can be a delay before the requested capability becomes active. If the capability has any activation requirements, the response includes them in the `requirements` arrays. diff --git a/lib/stripe/params/account_create_params.rb b/lib/stripe/params/account_create_params.rb index 687be2c5..08cb4af6 100644 --- a/lib/stripe/params/account_create_params.rb +++ b/lib/stripe/params/account_create_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class AccountCreateParams < Stripe::RequestParams - class BankAccount < Stripe::RequestParams + class AccountCreateParams < ::Stripe::RequestParams + class BankAccount < ::Stripe::RequestParams # Attribute for param field object attr_accessor :object # The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object. @@ -38,8 +38,8 @@ module Stripe end end - class BusinessProfile < Stripe::RequestParams - class AnnualRevenue < Stripe::RequestParams + class BusinessProfile < ::Stripe::RequestParams + class AnnualRevenue < ::Stripe::RequestParams # A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal). attr_accessor :amount # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). @@ -54,7 +54,7 @@ module Stripe end end - class MonthlyEstimatedRevenue < Stripe::RequestParams + class MonthlyEstimatedRevenue < ::Stripe::RequestParams # A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal). attr_accessor :amount # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). @@ -66,7 +66,7 @@ module Stripe end end - class SupportAddress < Stripe::RequestParams + class SupportAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -150,8 +150,8 @@ module Stripe end end - class Capabilities < Stripe::RequestParams - class AcssDebitPayments < Stripe::RequestParams + class Capabilities < ::Stripe::RequestParams + class AcssDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -160,7 +160,7 @@ module Stripe end end - class AffirmPayments < Stripe::RequestParams + class AffirmPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -169,7 +169,7 @@ module Stripe end end - class AfterpayClearpayPayments < Stripe::RequestParams + class AfterpayClearpayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -178,7 +178,7 @@ module Stripe end end - class AlmaPayments < Stripe::RequestParams + class AlmaPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -187,7 +187,7 @@ module Stripe end end - class AmazonPayPayments < Stripe::RequestParams + class AmazonPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -196,7 +196,7 @@ module Stripe end end - class AuBecsDebitPayments < Stripe::RequestParams + class AuBecsDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -205,7 +205,7 @@ module Stripe end end - class BacsDebitPayments < Stripe::RequestParams + class BacsDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -214,7 +214,7 @@ module Stripe end end - class BancontactPayments < Stripe::RequestParams + class BancontactPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -223,7 +223,7 @@ module Stripe end end - class BankTransferPayments < Stripe::RequestParams + class BankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -232,7 +232,7 @@ module Stripe end end - class BilliePayments < Stripe::RequestParams + class BilliePayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -241,7 +241,7 @@ module Stripe end end - class BlikPayments < Stripe::RequestParams + class BlikPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -250,7 +250,7 @@ module Stripe end end - class BoletoPayments < Stripe::RequestParams + class BoletoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -259,7 +259,7 @@ module Stripe end end - class CardIssuing < Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -268,7 +268,7 @@ module Stripe end end - class CardPayments < Stripe::RequestParams + class CardPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -277,7 +277,7 @@ module Stripe end end - class CartesBancairesPayments < Stripe::RequestParams + class CartesBancairesPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -286,7 +286,7 @@ module Stripe end end - class CashappPayments < Stripe::RequestParams + class CashappPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -295,7 +295,7 @@ module Stripe end end - class CryptoPayments < Stripe::RequestParams + class CryptoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -304,7 +304,7 @@ module Stripe end end - class EpsPayments < Stripe::RequestParams + class EpsPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -313,7 +313,7 @@ module Stripe end end - class FpxPayments < Stripe::RequestParams + class FpxPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -322,7 +322,7 @@ module Stripe end end - class GbBankTransferPayments < Stripe::RequestParams + class GbBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -331,7 +331,7 @@ module Stripe end end - class GiropayPayments < Stripe::RequestParams + class GiropayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -340,7 +340,7 @@ module Stripe end end - class GrabpayPayments < Stripe::RequestParams + class GrabpayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -349,7 +349,7 @@ module Stripe end end - class IdealPayments < Stripe::RequestParams + class IdealPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -358,7 +358,7 @@ module Stripe end end - class IndiaInternationalPayments < Stripe::RequestParams + class IndiaInternationalPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -367,7 +367,7 @@ module Stripe end end - class JcbPayments < Stripe::RequestParams + class JcbPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -376,7 +376,7 @@ module Stripe end end - class JpBankTransferPayments < Stripe::RequestParams + class JpBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -385,7 +385,7 @@ module Stripe end end - class KakaoPayPayments < Stripe::RequestParams + class KakaoPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -394,7 +394,7 @@ module Stripe end end - class KlarnaPayments < Stripe::RequestParams + class KlarnaPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -403,7 +403,7 @@ module Stripe end end - class KonbiniPayments < Stripe::RequestParams + class KonbiniPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -412,7 +412,7 @@ module Stripe end end - class KrCardPayments < Stripe::RequestParams + class KrCardPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -421,7 +421,7 @@ module Stripe end end - class LegacyPayments < Stripe::RequestParams + class LegacyPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -430,7 +430,7 @@ module Stripe end end - class LinkPayments < Stripe::RequestParams + class LinkPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -439,7 +439,7 @@ module Stripe end end - class MbWayPayments < Stripe::RequestParams + class MbWayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -448,7 +448,7 @@ module Stripe end end - class MobilepayPayments < Stripe::RequestParams + class MobilepayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -457,7 +457,7 @@ module Stripe end end - class MultibancoPayments < Stripe::RequestParams + class MultibancoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -466,7 +466,7 @@ module Stripe end end - class MxBankTransferPayments < Stripe::RequestParams + class MxBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -475,7 +475,7 @@ module Stripe end end - class NaverPayPayments < Stripe::RequestParams + class NaverPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -484,7 +484,7 @@ module Stripe end end - class NzBankAccountBecsDebitPayments < Stripe::RequestParams + class NzBankAccountBecsDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -493,7 +493,7 @@ module Stripe end end - class OxxoPayments < Stripe::RequestParams + class OxxoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -502,7 +502,7 @@ module Stripe end end - class P24Payments < Stripe::RequestParams + class P24Payments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -511,7 +511,7 @@ module Stripe end end - class PayByBankPayments < Stripe::RequestParams + class PayByBankPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -520,7 +520,7 @@ module Stripe end end - class PaycoPayments < Stripe::RequestParams + class PaycoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -529,7 +529,7 @@ module Stripe end end - class PaynowPayments < Stripe::RequestParams + class PaynowPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -538,7 +538,7 @@ module Stripe end end - class PixPayments < Stripe::RequestParams + class PixPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -547,7 +547,7 @@ module Stripe end end - class PromptpayPayments < Stripe::RequestParams + class PromptpayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -556,7 +556,7 @@ module Stripe end end - class RevolutPayPayments < Stripe::RequestParams + class RevolutPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -565,7 +565,7 @@ module Stripe end end - class SamsungPayPayments < Stripe::RequestParams + class SamsungPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -574,7 +574,7 @@ module Stripe end end - class SatispayPayments < Stripe::RequestParams + class SatispayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -583,7 +583,7 @@ module Stripe end end - class SepaBankTransferPayments < Stripe::RequestParams + class SepaBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -592,7 +592,7 @@ module Stripe end end - class SepaDebitPayments < Stripe::RequestParams + class SepaDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -601,7 +601,7 @@ module Stripe end end - class SofortPayments < Stripe::RequestParams + class SofortPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -610,7 +610,7 @@ module Stripe end end - class SwishPayments < Stripe::RequestParams + class SwishPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -619,7 +619,7 @@ module Stripe end end - class TaxReportingUs1099K < Stripe::RequestParams + class TaxReportingUs1099K < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -628,7 +628,7 @@ module Stripe end end - class TaxReportingUs1099Misc < Stripe::RequestParams + class TaxReportingUs1099Misc < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -637,7 +637,7 @@ module Stripe end end - class Transfers < Stripe::RequestParams + class Transfers < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -646,7 +646,7 @@ module Stripe end end - class Treasury < Stripe::RequestParams + class Treasury < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -655,7 +655,7 @@ module Stripe end end - class TwintPayments < Stripe::RequestParams + class TwintPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -664,7 +664,7 @@ module Stripe end end - class UsBankAccountAchPayments < Stripe::RequestParams + class UsBankAccountAchPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -673,7 +673,7 @@ module Stripe end end - class UsBankTransferPayments < Stripe::RequestParams + class UsBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -682,7 +682,7 @@ module Stripe end end - class ZipPayments < Stripe::RequestParams + class ZipPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -936,7 +936,7 @@ module Stripe end end - class Card < Stripe::RequestParams + class Card < ::Stripe::RequestParams # Attribute for param field object attr_accessor :object # Attribute for param field address_city @@ -1003,7 +1003,7 @@ module Stripe end end - class CardToken < Stripe::RequestParams + class CardToken < ::Stripe::RequestParams # Attribute for param field object attr_accessor :object # Attribute for param field currency @@ -1018,8 +1018,8 @@ module Stripe end end - class Company < Stripe::RequestParams - class Address < Stripe::RequestParams + class Company < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -1050,7 +1050,7 @@ module Stripe end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -1085,7 +1085,7 @@ module Stripe end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -1120,7 +1120,7 @@ module Stripe end end - class DirectorshipDeclaration < Stripe::RequestParams + class DirectorshipDeclaration < ::Stripe::RequestParams # The Unix timestamp marking when the directorship declaration attestation was made. attr_accessor :date # The IP address from which the directorship declaration attestation was made. @@ -1135,7 +1135,7 @@ module Stripe end end - class OwnershipDeclaration < Stripe::RequestParams + class OwnershipDeclaration < ::Stripe::RequestParams # The Unix timestamp marking when the beneficial owner attestation was made. attr_accessor :date # The IP address from which the beneficial owner attestation was made. @@ -1150,7 +1150,7 @@ module Stripe end end - class RegistrationDate < Stripe::RequestParams + class RegistrationDate < ::Stripe::RequestParams # The day of registration, between 1 and 31. attr_accessor :day # The month of registration, between 1 and 12. @@ -1165,8 +1165,23 @@ module Stripe end end - class Verification < Stripe::RequestParams - class Document < Stripe::RequestParams + class RepresentativeDeclaration < ::Stripe::RequestParams + # The Unix timestamp marking when the representative declaration attestation was made. + attr_accessor :date + # The IP address from which the representative declaration attestation was made. + attr_accessor :ip + # The user agent of the browser from which the representative declaration attestation was made. + attr_accessor :user_agent + + def initialize(date: nil, ip: nil, user_agent: nil) + @date = date + @ip = ip + @user_agent = user_agent + end + end + + class Verification < ::Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. attr_accessor :back # The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -1218,6 +1233,8 @@ module Stripe attr_accessor :registration_date # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong). attr_accessor :registration_number + # This hash is used to attest that the representative is authorized to act as the representative of their legal entity. + attr_accessor :representative_declaration # The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value. attr_accessor :structure # The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.) @@ -1247,6 +1264,7 @@ module Stripe phone: nil, registration_date: nil, registration_number: nil, + representative_declaration: nil, structure: nil, tax_id: nil, tax_id_registrar: nil, @@ -1270,6 +1288,7 @@ module Stripe @phone = phone @registration_date = registration_date @registration_number = registration_number + @representative_declaration = representative_declaration @structure = structure @tax_id = tax_id @tax_id_registrar = tax_id_registrar @@ -1278,8 +1297,8 @@ module Stripe end end - class Controller < Stripe::RequestParams - class Fees < Stripe::RequestParams + class Controller < ::Stripe::RequestParams + class Fees < ::Stripe::RequestParams # A value indicating the responsible payer of Stripe fees on this account. Defaults to `account`. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior). attr_accessor :payer @@ -1288,7 +1307,7 @@ module Stripe end end - class Losses < Stripe::RequestParams + class Losses < ::Stripe::RequestParams # A value indicating who is liable when this account can't pay back negative balances resulting from payments. Defaults to `stripe`. attr_accessor :payments @@ -1297,7 +1316,7 @@ module Stripe end end - class StripeDashboard < Stripe::RequestParams + class StripeDashboard < ::Stripe::RequestParams # Whether this account should have access to the full Stripe Dashboard (`full`), to the Express Dashboard (`express`), or to no Stripe-hosted dashboard (`none`). Defaults to `full`. attr_accessor :type @@ -1322,8 +1341,8 @@ module Stripe end end - class Documents < Stripe::RequestParams - class BankAccountOwnershipVerification < Stripe::RequestParams + class Documents < ::Stripe::RequestParams + class BankAccountOwnershipVerification < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -1332,7 +1351,7 @@ module Stripe end end - class CompanyLicense < Stripe::RequestParams + class CompanyLicense < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -1341,7 +1360,7 @@ module Stripe end end - class CompanyMemorandumOfAssociation < Stripe::RequestParams + class CompanyMemorandumOfAssociation < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -1350,7 +1369,7 @@ module Stripe end end - class CompanyMinisterialDecree < Stripe::RequestParams + class CompanyMinisterialDecree < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -1359,7 +1378,7 @@ module Stripe end end - class CompanyRegistrationVerification < Stripe::RequestParams + class CompanyRegistrationVerification < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -1368,7 +1387,7 @@ module Stripe end end - class CompanyTaxIdVerification < Stripe::RequestParams + class CompanyTaxIdVerification < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -1377,7 +1396,7 @@ module Stripe end end - class ProofOfAddress < Stripe::RequestParams + class ProofOfAddress < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -1386,7 +1405,7 @@ module Stripe end end - class ProofOfRegistration < Stripe::RequestParams + class ProofOfRegistration < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -1395,7 +1414,7 @@ module Stripe end end - class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams + class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -1445,7 +1464,7 @@ module Stripe end end - class Groups < Stripe::RequestParams + class Groups < ::Stripe::RequestParams # The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details. attr_accessor :payments_pricing @@ -1454,8 +1473,8 @@ module Stripe end end - class Individual < Stripe::RequestParams - class Address < Stripe::RequestParams + class Individual < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -1486,7 +1505,7 @@ module Stripe end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -1521,7 +1540,7 @@ module Stripe end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -1556,7 +1575,7 @@ module Stripe end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. attr_accessor :day # The month of birth, between 1 and 12. @@ -1571,7 +1590,7 @@ module Stripe end end - class RegisteredAddress < Stripe::RequestParams + class RegisteredAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -1602,7 +1621,7 @@ module Stripe end end - class Relationship < Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. attr_accessor :director # Whether the person has significant responsibility to control, manage, or direct the organization. @@ -1629,8 +1648,8 @@ module Stripe end end - class Verification < Stripe::RequestParams - class AdditionalDocument < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class AdditionalDocument < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. attr_accessor :back # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -1642,7 +1661,7 @@ module Stripe end end - class Document < Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. attr_accessor :back # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -1761,8 +1780,8 @@ module Stripe end end - class Settings < Stripe::RequestParams - class BacsDebitPayments < Stripe::RequestParams + class Settings < ::Stripe::RequestParams + class BacsDebitPayments < ::Stripe::RequestParams # The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free. attr_accessor :display_name @@ -1771,7 +1790,7 @@ module Stripe end end - class Branding < Stripe::RequestParams + class Branding < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px. attr_accessor :icon # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A logo for the account that will be used in Checkout instead of the icon and without the account's name next to it if provided. Must be at least 128px x 128px. @@ -1789,8 +1808,8 @@ module Stripe end end - class CardIssuing < Stripe::RequestParams - class TosAcceptance < Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams + class TosAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted the service agreement. attr_accessor :date # The IP address from which the account representative accepted the service agreement. @@ -1812,8 +1831,8 @@ module Stripe end end - class CardPayments < Stripe::RequestParams - class DeclineOn < Stripe::RequestParams + class CardPayments < ::Stripe::RequestParams + class DeclineOn < ::Stripe::RequestParams # Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification. attr_accessor :avs_failure # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification. @@ -1846,7 +1865,7 @@ module Stripe end end - class Invoices < Stripe::RequestParams + class Invoices < ::Stripe::RequestParams # Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page. attr_accessor :hosted_payment_method_save @@ -1855,7 +1874,7 @@ module Stripe end end - class Payments < Stripe::RequestParams + class Payments < ::Stripe::RequestParams # The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors). attr_accessor :statement_descriptor # The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). @@ -1874,8 +1893,8 @@ module Stripe end end - class Payouts < Stripe::RequestParams - class Schedule < Stripe::RequestParams + class Payouts < ::Stripe::RequestParams + class Schedule < ::Stripe::RequestParams # The number of days charge funds are held before being paid out. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `interval` is `manual`. [Learn more about controlling payout delay days](/connect/manage-payout-schedule). attr_accessor :delay_days # How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`. @@ -1919,8 +1938,8 @@ module Stripe end end - class Treasury < Stripe::RequestParams - class TosAcceptance < Stripe::RequestParams + class Treasury < ::Stripe::RequestParams + class TosAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted the service agreement. attr_accessor :date # The IP address from which the account representative accepted the service agreement. @@ -1979,7 +1998,7 @@ module Stripe end end - class TosAcceptance < Stripe::RequestParams + class TosAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted their service agreement. attr_accessor :date # The IP address from which the account representative accepted their service agreement. diff --git a/lib/stripe/params/account_delete_params.rb b/lib/stripe/params/account_delete_params.rb index 0209220b..0f4de2cf 100644 --- a/lib/stripe/params/account_delete_params.rb +++ b/lib/stripe/params/account_delete_params.rb @@ -2,5 +2,5 @@ # frozen_string_literal: true module Stripe - class AccountDeleteParams < Stripe::RequestParams; end + class AccountDeleteParams < ::Stripe::RequestParams; end end diff --git a/lib/stripe/params/account_external_account_create_params.rb b/lib/stripe/params/account_external_account_create_params.rb index 67b5c243..9b205c37 100644 --- a/lib/stripe/params/account_external_account_create_params.rb +++ b/lib/stripe/params/account_external_account_create_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class AccountExternalAccountCreateParams < Stripe::RequestParams - class BankAccount < Stripe::RequestParams + class AccountExternalAccountCreateParams < ::Stripe::RequestParams + class BankAccount < ::Stripe::RequestParams # Attribute for param field object attr_accessor :object # The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object. @@ -38,7 +38,7 @@ module Stripe end end - class Card < Stripe::RequestParams + class Card < ::Stripe::RequestParams # Attribute for param field object attr_accessor :object # Attribute for param field address_city @@ -101,7 +101,7 @@ module Stripe end end - class CardToken < Stripe::RequestParams + class CardToken < ::Stripe::RequestParams # Attribute for param field object attr_accessor :object # Attribute for param field currency diff --git a/lib/stripe/params/account_external_account_delete_params.rb b/lib/stripe/params/account_external_account_delete_params.rb index f77098a6..ccbd91ef 100644 --- a/lib/stripe/params/account_external_account_delete_params.rb +++ b/lib/stripe/params/account_external_account_delete_params.rb @@ -2,5 +2,5 @@ # frozen_string_literal: true module Stripe - class AccountExternalAccountDeleteParams < Stripe::RequestParams; end + class AccountExternalAccountDeleteParams < ::Stripe::RequestParams; end end diff --git a/lib/stripe/params/account_external_account_list_params.rb b/lib/stripe/params/account_external_account_list_params.rb index cf89c946..629ef21f 100644 --- a/lib/stripe/params/account_external_account_list_params.rb +++ b/lib/stripe/params/account_external_account_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class AccountExternalAccountListParams < Stripe::RequestParams + class AccountExternalAccountListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/account_external_account_retrieve_params.rb b/lib/stripe/params/account_external_account_retrieve_params.rb index dfa4bd01..f7ce7a8c 100644 --- a/lib/stripe/params/account_external_account_retrieve_params.rb +++ b/lib/stripe/params/account_external_account_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class AccountExternalAccountRetrieveParams < Stripe::RequestParams + class AccountExternalAccountRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/account_external_account_update_params.rb b/lib/stripe/params/account_external_account_update_params.rb index 4502f65e..58fe23e5 100644 --- a/lib/stripe/params/account_external_account_update_params.rb +++ b/lib/stripe/params/account_external_account_update_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class AccountExternalAccountUpdateParams < Stripe::RequestParams - class Documents < Stripe::RequestParams - class BankAccountOwnershipVerification < Stripe::RequestParams + class AccountExternalAccountUpdateParams < ::Stripe::RequestParams + class Documents < ::Stripe::RequestParams + class BankAccountOwnershipVerification < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files diff --git a/lib/stripe/params/account_link_create_params.rb b/lib/stripe/params/account_link_create_params.rb index 458b2f3b..fe0f5b85 100644 --- a/lib/stripe/params/account_link_create_params.rb +++ b/lib/stripe/params/account_link_create_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class AccountLinkCreateParams < Stripe::RequestParams - class CollectionOptions < Stripe::RequestParams + class AccountLinkCreateParams < ::Stripe::RequestParams + class CollectionOptions < ::Stripe::RequestParams # Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). If you don't specify `collection_options`, the default value is `currently_due`. attr_accessor :fields # Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`. diff --git a/lib/stripe/params/account_list_params.rb b/lib/stripe/params/account_list_params.rb index a6ca766d..cdaf6d69 100644 --- a/lib/stripe/params/account_list_params.rb +++ b/lib/stripe/params/account_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class AccountListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class AccountListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/account_login_link_create_params.rb b/lib/stripe/params/account_login_link_create_params.rb index bf9615a8..a851f82f 100644 --- a/lib/stripe/params/account_login_link_create_params.rb +++ b/lib/stripe/params/account_login_link_create_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class AccountLoginLinkCreateParams < Stripe::RequestParams + class AccountLoginLinkCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/account_person_create_params.rb b/lib/stripe/params/account_person_create_params.rb index 50c2644e..d60a9dbd 100644 --- a/lib/stripe/params/account_person_create_params.rb +++ b/lib/stripe/params/account_person_create_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class AccountPersonCreateParams < Stripe::RequestParams - class AdditionalTosAcceptances < Stripe::RequestParams - class Account < Stripe::RequestParams + class AccountPersonCreateParams < ::Stripe::RequestParams + class AdditionalTosAcceptances < ::Stripe::RequestParams + class Account < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted the service agreement. attr_accessor :date # The IP address from which the account representative accepted the service agreement. @@ -26,7 +26,7 @@ module Stripe end end - class Address < Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -50,7 +50,7 @@ module Stripe end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -85,7 +85,7 @@ module Stripe end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -120,7 +120,7 @@ module Stripe end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. attr_accessor :day # The month of birth, between 1 and 12. @@ -135,8 +135,8 @@ module Stripe end end - class Documents < Stripe::RequestParams - class CompanyAuthorization < Stripe::RequestParams + class Documents < ::Stripe::RequestParams + class CompanyAuthorization < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -145,7 +145,7 @@ module Stripe end end - class Passport < Stripe::RequestParams + class Passport < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -154,7 +154,7 @@ module Stripe end end - class Visa < Stripe::RequestParams + class Visa < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -176,7 +176,7 @@ module Stripe end end - class RegisteredAddress < Stripe::RequestParams + class RegisteredAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -200,7 +200,7 @@ module Stripe end end - class Relationship < Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # Whether the person is the authorizer of the account's representative. attr_accessor :authorizer # Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. @@ -239,8 +239,8 @@ module Stripe end end - class UsCfpbData < Stripe::RequestParams - class EthnicityDetails < Stripe::RequestParams + class UsCfpbData < ::Stripe::RequestParams + class EthnicityDetails < ::Stripe::RequestParams # The persons ethnicity attr_accessor :ethnicity # Please specify your origin, when other is selected. @@ -252,7 +252,7 @@ module Stripe end end - class RaceDetails < Stripe::RequestParams + class RaceDetails < ::Stripe::RequestParams # The persons race. attr_accessor :race # Please specify your race, when other is selected. @@ -277,8 +277,8 @@ module Stripe end end - class Verification < Stripe::RequestParams - class AdditionalDocument < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class AdditionalDocument < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. attr_accessor :back # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -290,7 +290,7 @@ module Stripe end end - class Document < Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. attr_accessor :back # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. diff --git a/lib/stripe/params/account_person_delete_params.rb b/lib/stripe/params/account_person_delete_params.rb index c5909580..45d0d85c 100644 --- a/lib/stripe/params/account_person_delete_params.rb +++ b/lib/stripe/params/account_person_delete_params.rb @@ -2,5 +2,5 @@ # frozen_string_literal: true module Stripe - class AccountPersonDeleteParams < Stripe::RequestParams; end + class AccountPersonDeleteParams < ::Stripe::RequestParams; end end diff --git a/lib/stripe/params/account_person_list_params.rb b/lib/stripe/params/account_person_list_params.rb index 0239a86e..0f25d5ca 100644 --- a/lib/stripe/params/account_person_list_params.rb +++ b/lib/stripe/params/account_person_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class AccountPersonListParams < Stripe::RequestParams - class Relationship < Stripe::RequestParams + class AccountPersonListParams < ::Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # A filter on the list of people returned based on whether these people are authorizers of the account's representative. attr_accessor :authorizer # A filter on the list of people returned based on whether these people are directors of the account's company. diff --git a/lib/stripe/params/account_person_retrieve_params.rb b/lib/stripe/params/account_person_retrieve_params.rb index c156c741..22c9145a 100644 --- a/lib/stripe/params/account_person_retrieve_params.rb +++ b/lib/stripe/params/account_person_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class AccountPersonRetrieveParams < Stripe::RequestParams + class AccountPersonRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/account_person_update_params.rb b/lib/stripe/params/account_person_update_params.rb index 39effcd1..880c4ccc 100644 --- a/lib/stripe/params/account_person_update_params.rb +++ b/lib/stripe/params/account_person_update_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class AccountPersonUpdateParams < Stripe::RequestParams - class AdditionalTosAcceptances < Stripe::RequestParams - class Account < Stripe::RequestParams + class AccountPersonUpdateParams < ::Stripe::RequestParams + class AdditionalTosAcceptances < ::Stripe::RequestParams + class Account < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted the service agreement. attr_accessor :date # The IP address from which the account representative accepted the service agreement. @@ -26,7 +26,7 @@ module Stripe end end - class Address < Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -50,7 +50,7 @@ module Stripe end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -85,7 +85,7 @@ module Stripe end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -120,7 +120,7 @@ module Stripe end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. attr_accessor :day # The month of birth, between 1 and 12. @@ -135,8 +135,8 @@ module Stripe end end - class Documents < Stripe::RequestParams - class CompanyAuthorization < Stripe::RequestParams + class Documents < ::Stripe::RequestParams + class CompanyAuthorization < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -145,7 +145,7 @@ module Stripe end end - class Passport < Stripe::RequestParams + class Passport < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -154,7 +154,7 @@ module Stripe end end - class Visa < Stripe::RequestParams + class Visa < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -176,7 +176,7 @@ module Stripe end end - class RegisteredAddress < Stripe::RequestParams + class RegisteredAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -200,7 +200,7 @@ module Stripe end end - class Relationship < Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # Whether the person is the authorizer of the account's representative. attr_accessor :authorizer # Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. @@ -239,8 +239,8 @@ module Stripe end end - class UsCfpbData < Stripe::RequestParams - class EthnicityDetails < Stripe::RequestParams + class UsCfpbData < ::Stripe::RequestParams + class EthnicityDetails < ::Stripe::RequestParams # The persons ethnicity attr_accessor :ethnicity # Please specify your origin, when other is selected. @@ -252,7 +252,7 @@ module Stripe end end - class RaceDetails < Stripe::RequestParams + class RaceDetails < ::Stripe::RequestParams # The persons race. attr_accessor :race # Please specify your race, when other is selected. @@ -277,8 +277,8 @@ module Stripe end end - class Verification < Stripe::RequestParams - class AdditionalDocument < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class AdditionalDocument < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. attr_accessor :back # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -290,7 +290,7 @@ module Stripe end end - class Document < Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. attr_accessor :back # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. diff --git a/lib/stripe/params/account_persons_params.rb b/lib/stripe/params/account_persons_params.rb index 67a52df9..ed31fe89 100644 --- a/lib/stripe/params/account_persons_params.rb +++ b/lib/stripe/params/account_persons_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class AccountPersonsParams < Stripe::RequestParams - class Relationship < Stripe::RequestParams + class AccountPersonsParams < ::Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # A filter on the list of people returned based on whether these people are authorizers of the account's representative. attr_accessor :authorizer # A filter on the list of people returned based on whether these people are directors of the account's company. diff --git a/lib/stripe/params/account_reject_params.rb b/lib/stripe/params/account_reject_params.rb index 289a3436..e145ec64 100644 --- a/lib/stripe/params/account_reject_params.rb +++ b/lib/stripe/params/account_reject_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class AccountRejectParams < Stripe::RequestParams + class AccountRejectParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # The reason for rejecting the account. Can be `fraud`, `terms_of_service`, or `other`. diff --git a/lib/stripe/params/account_retrieve_current_params.rb b/lib/stripe/params/account_retrieve_current_params.rb index ee5a6292..fc5fc06b 100644 --- a/lib/stripe/params/account_retrieve_current_params.rb +++ b/lib/stripe/params/account_retrieve_current_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class AccountRetrieveCurrentParams < Stripe::RequestParams + class AccountRetrieveCurrentParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/account_retrieve_params.rb b/lib/stripe/params/account_retrieve_params.rb index a7c8a84c..f511c8d0 100644 --- a/lib/stripe/params/account_retrieve_params.rb +++ b/lib/stripe/params/account_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class AccountRetrieveParams < Stripe::RequestParams + class AccountRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/account_session_create_params.rb b/lib/stripe/params/account_session_create_params.rb index 96240954..70b0df1e 100644 --- a/lib/stripe/params/account_session_create_params.rb +++ b/lib/stripe/params/account_session_create_params.rb @@ -2,10 +2,10 @@ # frozen_string_literal: true module Stripe - class AccountSessionCreateParams < Stripe::RequestParams - class Components < Stripe::RequestParams - class AccountManagement < Stripe::RequestParams - class Features < Stripe::RequestParams + class AccountSessionCreateParams < ::Stripe::RequestParams + class Components < ::Stripe::RequestParams + class AccountManagement < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. attr_accessor :disable_stripe_user_authentication # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`. @@ -27,8 +27,8 @@ module Stripe end end - class AccountOnboarding < Stripe::RequestParams - class Features < Stripe::RequestParams + class AccountOnboarding < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. attr_accessor :disable_stripe_user_authentication # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`. @@ -50,8 +50,8 @@ module Stripe end end - class Balances < Stripe::RequestParams - class Features < Stripe::RequestParams + class Balances < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. attr_accessor :disable_stripe_user_authentication # Whether to allow payout schedule to be changed. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`. @@ -88,8 +88,8 @@ module Stripe end end - class DisputesList < Stripe::RequestParams - class Features < Stripe::RequestParams + class DisputesList < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether to allow capturing and cancelling payment intents. This is `true` by default. attr_accessor :capture_payments # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default. @@ -122,8 +122,8 @@ module Stripe end end - class Documents < Stripe::RequestParams - class Features < Stripe::RequestParams; end + class Documents < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams; end # Whether the embedded component is enabled. attr_accessor :enabled # An empty list, because this embedded component has no features. @@ -135,8 +135,8 @@ module Stripe end end - class FinancialAccount < Stripe::RequestParams - class Features < Stripe::RequestParams + class FinancialAccount < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. attr_accessor :disable_stripe_user_authentication # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`. @@ -169,8 +169,8 @@ module Stripe end end - class FinancialAccountTransactions < Stripe::RequestParams - class Features < Stripe::RequestParams + class FinancialAccountTransactions < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether to allow card spend dispute management features. attr_accessor :card_spend_dispute_management @@ -189,8 +189,8 @@ module Stripe end end - class InstantPayoutsPromotion < Stripe::RequestParams - class Features < Stripe::RequestParams + class InstantPayoutsPromotion < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. attr_accessor :disable_stripe_user_authentication # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`. @@ -219,8 +219,8 @@ module Stripe end end - class IssuingCard < Stripe::RequestParams - class Features < Stripe::RequestParams + class IssuingCard < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether to allow card management features. attr_accessor :card_management # Whether to allow card spend dispute management features. @@ -253,8 +253,8 @@ module Stripe end end - class IssuingCardsList < Stripe::RequestParams - class Features < Stripe::RequestParams + class IssuingCardsList < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether to allow card management features. attr_accessor :card_management # Whether to allow card spend dispute management features. @@ -291,8 +291,8 @@ module Stripe end end - class NotificationBanner < Stripe::RequestParams - class Features < Stripe::RequestParams + class NotificationBanner < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. attr_accessor :disable_stripe_user_authentication # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`. @@ -314,8 +314,8 @@ module Stripe end end - class PaymentDetails < Stripe::RequestParams - class Features < Stripe::RequestParams + class PaymentDetails < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether to allow capturing and cancelling payment intents. This is `true` by default. attr_accessor :capture_payments # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default. @@ -348,8 +348,8 @@ module Stripe end end - class PaymentDisputes < Stripe::RequestParams - class Features < Stripe::RequestParams + class PaymentDisputes < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default. attr_accessor :destination_on_behalf_of_charge_management # Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default. @@ -378,8 +378,8 @@ module Stripe end end - class Payments < Stripe::RequestParams - class Features < Stripe::RequestParams + class Payments < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether to allow capturing and cancelling payment intents. This is `true` by default. attr_accessor :capture_payments # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default. @@ -412,8 +412,8 @@ module Stripe end end - class PayoutDetails < Stripe::RequestParams - class Features < Stripe::RequestParams; end + class PayoutDetails < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams; end # Whether the embedded component is enabled. attr_accessor :enabled # An empty list, because this embedded component has no features. @@ -425,8 +425,8 @@ module Stripe end end - class Payouts < Stripe::RequestParams - class Features < Stripe::RequestParams + class Payouts < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. attr_accessor :disable_stripe_user_authentication # Whether to allow payout schedule to be changed. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`. @@ -463,8 +463,8 @@ module Stripe end end - class PayoutsList < Stripe::RequestParams - class Features < Stripe::RequestParams; end + class PayoutsList < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams; end # Whether the embedded component is enabled. attr_accessor :enabled # An empty list, because this embedded component has no features. @@ -476,8 +476,8 @@ module Stripe end end - class TaxRegistrations < Stripe::RequestParams - class Features < Stripe::RequestParams; end + class TaxRegistrations < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams; end # Whether the embedded component is enabled. attr_accessor :enabled # An empty list, because this embedded component has no features. @@ -489,8 +489,8 @@ module Stripe end end - class TaxSettings < Stripe::RequestParams - class Features < Stripe::RequestParams; end + class TaxSettings < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams; end # Whether the embedded component is enabled. attr_accessor :enabled # An empty list, because this embedded component has no features. diff --git a/lib/stripe/params/account_update_params.rb b/lib/stripe/params/account_update_params.rb index d6649ab1..82b62267 100644 --- a/lib/stripe/params/account_update_params.rb +++ b/lib/stripe/params/account_update_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class AccountUpdateParams < Stripe::RequestParams - class BankAccount < Stripe::RequestParams + class AccountUpdateParams < ::Stripe::RequestParams + class BankAccount < ::Stripe::RequestParams # Attribute for param field object attr_accessor :object # The name of the person or business that owns the bank account.This field is required when attaching the bank account to a `Customer` object. @@ -38,8 +38,8 @@ module Stripe end end - class BusinessProfile < Stripe::RequestParams - class AnnualRevenue < Stripe::RequestParams + class BusinessProfile < ::Stripe::RequestParams + class AnnualRevenue < ::Stripe::RequestParams # A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal). attr_accessor :amount # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). @@ -54,7 +54,7 @@ module Stripe end end - class MonthlyEstimatedRevenue < Stripe::RequestParams + class MonthlyEstimatedRevenue < ::Stripe::RequestParams # A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal). attr_accessor :amount # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). @@ -66,7 +66,7 @@ module Stripe end end - class SupportAddress < Stripe::RequestParams + class SupportAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -150,8 +150,8 @@ module Stripe end end - class Capabilities < Stripe::RequestParams - class AcssDebitPayments < Stripe::RequestParams + class Capabilities < ::Stripe::RequestParams + class AcssDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -160,7 +160,7 @@ module Stripe end end - class AffirmPayments < Stripe::RequestParams + class AffirmPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -169,7 +169,7 @@ module Stripe end end - class AfterpayClearpayPayments < Stripe::RequestParams + class AfterpayClearpayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -178,7 +178,7 @@ module Stripe end end - class AlmaPayments < Stripe::RequestParams + class AlmaPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -187,7 +187,7 @@ module Stripe end end - class AmazonPayPayments < Stripe::RequestParams + class AmazonPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -196,7 +196,7 @@ module Stripe end end - class AuBecsDebitPayments < Stripe::RequestParams + class AuBecsDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -205,7 +205,7 @@ module Stripe end end - class BacsDebitPayments < Stripe::RequestParams + class BacsDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -214,7 +214,7 @@ module Stripe end end - class BancontactPayments < Stripe::RequestParams + class BancontactPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -223,7 +223,7 @@ module Stripe end end - class BankTransferPayments < Stripe::RequestParams + class BankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -232,7 +232,7 @@ module Stripe end end - class BilliePayments < Stripe::RequestParams + class BilliePayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -241,7 +241,7 @@ module Stripe end end - class BlikPayments < Stripe::RequestParams + class BlikPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -250,7 +250,7 @@ module Stripe end end - class BoletoPayments < Stripe::RequestParams + class BoletoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -259,7 +259,7 @@ module Stripe end end - class CardIssuing < Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -268,7 +268,7 @@ module Stripe end end - class CardPayments < Stripe::RequestParams + class CardPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -277,7 +277,7 @@ module Stripe end end - class CartesBancairesPayments < Stripe::RequestParams + class CartesBancairesPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -286,7 +286,7 @@ module Stripe end end - class CashappPayments < Stripe::RequestParams + class CashappPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -295,7 +295,7 @@ module Stripe end end - class CryptoPayments < Stripe::RequestParams + class CryptoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -304,7 +304,7 @@ module Stripe end end - class EpsPayments < Stripe::RequestParams + class EpsPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -313,7 +313,7 @@ module Stripe end end - class FpxPayments < Stripe::RequestParams + class FpxPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -322,7 +322,7 @@ module Stripe end end - class GbBankTransferPayments < Stripe::RequestParams + class GbBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -331,7 +331,7 @@ module Stripe end end - class GiropayPayments < Stripe::RequestParams + class GiropayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -340,7 +340,7 @@ module Stripe end end - class GrabpayPayments < Stripe::RequestParams + class GrabpayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -349,7 +349,7 @@ module Stripe end end - class IdealPayments < Stripe::RequestParams + class IdealPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -358,7 +358,7 @@ module Stripe end end - class IndiaInternationalPayments < Stripe::RequestParams + class IndiaInternationalPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -367,7 +367,7 @@ module Stripe end end - class JcbPayments < Stripe::RequestParams + class JcbPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -376,7 +376,7 @@ module Stripe end end - class JpBankTransferPayments < Stripe::RequestParams + class JpBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -385,7 +385,7 @@ module Stripe end end - class KakaoPayPayments < Stripe::RequestParams + class KakaoPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -394,7 +394,7 @@ module Stripe end end - class KlarnaPayments < Stripe::RequestParams + class KlarnaPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -403,7 +403,7 @@ module Stripe end end - class KonbiniPayments < Stripe::RequestParams + class KonbiniPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -412,7 +412,7 @@ module Stripe end end - class KrCardPayments < Stripe::RequestParams + class KrCardPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -421,7 +421,7 @@ module Stripe end end - class LegacyPayments < Stripe::RequestParams + class LegacyPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -430,7 +430,7 @@ module Stripe end end - class LinkPayments < Stripe::RequestParams + class LinkPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -439,7 +439,7 @@ module Stripe end end - class MbWayPayments < Stripe::RequestParams + class MbWayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -448,7 +448,7 @@ module Stripe end end - class MobilepayPayments < Stripe::RequestParams + class MobilepayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -457,7 +457,7 @@ module Stripe end end - class MultibancoPayments < Stripe::RequestParams + class MultibancoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -466,7 +466,7 @@ module Stripe end end - class MxBankTransferPayments < Stripe::RequestParams + class MxBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -475,7 +475,7 @@ module Stripe end end - class NaverPayPayments < Stripe::RequestParams + class NaverPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -484,7 +484,7 @@ module Stripe end end - class NzBankAccountBecsDebitPayments < Stripe::RequestParams + class NzBankAccountBecsDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -493,7 +493,7 @@ module Stripe end end - class OxxoPayments < Stripe::RequestParams + class OxxoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -502,7 +502,7 @@ module Stripe end end - class P24Payments < Stripe::RequestParams + class P24Payments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -511,7 +511,7 @@ module Stripe end end - class PayByBankPayments < Stripe::RequestParams + class PayByBankPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -520,7 +520,7 @@ module Stripe end end - class PaycoPayments < Stripe::RequestParams + class PaycoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -529,7 +529,7 @@ module Stripe end end - class PaynowPayments < Stripe::RequestParams + class PaynowPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -538,7 +538,7 @@ module Stripe end end - class PixPayments < Stripe::RequestParams + class PixPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -547,7 +547,7 @@ module Stripe end end - class PromptpayPayments < Stripe::RequestParams + class PromptpayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -556,7 +556,7 @@ module Stripe end end - class RevolutPayPayments < Stripe::RequestParams + class RevolutPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -565,7 +565,7 @@ module Stripe end end - class SamsungPayPayments < Stripe::RequestParams + class SamsungPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -574,7 +574,7 @@ module Stripe end end - class SatispayPayments < Stripe::RequestParams + class SatispayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -583,7 +583,7 @@ module Stripe end end - class SepaBankTransferPayments < Stripe::RequestParams + class SepaBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -592,7 +592,7 @@ module Stripe end end - class SepaDebitPayments < Stripe::RequestParams + class SepaDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -601,7 +601,7 @@ module Stripe end end - class SofortPayments < Stripe::RequestParams + class SofortPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -610,7 +610,7 @@ module Stripe end end - class SwishPayments < Stripe::RequestParams + class SwishPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -619,7 +619,7 @@ module Stripe end end - class TaxReportingUs1099K < Stripe::RequestParams + class TaxReportingUs1099K < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -628,7 +628,7 @@ module Stripe end end - class TaxReportingUs1099Misc < Stripe::RequestParams + class TaxReportingUs1099Misc < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -637,7 +637,7 @@ module Stripe end end - class Transfers < Stripe::RequestParams + class Transfers < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -646,7 +646,7 @@ module Stripe end end - class Treasury < Stripe::RequestParams + class Treasury < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -655,7 +655,7 @@ module Stripe end end - class TwintPayments < Stripe::RequestParams + class TwintPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -664,7 +664,7 @@ module Stripe end end - class UsBankAccountAchPayments < Stripe::RequestParams + class UsBankAccountAchPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -673,7 +673,7 @@ module Stripe end end - class UsBankTransferPayments < Stripe::RequestParams + class UsBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -682,7 +682,7 @@ module Stripe end end - class ZipPayments < Stripe::RequestParams + class ZipPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. attr_accessor :requested @@ -936,7 +936,7 @@ module Stripe end end - class Card < Stripe::RequestParams + class Card < ::Stripe::RequestParams # Attribute for param field object attr_accessor :object # Attribute for param field address_city @@ -1003,7 +1003,7 @@ module Stripe end end - class CardToken < Stripe::RequestParams + class CardToken < ::Stripe::RequestParams # Attribute for param field object attr_accessor :object # Attribute for param field currency @@ -1018,8 +1018,8 @@ module Stripe end end - class Company < Stripe::RequestParams - class Address < Stripe::RequestParams + class Company < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -1050,7 +1050,7 @@ module Stripe end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -1085,7 +1085,7 @@ module Stripe end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -1120,7 +1120,7 @@ module Stripe end end - class DirectorshipDeclaration < Stripe::RequestParams + class DirectorshipDeclaration < ::Stripe::RequestParams # The Unix timestamp marking when the directorship declaration attestation was made. attr_accessor :date # The IP address from which the directorship declaration attestation was made. @@ -1135,7 +1135,7 @@ module Stripe end end - class OwnershipDeclaration < Stripe::RequestParams + class OwnershipDeclaration < ::Stripe::RequestParams # The Unix timestamp marking when the beneficial owner attestation was made. attr_accessor :date # The IP address from which the beneficial owner attestation was made. @@ -1150,7 +1150,7 @@ module Stripe end end - class RegistrationDate < Stripe::RequestParams + class RegistrationDate < ::Stripe::RequestParams # The day of registration, between 1 and 31. attr_accessor :day # The month of registration, between 1 and 12. @@ -1165,8 +1165,23 @@ module Stripe end end - class Verification < Stripe::RequestParams - class Document < Stripe::RequestParams + class RepresentativeDeclaration < ::Stripe::RequestParams + # The Unix timestamp marking when the representative declaration attestation was made. + attr_accessor :date + # The IP address from which the representative declaration attestation was made. + attr_accessor :ip + # The user agent of the browser from which the representative declaration attestation was made. + attr_accessor :user_agent + + def initialize(date: nil, ip: nil, user_agent: nil) + @date = date + @ip = ip + @user_agent = user_agent + end + end + + class Verification < ::Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. attr_accessor :back # The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -1218,6 +1233,8 @@ module Stripe attr_accessor :registration_date # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong). attr_accessor :registration_number + # This hash is used to attest that the representative is authorized to act as the representative of their legal entity. + attr_accessor :representative_declaration # The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value. attr_accessor :structure # The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.) @@ -1247,6 +1264,7 @@ module Stripe phone: nil, registration_date: nil, registration_number: nil, + representative_declaration: nil, structure: nil, tax_id: nil, tax_id_registrar: nil, @@ -1270,6 +1288,7 @@ module Stripe @phone = phone @registration_date = registration_date @registration_number = registration_number + @representative_declaration = representative_declaration @structure = structure @tax_id = tax_id @tax_id_registrar = tax_id_registrar @@ -1278,8 +1297,8 @@ module Stripe end end - class Documents < Stripe::RequestParams - class BankAccountOwnershipVerification < Stripe::RequestParams + class Documents < ::Stripe::RequestParams + class BankAccountOwnershipVerification < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -1288,7 +1307,7 @@ module Stripe end end - class CompanyLicense < Stripe::RequestParams + class CompanyLicense < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -1297,7 +1316,7 @@ module Stripe end end - class CompanyMemorandumOfAssociation < Stripe::RequestParams + class CompanyMemorandumOfAssociation < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -1306,7 +1325,7 @@ module Stripe end end - class CompanyMinisterialDecree < Stripe::RequestParams + class CompanyMinisterialDecree < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -1315,7 +1334,7 @@ module Stripe end end - class CompanyRegistrationVerification < Stripe::RequestParams + class CompanyRegistrationVerification < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -1324,7 +1343,7 @@ module Stripe end end - class CompanyTaxIdVerification < Stripe::RequestParams + class CompanyTaxIdVerification < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -1333,7 +1352,7 @@ module Stripe end end - class ProofOfAddress < Stripe::RequestParams + class ProofOfAddress < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -1342,7 +1361,7 @@ module Stripe end end - class ProofOfRegistration < Stripe::RequestParams + class ProofOfRegistration < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -1351,7 +1370,7 @@ module Stripe end end - class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams + class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -1401,7 +1420,7 @@ module Stripe end end - class Groups < Stripe::RequestParams + class Groups < ::Stripe::RequestParams # The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details. attr_accessor :payments_pricing @@ -1410,8 +1429,8 @@ module Stripe end end - class Individual < Stripe::RequestParams - class Address < Stripe::RequestParams + class Individual < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -1442,7 +1461,7 @@ module Stripe end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -1477,7 +1496,7 @@ module Stripe end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -1512,7 +1531,7 @@ module Stripe end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. attr_accessor :day # The month of birth, between 1 and 12. @@ -1527,7 +1546,7 @@ module Stripe end end - class RegisteredAddress < Stripe::RequestParams + class RegisteredAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -1558,7 +1577,7 @@ module Stripe end end - class Relationship < Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. attr_accessor :director # Whether the person has significant responsibility to control, manage, or direct the organization. @@ -1585,8 +1604,8 @@ module Stripe end end - class Verification < Stripe::RequestParams - class AdditionalDocument < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class AdditionalDocument < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. attr_accessor :back # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -1598,7 +1617,7 @@ module Stripe end end - class Document < Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. attr_accessor :back # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -1717,8 +1736,8 @@ module Stripe end end - class Settings < Stripe::RequestParams - class BacsDebitPayments < Stripe::RequestParams + class Settings < ::Stripe::RequestParams + class BacsDebitPayments < ::Stripe::RequestParams # The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free. attr_accessor :display_name @@ -1727,7 +1746,7 @@ module Stripe end end - class Branding < Stripe::RequestParams + class Branding < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px. attr_accessor :icon # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A logo for the account that will be used in Checkout instead of the icon and without the account's name next to it if provided. Must be at least 128px x 128px. @@ -1745,8 +1764,8 @@ module Stripe end end - class CardIssuing < Stripe::RequestParams - class TosAcceptance < Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams + class TosAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted the service agreement. attr_accessor :date # The IP address from which the account representative accepted the service agreement. @@ -1768,8 +1787,8 @@ module Stripe end end - class CardPayments < Stripe::RequestParams - class DeclineOn < Stripe::RequestParams + class CardPayments < ::Stripe::RequestParams + class DeclineOn < ::Stripe::RequestParams # Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification. attr_accessor :avs_failure # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification. @@ -1802,7 +1821,7 @@ module Stripe end end - class Invoices < Stripe::RequestParams + class Invoices < ::Stripe::RequestParams # The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized. attr_accessor :default_account_tax_ids # Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page. @@ -1814,7 +1833,7 @@ module Stripe end end - class Payments < Stripe::RequestParams + class Payments < ::Stripe::RequestParams # The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors). attr_accessor :statement_descriptor # The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). @@ -1833,8 +1852,8 @@ module Stripe end end - class Payouts < Stripe::RequestParams - class Schedule < Stripe::RequestParams + class Payouts < ::Stripe::RequestParams + class Schedule < ::Stripe::RequestParams # The number of days charge funds are held before being paid out. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `interval` is `manual`. [Learn more about controlling payout delay days](/connect/manage-payout-schedule). attr_accessor :delay_days # How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`. @@ -1878,8 +1897,8 @@ module Stripe end end - class Treasury < Stripe::RequestParams - class TosAcceptance < Stripe::RequestParams + class Treasury < ::Stripe::RequestParams + class TosAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted the service agreement. attr_accessor :date # The IP address from which the account representative accepted the service agreement. @@ -1938,7 +1957,7 @@ module Stripe end end - class TosAcceptance < Stripe::RequestParams + class TosAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted their service agreement. attr_accessor :date # The IP address from which the account representative accepted their service agreement. diff --git a/lib/stripe/params/apple_pay_domain_create_params.rb b/lib/stripe/params/apple_pay_domain_create_params.rb index e607cfe4..1030db3e 100644 --- a/lib/stripe/params/apple_pay_domain_create_params.rb +++ b/lib/stripe/params/apple_pay_domain_create_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class ApplePayDomainCreateParams < Stripe::RequestParams + class ApplePayDomainCreateParams < ::Stripe::RequestParams # Attribute for param field domain_name attr_accessor :domain_name # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/apple_pay_domain_delete_params.rb b/lib/stripe/params/apple_pay_domain_delete_params.rb index 8e49ce0b..c0a51416 100644 --- a/lib/stripe/params/apple_pay_domain_delete_params.rb +++ b/lib/stripe/params/apple_pay_domain_delete_params.rb @@ -2,5 +2,5 @@ # frozen_string_literal: true module Stripe - class ApplePayDomainDeleteParams < Stripe::RequestParams; end + class ApplePayDomainDeleteParams < ::Stripe::RequestParams; end end diff --git a/lib/stripe/params/apple_pay_domain_list_params.rb b/lib/stripe/params/apple_pay_domain_list_params.rb index 035a6bc0..1618d31d 100644 --- a/lib/stripe/params/apple_pay_domain_list_params.rb +++ b/lib/stripe/params/apple_pay_domain_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class ApplePayDomainListParams < Stripe::RequestParams + class ApplePayDomainListParams < ::Stripe::RequestParams # Attribute for param field domain_name attr_accessor :domain_name # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. diff --git a/lib/stripe/params/apple_pay_domain_retrieve_params.rb b/lib/stripe/params/apple_pay_domain_retrieve_params.rb index a432f1c1..601ebcc5 100644 --- a/lib/stripe/params/apple_pay_domain_retrieve_params.rb +++ b/lib/stripe/params/apple_pay_domain_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class ApplePayDomainRetrieveParams < Stripe::RequestParams + class ApplePayDomainRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/application_fee_list_params.rb b/lib/stripe/params/application_fee_list_params.rb index 9dec623f..38d99275 100644 --- a/lib/stripe/params/application_fee_list_params.rb +++ b/lib/stripe/params/application_fee_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class ApplicationFeeListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ApplicationFeeListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/application_fee_refund_create_params.rb b/lib/stripe/params/application_fee_refund_create_params.rb index 54cc82e5..1cf0fc9c 100644 --- a/lib/stripe/params/application_fee_refund_create_params.rb +++ b/lib/stripe/params/application_fee_refund_create_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class ApplicationFeeRefundCreateParams < Stripe::RequestParams + class ApplicationFeeRefundCreateParams < ::Stripe::RequestParams # A positive integer, in _cents (or local equivalent)_, representing how much of this fee to refund. Can refund only up to the remaining unrefunded amount of the fee. attr_accessor :amount # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/application_fee_refund_list_params.rb b/lib/stripe/params/application_fee_refund_list_params.rb index f7c256e9..ba113aaf 100644 --- a/lib/stripe/params/application_fee_refund_list_params.rb +++ b/lib/stripe/params/application_fee_refund_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class ApplicationFeeRefundListParams < Stripe::RequestParams + class ApplicationFeeRefundListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/application_fee_refund_retrieve_params.rb b/lib/stripe/params/application_fee_refund_retrieve_params.rb index 5ba70a26..6128749e 100644 --- a/lib/stripe/params/application_fee_refund_retrieve_params.rb +++ b/lib/stripe/params/application_fee_refund_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class ApplicationFeeRefundRetrieveParams < Stripe::RequestParams + class ApplicationFeeRefundRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/application_fee_refund_update_params.rb b/lib/stripe/params/application_fee_refund_update_params.rb index 5d213bd5..5d472243 100644 --- a/lib/stripe/params/application_fee_refund_update_params.rb +++ b/lib/stripe/params/application_fee_refund_update_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class ApplicationFeeRefundUpdateParams < Stripe::RequestParams + class ApplicationFeeRefundUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. diff --git a/lib/stripe/params/application_fee_retrieve_params.rb b/lib/stripe/params/application_fee_retrieve_params.rb index 8544ba96..e9e2f7d7 100644 --- a/lib/stripe/params/application_fee_retrieve_params.rb +++ b/lib/stripe/params/application_fee_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class ApplicationFeeRetrieveParams < Stripe::RequestParams + class ApplicationFeeRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/apps/secret_create_params.rb b/lib/stripe/params/apps/secret_create_params.rb index cfb6cd7b..b07fa4bb 100644 --- a/lib/stripe/params/apps/secret_create_params.rb +++ b/lib/stripe/params/apps/secret_create_params.rb @@ -3,8 +3,8 @@ module Stripe module Apps - class SecretCreateParams < Stripe::RequestParams - class Scope < Stripe::RequestParams + class SecretCreateParams < ::Stripe::RequestParams + class Scope < ::Stripe::RequestParams # The secret scope type. attr_accessor :type # The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`. diff --git a/lib/stripe/params/apps/secret_delete_where_params.rb b/lib/stripe/params/apps/secret_delete_where_params.rb index 46544315..f246a46c 100644 --- a/lib/stripe/params/apps/secret_delete_where_params.rb +++ b/lib/stripe/params/apps/secret_delete_where_params.rb @@ -3,8 +3,8 @@ module Stripe module Apps - class SecretDeleteWhereParams < Stripe::RequestParams - class Scope < Stripe::RequestParams + class SecretDeleteWhereParams < ::Stripe::RequestParams + class Scope < ::Stripe::RequestParams # The secret scope type. attr_accessor :type # The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`. diff --git a/lib/stripe/params/apps/secret_find_params.rb b/lib/stripe/params/apps/secret_find_params.rb index 6baa78c6..322f0370 100644 --- a/lib/stripe/params/apps/secret_find_params.rb +++ b/lib/stripe/params/apps/secret_find_params.rb @@ -3,8 +3,8 @@ module Stripe module Apps - class SecretFindParams < Stripe::RequestParams - class Scope < Stripe::RequestParams + class SecretFindParams < ::Stripe::RequestParams + class Scope < ::Stripe::RequestParams # The secret scope type. attr_accessor :type # The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`. diff --git a/lib/stripe/params/apps/secret_list_params.rb b/lib/stripe/params/apps/secret_list_params.rb index f95dbcf7..c434f681 100644 --- a/lib/stripe/params/apps/secret_list_params.rb +++ b/lib/stripe/params/apps/secret_list_params.rb @@ -3,8 +3,8 @@ module Stripe module Apps - class SecretListParams < Stripe::RequestParams - class Scope < Stripe::RequestParams + class SecretListParams < ::Stripe::RequestParams + class Scope < ::Stripe::RequestParams # The secret scope type. attr_accessor :type # The user ID. This field is required if `type` is set to `user`, and should not be provided if `type` is set to `account`. diff --git a/lib/stripe/params/balance_retrieve_params.rb b/lib/stripe/params/balance_retrieve_params.rb index ec77dabe..10eff0f3 100644 --- a/lib/stripe/params/balance_retrieve_params.rb +++ b/lib/stripe/params/balance_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class BalanceRetrieveParams < Stripe::RequestParams + class BalanceRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/balance_settings_retrieve_params.rb b/lib/stripe/params/balance_settings_retrieve_params.rb index 453371e7..0a8cba69 100644 --- a/lib/stripe/params/balance_settings_retrieve_params.rb +++ b/lib/stripe/params/balance_settings_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class BalanceSettingsRetrieveParams < Stripe::RequestParams + class BalanceSettingsRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/balance_settings_update_params.rb b/lib/stripe/params/balance_settings_update_params.rb index e5adec0c..9ed21810 100644 --- a/lib/stripe/params/balance_settings_update_params.rb +++ b/lib/stripe/params/balance_settings_update_params.rb @@ -2,10 +2,10 @@ # frozen_string_literal: true module Stripe - class BalanceSettingsUpdateParams < Stripe::RequestParams - class Payments < Stripe::RequestParams - class Payouts < Stripe::RequestParams - class Schedule < Stripe::RequestParams + class BalanceSettingsUpdateParams < ::Stripe::RequestParams + class Payments < ::Stripe::RequestParams + class Payouts < ::Stripe::RequestParams + class Schedule < ::Stripe::RequestParams # How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`. attr_accessor :interval # The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`. @@ -33,7 +33,7 @@ module Stripe end end - class SettlementTiming < Stripe::RequestParams + class SettlementTiming < ::Stripe::RequestParams # Change `delay_days` for this account, which determines the number of days charge funds are held before becoming available. The maximum value is 31. Passing an empty string to `delay_days_override` will return `delay_days` to the default, which is the lowest available value for the account. [Learn more about controlling delay days](/connect/manage-payout-schedule). attr_accessor :delay_days_override diff --git a/lib/stripe/params/balance_transaction_list_params.rb b/lib/stripe/params/balance_transaction_list_params.rb index 8f668ef4..d2b78aaf 100644 --- a/lib/stripe/params/balance_transaction_list_params.rb +++ b/lib/stripe/params/balance_transaction_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class BalanceTransactionListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class BalanceTransactionListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/balance_transaction_retrieve_params.rb b/lib/stripe/params/balance_transaction_retrieve_params.rb index d9905970..7b9634af 100644 --- a/lib/stripe/params/balance_transaction_retrieve_params.rb +++ b/lib/stripe/params/balance_transaction_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class BalanceTransactionRetrieveParams < Stripe::RequestParams + class BalanceTransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/billing/alert_activate_params.rb b/lib/stripe/params/billing/alert_activate_params.rb index f2eaf0b2..dec27e35 100644 --- a/lib/stripe/params/billing/alert_activate_params.rb +++ b/lib/stripe/params/billing/alert_activate_params.rb @@ -3,7 +3,7 @@ module Stripe module Billing - class AlertActivateParams < Stripe::RequestParams + class AlertActivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/billing/alert_archive_params.rb b/lib/stripe/params/billing/alert_archive_params.rb index 32ec30f6..3aac388f 100644 --- a/lib/stripe/params/billing/alert_archive_params.rb +++ b/lib/stripe/params/billing/alert_archive_params.rb @@ -3,7 +3,7 @@ module Stripe module Billing - class AlertArchiveParams < Stripe::RequestParams + class AlertArchiveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/billing/alert_create_params.rb b/lib/stripe/params/billing/alert_create_params.rb index 2c670f9d..953174e6 100644 --- a/lib/stripe/params/billing/alert_create_params.rb +++ b/lib/stripe/params/billing/alert_create_params.rb @@ -3,9 +3,9 @@ module Stripe module Billing - class AlertCreateParams < Stripe::RequestParams - class UsageThreshold < Stripe::RequestParams - class Filter < Stripe::RequestParams + class AlertCreateParams < ::Stripe::RequestParams + class UsageThreshold < ::Stripe::RequestParams + class Filter < ::Stripe::RequestParams # Limit the scope to this usage alert only to this customer. attr_accessor :customer # What type of filter is being applied to this usage alert. diff --git a/lib/stripe/params/billing/alert_deactivate_params.rb b/lib/stripe/params/billing/alert_deactivate_params.rb index dc17a895..4200e05f 100644 --- a/lib/stripe/params/billing/alert_deactivate_params.rb +++ b/lib/stripe/params/billing/alert_deactivate_params.rb @@ -3,7 +3,7 @@ module Stripe module Billing - class AlertDeactivateParams < Stripe::RequestParams + class AlertDeactivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/billing/alert_list_params.rb b/lib/stripe/params/billing/alert_list_params.rb index 49a867a9..c812b1b5 100644 --- a/lib/stripe/params/billing/alert_list_params.rb +++ b/lib/stripe/params/billing/alert_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Billing - class AlertListParams < Stripe::RequestParams + class AlertListParams < ::Stripe::RequestParams # Filter results to only include this type of alert. attr_accessor :alert_type # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. diff --git a/lib/stripe/params/billing/alert_retrieve_params.rb b/lib/stripe/params/billing/alert_retrieve_params.rb index f6f421ec..c7dae1c2 100644 --- a/lib/stripe/params/billing/alert_retrieve_params.rb +++ b/lib/stripe/params/billing/alert_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Billing - class AlertRetrieveParams < Stripe::RequestParams + class AlertRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb b/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb index 8514b186..e650fe06 100644 --- a/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +++ b/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb @@ -3,10 +3,10 @@ module Stripe module Billing - class CreditBalanceSummaryRetrieveParams < Stripe::RequestParams - class Filter < Stripe::RequestParams - class ApplicabilityScope < Stripe::RequestParams - class Price < Stripe::RequestParams + class CreditBalanceSummaryRetrieveParams < ::Stripe::RequestParams + class Filter < ::Stripe::RequestParams + class ApplicabilityScope < ::Stripe::RequestParams + class Price < ::Stripe::RequestParams # The price ID this credit grant should apply to. attr_accessor :id diff --git a/lib/stripe/params/billing/credit_balance_transaction_list_params.rb b/lib/stripe/params/billing/credit_balance_transaction_list_params.rb index b4531709..406f6108 100644 --- a/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +++ b/lib/stripe/params/billing/credit_balance_transaction_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Billing - class CreditBalanceTransactionListParams < Stripe::RequestParams + class CreditBalanceTransactionListParams < ::Stripe::RequestParams # The credit grant for which to fetch credit balance transactions. attr_accessor :credit_grant # The customer for which to fetch credit balance transactions. diff --git a/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb b/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb index 82c6fb64..fe4c65a6 100644 --- a/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb +++ b/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Billing - class CreditBalanceTransactionRetrieveParams < Stripe::RequestParams + class CreditBalanceTransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/billing/credit_grant_create_params.rb b/lib/stripe/params/billing/credit_grant_create_params.rb index 4352231b..db89fbfb 100644 --- a/lib/stripe/params/billing/credit_grant_create_params.rb +++ b/lib/stripe/params/billing/credit_grant_create_params.rb @@ -3,9 +3,9 @@ module Stripe module Billing - class CreditGrantCreateParams < Stripe::RequestParams - class Amount < Stripe::RequestParams - class Monetary < Stripe::RequestParams + class CreditGrantCreateParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + class Monetary < ::Stripe::RequestParams # Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `value` parameter. attr_accessor :currency # A positive integer representing the amount of the credit grant. @@ -27,9 +27,9 @@ module Stripe end end - class ApplicabilityConfig < Stripe::RequestParams - class Scope < Stripe::RequestParams - class Price < Stripe::RequestParams + class ApplicabilityConfig < ::Stripe::RequestParams + class Scope < ::Stripe::RequestParams + class Price < ::Stripe::RequestParams # The price ID this credit grant should apply to. attr_accessor :id @@ -58,7 +58,7 @@ module Stripe attr_accessor :amount # Configuration specifying what this credit grant applies to. We currently only support `metered` prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. attr_accessor :applicability_config - # The category of this credit grant. + # The category of this credit grant. It defaults to `paid` if not specified. attr_accessor :category # ID of the customer to receive the billing credits. attr_accessor :customer diff --git a/lib/stripe/params/billing/credit_grant_expire_params.rb b/lib/stripe/params/billing/credit_grant_expire_params.rb index ba95d8a2..000b57dc 100644 --- a/lib/stripe/params/billing/credit_grant_expire_params.rb +++ b/lib/stripe/params/billing/credit_grant_expire_params.rb @@ -3,7 +3,7 @@ module Stripe module Billing - class CreditGrantExpireParams < Stripe::RequestParams + class CreditGrantExpireParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/billing/credit_grant_list_params.rb b/lib/stripe/params/billing/credit_grant_list_params.rb index 79b5b144..4f15911b 100644 --- a/lib/stripe/params/billing/credit_grant_list_params.rb +++ b/lib/stripe/params/billing/credit_grant_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Billing - class CreditGrantListParams < Stripe::RequestParams + class CreditGrantListParams < ::Stripe::RequestParams # Only return credit grants for this customer. attr_accessor :customer # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. diff --git a/lib/stripe/params/billing/credit_grant_retrieve_params.rb b/lib/stripe/params/billing/credit_grant_retrieve_params.rb index 814aa7c7..4eb5cb5c 100644 --- a/lib/stripe/params/billing/credit_grant_retrieve_params.rb +++ b/lib/stripe/params/billing/credit_grant_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Billing - class CreditGrantRetrieveParams < Stripe::RequestParams + class CreditGrantRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/billing/credit_grant_update_params.rb b/lib/stripe/params/billing/credit_grant_update_params.rb index 79c081fa..41d14287 100644 --- a/lib/stripe/params/billing/credit_grant_update_params.rb +++ b/lib/stripe/params/billing/credit_grant_update_params.rb @@ -3,7 +3,7 @@ module Stripe module Billing - class CreditGrantUpdateParams < Stripe::RequestParams + class CreditGrantUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # The time when the billing credits created by this credit grant expire. If set to empty, the billing credits never expire. diff --git a/lib/stripe/params/billing/credit_grant_void_grant_params.rb b/lib/stripe/params/billing/credit_grant_void_grant_params.rb index 22bf5a4d..d1ed1175 100644 --- a/lib/stripe/params/billing/credit_grant_void_grant_params.rb +++ b/lib/stripe/params/billing/credit_grant_void_grant_params.rb @@ -3,7 +3,7 @@ module Stripe module Billing - class CreditGrantVoidGrantParams < Stripe::RequestParams + class CreditGrantVoidGrantParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/billing/meter_create_params.rb b/lib/stripe/params/billing/meter_create_params.rb index 4864e168..a329de01 100644 --- a/lib/stripe/params/billing/meter_create_params.rb +++ b/lib/stripe/params/billing/meter_create_params.rb @@ -3,8 +3,8 @@ module Stripe module Billing - class MeterCreateParams < Stripe::RequestParams - class CustomerMapping < Stripe::RequestParams + class MeterCreateParams < ::Stripe::RequestParams + class CustomerMapping < ::Stripe::RequestParams # The key in the meter event payload to use for mapping the event to a customer. attr_accessor :event_payload_key # The method for mapping a meter event to a customer. Must be `by_id`. @@ -16,7 +16,7 @@ module Stripe end end - class DefaultAggregation < Stripe::RequestParams + class DefaultAggregation < ::Stripe::RequestParams # Specifies how events are aggregated. Allowed values are `count` to count the number of events, `sum` to sum each event's value and `last` to take the last event's value in the window. attr_accessor :formula @@ -25,7 +25,7 @@ module Stripe end end - class ValueSettings < Stripe::RequestParams + class ValueSettings < ::Stripe::RequestParams # The key in the usage event payload to use as the value for this meter. For example, if the event payload contains usage on a `bytes_used` field, then set the event_payload_key to "bytes_used". attr_accessor :event_payload_key diff --git a/lib/stripe/params/billing/meter_deactivate_params.rb b/lib/stripe/params/billing/meter_deactivate_params.rb index 7ccca6f9..af248be7 100644 --- a/lib/stripe/params/billing/meter_deactivate_params.rb +++ b/lib/stripe/params/billing/meter_deactivate_params.rb @@ -3,7 +3,7 @@ module Stripe module Billing - class MeterDeactivateParams < Stripe::RequestParams + class MeterDeactivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/billing/meter_event_adjustment_create_params.rb b/lib/stripe/params/billing/meter_event_adjustment_create_params.rb index ad349d43..343524ba 100644 --- a/lib/stripe/params/billing/meter_event_adjustment_create_params.rb +++ b/lib/stripe/params/billing/meter_event_adjustment_create_params.rb @@ -3,8 +3,8 @@ module Stripe module Billing - class MeterEventAdjustmentCreateParams < Stripe::RequestParams - class Cancel < Stripe::RequestParams + class MeterEventAdjustmentCreateParams < ::Stripe::RequestParams + class Cancel < ::Stripe::RequestParams # Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them. attr_accessor :identifier diff --git a/lib/stripe/params/billing/meter_event_create_params.rb b/lib/stripe/params/billing/meter_event_create_params.rb index 613452b0..9374c6ee 100644 --- a/lib/stripe/params/billing/meter_event_create_params.rb +++ b/lib/stripe/params/billing/meter_event_create_params.rb @@ -3,7 +3,7 @@ module Stripe module Billing - class MeterEventCreateParams < Stripe::RequestParams + class MeterEventCreateParams < ::Stripe::RequestParams # The name of the meter event. Corresponds with the `event_name` field on a meter. attr_accessor :event_name # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/billing/meter_event_summary_list_params.rb b/lib/stripe/params/billing/meter_event_summary_list_params.rb index 62b6a743..250cb55b 100644 --- a/lib/stripe/params/billing/meter_event_summary_list_params.rb +++ b/lib/stripe/params/billing/meter_event_summary_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Billing - class MeterEventSummaryListParams < Stripe::RequestParams + class MeterEventSummaryListParams < ::Stripe::RequestParams # The customer for which to fetch event summaries. attr_accessor :customer # The timestamp from when to stop aggregating meter events (exclusive). Must be aligned with minute boundaries. diff --git a/lib/stripe/params/billing/meter_list_params.rb b/lib/stripe/params/billing/meter_list_params.rb index 9ade0ef4..4c31821f 100644 --- a/lib/stripe/params/billing/meter_list_params.rb +++ b/lib/stripe/params/billing/meter_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Billing - class MeterListParams < Stripe::RequestParams + class MeterListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/billing/meter_reactivate_params.rb b/lib/stripe/params/billing/meter_reactivate_params.rb index 65ce0964..2d862adf 100644 --- a/lib/stripe/params/billing/meter_reactivate_params.rb +++ b/lib/stripe/params/billing/meter_reactivate_params.rb @@ -3,7 +3,7 @@ module Stripe module Billing - class MeterReactivateParams < Stripe::RequestParams + class MeterReactivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/billing/meter_retrieve_params.rb b/lib/stripe/params/billing/meter_retrieve_params.rb index a64ac422..18605a9f 100644 --- a/lib/stripe/params/billing/meter_retrieve_params.rb +++ b/lib/stripe/params/billing/meter_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Billing - class MeterRetrieveParams < Stripe::RequestParams + class MeterRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/billing/meter_update_params.rb b/lib/stripe/params/billing/meter_update_params.rb index f33daa71..8c730643 100644 --- a/lib/stripe/params/billing/meter_update_params.rb +++ b/lib/stripe/params/billing/meter_update_params.rb @@ -3,7 +3,7 @@ module Stripe module Billing - class MeterUpdateParams < Stripe::RequestParams + class MeterUpdateParams < ::Stripe::RequestParams # The meter’s name. Not visible to the customer. attr_accessor :display_name # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/billing_portal/configuration_create_params.rb b/lib/stripe/params/billing_portal/configuration_create_params.rb index 618166a9..e4bc3820 100644 --- a/lib/stripe/params/billing_portal/configuration_create_params.rb +++ b/lib/stripe/params/billing_portal/configuration_create_params.rb @@ -3,8 +3,8 @@ module Stripe module BillingPortal - class ConfigurationCreateParams < Stripe::RequestParams - class BusinessProfile < Stripe::RequestParams + class ConfigurationCreateParams < ::Stripe::RequestParams + class BusinessProfile < ::Stripe::RequestParams # The messaging shown to customers in the portal. attr_accessor :headline # A link to the business’s publicly available privacy policy. @@ -19,8 +19,8 @@ module Stripe end end - class Features < Stripe::RequestParams - class CustomerUpdate < Stripe::RequestParams + class Features < ::Stripe::RequestParams + class CustomerUpdate < ::Stripe::RequestParams # The types of customer updates that are supported. When empty, customers are not updateable. attr_accessor :allowed_updates # Whether the feature is enabled. @@ -32,7 +32,7 @@ module Stripe end end - class InvoiceHistory < Stripe::RequestParams + class InvoiceHistory < ::Stripe::RequestParams # Whether the feature is enabled. attr_accessor :enabled @@ -41,17 +41,20 @@ module Stripe end end - class PaymentMethodUpdate < Stripe::RequestParams + class PaymentMethodUpdate < ::Stripe::RequestParams # Whether the feature is enabled. attr_accessor :enabled + # The [Payment Method Configuration](/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set or set to an empty string, the default payment method configuration is used. + attr_accessor :payment_method_configuration - def initialize(enabled: nil) + def initialize(enabled: nil, payment_method_configuration: nil) @enabled = enabled + @payment_method_configuration = payment_method_configuration end end - class SubscriptionCancel < Stripe::RequestParams - class CancellationReason < Stripe::RequestParams + class SubscriptionCancel < ::Stripe::RequestParams + class CancellationReason < ::Stripe::RequestParams # Whether the feature is enabled. attr_accessor :enabled # Which cancellation reasons will be given as options to the customer. @@ -79,9 +82,9 @@ module Stripe end end - class SubscriptionUpdate < Stripe::RequestParams - class Product < Stripe::RequestParams - class AdjustableQuantity < Stripe::RequestParams + class SubscriptionUpdate < ::Stripe::RequestParams + class Product < ::Stripe::RequestParams + class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative integer. attr_accessor :enabled # The maximum quantity that can be set for the product. @@ -109,8 +112,8 @@ module Stripe end end - class ScheduleAtPeriodEnd < Stripe::RequestParams - class Condition < Stripe::RequestParams + class ScheduleAtPeriodEnd < ::Stripe::RequestParams + class Condition < ::Stripe::RequestParams # The type of condition. attr_accessor :type @@ -180,7 +183,7 @@ module Stripe end end - class LoginPage < Stripe::RequestParams + class LoginPage < ::Stripe::RequestParams # Set to `true` to generate a shareable URL [`login_page.url`](https://stripe.com/docs/api/customer_portal/configuration#portal_configuration_object-login_page-url) that will take your customers to a hosted login page for the customer portal. attr_accessor :enabled diff --git a/lib/stripe/params/billing_portal/configuration_list_params.rb b/lib/stripe/params/billing_portal/configuration_list_params.rb index 99bd031d..ef785b51 100644 --- a/lib/stripe/params/billing_portal/configuration_list_params.rb +++ b/lib/stripe/params/billing_portal/configuration_list_params.rb @@ -3,7 +3,7 @@ module Stripe module BillingPortal - class ConfigurationListParams < Stripe::RequestParams + class ConfigurationListParams < ::Stripe::RequestParams # Only return configurations that are active or inactive (e.g., pass `true` to only list active configurations). attr_accessor :active # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. diff --git a/lib/stripe/params/billing_portal/configuration_retrieve_params.rb b/lib/stripe/params/billing_portal/configuration_retrieve_params.rb index ef387d94..a846f692 100644 --- a/lib/stripe/params/billing_portal/configuration_retrieve_params.rb +++ b/lib/stripe/params/billing_portal/configuration_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module BillingPortal - class ConfigurationRetrieveParams < Stripe::RequestParams + class ConfigurationRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/billing_portal/configuration_update_params.rb b/lib/stripe/params/billing_portal/configuration_update_params.rb index 9d277adf..0a28ddca 100644 --- a/lib/stripe/params/billing_portal/configuration_update_params.rb +++ b/lib/stripe/params/billing_portal/configuration_update_params.rb @@ -3,8 +3,8 @@ module Stripe module BillingPortal - class ConfigurationUpdateParams < Stripe::RequestParams - class BusinessProfile < Stripe::RequestParams + class ConfigurationUpdateParams < ::Stripe::RequestParams + class BusinessProfile < ::Stripe::RequestParams # The messaging shown to customers in the portal. attr_accessor :headline # A link to the business’s publicly available privacy policy. @@ -19,8 +19,8 @@ module Stripe end end - class Features < Stripe::RequestParams - class CustomerUpdate < Stripe::RequestParams + class Features < ::Stripe::RequestParams + class CustomerUpdate < ::Stripe::RequestParams # The types of customer updates that are supported. When empty, customers are not updateable. attr_accessor :allowed_updates # Whether the feature is enabled. @@ -32,7 +32,7 @@ module Stripe end end - class InvoiceHistory < Stripe::RequestParams + class InvoiceHistory < ::Stripe::RequestParams # Whether the feature is enabled. attr_accessor :enabled @@ -41,17 +41,20 @@ module Stripe end end - class PaymentMethodUpdate < Stripe::RequestParams + class PaymentMethodUpdate < ::Stripe::RequestParams # Whether the feature is enabled. attr_accessor :enabled + # The [Payment Method Configuration](/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set or set to an empty string, the default payment method configuration is used. + attr_accessor :payment_method_configuration - def initialize(enabled: nil) + def initialize(enabled: nil, payment_method_configuration: nil) @enabled = enabled + @payment_method_configuration = payment_method_configuration end end - class SubscriptionCancel < Stripe::RequestParams - class CancellationReason < Stripe::RequestParams + class SubscriptionCancel < ::Stripe::RequestParams + class CancellationReason < ::Stripe::RequestParams # Whether the feature is enabled. attr_accessor :enabled # Which cancellation reasons will be given as options to the customer. @@ -79,9 +82,9 @@ module Stripe end end - class SubscriptionUpdate < Stripe::RequestParams - class Product < Stripe::RequestParams - class AdjustableQuantity < Stripe::RequestParams + class SubscriptionUpdate < ::Stripe::RequestParams + class Product < ::Stripe::RequestParams + class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative integer. attr_accessor :enabled # The maximum quantity that can be set for the product. @@ -109,8 +112,8 @@ module Stripe end end - class ScheduleAtPeriodEnd < Stripe::RequestParams - class Condition < Stripe::RequestParams + class ScheduleAtPeriodEnd < ::Stripe::RequestParams + class Condition < ::Stripe::RequestParams # The type of condition. attr_accessor :type @@ -180,7 +183,7 @@ module Stripe end end - class LoginPage < Stripe::RequestParams + class LoginPage < ::Stripe::RequestParams # Set to `true` to generate a shareable URL [`login_page.url`](https://stripe.com/docs/api/customer_portal/configuration#portal_configuration_object-login_page-url) that will take your customers to a hosted login page for the customer portal. # # Set to `false` to deactivate the `login_page.url`. diff --git a/lib/stripe/params/billing_portal/session_create_params.rb b/lib/stripe/params/billing_portal/session_create_params.rb index 4a1c7629..a7f4c014 100644 --- a/lib/stripe/params/billing_portal/session_create_params.rb +++ b/lib/stripe/params/billing_portal/session_create_params.rb @@ -3,10 +3,10 @@ module Stripe module BillingPortal - class SessionCreateParams < Stripe::RequestParams - class FlowData < Stripe::RequestParams - class AfterCompletion < Stripe::RequestParams - class HostedConfirmation < Stripe::RequestParams + class SessionCreateParams < ::Stripe::RequestParams + class FlowData < ::Stripe::RequestParams + class AfterCompletion < ::Stripe::RequestParams + class HostedConfirmation < ::Stripe::RequestParams # A custom message to display to the customer after the flow is completed. attr_accessor :custom_message @@ -15,7 +15,7 @@ module Stripe end end - class Redirect < Stripe::RequestParams + class Redirect < ::Stripe::RequestParams # The URL the customer will be redirected to after the flow is completed. attr_accessor :return_url @@ -37,9 +37,9 @@ module Stripe end end - class SubscriptionCancel < Stripe::RequestParams - class Retention < Stripe::RequestParams - class CouponOffer < Stripe::RequestParams + class SubscriptionCancel < ::Stripe::RequestParams + class Retention < ::Stripe::RequestParams + class CouponOffer < ::Stripe::RequestParams # The ID of the coupon to be offered. attr_accessor :coupon @@ -68,7 +68,7 @@ module Stripe end end - class SubscriptionUpdate < Stripe::RequestParams + class SubscriptionUpdate < ::Stripe::RequestParams # The ID of the subscription to be updated. attr_accessor :subscription @@ -77,8 +77,8 @@ module Stripe end end - class SubscriptionUpdateConfirm < Stripe::RequestParams - class Discount < Stripe::RequestParams + class SubscriptionUpdateConfirm < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # The ID of the coupon to apply to this subscription update. attr_accessor :coupon # The ID of a promotion code to apply to this subscription update. @@ -90,7 +90,7 @@ module Stripe end end - class Item < Stripe::RequestParams + class Item < ::Stripe::RequestParams # The ID of the [subscription item](https://stripe.com/docs/api/subscriptions/object#subscription_object-items-data-id) to be updated. attr_accessor :id # The price the customer should subscribe to through this flow. The price must also be included in the configuration's [`features.subscription_update.products`](https://stripe.com/docs/api/customer_portal/configuration#portal_configuration_object-features-subscription_update-products). diff --git a/lib/stripe/params/charge_capture_params.rb b/lib/stripe/params/charge_capture_params.rb index 7c910210..7ba4497d 100644 --- a/lib/stripe/params/charge_capture_params.rb +++ b/lib/stripe/params/charge_capture_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class ChargeCaptureParams < Stripe::RequestParams - class TransferData < Stripe::RequestParams + class ChargeCaptureParams < ::Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account. attr_accessor :amount diff --git a/lib/stripe/params/charge_create_params.rb b/lib/stripe/params/charge_create_params.rb index ee6ae13e..00f9b6c5 100644 --- a/lib/stripe/params/charge_create_params.rb +++ b/lib/stripe/params/charge_create_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class ChargeCreateParams < Stripe::RequestParams - class Destination < Stripe::RequestParams + class ChargeCreateParams < ::Stripe::RequestParams + class Destination < ::Stripe::RequestParams # ID of an existing, connected Stripe account. attr_accessor :account # The amount to transfer to the destination account without creating an `Application Fee` object. Cannot be combined with the `application_fee` parameter. Must be less than or equal to the charge amount. @@ -15,7 +15,7 @@ module Stripe end end - class RadarOptions < Stripe::RequestParams + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. attr_accessor :session @@ -24,8 +24,8 @@ module Stripe end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -75,7 +75,7 @@ module Stripe end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account. attr_accessor :amount # ID of an existing, connected Stripe account. diff --git a/lib/stripe/params/charge_list_params.rb b/lib/stripe/params/charge_list_params.rb index fd71d40a..eae91434 100644 --- a/lib/stripe/params/charge_list_params.rb +++ b/lib/stripe/params/charge_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class ChargeListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ChargeListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/charge_retrieve_params.rb b/lib/stripe/params/charge_retrieve_params.rb index a3104f33..b25f2e9e 100644 --- a/lib/stripe/params/charge_retrieve_params.rb +++ b/lib/stripe/params/charge_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class ChargeRetrieveParams < Stripe::RequestParams + class ChargeRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/charge_search_params.rb b/lib/stripe/params/charge_search_params.rb index 9c07e471..0fbd71e2 100644 --- a/lib/stripe/params/charge_search_params.rb +++ b/lib/stripe/params/charge_search_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class ChargeSearchParams < Stripe::RequestParams + class ChargeSearchParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. diff --git a/lib/stripe/params/charge_update_params.rb b/lib/stripe/params/charge_update_params.rb index d09c1a55..f707f292 100644 --- a/lib/stripe/params/charge_update_params.rb +++ b/lib/stripe/params/charge_update_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class ChargeUpdateParams < Stripe::RequestParams - class FraudDetails < Stripe::RequestParams + class ChargeUpdateParams < ::Stripe::RequestParams + class FraudDetails < ::Stripe::RequestParams # Either `safe` or `fraudulent`. attr_accessor :user_report @@ -12,8 +12,8 @@ module Stripe end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). diff --git a/lib/stripe/params/checkout/session_create_params.rb b/lib/stripe/params/checkout/session_create_params.rb index 27a302f3..ab4c6e79 100644 --- a/lib/stripe/params/checkout/session_create_params.rb +++ b/lib/stripe/params/checkout/session_create_params.rb @@ -3,8 +3,8 @@ module Stripe module Checkout - class SessionCreateParams < Stripe::RequestParams - class AdaptivePricing < Stripe::RequestParams + class SessionCreateParams < ::Stripe::RequestParams + class AdaptivePricing < ::Stripe::RequestParams # If set to `true`, Adaptive Pricing is available on [eligible sessions](https://docs.stripe.com/payments/currencies/localize-prices/adaptive-pricing?payment-ui=stripe-hosted#restrictions). Defaults to your [dashboard setting](https://dashboard.stripe.com/settings/adaptive-pricing). attr_accessor :enabled @@ -13,8 +13,8 @@ module Stripe end end - class AfterExpiration < Stripe::RequestParams - class Recovery < Stripe::RequestParams + class AfterExpiration < ::Stripe::RequestParams + class Recovery < ::Stripe::RequestParams # Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults to `false` attr_accessor :allow_promotion_codes # If `true`, a recovery URL will be generated to recover this Checkout Session if it @@ -35,8 +35,8 @@ module Stripe end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -60,8 +60,8 @@ module Stripe end end - class BrandingSettings < Stripe::RequestParams - class Icon < Stripe::RequestParams + class BrandingSettings < ::Stripe::RequestParams + class Icon < ::Stripe::RequestParams # The ID of a [File upload](https://stripe.com/docs/api/files) representing the icon. Purpose must be `business_icon`. Required if `type` is `file` and disallowed otherwise. attr_accessor :file # The type of image for the icon. Must be one of `file` or `url`. @@ -76,7 +76,7 @@ module Stripe end end - class Logo < Stripe::RequestParams + class Logo < ::Stripe::RequestParams # The ID of a [File upload](https://stripe.com/docs/api/files) representing the logo. Purpose must be `business_logo`. Required if `type` is `file` and disallowed otherwise. attr_accessor :file # The type of image for the logo. Must be one of `file` or `url`. @@ -96,13 +96,13 @@ module Stripe attr_accessor :border_style # A hex color value starting with `#` representing the button color for the Checkout Session. attr_accessor :button_color - # A string to override the business name shown on the Checkout Session. + # A string to override the business name shown on the Checkout Session. This only shows at the top of the Checkout page, and your business name still appears in terms, receipts, and other places. attr_accessor :display_name # The font family for the Checkout Session corresponding to one of the [supported font families](https://docs.stripe.com/payments/checkout/customization/appearance?payment-ui=stripe-hosted#font-compatibility). attr_accessor :font_family - # The icon for the Checkout Session. You cannot set both `logo` and `icon`. + # The icon for the Checkout Session. For best results, use a square image. attr_accessor :icon - # The logo for the Checkout Session. You cannot set both `logo` and `icon`. + # The logo for the Checkout Session. attr_accessor :logo def initialize( @@ -124,8 +124,8 @@ module Stripe end end - class ConsentCollection < Stripe::RequestParams - class PaymentMethodReuseAgreement < Stripe::RequestParams + class ConsentCollection < ::Stripe::RequestParams + class PaymentMethodReuseAgreement < ::Stripe::RequestParams # Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's # defaults will be used. When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI. attr_accessor :position @@ -151,9 +151,9 @@ module Stripe end end - class CustomField < Stripe::RequestParams - class Dropdown < Stripe::RequestParams - class Option < Stripe::RequestParams + class CustomField < ::Stripe::RequestParams + class Dropdown < ::Stripe::RequestParams + class Option < ::Stripe::RequestParams # The label for the option, displayed to the customer. Up to 100 characters. attr_accessor :label # The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters. @@ -175,7 +175,7 @@ module Stripe end end - class Label < Stripe::RequestParams + class Label < ::Stripe::RequestParams # Custom text for the label, displayed to the customer. Up to 50 characters. attr_accessor :custom # The type of the label. @@ -187,7 +187,7 @@ module Stripe end end - class Numeric < Stripe::RequestParams + class Numeric < ::Stripe::RequestParams # The value that will pre-fill the field on the payment page. attr_accessor :default_value # The maximum character length constraint for the customer's input. @@ -202,7 +202,7 @@ module Stripe end end - class Text < Stripe::RequestParams + class Text < ::Stripe::RequestParams # The value that will pre-fill the field on the payment page. attr_accessor :default_value # The maximum character length constraint for the customer's input. @@ -250,8 +250,8 @@ module Stripe end end - class CustomText < Stripe::RequestParams - class AfterSubmit < Stripe::RequestParams + class CustomText < ::Stripe::RequestParams + class AfterSubmit < ::Stripe::RequestParams # Text may be up to 1200 characters in length. attr_accessor :message @@ -260,7 +260,7 @@ module Stripe end end - class ShippingAddress < Stripe::RequestParams + class ShippingAddress < ::Stripe::RequestParams # Text may be up to 1200 characters in length. attr_accessor :message @@ -269,7 +269,7 @@ module Stripe end end - class Submit < Stripe::RequestParams + class Submit < ::Stripe::RequestParams # Text may be up to 1200 characters in length. attr_accessor :message @@ -278,7 +278,7 @@ module Stripe end end - class TermsOfServiceAcceptance < Stripe::RequestParams + class TermsOfServiceAcceptance < ::Stripe::RequestParams # Text may be up to 1200 characters in length. attr_accessor :message @@ -308,7 +308,7 @@ module Stripe end end - class CustomerUpdate < Stripe::RequestParams + class CustomerUpdate < ::Stripe::RequestParams # Describes whether Checkout saves the billing address onto `customer.address`. # To always collect a full billing address, use `billing_address_collection`. Defaults to `never`. attr_accessor :address @@ -325,7 +325,7 @@ module Stripe end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # The ID of the coupon to apply to this Session. attr_accessor :coupon # The ID of a promotion code to apply to this Session. @@ -337,9 +337,9 @@ module Stripe end end - class InvoiceCreation < Stripe::RequestParams - class InvoiceData < Stripe::RequestParams - class CustomField < Stripe::RequestParams + class InvoiceCreation < ::Stripe::RequestParams + class InvoiceData < ::Stripe::RequestParams + class CustomField < ::Stripe::RequestParams # The name of the custom field. This may be up to 40 characters. attr_accessor :name # The value of the custom field. This may be up to 140 characters. @@ -351,7 +351,7 @@ module Stripe end end - class Issuer < Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -363,7 +363,7 @@ module Stripe end end - class RenderingOptions < Stripe::RequestParams + class RenderingOptions < ::Stripe::RequestParams # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. attr_accessor :amount_tax_display # ID of the invoice rendering template to use for this invoice. @@ -418,8 +418,8 @@ module Stripe end end - class LineItem < Stripe::RequestParams - class AdjustableQuantity < Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative integer. attr_accessor :enabled # The maximum quantity the customer can purchase for the Checkout Session. By default this value is 99. You can specify a value up to 999999. @@ -434,8 +434,8 @@ module Stripe end end - class PriceData < Stripe::RequestParams - class ProductData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class ProductData < ::Stripe::RequestParams # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. attr_accessor :description # A list of up to 8 URLs of images for this product, meant to be displayable to the customer. @@ -466,7 +466,7 @@ module Stripe end end - class Recurring < Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. attr_accessor :interval # The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks). @@ -540,8 +540,8 @@ module Stripe end end - class NameCollection < Stripe::RequestParams - class Business < Stripe::RequestParams + class NameCollection < ::Stripe::RequestParams + class Business < ::Stripe::RequestParams # Enable business name collection on the Checkout Session. Defaults to `false`. attr_accessor :enabled # Whether the customer is required to provide a business name before completing the Checkout Session. Defaults to `false`. @@ -553,7 +553,7 @@ module Stripe end end - class Individual < Stripe::RequestParams + class Individual < ::Stripe::RequestParams # Enable individual name collection on the Checkout Session. Defaults to `false`. attr_accessor :enabled # Whether the customer is required to provide their name before completing the Checkout Session. Defaults to `false`. @@ -575,8 +575,8 @@ module Stripe end end - class OptionalItem < Stripe::RequestParams - class AdjustableQuantity < Stripe::RequestParams + class OptionalItem < ::Stripe::RequestParams + class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative integer. attr_accessor :enabled # The maximum quantity of this item the customer can purchase. By default this value is 99. You can specify a value up to 999999. @@ -604,9 +604,9 @@ module Stripe end end - class PaymentIntentData < Stripe::RequestParams - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class PaymentIntentData < ::Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -656,7 +656,7 @@ module Stripe end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when a charge succeeds. attr_accessor :amount # If specified, successful charges will be attributed to the destination @@ -748,7 +748,7 @@ module Stripe end end - class PaymentMethodData < Stripe::RequestParams + class PaymentMethodData < ::Stripe::RequestParams # Allow redisplay will be set on the payment method on confirmation and indicates whether this payment method can be shown again to the customer in a checkout flow. Only set this field if you wish to override the allow_redisplay value determined by Checkout. attr_accessor :allow_redisplay @@ -757,9 +757,9 @@ module Stripe end end - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # A URL for custom mandate text to render during confirmation step. # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. @@ -819,7 +819,7 @@ module Stripe end end - class Affirm < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -837,7 +837,7 @@ module Stripe end end - class AfterpayClearpay < Stripe::RequestParams + class AfterpayClearpay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -855,7 +855,7 @@ module Stripe end end - class Alipay < Stripe::RequestParams + class Alipay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -870,7 +870,7 @@ module Stripe end end - class Alma < Stripe::RequestParams + class Alma < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method @@ -879,7 +879,7 @@ module Stripe end end - class AmazonPay < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -897,7 +897,7 @@ module Stripe end end - class AuBecsDebit < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -915,8 +915,8 @@ module Stripe end end - class BacsDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. attr_accessor :reference_prefix @@ -944,7 +944,7 @@ module Stripe end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -959,7 +959,7 @@ module Stripe end end - class Billie < Stripe::RequestParams + class Billie < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method @@ -968,7 +968,7 @@ module Stripe end end - class Boleto < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. attr_accessor :expires_after_days # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -986,8 +986,8 @@ module Stripe end end - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams # Setting to true enables installments for this Checkout Session. # Setting to false will prevent any installment plan from applying to a payment. attr_accessor :enabled @@ -997,7 +997,7 @@ module Stripe end end - class Restrictions < Stripe::RequestParams + class Restrictions < ::Stripe::RequestParams # Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. attr_accessor :brands_blocked @@ -1061,7 +1061,7 @@ module Stripe end end - class Cashapp < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1079,9 +1079,9 @@ module Stripe end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. attr_accessor :country @@ -1124,7 +1124,7 @@ module Stripe end end - class DemoPay < Stripe::RequestParams + class DemoPay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1139,7 +1139,7 @@ module Stripe end end - class Eps < Stripe::RequestParams + class Eps < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1154,7 +1154,7 @@ module Stripe end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1169,7 +1169,7 @@ module Stripe end end - class Giropay < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1184,7 +1184,7 @@ module Stripe end end - class Grabpay < Stripe::RequestParams + class Grabpay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1199,7 +1199,7 @@ module Stripe end end - class Ideal < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1214,7 +1214,7 @@ module Stripe end end - class KakaoPay < Stripe::RequestParams + class KakaoPay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1232,9 +1232,9 @@ module Stripe end end - class Klarna < Stripe::RequestParams - class Subscription < Stripe::RequestParams - class NextBilling < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class Subscription < ::Stripe::RequestParams + class NextBilling < ::Stripe::RequestParams # The amount of the next charge for the subscription. attr_accessor :amount # The date of the next charge for the subscription in YYYY-MM-DD format. @@ -1290,7 +1290,7 @@ module Stripe end end - class Konbini < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams # The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days. attr_accessor :expires_after_days # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1308,7 +1308,7 @@ module Stripe end end - class KrCard < Stripe::RequestParams + class KrCard < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1326,7 +1326,7 @@ module Stripe end end - class Link < Stripe::RequestParams + class Link < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1344,7 +1344,7 @@ module Stripe end end - class Mobilepay < Stripe::RequestParams + class Mobilepay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1362,7 +1362,7 @@ module Stripe end end - class Multibanco < Stripe::RequestParams + class Multibanco < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1377,7 +1377,7 @@ module Stripe end end - class NaverPay < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1395,7 +1395,7 @@ module Stripe end end - class Oxxo < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams # The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. attr_accessor :expires_after_days # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1413,7 +1413,7 @@ module Stripe end end - class P24 < Stripe::RequestParams + class P24 < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1431,9 +1431,9 @@ module Stripe end end - class PayByBank < Stripe::RequestParams; end + class PayByBank < ::Stripe::RequestParams; end - class Payco < Stripe::RequestParams + class Payco < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method @@ -1442,7 +1442,7 @@ module Stripe end end - class Paynow < Stripe::RequestParams + class Paynow < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1457,7 +1457,7 @@ module Stripe end end - class Paypal < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method # [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to. @@ -1492,7 +1492,7 @@ module Stripe end end - class Pix < Stripe::RequestParams + class Pix < ::Stripe::RequestParams # Determines if the amount includes the IOF tax. Defaults to `never`. attr_accessor :amount_includes_iof # The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds. @@ -1517,7 +1517,7 @@ module Stripe end end - class RevolutPay < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1535,7 +1535,7 @@ module Stripe end end - class SamsungPay < Stripe::RequestParams + class SamsungPay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method @@ -1544,7 +1544,7 @@ module Stripe end end - class Satispay < Stripe::RequestParams + class Satispay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method @@ -1553,8 +1553,8 @@ module Stripe end end - class SepaDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. attr_accessor :reference_prefix @@ -1582,7 +1582,7 @@ module Stripe end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1597,7 +1597,7 @@ module Stripe end end - class Swish < Stripe::RequestParams + class Swish < ::Stripe::RequestParams # The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent. attr_accessor :reference @@ -1606,8 +1606,23 @@ module Stripe end end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams + class Twint < ::Stripe::RequestParams + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + attr_accessor :setup_future_usage + + def initialize(setup_future_usage: nil) + @setup_future_usage = setup_future_usage + end + end + + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams # The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`. attr_accessor :permissions # List of data features that you would like to retrieve upon account creation. @@ -1646,7 +1661,7 @@ module Stripe end end - class WechatPay < Stripe::RequestParams + class WechatPay < ::Stripe::RequestParams # The app ID registered with WeChat Pay. Only required when client is ios or android. attr_accessor :app_id # The client type that the end customer will pay from @@ -1748,6 +1763,8 @@ module Stripe attr_accessor :sofort # contains details about the Swish payment method options. attr_accessor :swish + # contains details about the TWINT payment method options. + attr_accessor :twint # contains details about the Us Bank Account payment method options. attr_accessor :us_bank_account # contains details about the WeChat Pay payment method options. @@ -1795,6 +1812,7 @@ module Stripe sepa_debit: nil, sofort: nil, swish: nil, + twint: nil, us_bank_account: nil, wechat_pay: nil ) @@ -1839,12 +1857,13 @@ module Stripe @sepa_debit = sepa_debit @sofort = sofort @swish = swish + @twint = twint @us_bank_account = us_bank_account @wechat_pay = wechat_pay end end - class Permissions < Stripe::RequestParams + class Permissions < ::Stripe::RequestParams # Determines which entity is allowed to update the shipping details. # # Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details. @@ -1857,7 +1876,7 @@ module Stripe end end - class PhoneNumberCollection < Stripe::RequestParams + class PhoneNumberCollection < ::Stripe::RequestParams # Set to `true` to enable phone number collection. # # Can only be set in `payment` and `subscription` mode. @@ -1868,7 +1887,7 @@ module Stripe end end - class SavedPaymentMethodOptions < Stripe::RequestParams + class SavedPaymentMethodOptions < ::Stripe::RequestParams # Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with ’allow_redisplay: ‘always’ are shown in Checkout. attr_accessor :allow_redisplay_filters # Enable customers to choose if they wish to remove their saved payment methods. Disabled by default. @@ -1887,7 +1906,7 @@ module Stripe end end - class SetupIntentData < Stripe::RequestParams + class SetupIntentData < ::Stripe::RequestParams # An arbitrary string attached to the object. Often useful for displaying to users. attr_accessor :description # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. @@ -1902,7 +1921,7 @@ module Stripe end end - class ShippingAddressCollection < Stripe::RequestParams + class ShippingAddressCollection < ::Stripe::RequestParams # An array of two-letter ISO country codes representing which countries Checkout should provide as options for # shipping locations. attr_accessor :allowed_countries @@ -1912,10 +1931,10 @@ module Stripe end end - class ShippingOption < Stripe::RequestParams - class ShippingRateData < Stripe::RequestParams - class DeliveryEstimate < Stripe::RequestParams - class Maximum < Stripe::RequestParams + class ShippingOption < ::Stripe::RequestParams + class ShippingRateData < ::Stripe::RequestParams + class DeliveryEstimate < ::Stripe::RequestParams + class Maximum < ::Stripe::RequestParams # A unit of time. attr_accessor :unit # Must be greater than 0. @@ -1927,7 +1946,7 @@ module Stripe end end - class Minimum < Stripe::RequestParams + class Minimum < ::Stripe::RequestParams # A unit of time. attr_accessor :unit # Must be greater than 0. @@ -1949,8 +1968,8 @@ module Stripe end end - class FixedAmount < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class FixedAmount < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A non-negative integer in cents representing how much to charge. attr_accessor :amount # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. @@ -2018,9 +2037,9 @@ module Stripe end end - class SubscriptionData < Stripe::RequestParams - class BillingMode < Stripe::RequestParams - class Flexible < Stripe::RequestParams + class SubscriptionData < ::Stripe::RequestParams + class BillingMode < ::Stripe::RequestParams + class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. attr_accessor :proration_discounts @@ -2039,8 +2058,8 @@ module Stripe end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -2059,7 +2078,7 @@ module Stripe end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. attr_accessor :amount_percent # ID of an existing, connected Stripe account. @@ -2071,8 +2090,8 @@ module Stripe end end - class TrialSettings < Stripe::RequestParams - class EndBehavior < Stripe::RequestParams + class TrialSettings < ::Stripe::RequestParams + class EndBehavior < ::Stripe::RequestParams # Indicates how the subscription should change when the trial ends if the user did not provide a payment method. attr_accessor :missing_payment_method @@ -2149,7 +2168,7 @@ module Stripe end end - class TaxIdCollection < Stripe::RequestParams + class TaxIdCollection < ::Stripe::RequestParams # Enable tax ID collection during checkout. Defaults to `false`. attr_accessor :enabled # Describes whether a tax ID is required during checkout. Defaults to `never`. @@ -2161,8 +2180,8 @@ module Stripe end end - class WalletOptions < Stripe::RequestParams - class Link < Stripe::RequestParams + class WalletOptions < ::Stripe::RequestParams + class Link < ::Stripe::RequestParams # Specifies whether Checkout should display Link as a payment option. By default, Checkout will display all the supported wallets that the Checkout Session was created with. This is the `auto` behavior, and it is the default choice. attr_accessor :display diff --git a/lib/stripe/params/checkout/session_expire_params.rb b/lib/stripe/params/checkout/session_expire_params.rb index e0cb3c5c..61b4e12e 100644 --- a/lib/stripe/params/checkout/session_expire_params.rb +++ b/lib/stripe/params/checkout/session_expire_params.rb @@ -3,7 +3,7 @@ module Stripe module Checkout - class SessionExpireParams < Stripe::RequestParams + class SessionExpireParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/checkout/session_line_item_list_params.rb b/lib/stripe/params/checkout/session_line_item_list_params.rb index e277b90e..b62d9b1b 100644 --- a/lib/stripe/params/checkout/session_line_item_list_params.rb +++ b/lib/stripe/params/checkout/session_line_item_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Checkout - class SessionLineItemListParams < Stripe::RequestParams + class SessionLineItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/checkout/session_list_line_items_params.rb b/lib/stripe/params/checkout/session_list_line_items_params.rb index e18798fb..3a566b3c 100644 --- a/lib/stripe/params/checkout/session_list_line_items_params.rb +++ b/lib/stripe/params/checkout/session_list_line_items_params.rb @@ -3,7 +3,7 @@ module Stripe module Checkout - class SessionListLineItemsParams < Stripe::RequestParams + class SessionListLineItemsParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/checkout/session_list_params.rb b/lib/stripe/params/checkout/session_list_params.rb index 465cee91..309917e4 100644 --- a/lib/stripe/params/checkout/session_list_params.rb +++ b/lib/stripe/params/checkout/session_list_params.rb @@ -3,8 +3,8 @@ module Stripe module Checkout - class SessionListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class SessionListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) @@ -22,7 +22,7 @@ module Stripe end end - class CustomerDetails < Stripe::RequestParams + class CustomerDetails < ::Stripe::RequestParams # Customer's email address. attr_accessor :email diff --git a/lib/stripe/params/checkout/session_retrieve_params.rb b/lib/stripe/params/checkout/session_retrieve_params.rb index 3871d107..9e4eacd2 100644 --- a/lib/stripe/params/checkout/session_retrieve_params.rb +++ b/lib/stripe/params/checkout/session_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Checkout - class SessionRetrieveParams < Stripe::RequestParams + class SessionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/checkout/session_update_params.rb b/lib/stripe/params/checkout/session_update_params.rb index ff75e949..7bfdfc37 100644 --- a/lib/stripe/params/checkout/session_update_params.rb +++ b/lib/stripe/params/checkout/session_update_params.rb @@ -3,10 +3,10 @@ module Stripe module Checkout - class SessionUpdateParams < Stripe::RequestParams - class CollectedInformation < Stripe::RequestParams - class ShippingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class SessionUpdateParams < ::Stripe::RequestParams + class CollectedInformation < ::Stripe::RequestParams + class ShippingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -54,10 +54,10 @@ module Stripe end end - class ShippingOption < Stripe::RequestParams - class ShippingRateData < Stripe::RequestParams - class DeliveryEstimate < Stripe::RequestParams - class Maximum < Stripe::RequestParams + class ShippingOption < ::Stripe::RequestParams + class ShippingRateData < ::Stripe::RequestParams + class DeliveryEstimate < ::Stripe::RequestParams + class Maximum < ::Stripe::RequestParams # A unit of time. attr_accessor :unit # Must be greater than 0. @@ -69,7 +69,7 @@ module Stripe end end - class Minimum < Stripe::RequestParams + class Minimum < ::Stripe::RequestParams # A unit of time. attr_accessor :unit # Must be greater than 0. @@ -91,8 +91,8 @@ module Stripe end end - class FixedAmount < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class FixedAmount < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A non-negative integer in cents representing how much to charge. attr_accessor :amount # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. diff --git a/lib/stripe/params/climate/order_cancel_params.rb b/lib/stripe/params/climate/order_cancel_params.rb index bbba5f34..3579532e 100644 --- a/lib/stripe/params/climate/order_cancel_params.rb +++ b/lib/stripe/params/climate/order_cancel_params.rb @@ -3,7 +3,7 @@ module Stripe module Climate - class OrderCancelParams < Stripe::RequestParams + class OrderCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/climate/order_create_params.rb b/lib/stripe/params/climate/order_create_params.rb index 5ef6310b..94645f42 100644 --- a/lib/stripe/params/climate/order_create_params.rb +++ b/lib/stripe/params/climate/order_create_params.rb @@ -3,8 +3,8 @@ module Stripe module Climate - class OrderCreateParams < Stripe::RequestParams - class Beneficiary < Stripe::RequestParams + class OrderCreateParams < ::Stripe::RequestParams + class Beneficiary < ::Stripe::RequestParams # Publicly displayable name for the end beneficiary of carbon removal. attr_accessor :public_name diff --git a/lib/stripe/params/climate/order_list_params.rb b/lib/stripe/params/climate/order_list_params.rb index ff6f5c2b..7e6aa96f 100644 --- a/lib/stripe/params/climate/order_list_params.rb +++ b/lib/stripe/params/climate/order_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Climate - class OrderListParams < Stripe::RequestParams + class OrderListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/climate/order_retrieve_params.rb b/lib/stripe/params/climate/order_retrieve_params.rb index 501e21f2..2b0c41f0 100644 --- a/lib/stripe/params/climate/order_retrieve_params.rb +++ b/lib/stripe/params/climate/order_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Climate - class OrderRetrieveParams < Stripe::RequestParams + class OrderRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/climate/order_update_params.rb b/lib/stripe/params/climate/order_update_params.rb index b290586f..5791f6c9 100644 --- a/lib/stripe/params/climate/order_update_params.rb +++ b/lib/stripe/params/climate/order_update_params.rb @@ -3,8 +3,8 @@ module Stripe module Climate - class OrderUpdateParams < Stripe::RequestParams - class Beneficiary < Stripe::RequestParams + class OrderUpdateParams < ::Stripe::RequestParams + class Beneficiary < ::Stripe::RequestParams # Publicly displayable name for the end beneficiary of carbon removal. attr_accessor :public_name diff --git a/lib/stripe/params/climate/product_list_params.rb b/lib/stripe/params/climate/product_list_params.rb index ca3e3bca..08419a61 100644 --- a/lib/stripe/params/climate/product_list_params.rb +++ b/lib/stripe/params/climate/product_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Climate - class ProductListParams < Stripe::RequestParams + class ProductListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/climate/product_retrieve_params.rb b/lib/stripe/params/climate/product_retrieve_params.rb index 64f678d0..8eaafdeb 100644 --- a/lib/stripe/params/climate/product_retrieve_params.rb +++ b/lib/stripe/params/climate/product_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Climate - class ProductRetrieveParams < Stripe::RequestParams + class ProductRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/climate/supplier_list_params.rb b/lib/stripe/params/climate/supplier_list_params.rb index 27a32b52..696972c3 100644 --- a/lib/stripe/params/climate/supplier_list_params.rb +++ b/lib/stripe/params/climate/supplier_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Climate - class SupplierListParams < Stripe::RequestParams + class SupplierListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/climate/supplier_retrieve_params.rb b/lib/stripe/params/climate/supplier_retrieve_params.rb index e4c3f6ff..885a2005 100644 --- a/lib/stripe/params/climate/supplier_retrieve_params.rb +++ b/lib/stripe/params/climate/supplier_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Climate - class SupplierRetrieveParams < Stripe::RequestParams + class SupplierRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/confirmation_token_create_params.rb b/lib/stripe/params/confirmation_token_create_params.rb index 5cf554bf..c53a23f6 100644 --- a/lib/stripe/params/confirmation_token_create_params.rb +++ b/lib/stripe/params/confirmation_token_create_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class ConfirmationTokenCreateParams < Stripe::RequestParams - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class ConfirmationTokenCreateParams < ::Stripe::RequestParams + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. attr_accessor :account_number # Institution number of the customer's bank. @@ -19,13 +19,13 @@ module Stripe end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. attr_accessor :account_number # Bank-State-Branch number of the bank account. @@ -37,7 +37,7 @@ module Stripe end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. attr_accessor :account_number # Sort code of the bank account. (e.g., `10-20-30`) @@ -49,11 +49,11 @@ module Stripe end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -103,9 +103,9 @@ module Stripe end end - class Blik < Stripe::RequestParams; end + class Blik < ::Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) attr_accessor :tax_id @@ -114,11 +114,11 @@ module Stripe end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Eps < ::Stripe::RequestParams # The customer's bank. attr_accessor :bank @@ -127,7 +127,7 @@ module Stripe end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction attr_accessor :account_holder_type # The customer's bank. @@ -139,10 +139,10 @@ module Stripe end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. attr_accessor :bank @@ -151,11 +151,11 @@ module Stripe end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. attr_accessor :day # The month of birth, between 1 and 12. @@ -177,14 +177,14 @@ module Stripe end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. attr_accessor :funding @@ -193,7 +193,7 @@ module Stripe end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. attr_accessor :account_holder_name # The account number for the bank account. @@ -224,9 +224,9 @@ module Stripe end end - class Oxxo < Stripe::RequestParams; end + class Oxxo < ::Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class P24 < ::Stripe::RequestParams # The customer's bank. attr_accessor :bank @@ -235,14 +235,14 @@ module Stripe end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. attr_accessor :session @@ -251,11 +251,11 @@ module Stripe end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. attr_accessor :iban @@ -264,7 +264,7 @@ module Stripe end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. attr_accessor :country @@ -273,10 +273,10 @@ module Stripe end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. attr_accessor :account_holder_type # Account number of the bank account. @@ -303,8 +303,8 @@ module Stripe end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. attr_accessor :acss_debit # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. @@ -527,10 +527,10 @@ module Stripe end end - class PaymentMethodOptions < Stripe::RequestParams - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams - class Plan < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams + class Plan < ::Stripe::RequestParams # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. attr_accessor :count # For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card. @@ -568,8 +568,8 @@ module Stripe end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). diff --git a/lib/stripe/params/confirmation_token_retrieve_params.rb b/lib/stripe/params/confirmation_token_retrieve_params.rb index 7676ecca..6077700f 100644 --- a/lib/stripe/params/confirmation_token_retrieve_params.rb +++ b/lib/stripe/params/confirmation_token_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class ConfirmationTokenRetrieveParams < Stripe::RequestParams + class ConfirmationTokenRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/country_spec_list_params.rb b/lib/stripe/params/country_spec_list_params.rb index b43b144a..d742ce37 100644 --- a/lib/stripe/params/country_spec_list_params.rb +++ b/lib/stripe/params/country_spec_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CountrySpecListParams < Stripe::RequestParams + class CountrySpecListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/country_spec_retrieve_params.rb b/lib/stripe/params/country_spec_retrieve_params.rb index acab0a75..03595f66 100644 --- a/lib/stripe/params/country_spec_retrieve_params.rb +++ b/lib/stripe/params/country_spec_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CountrySpecRetrieveParams < Stripe::RequestParams + class CountrySpecRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/coupon_create_params.rb b/lib/stripe/params/coupon_create_params.rb index 2c6b391c..2860a194 100644 --- a/lib/stripe/params/coupon_create_params.rb +++ b/lib/stripe/params/coupon_create_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class CouponCreateParams < Stripe::RequestParams - class AppliesTo < Stripe::RequestParams + class CouponCreateParams < ::Stripe::RequestParams + class AppliesTo < ::Stripe::RequestParams # An array of Product IDs that this Coupon will apply to. attr_accessor :products @@ -12,7 +12,7 @@ module Stripe end end - class CurrencyOptions < Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A positive integer representing the amount to subtract from an invoice total. attr_accessor :amount_off diff --git a/lib/stripe/params/coupon_delete_params.rb b/lib/stripe/params/coupon_delete_params.rb index 69287333..fc49a6af 100644 --- a/lib/stripe/params/coupon_delete_params.rb +++ b/lib/stripe/params/coupon_delete_params.rb @@ -2,5 +2,5 @@ # frozen_string_literal: true module Stripe - class CouponDeleteParams < Stripe::RequestParams; end + class CouponDeleteParams < ::Stripe::RequestParams; end end diff --git a/lib/stripe/params/coupon_list_params.rb b/lib/stripe/params/coupon_list_params.rb index e250e8b1..c56078ac 100644 --- a/lib/stripe/params/coupon_list_params.rb +++ b/lib/stripe/params/coupon_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class CouponListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class CouponListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/coupon_retrieve_params.rb b/lib/stripe/params/coupon_retrieve_params.rb index 3c6c5a6b..aae9a11d 100644 --- a/lib/stripe/params/coupon_retrieve_params.rb +++ b/lib/stripe/params/coupon_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CouponRetrieveParams < Stripe::RequestParams + class CouponRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/coupon_update_params.rb b/lib/stripe/params/coupon_update_params.rb index 5bc706c3..5c9c35a4 100644 --- a/lib/stripe/params/coupon_update_params.rb +++ b/lib/stripe/params/coupon_update_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class CouponUpdateParams < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class CouponUpdateParams < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A positive integer representing the amount to subtract from an invoice total. attr_accessor :amount_off diff --git a/lib/stripe/params/credit_note_create_params.rb b/lib/stripe/params/credit_note_create_params.rb index 8d908f1c..49fab6fc 100644 --- a/lib/stripe/params/credit_note_create_params.rb +++ b/lib/stripe/params/credit_note_create_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class CreditNoteCreateParams < Stripe::RequestParams - class Line < Stripe::RequestParams - class TaxAmount < Stripe::RequestParams + class CreditNoteCreateParams < ::Stripe::RequestParams + class Line < ::Stripe::RequestParams + class TaxAmount < ::Stripe::RequestParams # The amount, in cents (or local equivalent), of the tax. attr_accessor :amount # The id of the tax rate for this tax amount. The tax rate must have been automatically created by Stripe. @@ -60,19 +60,36 @@ module Stripe end end - class Refund < Stripe::RequestParams + class Refund < ::Stripe::RequestParams + class PaymentRecordRefund < ::Stripe::RequestParams + # The ID of the PaymentRecord with the refund to link to this credit note. + attr_accessor :payment_record + # The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord. + attr_accessor :refund_group + + def initialize(payment_record: nil, refund_group: nil) + @payment_record = payment_record + @refund_group = refund_group + end + end # Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount. attr_accessor :amount_refunded + # The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`. + attr_accessor :payment_record_refund # ID of an existing refund to link this credit note to. Required when `type` is `refund`. attr_accessor :refund + # Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`. + attr_accessor :type - def initialize(amount_refunded: nil, refund: nil) + def initialize(amount_refunded: nil, payment_record_refund: nil, refund: nil, type: nil) @amount_refunded = amount_refunded + @payment_record_refund = payment_record_refund @refund = refund + @type = type end end - class ShippingCost < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams # The ID of the shipping rate to use for this order. attr_accessor :shipping_rate diff --git a/lib/stripe/params/credit_note_line_item_list_params.rb b/lib/stripe/params/credit_note_line_item_list_params.rb index ce997407..2daf24c3 100644 --- a/lib/stripe/params/credit_note_line_item_list_params.rb +++ b/lib/stripe/params/credit_note_line_item_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CreditNoteLineItemListParams < Stripe::RequestParams + class CreditNoteLineItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/credit_note_list_params.rb b/lib/stripe/params/credit_note_list_params.rb index af292325..9eee2951 100644 --- a/lib/stripe/params/credit_note_list_params.rb +++ b/lib/stripe/params/credit_note_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class CreditNoteListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class CreditNoteListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/credit_note_list_preview_line_items_params.rb b/lib/stripe/params/credit_note_list_preview_line_items_params.rb index 175fdb82..025ae72d 100644 --- a/lib/stripe/params/credit_note_list_preview_line_items_params.rb +++ b/lib/stripe/params/credit_note_list_preview_line_items_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class CreditNoteListPreviewLineItemsParams < Stripe::RequestParams - class Line < Stripe::RequestParams - class TaxAmount < Stripe::RequestParams + class CreditNoteListPreviewLineItemsParams < ::Stripe::RequestParams + class Line < ::Stripe::RequestParams + class TaxAmount < ::Stripe::RequestParams # The amount, in cents (or local equivalent), of the tax. attr_accessor :amount # The id of the tax rate for this tax amount. The tax rate must have been automatically created by Stripe. @@ -60,19 +60,36 @@ module Stripe end end - class Refund < Stripe::RequestParams + class Refund < ::Stripe::RequestParams + class PaymentRecordRefund < ::Stripe::RequestParams + # The ID of the PaymentRecord with the refund to link to this credit note. + attr_accessor :payment_record + # The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord. + attr_accessor :refund_group + + def initialize(payment_record: nil, refund_group: nil) + @payment_record = payment_record + @refund_group = refund_group + end + end # Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount. attr_accessor :amount_refunded + # The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`. + attr_accessor :payment_record_refund # ID of an existing refund to link this credit note to. Required when `type` is `refund`. attr_accessor :refund + # Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`. + attr_accessor :type - def initialize(amount_refunded: nil, refund: nil) + def initialize(amount_refunded: nil, payment_record_refund: nil, refund: nil, type: nil) @amount_refunded = amount_refunded + @payment_record_refund = payment_record_refund @refund = refund + @type = type end end - class ShippingCost < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams # The ID of the shipping rate to use for this order. attr_accessor :shipping_rate diff --git a/lib/stripe/params/credit_note_preview_lines_list_params.rb b/lib/stripe/params/credit_note_preview_lines_list_params.rb index 7fd89910..850762ce 100644 --- a/lib/stripe/params/credit_note_preview_lines_list_params.rb +++ b/lib/stripe/params/credit_note_preview_lines_list_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class CreditNotePreviewLinesListParams < Stripe::RequestParams - class Line < Stripe::RequestParams - class TaxAmount < Stripe::RequestParams + class CreditNotePreviewLinesListParams < ::Stripe::RequestParams + class Line < ::Stripe::RequestParams + class TaxAmount < ::Stripe::RequestParams # The amount, in cents (or local equivalent), of the tax. attr_accessor :amount # The id of the tax rate for this tax amount. The tax rate must have been automatically created by Stripe. @@ -60,19 +60,36 @@ module Stripe end end - class Refund < Stripe::RequestParams + class Refund < ::Stripe::RequestParams + class PaymentRecordRefund < ::Stripe::RequestParams + # The ID of the PaymentRecord with the refund to link to this credit note. + attr_accessor :payment_record + # The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord. + attr_accessor :refund_group + + def initialize(payment_record: nil, refund_group: nil) + @payment_record = payment_record + @refund_group = refund_group + end + end # Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount. attr_accessor :amount_refunded + # The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`. + attr_accessor :payment_record_refund # ID of an existing refund to link this credit note to. Required when `type` is `refund`. attr_accessor :refund + # Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`. + attr_accessor :type - def initialize(amount_refunded: nil, refund: nil) + def initialize(amount_refunded: nil, payment_record_refund: nil, refund: nil, type: nil) @amount_refunded = amount_refunded + @payment_record_refund = payment_record_refund @refund = refund + @type = type end end - class ShippingCost < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams # The ID of the shipping rate to use for this order. attr_accessor :shipping_rate diff --git a/lib/stripe/params/credit_note_preview_params.rb b/lib/stripe/params/credit_note_preview_params.rb index 9cfc5e52..46103361 100644 --- a/lib/stripe/params/credit_note_preview_params.rb +++ b/lib/stripe/params/credit_note_preview_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class CreditNotePreviewParams < Stripe::RequestParams - class Line < Stripe::RequestParams - class TaxAmount < Stripe::RequestParams + class CreditNotePreviewParams < ::Stripe::RequestParams + class Line < ::Stripe::RequestParams + class TaxAmount < ::Stripe::RequestParams # The amount, in cents (or local equivalent), of the tax. attr_accessor :amount # The id of the tax rate for this tax amount. The tax rate must have been automatically created by Stripe. @@ -60,19 +60,36 @@ module Stripe end end - class Refund < Stripe::RequestParams + class Refund < ::Stripe::RequestParams + class PaymentRecordRefund < ::Stripe::RequestParams + # The ID of the PaymentRecord with the refund to link to this credit note. + attr_accessor :payment_record + # The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord. + attr_accessor :refund_group + + def initialize(payment_record: nil, refund_group: nil) + @payment_record = payment_record + @refund_group = refund_group + end + end # Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount. attr_accessor :amount_refunded + # The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`. + attr_accessor :payment_record_refund # ID of an existing refund to link this credit note to. Required when `type` is `refund`. attr_accessor :refund + # Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`. + attr_accessor :type - def initialize(amount_refunded: nil, refund: nil) + def initialize(amount_refunded: nil, payment_record_refund: nil, refund: nil, type: nil) @amount_refunded = amount_refunded + @payment_record_refund = payment_record_refund @refund = refund + @type = type end end - class ShippingCost < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams # The ID of the shipping rate to use for this order. attr_accessor :shipping_rate diff --git a/lib/stripe/params/credit_note_retrieve_params.rb b/lib/stripe/params/credit_note_retrieve_params.rb index b8280792..be22df6c 100644 --- a/lib/stripe/params/credit_note_retrieve_params.rb +++ b/lib/stripe/params/credit_note_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CreditNoteRetrieveParams < Stripe::RequestParams + class CreditNoteRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/credit_note_update_params.rb b/lib/stripe/params/credit_note_update_params.rb index 3448b59b..c226661c 100644 --- a/lib/stripe/params/credit_note_update_params.rb +++ b/lib/stripe/params/credit_note_update_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CreditNoteUpdateParams < Stripe::RequestParams + class CreditNoteUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # Credit note memo. diff --git a/lib/stripe/params/credit_note_void_credit_note_params.rb b/lib/stripe/params/credit_note_void_credit_note_params.rb index 92c612f7..4dd7518f 100644 --- a/lib/stripe/params/credit_note_void_credit_note_params.rb +++ b/lib/stripe/params/credit_note_void_credit_note_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CreditNoteVoidCreditNoteParams < Stripe::RequestParams + class CreditNoteVoidCreditNoteParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/customer_balance_transaction_create_params.rb b/lib/stripe/params/customer_balance_transaction_create_params.rb index c62a3f04..7897217d 100644 --- a/lib/stripe/params/customer_balance_transaction_create_params.rb +++ b/lib/stripe/params/customer_balance_transaction_create_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CustomerBalanceTransactionCreateParams < Stripe::RequestParams + class CustomerBalanceTransactionCreateParams < ::Stripe::RequestParams # The integer amount in **cents (or local equivalent)** to apply to the customer's credit balance. attr_accessor :amount # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). Specifies the [`invoice_credit_balance`](https://stripe.com/docs/api/customers/object#customer_object-invoice_credit_balance) that this transaction will apply to. If the customer's `currency` is not set, it will be updated to this value. diff --git a/lib/stripe/params/customer_balance_transaction_list_params.rb b/lib/stripe/params/customer_balance_transaction_list_params.rb index 7c90015d..4afbb248 100644 --- a/lib/stripe/params/customer_balance_transaction_list_params.rb +++ b/lib/stripe/params/customer_balance_transaction_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CustomerBalanceTransactionListParams < Stripe::RequestParams + class CustomerBalanceTransactionListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/customer_balance_transaction_retrieve_params.rb b/lib/stripe/params/customer_balance_transaction_retrieve_params.rb index 1ac5f678..34690985 100644 --- a/lib/stripe/params/customer_balance_transaction_retrieve_params.rb +++ b/lib/stripe/params/customer_balance_transaction_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CustomerBalanceTransactionRetrieveParams < Stripe::RequestParams + class CustomerBalanceTransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/customer_balance_transaction_update_params.rb b/lib/stripe/params/customer_balance_transaction_update_params.rb index d041f341..56780c5d 100644 --- a/lib/stripe/params/customer_balance_transaction_update_params.rb +++ b/lib/stripe/params/customer_balance_transaction_update_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CustomerBalanceTransactionUpdateParams < Stripe::RequestParams + class CustomerBalanceTransactionUpdateParams < ::Stripe::RequestParams # An arbitrary string attached to the object. Often useful for displaying to users. attr_accessor :description # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/customer_cash_balance_retrieve_params.rb b/lib/stripe/params/customer_cash_balance_retrieve_params.rb index f79af664..3ec882ff 100644 --- a/lib/stripe/params/customer_cash_balance_retrieve_params.rb +++ b/lib/stripe/params/customer_cash_balance_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CustomerCashBalanceRetrieveParams < Stripe::RequestParams + class CustomerCashBalanceRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/customer_cash_balance_transaction_list_params.rb b/lib/stripe/params/customer_cash_balance_transaction_list_params.rb index c67e66ef..bb5a02b1 100644 --- a/lib/stripe/params/customer_cash_balance_transaction_list_params.rb +++ b/lib/stripe/params/customer_cash_balance_transaction_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CustomerCashBalanceTransactionListParams < Stripe::RequestParams + class CustomerCashBalanceTransactionListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb b/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb index 66b71ef3..6ad4882e 100644 --- a/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb +++ b/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CustomerCashBalanceTransactionRetrieveParams < Stripe::RequestParams + class CustomerCashBalanceTransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/customer_cash_balance_update_params.rb b/lib/stripe/params/customer_cash_balance_update_params.rb index 1a9c6607..1b362169 100644 --- a/lib/stripe/params/customer_cash_balance_update_params.rb +++ b/lib/stripe/params/customer_cash_balance_update_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class CustomerCashBalanceUpdateParams < Stripe::RequestParams - class Settings < Stripe::RequestParams + class CustomerCashBalanceUpdateParams < ::Stripe::RequestParams + class Settings < ::Stripe::RequestParams # Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://stripe.com/docs/payments/customer-balance/reconciliation). attr_accessor :reconciliation_mode diff --git a/lib/stripe/params/customer_create_funding_instructions_params.rb b/lib/stripe/params/customer_create_funding_instructions_params.rb index 31691acd..305a488f 100644 --- a/lib/stripe/params/customer_create_funding_instructions_params.rb +++ b/lib/stripe/params/customer_create_funding_instructions_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class CustomerCreateFundingInstructionsParams < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerCreateFundingInstructionsParams < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. attr_accessor :country diff --git a/lib/stripe/params/customer_create_params.rb b/lib/stripe/params/customer_create_params.rb index 1fa00ae0..9580edb4 100644 --- a/lib/stripe/params/customer_create_params.rb +++ b/lib/stripe/params/customer_create_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class CustomerCreateParams < Stripe::RequestParams - class Address < Stripe::RequestParams + class CustomerCreateParams < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -27,8 +27,8 @@ module Stripe end end - class CashBalance < Stripe::RequestParams - class Settings < Stripe::RequestParams + class CashBalance < ::Stripe::RequestParams + class Settings < ::Stripe::RequestParams # Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://stripe.com/docs/payments/customer-balance/reconciliation). attr_accessor :reconciliation_mode @@ -45,8 +45,8 @@ module Stripe end end - class InvoiceSettings < Stripe::RequestParams - class CustomField < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class CustomField < ::Stripe::RequestParams # The name of the custom field. This may be up to 40 characters. attr_accessor :name # The value of the custom field. This may be up to 140 characters. @@ -58,7 +58,7 @@ module Stripe end end - class RenderingOptions < Stripe::RequestParams + class RenderingOptions < ::Stripe::RequestParams # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. attr_accessor :amount_tax_display # ID of the invoice rendering template to use for future invoices. @@ -91,8 +91,8 @@ module Stripe end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -136,7 +136,7 @@ module Stripe end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes. attr_accessor :ip_address # A flag that indicates when Stripe should validate the customer tax location. Defaults to `deferred`. @@ -148,7 +148,7 @@ module Stripe end end - class TaxIdDatum < Stripe::RequestParams + class TaxIdDatum < ::Stripe::RequestParams # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` attr_accessor :type # Value of the tax ID. diff --git a/lib/stripe/params/customer_delete_discount_params.rb b/lib/stripe/params/customer_delete_discount_params.rb index d64792cf..06f8f8c1 100644 --- a/lib/stripe/params/customer_delete_discount_params.rb +++ b/lib/stripe/params/customer_delete_discount_params.rb @@ -2,5 +2,5 @@ # frozen_string_literal: true module Stripe - class CustomerDeleteDiscountParams < Stripe::RequestParams; end + class CustomerDeleteDiscountParams < ::Stripe::RequestParams; end end diff --git a/lib/stripe/params/customer_delete_params.rb b/lib/stripe/params/customer_delete_params.rb index ddc4d06f..8e2632b2 100644 --- a/lib/stripe/params/customer_delete_params.rb +++ b/lib/stripe/params/customer_delete_params.rb @@ -2,5 +2,5 @@ # frozen_string_literal: true module Stripe - class CustomerDeleteParams < Stripe::RequestParams; end + class CustomerDeleteParams < ::Stripe::RequestParams; end end diff --git a/lib/stripe/params/customer_fund_cash_balance_params.rb b/lib/stripe/params/customer_fund_cash_balance_params.rb index a3e79416..e975ac0b 100644 --- a/lib/stripe/params/customer_fund_cash_balance_params.rb +++ b/lib/stripe/params/customer_fund_cash_balance_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CustomerFundCashBalanceParams < Stripe::RequestParams + class CustomerFundCashBalanceParams < ::Stripe::RequestParams # Amount to be used for this test cash balance transaction. A positive integer representing how much to fund in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to fund $1.00 or 100 to fund ¥100, a zero-decimal currency). attr_accessor :amount # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). diff --git a/lib/stripe/params/customer_funding_instructions_create_params.rb b/lib/stripe/params/customer_funding_instructions_create_params.rb index 3d502a14..8f1c3b76 100644 --- a/lib/stripe/params/customer_funding_instructions_create_params.rb +++ b/lib/stripe/params/customer_funding_instructions_create_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class CustomerFundingInstructionsCreateParams < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerFundingInstructionsCreateParams < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. attr_accessor :country diff --git a/lib/stripe/params/customer_list_params.rb b/lib/stripe/params/customer_list_params.rb index 3df717af..fa035cc7 100644 --- a/lib/stripe/params/customer_list_params.rb +++ b/lib/stripe/params/customer_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class CustomerListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class CustomerListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/customer_list_payment_methods_params.rb b/lib/stripe/params/customer_list_payment_methods_params.rb index b4e5c13b..e57a2919 100644 --- a/lib/stripe/params/customer_list_payment_methods_params.rb +++ b/lib/stripe/params/customer_list_payment_methods_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CustomerListPaymentMethodsParams < Stripe::RequestParams + class CustomerListPaymentMethodsParams < ::Stripe::RequestParams # This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. attr_accessor :allow_redisplay # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. diff --git a/lib/stripe/params/customer_payment_method_list_params.rb b/lib/stripe/params/customer_payment_method_list_params.rb index f5eec60d..df2e36f6 100644 --- a/lib/stripe/params/customer_payment_method_list_params.rb +++ b/lib/stripe/params/customer_payment_method_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CustomerPaymentMethodListParams < Stripe::RequestParams + class CustomerPaymentMethodListParams < ::Stripe::RequestParams # This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. attr_accessor :allow_redisplay # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. diff --git a/lib/stripe/params/customer_payment_method_retrieve_params.rb b/lib/stripe/params/customer_payment_method_retrieve_params.rb index e1075b50..f345b9d9 100644 --- a/lib/stripe/params/customer_payment_method_retrieve_params.rb +++ b/lib/stripe/params/customer_payment_method_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CustomerPaymentMethodRetrieveParams < Stripe::RequestParams + class CustomerPaymentMethodRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/customer_payment_source_create_params.rb b/lib/stripe/params/customer_payment_source_create_params.rb index 0338bea5..2ba32a1a 100644 --- a/lib/stripe/params/customer_payment_source_create_params.rb +++ b/lib/stripe/params/customer_payment_source_create_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CustomerPaymentSourceCreateParams < Stripe::RequestParams + class CustomerPaymentSourceCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. diff --git a/lib/stripe/params/customer_payment_source_delete_params.rb b/lib/stripe/params/customer_payment_source_delete_params.rb index 04d4d7de..16288c2c 100644 --- a/lib/stripe/params/customer_payment_source_delete_params.rb +++ b/lib/stripe/params/customer_payment_source_delete_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CustomerPaymentSourceDeleteParams < Stripe::RequestParams + class CustomerPaymentSourceDeleteParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/customer_payment_source_list_params.rb b/lib/stripe/params/customer_payment_source_list_params.rb index 3dc3a056..b009dd11 100644 --- a/lib/stripe/params/customer_payment_source_list_params.rb +++ b/lib/stripe/params/customer_payment_source_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CustomerPaymentSourceListParams < Stripe::RequestParams + class CustomerPaymentSourceListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/customer_payment_source_retrieve_params.rb b/lib/stripe/params/customer_payment_source_retrieve_params.rb index b10bfec5..9bc1e45b 100644 --- a/lib/stripe/params/customer_payment_source_retrieve_params.rb +++ b/lib/stripe/params/customer_payment_source_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CustomerPaymentSourceRetrieveParams < Stripe::RequestParams + class CustomerPaymentSourceRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/customer_payment_source_update_params.rb b/lib/stripe/params/customer_payment_source_update_params.rb index 40e4b2d6..caddb6b1 100644 --- a/lib/stripe/params/customer_payment_source_update_params.rb +++ b/lib/stripe/params/customer_payment_source_update_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class CustomerPaymentSourceUpdateParams < Stripe::RequestParams - class Owner < Stripe::RequestParams - class Address < Stripe::RequestParams + class CustomerPaymentSourceUpdateParams < ::Stripe::RequestParams + class Owner < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). diff --git a/lib/stripe/params/customer_payment_source_verify_params.rb b/lib/stripe/params/customer_payment_source_verify_params.rb index 499ad695..45607992 100644 --- a/lib/stripe/params/customer_payment_source_verify_params.rb +++ b/lib/stripe/params/customer_payment_source_verify_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CustomerPaymentSourceVerifyParams < Stripe::RequestParams + class CustomerPaymentSourceVerifyParams < ::Stripe::RequestParams # Two positive integers, in *cents*, equal to the values of the microdeposits sent to the bank account. attr_accessor :amounts # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/customer_retrieve_params.rb b/lib/stripe/params/customer_retrieve_params.rb index 57703357..2df4c0e1 100644 --- a/lib/stripe/params/customer_retrieve_params.rb +++ b/lib/stripe/params/customer_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CustomerRetrieveParams < Stripe::RequestParams + class CustomerRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/customer_retrieve_payment_method_params.rb b/lib/stripe/params/customer_retrieve_payment_method_params.rb index 05a71417..db897aff 100644 --- a/lib/stripe/params/customer_retrieve_payment_method_params.rb +++ b/lib/stripe/params/customer_retrieve_payment_method_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CustomerRetrievePaymentMethodParams < Stripe::RequestParams + class CustomerRetrievePaymentMethodParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/customer_search_params.rb b/lib/stripe/params/customer_search_params.rb index dc85bf9e..2ae7a423 100644 --- a/lib/stripe/params/customer_search_params.rb +++ b/lib/stripe/params/customer_search_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CustomerSearchParams < Stripe::RequestParams + class CustomerSearchParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. diff --git a/lib/stripe/params/customer_session_create_params.rb b/lib/stripe/params/customer_session_create_params.rb index a6437e18..093ee8e4 100644 --- a/lib/stripe/params/customer_session_create_params.rb +++ b/lib/stripe/params/customer_session_create_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class CustomerSessionCreateParams < Stripe::RequestParams - class Components < Stripe::RequestParams - class BuyButton < Stripe::RequestParams + class CustomerSessionCreateParams < ::Stripe::RequestParams + class Components < ::Stripe::RequestParams + class BuyButton < ::Stripe::RequestParams # Whether the buy button is enabled. attr_accessor :enabled @@ -13,8 +13,81 @@ module Stripe end end - class PaymentElement < Stripe::RequestParams - class Features < Stripe::RequestParams + class CustomerSheet < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams + # A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the customer sheet displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list. + # + # If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"]. + attr_accessor :payment_method_allow_redisplay_filters + # Controls whether the customer sheet displays the option to remove a saved payment method." + # + # Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods). + attr_accessor :payment_method_remove + + def initialize(payment_method_allow_redisplay_filters: nil, payment_method_remove: nil) + @payment_method_allow_redisplay_filters = payment_method_allow_redisplay_filters + @payment_method_remove = payment_method_remove + end + end + # Whether the customer sheet is enabled. + attr_accessor :enabled + # This hash defines whether the customer sheet supports certain features. + attr_accessor :features + + def initialize(enabled: nil, features: nil) + @enabled = enabled + @features = features + end + end + + class MobilePaymentElement < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams + # A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the mobile payment element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list. + # + # If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"]. + attr_accessor :payment_method_allow_redisplay_filters + # Controls whether or not the mobile payment element shows saved payment methods. + attr_accessor :payment_method_redisplay + # Controls whether the mobile payment element displays the option to remove a saved payment method." + # + # Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods). + attr_accessor :payment_method_remove + # Controls whether the mobile payment element displays a checkbox offering to save a new payment method. + # + # If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`. + attr_accessor :payment_method_save + # Allows overriding the value of allow_override when saving a new payment method when payment_method_save is set to disabled. Use values: "always", "limited", or "unspecified". + # + # If not specified, defaults to `nil` (no override value). + attr_accessor :payment_method_save_allow_redisplay_override + + def initialize( + payment_method_allow_redisplay_filters: nil, + payment_method_redisplay: nil, + payment_method_remove: nil, + payment_method_save: nil, + payment_method_save_allow_redisplay_override: nil + ) + @payment_method_allow_redisplay_filters = payment_method_allow_redisplay_filters + @payment_method_redisplay = payment_method_redisplay + @payment_method_remove = payment_method_remove + @payment_method_save = payment_method_save + @payment_method_save_allow_redisplay_override = payment_method_save_allow_redisplay_override + end + end + # Whether the mobile payment element is enabled. + attr_accessor :enabled + # This hash defines whether the mobile payment element supports certain features. + attr_accessor :features + + def initialize(enabled: nil, features: nil) + @enabled = enabled + @features = features + end + end + + class PaymentElement < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the Payment Element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list. # # If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"]. @@ -63,7 +136,7 @@ module Stripe end end - class PricingTable < Stripe::RequestParams + class PricingTable < ::Stripe::RequestParams # Whether the pricing table is enabled. attr_accessor :enabled @@ -73,13 +146,25 @@ module Stripe end # Configuration for buy button. attr_accessor :buy_button + # Configuration for the customer sheet. + attr_accessor :customer_sheet + # Configuration for the mobile payment element. + attr_accessor :mobile_payment_element # Configuration for the Payment Element. attr_accessor :payment_element # Configuration for the pricing table. attr_accessor :pricing_table - def initialize(buy_button: nil, payment_element: nil, pricing_table: nil) + def initialize( + buy_button: nil, + customer_sheet: nil, + mobile_payment_element: nil, + payment_element: nil, + pricing_table: nil + ) @buy_button = buy_button + @customer_sheet = customer_sheet + @mobile_payment_element = mobile_payment_element @payment_element = payment_element @pricing_table = pricing_table end diff --git a/lib/stripe/params/customer_tax_id_create_params.rb b/lib/stripe/params/customer_tax_id_create_params.rb index b2341c30..f644afc8 100644 --- a/lib/stripe/params/customer_tax_id_create_params.rb +++ b/lib/stripe/params/customer_tax_id_create_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CustomerTaxIdCreateParams < Stripe::RequestParams + class CustomerTaxIdCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` diff --git a/lib/stripe/params/customer_tax_id_delete_params.rb b/lib/stripe/params/customer_tax_id_delete_params.rb index beacff91..0765891a 100644 --- a/lib/stripe/params/customer_tax_id_delete_params.rb +++ b/lib/stripe/params/customer_tax_id_delete_params.rb @@ -2,5 +2,5 @@ # frozen_string_literal: true module Stripe - class CustomerTaxIdDeleteParams < Stripe::RequestParams; end + class CustomerTaxIdDeleteParams < ::Stripe::RequestParams; end end diff --git a/lib/stripe/params/customer_tax_id_list_params.rb b/lib/stripe/params/customer_tax_id_list_params.rb index 7888c332..2d8e398b 100644 --- a/lib/stripe/params/customer_tax_id_list_params.rb +++ b/lib/stripe/params/customer_tax_id_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CustomerTaxIdListParams < Stripe::RequestParams + class CustomerTaxIdListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/customer_tax_id_retrieve_params.rb b/lib/stripe/params/customer_tax_id_retrieve_params.rb index da844b56..2f3add42 100644 --- a/lib/stripe/params/customer_tax_id_retrieve_params.rb +++ b/lib/stripe/params/customer_tax_id_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class CustomerTaxIdRetrieveParams < Stripe::RequestParams + class CustomerTaxIdRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/customer_update_params.rb b/lib/stripe/params/customer_update_params.rb index 271874d8..2ce8fc07 100644 --- a/lib/stripe/params/customer_update_params.rb +++ b/lib/stripe/params/customer_update_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class CustomerUpdateParams < Stripe::RequestParams - class Address < Stripe::RequestParams + class CustomerUpdateParams < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -27,8 +27,8 @@ module Stripe end end - class CashBalance < Stripe::RequestParams - class Settings < Stripe::RequestParams + class CashBalance < ::Stripe::RequestParams + class Settings < ::Stripe::RequestParams # Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://stripe.com/docs/payments/customer-balance/reconciliation). attr_accessor :reconciliation_mode @@ -45,8 +45,8 @@ module Stripe end end - class InvoiceSettings < Stripe::RequestParams - class CustomField < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class CustomField < ::Stripe::RequestParams # The name of the custom field. This may be up to 40 characters. attr_accessor :name # The value of the custom field. This may be up to 140 characters. @@ -58,7 +58,7 @@ module Stripe end end - class RenderingOptions < Stripe::RequestParams + class RenderingOptions < ::Stripe::RequestParams # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. attr_accessor :amount_tax_display # ID of the invoice rendering template to use for future invoices. @@ -91,8 +91,8 @@ module Stripe end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -136,7 +136,7 @@ module Stripe end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes. attr_accessor :ip_address # A flag that indicates when Stripe should validate the customer tax location. Defaults to `auto`. diff --git a/lib/stripe/params/dispute_close_params.rb b/lib/stripe/params/dispute_close_params.rb index 3bbcd73e..0b0d83a5 100644 --- a/lib/stripe/params/dispute_close_params.rb +++ b/lib/stripe/params/dispute_close_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class DisputeCloseParams < Stripe::RequestParams + class DisputeCloseParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/dispute_list_params.rb b/lib/stripe/params/dispute_list_params.rb index 2f7da041..f4d05f16 100644 --- a/lib/stripe/params/dispute_list_params.rb +++ b/lib/stripe/params/dispute_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class DisputeListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class DisputeListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/dispute_retrieve_params.rb b/lib/stripe/params/dispute_retrieve_params.rb index 4ce714a4..cf6455fe 100644 --- a/lib/stripe/params/dispute_retrieve_params.rb +++ b/lib/stripe/params/dispute_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class DisputeRetrieveParams < Stripe::RequestParams + class DisputeRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/dispute_update_params.rb b/lib/stripe/params/dispute_update_params.rb index b57570ff..b5d78b17 100644 --- a/lib/stripe/params/dispute_update_params.rb +++ b/lib/stripe/params/dispute_update_params.rb @@ -2,12 +2,12 @@ # frozen_string_literal: true module Stripe - class DisputeUpdateParams < Stripe::RequestParams - class Evidence < Stripe::RequestParams - class EnhancedEvidence < Stripe::RequestParams - class VisaCompellingEvidence3 < Stripe::RequestParams - class DisputedTransaction < Stripe::RequestParams - class ShippingAddress < Stripe::RequestParams + class DisputeUpdateParams < ::Stripe::RequestParams + class Evidence < ::Stripe::RequestParams + class EnhancedEvidence < ::Stripe::RequestParams + class VisaCompellingEvidence3 < ::Stripe::RequestParams + class DisputedTransaction < ::Stripe::RequestParams + class ShippingAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -75,8 +75,8 @@ module Stripe end end - class PriorUndisputedTransaction < Stripe::RequestParams - class ShippingAddress < Stripe::RequestParams + class PriorUndisputedTransaction < ::Stripe::RequestParams + class ShippingAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -154,7 +154,7 @@ module Stripe end end - class VisaCompliance < Stripe::RequestParams + class VisaCompliance < ::Stripe::RequestParams # A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute. attr_accessor :fee_acknowledged diff --git a/lib/stripe/params/entitlements/active_entitlement_list_params.rb b/lib/stripe/params/entitlements/active_entitlement_list_params.rb index db06aafa..a4522559 100644 --- a/lib/stripe/params/entitlements/active_entitlement_list_params.rb +++ b/lib/stripe/params/entitlements/active_entitlement_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Entitlements - class ActiveEntitlementListParams < Stripe::RequestParams + class ActiveEntitlementListParams < ::Stripe::RequestParams # The ID of the customer. attr_accessor :customer # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. diff --git a/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb b/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb index 3aa0d53a..6a2b9a10 100644 --- a/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb +++ b/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Entitlements - class ActiveEntitlementRetrieveParams < Stripe::RequestParams + class ActiveEntitlementRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/entitlements/feature_create_params.rb b/lib/stripe/params/entitlements/feature_create_params.rb index 26b68430..de45b197 100644 --- a/lib/stripe/params/entitlements/feature_create_params.rb +++ b/lib/stripe/params/entitlements/feature_create_params.rb @@ -3,7 +3,7 @@ module Stripe module Entitlements - class FeatureCreateParams < Stripe::RequestParams + class FeatureCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # A unique key you provide as your own system identifier. This may be up to 80 characters. diff --git a/lib/stripe/params/entitlements/feature_list_params.rb b/lib/stripe/params/entitlements/feature_list_params.rb index 3387294f..f20bdc94 100644 --- a/lib/stripe/params/entitlements/feature_list_params.rb +++ b/lib/stripe/params/entitlements/feature_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Entitlements - class FeatureListParams < Stripe::RequestParams + class FeatureListParams < ::Stripe::RequestParams # If set, filter results to only include features with the given archive status. attr_accessor :archived # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. diff --git a/lib/stripe/params/entitlements/feature_retrieve_params.rb b/lib/stripe/params/entitlements/feature_retrieve_params.rb index 41f65c14..72aaac23 100644 --- a/lib/stripe/params/entitlements/feature_retrieve_params.rb +++ b/lib/stripe/params/entitlements/feature_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Entitlements - class FeatureRetrieveParams < Stripe::RequestParams + class FeatureRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/entitlements/feature_update_params.rb b/lib/stripe/params/entitlements/feature_update_params.rb index cfa9b8f1..96e1144d 100644 --- a/lib/stripe/params/entitlements/feature_update_params.rb +++ b/lib/stripe/params/entitlements/feature_update_params.rb @@ -3,7 +3,7 @@ module Stripe module Entitlements - class FeatureUpdateParams < Stripe::RequestParams + class FeatureUpdateParams < ::Stripe::RequestParams # Inactive features cannot be attached to new products and will not be returned from the features list endpoint. attr_accessor :active # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/ephemeral_key_create_params.rb b/lib/stripe/params/ephemeral_key_create_params.rb index be4e59ce..27086047 100644 --- a/lib/stripe/params/ephemeral_key_create_params.rb +++ b/lib/stripe/params/ephemeral_key_create_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class EphemeralKeyCreateParams < Stripe::RequestParams + class EphemeralKeyCreateParams < ::Stripe::RequestParams # The ID of the Customer you'd like to modify using the resulting ephemeral key. attr_accessor :customer # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/ephemeral_key_delete_params.rb b/lib/stripe/params/ephemeral_key_delete_params.rb index 3685475e..29935ea7 100644 --- a/lib/stripe/params/ephemeral_key_delete_params.rb +++ b/lib/stripe/params/ephemeral_key_delete_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class EphemeralKeyDeleteParams < Stripe::RequestParams + class EphemeralKeyDeleteParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/event_list_params.rb b/lib/stripe/params/event_list_params.rb index 559653b5..4fe061d8 100644 --- a/lib/stripe/params/event_list_params.rb +++ b/lib/stripe/params/event_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class EventListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class EventListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/event_retrieve_params.rb b/lib/stripe/params/event_retrieve_params.rb index 1038b91b..9f938aa9 100644 --- a/lib/stripe/params/event_retrieve_params.rb +++ b/lib/stripe/params/event_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class EventRetrieveParams < Stripe::RequestParams + class EventRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/exchange_rate_list_params.rb b/lib/stripe/params/exchange_rate_list_params.rb index 025a170a..310dfbf0 100644 --- a/lib/stripe/params/exchange_rate_list_params.rb +++ b/lib/stripe/params/exchange_rate_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class ExchangeRateListParams < Stripe::RequestParams + class ExchangeRateListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is the currency that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with the exchange rate for currency X your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/exchange_rate_retrieve_params.rb b/lib/stripe/params/exchange_rate_retrieve_params.rb index 682538f8..6b4a1a55 100644 --- a/lib/stripe/params/exchange_rate_retrieve_params.rb +++ b/lib/stripe/params/exchange_rate_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class ExchangeRateRetrieveParams < Stripe::RequestParams + class ExchangeRateRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/file_create_params.rb b/lib/stripe/params/file_create_params.rb index 3d073158..de65f124 100644 --- a/lib/stripe/params/file_create_params.rb +++ b/lib/stripe/params/file_create_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class FileCreateParams < Stripe::RequestParams - class FileLinkData < Stripe::RequestParams + class FileCreateParams < ::Stripe::RequestParams + class FileLinkData < ::Stripe::RequestParams # Set this to `true` to create a file link for the newly created file. Creating a link is only possible when the file's `purpose` is one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `issuing_regulatory_reporting`, `pci_document`, `tax_document_user_upload`, `terminal_android_apk`, or `terminal_reader_splashscreen`. attr_accessor :create # The link isn't available after this future timestamp. diff --git a/lib/stripe/params/file_link_create_params.rb b/lib/stripe/params/file_link_create_params.rb index 5efc9509..195ca09e 100644 --- a/lib/stripe/params/file_link_create_params.rb +++ b/lib/stripe/params/file_link_create_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class FileLinkCreateParams < Stripe::RequestParams + class FileLinkCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # The link isn't usable after this future timestamp. diff --git a/lib/stripe/params/file_link_list_params.rb b/lib/stripe/params/file_link_list_params.rb index 08066ba8..4cee33c3 100644 --- a/lib/stripe/params/file_link_list_params.rb +++ b/lib/stripe/params/file_link_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class FileLinkListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class FileLinkListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/file_link_retrieve_params.rb b/lib/stripe/params/file_link_retrieve_params.rb index a0c0d278..359de12c 100644 --- a/lib/stripe/params/file_link_retrieve_params.rb +++ b/lib/stripe/params/file_link_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class FileLinkRetrieveParams < Stripe::RequestParams + class FileLinkRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/file_link_update_params.rb b/lib/stripe/params/file_link_update_params.rb index 64b9cbcc..029f4f1a 100644 --- a/lib/stripe/params/file_link_update_params.rb +++ b/lib/stripe/params/file_link_update_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class FileLinkUpdateParams < Stripe::RequestParams + class FileLinkUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # A future timestamp after which the link will no longer be usable, or `now` to expire the link immediately. diff --git a/lib/stripe/params/file_list_params.rb b/lib/stripe/params/file_list_params.rb index ac157cc0..5ae96c87 100644 --- a/lib/stripe/params/file_list_params.rb +++ b/lib/stripe/params/file_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class FileListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class FileListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/file_retrieve_params.rb b/lib/stripe/params/file_retrieve_params.rb index d8978845..c5adf53f 100644 --- a/lib/stripe/params/file_retrieve_params.rb +++ b/lib/stripe/params/file_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class FileRetrieveParams < Stripe::RequestParams + class FileRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/financial_connections/account_disconnect_params.rb b/lib/stripe/params/financial_connections/account_disconnect_params.rb index 349c2456..77336095 100644 --- a/lib/stripe/params/financial_connections/account_disconnect_params.rb +++ b/lib/stripe/params/financial_connections/account_disconnect_params.rb @@ -3,7 +3,7 @@ module Stripe module FinancialConnections - class AccountDisconnectParams < Stripe::RequestParams + class AccountDisconnectParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/financial_connections/account_list_owners_params.rb b/lib/stripe/params/financial_connections/account_list_owners_params.rb index eb9646bd..288ffa9d 100644 --- a/lib/stripe/params/financial_connections/account_list_owners_params.rb +++ b/lib/stripe/params/financial_connections/account_list_owners_params.rb @@ -3,7 +3,7 @@ module Stripe module FinancialConnections - class AccountListOwnersParams < Stripe::RequestParams + class AccountListOwnersParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/financial_connections/account_list_params.rb b/lib/stripe/params/financial_connections/account_list_params.rb index c75af2b6..2ff28870 100644 --- a/lib/stripe/params/financial_connections/account_list_params.rb +++ b/lib/stripe/params/financial_connections/account_list_params.rb @@ -3,8 +3,8 @@ module Stripe module FinancialConnections - class AccountListParams < Stripe::RequestParams - class AccountHolder < Stripe::RequestParams + class AccountListParams < ::Stripe::RequestParams + class AccountHolder < ::Stripe::RequestParams # The ID of the Stripe account whose accounts will be retrieved. attr_accessor :account # The ID of the Stripe customer whose accounts will be retrieved. diff --git a/lib/stripe/params/financial_connections/account_owner_list_params.rb b/lib/stripe/params/financial_connections/account_owner_list_params.rb index fcdc6e48..da7c824d 100644 --- a/lib/stripe/params/financial_connections/account_owner_list_params.rb +++ b/lib/stripe/params/financial_connections/account_owner_list_params.rb @@ -3,7 +3,7 @@ module Stripe module FinancialConnections - class AccountOwnerListParams < Stripe::RequestParams + class AccountOwnerListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/financial_connections/account_refresh_account_params.rb b/lib/stripe/params/financial_connections/account_refresh_account_params.rb index 14cb81bf..82af249c 100644 --- a/lib/stripe/params/financial_connections/account_refresh_account_params.rb +++ b/lib/stripe/params/financial_connections/account_refresh_account_params.rb @@ -3,7 +3,7 @@ module Stripe module FinancialConnections - class AccountRefreshAccountParams < Stripe::RequestParams + class AccountRefreshAccountParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # The list of account features that you would like to refresh. diff --git a/lib/stripe/params/financial_connections/account_refresh_params.rb b/lib/stripe/params/financial_connections/account_refresh_params.rb index a99627f0..b13d6c76 100644 --- a/lib/stripe/params/financial_connections/account_refresh_params.rb +++ b/lib/stripe/params/financial_connections/account_refresh_params.rb @@ -3,7 +3,7 @@ module Stripe module FinancialConnections - class AccountRefreshParams < Stripe::RequestParams + class AccountRefreshParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # The list of account features that you would like to refresh. diff --git a/lib/stripe/params/financial_connections/account_retrieve_params.rb b/lib/stripe/params/financial_connections/account_retrieve_params.rb index 319ec562..3d5c2086 100644 --- a/lib/stripe/params/financial_connections/account_retrieve_params.rb +++ b/lib/stripe/params/financial_connections/account_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module FinancialConnections - class AccountRetrieveParams < Stripe::RequestParams + class AccountRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/financial_connections/account_subscribe_params.rb b/lib/stripe/params/financial_connections/account_subscribe_params.rb index 7c99bebc..29b89fb1 100644 --- a/lib/stripe/params/financial_connections/account_subscribe_params.rb +++ b/lib/stripe/params/financial_connections/account_subscribe_params.rb @@ -3,7 +3,7 @@ module Stripe module FinancialConnections - class AccountSubscribeParams < Stripe::RequestParams + class AccountSubscribeParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # The list of account features to which you would like to subscribe. diff --git a/lib/stripe/params/financial_connections/account_unsubscribe_params.rb b/lib/stripe/params/financial_connections/account_unsubscribe_params.rb index 86c5a53c..77adc5d1 100644 --- a/lib/stripe/params/financial_connections/account_unsubscribe_params.rb +++ b/lib/stripe/params/financial_connections/account_unsubscribe_params.rb @@ -3,7 +3,7 @@ module Stripe module FinancialConnections - class AccountUnsubscribeParams < Stripe::RequestParams + class AccountUnsubscribeParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # The list of account features from which you would like to unsubscribe. diff --git a/lib/stripe/params/financial_connections/session_create_params.rb b/lib/stripe/params/financial_connections/session_create_params.rb index 66c58733..fe5c65bc 100644 --- a/lib/stripe/params/financial_connections/session_create_params.rb +++ b/lib/stripe/params/financial_connections/session_create_params.rb @@ -3,8 +3,8 @@ module Stripe module FinancialConnections - class SessionCreateParams < Stripe::RequestParams - class AccountHolder < Stripe::RequestParams + class SessionCreateParams < ::Stripe::RequestParams + class AccountHolder < ::Stripe::RequestParams # The ID of the Stripe account whose accounts will be retrieved. Should only be present if `type` is `account`. attr_accessor :account # The ID of the Stripe customer whose accounts will be retrieved. Should only be present if `type` is `customer`. @@ -19,7 +19,7 @@ module Stripe end end - class Filters < Stripe::RequestParams + class Filters < ::Stripe::RequestParams # Restricts the Session to subcategories of accounts that can be linked. Valid subcategories are: `checking`, `savings`, `mortgage`, `line_of_credit`, `credit_card`. attr_accessor :account_subcategories # List of countries from which to collect accounts. diff --git a/lib/stripe/params/financial_connections/session_retrieve_params.rb b/lib/stripe/params/financial_connections/session_retrieve_params.rb index 03b839fb..44aa9e30 100644 --- a/lib/stripe/params/financial_connections/session_retrieve_params.rb +++ b/lib/stripe/params/financial_connections/session_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module FinancialConnections - class SessionRetrieveParams < Stripe::RequestParams + class SessionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/financial_connections/transaction_list_params.rb b/lib/stripe/params/financial_connections/transaction_list_params.rb index f9542189..ead67129 100644 --- a/lib/stripe/params/financial_connections/transaction_list_params.rb +++ b/lib/stripe/params/financial_connections/transaction_list_params.rb @@ -3,8 +3,8 @@ module Stripe module FinancialConnections - class TransactionListParams < Stripe::RequestParams - class TransactedAt < Stripe::RequestParams + class TransactionListParams < ::Stripe::RequestParams + class TransactedAt < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) @@ -22,7 +22,7 @@ module Stripe end end - class TransactionRefresh < Stripe::RequestParams + class TransactionRefresh < ::Stripe::RequestParams # Return results where the transactions were created or updated by a refresh that took place after this refresh (non-inclusive). attr_accessor :after diff --git a/lib/stripe/params/financial_connections/transaction_retrieve_params.rb b/lib/stripe/params/financial_connections/transaction_retrieve_params.rb index be282f03..9588e204 100644 --- a/lib/stripe/params/financial_connections/transaction_retrieve_params.rb +++ b/lib/stripe/params/financial_connections/transaction_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module FinancialConnections - class TransactionRetrieveParams < Stripe::RequestParams + class TransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/forwarding/request_create_params.rb b/lib/stripe/params/forwarding/request_create_params.rb index ba570cea..8080595b 100644 --- a/lib/stripe/params/forwarding/request_create_params.rb +++ b/lib/stripe/params/forwarding/request_create_params.rb @@ -3,9 +3,9 @@ module Stripe module Forwarding - class RequestCreateParams < Stripe::RequestParams - class Request < Stripe::RequestParams - class Header < Stripe::RequestParams + class RequestCreateParams < ::Stripe::RequestParams + class Request < ::Stripe::RequestParams + class Header < ::Stripe::RequestParams # The header name. attr_accessor :name # The header value. diff --git a/lib/stripe/params/forwarding/request_list_params.rb b/lib/stripe/params/forwarding/request_list_params.rb index caaa7bd6..4ddbb9aa 100644 --- a/lib/stripe/params/forwarding/request_list_params.rb +++ b/lib/stripe/params/forwarding/request_list_params.rb @@ -3,8 +3,8 @@ module Stripe module Forwarding - class RequestListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class RequestListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Return results where the `created` field is greater than this value. attr_accessor :gt # Return results where the `created` field is greater than or equal to this value. diff --git a/lib/stripe/params/forwarding/request_retrieve_params.rb b/lib/stripe/params/forwarding/request_retrieve_params.rb index 38dd099c..db1809a0 100644 --- a/lib/stripe/params/forwarding/request_retrieve_params.rb +++ b/lib/stripe/params/forwarding/request_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Forwarding - class RequestRetrieveParams < Stripe::RequestParams + class RequestRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/identity/verification_report_list_params.rb b/lib/stripe/params/identity/verification_report_list_params.rb index 46d5ce2f..d96563a5 100644 --- a/lib/stripe/params/identity/verification_report_list_params.rb +++ b/lib/stripe/params/identity/verification_report_list_params.rb @@ -3,8 +3,8 @@ module Stripe module Identity - class VerificationReportListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class VerificationReportListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/identity/verification_report_retrieve_params.rb b/lib/stripe/params/identity/verification_report_retrieve_params.rb index c5639738..bbf62489 100644 --- a/lib/stripe/params/identity/verification_report_retrieve_params.rb +++ b/lib/stripe/params/identity/verification_report_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Identity - class VerificationReportRetrieveParams < Stripe::RequestParams + class VerificationReportRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/identity/verification_session_cancel_params.rb b/lib/stripe/params/identity/verification_session_cancel_params.rb index 322dea7e..e3190fb4 100644 --- a/lib/stripe/params/identity/verification_session_cancel_params.rb +++ b/lib/stripe/params/identity/verification_session_cancel_params.rb @@ -3,7 +3,7 @@ module Stripe module Identity - class VerificationSessionCancelParams < Stripe::RequestParams + class VerificationSessionCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/identity/verification_session_create_params.rb b/lib/stripe/params/identity/verification_session_create_params.rb index f0bf5deb..d667d462 100644 --- a/lib/stripe/params/identity/verification_session_create_params.rb +++ b/lib/stripe/params/identity/verification_session_create_params.rb @@ -3,9 +3,9 @@ module Stripe module Identity - class VerificationSessionCreateParams < Stripe::RequestParams - class Options < Stripe::RequestParams - class Document < Stripe::RequestParams + class VerificationSessionCreateParams < ::Stripe::RequestParams + class Options < ::Stripe::RequestParams + class Document < ::Stripe::RequestParams # Array of strings of allowed identity document types. If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code. attr_accessor :allowed_types # Collect an ID number and perform an [ID number check](https://stripe.com/docs/identity/verification-checks?type=id-number) with the document’s extracted name and date of birth. @@ -35,7 +35,7 @@ module Stripe end end - class ProvidedDetails < Stripe::RequestParams + class ProvidedDetails < ::Stripe::RequestParams # Email of user being verified attr_accessor :email # Phone number of user being verified @@ -47,7 +47,7 @@ module Stripe end end - class RelatedPerson < Stripe::RequestParams + class RelatedPerson < ::Stripe::RequestParams # A token representing a connected account. If provided, the person parameter is also required and must be associated with the account. attr_accessor :account # A token referencing a Person resource that this verification is being used to verify. diff --git a/lib/stripe/params/identity/verification_session_list_params.rb b/lib/stripe/params/identity/verification_session_list_params.rb index f1e38df9..bcf33805 100644 --- a/lib/stripe/params/identity/verification_session_list_params.rb +++ b/lib/stripe/params/identity/verification_session_list_params.rb @@ -3,8 +3,8 @@ module Stripe module Identity - class VerificationSessionListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class VerificationSessionListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/identity/verification_session_redact_params.rb b/lib/stripe/params/identity/verification_session_redact_params.rb index 23d477b4..a2162ae4 100644 --- a/lib/stripe/params/identity/verification_session_redact_params.rb +++ b/lib/stripe/params/identity/verification_session_redact_params.rb @@ -3,7 +3,7 @@ module Stripe module Identity - class VerificationSessionRedactParams < Stripe::RequestParams + class VerificationSessionRedactParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/identity/verification_session_retrieve_params.rb b/lib/stripe/params/identity/verification_session_retrieve_params.rb index 7c4fc59f..a82132a2 100644 --- a/lib/stripe/params/identity/verification_session_retrieve_params.rb +++ b/lib/stripe/params/identity/verification_session_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Identity - class VerificationSessionRetrieveParams < Stripe::RequestParams + class VerificationSessionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/identity/verification_session_update_params.rb b/lib/stripe/params/identity/verification_session_update_params.rb index 620845ec..74e498f1 100644 --- a/lib/stripe/params/identity/verification_session_update_params.rb +++ b/lib/stripe/params/identity/verification_session_update_params.rb @@ -3,9 +3,9 @@ module Stripe module Identity - class VerificationSessionUpdateParams < Stripe::RequestParams - class Options < Stripe::RequestParams - class Document < Stripe::RequestParams + class VerificationSessionUpdateParams < ::Stripe::RequestParams + class Options < ::Stripe::RequestParams + class Document < ::Stripe::RequestParams # Array of strings of allowed identity document types. If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code. attr_accessor :allowed_types # Collect an ID number and perform an [ID number check](https://stripe.com/docs/identity/verification-checks?type=id-number) with the document’s extracted name and date of birth. @@ -35,7 +35,7 @@ module Stripe end end - class ProvidedDetails < Stripe::RequestParams + class ProvidedDetails < ::Stripe::RequestParams # Email of user being verified attr_accessor :email # Phone number of user being verified diff --git a/lib/stripe/params/invoice_add_lines_params.rb b/lib/stripe/params/invoice_add_lines_params.rb index 398fd89c..df28ce22 100644 --- a/lib/stripe/params/invoice_add_lines_params.rb +++ b/lib/stripe/params/invoice_add_lines_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class InvoiceAddLinesParams < Stripe::RequestParams - class Line < Stripe::RequestParams - class Discount < Stripe::RequestParams + class InvoiceAddLinesParams < ::Stripe::RequestParams + class Line < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -19,7 +19,7 @@ module Stripe end end - class Period < Stripe::RequestParams + class Period < ::Stripe::RequestParams # The end of the period, which must be greater than or equal to the start. This value is inclusive. attr_accessor :end # The start of the period. This value is inclusive. @@ -31,8 +31,8 @@ module Stripe end end - class PriceData < Stripe::RequestParams - class ProductData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class ProductData < ::Stripe::RequestParams # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. attr_accessor :description # A list of up to 8 URLs of images for this product, meant to be displayable to the customer. @@ -92,7 +92,7 @@ module Stripe end end - class Pricing < Stripe::RequestParams + class Pricing < ::Stripe::RequestParams # The ID of the price object. attr_accessor :price @@ -101,8 +101,8 @@ module Stripe end end - class TaxAmount < Stripe::RequestParams - class TaxRateData < Stripe::RequestParams + class TaxAmount < ::Stripe::RequestParams + class TaxRateData < ::Stripe::RequestParams # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). attr_accessor :country # An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers. diff --git a/lib/stripe/params/invoice_attach_payment_params.rb b/lib/stripe/params/invoice_attach_payment_params.rb index 6168895d..dbd62ade 100644 --- a/lib/stripe/params/invoice_attach_payment_params.rb +++ b/lib/stripe/params/invoice_attach_payment_params.rb @@ -2,15 +2,18 @@ # frozen_string_literal: true module Stripe - class InvoiceAttachPaymentParams < Stripe::RequestParams + class InvoiceAttachPaymentParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # The ID of the PaymentIntent to attach to the invoice. attr_accessor :payment_intent + # The ID of the PaymentRecord to attach to the invoice. + attr_accessor :payment_record - def initialize(expand: nil, payment_intent: nil) + def initialize(expand: nil, payment_intent: nil, payment_record: nil) @expand = expand @payment_intent = payment_intent + @payment_record = payment_record end end end diff --git a/lib/stripe/params/invoice_create_params.rb b/lib/stripe/params/invoice_create_params.rb index b6327f44..f4762782 100644 --- a/lib/stripe/params/invoice_create_params.rb +++ b/lib/stripe/params/invoice_create_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class InvoiceCreateParams < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class InvoiceCreateParams < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -26,7 +26,7 @@ module Stripe end end - class CustomField < Stripe::RequestParams + class CustomField < ::Stripe::RequestParams # The name of the custom field. This may be up to 40 characters. attr_accessor :name # The value of the custom field. This may be up to 140 characters. @@ -38,7 +38,7 @@ module Stripe end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -53,7 +53,7 @@ module Stripe end end - class FromInvoice < Stripe::RequestParams + class FromInvoice < ::Stripe::RequestParams # The relation between the new invoice and the original invoice. Currently, only 'revision' is permitted attr_accessor :action # The `id` of the invoice that will be cloned. @@ -65,7 +65,7 @@ module Stripe end end - class Issuer < Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -77,10 +77,10 @@ module Stripe end end - class PaymentSettings < Stripe::RequestParams - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentSettings < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Transaction type of the mandate. attr_accessor :transaction_type @@ -99,7 +99,7 @@ module Stripe end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Preferred language of the Bancontact authorization page that the customer is redirected to. attr_accessor :preferred_language @@ -108,9 +108,9 @@ module Stripe end end - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams - class Plan < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams + class Plan < ::Stripe::RequestParams # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. attr_accessor :count # For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card. @@ -149,9 +149,9 @@ module Stripe end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. attr_accessor :country @@ -180,12 +180,12 @@ module Stripe end end - class Konbini < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams; end + class Konbini < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. attr_accessor :account_subcategories @@ -263,8 +263,8 @@ module Stripe end end - class Rendering < Stripe::RequestParams - class Pdf < Stripe::RequestParams + class Rendering < ::Stripe::RequestParams + class Pdf < ::Stripe::RequestParams # Page size for invoice PDF. Can be set to `a4`, `letter`, or `auto`. # If set to `auto`, invoice PDF page size defaults to `a4` for customers with # Japanese locale and `letter` for customers with other locales. @@ -291,10 +291,10 @@ module Stripe end end - class ShippingCost < Stripe::RequestParams - class ShippingRateData < Stripe::RequestParams - class DeliveryEstimate < Stripe::RequestParams - class Maximum < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams + class ShippingRateData < ::Stripe::RequestParams + class DeliveryEstimate < ::Stripe::RequestParams + class Maximum < ::Stripe::RequestParams # A unit of time. attr_accessor :unit # Must be greater than 0. @@ -306,7 +306,7 @@ module Stripe end end - class Minimum < Stripe::RequestParams + class Minimum < ::Stripe::RequestParams # A unit of time. attr_accessor :unit # Must be greater than 0. @@ -328,8 +328,8 @@ module Stripe end end - class FixedAmount < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class FixedAmount < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A non-negative integer in cents representing how much to charge. attr_accessor :amount # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. @@ -397,8 +397,8 @@ module Stripe end end - class ShippingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class ShippingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -442,7 +442,7 @@ module Stripe end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when the invoice is paid. If no amount is set, the full amount is transferred. attr_accessor :amount # ID of an existing, connected Stripe account. diff --git a/lib/stripe/params/invoice_create_preview_params.rb b/lib/stripe/params/invoice_create_preview_params.rb index c9afe506..d6dc26c3 100644 --- a/lib/stripe/params/invoice_create_preview_params.rb +++ b/lib/stripe/params/invoice_create_preview_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class InvoiceCreatePreviewParams < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class InvoiceCreatePreviewParams < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -26,8 +26,8 @@ module Stripe end end - class CustomerDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class CustomerDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -58,8 +58,8 @@ module Stripe end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -103,7 +103,7 @@ module Stripe end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes. attr_accessor :ip_address @@ -112,7 +112,7 @@ module Stripe end end - class TaxId < Stripe::RequestParams + class TaxId < ::Stripe::RequestParams # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` attr_accessor :type # Value of the tax ID. @@ -143,7 +143,7 @@ module Stripe end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -158,8 +158,8 @@ module Stripe end end - class InvoiceItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class InvoiceItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -174,7 +174,7 @@ module Stripe end end - class Period < Stripe::RequestParams + class Period < ::Stripe::RequestParams # The end of the period, which must be greater than or equal to the start. This value is inclusive. attr_accessor :end # The start of the period. This value is inclusive. @@ -186,7 +186,7 @@ module Stripe end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). attr_accessor :currency # The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. @@ -282,7 +282,7 @@ module Stripe end end - class Issuer < Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -294,9 +294,9 @@ module Stripe end end - class ScheduleDetails < Stripe::RequestParams - class BillingMode < Stripe::RequestParams - class Flexible < Stripe::RequestParams + class ScheduleDetails < ::Stripe::RequestParams + class BillingMode < ::Stripe::RequestParams + class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. attr_accessor :proration_discounts @@ -315,9 +315,9 @@ module Stripe end end - class Phase < Stripe::RequestParams - class AddInvoiceItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class Phase < ::Stripe::RequestParams + class AddInvoiceItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -332,8 +332,8 @@ module Stripe end end - class Period < Stripe::RequestParams - class End < Stripe::RequestParams + class Period < ::Stripe::RequestParams + class End < ::Stripe::RequestParams # A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`. attr_accessor :timestamp # Select how to calculate the end of the invoice item period. @@ -345,7 +345,7 @@ module Stripe end end - class Start < Stripe::RequestParams + class Start < ::Stripe::RequestParams # A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`. attr_accessor :timestamp # Select how to calculate the start of the invoice item period. @@ -367,7 +367,7 @@ module Stripe end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). attr_accessor :currency # The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. @@ -427,8 +427,8 @@ module Stripe end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -450,7 +450,7 @@ module Stripe end end - class BillingThresholds < Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period attr_accessor :amount_gte # Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. @@ -462,7 +462,7 @@ module Stripe end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -477,7 +477,7 @@ module Stripe end end - class Duration < Stripe::RequestParams + class Duration < ::Stripe::RequestParams # Specifies phase duration. Either `day`, `week`, `month` or `year`. attr_accessor :interval # The multiplier applied to the interval. @@ -489,8 +489,8 @@ module Stripe end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -515,8 +515,8 @@ module Stripe end end - class Item < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class Item < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) attr_accessor :usage_gte @@ -525,7 +525,7 @@ module Stripe end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -540,8 +540,8 @@ module Stripe end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. attr_accessor :interval # The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks). @@ -619,7 +619,7 @@ module Stripe end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. attr_accessor :amount_percent # ID of an existing, connected Stripe account. @@ -740,9 +740,9 @@ module Stripe end end - class SubscriptionDetails < Stripe::RequestParams - class BillingMode < Stripe::RequestParams - class Flexible < Stripe::RequestParams + class SubscriptionDetails < ::Stripe::RequestParams + class BillingMode < ::Stripe::RequestParams + class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. attr_accessor :proration_discounts @@ -761,8 +761,8 @@ module Stripe end end - class Item < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class Item < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) attr_accessor :usage_gte @@ -771,7 +771,7 @@ module Stripe end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -786,8 +786,8 @@ module Stripe end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. attr_accessor :interval # The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks). diff --git a/lib/stripe/params/invoice_delete_params.rb b/lib/stripe/params/invoice_delete_params.rb index e86abb8a..3eccef9a 100644 --- a/lib/stripe/params/invoice_delete_params.rb +++ b/lib/stripe/params/invoice_delete_params.rb @@ -2,5 +2,5 @@ # frozen_string_literal: true module Stripe - class InvoiceDeleteParams < Stripe::RequestParams; end + class InvoiceDeleteParams < ::Stripe::RequestParams; end end diff --git a/lib/stripe/params/invoice_finalize_invoice_params.rb b/lib/stripe/params/invoice_finalize_invoice_params.rb index 2ad5b584..bd3cdb74 100644 --- a/lib/stripe/params/invoice_finalize_invoice_params.rb +++ b/lib/stripe/params/invoice_finalize_invoice_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class InvoiceFinalizeInvoiceParams < Stripe::RequestParams + class InvoiceFinalizeInvoiceParams < ::Stripe::RequestParams # Controls whether Stripe performs [automatic collection](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action. attr_accessor :auto_advance # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/invoice_item_create_params.rb b/lib/stripe/params/invoice_item_create_params.rb index 27436eb4..1b95465f 100644 --- a/lib/stripe/params/invoice_item_create_params.rb +++ b/lib/stripe/params/invoice_item_create_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class InvoiceItemCreateParams < Stripe::RequestParams - class Discount < Stripe::RequestParams + class InvoiceItemCreateParams < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -18,7 +18,7 @@ module Stripe end end - class Period < Stripe::RequestParams + class Period < ::Stripe::RequestParams # The end of the period, which must be greater than or equal to the start. This value is inclusive. attr_accessor :end # The start of the period. This value is inclusive. @@ -30,7 +30,7 @@ module Stripe end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). attr_accessor :currency # The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. @@ -57,7 +57,7 @@ module Stripe end end - class Pricing < Stripe::RequestParams + class Pricing < ::Stripe::RequestParams # The ID of the price object. attr_accessor :price diff --git a/lib/stripe/params/invoice_item_delete_params.rb b/lib/stripe/params/invoice_item_delete_params.rb index 80ba32b8..5ee4cba7 100644 --- a/lib/stripe/params/invoice_item_delete_params.rb +++ b/lib/stripe/params/invoice_item_delete_params.rb @@ -2,5 +2,5 @@ # frozen_string_literal: true module Stripe - class InvoiceItemDeleteParams < Stripe::RequestParams; end + class InvoiceItemDeleteParams < ::Stripe::RequestParams; end end diff --git a/lib/stripe/params/invoice_item_list_params.rb b/lib/stripe/params/invoice_item_list_params.rb index 0aba39ff..89291a97 100644 --- a/lib/stripe/params/invoice_item_list_params.rb +++ b/lib/stripe/params/invoice_item_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class InvoiceItemListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class InvoiceItemListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/invoice_item_retrieve_params.rb b/lib/stripe/params/invoice_item_retrieve_params.rb index aa32466a..17686638 100644 --- a/lib/stripe/params/invoice_item_retrieve_params.rb +++ b/lib/stripe/params/invoice_item_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class InvoiceItemRetrieveParams < Stripe::RequestParams + class InvoiceItemRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/invoice_item_update_params.rb b/lib/stripe/params/invoice_item_update_params.rb index b5e762d0..4edc93ff 100644 --- a/lib/stripe/params/invoice_item_update_params.rb +++ b/lib/stripe/params/invoice_item_update_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class InvoiceItemUpdateParams < Stripe::RequestParams - class Discount < Stripe::RequestParams + class InvoiceItemUpdateParams < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -18,7 +18,7 @@ module Stripe end end - class Period < Stripe::RequestParams + class Period < ::Stripe::RequestParams # The end of the period, which must be greater than or equal to the start. This value is inclusive. attr_accessor :end # The start of the period. This value is inclusive. @@ -30,7 +30,7 @@ module Stripe end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). attr_accessor :currency # The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. @@ -57,7 +57,7 @@ module Stripe end end - class Pricing < Stripe::RequestParams + class Pricing < ::Stripe::RequestParams # The ID of the price object. attr_accessor :price diff --git a/lib/stripe/params/invoice_line_item_list_params.rb b/lib/stripe/params/invoice_line_item_list_params.rb index c7e409c6..bd13101a 100644 --- a/lib/stripe/params/invoice_line_item_list_params.rb +++ b/lib/stripe/params/invoice_line_item_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class InvoiceLineItemListParams < Stripe::RequestParams + class InvoiceLineItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/invoice_line_item_update_params.rb b/lib/stripe/params/invoice_line_item_update_params.rb index e9ec1c21..caca72db 100644 --- a/lib/stripe/params/invoice_line_item_update_params.rb +++ b/lib/stripe/params/invoice_line_item_update_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class InvoiceLineItemUpdateParams < Stripe::RequestParams - class Discount < Stripe::RequestParams + class InvoiceLineItemUpdateParams < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -18,7 +18,7 @@ module Stripe end end - class Period < Stripe::RequestParams + class Period < ::Stripe::RequestParams # The end of the period, which must be greater than or equal to the start. This value is inclusive. attr_accessor :end # The start of the period. This value is inclusive. @@ -30,8 +30,8 @@ module Stripe end end - class PriceData < Stripe::RequestParams - class ProductData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class ProductData < ::Stripe::RequestParams # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. attr_accessor :description # A list of up to 8 URLs of images for this product, meant to be displayable to the customer. @@ -91,7 +91,7 @@ module Stripe end end - class Pricing < Stripe::RequestParams + class Pricing < ::Stripe::RequestParams # The ID of the price object. attr_accessor :price @@ -100,8 +100,8 @@ module Stripe end end - class TaxAmount < Stripe::RequestParams - class TaxRateData < Stripe::RequestParams + class TaxAmount < ::Stripe::RequestParams + class TaxRateData < ::Stripe::RequestParams # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). attr_accessor :country # An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers. diff --git a/lib/stripe/params/invoice_list_params.rb b/lib/stripe/params/invoice_list_params.rb index 079c5895..8e02af50 100644 --- a/lib/stripe/params/invoice_list_params.rb +++ b/lib/stripe/params/invoice_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class InvoiceListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class InvoiceListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) @@ -21,7 +21,7 @@ module Stripe end end - class DueDate < Stripe::RequestParams + class DueDate < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/invoice_mark_uncollectible_params.rb b/lib/stripe/params/invoice_mark_uncollectible_params.rb index ffb898dc..f65dc477 100644 --- a/lib/stripe/params/invoice_mark_uncollectible_params.rb +++ b/lib/stripe/params/invoice_mark_uncollectible_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class InvoiceMarkUncollectibleParams < Stripe::RequestParams + class InvoiceMarkUncollectibleParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/invoice_pay_params.rb b/lib/stripe/params/invoice_pay_params.rb index 629699d4..ccf49134 100644 --- a/lib/stripe/params/invoice_pay_params.rb +++ b/lib/stripe/params/invoice_pay_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class InvoicePayParams < Stripe::RequestParams + class InvoicePayParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # In cases where the source used to pay the invoice has insufficient funds, passing `forgive=true` controls whether a charge should be attempted for the full amount available on the source, up to the amount to fully pay the invoice. This effectively forgives the difference between the amount available on the source and the amount due. diff --git a/lib/stripe/params/invoice_payment_list_params.rb b/lib/stripe/params/invoice_payment_list_params.rb index bd66b26b..2e50912e 100644 --- a/lib/stripe/params/invoice_payment_list_params.rb +++ b/lib/stripe/params/invoice_payment_list_params.rb @@ -2,15 +2,18 @@ # frozen_string_literal: true module Stripe - class InvoicePaymentListParams < Stripe::RequestParams - class Payment < Stripe::RequestParams + class InvoicePaymentListParams < ::Stripe::RequestParams + class Payment < ::Stripe::RequestParams # Only return invoice payments associated by this payment intent ID. attr_accessor :payment_intent + # Only return invoice payments associated by this payment record ID. + attr_accessor :payment_record # Only return invoice payments associated by this payment type. attr_accessor :type - def initialize(payment_intent: nil, type: nil) + def initialize(payment_intent: nil, payment_record: nil, type: nil) @payment_intent = payment_intent + @payment_record = payment_record @type = type end end diff --git a/lib/stripe/params/invoice_payment_retrieve_params.rb b/lib/stripe/params/invoice_payment_retrieve_params.rb index 4a4aa53f..d107b015 100644 --- a/lib/stripe/params/invoice_payment_retrieve_params.rb +++ b/lib/stripe/params/invoice_payment_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class InvoicePaymentRetrieveParams < Stripe::RequestParams + class InvoicePaymentRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/invoice_remove_lines_params.rb b/lib/stripe/params/invoice_remove_lines_params.rb index f824dd7f..54e947eb 100644 --- a/lib/stripe/params/invoice_remove_lines_params.rb +++ b/lib/stripe/params/invoice_remove_lines_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class InvoiceRemoveLinesParams < Stripe::RequestParams - class Line < Stripe::RequestParams + class InvoiceRemoveLinesParams < ::Stripe::RequestParams + class Line < ::Stripe::RequestParams # Either `delete` or `unassign`. Deleted line items are permanently deleted. Unassigned line items can be reassigned to an invoice. attr_accessor :behavior # ID of an existing line item to remove from this invoice. diff --git a/lib/stripe/params/invoice_rendering_template_archive_params.rb b/lib/stripe/params/invoice_rendering_template_archive_params.rb index 0ca59d2e..46359185 100644 --- a/lib/stripe/params/invoice_rendering_template_archive_params.rb +++ b/lib/stripe/params/invoice_rendering_template_archive_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class InvoiceRenderingTemplateArchiveParams < Stripe::RequestParams + class InvoiceRenderingTemplateArchiveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/invoice_rendering_template_list_params.rb b/lib/stripe/params/invoice_rendering_template_list_params.rb index d51589a0..85354251 100644 --- a/lib/stripe/params/invoice_rendering_template_list_params.rb +++ b/lib/stripe/params/invoice_rendering_template_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class InvoiceRenderingTemplateListParams < Stripe::RequestParams + class InvoiceRenderingTemplateListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/invoice_rendering_template_retrieve_params.rb b/lib/stripe/params/invoice_rendering_template_retrieve_params.rb index ee876b22..3678abee 100644 --- a/lib/stripe/params/invoice_rendering_template_retrieve_params.rb +++ b/lib/stripe/params/invoice_rendering_template_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class InvoiceRenderingTemplateRetrieveParams < Stripe::RequestParams + class InvoiceRenderingTemplateRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # Attribute for param field version diff --git a/lib/stripe/params/invoice_rendering_template_unarchive_params.rb b/lib/stripe/params/invoice_rendering_template_unarchive_params.rb index 8b56e165..cbd95e96 100644 --- a/lib/stripe/params/invoice_rendering_template_unarchive_params.rb +++ b/lib/stripe/params/invoice_rendering_template_unarchive_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class InvoiceRenderingTemplateUnarchiveParams < Stripe::RequestParams + class InvoiceRenderingTemplateUnarchiveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/invoice_retrieve_params.rb b/lib/stripe/params/invoice_retrieve_params.rb index b12ca5af..0576224e 100644 --- a/lib/stripe/params/invoice_retrieve_params.rb +++ b/lib/stripe/params/invoice_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class InvoiceRetrieveParams < Stripe::RequestParams + class InvoiceRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/invoice_search_params.rb b/lib/stripe/params/invoice_search_params.rb index 52348071..14690413 100644 --- a/lib/stripe/params/invoice_search_params.rb +++ b/lib/stripe/params/invoice_search_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class InvoiceSearchParams < Stripe::RequestParams + class InvoiceSearchParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. diff --git a/lib/stripe/params/invoice_send_invoice_params.rb b/lib/stripe/params/invoice_send_invoice_params.rb index 5b7037dd..d8379676 100644 --- a/lib/stripe/params/invoice_send_invoice_params.rb +++ b/lib/stripe/params/invoice_send_invoice_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class InvoiceSendInvoiceParams < Stripe::RequestParams + class InvoiceSendInvoiceParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/invoice_update_lines_params.rb b/lib/stripe/params/invoice_update_lines_params.rb index 0bd29528..8999c8de 100644 --- a/lib/stripe/params/invoice_update_lines_params.rb +++ b/lib/stripe/params/invoice_update_lines_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class InvoiceUpdateLinesParams < Stripe::RequestParams - class Line < Stripe::RequestParams - class Discount < Stripe::RequestParams + class InvoiceUpdateLinesParams < ::Stripe::RequestParams + class Line < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -19,7 +19,7 @@ module Stripe end end - class Period < Stripe::RequestParams + class Period < ::Stripe::RequestParams # The end of the period, which must be greater than or equal to the start. This value is inclusive. attr_accessor :end # The start of the period. This value is inclusive. @@ -31,8 +31,8 @@ module Stripe end end - class PriceData < Stripe::RequestParams - class ProductData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class ProductData < ::Stripe::RequestParams # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. attr_accessor :description # A list of up to 8 URLs of images for this product, meant to be displayable to the customer. @@ -92,7 +92,7 @@ module Stripe end end - class Pricing < Stripe::RequestParams + class Pricing < ::Stripe::RequestParams # The ID of the price object. attr_accessor :price @@ -101,8 +101,8 @@ module Stripe end end - class TaxAmount < Stripe::RequestParams - class TaxRateData < Stripe::RequestParams + class TaxAmount < ::Stripe::RequestParams + class TaxRateData < ::Stripe::RequestParams # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). attr_accessor :country # An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers. diff --git a/lib/stripe/params/invoice_update_params.rb b/lib/stripe/params/invoice_update_params.rb index ba00ecbd..adac8327 100644 --- a/lib/stripe/params/invoice_update_params.rb +++ b/lib/stripe/params/invoice_update_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class InvoiceUpdateParams < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class InvoiceUpdateParams < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -26,7 +26,7 @@ module Stripe end end - class CustomField < Stripe::RequestParams + class CustomField < ::Stripe::RequestParams # The name of the custom field. This may be up to 40 characters. attr_accessor :name # The value of the custom field. This may be up to 140 characters. @@ -38,7 +38,7 @@ module Stripe end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -53,7 +53,7 @@ module Stripe end end - class Issuer < Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -65,10 +65,10 @@ module Stripe end end - class PaymentSettings < Stripe::RequestParams - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentSettings < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Transaction type of the mandate. attr_accessor :transaction_type @@ -87,7 +87,7 @@ module Stripe end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Preferred language of the Bancontact authorization page that the customer is redirected to. attr_accessor :preferred_language @@ -96,9 +96,9 @@ module Stripe end end - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams - class Plan < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams + class Plan < ::Stripe::RequestParams # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. attr_accessor :count # For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card. @@ -137,9 +137,9 @@ module Stripe end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. attr_accessor :country @@ -168,12 +168,12 @@ module Stripe end end - class Konbini < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams; end + class Konbini < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. attr_accessor :account_subcategories @@ -251,8 +251,8 @@ module Stripe end end - class Rendering < Stripe::RequestParams - class Pdf < Stripe::RequestParams + class Rendering < ::Stripe::RequestParams + class Pdf < ::Stripe::RequestParams # Page size for invoice PDF. Can be set to `a4`, `letter`, or `auto`. # If set to `auto`, invoice PDF page size defaults to `a4` for customers with # Japanese locale and `letter` for customers with other locales. @@ -279,10 +279,10 @@ module Stripe end end - class ShippingCost < Stripe::RequestParams - class ShippingRateData < Stripe::RequestParams - class DeliveryEstimate < Stripe::RequestParams - class Maximum < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams + class ShippingRateData < ::Stripe::RequestParams + class DeliveryEstimate < ::Stripe::RequestParams + class Maximum < ::Stripe::RequestParams # A unit of time. attr_accessor :unit # Must be greater than 0. @@ -294,7 +294,7 @@ module Stripe end end - class Minimum < Stripe::RequestParams + class Minimum < ::Stripe::RequestParams # A unit of time. attr_accessor :unit # Must be greater than 0. @@ -316,8 +316,8 @@ module Stripe end end - class FixedAmount < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class FixedAmount < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A non-negative integer in cents representing how much to charge. attr_accessor :amount # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. @@ -385,8 +385,8 @@ module Stripe end end - class ShippingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class ShippingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -430,7 +430,7 @@ module Stripe end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when the invoice is paid. If no amount is set, the full amount is transferred. attr_accessor :amount # ID of an existing, connected Stripe account. diff --git a/lib/stripe/params/invoice_void_invoice_params.rb b/lib/stripe/params/invoice_void_invoice_params.rb index 0bcd97ca..21bb00af 100644 --- a/lib/stripe/params/invoice_void_invoice_params.rb +++ b/lib/stripe/params/invoice_void_invoice_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class InvoiceVoidInvoiceParams < Stripe::RequestParams + class InvoiceVoidInvoiceParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/issuing/authorization_approve_params.rb b/lib/stripe/params/issuing/authorization_approve_params.rb index 51253b6f..e35d22ef 100644 --- a/lib/stripe/params/issuing/authorization_approve_params.rb +++ b/lib/stripe/params/issuing/authorization_approve_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class AuthorizationApproveParams < Stripe::RequestParams + class AuthorizationApproveParams < ::Stripe::RequestParams # If the authorization's `pending_request.is_amount_controllable` property is `true`, you may provide this value to control how much to hold for the authorization. Must be positive (use [`decline`](https://stripe.com/docs/api/issuing/authorizations/decline) to decline an authorization request). attr_accessor :amount # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/issuing/authorization_capture_params.rb b/lib/stripe/params/issuing/authorization_capture_params.rb index 325d7fa1..16404e85 100644 --- a/lib/stripe/params/issuing/authorization_capture_params.rb +++ b/lib/stripe/params/issuing/authorization_capture_params.rb @@ -3,10 +3,10 @@ module Stripe module Issuing - class AuthorizationCaptureParams < Stripe::RequestParams - class PurchaseDetails < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class AuthorizationCaptureParams < ::Stripe::RequestParams + class PurchaseDetails < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. attr_accessor :driver_id # Odometer reading. @@ -33,8 +33,8 @@ module Stripe end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. attr_accessor :gross_amount_decimal @@ -43,7 +43,7 @@ module Stripe end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. attr_accessor :gross_amount_decimal @@ -52,7 +52,7 @@ module Stripe end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. attr_accessor :local_amount_decimal # Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax. @@ -98,8 +98,8 @@ module Stripe end end - class Flight < Stripe::RequestParams - class Segment < Stripe::RequestParams + class Flight < ::Stripe::RequestParams + class Segment < ::Stripe::RequestParams # The three-letter IATA airport code of the flight's destination. attr_accessor :arrival_airport_code # The airline carrier code. @@ -155,7 +155,7 @@ module Stripe end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. attr_accessor :industry_product_code # The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places. @@ -182,7 +182,7 @@ module Stripe end end - class Lodging < Stripe::RequestParams + class Lodging < ::Stripe::RequestParams # The time of checking into the lodging. attr_accessor :check_in_at # The number of nights stayed at the lodging. @@ -194,7 +194,7 @@ module Stripe end end - class Receipt < Stripe::RequestParams + class Receipt < ::Stripe::RequestParams # Attribute for param field description attr_accessor :description # Attribute for param field quantity diff --git a/lib/stripe/params/issuing/authorization_create_params.rb b/lib/stripe/params/issuing/authorization_create_params.rb index eb8ae5ea..57089b39 100644 --- a/lib/stripe/params/issuing/authorization_create_params.rb +++ b/lib/stripe/params/issuing/authorization_create_params.rb @@ -3,8 +3,8 @@ module Stripe module Issuing - class AuthorizationCreateParams < Stripe::RequestParams - class AmountDetails < Stripe::RequestParams + class AuthorizationCreateParams < ::Stripe::RequestParams + class AmountDetails < ::Stripe::RequestParams # The ATM withdrawal fee. attr_accessor :atm_fee # The amount of cash requested by the cardholder. @@ -16,8 +16,8 @@ module Stripe end end - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. attr_accessor :driver_id # Odometer reading. @@ -44,8 +44,8 @@ module Stripe end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. attr_accessor :gross_amount_decimal @@ -54,7 +54,7 @@ module Stripe end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. attr_accessor :gross_amount_decimal @@ -63,7 +63,7 @@ module Stripe end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. attr_accessor :local_amount_decimal # Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax. @@ -109,7 +109,7 @@ module Stripe end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. attr_accessor :industry_product_code # The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places. @@ -136,7 +136,7 @@ module Stripe end end - class MerchantData < Stripe::RequestParams + class MerchantData < ::Stripe::RequestParams # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. attr_accessor :category # City where the seller is located @@ -179,7 +179,7 @@ module Stripe end end - class NetworkData < Stripe::RequestParams + class NetworkData < ::Stripe::RequestParams # Identifier assigned to the acquirer by the card network. attr_accessor :acquiring_institution_id @@ -188,8 +188,8 @@ module Stripe end end - class RiskAssessment < Stripe::RequestParams - class CardTestingRisk < Stripe::RequestParams + class RiskAssessment < ::Stripe::RequestParams + class CardTestingRisk < ::Stripe::RequestParams # The % of declines due to a card number not existing in the past hour, taking place at the same merchant. Higher rates correspond to a greater probability of card testing activity, meaning bad actors may be attempting different card number combinations to guess a correct one. Takes on values between 0 and 100. attr_accessor :invalid_account_number_decline_rate_past_hour # The % of declines due to incorrect verification data (like CVV or expiry) in the past hour, taking place at the same merchant. Higher rates correspond to a greater probability of bad actors attempting to utilize valid card credentials at merchants with verification requirements. Takes on values between 0 and 100. @@ -208,7 +208,7 @@ module Stripe end end - class MerchantDisputeRisk < Stripe::RequestParams + class MerchantDisputeRisk < ::Stripe::RequestParams # The dispute rate observed across all Stripe Issuing authorizations for this merchant. For example, a value of 50 means 50% of authorizations from this merchant on Stripe Issuing have resulted in a dispute. Higher values mean a higher likelihood the authorization is disputed. Takes on values between 0 and 100. attr_accessor :dispute_rate # The likelihood that authorizations from this merchant will result in a dispute based on their history on Stripe Issuing. @@ -230,8 +230,8 @@ module Stripe end end - class VerificationData < Stripe::RequestParams - class AuthenticationExemption < Stripe::RequestParams + class VerificationData < ::Stripe::RequestParams + class AuthenticationExemption < ::Stripe::RequestParams # The entity that requested the exemption, either the acquiring merchant or the Issuing user. attr_accessor :claimed_by # The specific exemption claimed for this authorization. @@ -243,7 +243,7 @@ module Stripe end end - class ThreeDSecure < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams # The outcome of the 3D Secure authentication request. attr_accessor :result diff --git a/lib/stripe/params/issuing/authorization_decline_params.rb b/lib/stripe/params/issuing/authorization_decline_params.rb index c3ebbee8..52c629c4 100644 --- a/lib/stripe/params/issuing/authorization_decline_params.rb +++ b/lib/stripe/params/issuing/authorization_decline_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class AuthorizationDeclineParams < Stripe::RequestParams + class AuthorizationDeclineParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. diff --git a/lib/stripe/params/issuing/authorization_expire_params.rb b/lib/stripe/params/issuing/authorization_expire_params.rb index 1fae2fa8..4f84ffce 100644 --- a/lib/stripe/params/issuing/authorization_expire_params.rb +++ b/lib/stripe/params/issuing/authorization_expire_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class AuthorizationExpireParams < Stripe::RequestParams + class AuthorizationExpireParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/issuing/authorization_finalize_amount_params.rb b/lib/stripe/params/issuing/authorization_finalize_amount_params.rb index 9f9c1997..9f711dd6 100644 --- a/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +++ b/lib/stripe/params/issuing/authorization_finalize_amount_params.rb @@ -3,9 +3,9 @@ module Stripe module Issuing - class AuthorizationFinalizeAmountParams < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class AuthorizationFinalizeAmountParams < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. attr_accessor :driver_id # Odometer reading. @@ -32,8 +32,8 @@ module Stripe end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. attr_accessor :gross_amount_decimal @@ -42,7 +42,7 @@ module Stripe end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. attr_accessor :gross_amount_decimal @@ -51,7 +51,7 @@ module Stripe end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. attr_accessor :local_amount_decimal # Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax. @@ -97,7 +97,7 @@ module Stripe end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. attr_accessor :industry_product_code # The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places. diff --git a/lib/stripe/params/issuing/authorization_increment_params.rb b/lib/stripe/params/issuing/authorization_increment_params.rb index f539bdd7..d0a5f03a 100644 --- a/lib/stripe/params/issuing/authorization_increment_params.rb +++ b/lib/stripe/params/issuing/authorization_increment_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class AuthorizationIncrementParams < Stripe::RequestParams + class AuthorizationIncrementParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # The amount to increment the authorization by. This amount is in the authorization currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). diff --git a/lib/stripe/params/issuing/authorization_list_params.rb b/lib/stripe/params/issuing/authorization_list_params.rb index e56809d6..859a7577 100644 --- a/lib/stripe/params/issuing/authorization_list_params.rb +++ b/lib/stripe/params/issuing/authorization_list_params.rb @@ -3,8 +3,8 @@ module Stripe module Issuing - class AuthorizationListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class AuthorizationListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/issuing/authorization_respond_params.rb b/lib/stripe/params/issuing/authorization_respond_params.rb index 7184835f..24f07d48 100644 --- a/lib/stripe/params/issuing/authorization_respond_params.rb +++ b/lib/stripe/params/issuing/authorization_respond_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class AuthorizationRespondParams < Stripe::RequestParams + class AuthorizationRespondParams < ::Stripe::RequestParams # Whether to simulate the user confirming that the transaction was legitimate (true) or telling Stripe that it was fraudulent (false). attr_accessor :confirmed # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/issuing/authorization_retrieve_params.rb b/lib/stripe/params/issuing/authorization_retrieve_params.rb index 3dacaf49..4ba0b3cf 100644 --- a/lib/stripe/params/issuing/authorization_retrieve_params.rb +++ b/lib/stripe/params/issuing/authorization_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class AuthorizationRetrieveParams < Stripe::RequestParams + class AuthorizationRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/issuing/authorization_reverse_params.rb b/lib/stripe/params/issuing/authorization_reverse_params.rb index 8bacee35..5e1c7f89 100644 --- a/lib/stripe/params/issuing/authorization_reverse_params.rb +++ b/lib/stripe/params/issuing/authorization_reverse_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class AuthorizationReverseParams < Stripe::RequestParams + class AuthorizationReverseParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # The amount to reverse from the authorization. If not provided, the full amount of the authorization will be reversed. This amount is in the authorization currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). diff --git a/lib/stripe/params/issuing/authorization_update_params.rb b/lib/stripe/params/issuing/authorization_update_params.rb index 7ecddbe4..97b6ea3d 100644 --- a/lib/stripe/params/issuing/authorization_update_params.rb +++ b/lib/stripe/params/issuing/authorization_update_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class AuthorizationUpdateParams < Stripe::RequestParams + class AuthorizationUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. diff --git a/lib/stripe/params/issuing/card_create_params.rb b/lib/stripe/params/issuing/card_create_params.rb index 56f26c9a..5ce99493 100644 --- a/lib/stripe/params/issuing/card_create_params.rb +++ b/lib/stripe/params/issuing/card_create_params.rb @@ -3,8 +3,8 @@ module Stripe module Issuing - class CardCreateParams < Stripe::RequestParams - class Pin < Stripe::RequestParams + class CardCreateParams < ::Stripe::RequestParams + class Pin < ::Stripe::RequestParams # The card's desired new PIN, encrypted under Stripe's public key. attr_accessor :encrypted_number @@ -13,8 +13,8 @@ module Stripe end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -45,7 +45,7 @@ module Stripe end end - class AddressValidation < Stripe::RequestParams + class AddressValidation < ::Stripe::RequestParams # The address validation capabilities to use. attr_accessor :mode @@ -54,7 +54,7 @@ module Stripe end end - class Customs < Stripe::RequestParams + class Customs < ::Stripe::RequestParams # The Economic Operators Registration and Identification (EORI) number to use for Customs. Required for bulk shipments to Europe. attr_accessor :eori_number @@ -100,8 +100,8 @@ module Stripe end end - class SpendingControls < Stripe::RequestParams - class SpendingLimit < Stripe::RequestParams + class SpendingControls < ::Stripe::RequestParams + class SpendingLimit < ::Stripe::RequestParams # Maximum amount allowed to spend per interval. attr_accessor :amount # Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) this limit applies to. Omitting this field will apply the limit to all categories. diff --git a/lib/stripe/params/issuing/card_deliver_card_params.rb b/lib/stripe/params/issuing/card_deliver_card_params.rb index 9f627450..f89de74e 100644 --- a/lib/stripe/params/issuing/card_deliver_card_params.rb +++ b/lib/stripe/params/issuing/card_deliver_card_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class CardDeliverCardParams < Stripe::RequestParams + class CardDeliverCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/issuing/card_fail_card_params.rb b/lib/stripe/params/issuing/card_fail_card_params.rb index 8c2c9a3f..fdeac281 100644 --- a/lib/stripe/params/issuing/card_fail_card_params.rb +++ b/lib/stripe/params/issuing/card_fail_card_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class CardFailCardParams < Stripe::RequestParams + class CardFailCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/issuing/card_list_params.rb b/lib/stripe/params/issuing/card_list_params.rb index e612a46c..7ed536ca 100644 --- a/lib/stripe/params/issuing/card_list_params.rb +++ b/lib/stripe/params/issuing/card_list_params.rb @@ -3,8 +3,8 @@ module Stripe module Issuing - class CardListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class CardListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/issuing/card_retrieve_params.rb b/lib/stripe/params/issuing/card_retrieve_params.rb index 483e56d4..7cf1e3ee 100644 --- a/lib/stripe/params/issuing/card_retrieve_params.rb +++ b/lib/stripe/params/issuing/card_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class CardRetrieveParams < Stripe::RequestParams + class CardRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/issuing/card_return_card_params.rb b/lib/stripe/params/issuing/card_return_card_params.rb index a436aac9..9681aae0 100644 --- a/lib/stripe/params/issuing/card_return_card_params.rb +++ b/lib/stripe/params/issuing/card_return_card_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class CardReturnCardParams < Stripe::RequestParams + class CardReturnCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/issuing/card_ship_card_params.rb b/lib/stripe/params/issuing/card_ship_card_params.rb index 14a52f41..f95ea689 100644 --- a/lib/stripe/params/issuing/card_ship_card_params.rb +++ b/lib/stripe/params/issuing/card_ship_card_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class CardShipCardParams < Stripe::RequestParams + class CardShipCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/issuing/card_submit_card_params.rb b/lib/stripe/params/issuing/card_submit_card_params.rb index 0a4528c5..35602614 100644 --- a/lib/stripe/params/issuing/card_submit_card_params.rb +++ b/lib/stripe/params/issuing/card_submit_card_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class CardSubmitCardParams < Stripe::RequestParams + class CardSubmitCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/issuing/card_update_params.rb b/lib/stripe/params/issuing/card_update_params.rb index 7889b713..678fd19a 100644 --- a/lib/stripe/params/issuing/card_update_params.rb +++ b/lib/stripe/params/issuing/card_update_params.rb @@ -3,8 +3,8 @@ module Stripe module Issuing - class CardUpdateParams < Stripe::RequestParams - class Pin < Stripe::RequestParams + class CardUpdateParams < ::Stripe::RequestParams + class Pin < ::Stripe::RequestParams # The card's desired new PIN, encrypted under Stripe's public key. attr_accessor :encrypted_number @@ -13,8 +13,8 @@ module Stripe end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -45,7 +45,7 @@ module Stripe end end - class AddressValidation < Stripe::RequestParams + class AddressValidation < ::Stripe::RequestParams # The address validation capabilities to use. attr_accessor :mode @@ -54,7 +54,7 @@ module Stripe end end - class Customs < Stripe::RequestParams + class Customs < ::Stripe::RequestParams # The Economic Operators Registration and Identification (EORI) number to use for Customs. Required for bulk shipments to Europe. attr_accessor :eori_number @@ -100,8 +100,8 @@ module Stripe end end - class SpendingControls < Stripe::RequestParams - class SpendingLimit < Stripe::RequestParams + class SpendingControls < ::Stripe::RequestParams + class SpendingLimit < ::Stripe::RequestParams # Maximum amount allowed to spend per interval. attr_accessor :amount # Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) this limit applies to. Omitting this field will apply the limit to all categories. diff --git a/lib/stripe/params/issuing/cardholder_create_params.rb b/lib/stripe/params/issuing/cardholder_create_params.rb index bfdabbfd..b46e448c 100644 --- a/lib/stripe/params/issuing/cardholder_create_params.rb +++ b/lib/stripe/params/issuing/cardholder_create_params.rb @@ -3,9 +3,9 @@ module Stripe module Issuing - class CardholderCreateParams < Stripe::RequestParams - class Billing < Stripe::RequestParams - class Address < Stripe::RequestParams + class CardholderCreateParams < ::Stripe::RequestParams + class Billing < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -43,7 +43,7 @@ module Stripe end end - class Company < Stripe::RequestParams + class Company < ::Stripe::RequestParams # The entity's business ID number. attr_accessor :tax_id @@ -52,9 +52,9 @@ module Stripe end end - class Individual < Stripe::RequestParams - class CardIssuing < Stripe::RequestParams - class UserTermsAcceptance < Stripe::RequestParams + class Individual < ::Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams + class UserTermsAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the cardholder accepted the Authorized User Terms. Required for Celtic Spend Card users. attr_accessor :date # The IP address from which the cardholder accepted the Authorized User Terms. Required for Celtic Spend Card users. @@ -76,7 +76,7 @@ module Stripe end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. attr_accessor :day # The month of birth, between 1 and 12. @@ -91,8 +91,8 @@ module Stripe end end - class Verification < Stripe::RequestParams - class Document < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. attr_accessor :back # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. @@ -136,8 +136,8 @@ module Stripe end end - class SpendingControls < Stripe::RequestParams - class SpendingLimit < Stripe::RequestParams + class SpendingControls < ::Stripe::RequestParams + class SpendingLimit < ::Stripe::RequestParams # Maximum amount allowed to spend per interval. attr_accessor :amount # Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) this limit applies to. Omitting this field will apply the limit to all categories. diff --git a/lib/stripe/params/issuing/cardholder_list_params.rb b/lib/stripe/params/issuing/cardholder_list_params.rb index 4b53512e..cd55245c 100644 --- a/lib/stripe/params/issuing/cardholder_list_params.rb +++ b/lib/stripe/params/issuing/cardholder_list_params.rb @@ -3,8 +3,8 @@ module Stripe module Issuing - class CardholderListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class CardholderListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/issuing/cardholder_retrieve_params.rb b/lib/stripe/params/issuing/cardholder_retrieve_params.rb index 3987e960..e2716473 100644 --- a/lib/stripe/params/issuing/cardholder_retrieve_params.rb +++ b/lib/stripe/params/issuing/cardholder_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class CardholderRetrieveParams < Stripe::RequestParams + class CardholderRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/issuing/cardholder_update_params.rb b/lib/stripe/params/issuing/cardholder_update_params.rb index cdf6da31..3d309587 100644 --- a/lib/stripe/params/issuing/cardholder_update_params.rb +++ b/lib/stripe/params/issuing/cardholder_update_params.rb @@ -3,9 +3,9 @@ module Stripe module Issuing - class CardholderUpdateParams < Stripe::RequestParams - class Billing < Stripe::RequestParams - class Address < Stripe::RequestParams + class CardholderUpdateParams < ::Stripe::RequestParams + class Billing < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -43,7 +43,7 @@ module Stripe end end - class Company < Stripe::RequestParams + class Company < ::Stripe::RequestParams # The entity's business ID number. attr_accessor :tax_id @@ -52,9 +52,9 @@ module Stripe end end - class Individual < Stripe::RequestParams - class CardIssuing < Stripe::RequestParams - class UserTermsAcceptance < Stripe::RequestParams + class Individual < ::Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams + class UserTermsAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the cardholder accepted the Authorized User Terms. Required for Celtic Spend Card users. attr_accessor :date # The IP address from which the cardholder accepted the Authorized User Terms. Required for Celtic Spend Card users. @@ -76,7 +76,7 @@ module Stripe end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. attr_accessor :day # The month of birth, between 1 and 12. @@ -91,8 +91,8 @@ module Stripe end end - class Verification < Stripe::RequestParams - class Document < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. attr_accessor :back # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. @@ -136,8 +136,8 @@ module Stripe end end - class SpendingControls < Stripe::RequestParams - class SpendingLimit < Stripe::RequestParams + class SpendingControls < ::Stripe::RequestParams + class SpendingLimit < ::Stripe::RequestParams # Maximum amount allowed to spend per interval. attr_accessor :amount # Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) this limit applies to. Omitting this field will apply the limit to all categories. diff --git a/lib/stripe/params/issuing/dispute_create_params.rb b/lib/stripe/params/issuing/dispute_create_params.rb index 8ea45ae6..76c1aa0c 100644 --- a/lib/stripe/params/issuing/dispute_create_params.rb +++ b/lib/stripe/params/issuing/dispute_create_params.rb @@ -3,9 +3,9 @@ module Stripe module Issuing - class DisputeCreateParams < Stripe::RequestParams - class Evidence < Stripe::RequestParams - class Canceled < Stripe::RequestParams + class DisputeCreateParams < ::Stripe::RequestParams + class Evidence < ::Stripe::RequestParams + class Canceled < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_accessor :additional_documentation # Date when order was canceled. @@ -52,7 +52,7 @@ module Stripe end end - class Duplicate < Stripe::RequestParams + class Duplicate < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_accessor :additional_documentation # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the card statement showing that the product had already been paid for. @@ -83,7 +83,7 @@ module Stripe end end - class Fraudulent < Stripe::RequestParams + class Fraudulent < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_accessor :additional_documentation # Explanation of why the cardholder is disputing this transaction. @@ -95,7 +95,7 @@ module Stripe end end - class MerchandiseNotAsDescribed < Stripe::RequestParams + class MerchandiseNotAsDescribed < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_accessor :additional_documentation # Explanation of why the cardholder is disputing this transaction. @@ -126,7 +126,7 @@ module Stripe end end - class NoValidAuthorization < Stripe::RequestParams + class NoValidAuthorization < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_accessor :additional_documentation # Explanation of why the cardholder is disputing this transaction. @@ -138,7 +138,7 @@ module Stripe end end - class NotReceived < Stripe::RequestParams + class NotReceived < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_accessor :additional_documentation # Date when the cardholder expected to receive the product. @@ -165,7 +165,7 @@ module Stripe end end - class Other < Stripe::RequestParams + class Other < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_accessor :additional_documentation # Explanation of why the cardholder is disputing this transaction. @@ -188,7 +188,7 @@ module Stripe end end - class ServiceNotAsDescribed < Stripe::RequestParams + class ServiceNotAsDescribed < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_accessor :additional_documentation # Date when order was canceled. @@ -256,7 +256,7 @@ module Stripe end end - class Treasury < Stripe::RequestParams + class Treasury < ::Stripe::RequestParams # The ID of the ReceivedDebit to initiate an Issuings dispute for. attr_accessor :received_debit diff --git a/lib/stripe/params/issuing/dispute_list_params.rb b/lib/stripe/params/issuing/dispute_list_params.rb index df194766..8988d5e5 100644 --- a/lib/stripe/params/issuing/dispute_list_params.rb +++ b/lib/stripe/params/issuing/dispute_list_params.rb @@ -3,8 +3,8 @@ module Stripe module Issuing - class DisputeListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class DisputeListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/issuing/dispute_retrieve_params.rb b/lib/stripe/params/issuing/dispute_retrieve_params.rb index 4949226e..4d49164a 100644 --- a/lib/stripe/params/issuing/dispute_retrieve_params.rb +++ b/lib/stripe/params/issuing/dispute_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class DisputeRetrieveParams < Stripe::RequestParams + class DisputeRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/issuing/dispute_submit_params.rb b/lib/stripe/params/issuing/dispute_submit_params.rb index 36a6d3aa..e912b272 100644 --- a/lib/stripe/params/issuing/dispute_submit_params.rb +++ b/lib/stripe/params/issuing/dispute_submit_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class DisputeSubmitParams < Stripe::RequestParams + class DisputeSubmitParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. diff --git a/lib/stripe/params/issuing/dispute_update_params.rb b/lib/stripe/params/issuing/dispute_update_params.rb index c4d14990..1f3d6b10 100644 --- a/lib/stripe/params/issuing/dispute_update_params.rb +++ b/lib/stripe/params/issuing/dispute_update_params.rb @@ -3,9 +3,9 @@ module Stripe module Issuing - class DisputeUpdateParams < Stripe::RequestParams - class Evidence < Stripe::RequestParams - class Canceled < Stripe::RequestParams + class DisputeUpdateParams < ::Stripe::RequestParams + class Evidence < ::Stripe::RequestParams + class Canceled < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_accessor :additional_documentation # Date when order was canceled. @@ -52,7 +52,7 @@ module Stripe end end - class Duplicate < Stripe::RequestParams + class Duplicate < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_accessor :additional_documentation # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the card statement showing that the product had already been paid for. @@ -83,7 +83,7 @@ module Stripe end end - class Fraudulent < Stripe::RequestParams + class Fraudulent < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_accessor :additional_documentation # Explanation of why the cardholder is disputing this transaction. @@ -95,7 +95,7 @@ module Stripe end end - class MerchandiseNotAsDescribed < Stripe::RequestParams + class MerchandiseNotAsDescribed < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_accessor :additional_documentation # Explanation of why the cardholder is disputing this transaction. @@ -126,7 +126,7 @@ module Stripe end end - class NoValidAuthorization < Stripe::RequestParams + class NoValidAuthorization < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_accessor :additional_documentation # Explanation of why the cardholder is disputing this transaction. @@ -138,7 +138,7 @@ module Stripe end end - class NotReceived < Stripe::RequestParams + class NotReceived < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_accessor :additional_documentation # Date when the cardholder expected to receive the product. @@ -165,7 +165,7 @@ module Stripe end end - class Other < Stripe::RequestParams + class Other < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_accessor :additional_documentation # Explanation of why the cardholder is disputing this transaction. @@ -188,7 +188,7 @@ module Stripe end end - class ServiceNotAsDescribed < Stripe::RequestParams + class ServiceNotAsDescribed < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_accessor :additional_documentation # Date when order was canceled. diff --git a/lib/stripe/params/issuing/personalization_design_activate_params.rb b/lib/stripe/params/issuing/personalization_design_activate_params.rb index 82f353c7..4f78fc46 100644 --- a/lib/stripe/params/issuing/personalization_design_activate_params.rb +++ b/lib/stripe/params/issuing/personalization_design_activate_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class PersonalizationDesignActivateParams < Stripe::RequestParams + class PersonalizationDesignActivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/issuing/personalization_design_create_params.rb b/lib/stripe/params/issuing/personalization_design_create_params.rb index 9f0589c2..4e712bbe 100644 --- a/lib/stripe/params/issuing/personalization_design_create_params.rb +++ b/lib/stripe/params/issuing/personalization_design_create_params.rb @@ -3,8 +3,8 @@ module Stripe module Issuing - class PersonalizationDesignCreateParams < Stripe::RequestParams - class CarrierText < Stripe::RequestParams + class PersonalizationDesignCreateParams < ::Stripe::RequestParams + class CarrierText < ::Stripe::RequestParams # The footer body text of the carrier letter. attr_accessor :footer_body # The footer title text of the carrier letter. @@ -22,7 +22,7 @@ module Stripe end end - class Preferences < Stripe::RequestParams + class Preferences < ::Stripe::RequestParams # Whether we use this personalization design to create cards when one isn't specified. A connected account uses the Connect platform's default design if no personalization design is set as the default design. attr_accessor :is_default diff --git a/lib/stripe/params/issuing/personalization_design_deactivate_params.rb b/lib/stripe/params/issuing/personalization_design_deactivate_params.rb index dc0373d3..f523b5c3 100644 --- a/lib/stripe/params/issuing/personalization_design_deactivate_params.rb +++ b/lib/stripe/params/issuing/personalization_design_deactivate_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class PersonalizationDesignDeactivateParams < Stripe::RequestParams + class PersonalizationDesignDeactivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/issuing/personalization_design_list_params.rb b/lib/stripe/params/issuing/personalization_design_list_params.rb index 1d743d4c..1b11c4ce 100644 --- a/lib/stripe/params/issuing/personalization_design_list_params.rb +++ b/lib/stripe/params/issuing/personalization_design_list_params.rb @@ -3,8 +3,8 @@ module Stripe module Issuing - class PersonalizationDesignListParams < Stripe::RequestParams - class Preferences < Stripe::RequestParams + class PersonalizationDesignListParams < ::Stripe::RequestParams + class Preferences < ::Stripe::RequestParams # Only return the personalization design that's set as the default. A connected account uses the Connect platform's default design if no personalization design is set as the default. attr_accessor :is_default # Only return the personalization design that is set as the Connect platform's default. This parameter is only applicable to connected accounts. diff --git a/lib/stripe/params/issuing/personalization_design_reject_params.rb b/lib/stripe/params/issuing/personalization_design_reject_params.rb index 7fd5be68..3f138bb0 100644 --- a/lib/stripe/params/issuing/personalization_design_reject_params.rb +++ b/lib/stripe/params/issuing/personalization_design_reject_params.rb @@ -3,8 +3,8 @@ module Stripe module Issuing - class PersonalizationDesignRejectParams < Stripe::RequestParams - class RejectionReasons < Stripe::RequestParams + class PersonalizationDesignRejectParams < ::Stripe::RequestParams + class RejectionReasons < ::Stripe::RequestParams # The reason(s) the card logo was rejected. attr_accessor :card_logo # The reason(s) the carrier text was rejected. diff --git a/lib/stripe/params/issuing/personalization_design_retrieve_params.rb b/lib/stripe/params/issuing/personalization_design_retrieve_params.rb index e396c2d4..d6f4c42b 100644 --- a/lib/stripe/params/issuing/personalization_design_retrieve_params.rb +++ b/lib/stripe/params/issuing/personalization_design_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class PersonalizationDesignRetrieveParams < Stripe::RequestParams + class PersonalizationDesignRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/issuing/personalization_design_update_params.rb b/lib/stripe/params/issuing/personalization_design_update_params.rb index 7a587e16..3b6450d1 100644 --- a/lib/stripe/params/issuing/personalization_design_update_params.rb +++ b/lib/stripe/params/issuing/personalization_design_update_params.rb @@ -3,8 +3,8 @@ module Stripe module Issuing - class PersonalizationDesignUpdateParams < Stripe::RequestParams - class CarrierText < Stripe::RequestParams + class PersonalizationDesignUpdateParams < ::Stripe::RequestParams + class CarrierText < ::Stripe::RequestParams # The footer body text of the carrier letter. attr_accessor :footer_body # The footer title text of the carrier letter. @@ -22,7 +22,7 @@ module Stripe end end - class Preferences < Stripe::RequestParams + class Preferences < ::Stripe::RequestParams # Whether we use this personalization design to create cards when one isn't specified. A connected account uses the Connect platform's default design if no personalization design is set as the default design. attr_accessor :is_default diff --git a/lib/stripe/params/issuing/physical_bundle_list_params.rb b/lib/stripe/params/issuing/physical_bundle_list_params.rb index 0d5f3868..01ee8654 100644 --- a/lib/stripe/params/issuing/physical_bundle_list_params.rb +++ b/lib/stripe/params/issuing/physical_bundle_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class PhysicalBundleListParams < Stripe::RequestParams + class PhysicalBundleListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb b/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb index 5ac7dc03..2c4c0c4a 100644 --- a/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb +++ b/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class PhysicalBundleRetrieveParams < Stripe::RequestParams + class PhysicalBundleRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/issuing/token_list_params.rb b/lib/stripe/params/issuing/token_list_params.rb index a4838aa8..b5d8462e 100644 --- a/lib/stripe/params/issuing/token_list_params.rb +++ b/lib/stripe/params/issuing/token_list_params.rb @@ -3,8 +3,8 @@ module Stripe module Issuing - class TokenListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class TokenListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/issuing/token_retrieve_params.rb b/lib/stripe/params/issuing/token_retrieve_params.rb index f9d86302..2154254d 100644 --- a/lib/stripe/params/issuing/token_retrieve_params.rb +++ b/lib/stripe/params/issuing/token_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class TokenRetrieveParams < Stripe::RequestParams + class TokenRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/issuing/token_update_params.rb b/lib/stripe/params/issuing/token_update_params.rb index 5cd3b646..c779787f 100644 --- a/lib/stripe/params/issuing/token_update_params.rb +++ b/lib/stripe/params/issuing/token_update_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class TokenUpdateParams < Stripe::RequestParams + class TokenUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # Specifies which status the token should be updated to. diff --git a/lib/stripe/params/issuing/transaction_create_force_capture_params.rb b/lib/stripe/params/issuing/transaction_create_force_capture_params.rb index 7c303470..0b6e9ae5 100644 --- a/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +++ b/lib/stripe/params/issuing/transaction_create_force_capture_params.rb @@ -3,8 +3,8 @@ module Stripe module Issuing - class TransactionCreateForceCaptureParams < Stripe::RequestParams - class MerchantData < Stripe::RequestParams + class TransactionCreateForceCaptureParams < ::Stripe::RequestParams + class MerchantData < ::Stripe::RequestParams # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. attr_accessor :category # City where the seller is located @@ -47,9 +47,9 @@ module Stripe end end - class PurchaseDetails < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class PurchaseDetails < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. attr_accessor :driver_id # Odometer reading. @@ -76,8 +76,8 @@ module Stripe end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. attr_accessor :gross_amount_decimal @@ -86,7 +86,7 @@ module Stripe end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. attr_accessor :gross_amount_decimal @@ -95,7 +95,7 @@ module Stripe end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. attr_accessor :local_amount_decimal # Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax. @@ -141,8 +141,8 @@ module Stripe end end - class Flight < Stripe::RequestParams - class Segment < Stripe::RequestParams + class Flight < ::Stripe::RequestParams + class Segment < ::Stripe::RequestParams # The three-letter IATA airport code of the flight's destination. attr_accessor :arrival_airport_code # The airline carrier code. @@ -198,7 +198,7 @@ module Stripe end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. attr_accessor :industry_product_code # The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places. @@ -225,7 +225,7 @@ module Stripe end end - class Lodging < Stripe::RequestParams + class Lodging < ::Stripe::RequestParams # The time of checking into the lodging. attr_accessor :check_in_at # The number of nights stayed at the lodging. @@ -237,7 +237,7 @@ module Stripe end end - class Receipt < Stripe::RequestParams + class Receipt < ::Stripe::RequestParams # Attribute for param field description attr_accessor :description # Attribute for param field quantity diff --git a/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb b/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb index 90a31609..ab660317 100644 --- a/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +++ b/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb @@ -3,8 +3,8 @@ module Stripe module Issuing - class TransactionCreateUnlinkedRefundParams < Stripe::RequestParams - class MerchantData < Stripe::RequestParams + class TransactionCreateUnlinkedRefundParams < ::Stripe::RequestParams + class MerchantData < ::Stripe::RequestParams # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. attr_accessor :category # City where the seller is located @@ -47,9 +47,9 @@ module Stripe end end - class PurchaseDetails < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class PurchaseDetails < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. attr_accessor :driver_id # Odometer reading. @@ -76,8 +76,8 @@ module Stripe end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. attr_accessor :gross_amount_decimal @@ -86,7 +86,7 @@ module Stripe end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. attr_accessor :gross_amount_decimal @@ -95,7 +95,7 @@ module Stripe end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. attr_accessor :local_amount_decimal # Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax. @@ -141,8 +141,8 @@ module Stripe end end - class Flight < Stripe::RequestParams - class Segment < Stripe::RequestParams + class Flight < ::Stripe::RequestParams + class Segment < ::Stripe::RequestParams # The three-letter IATA airport code of the flight's destination. attr_accessor :arrival_airport_code # The airline carrier code. @@ -198,7 +198,7 @@ module Stripe end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. attr_accessor :industry_product_code # The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places. @@ -225,7 +225,7 @@ module Stripe end end - class Lodging < Stripe::RequestParams + class Lodging < ::Stripe::RequestParams # The time of checking into the lodging. attr_accessor :check_in_at # The number of nights stayed at the lodging. @@ -237,7 +237,7 @@ module Stripe end end - class Receipt < Stripe::RequestParams + class Receipt < ::Stripe::RequestParams # Attribute for param field description attr_accessor :description # Attribute for param field quantity diff --git a/lib/stripe/params/issuing/transaction_list_params.rb b/lib/stripe/params/issuing/transaction_list_params.rb index 6ed32543..daa9a152 100644 --- a/lib/stripe/params/issuing/transaction_list_params.rb +++ b/lib/stripe/params/issuing/transaction_list_params.rb @@ -3,8 +3,8 @@ module Stripe module Issuing - class TransactionListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class TransactionListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/issuing/transaction_refund_params.rb b/lib/stripe/params/issuing/transaction_refund_params.rb index 6a2d5591..76c32fd1 100644 --- a/lib/stripe/params/issuing/transaction_refund_params.rb +++ b/lib/stripe/params/issuing/transaction_refund_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class TransactionRefundParams < Stripe::RequestParams + class TransactionRefundParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # The total amount to attempt to refund. This amount is in the provided currency, or defaults to the cards currency, and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). diff --git a/lib/stripe/params/issuing/transaction_retrieve_params.rb b/lib/stripe/params/issuing/transaction_retrieve_params.rb index 1adc4083..881211c0 100644 --- a/lib/stripe/params/issuing/transaction_retrieve_params.rb +++ b/lib/stripe/params/issuing/transaction_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class TransactionRetrieveParams < Stripe::RequestParams + class TransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/issuing/transaction_update_params.rb b/lib/stripe/params/issuing/transaction_update_params.rb index cd3b6284..d5a42303 100644 --- a/lib/stripe/params/issuing/transaction_update_params.rb +++ b/lib/stripe/params/issuing/transaction_update_params.rb @@ -3,7 +3,7 @@ module Stripe module Issuing - class TransactionUpdateParams < Stripe::RequestParams + class TransactionUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. diff --git a/lib/stripe/params/mandate_retrieve_params.rb b/lib/stripe/params/mandate_retrieve_params.rb index 6ca59045..9c3a3774 100644 --- a/lib/stripe/params/mandate_retrieve_params.rb +++ b/lib/stripe/params/mandate_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class MandateRetrieveParams < Stripe::RequestParams + class MandateRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/payment_attempt_record_list_params.rb b/lib/stripe/params/payment_attempt_record_list_params.rb new file mode 100644 index 00000000..0806a65c --- /dev/null +++ b/lib/stripe/params/payment_attempt_record_list_params.rb @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + class PaymentAttemptRecordListParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + attr_accessor :expand + # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. + attr_accessor :limit + # The ID of the Payment Record. + attr_accessor :payment_record + # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. + attr_accessor :starting_after + + def initialize(expand: nil, limit: nil, payment_record: nil, starting_after: nil) + @expand = expand + @limit = limit + @payment_record = payment_record + @starting_after = starting_after + end + end +end diff --git a/lib/stripe/params/payment_attempt_record_retrieve_params.rb b/lib/stripe/params/payment_attempt_record_retrieve_params.rb new file mode 100644 index 00000000..891f08e4 --- /dev/null +++ b/lib/stripe/params/payment_attempt_record_retrieve_params.rb @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + class PaymentAttemptRecordRetrieveParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + attr_accessor :expand + + def initialize(expand: nil) + @expand = expand + end + end +end diff --git a/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb b/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb new file mode 100644 index 00000000..350b3ad4 --- /dev/null +++ b/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb @@ -0,0 +1,22 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + class PaymentIntentAmountDetailsLineItemListParams < ::Stripe::RequestParams + # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. + attr_accessor :ending_before + # Specifies which fields in the response should be expanded. + attr_accessor :expand + # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. + attr_accessor :limit + # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. + attr_accessor :starting_after + + def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil) + @ending_before = ending_before + @expand = expand + @limit = limit + @starting_after = starting_after + end + end +end diff --git a/lib/stripe/params/payment_intent_apply_customer_balance_params.rb b/lib/stripe/params/payment_intent_apply_customer_balance_params.rb index 36c4ff70..7ebf819c 100644 --- a/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +++ b/lib/stripe/params/payment_intent_apply_customer_balance_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PaymentIntentApplyCustomerBalanceParams < Stripe::RequestParams + class PaymentIntentApplyCustomerBalanceParams < ::Stripe::RequestParams # Amount that you intend to apply to this PaymentIntent from the customer’s cash balance. If the PaymentIntent was created by an Invoice, the full amount of the PaymentIntent is applied regardless of this parameter. # # A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (for example, 100 cents to charge 1 USD or 100 to charge 100 JPY, a zero-decimal currency). The maximum amount is the amount of the PaymentIntent. diff --git a/lib/stripe/params/payment_intent_cancel_params.rb b/lib/stripe/params/payment_intent_cancel_params.rb index cfa34efd..52c24f1d 100644 --- a/lib/stripe/params/payment_intent_cancel_params.rb +++ b/lib/stripe/params/payment_intent_cancel_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PaymentIntentCancelParams < Stripe::RequestParams + class PaymentIntentCancelParams < ::Stripe::RequestParams # Reason for canceling this PaymentIntent. Possible values are: `duplicate`, `fraudulent`, `requested_by_customer`, or `abandoned` attr_accessor :cancellation_reason # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/payment_intent_capture_params.rb b/lib/stripe/params/payment_intent_capture_params.rb index f5718e30..e0b7fda2 100644 --- a/lib/stripe/params/payment_intent_capture_params.rb +++ b/lib/stripe/params/payment_intent_capture_params.rb @@ -2,8 +2,181 @@ # frozen_string_literal: true module Stripe - class PaymentIntentCaptureParams < Stripe::RequestParams - class TransferData < Stripe::RequestParams + class PaymentIntentCaptureParams < ::Stripe::RequestParams + class AmountDetails < ::Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + attr_accessor :commodity_code + + def initialize(commodity_code: nil) + @commodity_code = commodity_code + end + end + + class CardPresent < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + attr_accessor :commodity_code + + def initialize(commodity_code: nil) + @commodity_code = commodity_code + end + end + + class Klarna < ::Stripe::RequestParams + # URL to an image for the product. Max length, 4096 characters. + attr_accessor :image_url + # URL to the product page. Max length, 4096 characters. + attr_accessor :product_url + # Unique reference for this line item to correlate it with your system’s internal records. The field is displayed in the Klarna Consumer App if passed. + attr_accessor :reference + # Reference for the subscription this line item is for. + attr_accessor :subscription_reference + + def initialize( + image_url: nil, + product_url: nil, + reference: nil, + subscription_reference: nil + ) + @image_url = image_url + @product_url = product_url + @reference = reference + @subscription_reference = subscription_reference + end + end + + class Paypal < ::Stripe::RequestParams + # Type of the line item. + attr_accessor :category + # Description of the line item. + attr_accessor :description + # The Stripe account ID of the connected account that sells the item. + attr_accessor :sold_by + + def initialize(category: nil, description: nil, sold_by: nil) + @category = category + @description = description + @sold_by = sold_by + end + end + # This sub-hash contains line item details that are specific to `card` payment method." + attr_accessor :card + # This sub-hash contains line item details that are specific to `card_present` payment method." + attr_accessor :card_present + # This sub-hash contains line item details that are specific to `klarna` payment method." + attr_accessor :klarna + # This sub-hash contains line item details that are specific to `paypal` payment method." + attr_accessor :paypal + + def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil) + @card = card + @card_present = card_present + @klarna = klarna + @paypal = paypal + end + end + + class Tax < ::Stripe::RequestParams + # The total tax on an item. Non-negative integer. + attr_accessor :total_tax_amount + + def initialize(total_tax_amount: nil) + @total_tax_amount = total_tax_amount + end + end + # The amount an item was discounted for. Positive integer. + attr_accessor :discount_amount + # Payment method-specific information for line items. + attr_accessor :payment_method_options + # Unique identifier of the product. At most 12 characters long. + attr_accessor :product_code + # Name of the product. At most 100 characters long. + attr_accessor :product_name + # Number of items of the product. Positive integer. + attr_accessor :quantity + # Contains information about the tax on the item. + attr_accessor :tax + # Cost of the product. Non-negative integer. + attr_accessor :unit_cost + # A unit of measure for the line item, such as gallons, feet, meters, etc. + attr_accessor :unit_of_measure + + def initialize( + discount_amount: nil, + payment_method_options: nil, + product_code: nil, + product_name: nil, + quantity: nil, + tax: nil, + unit_cost: nil, + unit_of_measure: nil + ) + @discount_amount = discount_amount + @payment_method_options = payment_method_options + @product_code = product_code + @product_name = product_name + @quantity = quantity + @tax = tax + @unit_cost = unit_cost + @unit_of_measure = unit_of_measure + end + end + + class Shipping < ::Stripe::RequestParams + # Portion of the amount that is for shipping. + attr_accessor :amount + # The postal code that represents the shipping source. + attr_accessor :from_postal_code + # The postal code that represents the shipping destination. + attr_accessor :to_postal_code + + def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil) + @amount = amount + @from_postal_code = from_postal_code + @to_postal_code = to_postal_code + end + end + + class Tax < ::Stripe::RequestParams + # Total portion of the amount that is for tax. + attr_accessor :total_tax_amount + + def initialize(total_tax_amount: nil) + @total_tax_amount = total_tax_amount + end + end + # The total discount applied on the transaction. + attr_accessor :discount_amount + # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. + attr_accessor :line_items + # Contains information about the shipping portion of the amount. + attr_accessor :shipping + # Contains information about the tax portion of the amount. + attr_accessor :tax + + def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil) + @discount_amount = discount_amount + @line_items = line_items + @shipping = shipping + @tax = tax + end + end + + class PaymentDetails < ::Stripe::RequestParams + # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + attr_accessor :customer_reference + # A unique value assigned by the business to identify the transaction. + attr_accessor :order_reference + + def initialize(customer_reference: nil, order_reference: nil) + @customer_reference = customer_reference + @order_reference = order_reference + end + end + + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when a charge succeeds. attr_accessor :amount @@ -11,6 +184,8 @@ module Stripe @amount = amount end end + # Provides industry-specific information about the amount. + attr_accessor :amount_details # The amount to capture from the PaymentIntent, which must be less than or equal to the original amount. Defaults to the full `amount_capturable` if it's not provided. attr_accessor :amount_to_capture # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). @@ -21,6 +196,8 @@ module Stripe attr_accessor :final_capture # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. attr_accessor :metadata + # Provides industry-specific information about the charge. + attr_accessor :payment_details # Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). # # Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead. @@ -32,20 +209,24 @@ module Stripe attr_accessor :transfer_data def initialize( + amount_details: nil, amount_to_capture: nil, application_fee_amount: nil, expand: nil, final_capture: nil, metadata: nil, + payment_details: nil, statement_descriptor: nil, statement_descriptor_suffix: nil, transfer_data: nil ) + @amount_details = amount_details @amount_to_capture = amount_to_capture @application_fee_amount = application_fee_amount @expand = expand @final_capture = final_capture @metadata = metadata + @payment_details = payment_details @statement_descriptor = statement_descriptor @statement_descriptor_suffix = statement_descriptor_suffix @transfer_data = transfer_data diff --git a/lib/stripe/params/payment_intent_confirm_params.rb b/lib/stripe/params/payment_intent_confirm_params.rb index c85c22da..3e4439d4 100644 --- a/lib/stripe/params/payment_intent_confirm_params.rb +++ b/lib/stripe/params/payment_intent_confirm_params.rb @@ -2,12 +2,173 @@ # frozen_string_literal: true module Stripe - class PaymentIntentConfirmParams < Stripe::RequestParams - class MandateData < Stripe::RequestParams - class CustomerAcceptance < Stripe::RequestParams - class Offline < Stripe::RequestParams; end + class PaymentIntentConfirmParams < ::Stripe::RequestParams + class AmountDetails < ::Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + attr_accessor :commodity_code - class Online < Stripe::RequestParams + def initialize(commodity_code: nil) + @commodity_code = commodity_code + end + end + + class CardPresent < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + attr_accessor :commodity_code + + def initialize(commodity_code: nil) + @commodity_code = commodity_code + end + end + + class Klarna < ::Stripe::RequestParams + # URL to an image for the product. Max length, 4096 characters. + attr_accessor :image_url + # URL to the product page. Max length, 4096 characters. + attr_accessor :product_url + # Unique reference for this line item to correlate it with your system’s internal records. The field is displayed in the Klarna Consumer App if passed. + attr_accessor :reference + # Reference for the subscription this line item is for. + attr_accessor :subscription_reference + + def initialize( + image_url: nil, + product_url: nil, + reference: nil, + subscription_reference: nil + ) + @image_url = image_url + @product_url = product_url + @reference = reference + @subscription_reference = subscription_reference + end + end + + class Paypal < ::Stripe::RequestParams + # Type of the line item. + attr_accessor :category + # Description of the line item. + attr_accessor :description + # The Stripe account ID of the connected account that sells the item. + attr_accessor :sold_by + + def initialize(category: nil, description: nil, sold_by: nil) + @category = category + @description = description + @sold_by = sold_by + end + end + # This sub-hash contains line item details that are specific to `card` payment method." + attr_accessor :card + # This sub-hash contains line item details that are specific to `card_present` payment method." + attr_accessor :card_present + # This sub-hash contains line item details that are specific to `klarna` payment method." + attr_accessor :klarna + # This sub-hash contains line item details that are specific to `paypal` payment method." + attr_accessor :paypal + + def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil) + @card = card + @card_present = card_present + @klarna = klarna + @paypal = paypal + end + end + + class Tax < ::Stripe::RequestParams + # The total tax on an item. Non-negative integer. + attr_accessor :total_tax_amount + + def initialize(total_tax_amount: nil) + @total_tax_amount = total_tax_amount + end + end + # The amount an item was discounted for. Positive integer. + attr_accessor :discount_amount + # Payment method-specific information for line items. + attr_accessor :payment_method_options + # Unique identifier of the product. At most 12 characters long. + attr_accessor :product_code + # Name of the product. At most 100 characters long. + attr_accessor :product_name + # Number of items of the product. Positive integer. + attr_accessor :quantity + # Contains information about the tax on the item. + attr_accessor :tax + # Cost of the product. Non-negative integer. + attr_accessor :unit_cost + # A unit of measure for the line item, such as gallons, feet, meters, etc. + attr_accessor :unit_of_measure + + def initialize( + discount_amount: nil, + payment_method_options: nil, + product_code: nil, + product_name: nil, + quantity: nil, + tax: nil, + unit_cost: nil, + unit_of_measure: nil + ) + @discount_amount = discount_amount + @payment_method_options = payment_method_options + @product_code = product_code + @product_name = product_name + @quantity = quantity + @tax = tax + @unit_cost = unit_cost + @unit_of_measure = unit_of_measure + end + end + + class Shipping < ::Stripe::RequestParams + # Portion of the amount that is for shipping. + attr_accessor :amount + # The postal code that represents the shipping source. + attr_accessor :from_postal_code + # The postal code that represents the shipping destination. + attr_accessor :to_postal_code + + def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil) + @amount = amount + @from_postal_code = from_postal_code + @to_postal_code = to_postal_code + end + end + + class Tax < ::Stripe::RequestParams + # Total portion of the amount that is for tax. + attr_accessor :total_tax_amount + + def initialize(total_tax_amount: nil) + @total_tax_amount = total_tax_amount + end + end + # The total discount applied on the transaction. + attr_accessor :discount_amount + # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. + attr_accessor :line_items + # Contains information about the shipping portion of the amount. + attr_accessor :shipping + # Contains information about the tax portion of the amount. + attr_accessor :tax + + def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil) + @discount_amount = discount_amount + @line_items = line_items + @shipping = shipping + @tax = tax + end + end + + class MandateData < ::Stripe::RequestParams + class CustomerAcceptance < ::Stripe::RequestParams + class Offline < ::Stripe::RequestParams; end + + class Online < ::Stripe::RequestParams # The IP address from which the Mandate was accepted by the customer. attr_accessor :ip_address # The user agent of the browser from which the Mandate was accepted by the customer. @@ -42,8 +203,20 @@ module Stripe end end - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class PaymentDetails < ::Stripe::RequestParams + # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + attr_accessor :customer_reference + # A unique value assigned by the business to identify the transaction. + attr_accessor :order_reference + + def initialize(customer_reference: nil, order_reference: nil) + @customer_reference = customer_reference + @order_reference = order_reference + end + end + + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. attr_accessor :account_number # Institution number of the customer's bank. @@ -58,13 +231,13 @@ module Stripe end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. attr_accessor :account_number # Bank-State-Branch number of the bank account. @@ -76,7 +249,7 @@ module Stripe end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. attr_accessor :account_number # Sort code of the bank account. (e.g., `10-20-30`) @@ -88,11 +261,11 @@ module Stripe end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -142,9 +315,9 @@ module Stripe end end - class Blik < Stripe::RequestParams; end + class Blik < ::Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) attr_accessor :tax_id @@ -153,11 +326,11 @@ module Stripe end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Eps < ::Stripe::RequestParams # The customer's bank. attr_accessor :bank @@ -166,7 +339,7 @@ module Stripe end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction attr_accessor :account_holder_type # The customer's bank. @@ -178,10 +351,10 @@ module Stripe end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. attr_accessor :bank @@ -190,11 +363,11 @@ module Stripe end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. attr_accessor :day # The month of birth, between 1 and 12. @@ -216,14 +389,14 @@ module Stripe end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. attr_accessor :funding @@ -232,7 +405,7 @@ module Stripe end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. attr_accessor :account_holder_name # The account number for the bank account. @@ -263,9 +436,9 @@ module Stripe end end - class Oxxo < Stripe::RequestParams; end + class Oxxo < ::Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class P24 < ::Stripe::RequestParams # The customer's bank. attr_accessor :bank @@ -274,14 +447,14 @@ module Stripe end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. attr_accessor :session @@ -290,11 +463,11 @@ module Stripe end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. attr_accessor :iban @@ -303,7 +476,7 @@ module Stripe end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. attr_accessor :country @@ -312,10 +485,10 @@ module Stripe end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. attr_accessor :account_holder_type # Account number of the bank account. @@ -342,8 +515,8 @@ module Stripe end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. attr_accessor :acss_debit # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. @@ -566,9 +739,9 @@ module Stripe end end - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # A URL for custom mandate text to render during confirmation step. # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. @@ -622,7 +795,7 @@ module Stripe end end - class Affirm < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -649,7 +822,7 @@ module Stripe end end - class AfterpayClearpay < Stripe::RequestParams + class AfterpayClearpay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -677,7 +850,7 @@ module Stripe end end - class Alipay < Stripe::RequestParams + class Alipay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -694,7 +867,7 @@ module Stripe end end - class Alma < Stripe::RequestParams + class Alma < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -707,7 +880,7 @@ module Stripe end end - class AmazonPay < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -729,7 +902,7 @@ module Stripe end end - class AuBecsDebit < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -749,8 +922,8 @@ module Stripe end end - class BacsDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. attr_accessor :reference_prefix @@ -780,7 +953,7 @@ module Stripe end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Preferred language of the Bancontact authorization page that the customer is redirected to. attr_accessor :preferred_language # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -800,7 +973,7 @@ module Stripe end end - class Billie < Stripe::RequestParams + class Billie < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -813,7 +986,7 @@ module Stripe end end - class Blik < Stripe::RequestParams + class Blik < ::Stripe::RequestParams # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. attr_accessor :code # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -833,7 +1006,7 @@ module Stripe end end - class Boleto < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. attr_accessor :expires_after_days # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -853,9 +1026,9 @@ module Stripe end end - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams - class Plan < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams + class Plan < ::Stripe::RequestParams # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. attr_accessor :count # For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card. @@ -884,7 +1057,7 @@ module Stripe end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. attr_accessor :amount # One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. @@ -927,9 +1100,9 @@ module Stripe end end - class ThreeDSecure < Stripe::RequestParams - class NetworkOptions < Stripe::RequestParams - class CartesBancaires < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams + class NetworkOptions < ::Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams # The cryptogram calculation algorithm used by the card Issuer's ACS # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. # messageExtension: CB-AVALGO @@ -1088,8 +1261,8 @@ module Stripe end end - class CardPresent < Stripe::RequestParams - class Routing < Stripe::RequestParams + class CardPresent < ::Stripe::RequestParams + class Routing < ::Stripe::RequestParams # Routing requested priority attr_accessor :requested_priority @@ -1115,7 +1288,7 @@ module Stripe end end - class Cashapp < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1139,7 +1312,7 @@ module Stripe end end - class Crypto < Stripe::RequestParams + class Crypto < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1156,9 +1329,9 @@ module Stripe end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. attr_accessor :country @@ -1203,7 +1376,7 @@ module Stripe end end - class Eps < Stripe::RequestParams + class Eps < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1220,7 +1393,7 @@ module Stripe end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1237,7 +1410,7 @@ module Stripe end end - class Giropay < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1254,7 +1427,7 @@ module Stripe end end - class Grabpay < Stripe::RequestParams + class Grabpay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1271,7 +1444,7 @@ module Stripe end end - class Ideal < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1288,9 +1461,9 @@ module Stripe end end - class InteracPresent < Stripe::RequestParams; end + class InteracPresent < ::Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams + class KakaoPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1312,8 +1485,8 @@ module Stripe end end - class Klarna < Stripe::RequestParams - class OnDemand < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class OnDemand < ::Stripe::RequestParams # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. attr_accessor :average_amount # The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc. @@ -1340,8 +1513,8 @@ module Stripe end end - class Subscription < Stripe::RequestParams - class NextBilling < Stripe::RequestParams + class Subscription < ::Stripe::RequestParams + class NextBilling < ::Stripe::RequestParams # The amount of the next charge for the subscription. attr_accessor :amount # The date of the next charge for the subscription in YYYY-MM-DD format. @@ -1415,7 +1588,7 @@ module Stripe end end - class Konbini < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams # An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number. attr_accessor :confirmation_number # The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days. @@ -1450,7 +1623,7 @@ module Stripe end end - class KrCard < Stripe::RequestParams + class KrCard < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1472,7 +1645,7 @@ module Stripe end end - class Link < Stripe::RequestParams + class Link < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1499,7 +1672,7 @@ module Stripe end end - class MbWay < Stripe::RequestParams + class MbWay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1516,7 +1689,7 @@ module Stripe end end - class Mobilepay < Stripe::RequestParams + class Mobilepay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1540,7 +1713,7 @@ module Stripe end end - class Multibanco < Stripe::RequestParams + class Multibanco < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1557,7 +1730,7 @@ module Stripe end end - class NaverPay < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1579,7 +1752,7 @@ module Stripe end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1599,7 +1772,7 @@ module Stripe end end - class Oxxo < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams # The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. attr_accessor :expires_after_days # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1619,7 +1792,7 @@ module Stripe end end - class P24 < Stripe::RequestParams + class P24 < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1639,9 +1812,9 @@ module Stripe end end - class PayByBank < Stripe::RequestParams; end + class PayByBank < ::Stripe::RequestParams; end - class Payco < Stripe::RequestParams + class Payco < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1654,7 +1827,7 @@ module Stripe end end - class Paynow < Stripe::RequestParams + class Paynow < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1671,7 +1844,7 @@ module Stripe end end - class Paypal < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method # [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to. @@ -1706,7 +1879,7 @@ module Stripe end end - class Pix < Stripe::RequestParams + class Pix < ::Stripe::RequestParams # Determines if the amount includes the IOF tax. Defaults to `never`. attr_accessor :amount_includes_iof # The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds. @@ -1737,7 +1910,7 @@ module Stripe end end - class Promptpay < Stripe::RequestParams + class Promptpay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1754,7 +1927,7 @@ module Stripe end end - class RevolutPay < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1776,7 +1949,7 @@ module Stripe end end - class SamsungPay < Stripe::RequestParams + class SamsungPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1789,7 +1962,7 @@ module Stripe end end - class Satispay < Stripe::RequestParams + class Satispay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1802,8 +1975,8 @@ module Stripe end end - class SepaDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. attr_accessor :reference_prefix @@ -1833,7 +2006,7 @@ module Stripe end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Language shown to the payer on redirect. attr_accessor :preferred_language # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1853,7 +2026,7 @@ module Stripe end end - class Swish < Stripe::RequestParams + class Swish < ::Stripe::RequestParams # A reference for this payment to be displayed in the Swish app. attr_accessor :reference # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1873,7 +2046,7 @@ module Stripe end end - class Twint < Stripe::RequestParams + class Twint < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1890,9 +2063,9 @@ module Stripe end end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. attr_accessor :account_subcategories @@ -1917,7 +2090,7 @@ module Stripe end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # The method used to collect offline mandate customer acceptance. attr_accessor :collection_method @@ -1926,7 +2099,7 @@ module Stripe end end - class Networks < Stripe::RequestParams + class Networks < ::Stripe::RequestParams # Triggers validations to run across the selected networks attr_accessor :requested @@ -1976,7 +2149,7 @@ module Stripe end end - class WechatPay < Stripe::RequestParams + class WechatPay < ::Stripe::RequestParams # The app ID registered with WeChat Pay. Only required when client is ios or android. attr_accessor :app_id # The client type that the end customer will pay from @@ -1999,7 +2172,7 @@ module Stripe end end - class Zip < Stripe::RequestParams + class Zip < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2225,7 +2398,7 @@ module Stripe end end - class RadarOptions < Stripe::RequestParams + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. attr_accessor :session @@ -2234,8 +2407,8 @@ module Stripe end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -2284,6 +2457,8 @@ module Stripe @tracking_number = tracking_number end end + # Provides industry-specific information about the amount. + attr_accessor :amount_details # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method # ID of the ConfirmationToken used to confirm this PaymentIntent. @@ -2302,6 +2477,8 @@ module Stripe attr_accessor :mandate_data # Set to `true` to indicate that the customer isn't in your checkout flow during this payment attempt and can't authenticate. Use this parameter in scenarios where you collect card details and [charge them later](https://stripe.com/docs/payments/cards/charging-saved-cards). attr_accessor :off_session + # Provides industry-specific information about the charge. + attr_accessor :payment_details # ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent. # If the payment method is attached to a Customer, it must match the [customer](https://stripe.com/docs/api#create_payment_intent-customer) that is set on this PaymentIntent. attr_accessor :payment_method @@ -2337,6 +2514,7 @@ module Stripe attr_accessor :use_stripe_sdk def initialize( + amount_details: nil, capture_method: nil, confirmation_token: nil, error_on_requires_action: nil, @@ -2345,6 +2523,7 @@ module Stripe mandate: nil, mandate_data: nil, off_session: nil, + payment_details: nil, payment_method: nil, payment_method_data: nil, payment_method_options: nil, @@ -2356,6 +2535,7 @@ module Stripe shipping: nil, use_stripe_sdk: nil ) + @amount_details = amount_details @capture_method = capture_method @confirmation_token = confirmation_token @error_on_requires_action = error_on_requires_action @@ -2364,6 +2544,7 @@ module Stripe @mandate = mandate @mandate_data = mandate_data @off_session = off_session + @payment_details = payment_details @payment_method = payment_method @payment_method_data = payment_method_data @payment_method_options = payment_method_options diff --git a/lib/stripe/params/payment_intent_create_params.rb b/lib/stripe/params/payment_intent_create_params.rb index bf2b5504..bb8756ba 100644 --- a/lib/stripe/params/payment_intent_create_params.rb +++ b/lib/stripe/params/payment_intent_create_params.rb @@ -2,8 +2,169 @@ # frozen_string_literal: true module Stripe - class PaymentIntentCreateParams < Stripe::RequestParams - class AutomaticPaymentMethods < Stripe::RequestParams + class PaymentIntentCreateParams < ::Stripe::RequestParams + class AmountDetails < ::Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + attr_accessor :commodity_code + + def initialize(commodity_code: nil) + @commodity_code = commodity_code + end + end + + class CardPresent < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + attr_accessor :commodity_code + + def initialize(commodity_code: nil) + @commodity_code = commodity_code + end + end + + class Klarna < ::Stripe::RequestParams + # URL to an image for the product. Max length, 4096 characters. + attr_accessor :image_url + # URL to the product page. Max length, 4096 characters. + attr_accessor :product_url + # Unique reference for this line item to correlate it with your system’s internal records. The field is displayed in the Klarna Consumer App if passed. + attr_accessor :reference + # Reference for the subscription this line item is for. + attr_accessor :subscription_reference + + def initialize( + image_url: nil, + product_url: nil, + reference: nil, + subscription_reference: nil + ) + @image_url = image_url + @product_url = product_url + @reference = reference + @subscription_reference = subscription_reference + end + end + + class Paypal < ::Stripe::RequestParams + # Type of the line item. + attr_accessor :category + # Description of the line item. + attr_accessor :description + # The Stripe account ID of the connected account that sells the item. + attr_accessor :sold_by + + def initialize(category: nil, description: nil, sold_by: nil) + @category = category + @description = description + @sold_by = sold_by + end + end + # This sub-hash contains line item details that are specific to `card` payment method." + attr_accessor :card + # This sub-hash contains line item details that are specific to `card_present` payment method." + attr_accessor :card_present + # This sub-hash contains line item details that are specific to `klarna` payment method." + attr_accessor :klarna + # This sub-hash contains line item details that are specific to `paypal` payment method." + attr_accessor :paypal + + def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil) + @card = card + @card_present = card_present + @klarna = klarna + @paypal = paypal + end + end + + class Tax < ::Stripe::RequestParams + # The total tax on an item. Non-negative integer. + attr_accessor :total_tax_amount + + def initialize(total_tax_amount: nil) + @total_tax_amount = total_tax_amount + end + end + # The amount an item was discounted for. Positive integer. + attr_accessor :discount_amount + # Payment method-specific information for line items. + attr_accessor :payment_method_options + # Unique identifier of the product. At most 12 characters long. + attr_accessor :product_code + # Name of the product. At most 100 characters long. + attr_accessor :product_name + # Number of items of the product. Positive integer. + attr_accessor :quantity + # Contains information about the tax on the item. + attr_accessor :tax + # Cost of the product. Non-negative integer. + attr_accessor :unit_cost + # A unit of measure for the line item, such as gallons, feet, meters, etc. + attr_accessor :unit_of_measure + + def initialize( + discount_amount: nil, + payment_method_options: nil, + product_code: nil, + product_name: nil, + quantity: nil, + tax: nil, + unit_cost: nil, + unit_of_measure: nil + ) + @discount_amount = discount_amount + @payment_method_options = payment_method_options + @product_code = product_code + @product_name = product_name + @quantity = quantity + @tax = tax + @unit_cost = unit_cost + @unit_of_measure = unit_of_measure + end + end + + class Shipping < ::Stripe::RequestParams + # Portion of the amount that is for shipping. + attr_accessor :amount + # The postal code that represents the shipping source. + attr_accessor :from_postal_code + # The postal code that represents the shipping destination. + attr_accessor :to_postal_code + + def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil) + @amount = amount + @from_postal_code = from_postal_code + @to_postal_code = to_postal_code + end + end + + class Tax < ::Stripe::RequestParams + # Total portion of the amount that is for tax. + attr_accessor :total_tax_amount + + def initialize(total_tax_amount: nil) + @total_tax_amount = total_tax_amount + end + end + # The total discount applied on the transaction. + attr_accessor :discount_amount + # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. + attr_accessor :line_items + # Contains information about the shipping portion of the amount. + attr_accessor :shipping + # Contains information about the tax portion of the amount. + attr_accessor :tax + + def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil) + @discount_amount = discount_amount + @line_items = line_items + @shipping = shipping + @tax = tax + end + end + + class AutomaticPaymentMethods < ::Stripe::RequestParams # Controls whether this PaymentIntent will accept redirect-based payment methods. # # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment. @@ -17,11 +178,11 @@ module Stripe end end - class MandateData < Stripe::RequestParams - class CustomerAcceptance < Stripe::RequestParams - class Offline < Stripe::RequestParams; end + class MandateData < ::Stripe::RequestParams + class CustomerAcceptance < ::Stripe::RequestParams + class Offline < ::Stripe::RequestParams; end - class Online < Stripe::RequestParams + class Online < ::Stripe::RequestParams # The IP address from which the Mandate was accepted by the customer. attr_accessor :ip_address # The user agent of the browser from which the Mandate was accepted by the customer. @@ -56,8 +217,20 @@ module Stripe end end - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class PaymentDetails < ::Stripe::RequestParams + # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + attr_accessor :customer_reference + # A unique value assigned by the business to identify the transaction. + attr_accessor :order_reference + + def initialize(customer_reference: nil, order_reference: nil) + @customer_reference = customer_reference + @order_reference = order_reference + end + end + + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. attr_accessor :account_number # Institution number of the customer's bank. @@ -72,13 +245,13 @@ module Stripe end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. attr_accessor :account_number # Bank-State-Branch number of the bank account. @@ -90,7 +263,7 @@ module Stripe end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. attr_accessor :account_number # Sort code of the bank account. (e.g., `10-20-30`) @@ -102,11 +275,11 @@ module Stripe end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -156,9 +329,9 @@ module Stripe end end - class Blik < Stripe::RequestParams; end + class Blik < ::Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) attr_accessor :tax_id @@ -167,11 +340,11 @@ module Stripe end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Eps < ::Stripe::RequestParams # The customer's bank. attr_accessor :bank @@ -180,7 +353,7 @@ module Stripe end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction attr_accessor :account_holder_type # The customer's bank. @@ -192,10 +365,10 @@ module Stripe end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. attr_accessor :bank @@ -204,11 +377,11 @@ module Stripe end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. attr_accessor :day # The month of birth, between 1 and 12. @@ -230,14 +403,14 @@ module Stripe end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. attr_accessor :funding @@ -246,7 +419,7 @@ module Stripe end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. attr_accessor :account_holder_name # The account number for the bank account. @@ -277,9 +450,9 @@ module Stripe end end - class Oxxo < Stripe::RequestParams; end + class Oxxo < ::Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class P24 < ::Stripe::RequestParams # The customer's bank. attr_accessor :bank @@ -288,14 +461,14 @@ module Stripe end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. attr_accessor :session @@ -304,11 +477,11 @@ module Stripe end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. attr_accessor :iban @@ -317,7 +490,7 @@ module Stripe end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. attr_accessor :country @@ -326,10 +499,10 @@ module Stripe end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. attr_accessor :account_holder_type # Account number of the bank account. @@ -356,8 +529,8 @@ module Stripe end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. attr_accessor :acss_debit # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. @@ -580,9 +753,9 @@ module Stripe end end - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # A URL for custom mandate text to render during confirmation step. # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. @@ -636,7 +809,7 @@ module Stripe end end - class Affirm < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -663,7 +836,7 @@ module Stripe end end - class AfterpayClearpay < Stripe::RequestParams + class AfterpayClearpay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -691,7 +864,7 @@ module Stripe end end - class Alipay < Stripe::RequestParams + class Alipay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -708,7 +881,7 @@ module Stripe end end - class Alma < Stripe::RequestParams + class Alma < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -721,7 +894,7 @@ module Stripe end end - class AmazonPay < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -743,7 +916,7 @@ module Stripe end end - class AuBecsDebit < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -763,8 +936,8 @@ module Stripe end end - class BacsDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. attr_accessor :reference_prefix @@ -794,7 +967,7 @@ module Stripe end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Preferred language of the Bancontact authorization page that the customer is redirected to. attr_accessor :preferred_language # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -814,7 +987,7 @@ module Stripe end end - class Billie < Stripe::RequestParams + class Billie < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -827,7 +1000,7 @@ module Stripe end end - class Blik < Stripe::RequestParams + class Blik < ::Stripe::RequestParams # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. attr_accessor :code # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -847,7 +1020,7 @@ module Stripe end end - class Boleto < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. attr_accessor :expires_after_days # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -867,9 +1040,9 @@ module Stripe end end - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams - class Plan < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams + class Plan < ::Stripe::RequestParams # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. attr_accessor :count # For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card. @@ -898,7 +1071,7 @@ module Stripe end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. attr_accessor :amount # One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. @@ -941,9 +1114,9 @@ module Stripe end end - class ThreeDSecure < Stripe::RequestParams - class NetworkOptions < Stripe::RequestParams - class CartesBancaires < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams + class NetworkOptions < ::Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams # The cryptogram calculation algorithm used by the card Issuer's ACS # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. # messageExtension: CB-AVALGO @@ -1102,8 +1275,8 @@ module Stripe end end - class CardPresent < Stripe::RequestParams - class Routing < Stripe::RequestParams + class CardPresent < ::Stripe::RequestParams + class Routing < ::Stripe::RequestParams # Routing requested priority attr_accessor :requested_priority @@ -1129,7 +1302,7 @@ module Stripe end end - class Cashapp < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1153,7 +1326,7 @@ module Stripe end end - class Crypto < Stripe::RequestParams + class Crypto < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1170,9 +1343,9 @@ module Stripe end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. attr_accessor :country @@ -1217,7 +1390,7 @@ module Stripe end end - class Eps < Stripe::RequestParams + class Eps < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1234,7 +1407,7 @@ module Stripe end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1251,7 +1424,7 @@ module Stripe end end - class Giropay < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1268,7 +1441,7 @@ module Stripe end end - class Grabpay < Stripe::RequestParams + class Grabpay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1285,7 +1458,7 @@ module Stripe end end - class Ideal < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1302,9 +1475,9 @@ module Stripe end end - class InteracPresent < Stripe::RequestParams; end + class InteracPresent < ::Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams + class KakaoPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1326,8 +1499,8 @@ module Stripe end end - class Klarna < Stripe::RequestParams - class OnDemand < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class OnDemand < ::Stripe::RequestParams # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. attr_accessor :average_amount # The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc. @@ -1354,8 +1527,8 @@ module Stripe end end - class Subscription < Stripe::RequestParams - class NextBilling < Stripe::RequestParams + class Subscription < ::Stripe::RequestParams + class NextBilling < ::Stripe::RequestParams # The amount of the next charge for the subscription. attr_accessor :amount # The date of the next charge for the subscription in YYYY-MM-DD format. @@ -1429,7 +1602,7 @@ module Stripe end end - class Konbini < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams # An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number. attr_accessor :confirmation_number # The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days. @@ -1464,7 +1637,7 @@ module Stripe end end - class KrCard < Stripe::RequestParams + class KrCard < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1486,7 +1659,7 @@ module Stripe end end - class Link < Stripe::RequestParams + class Link < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1513,7 +1686,7 @@ module Stripe end end - class MbWay < Stripe::RequestParams + class MbWay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1530,7 +1703,7 @@ module Stripe end end - class Mobilepay < Stripe::RequestParams + class Mobilepay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1554,7 +1727,7 @@ module Stripe end end - class Multibanco < Stripe::RequestParams + class Multibanco < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1571,7 +1744,7 @@ module Stripe end end - class NaverPay < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1593,7 +1766,7 @@ module Stripe end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1613,7 +1786,7 @@ module Stripe end end - class Oxxo < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams # The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. attr_accessor :expires_after_days # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1633,7 +1806,7 @@ module Stripe end end - class P24 < Stripe::RequestParams + class P24 < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1653,9 +1826,9 @@ module Stripe end end - class PayByBank < Stripe::RequestParams; end + class PayByBank < ::Stripe::RequestParams; end - class Payco < Stripe::RequestParams + class Payco < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1668,7 +1841,7 @@ module Stripe end end - class Paynow < Stripe::RequestParams + class Paynow < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1685,7 +1858,7 @@ module Stripe end end - class Paypal < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method # [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to. @@ -1720,7 +1893,7 @@ module Stripe end end - class Pix < Stripe::RequestParams + class Pix < ::Stripe::RequestParams # Determines if the amount includes the IOF tax. Defaults to `never`. attr_accessor :amount_includes_iof # The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds. @@ -1751,7 +1924,7 @@ module Stripe end end - class Promptpay < Stripe::RequestParams + class Promptpay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1768,7 +1941,7 @@ module Stripe end end - class RevolutPay < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1790,7 +1963,7 @@ module Stripe end end - class SamsungPay < Stripe::RequestParams + class SamsungPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1803,7 +1976,7 @@ module Stripe end end - class Satispay < Stripe::RequestParams + class Satispay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1816,8 +1989,8 @@ module Stripe end end - class SepaDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. attr_accessor :reference_prefix @@ -1847,7 +2020,7 @@ module Stripe end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Language shown to the payer on redirect. attr_accessor :preferred_language # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1867,7 +2040,7 @@ module Stripe end end - class Swish < Stripe::RequestParams + class Swish < ::Stripe::RequestParams # A reference for this payment to be displayed in the Swish app. attr_accessor :reference # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1887,7 +2060,7 @@ module Stripe end end - class Twint < Stripe::RequestParams + class Twint < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1904,9 +2077,9 @@ module Stripe end end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. attr_accessor :account_subcategories @@ -1931,7 +2104,7 @@ module Stripe end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # The method used to collect offline mandate customer acceptance. attr_accessor :collection_method @@ -1940,7 +2113,7 @@ module Stripe end end - class Networks < Stripe::RequestParams + class Networks < ::Stripe::RequestParams # Triggers validations to run across the selected networks attr_accessor :requested @@ -1990,7 +2163,7 @@ module Stripe end end - class WechatPay < Stripe::RequestParams + class WechatPay < ::Stripe::RequestParams # The app ID registered with WeChat Pay. Only required when client is ios or android. attr_accessor :app_id # The client type that the end customer will pay from @@ -2013,7 +2186,7 @@ module Stripe end end - class Zip < Stripe::RequestParams + class Zip < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2239,7 +2412,7 @@ module Stripe end end - class RadarOptions < Stripe::RequestParams + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. attr_accessor :session @@ -2248,8 +2421,8 @@ module Stripe end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -2299,7 +2472,7 @@ module Stripe end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when a charge succeeds. # The amount is capped at the total transaction amount and if no amount is set, # the full amount is transferred. @@ -2321,6 +2494,8 @@ module Stripe end # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). attr_accessor :amount + # Provides industry-specific information about the amount. + attr_accessor :amount_details # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). attr_accessor :application_fee_amount # When you enable this parameter, this PaymentIntent accepts payment methods that you enable in the Dashboard and that are compatible with this PaymentIntent's other parameters. @@ -2361,6 +2536,8 @@ module Stripe attr_accessor :off_session # The Stripe account ID that these funds are intended for. Learn more about the [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). attr_accessor :on_behalf_of + # Provides industry-specific information about the charge. + attr_accessor :payment_details # ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods#compatibility) object) to attach to this PaymentIntent. # # If you don't provide the `payment_method` parameter or the `source` parameter with `confirm=true`, `source` automatically populates with `customer.default_source` to improve migration for users of the Charges API. We recommend that you explicitly provide the `payment_method` moving forward. @@ -2409,6 +2586,7 @@ module Stripe def initialize( amount: nil, + amount_details: nil, application_fee_amount: nil, automatic_payment_methods: nil, capture_method: nil, @@ -2426,6 +2604,7 @@ module Stripe metadata: nil, off_session: nil, on_behalf_of: nil, + payment_details: nil, payment_method: nil, payment_method_configuration: nil, payment_method_data: nil, @@ -2443,6 +2622,7 @@ module Stripe use_stripe_sdk: nil ) @amount = amount + @amount_details = amount_details @application_fee_amount = application_fee_amount @automatic_payment_methods = automatic_payment_methods @capture_method = capture_method @@ -2460,6 +2640,7 @@ module Stripe @metadata = metadata @off_session = off_session @on_behalf_of = on_behalf_of + @payment_details = payment_details @payment_method = payment_method @payment_method_configuration = payment_method_configuration @payment_method_data = payment_method_data diff --git a/lib/stripe/params/payment_intent_increment_authorization_params.rb b/lib/stripe/params/payment_intent_increment_authorization_params.rb index 3633d96a..e9e8c711 100644 --- a/lib/stripe/params/payment_intent_increment_authorization_params.rb +++ b/lib/stripe/params/payment_intent_increment_authorization_params.rb @@ -2,8 +2,181 @@ # frozen_string_literal: true module Stripe - class PaymentIntentIncrementAuthorizationParams < Stripe::RequestParams - class TransferData < Stripe::RequestParams + class PaymentIntentIncrementAuthorizationParams < ::Stripe::RequestParams + class AmountDetails < ::Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + attr_accessor :commodity_code + + def initialize(commodity_code: nil) + @commodity_code = commodity_code + end + end + + class CardPresent < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + attr_accessor :commodity_code + + def initialize(commodity_code: nil) + @commodity_code = commodity_code + end + end + + class Klarna < ::Stripe::RequestParams + # URL to an image for the product. Max length, 4096 characters. + attr_accessor :image_url + # URL to the product page. Max length, 4096 characters. + attr_accessor :product_url + # Unique reference for this line item to correlate it with your system’s internal records. The field is displayed in the Klarna Consumer App if passed. + attr_accessor :reference + # Reference for the subscription this line item is for. + attr_accessor :subscription_reference + + def initialize( + image_url: nil, + product_url: nil, + reference: nil, + subscription_reference: nil + ) + @image_url = image_url + @product_url = product_url + @reference = reference + @subscription_reference = subscription_reference + end + end + + class Paypal < ::Stripe::RequestParams + # Type of the line item. + attr_accessor :category + # Description of the line item. + attr_accessor :description + # The Stripe account ID of the connected account that sells the item. + attr_accessor :sold_by + + def initialize(category: nil, description: nil, sold_by: nil) + @category = category + @description = description + @sold_by = sold_by + end + end + # This sub-hash contains line item details that are specific to `card` payment method." + attr_accessor :card + # This sub-hash contains line item details that are specific to `card_present` payment method." + attr_accessor :card_present + # This sub-hash contains line item details that are specific to `klarna` payment method." + attr_accessor :klarna + # This sub-hash contains line item details that are specific to `paypal` payment method." + attr_accessor :paypal + + def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil) + @card = card + @card_present = card_present + @klarna = klarna + @paypal = paypal + end + end + + class Tax < ::Stripe::RequestParams + # The total tax on an item. Non-negative integer. + attr_accessor :total_tax_amount + + def initialize(total_tax_amount: nil) + @total_tax_amount = total_tax_amount + end + end + # The amount an item was discounted for. Positive integer. + attr_accessor :discount_amount + # Payment method-specific information for line items. + attr_accessor :payment_method_options + # Unique identifier of the product. At most 12 characters long. + attr_accessor :product_code + # Name of the product. At most 100 characters long. + attr_accessor :product_name + # Number of items of the product. Positive integer. + attr_accessor :quantity + # Contains information about the tax on the item. + attr_accessor :tax + # Cost of the product. Non-negative integer. + attr_accessor :unit_cost + # A unit of measure for the line item, such as gallons, feet, meters, etc. + attr_accessor :unit_of_measure + + def initialize( + discount_amount: nil, + payment_method_options: nil, + product_code: nil, + product_name: nil, + quantity: nil, + tax: nil, + unit_cost: nil, + unit_of_measure: nil + ) + @discount_amount = discount_amount + @payment_method_options = payment_method_options + @product_code = product_code + @product_name = product_name + @quantity = quantity + @tax = tax + @unit_cost = unit_cost + @unit_of_measure = unit_of_measure + end + end + + class Shipping < ::Stripe::RequestParams + # Portion of the amount that is for shipping. + attr_accessor :amount + # The postal code that represents the shipping source. + attr_accessor :from_postal_code + # The postal code that represents the shipping destination. + attr_accessor :to_postal_code + + def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil) + @amount = amount + @from_postal_code = from_postal_code + @to_postal_code = to_postal_code + end + end + + class Tax < ::Stripe::RequestParams + # Total portion of the amount that is for tax. + attr_accessor :total_tax_amount + + def initialize(total_tax_amount: nil) + @total_tax_amount = total_tax_amount + end + end + # The total discount applied on the transaction. + attr_accessor :discount_amount + # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. + attr_accessor :line_items + # Contains information about the shipping portion of the amount. + attr_accessor :shipping + # Contains information about the tax portion of the amount. + attr_accessor :tax + + def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil) + @discount_amount = discount_amount + @line_items = line_items + @shipping = shipping + @tax = tax + end + end + + class PaymentDetails < ::Stripe::RequestParams + # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + attr_accessor :customer_reference + # A unique value assigned by the business to identify the transaction. + attr_accessor :order_reference + + def initialize(customer_reference: nil, order_reference: nil) + @customer_reference = customer_reference + @order_reference = order_reference + end + end + + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when a charge succeeds. attr_accessor :amount @@ -13,6 +186,8 @@ module Stripe end # The updated total amount that you intend to collect from the cardholder. This amount must be greater than the currently authorized amount. attr_accessor :amount + # Provides industry-specific information about the amount. + attr_accessor :amount_details # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). attr_accessor :application_fee_amount # An arbitrary string attached to the object. Often useful for displaying to users. @@ -21,6 +196,8 @@ module Stripe attr_accessor :expand # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. attr_accessor :metadata + # Provides industry-specific information about the charge. + attr_accessor :payment_details # Text that appears on the customer's statement as the statement descriptor for a non-card or card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). attr_accessor :statement_descriptor # The parameters used to automatically create a transfer after the payment is captured. @@ -29,18 +206,22 @@ module Stripe def initialize( amount: nil, + amount_details: nil, application_fee_amount: nil, description: nil, expand: nil, metadata: nil, + payment_details: nil, statement_descriptor: nil, transfer_data: nil ) @amount = amount + @amount_details = amount_details @application_fee_amount = application_fee_amount @description = description @expand = expand @metadata = metadata + @payment_details = payment_details @statement_descriptor = statement_descriptor @transfer_data = transfer_data end diff --git a/lib/stripe/params/payment_intent_list_params.rb b/lib/stripe/params/payment_intent_list_params.rb index d7b19efc..0590838f 100644 --- a/lib/stripe/params/payment_intent_list_params.rb +++ b/lib/stripe/params/payment_intent_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class PaymentIntentListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class PaymentIntentListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/payment_intent_retrieve_params.rb b/lib/stripe/params/payment_intent_retrieve_params.rb index ddf9a8c1..ae5e0c45 100644 --- a/lib/stripe/params/payment_intent_retrieve_params.rb +++ b/lib/stripe/params/payment_intent_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PaymentIntentRetrieveParams < Stripe::RequestParams + class PaymentIntentRetrieveParams < ::Stripe::RequestParams # The client secret of the PaymentIntent. We require it if you use a publishable key to retrieve the source. attr_accessor :client_secret # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/payment_intent_search_params.rb b/lib/stripe/params/payment_intent_search_params.rb index 881ded47..8cb33f16 100644 --- a/lib/stripe/params/payment_intent_search_params.rb +++ b/lib/stripe/params/payment_intent_search_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PaymentIntentSearchParams < Stripe::RequestParams + class PaymentIntentSearchParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. diff --git a/lib/stripe/params/payment_intent_update_params.rb b/lib/stripe/params/payment_intent_update_params.rb index 19acadd2..57332898 100644 --- a/lib/stripe/params/payment_intent_update_params.rb +++ b/lib/stripe/params/payment_intent_update_params.rb @@ -2,9 +2,182 @@ # frozen_string_literal: true module Stripe - class PaymentIntentUpdateParams < Stripe::RequestParams - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class PaymentIntentUpdateParams < ::Stripe::RequestParams + class AmountDetails < ::Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + attr_accessor :commodity_code + + def initialize(commodity_code: nil) + @commodity_code = commodity_code + end + end + + class CardPresent < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + attr_accessor :commodity_code + + def initialize(commodity_code: nil) + @commodity_code = commodity_code + end + end + + class Klarna < ::Stripe::RequestParams + # URL to an image for the product. Max length, 4096 characters. + attr_accessor :image_url + # URL to the product page. Max length, 4096 characters. + attr_accessor :product_url + # Unique reference for this line item to correlate it with your system’s internal records. The field is displayed in the Klarna Consumer App if passed. + attr_accessor :reference + # Reference for the subscription this line item is for. + attr_accessor :subscription_reference + + def initialize( + image_url: nil, + product_url: nil, + reference: nil, + subscription_reference: nil + ) + @image_url = image_url + @product_url = product_url + @reference = reference + @subscription_reference = subscription_reference + end + end + + class Paypal < ::Stripe::RequestParams + # Type of the line item. + attr_accessor :category + # Description of the line item. + attr_accessor :description + # The Stripe account ID of the connected account that sells the item. + attr_accessor :sold_by + + def initialize(category: nil, description: nil, sold_by: nil) + @category = category + @description = description + @sold_by = sold_by + end + end + # This sub-hash contains line item details that are specific to `card` payment method." + attr_accessor :card + # This sub-hash contains line item details that are specific to `card_present` payment method." + attr_accessor :card_present + # This sub-hash contains line item details that are specific to `klarna` payment method." + attr_accessor :klarna + # This sub-hash contains line item details that are specific to `paypal` payment method." + attr_accessor :paypal + + def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil) + @card = card + @card_present = card_present + @klarna = klarna + @paypal = paypal + end + end + + class Tax < ::Stripe::RequestParams + # The total tax on an item. Non-negative integer. + attr_accessor :total_tax_amount + + def initialize(total_tax_amount: nil) + @total_tax_amount = total_tax_amount + end + end + # The amount an item was discounted for. Positive integer. + attr_accessor :discount_amount + # Payment method-specific information for line items. + attr_accessor :payment_method_options + # Unique identifier of the product. At most 12 characters long. + attr_accessor :product_code + # Name of the product. At most 100 characters long. + attr_accessor :product_name + # Number of items of the product. Positive integer. + attr_accessor :quantity + # Contains information about the tax on the item. + attr_accessor :tax + # Cost of the product. Non-negative integer. + attr_accessor :unit_cost + # A unit of measure for the line item, such as gallons, feet, meters, etc. + attr_accessor :unit_of_measure + + def initialize( + discount_amount: nil, + payment_method_options: nil, + product_code: nil, + product_name: nil, + quantity: nil, + tax: nil, + unit_cost: nil, + unit_of_measure: nil + ) + @discount_amount = discount_amount + @payment_method_options = payment_method_options + @product_code = product_code + @product_name = product_name + @quantity = quantity + @tax = tax + @unit_cost = unit_cost + @unit_of_measure = unit_of_measure + end + end + + class Shipping < ::Stripe::RequestParams + # Portion of the amount that is for shipping. + attr_accessor :amount + # The postal code that represents the shipping source. + attr_accessor :from_postal_code + # The postal code that represents the shipping destination. + attr_accessor :to_postal_code + + def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil) + @amount = amount + @from_postal_code = from_postal_code + @to_postal_code = to_postal_code + end + end + + class Tax < ::Stripe::RequestParams + # Total portion of the amount that is for tax. + attr_accessor :total_tax_amount + + def initialize(total_tax_amount: nil) + @total_tax_amount = total_tax_amount + end + end + # The total discount applied on the transaction. + attr_accessor :discount_amount + # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. + attr_accessor :line_items + # Contains information about the shipping portion of the amount. + attr_accessor :shipping + # Contains information about the tax portion of the amount. + attr_accessor :tax + + def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil) + @discount_amount = discount_amount + @line_items = line_items + @shipping = shipping + @tax = tax + end + end + + class PaymentDetails < ::Stripe::RequestParams + # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + attr_accessor :customer_reference + # A unique value assigned by the business to identify the transaction. + attr_accessor :order_reference + + def initialize(customer_reference: nil, order_reference: nil) + @customer_reference = customer_reference + @order_reference = order_reference + end + end + + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. attr_accessor :account_number # Institution number of the customer's bank. @@ -19,13 +192,13 @@ module Stripe end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. attr_accessor :account_number # Bank-State-Branch number of the bank account. @@ -37,7 +210,7 @@ module Stripe end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. attr_accessor :account_number # Sort code of the bank account. (e.g., `10-20-30`) @@ -49,11 +222,11 @@ module Stripe end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -103,9 +276,9 @@ module Stripe end end - class Blik < Stripe::RequestParams; end + class Blik < ::Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) attr_accessor :tax_id @@ -114,11 +287,11 @@ module Stripe end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Eps < ::Stripe::RequestParams # The customer's bank. attr_accessor :bank @@ -127,7 +300,7 @@ module Stripe end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction attr_accessor :account_holder_type # The customer's bank. @@ -139,10 +312,10 @@ module Stripe end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. attr_accessor :bank @@ -151,11 +324,11 @@ module Stripe end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. attr_accessor :day # The month of birth, between 1 and 12. @@ -177,14 +350,14 @@ module Stripe end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. attr_accessor :funding @@ -193,7 +366,7 @@ module Stripe end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. attr_accessor :account_holder_name # The account number for the bank account. @@ -224,9 +397,9 @@ module Stripe end end - class Oxxo < Stripe::RequestParams; end + class Oxxo < ::Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class P24 < ::Stripe::RequestParams # The customer's bank. attr_accessor :bank @@ -235,14 +408,14 @@ module Stripe end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. attr_accessor :session @@ -251,11 +424,11 @@ module Stripe end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. attr_accessor :iban @@ -264,7 +437,7 @@ module Stripe end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. attr_accessor :country @@ -273,10 +446,10 @@ module Stripe end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. attr_accessor :account_holder_type # Account number of the bank account. @@ -303,8 +476,8 @@ module Stripe end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. attr_accessor :acss_debit # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. @@ -527,9 +700,9 @@ module Stripe end end - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # A URL for custom mandate text to render during confirmation step. # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. @@ -583,7 +756,7 @@ module Stripe end end - class Affirm < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -610,7 +783,7 @@ module Stripe end end - class AfterpayClearpay < Stripe::RequestParams + class AfterpayClearpay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -638,7 +811,7 @@ module Stripe end end - class Alipay < Stripe::RequestParams + class Alipay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -655,7 +828,7 @@ module Stripe end end - class Alma < Stripe::RequestParams + class Alma < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -668,7 +841,7 @@ module Stripe end end - class AmazonPay < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -690,7 +863,7 @@ module Stripe end end - class AuBecsDebit < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -710,8 +883,8 @@ module Stripe end end - class BacsDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. attr_accessor :reference_prefix @@ -741,7 +914,7 @@ module Stripe end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Preferred language of the Bancontact authorization page that the customer is redirected to. attr_accessor :preferred_language # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -761,7 +934,7 @@ module Stripe end end - class Billie < Stripe::RequestParams + class Billie < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -774,7 +947,7 @@ module Stripe end end - class Blik < Stripe::RequestParams + class Blik < ::Stripe::RequestParams # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. attr_accessor :code # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -794,7 +967,7 @@ module Stripe end end - class Boleto < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. attr_accessor :expires_after_days # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -814,9 +987,9 @@ module Stripe end end - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams - class Plan < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams + class Plan < ::Stripe::RequestParams # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. attr_accessor :count # For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card. @@ -845,7 +1018,7 @@ module Stripe end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. attr_accessor :amount # One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. @@ -888,9 +1061,9 @@ module Stripe end end - class ThreeDSecure < Stripe::RequestParams - class NetworkOptions < Stripe::RequestParams - class CartesBancaires < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams + class NetworkOptions < ::Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams # The cryptogram calculation algorithm used by the card Issuer's ACS # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. # messageExtension: CB-AVALGO @@ -1049,8 +1222,8 @@ module Stripe end end - class CardPresent < Stripe::RequestParams - class Routing < Stripe::RequestParams + class CardPresent < ::Stripe::RequestParams + class Routing < ::Stripe::RequestParams # Routing requested priority attr_accessor :requested_priority @@ -1076,7 +1249,7 @@ module Stripe end end - class Cashapp < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1100,7 +1273,7 @@ module Stripe end end - class Crypto < Stripe::RequestParams + class Crypto < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1117,9 +1290,9 @@ module Stripe end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. attr_accessor :country @@ -1164,7 +1337,7 @@ module Stripe end end - class Eps < Stripe::RequestParams + class Eps < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1181,7 +1354,7 @@ module Stripe end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1198,7 +1371,7 @@ module Stripe end end - class Giropay < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1215,7 +1388,7 @@ module Stripe end end - class Grabpay < Stripe::RequestParams + class Grabpay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1232,7 +1405,7 @@ module Stripe end end - class Ideal < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1249,9 +1422,9 @@ module Stripe end end - class InteracPresent < Stripe::RequestParams; end + class InteracPresent < ::Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams + class KakaoPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1273,8 +1446,8 @@ module Stripe end end - class Klarna < Stripe::RequestParams - class OnDemand < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class OnDemand < ::Stripe::RequestParams # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. attr_accessor :average_amount # The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc. @@ -1301,8 +1474,8 @@ module Stripe end end - class Subscription < Stripe::RequestParams - class NextBilling < Stripe::RequestParams + class Subscription < ::Stripe::RequestParams + class NextBilling < ::Stripe::RequestParams # The amount of the next charge for the subscription. attr_accessor :amount # The date of the next charge for the subscription in YYYY-MM-DD format. @@ -1376,7 +1549,7 @@ module Stripe end end - class Konbini < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams # An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number. attr_accessor :confirmation_number # The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days. @@ -1411,7 +1584,7 @@ module Stripe end end - class KrCard < Stripe::RequestParams + class KrCard < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1433,7 +1606,7 @@ module Stripe end end - class Link < Stripe::RequestParams + class Link < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1460,7 +1633,7 @@ module Stripe end end - class MbWay < Stripe::RequestParams + class MbWay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1477,7 +1650,7 @@ module Stripe end end - class Mobilepay < Stripe::RequestParams + class Mobilepay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1501,7 +1674,7 @@ module Stripe end end - class Multibanco < Stripe::RequestParams + class Multibanco < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1518,7 +1691,7 @@ module Stripe end end - class NaverPay < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1540,7 +1713,7 @@ module Stripe end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1560,7 +1733,7 @@ module Stripe end end - class Oxxo < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams # The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. attr_accessor :expires_after_days # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1580,7 +1753,7 @@ module Stripe end end - class P24 < Stripe::RequestParams + class P24 < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1600,9 +1773,9 @@ module Stripe end end - class PayByBank < Stripe::RequestParams; end + class PayByBank < ::Stripe::RequestParams; end - class Payco < Stripe::RequestParams + class Payco < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1615,7 +1788,7 @@ module Stripe end end - class Paynow < Stripe::RequestParams + class Paynow < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1632,7 +1805,7 @@ module Stripe end end - class Paypal < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method # [Preferred locale](https://stripe.com/docs/payments/paypal/supported-locales) of the PayPal checkout page that the customer is redirected to. @@ -1667,7 +1840,7 @@ module Stripe end end - class Pix < Stripe::RequestParams + class Pix < ::Stripe::RequestParams # Determines if the amount includes the IOF tax. Defaults to `never`. attr_accessor :amount_includes_iof # The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds. @@ -1698,7 +1871,7 @@ module Stripe end end - class Promptpay < Stripe::RequestParams + class Promptpay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1715,7 +1888,7 @@ module Stripe end end - class RevolutPay < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1737,7 +1910,7 @@ module Stripe end end - class SamsungPay < Stripe::RequestParams + class SamsungPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1750,7 +1923,7 @@ module Stripe end end - class Satispay < Stripe::RequestParams + class Satispay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1763,8 +1936,8 @@ module Stripe end end - class SepaDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. attr_accessor :reference_prefix @@ -1794,7 +1967,7 @@ module Stripe end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Language shown to the payer on redirect. attr_accessor :preferred_language # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1814,7 +1987,7 @@ module Stripe end end - class Swish < Stripe::RequestParams + class Swish < ::Stripe::RequestParams # A reference for this payment to be displayed in the Swish app. attr_accessor :reference # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1834,7 +2007,7 @@ module Stripe end end - class Twint < Stripe::RequestParams + class Twint < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1851,9 +2024,9 @@ module Stripe end end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. attr_accessor :account_subcategories @@ -1878,7 +2051,7 @@ module Stripe end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # The method used to collect offline mandate customer acceptance. attr_accessor :collection_method @@ -1887,7 +2060,7 @@ module Stripe end end - class Networks < Stripe::RequestParams + class Networks < ::Stripe::RequestParams # Triggers validations to run across the selected networks attr_accessor :requested @@ -1937,7 +2110,7 @@ module Stripe end end - class WechatPay < Stripe::RequestParams + class WechatPay < ::Stripe::RequestParams # The app ID registered with WeChat Pay. Only required when client is ios or android. attr_accessor :app_id # The client type that the end customer will pay from @@ -1960,7 +2133,7 @@ module Stripe end end - class Zip < Stripe::RequestParams + class Zip < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2186,8 +2359,8 @@ module Stripe end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -2237,7 +2410,7 @@ module Stripe end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when a charge succeeds. attr_accessor :amount @@ -2247,6 +2420,8 @@ module Stripe end # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). attr_accessor :amount + # Provides industry-specific information about the amount. + attr_accessor :amount_details # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). attr_accessor :application_fee_amount # Controls when the funds will be captured from the customer's account. @@ -2267,6 +2442,8 @@ module Stripe attr_accessor :expand # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. attr_accessor :metadata + # Provides industry-specific information about the charge. + attr_accessor :payment_details # ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent. To unset this field to null, pass in an empty string. attr_accessor :payment_method # The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this PaymentIntent. @@ -2306,6 +2483,7 @@ module Stripe def initialize( amount: nil, + amount_details: nil, application_fee_amount: nil, capture_method: nil, currency: nil, @@ -2314,6 +2492,7 @@ module Stripe excluded_payment_method_types: nil, expand: nil, metadata: nil, + payment_details: nil, payment_method: nil, payment_method_configuration: nil, payment_method_data: nil, @@ -2328,6 +2507,7 @@ module Stripe transfer_group: nil ) @amount = amount + @amount_details = amount_details @application_fee_amount = application_fee_amount @capture_method = capture_method @currency = currency @@ -2336,6 +2516,7 @@ module Stripe @excluded_payment_method_types = excluded_payment_method_types @expand = expand @metadata = metadata + @payment_details = payment_details @payment_method = payment_method @payment_method_configuration = payment_method_configuration @payment_method_data = payment_method_data diff --git a/lib/stripe/params/payment_intent_verify_microdeposits_params.rb b/lib/stripe/params/payment_intent_verify_microdeposits_params.rb index f9ae785d..cde71272 100644 --- a/lib/stripe/params/payment_intent_verify_microdeposits_params.rb +++ b/lib/stripe/params/payment_intent_verify_microdeposits_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PaymentIntentVerifyMicrodepositsParams < Stripe::RequestParams + class PaymentIntentVerifyMicrodepositsParams < ::Stripe::RequestParams # Two positive integers, in *cents*, equal to the values of the microdeposits sent to the bank account. attr_accessor :amounts # A six-character code starting with SM present in the microdeposit sent to the bank account. diff --git a/lib/stripe/params/payment_link_create_params.rb b/lib/stripe/params/payment_link_create_params.rb index 129d8958..116a5873 100644 --- a/lib/stripe/params/payment_link_create_params.rb +++ b/lib/stripe/params/payment_link_create_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class PaymentLinkCreateParams < Stripe::RequestParams - class AfterCompletion < Stripe::RequestParams - class HostedConfirmation < Stripe::RequestParams + class PaymentLinkCreateParams < ::Stripe::RequestParams + class AfterCompletion < ::Stripe::RequestParams + class HostedConfirmation < ::Stripe::RequestParams # A custom message to display to the customer after the purchase is complete. attr_accessor :custom_message @@ -13,7 +13,7 @@ module Stripe end end - class Redirect < Stripe::RequestParams + class Redirect < ::Stripe::RequestParams # The URL the customer will be redirected to after the purchase is complete. You can embed `{CHECKOUT_SESSION_ID}` into the URL to have the `id` of the completed [checkout session](https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-id) included. attr_accessor :url @@ -35,8 +35,8 @@ module Stripe end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -60,8 +60,8 @@ module Stripe end end - class ConsentCollection < Stripe::RequestParams - class PaymentMethodReuseAgreement < Stripe::RequestParams + class ConsentCollection < ::Stripe::RequestParams + class PaymentMethodReuseAgreement < ::Stripe::RequestParams # Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's # defaults will be used. When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI. attr_accessor :position @@ -87,9 +87,9 @@ module Stripe end end - class CustomField < Stripe::RequestParams - class Dropdown < Stripe::RequestParams - class Option < Stripe::RequestParams + class CustomField < ::Stripe::RequestParams + class Dropdown < ::Stripe::RequestParams + class Option < ::Stripe::RequestParams # The label for the option, displayed to the customer. Up to 100 characters. attr_accessor :label # The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters. @@ -111,7 +111,7 @@ module Stripe end end - class Label < Stripe::RequestParams + class Label < ::Stripe::RequestParams # Custom text for the label, displayed to the customer. Up to 50 characters. attr_accessor :custom # The type of the label. @@ -123,7 +123,7 @@ module Stripe end end - class Numeric < Stripe::RequestParams + class Numeric < ::Stripe::RequestParams # The value that will pre-fill the field on the payment page. attr_accessor :default_value # The maximum character length constraint for the customer's input. @@ -138,7 +138,7 @@ module Stripe end end - class Text < Stripe::RequestParams + class Text < ::Stripe::RequestParams # The value that will pre-fill the field on the payment page. attr_accessor :default_value # The maximum character length constraint for the customer's input. @@ -186,8 +186,8 @@ module Stripe end end - class CustomText < Stripe::RequestParams - class AfterSubmit < Stripe::RequestParams + class CustomText < ::Stripe::RequestParams + class AfterSubmit < ::Stripe::RequestParams # Text may be up to 1200 characters in length. attr_accessor :message @@ -196,7 +196,7 @@ module Stripe end end - class ShippingAddress < Stripe::RequestParams + class ShippingAddress < ::Stripe::RequestParams # Text may be up to 1200 characters in length. attr_accessor :message @@ -205,7 +205,7 @@ module Stripe end end - class Submit < Stripe::RequestParams + class Submit < ::Stripe::RequestParams # Text may be up to 1200 characters in length. attr_accessor :message @@ -214,7 +214,7 @@ module Stripe end end - class TermsOfServiceAcceptance < Stripe::RequestParams + class TermsOfServiceAcceptance < ::Stripe::RequestParams # Text may be up to 1200 characters in length. attr_accessor :message @@ -244,9 +244,9 @@ module Stripe end end - class InvoiceCreation < Stripe::RequestParams - class InvoiceData < Stripe::RequestParams - class CustomField < Stripe::RequestParams + class InvoiceCreation < ::Stripe::RequestParams + class InvoiceData < ::Stripe::RequestParams + class CustomField < ::Stripe::RequestParams # The name of the custom field. This may be up to 40 characters. attr_accessor :name # The value of the custom field. This may be up to 140 characters. @@ -258,7 +258,7 @@ module Stripe end end - class Issuer < Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -270,7 +270,7 @@ module Stripe end end - class RenderingOptions < Stripe::RequestParams + class RenderingOptions < ::Stripe::RequestParams # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. attr_accessor :amount_tax_display # ID of the invoice rendering template to use for this invoice. @@ -325,8 +325,8 @@ module Stripe end end - class LineItem < Stripe::RequestParams - class AdjustableQuantity < Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative Integer. attr_accessor :enabled # The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999999. @@ -341,8 +341,8 @@ module Stripe end end - class PriceData < Stripe::RequestParams - class ProductData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class ProductData < ::Stripe::RequestParams # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. attr_accessor :description # A list of up to 8 URLs of images for this product, meant to be displayable to the customer. @@ -373,7 +373,7 @@ module Stripe end end - class Recurring < Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. attr_accessor :interval # The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks). @@ -434,8 +434,43 @@ module Stripe end end - class OptionalItem < Stripe::RequestParams - class AdjustableQuantity < Stripe::RequestParams + class NameCollection < ::Stripe::RequestParams + class Business < ::Stripe::RequestParams + # Enable business name collection on the payment link. Defaults to `false`. + attr_accessor :enabled + # Whether the customer is required to provide their business name before checking out. Defaults to `false`. + attr_accessor :optional + + def initialize(enabled: nil, optional: nil) + @enabled = enabled + @optional = optional + end + end + + class Individual < ::Stripe::RequestParams + # Enable individual name collection on the payment link. Defaults to `false`. + attr_accessor :enabled + # Whether the customer is required to provide their full name before checking out. Defaults to `false`. + attr_accessor :optional + + def initialize(enabled: nil, optional: nil) + @enabled = enabled + @optional = optional + end + end + # Controls settings applied for collecting the customer's business name. + attr_accessor :business + # Controls settings applied for collecting the customer's individual name. + attr_accessor :individual + + def initialize(business: nil, individual: nil) + @business = business + @individual = individual + end + end + + class OptionalItem < ::Stripe::RequestParams + class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative integer. attr_accessor :enabled # The maximum quantity of this item the customer can purchase. By default this value is 99. @@ -463,7 +498,7 @@ module Stripe end end - class PaymentIntentData < Stripe::RequestParams + class PaymentIntentData < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. attr_accessor :capture_method # An arbitrary string attached to the object. Often useful for displaying to users. @@ -510,7 +545,7 @@ module Stripe end end - class PhoneNumberCollection < Stripe::RequestParams + class PhoneNumberCollection < ::Stripe::RequestParams # Set to `true` to enable phone number collection. attr_accessor :enabled @@ -519,8 +554,8 @@ module Stripe end end - class Restrictions < Stripe::RequestParams - class CompletedSessions < Stripe::RequestParams + class Restrictions < ::Stripe::RequestParams + class CompletedSessions < ::Stripe::RequestParams # The maximum number of checkout sessions that can be completed for the `completed_sessions` restriction to be met. attr_accessor :limit @@ -536,7 +571,7 @@ module Stripe end end - class ShippingAddressCollection < Stripe::RequestParams + class ShippingAddressCollection < ::Stripe::RequestParams # An array of two-letter ISO country codes representing which countries Checkout should provide as options for # shipping locations. attr_accessor :allowed_countries @@ -546,7 +581,7 @@ module Stripe end end - class ShippingOption < Stripe::RequestParams + class ShippingOption < ::Stripe::RequestParams # The ID of the Shipping Rate to use for this shipping option. attr_accessor :shipping_rate @@ -555,9 +590,9 @@ module Stripe end end - class SubscriptionData < Stripe::RequestParams - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class SubscriptionData < ::Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -576,8 +611,8 @@ module Stripe end end - class TrialSettings < Stripe::RequestParams - class EndBehavior < Stripe::RequestParams + class TrialSettings < ::Stripe::RequestParams + class EndBehavior < ::Stripe::RequestParams # Indicates how the subscription should change when the trial ends if the user did not provide a payment method. attr_accessor :missing_payment_method @@ -618,7 +653,7 @@ module Stripe end end - class TaxIdCollection < Stripe::RequestParams + class TaxIdCollection < ::Stripe::RequestParams # Enable tax ID collection during checkout. Defaults to `false`. attr_accessor :enabled # Describes whether a tax ID is required during checkout. Defaults to `never`. @@ -630,7 +665,7 @@ module Stripe end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when a charge succeeds. attr_accessor :amount # If specified, successful charges will be attributed to the destination @@ -676,6 +711,8 @@ module Stripe attr_accessor :line_items # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. Metadata associated with this Payment Link will automatically be copied to [checkout sessions](https://stripe.com/docs/api/checkout/sessions) created by this payment link. attr_accessor :metadata + # Controls settings applied for collecting the customer's name. + attr_accessor :name_collection # The account on behalf of which to charge. attr_accessor :on_behalf_of # A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices). @@ -728,6 +765,7 @@ module Stripe invoice_creation: nil, line_items: nil, metadata: nil, + name_collection: nil, on_behalf_of: nil, optional_items: nil, payment_intent_data: nil, @@ -758,6 +796,7 @@ module Stripe @invoice_creation = invoice_creation @line_items = line_items @metadata = metadata + @name_collection = name_collection @on_behalf_of = on_behalf_of @optional_items = optional_items @payment_intent_data = payment_intent_data diff --git a/lib/stripe/params/payment_link_line_item_list_params.rb b/lib/stripe/params/payment_link_line_item_list_params.rb index 580484bc..b61d8550 100644 --- a/lib/stripe/params/payment_link_line_item_list_params.rb +++ b/lib/stripe/params/payment_link_line_item_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PaymentLinkLineItemListParams < Stripe::RequestParams + class PaymentLinkLineItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/payment_link_list_line_items_params.rb b/lib/stripe/params/payment_link_list_line_items_params.rb index 675a9288..88798b32 100644 --- a/lib/stripe/params/payment_link_list_line_items_params.rb +++ b/lib/stripe/params/payment_link_list_line_items_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PaymentLinkListLineItemsParams < Stripe::RequestParams + class PaymentLinkListLineItemsParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/payment_link_list_params.rb b/lib/stripe/params/payment_link_list_params.rb index c7ed0321..57113bba 100644 --- a/lib/stripe/params/payment_link_list_params.rb +++ b/lib/stripe/params/payment_link_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PaymentLinkListParams < Stripe::RequestParams + class PaymentLinkListParams < ::Stripe::RequestParams # Only return payment links that are active or inactive (e.g., pass `false` to list all inactive payment links). attr_accessor :active # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. diff --git a/lib/stripe/params/payment_link_retrieve_params.rb b/lib/stripe/params/payment_link_retrieve_params.rb index 3516117a..25ab0c37 100644 --- a/lib/stripe/params/payment_link_retrieve_params.rb +++ b/lib/stripe/params/payment_link_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PaymentLinkRetrieveParams < Stripe::RequestParams + class PaymentLinkRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/payment_link_update_params.rb b/lib/stripe/params/payment_link_update_params.rb index 726b5a1a..ceed51bd 100644 --- a/lib/stripe/params/payment_link_update_params.rb +++ b/lib/stripe/params/payment_link_update_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class PaymentLinkUpdateParams < Stripe::RequestParams - class AfterCompletion < Stripe::RequestParams - class HostedConfirmation < Stripe::RequestParams + class PaymentLinkUpdateParams < ::Stripe::RequestParams + class AfterCompletion < ::Stripe::RequestParams + class HostedConfirmation < ::Stripe::RequestParams # A custom message to display to the customer after the purchase is complete. attr_accessor :custom_message @@ -13,7 +13,7 @@ module Stripe end end - class Redirect < Stripe::RequestParams + class Redirect < ::Stripe::RequestParams # The URL the customer will be redirected to after the purchase is complete. You can embed `{CHECKOUT_SESSION_ID}` into the URL to have the `id` of the completed [checkout session](https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-id) included. attr_accessor :url @@ -35,8 +35,8 @@ module Stripe end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -60,9 +60,9 @@ module Stripe end end - class CustomField < Stripe::RequestParams - class Dropdown < Stripe::RequestParams - class Option < Stripe::RequestParams + class CustomField < ::Stripe::RequestParams + class Dropdown < ::Stripe::RequestParams + class Option < ::Stripe::RequestParams # The label for the option, displayed to the customer. Up to 100 characters. attr_accessor :label # The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters. @@ -84,7 +84,7 @@ module Stripe end end - class Label < Stripe::RequestParams + class Label < ::Stripe::RequestParams # Custom text for the label, displayed to the customer. Up to 50 characters. attr_accessor :custom # The type of the label. @@ -96,7 +96,7 @@ module Stripe end end - class Numeric < Stripe::RequestParams + class Numeric < ::Stripe::RequestParams # The value that will pre-fill the field on the payment page. attr_accessor :default_value # The maximum character length constraint for the customer's input. @@ -111,7 +111,7 @@ module Stripe end end - class Text < Stripe::RequestParams + class Text < ::Stripe::RequestParams # The value that will pre-fill the field on the payment page. attr_accessor :default_value # The maximum character length constraint for the customer's input. @@ -159,8 +159,8 @@ module Stripe end end - class CustomText < Stripe::RequestParams - class AfterSubmit < Stripe::RequestParams + class CustomText < ::Stripe::RequestParams + class AfterSubmit < ::Stripe::RequestParams # Text may be up to 1200 characters in length. attr_accessor :message @@ -169,7 +169,7 @@ module Stripe end end - class ShippingAddress < Stripe::RequestParams + class ShippingAddress < ::Stripe::RequestParams # Text may be up to 1200 characters in length. attr_accessor :message @@ -178,7 +178,7 @@ module Stripe end end - class Submit < Stripe::RequestParams + class Submit < ::Stripe::RequestParams # Text may be up to 1200 characters in length. attr_accessor :message @@ -187,7 +187,7 @@ module Stripe end end - class TermsOfServiceAcceptance < Stripe::RequestParams + class TermsOfServiceAcceptance < ::Stripe::RequestParams # Text may be up to 1200 characters in length. attr_accessor :message @@ -217,9 +217,9 @@ module Stripe end end - class InvoiceCreation < Stripe::RequestParams - class InvoiceData < Stripe::RequestParams - class CustomField < Stripe::RequestParams + class InvoiceCreation < ::Stripe::RequestParams + class InvoiceData < ::Stripe::RequestParams + class CustomField < ::Stripe::RequestParams # The name of the custom field. This may be up to 40 characters. attr_accessor :name # The value of the custom field. This may be up to 140 characters. @@ -231,7 +231,7 @@ module Stripe end end - class Issuer < Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -243,7 +243,7 @@ module Stripe end end - class RenderingOptions < Stripe::RequestParams + class RenderingOptions < ::Stripe::RequestParams # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. attr_accessor :amount_tax_display # ID of the invoice rendering template to use for this invoice. @@ -298,8 +298,8 @@ module Stripe end end - class LineItem < Stripe::RequestParams - class AdjustableQuantity < Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative Integer. attr_accessor :enabled # The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999999. @@ -327,7 +327,42 @@ module Stripe end end - class PaymentIntentData < Stripe::RequestParams + class NameCollection < ::Stripe::RequestParams + class Business < ::Stripe::RequestParams + # Enable business name collection on the payment link. Defaults to `false`. + attr_accessor :enabled + # Whether the customer is required to provide their business name before checking out. Defaults to `false`. + attr_accessor :optional + + def initialize(enabled: nil, optional: nil) + @enabled = enabled + @optional = optional + end + end + + class Individual < ::Stripe::RequestParams + # Enable individual name collection on the payment link. Defaults to `false`. + attr_accessor :enabled + # Whether the customer is required to provide their full name before checking out. Defaults to `false`. + attr_accessor :optional + + def initialize(enabled: nil, optional: nil) + @enabled = enabled + @optional = optional + end + end + # Controls settings applied for collecting the customer's business name. + attr_accessor :business + # Controls settings applied for collecting the customer's individual name. + attr_accessor :individual + + def initialize(business: nil, individual: nil) + @business = business + @individual = individual + end + end + + class PaymentIntentData < ::Stripe::RequestParams # An arbitrary string attached to the object. Often useful for displaying to users. attr_accessor :description # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will declaratively set metadata on [Payment Intents](https://stripe.com/docs/api/payment_intents) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values. @@ -356,7 +391,7 @@ module Stripe end end - class PhoneNumberCollection < Stripe::RequestParams + class PhoneNumberCollection < ::Stripe::RequestParams # Set to `true` to enable phone number collection. attr_accessor :enabled @@ -365,8 +400,8 @@ module Stripe end end - class Restrictions < Stripe::RequestParams - class CompletedSessions < Stripe::RequestParams + class Restrictions < ::Stripe::RequestParams + class CompletedSessions < ::Stripe::RequestParams # The maximum number of checkout sessions that can be completed for the `completed_sessions` restriction to be met. attr_accessor :limit @@ -382,7 +417,7 @@ module Stripe end end - class ShippingAddressCollection < Stripe::RequestParams + class ShippingAddressCollection < ::Stripe::RequestParams # An array of two-letter ISO country codes representing which countries Checkout should provide as options for # shipping locations. attr_accessor :allowed_countries @@ -392,9 +427,9 @@ module Stripe end end - class SubscriptionData < Stripe::RequestParams - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class SubscriptionData < ::Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -413,8 +448,8 @@ module Stripe end end - class TrialSettings < Stripe::RequestParams - class EndBehavior < Stripe::RequestParams + class TrialSettings < ::Stripe::RequestParams + class EndBehavior < ::Stripe::RequestParams # Indicates how the subscription should change when the trial ends if the user did not provide a payment method. attr_accessor :missing_payment_method @@ -451,7 +486,7 @@ module Stripe end end - class TaxIdCollection < Stripe::RequestParams + class TaxIdCollection < ::Stripe::RequestParams # Enable tax ID collection during checkout. Defaults to `false`. attr_accessor :enabled # Describes whether a tax ID is required during checkout. Defaults to `never`. @@ -488,6 +523,8 @@ module Stripe attr_accessor :line_items # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. Metadata associated with this Payment Link will automatically be copied to [checkout sessions](https://stripe.com/docs/api/checkout/sessions) created by this payment link. attr_accessor :metadata + # Controls settings applied for collecting the customer's name. + attr_accessor :name_collection # A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode. attr_accessor :payment_intent_data # Specify whether Checkout should collect a payment method. When set to `if_required`, Checkout will not collect a payment method when the total due for the session is 0.This may occur if the Checkout Session includes a free trial or a discount. @@ -527,6 +564,7 @@ module Stripe invoice_creation: nil, line_items: nil, metadata: nil, + name_collection: nil, payment_intent_data: nil, payment_method_collection: nil, payment_method_types: nil, @@ -550,6 +588,7 @@ module Stripe @invoice_creation = invoice_creation @line_items = line_items @metadata = metadata + @name_collection = name_collection @payment_intent_data = payment_intent_data @payment_method_collection = payment_method_collection @payment_method_types = payment_method_types diff --git a/lib/stripe/params/payment_method_attach_params.rb b/lib/stripe/params/payment_method_attach_params.rb index 86cbc52c..551c93ea 100644 --- a/lib/stripe/params/payment_method_attach_params.rb +++ b/lib/stripe/params/payment_method_attach_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PaymentMethodAttachParams < Stripe::RequestParams + class PaymentMethodAttachParams < ::Stripe::RequestParams # The ID of the customer to which to attach the PaymentMethod. attr_accessor :customer # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/payment_method_configuration_create_params.rb b/lib/stripe/params/payment_method_configuration_create_params.rb index c71f1fa6..627b8b2f 100644 --- a/lib/stripe/params/payment_method_configuration_create_params.rb +++ b/lib/stripe/params/payment_method_configuration_create_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class PaymentMethodConfigurationCreateParams < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class PaymentMethodConfigurationCreateParams < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -20,8 +20,8 @@ module Stripe end end - class Affirm < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -37,8 +37,8 @@ module Stripe end end - class AfterpayClearpay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class AfterpayClearpay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -54,8 +54,8 @@ module Stripe end end - class Alipay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Alipay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -71,8 +71,8 @@ module Stripe end end - class Alma < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Alma < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -88,8 +88,8 @@ module Stripe end end - class AmazonPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -105,8 +105,8 @@ module Stripe end end - class ApplePay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class ApplePay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -122,8 +122,8 @@ module Stripe end end - class ApplePayLater < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class ApplePayLater < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -139,8 +139,8 @@ module Stripe end end - class AuBecsDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -156,8 +156,8 @@ module Stripe end end - class BacsDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -173,8 +173,8 @@ module Stripe end end - class Bancontact < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -190,8 +190,8 @@ module Stripe end end - class Billie < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Billie < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -207,8 +207,8 @@ module Stripe end end - class Blik < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Blik < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -224,8 +224,8 @@ module Stripe end end - class Boleto < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -241,8 +241,8 @@ module Stripe end end - class Card < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -258,8 +258,8 @@ module Stripe end end - class CartesBancaires < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -275,8 +275,8 @@ module Stripe end end - class Cashapp < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -292,8 +292,8 @@ module Stripe end end - class CustomerBalance < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Crypto < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -309,8 +309,8 @@ module Stripe end end - class Eps < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -326,8 +326,8 @@ module Stripe end end - class Fpx < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Eps < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -343,8 +343,8 @@ module Stripe end end - class FrMealVoucherConecs < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -360,8 +360,8 @@ module Stripe end end - class Giropay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class FrMealVoucherConecs < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -377,8 +377,8 @@ module Stripe end end - class GooglePay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -394,8 +394,8 @@ module Stripe end end - class Grabpay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class GooglePay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -411,8 +411,8 @@ module Stripe end end - class Ideal < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Grabpay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -428,8 +428,8 @@ module Stripe end end - class Jcb < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -445,8 +445,8 @@ module Stripe end end - class KakaoPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Jcb < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -462,8 +462,8 @@ module Stripe end end - class Klarna < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class KakaoPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -479,8 +479,8 @@ module Stripe end end - class Konbini < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -496,8 +496,8 @@ module Stripe end end - class KrCard < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -513,8 +513,8 @@ module Stripe end end - class Link < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class KrCard < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -530,8 +530,8 @@ module Stripe end end - class Mobilepay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Link < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -547,8 +547,8 @@ module Stripe end end - class Multibanco < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class MbWay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -564,8 +564,8 @@ module Stripe end end - class NaverPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Mobilepay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -581,8 +581,8 @@ module Stripe end end - class NzBankAccount < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Multibanco < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -598,8 +598,8 @@ module Stripe end end - class Oxxo < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -615,8 +615,8 @@ module Stripe end end - class P24 < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -632,8 +632,8 @@ module Stripe end end - class PayByBank < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -649,8 +649,8 @@ module Stripe end end - class Payco < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class P24 < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -666,8 +666,8 @@ module Stripe end end - class Paynow < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -683,8 +683,8 @@ module Stripe end end - class Paypal < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Payco < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -700,8 +700,8 @@ module Stripe end end - class Pix < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Paynow < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -717,8 +717,8 @@ module Stripe end end - class Promptpay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -734,8 +734,8 @@ module Stripe end end - class RevolutPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Pix < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -751,8 +751,8 @@ module Stripe end end - class SamsungPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Promptpay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -768,8 +768,8 @@ module Stripe end end - class Satispay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -785,8 +785,8 @@ module Stripe end end - class SepaDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class SamsungPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -802,8 +802,8 @@ module Stripe end end - class Sofort < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Satispay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -819,8 +819,8 @@ module Stripe end end - class Swish < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -836,8 +836,8 @@ module Stripe end end - class Twint < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -853,8 +853,8 @@ module Stripe end end - class UsBankAccount < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Swish < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -870,8 +870,8 @@ module Stripe end end - class WechatPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Twint < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -887,8 +887,42 @@ module Stripe end end - class Zip < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + attr_accessor :preference + + def initialize(preference: nil) + @preference = preference + end + end + # Whether or not the payment method should be displayed. + attr_accessor :display_preference + + def initialize(display_preference: nil) + @display_preference = display_preference + end + end + + class WechatPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + attr_accessor :preference + + def initialize(preference: nil) + @preference = preference + end + end + # Whether or not the payment method should be displayed. + attr_accessor :display_preference + + def initialize(display_preference: nil) + @display_preference = display_preference + end + end + + class Zip < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -937,6 +971,8 @@ module Stripe attr_accessor :cartes_bancaires # Cash App is a popular consumer app in the US that allows customers to bank, invest, send, and receive money using their digital wallet. Check this [page](https://stripe.com/docs/payments/cash-app-pay) for more details. attr_accessor :cashapp + # [Stablecoin payments](https://stripe.com/docs/payments/stablecoin-payments) enable customers to pay in stablecoins like USDC from 100s of wallets including Phantom and Metamask. + attr_accessor :crypto # Uses a customer’s [cash balance](https://stripe.com/docs/payments/customer-balance) for the payment. The cash balance can be funded via a bank transfer. Check this [page](https://stripe.com/docs/payments/bank-transfers) for more details. attr_accessor :customer_balance # EPS is an Austria-based payment method that allows customers to complete transactions online using their bank credentials. EPS is supported by all Austrian banks and is accepted by over 80% of Austrian online retailers. Check this [page](https://stripe.com/docs/payments/eps) for more details. @@ -967,6 +1003,8 @@ module Stripe attr_accessor :kr_card # [Link](https://stripe.com/docs/payments/link) is a payment method network. With Link, users save their payment details once, then reuse that information to pay with one click for any business on the network. attr_accessor :link + # MB WAY is the most popular wallet in Portugal. After entering their phone number in your checkout, customers approve the payment directly in their MB WAY app. Check this [page](https://stripe.com/docs/payments/mb-way) for more details. + attr_accessor :mb_way # MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details. attr_accessor :mobilepay # Stripe users in Europe and the United States can accept Multibanco payments from customers in Portugal using [Sources](https://stripe.com/docs/sources)—a single integration path for creating payments using any supported method. @@ -1034,6 +1072,7 @@ module Stripe card: nil, cartes_bancaires: nil, cashapp: nil, + crypto: nil, customer_balance: nil, eps: nil, expand: nil, @@ -1049,6 +1088,7 @@ module Stripe konbini: nil, kr_card: nil, link: nil, + mb_way: nil, mobilepay: nil, multibanco: nil, name: nil, @@ -1091,6 +1131,7 @@ module Stripe @card = card @cartes_bancaires = cartes_bancaires @cashapp = cashapp + @crypto = crypto @customer_balance = customer_balance @eps = eps @expand = expand @@ -1106,6 +1147,7 @@ module Stripe @konbini = konbini @kr_card = kr_card @link = link + @mb_way = mb_way @mobilepay = mobilepay @multibanco = multibanco @name = name diff --git a/lib/stripe/params/payment_method_configuration_list_params.rb b/lib/stripe/params/payment_method_configuration_list_params.rb index ad16d4d6..7f33d471 100644 --- a/lib/stripe/params/payment_method_configuration_list_params.rb +++ b/lib/stripe/params/payment_method_configuration_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PaymentMethodConfigurationListParams < Stripe::RequestParams + class PaymentMethodConfigurationListParams < ::Stripe::RequestParams # The Connect application to filter by. attr_accessor :application # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. diff --git a/lib/stripe/params/payment_method_configuration_retrieve_params.rb b/lib/stripe/params/payment_method_configuration_retrieve_params.rb index a16b6ae5..176ff1a7 100644 --- a/lib/stripe/params/payment_method_configuration_retrieve_params.rb +++ b/lib/stripe/params/payment_method_configuration_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PaymentMethodConfigurationRetrieveParams < Stripe::RequestParams + class PaymentMethodConfigurationRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/payment_method_configuration_update_params.rb b/lib/stripe/params/payment_method_configuration_update_params.rb index 7217beb5..ef460f1d 100644 --- a/lib/stripe/params/payment_method_configuration_update_params.rb +++ b/lib/stripe/params/payment_method_configuration_update_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class PaymentMethodConfigurationUpdateParams < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class PaymentMethodConfigurationUpdateParams < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -20,8 +20,8 @@ module Stripe end end - class Affirm < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -37,8 +37,8 @@ module Stripe end end - class AfterpayClearpay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class AfterpayClearpay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -54,8 +54,8 @@ module Stripe end end - class Alipay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Alipay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -71,8 +71,8 @@ module Stripe end end - class Alma < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Alma < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -88,8 +88,8 @@ module Stripe end end - class AmazonPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -105,8 +105,8 @@ module Stripe end end - class ApplePay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class ApplePay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -122,8 +122,8 @@ module Stripe end end - class ApplePayLater < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class ApplePayLater < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -139,8 +139,8 @@ module Stripe end end - class AuBecsDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -156,8 +156,8 @@ module Stripe end end - class BacsDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -173,8 +173,8 @@ module Stripe end end - class Bancontact < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -190,8 +190,8 @@ module Stripe end end - class Billie < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Billie < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -207,8 +207,8 @@ module Stripe end end - class Blik < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Blik < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -224,8 +224,8 @@ module Stripe end end - class Boleto < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -241,8 +241,8 @@ module Stripe end end - class Card < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -258,8 +258,8 @@ module Stripe end end - class CartesBancaires < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -275,8 +275,8 @@ module Stripe end end - class Cashapp < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -292,8 +292,8 @@ module Stripe end end - class CustomerBalance < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Crypto < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -309,8 +309,8 @@ module Stripe end end - class Eps < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -326,8 +326,8 @@ module Stripe end end - class Fpx < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Eps < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -343,8 +343,8 @@ module Stripe end end - class FrMealVoucherConecs < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -360,8 +360,8 @@ module Stripe end end - class Giropay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class FrMealVoucherConecs < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -377,8 +377,8 @@ module Stripe end end - class GooglePay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -394,8 +394,8 @@ module Stripe end end - class Grabpay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class GooglePay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -411,8 +411,8 @@ module Stripe end end - class Ideal < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Grabpay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -428,8 +428,8 @@ module Stripe end end - class Jcb < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -445,8 +445,8 @@ module Stripe end end - class KakaoPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Jcb < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -462,8 +462,8 @@ module Stripe end end - class Klarna < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class KakaoPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -479,8 +479,8 @@ module Stripe end end - class Konbini < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -496,8 +496,8 @@ module Stripe end end - class KrCard < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -513,8 +513,8 @@ module Stripe end end - class Link < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class KrCard < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -530,8 +530,8 @@ module Stripe end end - class Mobilepay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Link < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -547,8 +547,8 @@ module Stripe end end - class Multibanco < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class MbWay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -564,8 +564,8 @@ module Stripe end end - class NaverPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Mobilepay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -581,8 +581,8 @@ module Stripe end end - class NzBankAccount < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Multibanco < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -598,8 +598,8 @@ module Stripe end end - class Oxxo < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -615,8 +615,8 @@ module Stripe end end - class P24 < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -632,8 +632,8 @@ module Stripe end end - class PayByBank < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -649,8 +649,8 @@ module Stripe end end - class Payco < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class P24 < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -666,8 +666,8 @@ module Stripe end end - class Paynow < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -683,8 +683,8 @@ module Stripe end end - class Paypal < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Payco < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -700,8 +700,8 @@ module Stripe end end - class Pix < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Paynow < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -717,8 +717,8 @@ module Stripe end end - class Promptpay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -734,8 +734,8 @@ module Stripe end end - class RevolutPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Pix < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -751,8 +751,8 @@ module Stripe end end - class SamsungPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Promptpay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -768,8 +768,8 @@ module Stripe end end - class Satispay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -785,8 +785,8 @@ module Stripe end end - class SepaDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class SamsungPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -802,8 +802,8 @@ module Stripe end end - class Sofort < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Satispay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -819,8 +819,8 @@ module Stripe end end - class Swish < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -836,8 +836,8 @@ module Stripe end end - class Twint < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -853,8 +853,8 @@ module Stripe end end - class UsBankAccount < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Swish < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -870,8 +870,8 @@ module Stripe end end - class WechatPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Twint < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -887,8 +887,42 @@ module Stripe end end - class Zip < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + attr_accessor :preference + + def initialize(preference: nil) + @preference = preference + end + end + # Whether or not the payment method should be displayed. + attr_accessor :display_preference + + def initialize(display_preference: nil) + @display_preference = display_preference + end + end + + class WechatPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + attr_accessor :preference + + def initialize(preference: nil) + @preference = preference + end + end + # Whether or not the payment method should be displayed. + attr_accessor :display_preference + + def initialize(display_preference: nil) + @display_preference = display_preference + end + end + + class Zip < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. attr_accessor :preference @@ -939,6 +973,8 @@ module Stripe attr_accessor :cartes_bancaires # Cash App is a popular consumer app in the US that allows customers to bank, invest, send, and receive money using their digital wallet. Check this [page](https://stripe.com/docs/payments/cash-app-pay) for more details. attr_accessor :cashapp + # [Stablecoin payments](https://stripe.com/docs/payments/stablecoin-payments) enable customers to pay in stablecoins like USDC from 100s of wallets including Phantom and Metamask. + attr_accessor :crypto # Uses a customer’s [cash balance](https://stripe.com/docs/payments/customer-balance) for the payment. The cash balance can be funded via a bank transfer. Check this [page](https://stripe.com/docs/payments/bank-transfers) for more details. attr_accessor :customer_balance # EPS is an Austria-based payment method that allows customers to complete transactions online using their bank credentials. EPS is supported by all Austrian banks and is accepted by over 80% of Austrian online retailers. Check this [page](https://stripe.com/docs/payments/eps) for more details. @@ -969,6 +1005,8 @@ module Stripe attr_accessor :kr_card # [Link](https://stripe.com/docs/payments/link) is a payment method network. With Link, users save their payment details once, then reuse that information to pay with one click for any business on the network. attr_accessor :link + # MB WAY is the most popular wallet in Portugal. After entering their phone number in your checkout, customers approve the payment directly in their MB WAY app. Check this [page](https://stripe.com/docs/payments/mb-way) for more details. + attr_accessor :mb_way # MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details. attr_accessor :mobilepay # Stripe users in Europe and the United States can accept Multibanco payments from customers in Portugal using [Sources](https://stripe.com/docs/sources)—a single integration path for creating payments using any supported method. @@ -1035,6 +1073,7 @@ module Stripe card: nil, cartes_bancaires: nil, cashapp: nil, + crypto: nil, customer_balance: nil, eps: nil, expand: nil, @@ -1050,6 +1089,7 @@ module Stripe konbini: nil, kr_card: nil, link: nil, + mb_way: nil, mobilepay: nil, multibanco: nil, name: nil, @@ -1092,6 +1132,7 @@ module Stripe @card = card @cartes_bancaires = cartes_bancaires @cashapp = cashapp + @crypto = crypto @customer_balance = customer_balance @eps = eps @expand = expand @@ -1107,6 +1148,7 @@ module Stripe @konbini = konbini @kr_card = kr_card @link = link + @mb_way = mb_way @mobilepay = mobilepay @multibanco = multibanco @name = name diff --git a/lib/stripe/params/payment_method_create_params.rb b/lib/stripe/params/payment_method_create_params.rb index 5ed1dd08..b633b7c6 100644 --- a/lib/stripe/params/payment_method_create_params.rb +++ b/lib/stripe/params/payment_method_create_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class PaymentMethodCreateParams < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class PaymentMethodCreateParams < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. attr_accessor :account_number # Institution number of the customer's bank. @@ -18,13 +18,13 @@ module Stripe end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. attr_accessor :account_number # Bank-State-Branch number of the bank account. @@ -36,7 +36,7 @@ module Stripe end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. attr_accessor :account_number # Sort code of the bank account. (e.g., `10-20-30`) @@ -48,11 +48,11 @@ module Stripe end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -102,9 +102,9 @@ module Stripe end end - class Blik < Stripe::RequestParams; end + class Blik < ::Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) attr_accessor :tax_id @@ -113,8 +113,8 @@ module Stripe end end - class Card < Stripe::RequestParams - class Networks < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Networks < ::Stripe::RequestParams # The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card. attr_accessor :preferred @@ -152,11 +152,21 @@ module Stripe end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Custom < ::Stripe::RequestParams + # ID of the Dashboard-only CustomPaymentMethodType. This field is used by Stripe products' internal code to support CPMs. + attr_accessor :type + + def initialize(type: nil) + @type = type + end + end + + class CustomerBalance < ::Stripe::RequestParams; end + + class Eps < ::Stripe::RequestParams # The customer's bank. attr_accessor :bank @@ -165,7 +175,7 @@ module Stripe end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction attr_accessor :account_holder_type # The customer's bank. @@ -177,10 +187,10 @@ module Stripe end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. attr_accessor :bank @@ -189,11 +199,11 @@ module Stripe end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. attr_accessor :day # The month of birth, between 1 and 12. @@ -215,14 +225,14 @@ module Stripe end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. attr_accessor :funding @@ -231,7 +241,7 @@ module Stripe end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. attr_accessor :account_holder_name # The account number for the bank account. @@ -262,9 +272,9 @@ module Stripe end end - class Oxxo < Stripe::RequestParams; end + class Oxxo < ::Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class P24 < ::Stripe::RequestParams # The customer's bank. attr_accessor :bank @@ -273,14 +283,14 @@ module Stripe end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. attr_accessor :session @@ -289,11 +299,11 @@ module Stripe end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. attr_accessor :iban @@ -302,7 +312,7 @@ module Stripe end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. attr_accessor :country @@ -311,10 +321,10 @@ module Stripe end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. attr_accessor :account_holder_type # Account number of the bank account. @@ -341,8 +351,8 @@ module Stripe end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. attr_accessor :acss_debit # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. @@ -377,6 +387,8 @@ module Stripe attr_accessor :cashapp # If this is a Crypto PaymentMethod, this hash contains details about the Crypto payment method. attr_accessor :crypto + # If this is a `custom` PaymentMethod, this hash contains details about the Custom payment method. + attr_accessor :custom # The `Customer` to whom the original PaymentMethod is attached. attr_accessor :customer # If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method. @@ -478,6 +490,7 @@ module Stripe card: nil, cashapp: nil, crypto: nil, + custom: nil, customer: nil, customer_balance: nil, eps: nil, @@ -537,6 +550,7 @@ module Stripe @card = card @cashapp = cashapp @crypto = crypto + @custom = custom @customer = customer @customer_balance = customer_balance @eps = eps diff --git a/lib/stripe/params/payment_method_detach_params.rb b/lib/stripe/params/payment_method_detach_params.rb index a7b2b637..b36a0eb9 100644 --- a/lib/stripe/params/payment_method_detach_params.rb +++ b/lib/stripe/params/payment_method_detach_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PaymentMethodDetachParams < Stripe::RequestParams + class PaymentMethodDetachParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/payment_method_domain_create_params.rb b/lib/stripe/params/payment_method_domain_create_params.rb index a8c96831..910a67ce 100644 --- a/lib/stripe/params/payment_method_domain_create_params.rb +++ b/lib/stripe/params/payment_method_domain_create_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PaymentMethodDomainCreateParams < Stripe::RequestParams + class PaymentMethodDomainCreateParams < ::Stripe::RequestParams # The domain name that this payment method domain object represents. attr_accessor :domain_name # Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements or Embedded Checkout. diff --git a/lib/stripe/params/payment_method_domain_list_params.rb b/lib/stripe/params/payment_method_domain_list_params.rb index 537f269c..8d8d283c 100644 --- a/lib/stripe/params/payment_method_domain_list_params.rb +++ b/lib/stripe/params/payment_method_domain_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PaymentMethodDomainListParams < Stripe::RequestParams + class PaymentMethodDomainListParams < ::Stripe::RequestParams # The domain name that this payment method domain object represents. attr_accessor :domain_name # Whether this payment method domain is enabled. If the domain is not enabled, payment methods will not appear in Elements or Embedded Checkout diff --git a/lib/stripe/params/payment_method_domain_retrieve_params.rb b/lib/stripe/params/payment_method_domain_retrieve_params.rb index 60bb4c81..a8f831fe 100644 --- a/lib/stripe/params/payment_method_domain_retrieve_params.rb +++ b/lib/stripe/params/payment_method_domain_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PaymentMethodDomainRetrieveParams < Stripe::RequestParams + class PaymentMethodDomainRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/payment_method_domain_update_params.rb b/lib/stripe/params/payment_method_domain_update_params.rb index f76c040a..961c2e10 100644 --- a/lib/stripe/params/payment_method_domain_update_params.rb +++ b/lib/stripe/params/payment_method_domain_update_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PaymentMethodDomainUpdateParams < Stripe::RequestParams + class PaymentMethodDomainUpdateParams < ::Stripe::RequestParams # Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements or Embedded Checkout. attr_accessor :enabled # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/payment_method_domain_validate_params.rb b/lib/stripe/params/payment_method_domain_validate_params.rb index aeec09af..2bc1ce28 100644 --- a/lib/stripe/params/payment_method_domain_validate_params.rb +++ b/lib/stripe/params/payment_method_domain_validate_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PaymentMethodDomainValidateParams < Stripe::RequestParams + class PaymentMethodDomainValidateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/payment_method_list_params.rb b/lib/stripe/params/payment_method_list_params.rb index 1c41d486..b81e5be3 100644 --- a/lib/stripe/params/payment_method_list_params.rb +++ b/lib/stripe/params/payment_method_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PaymentMethodListParams < Stripe::RequestParams + class PaymentMethodListParams < ::Stripe::RequestParams # The ID of the customer whose PaymentMethods will be retrieved. attr_accessor :customer # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. @@ -13,7 +13,7 @@ module Stripe attr_accessor :limit # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. attr_accessor :starting_after - # An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request. + # Filters the list by the object `type` field. Unfiltered, the list returns all payment method types except `custom`. If your integration expects only one type of payment method in the response, specify that type value in the request to reduce your payload. attr_accessor :type def initialize( diff --git a/lib/stripe/params/payment_method_retrieve_params.rb b/lib/stripe/params/payment_method_retrieve_params.rb index 29ef6141..e1776548 100644 --- a/lib/stripe/params/payment_method_retrieve_params.rb +++ b/lib/stripe/params/payment_method_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PaymentMethodRetrieveParams < Stripe::RequestParams + class PaymentMethodRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/payment_method_update_params.rb b/lib/stripe/params/payment_method_update_params.rb index 43cfd43a..de4ecc49 100644 --- a/lib/stripe/params/payment_method_update_params.rb +++ b/lib/stripe/params/payment_method_update_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class PaymentMethodUpdateParams < Stripe::RequestParams - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class PaymentMethodUpdateParams < ::Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -54,8 +54,8 @@ module Stripe end end - class Card < Stripe::RequestParams - class Networks < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Networks < ::Stripe::RequestParams # The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card. attr_accessor :preferred @@ -77,7 +77,7 @@ module Stripe end end - class UsBankAccount < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # Bank account holder type. attr_accessor :account_holder_type # Bank account type. diff --git a/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb b/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb new file mode 100644 index 00000000..90200774 --- /dev/null +++ b/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + class PaymentRecordReportPaymentAttemptCanceledParams < ::Stripe::RequestParams + # When the reported payment was canceled. Measured in seconds since the Unix epoch. + attr_accessor :canceled_at + # Specifies which fields in the response should be expanded. + attr_accessor :expand + # Attribute for param field metadata + attr_accessor :metadata + + def initialize(canceled_at: nil, expand: nil, metadata: nil) + @canceled_at = canceled_at + @expand = expand + @metadata = metadata + end + end +end diff --git a/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb b/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb new file mode 100644 index 00000000..aea5e36f --- /dev/null +++ b/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + class PaymentRecordReportPaymentAttemptFailedParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + attr_accessor :expand + # When the reported payment failed. Measured in seconds since the Unix epoch. + attr_accessor :failed_at + # Attribute for param field metadata + attr_accessor :metadata + + def initialize(expand: nil, failed_at: nil, metadata: nil) + @expand = expand + @failed_at = failed_at + @metadata = metadata + end + end +end diff --git a/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb b/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb new file mode 100644 index 00000000..0620801d --- /dev/null +++ b/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + class PaymentRecordReportPaymentAttemptGuaranteedParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + attr_accessor :expand + # When the reported payment was guaranteed. Measured in seconds since the Unix epoch. + attr_accessor :guaranteed_at + # Attribute for param field metadata + attr_accessor :metadata + + def initialize(expand: nil, guaranteed_at: nil, metadata: nil) + @expand = expand + @guaranteed_at = guaranteed_at + @metadata = metadata + end + end +end diff --git a/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb b/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb new file mode 100644 index 00000000..c5e2bce4 --- /dev/null +++ b/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb @@ -0,0 +1,93 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + class PaymentRecordReportPaymentAttemptInformationalParams < ::Stripe::RequestParams + class CustomerDetails < ::Stripe::RequestParams + # The customer who made the payment. + attr_accessor :customer + # The customer's phone number. + attr_accessor :email + # The customer's name. + attr_accessor :name + # The customer's phone number. + attr_accessor :phone + + def initialize(customer: nil, email: nil, name: nil, phone: nil) + @customer = customer + @email = email + @name = name + @phone = phone + end + end + + class ShippingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + attr_accessor :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_accessor :country + # Address line 1, such as the street, PO Box, or company name. + attr_accessor :line1 + # Address line 2, such as the apartment, suite, unit, or building. + attr_accessor :line2 + # ZIP or postal code. + attr_accessor :postal_code + # State, county, province, or region. + attr_accessor :state + + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ) + @city = city + @country = country + @line1 = line1 + @line2 = line2 + @postal_code = postal_code + @state = state + end + end + # The physical shipping address. + attr_accessor :address + # The shipping recipient's name. + attr_accessor :name + # The shipping recipient's phone number. + attr_accessor :phone + + def initialize(address: nil, name: nil, phone: nil) + @address = address + @name = name + @phone = phone + end + end + # Customer information for this payment. + attr_accessor :customer_details + # An arbitrary string attached to the object. Often useful for displaying to users. + attr_accessor :description + # Specifies which fields in the response should be expanded. + attr_accessor :expand + # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + attr_accessor :metadata + # Shipping information for this payment. + attr_accessor :shipping_details + + def initialize( + customer_details: nil, + description: nil, + expand: nil, + metadata: nil, + shipping_details: nil + ) + @customer_details = customer_details + @description = description + @expand = expand + @metadata = metadata + @shipping_details = shipping_details + end + end +end diff --git a/lib/stripe/params/payment_record_report_payment_attempt_params.rb b/lib/stripe/params/payment_record_report_payment_attempt_params.rb new file mode 100644 index 00000000..68605040 --- /dev/null +++ b/lib/stripe/params/payment_record_report_payment_attempt_params.rb @@ -0,0 +1,186 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + class PaymentRecordReportPaymentAttemptParams < ::Stripe::RequestParams + class Failed < ::Stripe::RequestParams + # When the reported payment failed. Measured in seconds since the Unix epoch. + attr_accessor :failed_at + + def initialize(failed_at: nil) + @failed_at = failed_at + end + end + + class Guaranteed < ::Stripe::RequestParams + # When the reported payment was guaranteed. Measured in seconds since the Unix epoch. + attr_accessor :guaranteed_at + + def initialize(guaranteed_at: nil) + @guaranteed_at = guaranteed_at + end + end + + class PaymentMethodDetails < ::Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + attr_accessor :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_accessor :country + # Address line 1, such as the street, PO Box, or company name. + attr_accessor :line1 + # Address line 2, such as the apartment, suite, unit, or building. + attr_accessor :line2 + # ZIP or postal code. + attr_accessor :postal_code + # State, county, province, or region. + attr_accessor :state + + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ) + @city = city + @country = country + @line1 = line1 + @line2 = line2 + @postal_code = postal_code + @state = state + end + end + # The billing address associated with the method of payment. + attr_accessor :address + # The billing email associated with the method of payment. + attr_accessor :email + # The billing name associated with the method of payment. + attr_accessor :name + # The billing phone number associated with the method of payment. + attr_accessor :phone + + def initialize(address: nil, email: nil, name: nil, phone: nil) + @address = address + @email = email + @name = name + @phone = phone + end + end + + class Custom < ::Stripe::RequestParams + # Display name for the custom (user-defined) payment method type used to make this payment. + attr_accessor :display_name + # The custom payment method type associated with this payment. + attr_accessor :type + + def initialize(display_name: nil, type: nil) + @display_name = display_name + @type = type + end + end + # The billing details associated with the method of payment. + attr_accessor :billing_details + # Information about the custom (user-defined) payment method used to make this payment. + attr_accessor :custom + # ID of the Stripe Payment Method used to make this payment. + attr_accessor :payment_method + # The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type. + attr_accessor :type + + def initialize(billing_details: nil, custom: nil, payment_method: nil, type: nil) + @billing_details = billing_details + @custom = custom + @payment_method = payment_method + @type = type + end + end + + class ShippingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + attr_accessor :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_accessor :country + # Address line 1, such as the street, PO Box, or company name. + attr_accessor :line1 + # Address line 2, such as the apartment, suite, unit, or building. + attr_accessor :line2 + # ZIP or postal code. + attr_accessor :postal_code + # State, county, province, or region. + attr_accessor :state + + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ) + @city = city + @country = country + @line1 = line1 + @line2 = line2 + @postal_code = postal_code + @state = state + end + end + # The physical shipping address. + attr_accessor :address + # The shipping recipient's name. + attr_accessor :name + # The shipping recipient's phone number. + attr_accessor :phone + + def initialize(address: nil, name: nil, phone: nil) + @address = address + @name = name + @phone = phone + end + end + # An arbitrary string attached to the object. Often useful for displaying to users. + attr_accessor :description + # Specifies which fields in the response should be expanded. + attr_accessor :expand + # Information about the payment attempt failure. + attr_accessor :failed + # Information about the payment attempt guarantee. + attr_accessor :guaranteed + # When the reported payment was initiated. Measured in seconds since the Unix epoch. + attr_accessor :initiated_at + # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + attr_accessor :metadata + # The outcome of the reported payment. + attr_accessor :outcome + # Information about the Payment Method debited for this payment. + attr_accessor :payment_method_details + # Shipping information for this payment. + attr_accessor :shipping_details + + def initialize( + description: nil, + expand: nil, + failed: nil, + guaranteed: nil, + initiated_at: nil, + metadata: nil, + outcome: nil, + payment_method_details: nil, + shipping_details: nil + ) + @description = description + @expand = expand + @failed = failed + @guaranteed = guaranteed + @initiated_at = initiated_at + @metadata = metadata + @outcome = outcome + @payment_method_details = payment_method_details + @shipping_details = shipping_details + end + end +end diff --git a/lib/stripe/params/payment_record_report_payment_params.rb b/lib/stripe/params/payment_record_report_payment_params.rb new file mode 100644 index 00000000..beca01be --- /dev/null +++ b/lib/stripe/params/payment_record_report_payment_params.rb @@ -0,0 +1,252 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + class PaymentRecordReportPaymentParams < ::Stripe::RequestParams + class AmountRequested < ::Stripe::RequestParams + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_accessor :currency + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + attr_accessor :value + + def initialize(currency: nil, value: nil) + @currency = currency + @value = value + end + end + + class CustomerDetails < ::Stripe::RequestParams + # The customer who made the payment. + attr_accessor :customer + # The customer's phone number. + attr_accessor :email + # The customer's name. + attr_accessor :name + # The customer's phone number. + attr_accessor :phone + + def initialize(customer: nil, email: nil, name: nil, phone: nil) + @customer = customer + @email = email + @name = name + @phone = phone + end + end + + class Failed < ::Stripe::RequestParams + # When the reported payment failed. Measured in seconds since the Unix epoch. + attr_accessor :failed_at + + def initialize(failed_at: nil) + @failed_at = failed_at + end + end + + class Guaranteed < ::Stripe::RequestParams + # When the reported payment was guaranteed. Measured in seconds since the Unix epoch. + attr_accessor :guaranteed_at + + def initialize(guaranteed_at: nil) + @guaranteed_at = guaranteed_at + end + end + + class PaymentMethodDetails < ::Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + attr_accessor :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_accessor :country + # Address line 1, such as the street, PO Box, or company name. + attr_accessor :line1 + # Address line 2, such as the apartment, suite, unit, or building. + attr_accessor :line2 + # ZIP or postal code. + attr_accessor :postal_code + # State, county, province, or region. + attr_accessor :state + + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ) + @city = city + @country = country + @line1 = line1 + @line2 = line2 + @postal_code = postal_code + @state = state + end + end + # The billing address associated with the method of payment. + attr_accessor :address + # The billing email associated with the method of payment. + attr_accessor :email + # The billing name associated with the method of payment. + attr_accessor :name + # The billing phone number associated with the method of payment. + attr_accessor :phone + + def initialize(address: nil, email: nil, name: nil, phone: nil) + @address = address + @email = email + @name = name + @phone = phone + end + end + + class Custom < ::Stripe::RequestParams + # Display name for the custom (user-defined) payment method type used to make this payment. + attr_accessor :display_name + # The custom payment method type associated with this payment. + attr_accessor :type + + def initialize(display_name: nil, type: nil) + @display_name = display_name + @type = type + end + end + # The billing details associated with the method of payment. + attr_accessor :billing_details + # Information about the custom (user-defined) payment method used to make this payment. + attr_accessor :custom + # ID of the Stripe Payment Method used to make this payment. + attr_accessor :payment_method + # The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type. + attr_accessor :type + + def initialize(billing_details: nil, custom: nil, payment_method: nil, type: nil) + @billing_details = billing_details + @custom = custom + @payment_method = payment_method + @type = type + end + end + + class ProcessorDetails < ::Stripe::RequestParams + class Custom < ::Stripe::RequestParams + # An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID. + attr_accessor :payment_reference + + def initialize(payment_reference: nil) + @payment_reference = payment_reference + end + end + # Information about the custom processor used to make this payment. + attr_accessor :custom + # The type of the processor details. An additional hash is included on processor_details with a name matching this value. It contains additional information specific to the processor. + attr_accessor :type + + def initialize(custom: nil, type: nil) + @custom = custom + @type = type + end + end + + class ShippingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + attr_accessor :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_accessor :country + # Address line 1, such as the street, PO Box, or company name. + attr_accessor :line1 + # Address line 2, such as the apartment, suite, unit, or building. + attr_accessor :line2 + # ZIP or postal code. + attr_accessor :postal_code + # State, county, province, or region. + attr_accessor :state + + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ) + @city = city + @country = country + @line1 = line1 + @line2 = line2 + @postal_code = postal_code + @state = state + end + end + # The physical shipping address. + attr_accessor :address + # The shipping recipient's name. + attr_accessor :name + # The shipping recipient's phone number. + attr_accessor :phone + + def initialize(address: nil, name: nil, phone: nil) + @address = address + @name = name + @phone = phone + end + end + # The amount you initially requested for this payment. + attr_accessor :amount_requested + # Customer information for this payment. + attr_accessor :customer_details + # Indicates whether the customer was present in your checkout flow during this payment. + attr_accessor :customer_presence + # An arbitrary string attached to the object. Often useful for displaying to users. + attr_accessor :description + # Specifies which fields in the response should be expanded. + attr_accessor :expand + # Information about the payment attempt failure. + attr_accessor :failed + # Information about the payment attempt guarantee. + attr_accessor :guaranteed + # When the reported payment was initiated. Measured in seconds since the Unix epoch. + attr_accessor :initiated_at + # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + attr_accessor :metadata + # The outcome of the reported payment. + attr_accessor :outcome + # Information about the Payment Method debited for this payment. + attr_accessor :payment_method_details + # Processor information for this payment. + attr_accessor :processor_details + # Shipping information for this payment. + attr_accessor :shipping_details + + def initialize( + amount_requested: nil, + customer_details: nil, + customer_presence: nil, + description: nil, + expand: nil, + failed: nil, + guaranteed: nil, + initiated_at: nil, + metadata: nil, + outcome: nil, + payment_method_details: nil, + processor_details: nil, + shipping_details: nil + ) + @amount_requested = amount_requested + @customer_details = customer_details + @customer_presence = customer_presence + @description = description + @expand = expand + @failed = failed + @guaranteed = guaranteed + @initiated_at = initiated_at + @metadata = metadata + @outcome = outcome + @payment_method_details = payment_method_details + @processor_details = processor_details + @shipping_details = shipping_details + end + end +end diff --git a/lib/stripe/params/payment_record_report_refund_params.rb b/lib/stripe/params/payment_record_report_refund_params.rb new file mode 100644 index 00000000..814aa918 --- /dev/null +++ b/lib/stripe/params/payment_record_report_refund_params.rb @@ -0,0 +1,79 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + class PaymentRecordReportRefundParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_accessor :currency + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + attr_accessor :value + + def initialize(currency: nil, value: nil) + @currency = currency + @value = value + end + end + + class ProcessorDetails < ::Stripe::RequestParams + class Custom < ::Stripe::RequestParams + # A reference to the external refund. This field must be unique across all refunds. + attr_accessor :refund_reference + + def initialize(refund_reference: nil) + @refund_reference = refund_reference + end + end + # Information about the custom processor used to make this refund. + attr_accessor :custom + # The type of the processor details. An additional hash is included on processor_details with a name matching this value. It contains additional information specific to the processor. + attr_accessor :type + + def initialize(custom: nil, type: nil) + @custom = custom + @type = type + end + end + + class Refunded < ::Stripe::RequestParams + # When the reported refund completed. Measured in seconds since the Unix epoch. + attr_accessor :refunded_at + + def initialize(refunded_at: nil) + @refunded_at = refunded_at + end + end + # A positive integer in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) representing how much of this payment to refund. Can refund only up to the remaining, unrefunded amount of the payment. + attr_accessor :amount + # Specifies which fields in the response should be expanded. + attr_accessor :expand + # When the reported refund was initiated. Measured in seconds since the Unix epoch. + attr_accessor :initiated_at + # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + attr_accessor :metadata + # The outcome of the reported refund. + attr_accessor :outcome + # Processor information for this refund. + attr_accessor :processor_details + # Information about the payment attempt refund. + attr_accessor :refunded + + def initialize( + amount: nil, + expand: nil, + initiated_at: nil, + metadata: nil, + outcome: nil, + processor_details: nil, + refunded: nil + ) + @amount = amount + @expand = expand + @initiated_at = initiated_at + @metadata = metadata + @outcome = outcome + @processor_details = processor_details + @refunded = refunded + end + end +end diff --git a/lib/stripe/params/payment_record_retrieve_params.rb b/lib/stripe/params/payment_record_retrieve_params.rb new file mode 100644 index 00000000..a5b99f28 --- /dev/null +++ b/lib/stripe/params/payment_record_retrieve_params.rb @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + class PaymentRecordRetrieveParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + attr_accessor :expand + + def initialize(expand: nil) + @expand = expand + end + end +end diff --git a/lib/stripe/params/payout_cancel_params.rb b/lib/stripe/params/payout_cancel_params.rb index 7ac65476..9ac77648 100644 --- a/lib/stripe/params/payout_cancel_params.rb +++ b/lib/stripe/params/payout_cancel_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PayoutCancelParams < Stripe::RequestParams + class PayoutCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/payout_create_params.rb b/lib/stripe/params/payout_create_params.rb index e09e2bce..eac4449b 100644 --- a/lib/stripe/params/payout_create_params.rb +++ b/lib/stripe/params/payout_create_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PayoutCreateParams < Stripe::RequestParams + class PayoutCreateParams < ::Stripe::RequestParams # A positive integer in cents representing how much to payout. attr_accessor :amount # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). diff --git a/lib/stripe/params/payout_list_params.rb b/lib/stripe/params/payout_list_params.rb index 48b520df..538f1096 100644 --- a/lib/stripe/params/payout_list_params.rb +++ b/lib/stripe/params/payout_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class PayoutListParams < Stripe::RequestParams - class ArrivalDate < Stripe::RequestParams + class PayoutListParams < ::Stripe::RequestParams + class ArrivalDate < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) @@ -21,7 +21,7 @@ module Stripe end end - class Created < Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/payout_retrieve_params.rb b/lib/stripe/params/payout_retrieve_params.rb index 2382c5bf..3f72f94c 100644 --- a/lib/stripe/params/payout_retrieve_params.rb +++ b/lib/stripe/params/payout_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PayoutRetrieveParams < Stripe::RequestParams + class PayoutRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/payout_reverse_params.rb b/lib/stripe/params/payout_reverse_params.rb index 86340285..f072ab6e 100644 --- a/lib/stripe/params/payout_reverse_params.rb +++ b/lib/stripe/params/payout_reverse_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PayoutReverseParams < Stripe::RequestParams + class PayoutReverseParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. diff --git a/lib/stripe/params/payout_update_params.rb b/lib/stripe/params/payout_update_params.rb index 5f7729b2..726690d1 100644 --- a/lib/stripe/params/payout_update_params.rb +++ b/lib/stripe/params/payout_update_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PayoutUpdateParams < Stripe::RequestParams + class PayoutUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. diff --git a/lib/stripe/params/plan_create_params.rb b/lib/stripe/params/plan_create_params.rb index f02830b7..31fb9aeb 100644 --- a/lib/stripe/params/plan_create_params.rb +++ b/lib/stripe/params/plan_create_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class PlanCreateParams < Stripe::RequestParams - class Product < Stripe::RequestParams + class PlanCreateParams < ::Stripe::RequestParams + class Product < ::Stripe::RequestParams # Whether the product is currently available for purchase. Defaults to `true`. attr_accessor :active # The identifier for the product. Must be unique. If not provided, an identifier will be randomly generated. @@ -40,7 +40,7 @@ module Stripe end end - class Tier < Stripe::RequestParams + class Tier < ::Stripe::RequestParams # The flat billing amount for an entire tier, regardless of the number of units in the tier. attr_accessor :flat_amount # Same as `flat_amount`, but accepts a decimal value representing an integer in the minor units of the currency. Only one of `flat_amount` and `flat_amount_decimal` can be set. @@ -67,7 +67,7 @@ module Stripe end end - class TransformUsage < Stripe::RequestParams + class TransformUsage < ::Stripe::RequestParams # Divide usage by this number. attr_accessor :divide_by # After division, either round the result `up` or `down`. diff --git a/lib/stripe/params/plan_delete_params.rb b/lib/stripe/params/plan_delete_params.rb index 955f11f4..16993797 100644 --- a/lib/stripe/params/plan_delete_params.rb +++ b/lib/stripe/params/plan_delete_params.rb @@ -2,5 +2,5 @@ # frozen_string_literal: true module Stripe - class PlanDeleteParams < Stripe::RequestParams; end + class PlanDeleteParams < ::Stripe::RequestParams; end end diff --git a/lib/stripe/params/plan_list_params.rb b/lib/stripe/params/plan_list_params.rb index e8463d16..1ce8bfe6 100644 --- a/lib/stripe/params/plan_list_params.rb +++ b/lib/stripe/params/plan_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class PlanListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class PlanListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/plan_retrieve_params.rb b/lib/stripe/params/plan_retrieve_params.rb index b30d77bd..5b33cbfc 100644 --- a/lib/stripe/params/plan_retrieve_params.rb +++ b/lib/stripe/params/plan_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PlanRetrieveParams < Stripe::RequestParams + class PlanRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/plan_update_params.rb b/lib/stripe/params/plan_update_params.rb index 7122b69f..26403f61 100644 --- a/lib/stripe/params/plan_update_params.rb +++ b/lib/stripe/params/plan_update_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PlanUpdateParams < Stripe::RequestParams + class PlanUpdateParams < ::Stripe::RequestParams # Whether the plan is currently available for new subscriptions. attr_accessor :active # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/price_create_params.rb b/lib/stripe/params/price_create_params.rb index 292b4f27..afd8f206 100644 --- a/lib/stripe/params/price_create_params.rb +++ b/lib/stripe/params/price_create_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class PriceCreateParams < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams - class CustomUnitAmount < Stripe::RequestParams + class PriceCreateParams < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams + class CustomUnitAmount < ::Stripe::RequestParams # Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`. attr_accessor :enabled # The maximum unit amount the customer can specify for this item. @@ -22,7 +22,7 @@ module Stripe end end - class Tier < Stripe::RequestParams + class Tier < ::Stripe::RequestParams # The flat billing amount for an entire tier, regardless of the number of units in the tier. attr_accessor :flat_amount # Same as `flat_amount`, but accepts a decimal value representing an integer in the minor units of the currency. Only one of `flat_amount` and `flat_amount_decimal` can be set. @@ -74,7 +74,7 @@ module Stripe end end - class CustomUnitAmount < Stripe::RequestParams + class CustomUnitAmount < ::Stripe::RequestParams # Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`. attr_accessor :enabled # The maximum unit amount the customer can specify for this item. @@ -92,7 +92,7 @@ module Stripe end end - class ProductData < Stripe::RequestParams + class ProductData < ::Stripe::RequestParams # Whether the product is currently available for purchase. Defaults to `true`. attr_accessor :active # The identifier for the product. Must be unique. If not provided, an identifier will be randomly generated. @@ -129,7 +129,7 @@ module Stripe end end - class Recurring < Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. attr_accessor :interval # The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks). @@ -156,7 +156,7 @@ module Stripe end end - class Tier < Stripe::RequestParams + class Tier < ::Stripe::RequestParams # The flat billing amount for an entire tier, regardless of the number of units in the tier. attr_accessor :flat_amount # Same as `flat_amount`, but accepts a decimal value representing an integer in the minor units of the currency. Only one of `flat_amount` and `flat_amount_decimal` can be set. @@ -183,7 +183,7 @@ module Stripe end end - class TransformQuantity < Stripe::RequestParams + class TransformQuantity < ::Stripe::RequestParams # Divide usage by this number. attr_accessor :divide_by # After division, either round the result `up` or `down`. diff --git a/lib/stripe/params/price_list_params.rb b/lib/stripe/params/price_list_params.rb index ff725844..38cff22e 100644 --- a/lib/stripe/params/price_list_params.rb +++ b/lib/stripe/params/price_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class PriceListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class PriceListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) @@ -21,7 +21,7 @@ module Stripe end end - class Recurring < Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Filter by billing frequency. Either `day`, `week`, `month` or `year`. attr_accessor :interval # Filter by the price's meter. diff --git a/lib/stripe/params/price_retrieve_params.rb b/lib/stripe/params/price_retrieve_params.rb index c92af74a..682d4e54 100644 --- a/lib/stripe/params/price_retrieve_params.rb +++ b/lib/stripe/params/price_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PriceRetrieveParams < Stripe::RequestParams + class PriceRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/price_search_params.rb b/lib/stripe/params/price_search_params.rb index 799789df..95add4d0 100644 --- a/lib/stripe/params/price_search_params.rb +++ b/lib/stripe/params/price_search_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PriceSearchParams < Stripe::RequestParams + class PriceSearchParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. diff --git a/lib/stripe/params/price_update_params.rb b/lib/stripe/params/price_update_params.rb index 9959d4c3..30a672ea 100644 --- a/lib/stripe/params/price_update_params.rb +++ b/lib/stripe/params/price_update_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class PriceUpdateParams < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams - class CustomUnitAmount < Stripe::RequestParams + class PriceUpdateParams < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams + class CustomUnitAmount < ::Stripe::RequestParams # Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`. attr_accessor :enabled # The maximum unit amount the customer can specify for this item. @@ -22,7 +22,7 @@ module Stripe end end - class Tier < Stripe::RequestParams + class Tier < ::Stripe::RequestParams # The flat billing amount for an entire tier, regardless of the number of units in the tier. attr_accessor :flat_amount # Same as `flat_amount`, but accepts a decimal value representing an integer in the minor units of the currency. Only one of `flat_amount` and `flat_amount_decimal` can be set. diff --git a/lib/stripe/params/product_create_params.rb b/lib/stripe/params/product_create_params.rb index d81fe512..4b363312 100644 --- a/lib/stripe/params/product_create_params.rb +++ b/lib/stripe/params/product_create_params.rb @@ -2,10 +2,10 @@ # frozen_string_literal: true module Stripe - class ProductCreateParams < Stripe::RequestParams - class DefaultPriceData < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams - class CustomUnitAmount < Stripe::RequestParams + class ProductCreateParams < ::Stripe::RequestParams + class DefaultPriceData < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams + class CustomUnitAmount < ::Stripe::RequestParams # Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`. attr_accessor :enabled # The maximum unit amount the customer can specify for this item. @@ -23,7 +23,7 @@ module Stripe end end - class Tier < Stripe::RequestParams + class Tier < ::Stripe::RequestParams # The flat billing amount for an entire tier, regardless of the number of units in the tier. attr_accessor :flat_amount # Same as `flat_amount`, but accepts a decimal value representing an integer in the minor units of the currency. Only one of `flat_amount` and `flat_amount_decimal` can be set. @@ -75,7 +75,7 @@ module Stripe end end - class CustomUnitAmount < Stripe::RequestParams + class CustomUnitAmount < ::Stripe::RequestParams # Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`. attr_accessor :enabled # The maximum unit amount the customer can specify for this item. @@ -93,7 +93,7 @@ module Stripe end end - class Recurring < Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. attr_accessor :interval # The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks). @@ -142,7 +142,7 @@ module Stripe end end - class MarketingFeature < Stripe::RequestParams + class MarketingFeature < ::Stripe::RequestParams # The marketing feature name. Up to 80 characters long. attr_accessor :name @@ -151,7 +151,7 @@ module Stripe end end - class PackageDimensions < Stripe::RequestParams + class PackageDimensions < ::Stripe::RequestParams # Height, in inches. Maximum precision is 2 decimal places. attr_accessor :height # Length, in inches. Maximum precision is 2 decimal places. diff --git a/lib/stripe/params/product_delete_params.rb b/lib/stripe/params/product_delete_params.rb index 67b5bdee..1be97207 100644 --- a/lib/stripe/params/product_delete_params.rb +++ b/lib/stripe/params/product_delete_params.rb @@ -2,5 +2,5 @@ # frozen_string_literal: true module Stripe - class ProductDeleteParams < Stripe::RequestParams; end + class ProductDeleteParams < ::Stripe::RequestParams; end end diff --git a/lib/stripe/params/product_feature_create_params.rb b/lib/stripe/params/product_feature_create_params.rb index 81173339..2c09160e 100644 --- a/lib/stripe/params/product_feature_create_params.rb +++ b/lib/stripe/params/product_feature_create_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class ProductFeatureCreateParams < Stripe::RequestParams + class ProductFeatureCreateParams < ::Stripe::RequestParams # The ID of the [Feature](https://stripe.com/docs/api/entitlements/feature) object attached to this product. attr_accessor :entitlement_feature # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/product_feature_delete_params.rb b/lib/stripe/params/product_feature_delete_params.rb index 1abea067..d3ecd7db 100644 --- a/lib/stripe/params/product_feature_delete_params.rb +++ b/lib/stripe/params/product_feature_delete_params.rb @@ -2,5 +2,5 @@ # frozen_string_literal: true module Stripe - class ProductFeatureDeleteParams < Stripe::RequestParams; end + class ProductFeatureDeleteParams < ::Stripe::RequestParams; end end diff --git a/lib/stripe/params/product_feature_list_params.rb b/lib/stripe/params/product_feature_list_params.rb index 8c6213b7..82415266 100644 --- a/lib/stripe/params/product_feature_list_params.rb +++ b/lib/stripe/params/product_feature_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class ProductFeatureListParams < Stripe::RequestParams + class ProductFeatureListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/product_feature_retrieve_params.rb b/lib/stripe/params/product_feature_retrieve_params.rb index 15b7d897..76d9b9a5 100644 --- a/lib/stripe/params/product_feature_retrieve_params.rb +++ b/lib/stripe/params/product_feature_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class ProductFeatureRetrieveParams < Stripe::RequestParams + class ProductFeatureRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/product_list_params.rb b/lib/stripe/params/product_list_params.rb index b19bb3ad..4aa0e709 100644 --- a/lib/stripe/params/product_list_params.rb +++ b/lib/stripe/params/product_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class ProductListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ProductListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/product_retrieve_params.rb b/lib/stripe/params/product_retrieve_params.rb index e9a4143a..8fc3483e 100644 --- a/lib/stripe/params/product_retrieve_params.rb +++ b/lib/stripe/params/product_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class ProductRetrieveParams < Stripe::RequestParams + class ProductRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/product_search_params.rb b/lib/stripe/params/product_search_params.rb index d86caab6..2a7c82e2 100644 --- a/lib/stripe/params/product_search_params.rb +++ b/lib/stripe/params/product_search_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class ProductSearchParams < Stripe::RequestParams + class ProductSearchParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. diff --git a/lib/stripe/params/product_update_params.rb b/lib/stripe/params/product_update_params.rb index 5e084e6e..0b3dbb91 100644 --- a/lib/stripe/params/product_update_params.rb +++ b/lib/stripe/params/product_update_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class ProductUpdateParams < Stripe::RequestParams - class MarketingFeature < Stripe::RequestParams + class ProductUpdateParams < ::Stripe::RequestParams + class MarketingFeature < ::Stripe::RequestParams # The marketing feature name. Up to 80 characters long. attr_accessor :name @@ -12,7 +12,7 @@ module Stripe end end - class PackageDimensions < Stripe::RequestParams + class PackageDimensions < ::Stripe::RequestParams # Height, in inches. Maximum precision is 2 decimal places. attr_accessor :height # Length, in inches. Maximum precision is 2 decimal places. diff --git a/lib/stripe/params/promotion_code_create_params.rb b/lib/stripe/params/promotion_code_create_params.rb index 8cc2e695..fcdb82e9 100644 --- a/lib/stripe/params/promotion_code_create_params.rb +++ b/lib/stripe/params/promotion_code_create_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class PromotionCodeCreateParams < Stripe::RequestParams - class Promotion < Stripe::RequestParams + class PromotionCodeCreateParams < ::Stripe::RequestParams + class Promotion < ::Stripe::RequestParams # If promotion `type` is `coupon`, the coupon for this promotion code. attr_accessor :coupon # Specifies the type of promotion. @@ -15,8 +15,8 @@ module Stripe end end - class Restrictions < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class Restrictions < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work). attr_accessor :minimum_amount diff --git a/lib/stripe/params/promotion_code_list_params.rb b/lib/stripe/params/promotion_code_list_params.rb index 2f2ff297..da08a2a2 100644 --- a/lib/stripe/params/promotion_code_list_params.rb +++ b/lib/stripe/params/promotion_code_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class PromotionCodeListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class PromotionCodeListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/promotion_code_retrieve_params.rb b/lib/stripe/params/promotion_code_retrieve_params.rb index 9a305f4b..656ae25c 100644 --- a/lib/stripe/params/promotion_code_retrieve_params.rb +++ b/lib/stripe/params/promotion_code_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class PromotionCodeRetrieveParams < Stripe::RequestParams + class PromotionCodeRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/promotion_code_update_params.rb b/lib/stripe/params/promotion_code_update_params.rb index 50d06e00..af9f4af1 100644 --- a/lib/stripe/params/promotion_code_update_params.rb +++ b/lib/stripe/params/promotion_code_update_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class PromotionCodeUpdateParams < Stripe::RequestParams - class Restrictions < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class PromotionCodeUpdateParams < ::Stripe::RequestParams + class Restrictions < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work). attr_accessor :minimum_amount diff --git a/lib/stripe/params/quote_accept_params.rb b/lib/stripe/params/quote_accept_params.rb index f753edc6..91499339 100644 --- a/lib/stripe/params/quote_accept_params.rb +++ b/lib/stripe/params/quote_accept_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class QuoteAcceptParams < Stripe::RequestParams + class QuoteAcceptParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/quote_cancel_params.rb b/lib/stripe/params/quote_cancel_params.rb index 5271bad7..ffd83e56 100644 --- a/lib/stripe/params/quote_cancel_params.rb +++ b/lib/stripe/params/quote_cancel_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class QuoteCancelParams < Stripe::RequestParams + class QuoteCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb b/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb index a824d701..3e4656b6 100644 --- a/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb +++ b/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class QuoteComputedUpfrontLineItemsListParams < Stripe::RequestParams + class QuoteComputedUpfrontLineItemsListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/quote_create_params.rb b/lib/stripe/params/quote_create_params.rb index 0a71d4b7..f84b915e 100644 --- a/lib/stripe/params/quote_create_params.rb +++ b/lib/stripe/params/quote_create_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class QuoteCreateParams < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class QuoteCreateParams < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -26,7 +26,7 @@ module Stripe end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -41,7 +41,7 @@ module Stripe end end - class FromQuote < Stripe::RequestParams + class FromQuote < ::Stripe::RequestParams # Whether this quote is a revision of the previous quote. attr_accessor :is_revision # The `id` of the quote that will be cloned. @@ -53,8 +53,8 @@ module Stripe end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -76,8 +76,8 @@ module Stripe end end - class LineItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -92,8 +92,8 @@ module Stripe end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. attr_accessor :interval # The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks). @@ -153,9 +153,9 @@ module Stripe end end - class SubscriptionData < Stripe::RequestParams - class BillingMode < Stripe::RequestParams - class Flexible < Stripe::RequestParams + class SubscriptionData < ::Stripe::RequestParams + class BillingMode < ::Stripe::RequestParams + class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. attr_accessor :proration_discounts @@ -199,7 +199,7 @@ module Stripe end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when the invoice is paid. If no amount is set, the full amount is transferred. There cannot be any line items with recurring prices when using this field. attr_accessor :amount # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. There must be at least 1 line item with a recurring price to use this field. diff --git a/lib/stripe/params/quote_finalize_quote_params.rb b/lib/stripe/params/quote_finalize_quote_params.rb index f55f30e4..8249d004 100644 --- a/lib/stripe/params/quote_finalize_quote_params.rb +++ b/lib/stripe/params/quote_finalize_quote_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class QuoteFinalizeQuoteParams < Stripe::RequestParams + class QuoteFinalizeQuoteParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # A future timestamp on which the quote will be canceled if in `open` or `draft` status. Measured in seconds since the Unix epoch. diff --git a/lib/stripe/params/quote_line_item_list_params.rb b/lib/stripe/params/quote_line_item_list_params.rb index 33ab9820..87f970e9 100644 --- a/lib/stripe/params/quote_line_item_list_params.rb +++ b/lib/stripe/params/quote_line_item_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class QuoteLineItemListParams < Stripe::RequestParams + class QuoteLineItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb b/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb index a3d2f05a..679bfdef 100644 --- a/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb +++ b/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class QuoteListComputedUpfrontLineItemsParams < Stripe::RequestParams + class QuoteListComputedUpfrontLineItemsParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/quote_list_line_items_params.rb b/lib/stripe/params/quote_list_line_items_params.rb index 35eaf8fd..9ea9bb6d 100644 --- a/lib/stripe/params/quote_list_line_items_params.rb +++ b/lib/stripe/params/quote_list_line_items_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class QuoteListLineItemsParams < Stripe::RequestParams + class QuoteListLineItemsParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/quote_list_params.rb b/lib/stripe/params/quote_list_params.rb index ef68c798..cf248d87 100644 --- a/lib/stripe/params/quote_list_params.rb +++ b/lib/stripe/params/quote_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class QuoteListParams < Stripe::RequestParams + class QuoteListParams < ::Stripe::RequestParams # The ID of the customer whose quotes will be retrieved. attr_accessor :customer # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. diff --git a/lib/stripe/params/quote_pdf_params.rb b/lib/stripe/params/quote_pdf_params.rb index ba1f037b..3e75af3c 100644 --- a/lib/stripe/params/quote_pdf_params.rb +++ b/lib/stripe/params/quote_pdf_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class QuotePdfParams < Stripe::RequestParams + class QuotePdfParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/quote_retrieve_params.rb b/lib/stripe/params/quote_retrieve_params.rb index abfe547b..44c52853 100644 --- a/lib/stripe/params/quote_retrieve_params.rb +++ b/lib/stripe/params/quote_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class QuoteRetrieveParams < Stripe::RequestParams + class QuoteRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/quote_update_params.rb b/lib/stripe/params/quote_update_params.rb index d9357424..b006ebc4 100644 --- a/lib/stripe/params/quote_update_params.rb +++ b/lib/stripe/params/quote_update_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class QuoteUpdateParams < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class QuoteUpdateParams < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -26,7 +26,7 @@ module Stripe end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -41,8 +41,8 @@ module Stripe end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -64,8 +64,8 @@ module Stripe end end - class LineItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -80,8 +80,8 @@ module Stripe end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. attr_accessor :interval # The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks). @@ -151,7 +151,7 @@ module Stripe end end - class SubscriptionData < Stripe::RequestParams + class SubscriptionData < ::Stripe::RequestParams # The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. attr_accessor :description # When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. The `effective_date` is ignored if it is in the past when the quote is accepted. @@ -169,7 +169,7 @@ module Stripe end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when the invoice is paid. If no amount is set, the full amount is transferred. There cannot be any line items with recurring prices when using this field. attr_accessor :amount # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. There must be at least 1 line item with a recurring price to use this field. diff --git a/lib/stripe/params/radar/early_fraud_warning_list_params.rb b/lib/stripe/params/radar/early_fraud_warning_list_params.rb index 09de5c3f..67a0d5a3 100644 --- a/lib/stripe/params/radar/early_fraud_warning_list_params.rb +++ b/lib/stripe/params/radar/early_fraud_warning_list_params.rb @@ -3,8 +3,8 @@ module Stripe module Radar - class EarlyFraudWarningListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class EarlyFraudWarningListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb b/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb index 9939c9b4..8a7b4e56 100644 --- a/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb +++ b/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Radar - class EarlyFraudWarningRetrieveParams < Stripe::RequestParams + class EarlyFraudWarningRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/radar/value_list_create_params.rb b/lib/stripe/params/radar/value_list_create_params.rb index a8f4e15a..d9d4d86a 100644 --- a/lib/stripe/params/radar/value_list_create_params.rb +++ b/lib/stripe/params/radar/value_list_create_params.rb @@ -3,7 +3,7 @@ module Stripe module Radar - class ValueListCreateParams < Stripe::RequestParams + class ValueListCreateParams < ::Stripe::RequestParams # The name of the value list for use in rules. attr_accessor :alias # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/radar/value_list_delete_params.rb b/lib/stripe/params/radar/value_list_delete_params.rb index ebd9cac1..e61aee1b 100644 --- a/lib/stripe/params/radar/value_list_delete_params.rb +++ b/lib/stripe/params/radar/value_list_delete_params.rb @@ -3,6 +3,6 @@ module Stripe module Radar - class ValueListDeleteParams < Stripe::RequestParams; end + class ValueListDeleteParams < ::Stripe::RequestParams; end end end diff --git a/lib/stripe/params/radar/value_list_item_create_params.rb b/lib/stripe/params/radar/value_list_item_create_params.rb index b64eca74..8e96c8b3 100644 --- a/lib/stripe/params/radar/value_list_item_create_params.rb +++ b/lib/stripe/params/radar/value_list_item_create_params.rb @@ -3,7 +3,7 @@ module Stripe module Radar - class ValueListItemCreateParams < Stripe::RequestParams + class ValueListItemCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # The value of the item (whose type must match the type of the parent value list). diff --git a/lib/stripe/params/radar/value_list_item_delete_params.rb b/lib/stripe/params/radar/value_list_item_delete_params.rb index a7a40e90..e864f2d8 100644 --- a/lib/stripe/params/radar/value_list_item_delete_params.rb +++ b/lib/stripe/params/radar/value_list_item_delete_params.rb @@ -3,6 +3,6 @@ module Stripe module Radar - class ValueListItemDeleteParams < Stripe::RequestParams; end + class ValueListItemDeleteParams < ::Stripe::RequestParams; end end end diff --git a/lib/stripe/params/radar/value_list_item_list_params.rb b/lib/stripe/params/radar/value_list_item_list_params.rb index 96e2961f..b94e46da 100644 --- a/lib/stripe/params/radar/value_list_item_list_params.rb +++ b/lib/stripe/params/radar/value_list_item_list_params.rb @@ -3,8 +3,8 @@ module Stripe module Radar - class ValueListItemListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ValueListItemListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/radar/value_list_item_retrieve_params.rb b/lib/stripe/params/radar/value_list_item_retrieve_params.rb index f66dd458..e7f60266 100644 --- a/lib/stripe/params/radar/value_list_item_retrieve_params.rb +++ b/lib/stripe/params/radar/value_list_item_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Radar - class ValueListItemRetrieveParams < Stripe::RequestParams + class ValueListItemRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/radar/value_list_list_params.rb b/lib/stripe/params/radar/value_list_list_params.rb index 08aada7f..2bb6f299 100644 --- a/lib/stripe/params/radar/value_list_list_params.rb +++ b/lib/stripe/params/radar/value_list_list_params.rb @@ -3,8 +3,8 @@ module Stripe module Radar - class ValueListListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ValueListListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/radar/value_list_retrieve_params.rb b/lib/stripe/params/radar/value_list_retrieve_params.rb index 8120b553..e9039b00 100644 --- a/lib/stripe/params/radar/value_list_retrieve_params.rb +++ b/lib/stripe/params/radar/value_list_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Radar - class ValueListRetrieveParams < Stripe::RequestParams + class ValueListRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/radar/value_list_update_params.rb b/lib/stripe/params/radar/value_list_update_params.rb index 17dfc410..a8526460 100644 --- a/lib/stripe/params/radar/value_list_update_params.rb +++ b/lib/stripe/params/radar/value_list_update_params.rb @@ -3,7 +3,7 @@ module Stripe module Radar - class ValueListUpdateParams < Stripe::RequestParams + class ValueListUpdateParams < ::Stripe::RequestParams # The name of the value list for use in rules. attr_accessor :alias # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/refund_cancel_params.rb b/lib/stripe/params/refund_cancel_params.rb index 1865715f..00b7e983 100644 --- a/lib/stripe/params/refund_cancel_params.rb +++ b/lib/stripe/params/refund_cancel_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class RefundCancelParams < Stripe::RequestParams + class RefundCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/refund_create_params.rb b/lib/stripe/params/refund_create_params.rb index 5155849d..c0530e7b 100644 --- a/lib/stripe/params/refund_create_params.rb +++ b/lib/stripe/params/refund_create_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class RefundCreateParams < Stripe::RequestParams + class RefundCreateParams < ::Stripe::RequestParams # Attribute for param field amount attr_accessor :amount # The identifier of the charge to refund. diff --git a/lib/stripe/params/refund_expire_params.rb b/lib/stripe/params/refund_expire_params.rb index 9d03b5ee..99d4b188 100644 --- a/lib/stripe/params/refund_expire_params.rb +++ b/lib/stripe/params/refund_expire_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class RefundExpireParams < Stripe::RequestParams + class RefundExpireParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/refund_list_params.rb b/lib/stripe/params/refund_list_params.rb index 5aea520b..9a58a714 100644 --- a/lib/stripe/params/refund_list_params.rb +++ b/lib/stripe/params/refund_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class RefundListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class RefundListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/refund_retrieve_params.rb b/lib/stripe/params/refund_retrieve_params.rb index 04658f98..3f18b3ef 100644 --- a/lib/stripe/params/refund_retrieve_params.rb +++ b/lib/stripe/params/refund_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class RefundRetrieveParams < Stripe::RequestParams + class RefundRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/refund_update_params.rb b/lib/stripe/params/refund_update_params.rb index 5ec72a1e..7274ee5d 100644 --- a/lib/stripe/params/refund_update_params.rb +++ b/lib/stripe/params/refund_update_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class RefundUpdateParams < Stripe::RequestParams + class RefundUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. diff --git a/lib/stripe/params/reporting/report_run_create_params.rb b/lib/stripe/params/reporting/report_run_create_params.rb index 469804c5..ddc8f183 100644 --- a/lib/stripe/params/reporting/report_run_create_params.rb +++ b/lib/stripe/params/reporting/report_run_create_params.rb @@ -3,8 +3,8 @@ module Stripe module Reporting - class ReportRunCreateParams < Stripe::RequestParams - class Parameters < Stripe::RequestParams + class ReportRunCreateParams < ::Stripe::RequestParams + class Parameters < ::Stripe::RequestParams # The set of report columns to include in the report output. If omitted, the Report Type is run with its default column set. attr_accessor :columns # Connected account ID to filter for in the report run. diff --git a/lib/stripe/params/reporting/report_run_list_params.rb b/lib/stripe/params/reporting/report_run_list_params.rb index 0678c5fe..345a7e06 100644 --- a/lib/stripe/params/reporting/report_run_list_params.rb +++ b/lib/stripe/params/reporting/report_run_list_params.rb @@ -3,8 +3,8 @@ module Stripe module Reporting - class ReportRunListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ReportRunListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/reporting/report_run_retrieve_params.rb b/lib/stripe/params/reporting/report_run_retrieve_params.rb index 92312b3e..9762e5f1 100644 --- a/lib/stripe/params/reporting/report_run_retrieve_params.rb +++ b/lib/stripe/params/reporting/report_run_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Reporting - class ReportRunRetrieveParams < Stripe::RequestParams + class ReportRunRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/reporting/report_type_list_params.rb b/lib/stripe/params/reporting/report_type_list_params.rb index 11d4720c..4ebe7463 100644 --- a/lib/stripe/params/reporting/report_type_list_params.rb +++ b/lib/stripe/params/reporting/report_type_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Reporting - class ReportTypeListParams < Stripe::RequestParams + class ReportTypeListParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/reporting/report_type_retrieve_params.rb b/lib/stripe/params/reporting/report_type_retrieve_params.rb index 70a9951a..3a03cb7c 100644 --- a/lib/stripe/params/reporting/report_type_retrieve_params.rb +++ b/lib/stripe/params/reporting/report_type_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Reporting - class ReportTypeRetrieveParams < Stripe::RequestParams + class ReportTypeRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/review_approve_params.rb b/lib/stripe/params/review_approve_params.rb index 62a445ea..8f5c3b3d 100644 --- a/lib/stripe/params/review_approve_params.rb +++ b/lib/stripe/params/review_approve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class ReviewApproveParams < Stripe::RequestParams + class ReviewApproveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/review_list_params.rb b/lib/stripe/params/review_list_params.rb index d9cfbae0..a1568bb0 100644 --- a/lib/stripe/params/review_list_params.rb +++ b/lib/stripe/params/review_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class ReviewListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ReviewListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/review_retrieve_params.rb b/lib/stripe/params/review_retrieve_params.rb index 5a30fd73..eeb5c81f 100644 --- a/lib/stripe/params/review_retrieve_params.rb +++ b/lib/stripe/params/review_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class ReviewRetrieveParams < Stripe::RequestParams + class ReviewRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/setup_attempt_list_params.rb b/lib/stripe/params/setup_attempt_list_params.rb index cf700a86..f8d5fd09 100644 --- a/lib/stripe/params/setup_attempt_list_params.rb +++ b/lib/stripe/params/setup_attempt_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class SetupAttemptListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class SetupAttemptListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/setup_intent_cancel_params.rb b/lib/stripe/params/setup_intent_cancel_params.rb index 0de22d43..eaa603d6 100644 --- a/lib/stripe/params/setup_intent_cancel_params.rb +++ b/lib/stripe/params/setup_intent_cancel_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class SetupIntentCancelParams < Stripe::RequestParams + class SetupIntentCancelParams < ::Stripe::RequestParams # Reason for canceling this SetupIntent. Possible values are: `abandoned`, `requested_by_customer`, or `duplicate` attr_accessor :cancellation_reason # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/setup_intent_confirm_params.rb b/lib/stripe/params/setup_intent_confirm_params.rb index 2caffb4b..c40a5b3c 100644 --- a/lib/stripe/params/setup_intent_confirm_params.rb +++ b/lib/stripe/params/setup_intent_confirm_params.rb @@ -2,12 +2,12 @@ # frozen_string_literal: true module Stripe - class SetupIntentConfirmParams < Stripe::RequestParams - class MandateData < Stripe::RequestParams - class CustomerAcceptance < Stripe::RequestParams - class Offline < Stripe::RequestParams; end + class SetupIntentConfirmParams < ::Stripe::RequestParams + class MandateData < ::Stripe::RequestParams + class CustomerAcceptance < ::Stripe::RequestParams + class Offline < ::Stripe::RequestParams; end - class Online < Stripe::RequestParams + class Online < ::Stripe::RequestParams # The IP address from which the Mandate was accepted by the customer. attr_accessor :ip_address # The user agent of the browser from which the Mandate was accepted by the customer. @@ -42,8 +42,8 @@ module Stripe end end - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. attr_accessor :account_number # Institution number of the customer's bank. @@ -58,13 +58,13 @@ module Stripe end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. attr_accessor :account_number # Bank-State-Branch number of the bank account. @@ -76,7 +76,7 @@ module Stripe end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. attr_accessor :account_number # Sort code of the bank account. (e.g., `10-20-30`) @@ -88,11 +88,11 @@ module Stripe end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -142,9 +142,9 @@ module Stripe end end - class Blik < Stripe::RequestParams; end + class Blik < ::Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) attr_accessor :tax_id @@ -153,11 +153,11 @@ module Stripe end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Eps < ::Stripe::RequestParams # The customer's bank. attr_accessor :bank @@ -166,7 +166,7 @@ module Stripe end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction attr_accessor :account_holder_type # The customer's bank. @@ -178,10 +178,10 @@ module Stripe end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. attr_accessor :bank @@ -190,11 +190,11 @@ module Stripe end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. attr_accessor :day # The month of birth, between 1 and 12. @@ -216,14 +216,14 @@ module Stripe end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. attr_accessor :funding @@ -232,7 +232,7 @@ module Stripe end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. attr_accessor :account_holder_name # The account number for the bank account. @@ -263,9 +263,9 @@ module Stripe end end - class Oxxo < Stripe::RequestParams; end + class Oxxo < ::Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class P24 < ::Stripe::RequestParams # The customer's bank. attr_accessor :bank @@ -274,14 +274,14 @@ module Stripe end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. attr_accessor :session @@ -290,11 +290,11 @@ module Stripe end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. attr_accessor :iban @@ -303,7 +303,7 @@ module Stripe end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. attr_accessor :country @@ -312,10 +312,10 @@ module Stripe end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. attr_accessor :account_holder_type # Account number of the bank account. @@ -342,8 +342,8 @@ module Stripe end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. attr_accessor :acss_debit # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. @@ -566,9 +566,9 @@ module Stripe end end - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # A URL for custom mandate text to render during confirmation step. # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. @@ -610,10 +610,10 @@ module Stripe end end - class AmazonPay < Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end - class BacsDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. attr_accessor :reference_prefix @@ -629,8 +629,8 @@ module Stripe end end - class Card < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. attr_accessor :amount # One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. @@ -677,9 +677,9 @@ module Stripe end end - class ThreeDSecure < Stripe::RequestParams - class NetworkOptions < Stripe::RequestParams - class CartesBancaires < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams + class NetworkOptions < ::Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams # The cryptogram calculation algorithm used by the card Issuer's ACS # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. # messageExtension: CB-AVALGO @@ -776,10 +776,10 @@ module Stripe end end - class CardPresent < Stripe::RequestParams; end + class CardPresent < ::Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class OnDemand < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class OnDemand < ::Stripe::RequestParams # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. attr_accessor :average_amount # The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc. @@ -806,8 +806,8 @@ module Stripe end end - class Subscription < Stripe::RequestParams - class NextBilling < Stripe::RequestParams + class Subscription < ::Stripe::RequestParams + class NextBilling < ::Stripe::RequestParams # The amount of the next charge for the subscription. attr_accessor :amount # The date of the next charge for the subscription in YYYY-MM-DD format. @@ -860,7 +860,7 @@ module Stripe end end - class Link < Stripe::RequestParams + class Link < ::Stripe::RequestParams # [Deprecated] This is a legacy parameter that no longer has any function. attr_accessor :persistent_token @@ -869,7 +869,7 @@ module Stripe end end - class Paypal < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer. attr_accessor :billing_agreement_id @@ -878,8 +878,8 @@ module Stripe end end - class SepaDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. attr_accessor :reference_prefix @@ -895,9 +895,9 @@ module Stripe end end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. attr_accessor :account_subcategories @@ -922,7 +922,7 @@ module Stripe end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # The method used to collect offline mandate customer acceptance. attr_accessor :collection_method @@ -931,7 +931,7 @@ module Stripe end end - class Networks < Stripe::RequestParams + class Networks < ::Stripe::RequestParams # Triggers validations to run across the selected networks attr_accessor :requested diff --git a/lib/stripe/params/setup_intent_create_params.rb b/lib/stripe/params/setup_intent_create_params.rb index d36559ab..8ac2e14a 100644 --- a/lib/stripe/params/setup_intent_create_params.rb +++ b/lib/stripe/params/setup_intent_create_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class SetupIntentCreateParams < Stripe::RequestParams - class AutomaticPaymentMethods < Stripe::RequestParams + class SetupIntentCreateParams < ::Stripe::RequestParams + class AutomaticPaymentMethods < ::Stripe::RequestParams # Controls whether this SetupIntent will accept redirect-based payment methods. # # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/setup_intents/confirm) this SetupIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the setup. @@ -17,11 +17,11 @@ module Stripe end end - class MandateData < Stripe::RequestParams - class CustomerAcceptance < Stripe::RequestParams - class Offline < Stripe::RequestParams; end + class MandateData < ::Stripe::RequestParams + class CustomerAcceptance < ::Stripe::RequestParams + class Offline < ::Stripe::RequestParams; end - class Online < Stripe::RequestParams + class Online < ::Stripe::RequestParams # The IP address from which the Mandate was accepted by the customer. attr_accessor :ip_address # The user agent of the browser from which the Mandate was accepted by the customer. @@ -56,8 +56,8 @@ module Stripe end end - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. attr_accessor :account_number # Institution number of the customer's bank. @@ -72,13 +72,13 @@ module Stripe end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. attr_accessor :account_number # Bank-State-Branch number of the bank account. @@ -90,7 +90,7 @@ module Stripe end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. attr_accessor :account_number # Sort code of the bank account. (e.g., `10-20-30`) @@ -102,11 +102,11 @@ module Stripe end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -156,9 +156,9 @@ module Stripe end end - class Blik < Stripe::RequestParams; end + class Blik < ::Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) attr_accessor :tax_id @@ -167,11 +167,11 @@ module Stripe end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Eps < ::Stripe::RequestParams # The customer's bank. attr_accessor :bank @@ -180,7 +180,7 @@ module Stripe end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction attr_accessor :account_holder_type # The customer's bank. @@ -192,10 +192,10 @@ module Stripe end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. attr_accessor :bank @@ -204,11 +204,11 @@ module Stripe end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. attr_accessor :day # The month of birth, between 1 and 12. @@ -230,14 +230,14 @@ module Stripe end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. attr_accessor :funding @@ -246,7 +246,7 @@ module Stripe end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. attr_accessor :account_holder_name # The account number for the bank account. @@ -277,9 +277,9 @@ module Stripe end end - class Oxxo < Stripe::RequestParams; end + class Oxxo < ::Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class P24 < ::Stripe::RequestParams # The customer's bank. attr_accessor :bank @@ -288,14 +288,14 @@ module Stripe end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. attr_accessor :session @@ -304,11 +304,11 @@ module Stripe end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. attr_accessor :iban @@ -317,7 +317,7 @@ module Stripe end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. attr_accessor :country @@ -326,10 +326,10 @@ module Stripe end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. attr_accessor :account_holder_type # Account number of the bank account. @@ -356,8 +356,8 @@ module Stripe end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. attr_accessor :acss_debit # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. @@ -580,9 +580,9 @@ module Stripe end end - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # A URL for custom mandate text to render during confirmation step. # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. @@ -624,10 +624,10 @@ module Stripe end end - class AmazonPay < Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end - class BacsDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. attr_accessor :reference_prefix @@ -643,8 +643,8 @@ module Stripe end end - class Card < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. attr_accessor :amount # One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. @@ -691,9 +691,9 @@ module Stripe end end - class ThreeDSecure < Stripe::RequestParams - class NetworkOptions < Stripe::RequestParams - class CartesBancaires < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams + class NetworkOptions < ::Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams # The cryptogram calculation algorithm used by the card Issuer's ACS # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. # messageExtension: CB-AVALGO @@ -790,10 +790,10 @@ module Stripe end end - class CardPresent < Stripe::RequestParams; end + class CardPresent < ::Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class OnDemand < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class OnDemand < ::Stripe::RequestParams # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. attr_accessor :average_amount # The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc. @@ -820,8 +820,8 @@ module Stripe end end - class Subscription < Stripe::RequestParams - class NextBilling < Stripe::RequestParams + class Subscription < ::Stripe::RequestParams + class NextBilling < ::Stripe::RequestParams # The amount of the next charge for the subscription. attr_accessor :amount # The date of the next charge for the subscription in YYYY-MM-DD format. @@ -874,7 +874,7 @@ module Stripe end end - class Link < Stripe::RequestParams + class Link < ::Stripe::RequestParams # [Deprecated] This is a legacy parameter that no longer has any function. attr_accessor :persistent_token @@ -883,7 +883,7 @@ module Stripe end end - class Paypal < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer. attr_accessor :billing_agreement_id @@ -892,8 +892,8 @@ module Stripe end end - class SepaDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. attr_accessor :reference_prefix @@ -909,9 +909,9 @@ module Stripe end end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. attr_accessor :account_subcategories @@ -936,7 +936,7 @@ module Stripe end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # The method used to collect offline mandate customer acceptance. attr_accessor :collection_method @@ -945,7 +945,7 @@ module Stripe end end - class Networks < Stripe::RequestParams + class Networks < ::Stripe::RequestParams # Triggers validations to run across the selected networks attr_accessor :requested @@ -1020,7 +1020,7 @@ module Stripe end end - class SingleUse < Stripe::RequestParams + class SingleUse < ::Stripe::RequestParams # Amount the customer is granting permission to collect later. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). attr_accessor :amount # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). @@ -1049,6 +1049,8 @@ module Stripe attr_accessor :customer # An arbitrary string attached to the object. Often useful for displaying to users. attr_accessor :description + # The list of payment method types to exclude from use with this SetupIntent. + attr_accessor :excluded_payment_method_types # Specifies which fields in the response should be expanded. attr_accessor :expand # Indicates the directions of money movement for which this payment method is intended to be used. @@ -1090,6 +1092,7 @@ module Stripe confirmation_token: nil, customer: nil, description: nil, + excluded_payment_method_types: nil, expand: nil, flow_directions: nil, mandate_data: nil, @@ -1111,6 +1114,7 @@ module Stripe @confirmation_token = confirmation_token @customer = customer @description = description + @excluded_payment_method_types = excluded_payment_method_types @expand = expand @flow_directions = flow_directions @mandate_data = mandate_data diff --git a/lib/stripe/params/setup_intent_list_params.rb b/lib/stripe/params/setup_intent_list_params.rb index a1d6f21d..c2d46d8b 100644 --- a/lib/stripe/params/setup_intent_list_params.rb +++ b/lib/stripe/params/setup_intent_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class SetupIntentListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class SetupIntentListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/setup_intent_retrieve_params.rb b/lib/stripe/params/setup_intent_retrieve_params.rb index 8ce5f74f..220c1f88 100644 --- a/lib/stripe/params/setup_intent_retrieve_params.rb +++ b/lib/stripe/params/setup_intent_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class SetupIntentRetrieveParams < Stripe::RequestParams + class SetupIntentRetrieveParams < ::Stripe::RequestParams # The client secret of the SetupIntent. We require this string if you use a publishable key to retrieve the SetupIntent. attr_accessor :client_secret # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/setup_intent_update_params.rb b/lib/stripe/params/setup_intent_update_params.rb index c0c1d8e6..e43c9438 100644 --- a/lib/stripe/params/setup_intent_update_params.rb +++ b/lib/stripe/params/setup_intent_update_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class SetupIntentUpdateParams < Stripe::RequestParams - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class SetupIntentUpdateParams < ::Stripe::RequestParams + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. attr_accessor :account_number # Institution number of the customer's bank. @@ -19,13 +19,13 @@ module Stripe end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. attr_accessor :account_number # Bank-State-Branch number of the bank account. @@ -37,7 +37,7 @@ module Stripe end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. attr_accessor :account_number # Sort code of the bank account. (e.g., `10-20-30`) @@ -49,11 +49,11 @@ module Stripe end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -103,9 +103,9 @@ module Stripe end end - class Blik < Stripe::RequestParams; end + class Blik < ::Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) attr_accessor :tax_id @@ -114,11 +114,11 @@ module Stripe end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Eps < ::Stripe::RequestParams # The customer's bank. attr_accessor :bank @@ -127,7 +127,7 @@ module Stripe end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction attr_accessor :account_holder_type # The customer's bank. @@ -139,10 +139,10 @@ module Stripe end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. attr_accessor :bank @@ -151,11 +151,11 @@ module Stripe end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. attr_accessor :day # The month of birth, between 1 and 12. @@ -177,14 +177,14 @@ module Stripe end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. attr_accessor :funding @@ -193,7 +193,7 @@ module Stripe end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. attr_accessor :account_holder_name # The account number for the bank account. @@ -224,9 +224,9 @@ module Stripe end end - class Oxxo < Stripe::RequestParams; end + class Oxxo < ::Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class P24 < ::Stripe::RequestParams # The customer's bank. attr_accessor :bank @@ -235,14 +235,14 @@ module Stripe end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. attr_accessor :session @@ -251,11 +251,11 @@ module Stripe end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. attr_accessor :iban @@ -264,7 +264,7 @@ module Stripe end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. attr_accessor :country @@ -273,10 +273,10 @@ module Stripe end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. attr_accessor :account_holder_type # Account number of the bank account. @@ -303,8 +303,8 @@ module Stripe end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. attr_accessor :acss_debit # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. @@ -527,9 +527,9 @@ module Stripe end end - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # A URL for custom mandate text to render during confirmation step. # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. @@ -571,10 +571,10 @@ module Stripe end end - class AmazonPay < Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end - class BacsDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. attr_accessor :reference_prefix @@ -590,8 +590,8 @@ module Stripe end end - class Card < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. attr_accessor :amount # One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. @@ -638,9 +638,9 @@ module Stripe end end - class ThreeDSecure < Stripe::RequestParams - class NetworkOptions < Stripe::RequestParams - class CartesBancaires < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams + class NetworkOptions < ::Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams # The cryptogram calculation algorithm used by the card Issuer's ACS # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. # messageExtension: CB-AVALGO @@ -737,10 +737,10 @@ module Stripe end end - class CardPresent < Stripe::RequestParams; end + class CardPresent < ::Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class OnDemand < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class OnDemand < ::Stripe::RequestParams # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. attr_accessor :average_amount # The maximum value you may charge a customer per purchase. You can use a value across your customer base, or segment based on customer type, country, etc. @@ -767,8 +767,8 @@ module Stripe end end - class Subscription < Stripe::RequestParams - class NextBilling < Stripe::RequestParams + class Subscription < ::Stripe::RequestParams + class NextBilling < ::Stripe::RequestParams # The amount of the next charge for the subscription. attr_accessor :amount # The date of the next charge for the subscription in YYYY-MM-DD format. @@ -821,7 +821,7 @@ module Stripe end end - class Link < Stripe::RequestParams + class Link < ::Stripe::RequestParams # [Deprecated] This is a legacy parameter that no longer has any function. attr_accessor :persistent_token @@ -830,7 +830,7 @@ module Stripe end end - class Paypal < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer. attr_accessor :billing_agreement_id @@ -839,8 +839,8 @@ module Stripe end end - class SepaDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. attr_accessor :reference_prefix @@ -856,9 +856,9 @@ module Stripe end end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. attr_accessor :account_subcategories @@ -883,7 +883,7 @@ module Stripe end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # The method used to collect offline mandate customer acceptance. attr_accessor :collection_method @@ -892,7 +892,7 @@ module Stripe end end - class Networks < Stripe::RequestParams + class Networks < ::Stripe::RequestParams # Triggers validations to run across the selected networks attr_accessor :requested @@ -976,6 +976,8 @@ module Stripe attr_accessor :customer # An arbitrary string attached to the object. Often useful for displaying to users. attr_accessor :description + # The list of payment method types to exclude from use with this SetupIntent. + attr_accessor :excluded_payment_method_types # Specifies which fields in the response should be expanded. attr_accessor :expand # Indicates the directions of money movement for which this payment method is intended to be used. @@ -1000,6 +1002,7 @@ module Stripe attach_to_self: nil, customer: nil, description: nil, + excluded_payment_method_types: nil, expand: nil, flow_directions: nil, metadata: nil, @@ -1012,6 +1015,7 @@ module Stripe @attach_to_self = attach_to_self @customer = customer @description = description + @excluded_payment_method_types = excluded_payment_method_types @expand = expand @flow_directions = flow_directions @metadata = metadata diff --git a/lib/stripe/params/setup_intent_verify_microdeposits_params.rb b/lib/stripe/params/setup_intent_verify_microdeposits_params.rb index a489ea77..25430e17 100644 --- a/lib/stripe/params/setup_intent_verify_microdeposits_params.rb +++ b/lib/stripe/params/setup_intent_verify_microdeposits_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class SetupIntentVerifyMicrodepositsParams < Stripe::RequestParams + class SetupIntentVerifyMicrodepositsParams < ::Stripe::RequestParams # Two positive integers, in *cents*, equal to the values of the microdeposits sent to the bank account. attr_accessor :amounts # A six-character code starting with SM present in the microdeposit sent to the bank account. diff --git a/lib/stripe/params/shipping_rate_create_params.rb b/lib/stripe/params/shipping_rate_create_params.rb index 1f983121..5995d0b8 100644 --- a/lib/stripe/params/shipping_rate_create_params.rb +++ b/lib/stripe/params/shipping_rate_create_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class ShippingRateCreateParams < Stripe::RequestParams - class DeliveryEstimate < Stripe::RequestParams - class Maximum < Stripe::RequestParams + class ShippingRateCreateParams < ::Stripe::RequestParams + class DeliveryEstimate < ::Stripe::RequestParams + class Maximum < ::Stripe::RequestParams # A unit of time. attr_accessor :unit # Must be greater than 0. @@ -16,7 +16,7 @@ module Stripe end end - class Minimum < Stripe::RequestParams + class Minimum < ::Stripe::RequestParams # A unit of time. attr_accessor :unit # Must be greater than 0. @@ -38,8 +38,8 @@ module Stripe end end - class FixedAmount < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class FixedAmount < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A non-negative integer in cents representing how much to charge. attr_accessor :amount # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. diff --git a/lib/stripe/params/shipping_rate_list_params.rb b/lib/stripe/params/shipping_rate_list_params.rb index a85471b2..050eff6e 100644 --- a/lib/stripe/params/shipping_rate_list_params.rb +++ b/lib/stripe/params/shipping_rate_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class ShippingRateListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ShippingRateListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/shipping_rate_retrieve_params.rb b/lib/stripe/params/shipping_rate_retrieve_params.rb index 22a367eb..455a0c26 100644 --- a/lib/stripe/params/shipping_rate_retrieve_params.rb +++ b/lib/stripe/params/shipping_rate_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class ShippingRateRetrieveParams < Stripe::RequestParams + class ShippingRateRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/shipping_rate_update_params.rb b/lib/stripe/params/shipping_rate_update_params.rb index b459c3e9..3fe71dd0 100644 --- a/lib/stripe/params/shipping_rate_update_params.rb +++ b/lib/stripe/params/shipping_rate_update_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class ShippingRateUpdateParams < Stripe::RequestParams - class FixedAmount < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class ShippingRateUpdateParams < ::Stripe::RequestParams + class FixedAmount < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A non-negative integer in cents representing how much to charge. attr_accessor :amount # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. diff --git a/lib/stripe/params/sigma/scheduled_query_run_list_params.rb b/lib/stripe/params/sigma/scheduled_query_run_list_params.rb index 27ae5d23..666750df 100644 --- a/lib/stripe/params/sigma/scheduled_query_run_list_params.rb +++ b/lib/stripe/params/sigma/scheduled_query_run_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Sigma - class ScheduledQueryRunListParams < Stripe::RequestParams + class ScheduledQueryRunListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb b/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb index ccd6b2a8..7341b655 100644 --- a/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb +++ b/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Sigma - class ScheduledQueryRunRetrieveParams < Stripe::RequestParams + class ScheduledQueryRunRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/source_create_params.rb b/lib/stripe/params/source_create_params.rb index 05946dc3..ec3ed87a 100644 --- a/lib/stripe/params/source_create_params.rb +++ b/lib/stripe/params/source_create_params.rb @@ -2,10 +2,10 @@ # frozen_string_literal: true module Stripe - class SourceCreateParams < Stripe::RequestParams - class Mandate < Stripe::RequestParams - class Acceptance < Stripe::RequestParams - class Offline < Stripe::RequestParams + class SourceCreateParams < ::Stripe::RequestParams + class Mandate < ::Stripe::RequestParams + class Acceptance < ::Stripe::RequestParams + class Offline < ::Stripe::RequestParams # An email to contact you with if a copy of the mandate is requested, required if `type` is `offline`. attr_accessor :contact_email @@ -14,7 +14,7 @@ module Stripe end end - class Online < Stripe::RequestParams + class Online < ::Stripe::RequestParams # The Unix timestamp (in seconds) when the mandate was accepted or refused by the customer. attr_accessor :date # The IP address from which the mandate was accepted or refused by the customer. @@ -87,8 +87,8 @@ module Stripe end end - class Owner < Stripe::RequestParams - class Address < Stripe::RequestParams + class Owner < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -135,7 +135,7 @@ module Stripe end end - class Receiver < Stripe::RequestParams + class Receiver < ::Stripe::RequestParams # The method Stripe should use to request information needed to process a refund or mispayment. Either `email` (an email is sent directly to the customer) or `manual` (a `source.refund_attributes_required` event is sent to your webhooks endpoint). Refer to each payment method's documentation to learn which refund attributes may be required. attr_accessor :refund_attributes_method @@ -144,7 +144,7 @@ module Stripe end end - class Redirect < Stripe::RequestParams + class Redirect < ::Stripe::RequestParams # The URL you provide to redirect the customer back to you after they authenticated their payment. It can use your application URI scheme in the context of a mobile application. attr_accessor :return_url @@ -153,8 +153,8 @@ module Stripe end end - class SourceOrder < Stripe::RequestParams - class Item < Stripe::RequestParams + class SourceOrder < ::Stripe::RequestParams + class Item < ::Stripe::RequestParams # Attribute for param field amount attr_accessor :amount # Attribute for param field currency @@ -185,8 +185,8 @@ module Stripe end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). diff --git a/lib/stripe/params/source_detach_params.rb b/lib/stripe/params/source_detach_params.rb index 509a2bdc..e28fb670 100644 --- a/lib/stripe/params/source_detach_params.rb +++ b/lib/stripe/params/source_detach_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class SourceDetachParams < Stripe::RequestParams + class SourceDetachParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/source_retrieve_params.rb b/lib/stripe/params/source_retrieve_params.rb index a17b5f91..c91477ab 100644 --- a/lib/stripe/params/source_retrieve_params.rb +++ b/lib/stripe/params/source_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class SourceRetrieveParams < Stripe::RequestParams + class SourceRetrieveParams < ::Stripe::RequestParams # The client secret of the source. Required if a publishable key is used to retrieve the source. attr_accessor :client_secret # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/source_transaction_list_params.rb b/lib/stripe/params/source_transaction_list_params.rb index 0ae95d8d..fa66fffe 100644 --- a/lib/stripe/params/source_transaction_list_params.rb +++ b/lib/stripe/params/source_transaction_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class SourceTransactionListParams < Stripe::RequestParams + class SourceTransactionListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/source_update_params.rb b/lib/stripe/params/source_update_params.rb index 90d6063d..cbbe0538 100644 --- a/lib/stripe/params/source_update_params.rb +++ b/lib/stripe/params/source_update_params.rb @@ -2,10 +2,10 @@ # frozen_string_literal: true module Stripe - class SourceUpdateParams < Stripe::RequestParams - class Mandate < Stripe::RequestParams - class Acceptance < Stripe::RequestParams - class Offline < Stripe::RequestParams + class SourceUpdateParams < ::Stripe::RequestParams + class Mandate < ::Stripe::RequestParams + class Acceptance < ::Stripe::RequestParams + class Offline < ::Stripe::RequestParams # An email to contact you with if a copy of the mandate is requested, required if `type` is `offline`. attr_accessor :contact_email @@ -14,7 +14,7 @@ module Stripe end end - class Online < Stripe::RequestParams + class Online < ::Stripe::RequestParams # The Unix timestamp (in seconds) when the mandate was accepted or refused by the customer. attr_accessor :date # The IP address from which the mandate was accepted or refused by the customer. @@ -87,8 +87,8 @@ module Stripe end end - class Owner < Stripe::RequestParams - class Address < Stripe::RequestParams + class Owner < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -135,8 +135,8 @@ module Stripe end end - class SourceOrder < Stripe::RequestParams - class Item < Stripe::RequestParams + class SourceOrder < ::Stripe::RequestParams + class Item < ::Stripe::RequestParams # Attribute for param field amount attr_accessor :amount # Attribute for param field currency @@ -167,8 +167,8 @@ module Stripe end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). diff --git a/lib/stripe/params/source_verify_params.rb b/lib/stripe/params/source_verify_params.rb index cda10cea..6d9fc46e 100644 --- a/lib/stripe/params/source_verify_params.rb +++ b/lib/stripe/params/source_verify_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class SourceVerifyParams < Stripe::RequestParams + class SourceVerifyParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # The values needed to verify the source. diff --git a/lib/stripe/params/subscription_cancel_params.rb b/lib/stripe/params/subscription_cancel_params.rb index 893fd863..850d0e2a 100644 --- a/lib/stripe/params/subscription_cancel_params.rb +++ b/lib/stripe/params/subscription_cancel_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class SubscriptionCancelParams < Stripe::RequestParams - class CancellationDetails < Stripe::RequestParams + class SubscriptionCancelParams < ::Stripe::RequestParams + class CancellationDetails < ::Stripe::RequestParams # Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user. attr_accessor :comment # The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user. diff --git a/lib/stripe/params/subscription_create_params.rb b/lib/stripe/params/subscription_create_params.rb index d94dc344..8ea41c24 100644 --- a/lib/stripe/params/subscription_create_params.rb +++ b/lib/stripe/params/subscription_create_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class SubscriptionCreateParams < Stripe::RequestParams - class AddInvoiceItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class SubscriptionCreateParams < ::Stripe::RequestParams + class AddInvoiceItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -19,8 +19,8 @@ module Stripe end end - class Period < Stripe::RequestParams - class End < Stripe::RequestParams + class Period < ::Stripe::RequestParams + class End < ::Stripe::RequestParams # A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`. attr_accessor :timestamp # Select how to calculate the end of the invoice item period. @@ -32,7 +32,7 @@ module Stripe end end - class Start < Stripe::RequestParams + class Start < ::Stripe::RequestParams # A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`. attr_accessor :timestamp # Select how to calculate the start of the invoice item period. @@ -54,7 +54,7 @@ module Stripe end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). attr_accessor :currency # The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. @@ -114,8 +114,8 @@ module Stripe end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -137,7 +137,7 @@ module Stripe end end - class BillingCycleAnchorConfig < Stripe::RequestParams + class BillingCycleAnchorConfig < ::Stripe::RequestParams # The day of the month the anchor should be. Ranges from 1 to 31. attr_accessor :day_of_month # The hour of the day the anchor should be. Ranges from 0 to 23. @@ -158,8 +158,8 @@ module Stripe end end - class BillingMode < Stripe::RequestParams - class Flexible < Stripe::RequestParams + class BillingMode < ::Stripe::RequestParams + class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. attr_accessor :proration_discounts @@ -178,7 +178,7 @@ module Stripe end end - class BillingThresholds < Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period attr_accessor :amount_gte # Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. @@ -190,7 +190,7 @@ module Stripe end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -205,8 +205,8 @@ module Stripe end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -228,8 +228,8 @@ module Stripe end end - class Item < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class Item < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) attr_accessor :usage_gte @@ -238,7 +238,7 @@ module Stripe end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -253,8 +253,8 @@ module Stripe end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. attr_accessor :interval # The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks). @@ -332,10 +332,10 @@ module Stripe end end - class PaymentSettings < Stripe::RequestParams - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentSettings < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Transaction type of the mandate. attr_accessor :transaction_type @@ -354,7 +354,7 @@ module Stripe end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Preferred language of the Bancontact authorization page that the customer is redirected to. attr_accessor :preferred_language @@ -363,8 +363,8 @@ module Stripe end end - class Card < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. attr_accessor :amount # One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. @@ -392,9 +392,9 @@ module Stripe end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. attr_accessor :country @@ -423,12 +423,12 @@ module Stripe end end - class Konbini < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams; end + class Konbini < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. attr_accessor :account_subcategories @@ -510,7 +510,7 @@ module Stripe end end - class PendingInvoiceItemInterval < Stripe::RequestParams + class PendingInvoiceItemInterval < ::Stripe::RequestParams # Specifies invoicing frequency. Either `day`, `week`, `month` or `year`. attr_accessor :interval # The number of intervals between invoices. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). @@ -522,7 +522,7 @@ module Stripe end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. attr_accessor :amount_percent # ID of an existing, connected Stripe account. @@ -534,8 +534,8 @@ module Stripe end end - class TrialSettings < Stripe::RequestParams - class EndBehavior < Stripe::RequestParams + class TrialSettings < ::Stripe::RequestParams + class EndBehavior < ::Stripe::RequestParams # Indicates how the subscription should change when the trial ends if the user did not provide a payment method. attr_accessor :missing_payment_method diff --git a/lib/stripe/params/subscription_delete_discount_params.rb b/lib/stripe/params/subscription_delete_discount_params.rb index 51e9fbab..9a14a9e6 100644 --- a/lib/stripe/params/subscription_delete_discount_params.rb +++ b/lib/stripe/params/subscription_delete_discount_params.rb @@ -2,5 +2,5 @@ # frozen_string_literal: true module Stripe - class SubscriptionDeleteDiscountParams < Stripe::RequestParams; end + class SubscriptionDeleteDiscountParams < ::Stripe::RequestParams; end end diff --git a/lib/stripe/params/subscription_item_create_params.rb b/lib/stripe/params/subscription_item_create_params.rb index 7df92397..649803af 100644 --- a/lib/stripe/params/subscription_item_create_params.rb +++ b/lib/stripe/params/subscription_item_create_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class SubscriptionItemCreateParams < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class SubscriptionItemCreateParams < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) attr_accessor :usage_gte @@ -12,7 +12,7 @@ module Stripe end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -27,8 +27,8 @@ module Stripe end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. attr_accessor :interval # The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks). diff --git a/lib/stripe/params/subscription_item_delete_params.rb b/lib/stripe/params/subscription_item_delete_params.rb index 6c0df04e..51da3613 100644 --- a/lib/stripe/params/subscription_item_delete_params.rb +++ b/lib/stripe/params/subscription_item_delete_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class SubscriptionItemDeleteParams < Stripe::RequestParams + class SubscriptionItemDeleteParams < ::Stripe::RequestParams # Delete all usage for the given subscription item. Allowed only when the current plan's `usage_type` is `metered`. attr_accessor :clear_usage # Determines how to handle [prorations](https://stripe.com/docs/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`. diff --git a/lib/stripe/params/subscription_item_list_params.rb b/lib/stripe/params/subscription_item_list_params.rb index f1dfecfa..b0a89b3f 100644 --- a/lib/stripe/params/subscription_item_list_params.rb +++ b/lib/stripe/params/subscription_item_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class SubscriptionItemListParams < Stripe::RequestParams + class SubscriptionItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/subscription_item_retrieve_params.rb b/lib/stripe/params/subscription_item_retrieve_params.rb index 345fbbb5..a01eeb59 100644 --- a/lib/stripe/params/subscription_item_retrieve_params.rb +++ b/lib/stripe/params/subscription_item_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class SubscriptionItemRetrieveParams < Stripe::RequestParams + class SubscriptionItemRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/subscription_item_update_params.rb b/lib/stripe/params/subscription_item_update_params.rb index 62c45154..18979b52 100644 --- a/lib/stripe/params/subscription_item_update_params.rb +++ b/lib/stripe/params/subscription_item_update_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class SubscriptionItemUpdateParams < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class SubscriptionItemUpdateParams < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) attr_accessor :usage_gte @@ -12,7 +12,7 @@ module Stripe end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -27,8 +27,8 @@ module Stripe end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. attr_accessor :interval # The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks). diff --git a/lib/stripe/params/subscription_list_params.rb b/lib/stripe/params/subscription_list_params.rb index baee7b28..8d5e925b 100644 --- a/lib/stripe/params/subscription_list_params.rb +++ b/lib/stripe/params/subscription_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class SubscriptionListParams < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams + class SubscriptionListParams < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams # Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription. attr_accessor :enabled @@ -12,7 +12,7 @@ module Stripe end end - class Created < Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) @@ -30,7 +30,7 @@ module Stripe end end - class CurrentPeriodEnd < Stripe::RequestParams + class CurrentPeriodEnd < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) @@ -48,7 +48,7 @@ module Stripe end end - class CurrentPeriodStart < Stripe::RequestParams + class CurrentPeriodStart < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/subscription_migrate_params.rb b/lib/stripe/params/subscription_migrate_params.rb index c5c77c51..b2193383 100644 --- a/lib/stripe/params/subscription_migrate_params.rb +++ b/lib/stripe/params/subscription_migrate_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class SubscriptionMigrateParams < Stripe::RequestParams - class BillingMode < Stripe::RequestParams - class Flexible < Stripe::RequestParams + class SubscriptionMigrateParams < ::Stripe::RequestParams + class BillingMode < ::Stripe::RequestParams + class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. attr_accessor :proration_discounts diff --git a/lib/stripe/params/subscription_resume_params.rb b/lib/stripe/params/subscription_resume_params.rb index f644e7b0..4e382a0c 100644 --- a/lib/stripe/params/subscription_resume_params.rb +++ b/lib/stripe/params/subscription_resume_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class SubscriptionResumeParams < Stripe::RequestParams + class SubscriptionResumeParams < ::Stripe::RequestParams # The billing cycle anchor that applies when the subscription is resumed. Either `now` or `unchanged`. The default is `now`. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle). attr_accessor :billing_cycle_anchor # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/subscription_retrieve_params.rb b/lib/stripe/params/subscription_retrieve_params.rb index f7fd298a..b3bb8c70 100644 --- a/lib/stripe/params/subscription_retrieve_params.rb +++ b/lib/stripe/params/subscription_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class SubscriptionRetrieveParams < Stripe::RequestParams + class SubscriptionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/subscription_schedule_cancel_params.rb b/lib/stripe/params/subscription_schedule_cancel_params.rb index 3ac37a8a..6727cf3b 100644 --- a/lib/stripe/params/subscription_schedule_cancel_params.rb +++ b/lib/stripe/params/subscription_schedule_cancel_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class SubscriptionScheduleCancelParams < Stripe::RequestParams + class SubscriptionScheduleCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # If the subscription schedule is `active`, indicates if a final invoice will be generated that contains any un-invoiced metered usage and new/pending proration invoice items. Defaults to `true`. diff --git a/lib/stripe/params/subscription_schedule_create_params.rb b/lib/stripe/params/subscription_schedule_create_params.rb index 0d3d1095..6248a665 100644 --- a/lib/stripe/params/subscription_schedule_create_params.rb +++ b/lib/stripe/params/subscription_schedule_create_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class SubscriptionScheduleCreateParams < Stripe::RequestParams - class BillingMode < Stripe::RequestParams - class Flexible < Stripe::RequestParams + class SubscriptionScheduleCreateParams < ::Stripe::RequestParams + class BillingMode < ::Stripe::RequestParams + class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. attr_accessor :proration_discounts @@ -23,9 +23,9 @@ module Stripe end end - class DefaultSettings < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class DefaultSettings < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -47,7 +47,7 @@ module Stripe end end - class BillingThresholds < Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period attr_accessor :amount_gte # Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. @@ -59,8 +59,8 @@ module Stripe end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -85,7 +85,7 @@ module Stripe end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. attr_accessor :amount_percent # ID of an existing, connected Stripe account. @@ -142,9 +142,9 @@ module Stripe end end - class Phase < Stripe::RequestParams - class AddInvoiceItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class Phase < ::Stripe::RequestParams + class AddInvoiceItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -159,8 +159,8 @@ module Stripe end end - class Period < Stripe::RequestParams - class End < Stripe::RequestParams + class Period < ::Stripe::RequestParams + class End < ::Stripe::RequestParams # A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`. attr_accessor :timestamp # Select how to calculate the end of the invoice item period. @@ -172,7 +172,7 @@ module Stripe end end - class Start < Stripe::RequestParams + class Start < ::Stripe::RequestParams # A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`. attr_accessor :timestamp # Select how to calculate the start of the invoice item period. @@ -194,7 +194,7 @@ module Stripe end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). attr_accessor :currency # The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. @@ -254,8 +254,8 @@ module Stripe end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -277,7 +277,7 @@ module Stripe end end - class BillingThresholds < Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period attr_accessor :amount_gte # Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. @@ -289,7 +289,7 @@ module Stripe end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -304,7 +304,7 @@ module Stripe end end - class Duration < Stripe::RequestParams + class Duration < ::Stripe::RequestParams # Specifies phase duration. Either `day`, `week`, `month` or `year`. attr_accessor :interval # The multiplier applied to the interval. @@ -316,8 +316,8 @@ module Stripe end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -342,8 +342,8 @@ module Stripe end end - class Item < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class Item < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) attr_accessor :usage_gte @@ -352,7 +352,7 @@ module Stripe end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -367,8 +367,8 @@ module Stripe end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. attr_accessor :interval # The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks). @@ -446,7 +446,7 @@ module Stripe end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. attr_accessor :amount_percent # ID of an existing, connected Stripe account. diff --git a/lib/stripe/params/subscription_schedule_list_params.rb b/lib/stripe/params/subscription_schedule_list_params.rb index 262a8a0b..90bf5eef 100644 --- a/lib/stripe/params/subscription_schedule_list_params.rb +++ b/lib/stripe/params/subscription_schedule_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class SubscriptionScheduleListParams < Stripe::RequestParams - class CanceledAt < Stripe::RequestParams + class SubscriptionScheduleListParams < ::Stripe::RequestParams + class CanceledAt < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) @@ -21,7 +21,7 @@ module Stripe end end - class CompletedAt < Stripe::RequestParams + class CompletedAt < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) @@ -39,7 +39,7 @@ module Stripe end end - class Created < Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) @@ -57,7 +57,7 @@ module Stripe end end - class ReleasedAt < Stripe::RequestParams + class ReleasedAt < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/subscription_schedule_release_params.rb b/lib/stripe/params/subscription_schedule_release_params.rb index 43420f8b..94c23689 100644 --- a/lib/stripe/params/subscription_schedule_release_params.rb +++ b/lib/stripe/params/subscription_schedule_release_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class SubscriptionScheduleReleaseParams < Stripe::RequestParams + class SubscriptionScheduleReleaseParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # Keep any cancellation on the subscription that the schedule has set diff --git a/lib/stripe/params/subscription_schedule_retrieve_params.rb b/lib/stripe/params/subscription_schedule_retrieve_params.rb index 77b2f719..b893b5ea 100644 --- a/lib/stripe/params/subscription_schedule_retrieve_params.rb +++ b/lib/stripe/params/subscription_schedule_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class SubscriptionScheduleRetrieveParams < Stripe::RequestParams + class SubscriptionScheduleRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/subscription_schedule_update_params.rb b/lib/stripe/params/subscription_schedule_update_params.rb index c2f6221a..ce7ad0d4 100644 --- a/lib/stripe/params/subscription_schedule_update_params.rb +++ b/lib/stripe/params/subscription_schedule_update_params.rb @@ -2,10 +2,10 @@ # frozen_string_literal: true module Stripe - class SubscriptionScheduleUpdateParams < Stripe::RequestParams - class DefaultSettings < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class SubscriptionScheduleUpdateParams < ::Stripe::RequestParams + class DefaultSettings < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -27,7 +27,7 @@ module Stripe end end - class BillingThresholds < Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period attr_accessor :amount_gte # Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. @@ -39,8 +39,8 @@ module Stripe end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -65,7 +65,7 @@ module Stripe end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. attr_accessor :amount_percent # ID of an existing, connected Stripe account. @@ -122,9 +122,9 @@ module Stripe end end - class Phase < Stripe::RequestParams - class AddInvoiceItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class Phase < ::Stripe::RequestParams + class AddInvoiceItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -139,8 +139,8 @@ module Stripe end end - class Period < Stripe::RequestParams - class End < Stripe::RequestParams + class Period < ::Stripe::RequestParams + class End < ::Stripe::RequestParams # A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`. attr_accessor :timestamp # Select how to calculate the end of the invoice item period. @@ -152,7 +152,7 @@ module Stripe end end - class Start < Stripe::RequestParams + class Start < ::Stripe::RequestParams # A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`. attr_accessor :timestamp # Select how to calculate the start of the invoice item period. @@ -174,7 +174,7 @@ module Stripe end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). attr_accessor :currency # The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. @@ -234,8 +234,8 @@ module Stripe end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -257,7 +257,7 @@ module Stripe end end - class BillingThresholds < Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period attr_accessor :amount_gte # Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. @@ -269,7 +269,7 @@ module Stripe end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -284,7 +284,7 @@ module Stripe end end - class Duration < Stripe::RequestParams + class Duration < ::Stripe::RequestParams # Specifies phase duration. Either `day`, `week`, `month` or `year`. attr_accessor :interval # The multiplier applied to the interval. @@ -296,8 +296,8 @@ module Stripe end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -322,8 +322,8 @@ module Stripe end end - class Item < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class Item < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) attr_accessor :usage_gte @@ -332,7 +332,7 @@ module Stripe end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -347,8 +347,8 @@ module Stripe end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. attr_accessor :interval # The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks). @@ -426,7 +426,7 @@ module Stripe end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. attr_accessor :amount_percent # ID of an existing, connected Stripe account. diff --git a/lib/stripe/params/subscription_search_params.rb b/lib/stripe/params/subscription_search_params.rb index 6584c36a..0f0269eb 100644 --- a/lib/stripe/params/subscription_search_params.rb +++ b/lib/stripe/params/subscription_search_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class SubscriptionSearchParams < Stripe::RequestParams + class SubscriptionSearchParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. diff --git a/lib/stripe/params/subscription_update_params.rb b/lib/stripe/params/subscription_update_params.rb index 9ad23924..4e082e2c 100644 --- a/lib/stripe/params/subscription_update_params.rb +++ b/lib/stripe/params/subscription_update_params.rb @@ -2,9 +2,9 @@ # frozen_string_literal: true module Stripe - class SubscriptionUpdateParams < Stripe::RequestParams - class AddInvoiceItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class SubscriptionUpdateParams < ::Stripe::RequestParams + class AddInvoiceItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -19,8 +19,8 @@ module Stripe end end - class Period < Stripe::RequestParams - class End < Stripe::RequestParams + class Period < ::Stripe::RequestParams + class End < ::Stripe::RequestParams # A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`. attr_accessor :timestamp # Select how to calculate the end of the invoice item period. @@ -32,7 +32,7 @@ module Stripe end end - class Start < Stripe::RequestParams + class Start < ::Stripe::RequestParams # A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`. attr_accessor :timestamp # Select how to calculate the start of the invoice item period. @@ -54,7 +54,7 @@ module Stripe end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). attr_accessor :currency # The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. @@ -114,8 +114,8 @@ module Stripe end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -137,7 +137,7 @@ module Stripe end end - class BillingThresholds < Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period attr_accessor :amount_gte # Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. @@ -149,7 +149,7 @@ module Stripe end end - class CancellationDetails < Stripe::RequestParams + class CancellationDetails < ::Stripe::RequestParams # Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user. attr_accessor :comment # The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user. @@ -161,7 +161,7 @@ module Stripe end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -176,8 +176,8 @@ module Stripe end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. attr_accessor :account # Type of the account referenced in the request. @@ -199,8 +199,8 @@ module Stripe end end - class Item < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class Item < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) attr_accessor :usage_gte @@ -209,7 +209,7 @@ module Stripe end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. attr_accessor :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -224,8 +224,8 @@ module Stripe end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. attr_accessor :interval # The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks). @@ -315,7 +315,7 @@ module Stripe end end - class PauseCollection < Stripe::RequestParams + class PauseCollection < ::Stripe::RequestParams # The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`. attr_accessor :behavior # The time after which the subscription will resume collecting payments. @@ -327,10 +327,10 @@ module Stripe end end - class PaymentSettings < Stripe::RequestParams - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentSettings < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Transaction type of the mandate. attr_accessor :transaction_type @@ -349,7 +349,7 @@ module Stripe end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Preferred language of the Bancontact authorization page that the customer is redirected to. attr_accessor :preferred_language @@ -358,8 +358,8 @@ module Stripe end end - class Card < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. attr_accessor :amount # One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. @@ -387,9 +387,9 @@ module Stripe end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. attr_accessor :country @@ -418,12 +418,12 @@ module Stripe end end - class Konbini < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams; end + class Konbini < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. attr_accessor :account_subcategories @@ -505,7 +505,7 @@ module Stripe end end - class PendingInvoiceItemInterval < Stripe::RequestParams + class PendingInvoiceItemInterval < ::Stripe::RequestParams # Specifies invoicing frequency. Either `day`, `week`, `month` or `year`. attr_accessor :interval # The number of intervals between invoices. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). @@ -517,7 +517,7 @@ module Stripe end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. attr_accessor :amount_percent # ID of an existing, connected Stripe account. @@ -529,8 +529,8 @@ module Stripe end end - class TrialSettings < Stripe::RequestParams - class EndBehavior < Stripe::RequestParams + class TrialSettings < ::Stripe::RequestParams + class EndBehavior < ::Stripe::RequestParams # Indicates how the subscription should change when the trial ends if the user did not provide a payment method. attr_accessor :missing_payment_method diff --git a/lib/stripe/params/tax/calculation_create_params.rb b/lib/stripe/params/tax/calculation_create_params.rb index 744f600c..1f1bd939 100644 --- a/lib/stripe/params/tax/calculation_create_params.rb +++ b/lib/stripe/params/tax/calculation_create_params.rb @@ -3,9 +3,9 @@ module Stripe module Tax - class CalculationCreateParams < Stripe::RequestParams - class CustomerDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class CalculationCreateParams < ::Stripe::RequestParams + class CustomerDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -36,7 +36,7 @@ module Stripe end end - class TaxId < Stripe::RequestParams + class TaxId < ::Stripe::RequestParams # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` attr_accessor :type # Value of the tax ID. @@ -73,7 +73,7 @@ module Stripe end end - class LineItem < Stripe::RequestParams + class LineItem < ::Stripe::RequestParams # A positive integer representing the line item's total price in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). # If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes are calculated on top of this amount. attr_accessor :amount @@ -109,8 +109,8 @@ module Stripe end end - class ShipFromDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class ShipFromDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -148,7 +148,7 @@ module Stripe end end - class ShippingCost < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams # A positive integer in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) representing the shipping charge. If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes are calculated on top of this amount. attr_accessor :amount # If provided, the [shipping rate](https://stripe.com/docs/api/shipping_rates/object)'s `amount`, `tax_code` and `tax_behavior` are used. If you provide a shipping rate, then you cannot pass the `amount`, `tax_code`, or `tax_behavior` parameters. diff --git a/lib/stripe/params/tax/calculation_line_item_list_params.rb b/lib/stripe/params/tax/calculation_line_item_list_params.rb index 435db6ed..bda55370 100644 --- a/lib/stripe/params/tax/calculation_line_item_list_params.rb +++ b/lib/stripe/params/tax/calculation_line_item_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Tax - class CalculationLineItemListParams < Stripe::RequestParams + class CalculationLineItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/tax/calculation_list_line_items_params.rb b/lib/stripe/params/tax/calculation_list_line_items_params.rb index 45614580..989897c4 100644 --- a/lib/stripe/params/tax/calculation_list_line_items_params.rb +++ b/lib/stripe/params/tax/calculation_list_line_items_params.rb @@ -3,7 +3,7 @@ module Stripe module Tax - class CalculationListLineItemsParams < Stripe::RequestParams + class CalculationListLineItemsParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/tax/calculation_retrieve_params.rb b/lib/stripe/params/tax/calculation_retrieve_params.rb index 19ac3285..57fc3d41 100644 --- a/lib/stripe/params/tax/calculation_retrieve_params.rb +++ b/lib/stripe/params/tax/calculation_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Tax - class CalculationRetrieveParams < Stripe::RequestParams + class CalculationRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/tax/registration_create_params.rb b/lib/stripe/params/tax/registration_create_params.rb index 7fbffa3e..5274d629 100644 --- a/lib/stripe/params/tax/registration_create_params.rb +++ b/lib/stripe/params/tax/registration_create_params.rb @@ -3,10 +3,10 @@ module Stripe module Tax - class RegistrationCreateParams < Stripe::RequestParams - class CountryOptions < Stripe::RequestParams - class Ae < Stripe::RequestParams - class Standard < Stripe::RequestParams + class RegistrationCreateParams < ::Stripe::RequestParams + class CountryOptions < ::Stripe::RequestParams + class Ae < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -25,8 +25,8 @@ module Stripe end end - class Al < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Al < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -45,7 +45,7 @@ module Stripe end end - class Am < Stripe::RequestParams + class Am < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -54,8 +54,8 @@ module Stripe end end - class Ao < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Ao < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -74,8 +74,8 @@ module Stripe end end - class At < Stripe::RequestParams - class Standard < Stripe::RequestParams + class At < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -94,8 +94,8 @@ module Stripe end end - class Au < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Au < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -114,8 +114,8 @@ module Stripe end end - class Aw < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Aw < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -134,7 +134,7 @@ module Stripe end end - class Az < Stripe::RequestParams + class Az < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -143,8 +143,8 @@ module Stripe end end - class Ba < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Ba < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -163,8 +163,8 @@ module Stripe end end - class Bb < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Bb < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -183,8 +183,8 @@ module Stripe end end - class Bd < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Bd < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -203,8 +203,8 @@ module Stripe end end - class Be < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Be < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -223,8 +223,8 @@ module Stripe end end - class Bf < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Bf < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -243,8 +243,8 @@ module Stripe end end - class Bg < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Bg < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -263,8 +263,8 @@ module Stripe end end - class Bh < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Bh < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -283,7 +283,7 @@ module Stripe end end - class Bj < Stripe::RequestParams + class Bj < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -292,8 +292,8 @@ module Stripe end end - class Bs < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Bs < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -312,7 +312,7 @@ module Stripe end end - class By < Stripe::RequestParams + class By < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -321,8 +321,8 @@ module Stripe end end - class Ca < Stripe::RequestParams - class ProvinceStandard < Stripe::RequestParams + class Ca < ::Stripe::RequestParams + class ProvinceStandard < ::Stripe::RequestParams # Two-letter CA province code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). attr_accessor :province @@ -341,8 +341,8 @@ module Stripe end end - class Cd < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Cd < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -361,8 +361,8 @@ module Stripe end end - class Ch < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Ch < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -381,7 +381,7 @@ module Stripe end end - class Cl < Stripe::RequestParams + class Cl < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -390,7 +390,7 @@ module Stripe end end - class Cm < Stripe::RequestParams + class Cm < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -399,7 +399,7 @@ module Stripe end end - class Co < Stripe::RequestParams + class Co < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -408,7 +408,7 @@ module Stripe end end - class Cr < Stripe::RequestParams + class Cr < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -417,7 +417,7 @@ module Stripe end end - class Cv < Stripe::RequestParams + class Cv < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -426,8 +426,8 @@ module Stripe end end - class Cy < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Cy < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -446,8 +446,8 @@ module Stripe end end - class Cz < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Cz < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -466,8 +466,8 @@ module Stripe end end - class De < Stripe::RequestParams - class Standard < Stripe::RequestParams + class De < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -486,8 +486,8 @@ module Stripe end end - class Dk < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Dk < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -506,7 +506,7 @@ module Stripe end end - class Ec < Stripe::RequestParams + class Ec < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -515,8 +515,8 @@ module Stripe end end - class Ee < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Ee < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -535,7 +535,7 @@ module Stripe end end - class Eg < Stripe::RequestParams + class Eg < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -544,8 +544,8 @@ module Stripe end end - class Es < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Es < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -564,8 +564,8 @@ module Stripe end end - class Et < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Et < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -584,8 +584,8 @@ module Stripe end end - class Fi < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Fi < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -604,8 +604,8 @@ module Stripe end end - class Fr < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Fr < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -624,8 +624,8 @@ module Stripe end end - class Gb < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Gb < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -644,7 +644,7 @@ module Stripe end end - class Ge < Stripe::RequestParams + class Ge < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -653,8 +653,8 @@ module Stripe end end - class Gn < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Gn < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -673,8 +673,8 @@ module Stripe end end - class Gr < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Gr < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -693,8 +693,8 @@ module Stripe end end - class Hr < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Hr < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -713,8 +713,8 @@ module Stripe end end - class Hu < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Hu < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -733,7 +733,7 @@ module Stripe end end - class Id < Stripe::RequestParams + class Id < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -742,8 +742,8 @@ module Stripe end end - class Ie < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Ie < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -762,7 +762,7 @@ module Stripe end end - class In < Stripe::RequestParams + class In < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -771,8 +771,8 @@ module Stripe end end - class Is < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Is < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -791,8 +791,8 @@ module Stripe end end - class It < Stripe::RequestParams - class Standard < Stripe::RequestParams + class It < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -811,8 +811,8 @@ module Stripe end end - class Jp < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Jp < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -831,7 +831,7 @@ module Stripe end end - class Ke < Stripe::RequestParams + class Ke < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -840,7 +840,7 @@ module Stripe end end - class Kg < Stripe::RequestParams + class Kg < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -849,7 +849,7 @@ module Stripe end end - class Kh < Stripe::RequestParams + class Kh < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -858,7 +858,7 @@ module Stripe end end - class Kr < Stripe::RequestParams + class Kr < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -867,7 +867,7 @@ module Stripe end end - class Kz < Stripe::RequestParams + class Kz < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -876,7 +876,7 @@ module Stripe end end - class La < Stripe::RequestParams + class La < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -885,8 +885,8 @@ module Stripe end end - class Lt < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Lt < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -905,8 +905,8 @@ module Stripe end end - class Lu < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Lu < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -925,8 +925,8 @@ module Stripe end end - class Lv < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Lv < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -945,7 +945,7 @@ module Stripe end end - class Ma < Stripe::RequestParams + class Ma < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -954,7 +954,7 @@ module Stripe end end - class Md < Stripe::RequestParams + class Md < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -963,8 +963,8 @@ module Stripe end end - class Me < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Me < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -983,8 +983,8 @@ module Stripe end end - class Mk < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Mk < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -1003,8 +1003,8 @@ module Stripe end end - class Mr < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Mr < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -1023,8 +1023,8 @@ module Stripe end end - class Mt < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Mt < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -1043,7 +1043,7 @@ module Stripe end end - class Mx < Stripe::RequestParams + class Mx < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -1052,7 +1052,7 @@ module Stripe end end - class My < Stripe::RequestParams + class My < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -1061,7 +1061,7 @@ module Stripe end end - class Ng < Stripe::RequestParams + class Ng < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -1070,8 +1070,8 @@ module Stripe end end - class Nl < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Nl < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -1090,8 +1090,8 @@ module Stripe end end - class No < Stripe::RequestParams - class Standard < Stripe::RequestParams + class No < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -1110,7 +1110,7 @@ module Stripe end end - class Np < Stripe::RequestParams + class Np < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -1119,8 +1119,8 @@ module Stripe end end - class Nz < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Nz < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -1139,8 +1139,8 @@ module Stripe end end - class Om < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Om < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -1159,7 +1159,7 @@ module Stripe end end - class Pe < Stripe::RequestParams + class Pe < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -1168,7 +1168,7 @@ module Stripe end end - class Ph < Stripe::RequestParams + class Ph < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -1177,8 +1177,8 @@ module Stripe end end - class Pl < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Pl < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -1197,8 +1197,8 @@ module Stripe end end - class Pt < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Pt < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -1217,8 +1217,8 @@ module Stripe end end - class Ro < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Ro < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -1237,8 +1237,8 @@ module Stripe end end - class Rs < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Rs < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -1257,7 +1257,7 @@ module Stripe end end - class Ru < Stripe::RequestParams + class Ru < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -1266,7 +1266,7 @@ module Stripe end end - class Sa < Stripe::RequestParams + class Sa < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -1275,8 +1275,8 @@ module Stripe end end - class Se < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Se < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -1295,8 +1295,8 @@ module Stripe end end - class Sg < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Sg < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -1315,8 +1315,8 @@ module Stripe end end - class Si < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Si < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -1335,8 +1335,8 @@ module Stripe end end - class Sk < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Sk < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. attr_accessor :place_of_supply_scheme @@ -1355,7 +1355,7 @@ module Stripe end end - class Sn < Stripe::RequestParams + class Sn < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -1364,8 +1364,8 @@ module Stripe end end - class Sr < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Sr < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -1384,7 +1384,7 @@ module Stripe end end - class Th < Stripe::RequestParams + class Th < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -1393,7 +1393,7 @@ module Stripe end end - class Tj < Stripe::RequestParams + class Tj < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -1402,7 +1402,7 @@ module Stripe end end - class Tr < Stripe::RequestParams + class Tr < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -1411,7 +1411,7 @@ module Stripe end end - class Tz < Stripe::RequestParams + class Tw < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -1420,7 +1420,7 @@ module Stripe end end - class Ua < Stripe::RequestParams + class Tz < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -1429,7 +1429,7 @@ module Stripe end end - class Ug < Stripe::RequestParams + class Ua < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -1438,8 +1438,17 @@ module Stripe end end - class Us < Stripe::RequestParams - class LocalAmusementTax < Stripe::RequestParams + class Ug < ::Stripe::RequestParams + # Type of registration to be created in `country`. + attr_accessor :type + + def initialize(type: nil) + @type = type + end + end + + class Us < ::Stripe::RequestParams + class LocalAmusementTax < ::Stripe::RequestParams # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `14000` (Chicago), `06613` (Bloomington), `21696` (East Dundee), `24582` (Evanston), `45421` (Lynwood), `48892` (Midlothian), `64343` (River Grove), and `68081` (Schiller Park). attr_accessor :jurisdiction @@ -1448,7 +1457,7 @@ module Stripe end end - class LocalLeaseTax < Stripe::RequestParams + class LocalLeaseTax < ::Stripe::RequestParams # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `14000` (Chicago). attr_accessor :jurisdiction @@ -1457,8 +1466,8 @@ module Stripe end end - class StateSalesTax < Stripe::RequestParams - class Election < Stripe::RequestParams + class StateSalesTax < ::Stripe::RequestParams + class Election < ::Stripe::RequestParams # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `003` (Allegheny County) and `60000` (Philadelphia City). attr_accessor :jurisdiction # The type of the election for the state sales tax registration. @@ -1502,8 +1511,8 @@ module Stripe end end - class Uy < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Uy < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -1522,7 +1531,7 @@ module Stripe end end - class Uz < Stripe::RequestParams + class Uz < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -1531,7 +1540,7 @@ module Stripe end end - class Vn < Stripe::RequestParams + class Vn < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -1540,8 +1549,8 @@ module Stripe end end - class Za < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Za < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -1560,7 +1569,7 @@ module Stripe end end - class Zm < Stripe::RequestParams + class Zm < ::Stripe::RequestParams # Type of registration to be created in `country`. attr_accessor :type @@ -1569,8 +1578,8 @@ module Stripe end end - class Zw < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Zw < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. attr_accessor :place_of_supply_scheme @@ -1766,6 +1775,8 @@ module Stripe attr_accessor :tj # Options for the registration in TR. attr_accessor :tr + # Options for the registration in TW. + attr_accessor :tw # Options for the registration in TZ. attr_accessor :tz # Options for the registration in UA. @@ -1877,6 +1888,7 @@ module Stripe th: nil, tj: nil, tr: nil, + tw: nil, tz: nil, ua: nil, ug: nil, @@ -1977,6 +1989,7 @@ module Stripe @th = th @tj = tj @tr = tr + @tw = tw @tz = tz @ua = ua @ug = ug diff --git a/lib/stripe/params/tax/registration_list_params.rb b/lib/stripe/params/tax/registration_list_params.rb index e6054655..85526d94 100644 --- a/lib/stripe/params/tax/registration_list_params.rb +++ b/lib/stripe/params/tax/registration_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Tax - class RegistrationListParams < Stripe::RequestParams + class RegistrationListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/tax/registration_retrieve_params.rb b/lib/stripe/params/tax/registration_retrieve_params.rb index 9880aafc..5bd77a87 100644 --- a/lib/stripe/params/tax/registration_retrieve_params.rb +++ b/lib/stripe/params/tax/registration_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Tax - class RegistrationRetrieveParams < Stripe::RequestParams + class RegistrationRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/tax/registration_update_params.rb b/lib/stripe/params/tax/registration_update_params.rb index 1c49a71d..65b20e65 100644 --- a/lib/stripe/params/tax/registration_update_params.rb +++ b/lib/stripe/params/tax/registration_update_params.rb @@ -3,7 +3,7 @@ module Stripe module Tax - class RegistrationUpdateParams < Stripe::RequestParams + class RegistrationUpdateParams < ::Stripe::RequestParams # Time at which the registration becomes active. It can be either `now` to indicate the current time, or a timestamp measured in seconds since the Unix epoch. attr_accessor :active_from # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/tax/settings_retrieve_params.rb b/lib/stripe/params/tax/settings_retrieve_params.rb index 4218d423..2c169da3 100644 --- a/lib/stripe/params/tax/settings_retrieve_params.rb +++ b/lib/stripe/params/tax/settings_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Tax - class SettingsRetrieveParams < Stripe::RequestParams + class SettingsRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/tax/settings_update_params.rb b/lib/stripe/params/tax/settings_update_params.rb index 02c021c7..f554bf03 100644 --- a/lib/stripe/params/tax/settings_update_params.rb +++ b/lib/stripe/params/tax/settings_update_params.rb @@ -3,8 +3,8 @@ module Stripe module Tax - class SettingsUpdateParams < Stripe::RequestParams - class Defaults < Stripe::RequestParams + class SettingsUpdateParams < ::Stripe::RequestParams + class Defaults < ::Stripe::RequestParams # Specifies the default [tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#tax-behavior) to be used when the item's price has unspecified tax behavior. One of inclusive, exclusive, or inferred_by_currency. Once specified, it cannot be changed back to null. attr_accessor :tax_behavior # A [tax code](https://stripe.com/docs/tax/tax-categories) ID. @@ -16,8 +16,8 @@ module Stripe end end - class HeadOffice < Stripe::RequestParams - class Address < Stripe::RequestParams + class HeadOffice < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). diff --git a/lib/stripe/params/tax/transaction_create_from_calculation_params.rb b/lib/stripe/params/tax/transaction_create_from_calculation_params.rb index 7a052714..f89fc48d 100644 --- a/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +++ b/lib/stripe/params/tax/transaction_create_from_calculation_params.rb @@ -3,7 +3,7 @@ module Stripe module Tax - class TransactionCreateFromCalculationParams < Stripe::RequestParams + class TransactionCreateFromCalculationParams < ::Stripe::RequestParams # Tax Calculation ID to be used as input when creating the transaction. attr_accessor :calculation # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/tax/transaction_create_reversal_params.rb b/lib/stripe/params/tax/transaction_create_reversal_params.rb index bc00563f..b4a67083 100644 --- a/lib/stripe/params/tax/transaction_create_reversal_params.rb +++ b/lib/stripe/params/tax/transaction_create_reversal_params.rb @@ -3,8 +3,8 @@ module Stripe module Tax - class TransactionCreateReversalParams < Stripe::RequestParams - class LineItem < Stripe::RequestParams + class TransactionCreateReversalParams < ::Stripe::RequestParams + class LineItem < ::Stripe::RequestParams # The amount to reverse, in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) in negative. attr_accessor :amount # The amount of tax to reverse, in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) in negative. @@ -35,7 +35,7 @@ module Stripe end end - class ShippingCost < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams # The amount to reverse, in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) in negative. attr_accessor :amount # The amount of tax to reverse, in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) in negative. diff --git a/lib/stripe/params/tax/transaction_line_item_list_params.rb b/lib/stripe/params/tax/transaction_line_item_list_params.rb index 9dfd0e92..d2f20b51 100644 --- a/lib/stripe/params/tax/transaction_line_item_list_params.rb +++ b/lib/stripe/params/tax/transaction_line_item_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Tax - class TransactionLineItemListParams < Stripe::RequestParams + class TransactionLineItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/tax/transaction_list_line_items_params.rb b/lib/stripe/params/tax/transaction_list_line_items_params.rb index 31992c28..e9a73929 100644 --- a/lib/stripe/params/tax/transaction_list_line_items_params.rb +++ b/lib/stripe/params/tax/transaction_list_line_items_params.rb @@ -3,7 +3,7 @@ module Stripe module Tax - class TransactionListLineItemsParams < Stripe::RequestParams + class TransactionListLineItemsParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/tax/transaction_retrieve_params.rb b/lib/stripe/params/tax/transaction_retrieve_params.rb index 25de1942..3c03cc2e 100644 --- a/lib/stripe/params/tax/transaction_retrieve_params.rb +++ b/lib/stripe/params/tax/transaction_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Tax - class TransactionRetrieveParams < Stripe::RequestParams + class TransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/tax_code_list_params.rb b/lib/stripe/params/tax_code_list_params.rb index d090f0bd..bdb9d213 100644 --- a/lib/stripe/params/tax_code_list_params.rb +++ b/lib/stripe/params/tax_code_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class TaxCodeListParams < Stripe::RequestParams + class TaxCodeListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/tax_code_retrieve_params.rb b/lib/stripe/params/tax_code_retrieve_params.rb index b44d5b44..f6c026bb 100644 --- a/lib/stripe/params/tax_code_retrieve_params.rb +++ b/lib/stripe/params/tax_code_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class TaxCodeRetrieveParams < Stripe::RequestParams + class TaxCodeRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/tax_id_create_params.rb b/lib/stripe/params/tax_id_create_params.rb index b8dcbab5..61ddd39d 100644 --- a/lib/stripe/params/tax_id_create_params.rb +++ b/lib/stripe/params/tax_id_create_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class TaxIdCreateParams < Stripe::RequestParams - class Owner < Stripe::RequestParams + class TaxIdCreateParams < ::Stripe::RequestParams + class Owner < ::Stripe::RequestParams # Account the tax ID belongs to. Required when `type=account` attr_accessor :account # Customer the tax ID belongs to. Required when `type=customer` diff --git a/lib/stripe/params/tax_id_delete_params.rb b/lib/stripe/params/tax_id_delete_params.rb index f9f8ffd4..d4ec1ec6 100644 --- a/lib/stripe/params/tax_id_delete_params.rb +++ b/lib/stripe/params/tax_id_delete_params.rb @@ -2,5 +2,5 @@ # frozen_string_literal: true module Stripe - class TaxIdDeleteParams < Stripe::RequestParams; end + class TaxIdDeleteParams < ::Stripe::RequestParams; end end diff --git a/lib/stripe/params/tax_id_list_params.rb b/lib/stripe/params/tax_id_list_params.rb index 3e47f8c6..a1536284 100644 --- a/lib/stripe/params/tax_id_list_params.rb +++ b/lib/stripe/params/tax_id_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class TaxIdListParams < Stripe::RequestParams - class Owner < Stripe::RequestParams + class TaxIdListParams < ::Stripe::RequestParams + class Owner < ::Stripe::RequestParams # Account the tax ID belongs to. Required when `type=account` attr_accessor :account # Customer the tax ID belongs to. Required when `type=customer` diff --git a/lib/stripe/params/tax_id_retrieve_params.rb b/lib/stripe/params/tax_id_retrieve_params.rb index dc218138..96d57b3f 100644 --- a/lib/stripe/params/tax_id_retrieve_params.rb +++ b/lib/stripe/params/tax_id_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class TaxIdRetrieveParams < Stripe::RequestParams + class TaxIdRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/tax_rate_create_params.rb b/lib/stripe/params/tax_rate_create_params.rb index 6e7b3465..283ffb56 100644 --- a/lib/stripe/params/tax_rate_create_params.rb +++ b/lib/stripe/params/tax_rate_create_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class TaxRateCreateParams < Stripe::RequestParams + class TaxRateCreateParams < ::Stripe::RequestParams # Flag determining whether the tax rate is active or inactive (archived). Inactive tax rates cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set. attr_accessor :active # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). diff --git a/lib/stripe/params/tax_rate_list_params.rb b/lib/stripe/params/tax_rate_list_params.rb index 92763207..482284a3 100644 --- a/lib/stripe/params/tax_rate_list_params.rb +++ b/lib/stripe/params/tax_rate_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class TaxRateListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class TaxRateListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/tax_rate_retrieve_params.rb b/lib/stripe/params/tax_rate_retrieve_params.rb index 8b889ba0..d4610473 100644 --- a/lib/stripe/params/tax_rate_retrieve_params.rb +++ b/lib/stripe/params/tax_rate_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class TaxRateRetrieveParams < Stripe::RequestParams + class TaxRateRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/tax_rate_update_params.rb b/lib/stripe/params/tax_rate_update_params.rb index 9c395e78..2574a2c8 100644 --- a/lib/stripe/params/tax_rate_update_params.rb +++ b/lib/stripe/params/tax_rate_update_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class TaxRateUpdateParams < Stripe::RequestParams + class TaxRateUpdateParams < ::Stripe::RequestParams # Flag determining whether the tax rate is active or inactive (archived). Inactive tax rates cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set. attr_accessor :active # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). diff --git a/lib/stripe/params/terminal/configuration_create_params.rb b/lib/stripe/params/terminal/configuration_create_params.rb index bd0937f6..c2f8eb7b 100644 --- a/lib/stripe/params/terminal/configuration_create_params.rb +++ b/lib/stripe/params/terminal/configuration_create_params.rb @@ -3,8 +3,8 @@ module Stripe module Terminal - class ConfigurationCreateParams < Stripe::RequestParams - class BbposWisepad3 < Stripe::RequestParams + class ConfigurationCreateParams < ::Stripe::RequestParams + class BbposWisepad3 < ::Stripe::RequestParams # A File ID representing an image you would like displayed on the reader. attr_accessor :splashscreen @@ -13,7 +13,7 @@ module Stripe end end - class BbposWiseposE < Stripe::RequestParams + class BbposWiseposE < ::Stripe::RequestParams # A File ID representing an image to display on the reader attr_accessor :splashscreen @@ -22,7 +22,7 @@ module Stripe end end - class Offline < Stripe::RequestParams + class Offline < ::Stripe::RequestParams # Determines whether to allow transactions to be collected while reader is offline. Defaults to false. attr_accessor :enabled @@ -31,7 +31,7 @@ module Stripe end end - class RebootWindow < Stripe::RequestParams + class RebootWindow < ::Stripe::RequestParams # Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour. attr_accessor :end_hour # Integer between 0 to 23 that represents the start hour of the reboot time window. @@ -43,7 +43,7 @@ module Stripe end end - class StripeS700 < Stripe::RequestParams + class StripeS700 < ::Stripe::RequestParams # A File ID representing an image you would like displayed on the reader. attr_accessor :splashscreen @@ -52,8 +52,8 @@ module Stripe end end - class Tipping < Stripe::RequestParams - class Aed < Stripe::RequestParams + class Tipping < ::Stripe::RequestParams + class Aed < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -68,7 +68,7 @@ module Stripe end end - class Aud < Stripe::RequestParams + class Aud < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -83,7 +83,7 @@ module Stripe end end - class Bgn < Stripe::RequestParams + class Bgn < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -98,7 +98,7 @@ module Stripe end end - class Cad < Stripe::RequestParams + class Cad < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -113,7 +113,7 @@ module Stripe end end - class Chf < Stripe::RequestParams + class Chf < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -128,7 +128,7 @@ module Stripe end end - class Czk < Stripe::RequestParams + class Czk < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -143,7 +143,7 @@ module Stripe end end - class Dkk < Stripe::RequestParams + class Dkk < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -158,7 +158,7 @@ module Stripe end end - class Eur < Stripe::RequestParams + class Eur < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -173,7 +173,7 @@ module Stripe end end - class Gbp < Stripe::RequestParams + class Gbp < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -188,7 +188,7 @@ module Stripe end end - class Hkd < Stripe::RequestParams + class Gip < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -203,7 +203,7 @@ module Stripe end end - class Huf < Stripe::RequestParams + class Hkd < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -218,7 +218,7 @@ module Stripe end end - class Jpy < Stripe::RequestParams + class Huf < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -233,7 +233,7 @@ module Stripe end end - class Mxn < Stripe::RequestParams + class Jpy < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -248,7 +248,7 @@ module Stripe end end - class Myr < Stripe::RequestParams + class Mxn < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -263,7 +263,7 @@ module Stripe end end - class Nok < Stripe::RequestParams + class Myr < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -278,7 +278,7 @@ module Stripe end end - class Nzd < Stripe::RequestParams + class Nok < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -293,7 +293,7 @@ module Stripe end end - class Pln < Stripe::RequestParams + class Nzd < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -308,7 +308,7 @@ module Stripe end end - class Ron < Stripe::RequestParams + class Pln < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -323,7 +323,7 @@ module Stripe end end - class Sek < Stripe::RequestParams + class Ron < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -338,7 +338,7 @@ module Stripe end end - class Sgd < Stripe::RequestParams + class Sek < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -353,7 +353,22 @@ module Stripe end end - class Usd < Stripe::RequestParams + class Sgd < ::Stripe::RequestParams + # Fixed amounts displayed when collecting a tip + attr_accessor :fixed_amounts + # Percentages displayed when collecting a tip + attr_accessor :percentages + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + attr_accessor :smart_tip_threshold + + def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil) + @fixed_amounts = fixed_amounts + @percentages = percentages + @smart_tip_threshold = smart_tip_threshold + end + end + + class Usd < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -385,6 +400,8 @@ module Stripe attr_accessor :eur # Tipping configuration for GBP attr_accessor :gbp + # Tipping configuration for GIP + attr_accessor :gip # Tipping configuration for HKD attr_accessor :hkd # Tipping configuration for HUF @@ -420,6 +437,7 @@ module Stripe dkk: nil, eur: nil, gbp: nil, + gip: nil, hkd: nil, huf: nil, jpy: nil, @@ -442,6 +460,7 @@ module Stripe @dkk = dkk @eur = eur @gbp = gbp + @gip = gip @hkd = hkd @huf = huf @jpy = jpy @@ -457,7 +476,7 @@ module Stripe end end - class VerifoneP400 < Stripe::RequestParams + class VerifoneP400 < ::Stripe::RequestParams # A File ID representing an image you would like displayed on the reader. attr_accessor :splashscreen @@ -466,8 +485,8 @@ module Stripe end end - class Wifi < Stripe::RequestParams - class EnterpriseEapPeap < Stripe::RequestParams + class Wifi < ::Stripe::RequestParams + class EnterpriseEapPeap < ::Stripe::RequestParams # A File ID representing a PEM file containing the server certificate attr_accessor :ca_certificate_file # Password for connecting to the WiFi network @@ -485,7 +504,7 @@ module Stripe end end - class EnterpriseEapTls < Stripe::RequestParams + class EnterpriseEapTls < ::Stripe::RequestParams # A File ID representing a PEM file containing the server certificate attr_accessor :ca_certificate_file # A File ID representing a PEM file containing the client certificate @@ -512,7 +531,7 @@ module Stripe end end - class PersonalPsk < Stripe::RequestParams + class PersonalPsk < ::Stripe::RequestParams # Password for connecting to the WiFi network attr_accessor :password # Name of the WiFi network diff --git a/lib/stripe/params/terminal/configuration_delete_params.rb b/lib/stripe/params/terminal/configuration_delete_params.rb index 447fe54b..73d22429 100644 --- a/lib/stripe/params/terminal/configuration_delete_params.rb +++ b/lib/stripe/params/terminal/configuration_delete_params.rb @@ -3,6 +3,6 @@ module Stripe module Terminal - class ConfigurationDeleteParams < Stripe::RequestParams; end + class ConfigurationDeleteParams < ::Stripe::RequestParams; end end end diff --git a/lib/stripe/params/terminal/configuration_list_params.rb b/lib/stripe/params/terminal/configuration_list_params.rb index 5e78edd2..a9051792 100644 --- a/lib/stripe/params/terminal/configuration_list_params.rb +++ b/lib/stripe/params/terminal/configuration_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Terminal - class ConfigurationListParams < Stripe::RequestParams + class ConfigurationListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/terminal/configuration_retrieve_params.rb b/lib/stripe/params/terminal/configuration_retrieve_params.rb index 8d75c93f..e35b341c 100644 --- a/lib/stripe/params/terminal/configuration_retrieve_params.rb +++ b/lib/stripe/params/terminal/configuration_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Terminal - class ConfigurationRetrieveParams < Stripe::RequestParams + class ConfigurationRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/terminal/configuration_update_params.rb b/lib/stripe/params/terminal/configuration_update_params.rb index f5789013..cb516196 100644 --- a/lib/stripe/params/terminal/configuration_update_params.rb +++ b/lib/stripe/params/terminal/configuration_update_params.rb @@ -3,8 +3,8 @@ module Stripe module Terminal - class ConfigurationUpdateParams < Stripe::RequestParams - class BbposWisepad3 < Stripe::RequestParams + class ConfigurationUpdateParams < ::Stripe::RequestParams + class BbposWisepad3 < ::Stripe::RequestParams # A File ID representing an image you would like displayed on the reader. attr_accessor :splashscreen @@ -13,7 +13,7 @@ module Stripe end end - class BbposWiseposE < Stripe::RequestParams + class BbposWiseposE < ::Stripe::RequestParams # A File ID representing an image to display on the reader attr_accessor :splashscreen @@ -22,7 +22,7 @@ module Stripe end end - class Offline < Stripe::RequestParams + class Offline < ::Stripe::RequestParams # Determines whether to allow transactions to be collected while reader is offline. Defaults to false. attr_accessor :enabled @@ -31,7 +31,7 @@ module Stripe end end - class RebootWindow < Stripe::RequestParams + class RebootWindow < ::Stripe::RequestParams # Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour. attr_accessor :end_hour # Integer between 0 to 23 that represents the start hour of the reboot time window. @@ -43,7 +43,7 @@ module Stripe end end - class StripeS700 < Stripe::RequestParams + class StripeS700 < ::Stripe::RequestParams # A File ID representing an image you would like displayed on the reader. attr_accessor :splashscreen @@ -52,8 +52,8 @@ module Stripe end end - class Tipping < Stripe::RequestParams - class Aed < Stripe::RequestParams + class Tipping < ::Stripe::RequestParams + class Aed < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -68,7 +68,7 @@ module Stripe end end - class Aud < Stripe::RequestParams + class Aud < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -83,7 +83,7 @@ module Stripe end end - class Bgn < Stripe::RequestParams + class Bgn < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -98,7 +98,7 @@ module Stripe end end - class Cad < Stripe::RequestParams + class Cad < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -113,7 +113,7 @@ module Stripe end end - class Chf < Stripe::RequestParams + class Chf < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -128,7 +128,7 @@ module Stripe end end - class Czk < Stripe::RequestParams + class Czk < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -143,7 +143,7 @@ module Stripe end end - class Dkk < Stripe::RequestParams + class Dkk < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -158,7 +158,7 @@ module Stripe end end - class Eur < Stripe::RequestParams + class Eur < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -173,7 +173,7 @@ module Stripe end end - class Gbp < Stripe::RequestParams + class Gbp < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -188,7 +188,7 @@ module Stripe end end - class Hkd < Stripe::RequestParams + class Gip < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -203,7 +203,7 @@ module Stripe end end - class Huf < Stripe::RequestParams + class Hkd < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -218,7 +218,7 @@ module Stripe end end - class Jpy < Stripe::RequestParams + class Huf < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -233,7 +233,7 @@ module Stripe end end - class Mxn < Stripe::RequestParams + class Jpy < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -248,7 +248,7 @@ module Stripe end end - class Myr < Stripe::RequestParams + class Mxn < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -263,7 +263,7 @@ module Stripe end end - class Nok < Stripe::RequestParams + class Myr < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -278,7 +278,7 @@ module Stripe end end - class Nzd < Stripe::RequestParams + class Nok < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -293,7 +293,7 @@ module Stripe end end - class Pln < Stripe::RequestParams + class Nzd < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -308,7 +308,7 @@ module Stripe end end - class Ron < Stripe::RequestParams + class Pln < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -323,7 +323,7 @@ module Stripe end end - class Sek < Stripe::RequestParams + class Ron < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -338,7 +338,7 @@ module Stripe end end - class Sgd < Stripe::RequestParams + class Sek < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -353,7 +353,22 @@ module Stripe end end - class Usd < Stripe::RequestParams + class Sgd < ::Stripe::RequestParams + # Fixed amounts displayed when collecting a tip + attr_accessor :fixed_amounts + # Percentages displayed when collecting a tip + attr_accessor :percentages + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + attr_accessor :smart_tip_threshold + + def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil) + @fixed_amounts = fixed_amounts + @percentages = percentages + @smart_tip_threshold = smart_tip_threshold + end + end + + class Usd < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip attr_accessor :fixed_amounts # Percentages displayed when collecting a tip @@ -385,6 +400,8 @@ module Stripe attr_accessor :eur # Tipping configuration for GBP attr_accessor :gbp + # Tipping configuration for GIP + attr_accessor :gip # Tipping configuration for HKD attr_accessor :hkd # Tipping configuration for HUF @@ -420,6 +437,7 @@ module Stripe dkk: nil, eur: nil, gbp: nil, + gip: nil, hkd: nil, huf: nil, jpy: nil, @@ -442,6 +460,7 @@ module Stripe @dkk = dkk @eur = eur @gbp = gbp + @gip = gip @hkd = hkd @huf = huf @jpy = jpy @@ -457,7 +476,7 @@ module Stripe end end - class VerifoneP400 < Stripe::RequestParams + class VerifoneP400 < ::Stripe::RequestParams # A File ID representing an image you would like displayed on the reader. attr_accessor :splashscreen @@ -466,8 +485,8 @@ module Stripe end end - class Wifi < Stripe::RequestParams - class EnterpriseEapPeap < Stripe::RequestParams + class Wifi < ::Stripe::RequestParams + class EnterpriseEapPeap < ::Stripe::RequestParams # A File ID representing a PEM file containing the server certificate attr_accessor :ca_certificate_file # Password for connecting to the WiFi network @@ -485,7 +504,7 @@ module Stripe end end - class EnterpriseEapTls < Stripe::RequestParams + class EnterpriseEapTls < ::Stripe::RequestParams # A File ID representing a PEM file containing the server certificate attr_accessor :ca_certificate_file # A File ID representing a PEM file containing the client certificate @@ -512,7 +531,7 @@ module Stripe end end - class PersonalPsk < Stripe::RequestParams + class PersonalPsk < ::Stripe::RequestParams # Password for connecting to the WiFi network attr_accessor :password # Name of the WiFi network diff --git a/lib/stripe/params/terminal/connection_token_create_params.rb b/lib/stripe/params/terminal/connection_token_create_params.rb index f0f71927..4515cfac 100644 --- a/lib/stripe/params/terminal/connection_token_create_params.rb +++ b/lib/stripe/params/terminal/connection_token_create_params.rb @@ -3,7 +3,7 @@ module Stripe module Terminal - class ConnectionTokenCreateParams < Stripe::RequestParams + class ConnectionTokenCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # The id of the location that this connection token is scoped to. If specified the connection token will only be usable with readers assigned to that location, otherwise the connection token will be usable with all readers. Note that location scoping only applies to internet-connected readers. For more details, see [the docs on scoping connection tokens](https://docs.stripe.com/terminal/fleet/locations-and-zones?dashboard-or-api=api#connection-tokens). diff --git a/lib/stripe/params/terminal/location_create_params.rb b/lib/stripe/params/terminal/location_create_params.rb index 3c83e273..a25d69c1 100644 --- a/lib/stripe/params/terminal/location_create_params.rb +++ b/lib/stripe/params/terminal/location_create_params.rb @@ -3,8 +3,8 @@ module Stripe module Terminal - class LocationCreateParams < Stripe::RequestParams - class Address < Stripe::RequestParams + class LocationCreateParams < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -35,7 +35,7 @@ module Stripe end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -70,7 +70,7 @@ module Stripe end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). diff --git a/lib/stripe/params/terminal/location_delete_params.rb b/lib/stripe/params/terminal/location_delete_params.rb index 6999fb92..54f8beb1 100644 --- a/lib/stripe/params/terminal/location_delete_params.rb +++ b/lib/stripe/params/terminal/location_delete_params.rb @@ -3,6 +3,6 @@ module Stripe module Terminal - class LocationDeleteParams < Stripe::RequestParams; end + class LocationDeleteParams < ::Stripe::RequestParams; end end end diff --git a/lib/stripe/params/terminal/location_list_params.rb b/lib/stripe/params/terminal/location_list_params.rb index beeb2f0b..bf88d555 100644 --- a/lib/stripe/params/terminal/location_list_params.rb +++ b/lib/stripe/params/terminal/location_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Terminal - class LocationListParams < Stripe::RequestParams + class LocationListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/terminal/location_retrieve_params.rb b/lib/stripe/params/terminal/location_retrieve_params.rb index 944d4898..9eaf043b 100644 --- a/lib/stripe/params/terminal/location_retrieve_params.rb +++ b/lib/stripe/params/terminal/location_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Terminal - class LocationRetrieveParams < Stripe::RequestParams + class LocationRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/terminal/location_update_params.rb b/lib/stripe/params/terminal/location_update_params.rb index 8331006e..21e3697f 100644 --- a/lib/stripe/params/terminal/location_update_params.rb +++ b/lib/stripe/params/terminal/location_update_params.rb @@ -3,8 +3,8 @@ module Stripe module Terminal - class LocationUpdateParams < Stripe::RequestParams - class Address < Stripe::RequestParams + class LocationUpdateParams < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -35,7 +35,7 @@ module Stripe end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -70,7 +70,7 @@ module Stripe end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). diff --git a/lib/stripe/params/terminal/reader_cancel_action_params.rb b/lib/stripe/params/terminal/reader_cancel_action_params.rb index 87cfd00f..e4cdfc7b 100644 --- a/lib/stripe/params/terminal/reader_cancel_action_params.rb +++ b/lib/stripe/params/terminal/reader_cancel_action_params.rb @@ -3,7 +3,7 @@ module Stripe module Terminal - class ReaderCancelActionParams < Stripe::RequestParams + class ReaderCancelActionParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/terminal/reader_collect_inputs_params.rb b/lib/stripe/params/terminal/reader_collect_inputs_params.rb index 968e5464..098f28ad 100644 --- a/lib/stripe/params/terminal/reader_collect_inputs_params.rb +++ b/lib/stripe/params/terminal/reader_collect_inputs_params.rb @@ -3,14 +3,14 @@ module Stripe module Terminal - class ReaderCollectInputsParams < Stripe::RequestParams - class Input < Stripe::RequestParams - class CustomText < Stripe::RequestParams + class ReaderCollectInputsParams < ::Stripe::RequestParams + class Input < ::Stripe::RequestParams + class CustomText < ::Stripe::RequestParams # The description which will be displayed when collecting this input attr_accessor :description - # The skip button text + # Custom text for the skip button. Maximum 14 characters. attr_accessor :skip_button - # The submit button text + # Custom text for the submit button. Maximum 30 characters. attr_accessor :submit_button # The title which will be displayed when collecting this input attr_accessor :title @@ -23,11 +23,11 @@ module Stripe end end - class Selection < Stripe::RequestParams - class Choice < Stripe::RequestParams + class Selection < ::Stripe::RequestParams + class Choice < ::Stripe::RequestParams # The unique identifier for this choice attr_accessor :id - # The style of the button which will be shown for this choice + # The style of the button which will be shown for this choice. Can be `primary` or `secondary`. attr_accessor :style # The text which will be shown on the button for this choice attr_accessor :text @@ -46,12 +46,12 @@ module Stripe end end - class Toggle < Stripe::RequestParams - # The default value of the toggle + class Toggle < ::Stripe::RequestParams + # The default value of the toggle. Can be `enabled` or `disabled`. attr_accessor :default_value - # The description which will be displayed for the toggle + # The description which will be displayed for the toggle. Maximum 50 characters. At least one of title or description must be provided. attr_accessor :description - # The title which will be displayed for the toggle + # The title which will be displayed for the toggle. Maximum 50 characters. At least one of title or description must be provided. attr_accessor :title def initialize(default_value: nil, description: nil, title: nil) @@ -81,7 +81,7 @@ module Stripe end # Specifies which fields in the response should be expanded. attr_accessor :expand - # List of inputs to be collected using the Reader + # List of inputs to be collected from the customer using the Reader. Maximum 5 inputs. attr_accessor :inputs # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. attr_accessor :metadata diff --git a/lib/stripe/params/terminal/reader_collect_payment_method_params.rb b/lib/stripe/params/terminal/reader_collect_payment_method_params.rb index 6b503d52..7b83d18d 100644 --- a/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +++ b/lib/stripe/params/terminal/reader_collect_payment_method_params.rb @@ -3,9 +3,9 @@ module Stripe module Terminal - class ReaderCollectPaymentMethodParams < Stripe::RequestParams - class CollectConfig < Stripe::RequestParams - class Tipping < Stripe::RequestParams + class ReaderCollectPaymentMethodParams < ::Stripe::RequestParams + class CollectConfig < ::Stripe::RequestParams + class Tipping < ::Stripe::RequestParams # Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency). attr_accessor :amount_eligible @@ -34,11 +34,11 @@ module Stripe @tipping = tipping end end - # Configuration overrides. + # Configuration overrides for this collection, such as tipping, surcharging, and customer cancellation settings. attr_accessor :collect_config # Specifies which fields in the response should be expanded. attr_accessor :expand - # PaymentIntent ID. + # The ID of the PaymentIntent to collect a payment method for. attr_accessor :payment_intent def initialize(collect_config: nil, expand: nil, payment_intent: nil) diff --git a/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb b/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb index f5b3b53c..026c267b 100644 --- a/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb +++ b/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb @@ -3,8 +3,8 @@ module Stripe module Terminal - class ReaderConfirmPaymentIntentParams < Stripe::RequestParams - class ConfirmConfig < Stripe::RequestParams + class ReaderConfirmPaymentIntentParams < ::Stripe::RequestParams + class ConfirmConfig < ::Stripe::RequestParams # The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. attr_accessor :return_url @@ -12,11 +12,11 @@ module Stripe @return_url = return_url end end - # Configuration overrides. + # Configuration overrides for this confirmation, such as surcharge settings and return URL. attr_accessor :confirm_config # Specifies which fields in the response should be expanded. attr_accessor :expand - # PaymentIntent ID. + # The ID of the PaymentIntent to confirm. attr_accessor :payment_intent def initialize(confirm_config: nil, expand: nil, payment_intent: nil) diff --git a/lib/stripe/params/terminal/reader_create_params.rb b/lib/stripe/params/terminal/reader_create_params.rb index 64b3f732..d461b684 100644 --- a/lib/stripe/params/terminal/reader_create_params.rb +++ b/lib/stripe/params/terminal/reader_create_params.rb @@ -3,7 +3,7 @@ module Stripe module Terminal - class ReaderCreateParams < Stripe::RequestParams + class ReaderCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # Custom label given to the reader for easier identification. If no label is specified, the registration code will be used. diff --git a/lib/stripe/params/terminal/reader_delete_params.rb b/lib/stripe/params/terminal/reader_delete_params.rb index b75b5ac4..ea97ab6a 100644 --- a/lib/stripe/params/terminal/reader_delete_params.rb +++ b/lib/stripe/params/terminal/reader_delete_params.rb @@ -3,6 +3,6 @@ module Stripe module Terminal - class ReaderDeleteParams < Stripe::RequestParams; end + class ReaderDeleteParams < ::Stripe::RequestParams; end end end diff --git a/lib/stripe/params/terminal/reader_list_params.rb b/lib/stripe/params/terminal/reader_list_params.rb index 6184ce93..6c8d574d 100644 --- a/lib/stripe/params/terminal/reader_list_params.rb +++ b/lib/stripe/params/terminal/reader_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Terminal - class ReaderListParams < Stripe::RequestParams + class ReaderListParams < ::Stripe::RequestParams # Filters readers by device type attr_accessor :device_type # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. diff --git a/lib/stripe/params/terminal/reader_present_payment_method_params.rb b/lib/stripe/params/terminal/reader_present_payment_method_params.rb index 45c5e4af..a184c076 100644 --- a/lib/stripe/params/terminal/reader_present_payment_method_params.rb +++ b/lib/stripe/params/terminal/reader_present_payment_method_params.rb @@ -3,8 +3,8 @@ module Stripe module Terminal - class ReaderPresentPaymentMethodParams < Stripe::RequestParams - class Card < Stripe::RequestParams + class ReaderPresentPaymentMethodParams < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams # Card security code. attr_accessor :cvc # Two-digit number representing the card's expiration month. @@ -22,7 +22,7 @@ module Stripe end end - class CardPresent < Stripe::RequestParams + class CardPresent < ::Stripe::RequestParams # The card number, as a string without any separators. attr_accessor :number @@ -31,8 +31,8 @@ module Stripe end end - class InteracPresent < Stripe::RequestParams - # Card Number + class InteracPresent < ::Stripe::RequestParams + # The Interac card number. attr_accessor :number def initialize(number: nil) diff --git a/lib/stripe/params/terminal/reader_process_payment_intent_params.rb b/lib/stripe/params/terminal/reader_process_payment_intent_params.rb index abe5b3b7..d3814d33 100644 --- a/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +++ b/lib/stripe/params/terminal/reader_process_payment_intent_params.rb @@ -3,9 +3,9 @@ module Stripe module Terminal - class ReaderProcessPaymentIntentParams < Stripe::RequestParams - class ProcessConfig < Stripe::RequestParams - class Tipping < Stripe::RequestParams + class ReaderProcessPaymentIntentParams < ::Stripe::RequestParams + class ProcessConfig < ::Stripe::RequestParams + class Tipping < ::Stripe::RequestParams # Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency). attr_accessor :amount_eligible @@ -40,9 +40,9 @@ module Stripe end # Specifies which fields in the response should be expanded. attr_accessor :expand - # PaymentIntent ID + # The ID of the PaymentIntent to process on the reader. attr_accessor :payment_intent - # Configuration overrides + # Configuration overrides for this transaction, such as tipping and customer cancellation settings. attr_accessor :process_config def initialize(expand: nil, payment_intent: nil, process_config: nil) diff --git a/lib/stripe/params/terminal/reader_process_setup_intent_params.rb b/lib/stripe/params/terminal/reader_process_setup_intent_params.rb index 6f29b2fe..ad6825bb 100644 --- a/lib/stripe/params/terminal/reader_process_setup_intent_params.rb +++ b/lib/stripe/params/terminal/reader_process_setup_intent_params.rb @@ -3,8 +3,8 @@ module Stripe module Terminal - class ReaderProcessSetupIntentParams < Stripe::RequestParams - class ProcessConfig < Stripe::RequestParams + class ReaderProcessSetupIntentParams < ::Stripe::RequestParams + class ProcessConfig < ::Stripe::RequestParams # Enables cancel button on transaction screens. attr_accessor :enable_customer_cancellation @@ -16,9 +16,9 @@ module Stripe attr_accessor :allow_redisplay # Specifies which fields in the response should be expanded. attr_accessor :expand - # Configuration overrides + # Configuration overrides for this setup, such as MOTO and customer cancellation settings. attr_accessor :process_config - # SetupIntent ID + # The ID of the SetupIntent to process on the reader. attr_accessor :setup_intent def initialize(allow_redisplay: nil, expand: nil, process_config: nil, setup_intent: nil) diff --git a/lib/stripe/params/terminal/reader_refund_payment_params.rb b/lib/stripe/params/terminal/reader_refund_payment_params.rb index a77ea6bf..1113aedc 100644 --- a/lib/stripe/params/terminal/reader_refund_payment_params.rb +++ b/lib/stripe/params/terminal/reader_refund_payment_params.rb @@ -3,8 +3,8 @@ module Stripe module Terminal - class ReaderRefundPaymentParams < Stripe::RequestParams - class RefundPaymentConfig < Stripe::RequestParams + class ReaderRefundPaymentParams < ::Stripe::RequestParams + class RefundPaymentConfig < ::Stripe::RequestParams # Enables cancel button on transaction screens. attr_accessor :enable_customer_cancellation @@ -24,7 +24,7 @@ module Stripe attr_accessor :payment_intent # Boolean indicating whether the application fee should be refunded when refunding this charge. If a full charge refund is given, the full application fee will be refunded. Otherwise, the application fee will be refunded in an amount proportional to the amount of the charge refunded. An application fee can be refunded only by the application that created the charge. attr_accessor :refund_application_fee - # Configuration overrides + # Configuration overrides for this refund, such as customer cancellation settings. attr_accessor :refund_payment_config # Boolean indicating whether the transfer should be reversed when refunding this charge. The transfer will be reversed proportionally to the amount being refunded (either the entire or partial amount). A transfer can be reversed only by the application that created the charge. attr_accessor :reverse_transfer diff --git a/lib/stripe/params/terminal/reader_retrieve_params.rb b/lib/stripe/params/terminal/reader_retrieve_params.rb index e72685b7..b792eb1c 100644 --- a/lib/stripe/params/terminal/reader_retrieve_params.rb +++ b/lib/stripe/params/terminal/reader_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Terminal - class ReaderRetrieveParams < Stripe::RequestParams + class ReaderRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/terminal/reader_set_reader_display_params.rb b/lib/stripe/params/terminal/reader_set_reader_display_params.rb index cb3406b7..cb76fe61 100644 --- a/lib/stripe/params/terminal/reader_set_reader_display_params.rb +++ b/lib/stripe/params/terminal/reader_set_reader_display_params.rb @@ -3,10 +3,10 @@ module Stripe module Terminal - class ReaderSetReaderDisplayParams < Stripe::RequestParams - class Cart < Stripe::RequestParams - class LineItem < Stripe::RequestParams - # The price of the item in cents. + class ReaderSetReaderDisplayParams < ::Stripe::RequestParams + class Cart < ::Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + # The price of the item in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). attr_accessor :amount # The description or name of the item. attr_accessor :description @@ -21,11 +21,11 @@ module Stripe end # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). attr_accessor :currency - # Array of line items that were purchased. + # Array of line items to display. attr_accessor :line_items - # The amount of tax in cents. + # The amount of tax in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). attr_accessor :tax - # Total balance of cart due in cents. + # Total balance of cart due in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). attr_accessor :total def initialize(currency: nil, line_items: nil, tax: nil, total: nil) @@ -35,11 +35,11 @@ module Stripe @total = total end end - # Cart + # Cart details to display on the reader screen, including line items, amounts, and currency. attr_accessor :cart # Specifies which fields in the response should be expanded. attr_accessor :expand - # Type + # Type of information to display. Only `cart` is currently supported. attr_accessor :type def initialize(cart: nil, expand: nil, type: nil) diff --git a/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb b/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb index 0a42fbc6..c196b0bc 100644 --- a/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb +++ b/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb @@ -3,7 +3,7 @@ module Stripe module Terminal - class ReaderSucceedInputCollectionParams < Stripe::RequestParams + class ReaderSucceedInputCollectionParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # This parameter defines the skip behavior for input collection. diff --git a/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb b/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb index 16bb345b..0bc54536 100644 --- a/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb +++ b/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb @@ -3,7 +3,7 @@ module Stripe module Terminal - class ReaderTimeoutInputCollectionParams < Stripe::RequestParams + class ReaderTimeoutInputCollectionParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/terminal/reader_update_params.rb b/lib/stripe/params/terminal/reader_update_params.rb index 813e6f53..dead5330 100644 --- a/lib/stripe/params/terminal/reader_update_params.rb +++ b/lib/stripe/params/terminal/reader_update_params.rb @@ -3,7 +3,7 @@ module Stripe module Terminal - class ReaderUpdateParams < Stripe::RequestParams + class ReaderUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # The new label of the reader. diff --git a/lib/stripe/params/test_helpers/confirmation_token_create_params.rb b/lib/stripe/params/test_helpers/confirmation_token_create_params.rb index 86a96e5a..bf51525c 100644 --- a/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +++ b/lib/stripe/params/test_helpers/confirmation_token_create_params.rb @@ -3,9 +3,9 @@ module Stripe module TestHelpers - class ConfirmationTokenCreateParams < Stripe::RequestParams - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class ConfirmationTokenCreateParams < ::Stripe::RequestParams + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. attr_accessor :account_number # Institution number of the customer's bank. @@ -20,13 +20,13 @@ module Stripe end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. attr_accessor :account_number # Bank-State-Branch number of the bank account. @@ -38,7 +38,7 @@ module Stripe end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. attr_accessor :account_number # Sort code of the bank account. (e.g., `10-20-30`) @@ -50,11 +50,11 @@ module Stripe end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -104,9 +104,9 @@ module Stripe end end - class Blik < Stripe::RequestParams; end + class Blik < ::Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) attr_accessor :tax_id @@ -115,11 +115,11 @@ module Stripe end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Eps < ::Stripe::RequestParams # The customer's bank. attr_accessor :bank @@ -128,7 +128,7 @@ module Stripe end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction attr_accessor :account_holder_type # The customer's bank. @@ -140,10 +140,10 @@ module Stripe end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. attr_accessor :bank @@ -152,11 +152,11 @@ module Stripe end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. attr_accessor :day # The month of birth, between 1 and 12. @@ -178,14 +178,14 @@ module Stripe end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. attr_accessor :funding @@ -194,7 +194,7 @@ module Stripe end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. attr_accessor :account_holder_name # The account number for the bank account. @@ -225,9 +225,9 @@ module Stripe end end - class Oxxo < Stripe::RequestParams; end + class Oxxo < ::Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class P24 < ::Stripe::RequestParams # The customer's bank. attr_accessor :bank @@ -236,14 +236,14 @@ module Stripe end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. attr_accessor :session @@ -252,11 +252,11 @@ module Stripe end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. attr_accessor :iban @@ -265,7 +265,7 @@ module Stripe end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. attr_accessor :country @@ -274,10 +274,10 @@ module Stripe end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. attr_accessor :account_holder_type # Account number of the bank account. @@ -304,8 +304,8 @@ module Stripe end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. attr_accessor :acss_debit # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method. @@ -528,10 +528,10 @@ module Stripe end end - class PaymentMethodOptions < Stripe::RequestParams - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams - class Plan < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams + class Plan < ::Stripe::RequestParams # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. attr_accessor :count # For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card. @@ -569,8 +569,8 @@ module Stripe end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). diff --git a/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb b/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb index e1191035..bf08348a 100644 --- a/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +++ b/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb @@ -3,7 +3,7 @@ module Stripe module TestHelpers - class CustomerFundCashBalanceParams < Stripe::RequestParams + class CustomerFundCashBalanceParams < ::Stripe::RequestParams # Amount to be used for this test cash balance transaction. A positive integer representing how much to fund in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to fund $1.00 or 100 to fund ¥100, a zero-decimal currency). attr_accessor :amount # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). diff --git a/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb b/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb index cd6e1d77..49ae4ee7 100644 --- a/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +++ b/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb @@ -4,10 +4,10 @@ module Stripe module TestHelpers module Issuing - class AuthorizationCaptureParams < Stripe::RequestParams - class PurchaseDetails < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class AuthorizationCaptureParams < ::Stripe::RequestParams + class PurchaseDetails < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. attr_accessor :driver_id # Odometer reading. @@ -34,8 +34,8 @@ module Stripe end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. attr_accessor :gross_amount_decimal @@ -44,7 +44,7 @@ module Stripe end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. attr_accessor :gross_amount_decimal @@ -53,7 +53,7 @@ module Stripe end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. attr_accessor :local_amount_decimal # Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax. @@ -99,8 +99,8 @@ module Stripe end end - class Flight < Stripe::RequestParams - class Segment < Stripe::RequestParams + class Flight < ::Stripe::RequestParams + class Segment < ::Stripe::RequestParams # The three-letter IATA airport code of the flight's destination. attr_accessor :arrival_airport_code # The airline carrier code. @@ -156,7 +156,7 @@ module Stripe end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. attr_accessor :industry_product_code # The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places. @@ -183,7 +183,7 @@ module Stripe end end - class Lodging < Stripe::RequestParams + class Lodging < ::Stripe::RequestParams # The time of checking into the lodging. attr_accessor :check_in_at # The number of nights stayed at the lodging. @@ -195,7 +195,7 @@ module Stripe end end - class Receipt < Stripe::RequestParams + class Receipt < ::Stripe::RequestParams # Attribute for param field description attr_accessor :description # Attribute for param field quantity diff --git a/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb b/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb index c4707132..f526c568 100644 --- a/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +++ b/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb @@ -4,8 +4,8 @@ module Stripe module TestHelpers module Issuing - class AuthorizationCreateParams < Stripe::RequestParams - class AmountDetails < Stripe::RequestParams + class AuthorizationCreateParams < ::Stripe::RequestParams + class AmountDetails < ::Stripe::RequestParams # The ATM withdrawal fee. attr_accessor :atm_fee # The amount of cash requested by the cardholder. @@ -17,8 +17,8 @@ module Stripe end end - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. attr_accessor :driver_id # Odometer reading. @@ -45,8 +45,8 @@ module Stripe end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. attr_accessor :gross_amount_decimal @@ -55,7 +55,7 @@ module Stripe end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. attr_accessor :gross_amount_decimal @@ -64,7 +64,7 @@ module Stripe end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. attr_accessor :local_amount_decimal # Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax. @@ -110,7 +110,7 @@ module Stripe end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. attr_accessor :industry_product_code # The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places. @@ -137,7 +137,7 @@ module Stripe end end - class MerchantData < Stripe::RequestParams + class MerchantData < ::Stripe::RequestParams # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. attr_accessor :category # City where the seller is located @@ -180,7 +180,7 @@ module Stripe end end - class NetworkData < Stripe::RequestParams + class NetworkData < ::Stripe::RequestParams # Identifier assigned to the acquirer by the card network. attr_accessor :acquiring_institution_id @@ -189,8 +189,8 @@ module Stripe end end - class RiskAssessment < Stripe::RequestParams - class CardTestingRisk < Stripe::RequestParams + class RiskAssessment < ::Stripe::RequestParams + class CardTestingRisk < ::Stripe::RequestParams # The % of declines due to a card number not existing in the past hour, taking place at the same merchant. Higher rates correspond to a greater probability of card testing activity, meaning bad actors may be attempting different card number combinations to guess a correct one. Takes on values between 0 and 100. attr_accessor :invalid_account_number_decline_rate_past_hour # The % of declines due to incorrect verification data (like CVV or expiry) in the past hour, taking place at the same merchant. Higher rates correspond to a greater probability of bad actors attempting to utilize valid card credentials at merchants with verification requirements. Takes on values between 0 and 100. @@ -209,7 +209,7 @@ module Stripe end end - class MerchantDisputeRisk < Stripe::RequestParams + class MerchantDisputeRisk < ::Stripe::RequestParams # The dispute rate observed across all Stripe Issuing authorizations for this merchant. For example, a value of 50 means 50% of authorizations from this merchant on Stripe Issuing have resulted in a dispute. Higher values mean a higher likelihood the authorization is disputed. Takes on values between 0 and 100. attr_accessor :dispute_rate # The likelihood that authorizations from this merchant will result in a dispute based on their history on Stripe Issuing. @@ -231,8 +231,8 @@ module Stripe end end - class VerificationData < Stripe::RequestParams - class AuthenticationExemption < Stripe::RequestParams + class VerificationData < ::Stripe::RequestParams + class AuthenticationExemption < ::Stripe::RequestParams # The entity that requested the exemption, either the acquiring merchant or the Issuing user. attr_accessor :claimed_by # The specific exemption claimed for this authorization. @@ -244,7 +244,7 @@ module Stripe end end - class ThreeDSecure < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams # The outcome of the 3D Secure authentication request. attr_accessor :result diff --git a/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb b/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb index d2396087..c9db876e 100644 --- a/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb +++ b/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb @@ -4,7 +4,7 @@ module Stripe module TestHelpers module Issuing - class AuthorizationExpireParams < Stripe::RequestParams + class AuthorizationExpireParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb b/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb index 2bd77b62..ead7cb9f 100644 --- a/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +++ b/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb @@ -4,9 +4,9 @@ module Stripe module TestHelpers module Issuing - class AuthorizationFinalizeAmountParams < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class AuthorizationFinalizeAmountParams < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. attr_accessor :driver_id # Odometer reading. @@ -33,8 +33,8 @@ module Stripe end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. attr_accessor :gross_amount_decimal @@ -43,7 +43,7 @@ module Stripe end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. attr_accessor :gross_amount_decimal @@ -52,7 +52,7 @@ module Stripe end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. attr_accessor :local_amount_decimal # Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax. @@ -98,7 +98,7 @@ module Stripe end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. attr_accessor :industry_product_code # The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places. diff --git a/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb b/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb index 99d286bb..c4e428d2 100644 --- a/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +++ b/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb @@ -4,7 +4,7 @@ module Stripe module TestHelpers module Issuing - class AuthorizationIncrementParams < Stripe::RequestParams + class AuthorizationIncrementParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # The amount to increment the authorization by. This amount is in the authorization currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). diff --git a/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb b/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb index af6adfdc..aaf02d51 100644 --- a/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb +++ b/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb @@ -4,7 +4,7 @@ module Stripe module TestHelpers module Issuing - class AuthorizationRespondParams < Stripe::RequestParams + class AuthorizationRespondParams < ::Stripe::RequestParams # Whether to simulate the user confirming that the transaction was legitimate (true) or telling Stripe that it was fraudulent (false). attr_accessor :confirmed # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb b/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb index d783df71..97415d6d 100644 --- a/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +++ b/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb @@ -4,7 +4,7 @@ module Stripe module TestHelpers module Issuing - class AuthorizationReverseParams < Stripe::RequestParams + class AuthorizationReverseParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # The amount to reverse from the authorization. If not provided, the full amount of the authorization will be reversed. This amount is in the authorization currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). diff --git a/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb b/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb index 67bcdd21..d4b4b868 100644 --- a/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb +++ b/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb @@ -4,7 +4,7 @@ module Stripe module TestHelpers module Issuing - class CardDeliverCardParams < Stripe::RequestParams + class CardDeliverCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb b/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb index 2df710d2..96916f31 100644 --- a/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb +++ b/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb @@ -4,7 +4,7 @@ module Stripe module TestHelpers module Issuing - class CardFailCardParams < Stripe::RequestParams + class CardFailCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb b/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb index 88b39db2..93a08484 100644 --- a/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb +++ b/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb @@ -4,7 +4,7 @@ module Stripe module TestHelpers module Issuing - class CardReturnCardParams < Stripe::RequestParams + class CardReturnCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb b/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb index 14dda3b6..41f1d238 100644 --- a/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb +++ b/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb @@ -4,7 +4,7 @@ module Stripe module TestHelpers module Issuing - class CardShipCardParams < Stripe::RequestParams + class CardShipCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb b/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb index 423cb359..9c19b07a 100644 --- a/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb +++ b/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb @@ -4,7 +4,7 @@ module Stripe module TestHelpers module Issuing - class CardSubmitCardParams < Stripe::RequestParams + class CardSubmitCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb b/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb index c20ce3b1..ce039c9f 100644 --- a/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb +++ b/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb @@ -4,7 +4,7 @@ module Stripe module TestHelpers module Issuing - class PersonalizationDesignActivateParams < Stripe::RequestParams + class PersonalizationDesignActivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb b/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb index 79dbd488..c5e57e4a 100644 --- a/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb +++ b/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb @@ -4,7 +4,7 @@ module Stripe module TestHelpers module Issuing - class PersonalizationDesignDeactivateParams < Stripe::RequestParams + class PersonalizationDesignDeactivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb b/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb index 5ccdfe73..f7386bcb 100644 --- a/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb +++ b/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb @@ -4,8 +4,8 @@ module Stripe module TestHelpers module Issuing - class PersonalizationDesignRejectParams < Stripe::RequestParams - class RejectionReasons < Stripe::RequestParams + class PersonalizationDesignRejectParams < ::Stripe::RequestParams + class RejectionReasons < ::Stripe::RequestParams # The reason(s) the card logo was rejected. attr_accessor :card_logo # The reason(s) the carrier text was rejected. diff --git a/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb b/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb index 062add7b..1765729b 100644 --- a/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +++ b/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb @@ -4,8 +4,8 @@ module Stripe module TestHelpers module Issuing - class TransactionCreateForceCaptureParams < Stripe::RequestParams - class MerchantData < Stripe::RequestParams + class TransactionCreateForceCaptureParams < ::Stripe::RequestParams + class MerchantData < ::Stripe::RequestParams # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. attr_accessor :category # City where the seller is located @@ -48,9 +48,9 @@ module Stripe end end - class PurchaseDetails < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class PurchaseDetails < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. attr_accessor :driver_id # Odometer reading. @@ -77,8 +77,8 @@ module Stripe end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. attr_accessor :gross_amount_decimal @@ -87,7 +87,7 @@ module Stripe end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. attr_accessor :gross_amount_decimal @@ -96,7 +96,7 @@ module Stripe end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. attr_accessor :local_amount_decimal # Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax. @@ -142,8 +142,8 @@ module Stripe end end - class Flight < Stripe::RequestParams - class Segment < Stripe::RequestParams + class Flight < ::Stripe::RequestParams + class Segment < ::Stripe::RequestParams # The three-letter IATA airport code of the flight's destination. attr_accessor :arrival_airport_code # The airline carrier code. @@ -199,7 +199,7 @@ module Stripe end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. attr_accessor :industry_product_code # The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places. @@ -226,7 +226,7 @@ module Stripe end end - class Lodging < Stripe::RequestParams + class Lodging < ::Stripe::RequestParams # The time of checking into the lodging. attr_accessor :check_in_at # The number of nights stayed at the lodging. @@ -238,7 +238,7 @@ module Stripe end end - class Receipt < Stripe::RequestParams + class Receipt < ::Stripe::RequestParams # Attribute for param field description attr_accessor :description # Attribute for param field quantity diff --git a/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb b/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb index 405340e7..cd9d4846 100644 --- a/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +++ b/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb @@ -4,8 +4,8 @@ module Stripe module TestHelpers module Issuing - class TransactionCreateUnlinkedRefundParams < Stripe::RequestParams - class MerchantData < Stripe::RequestParams + class TransactionCreateUnlinkedRefundParams < ::Stripe::RequestParams + class MerchantData < ::Stripe::RequestParams # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. attr_accessor :category # City where the seller is located @@ -48,9 +48,9 @@ module Stripe end end - class PurchaseDetails < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class PurchaseDetails < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. attr_accessor :driver_id # Odometer reading. @@ -77,8 +77,8 @@ module Stripe end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. attr_accessor :gross_amount_decimal @@ -87,7 +87,7 @@ module Stripe end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. attr_accessor :gross_amount_decimal @@ -96,7 +96,7 @@ module Stripe end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. attr_accessor :local_amount_decimal # Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax. @@ -142,8 +142,8 @@ module Stripe end end - class Flight < Stripe::RequestParams - class Segment < Stripe::RequestParams + class Flight < ::Stripe::RequestParams + class Segment < ::Stripe::RequestParams # The three-letter IATA airport code of the flight's destination. attr_accessor :arrival_airport_code # The airline carrier code. @@ -199,7 +199,7 @@ module Stripe end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. attr_accessor :industry_product_code # The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places. @@ -226,7 +226,7 @@ module Stripe end end - class Lodging < Stripe::RequestParams + class Lodging < ::Stripe::RequestParams # The time of checking into the lodging. attr_accessor :check_in_at # The number of nights stayed at the lodging. @@ -238,7 +238,7 @@ module Stripe end end - class Receipt < Stripe::RequestParams + class Receipt < ::Stripe::RequestParams # Attribute for param field description attr_accessor :description # Attribute for param field quantity diff --git a/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb b/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb index eb9836ec..7ed16189 100644 --- a/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +++ b/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb @@ -4,7 +4,7 @@ module Stripe module TestHelpers module Issuing - class TransactionRefundParams < Stripe::RequestParams + class TransactionRefundParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # The total amount to attempt to refund. This amount is in the provided currency, or defaults to the cards currency, and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). diff --git a/lib/stripe/params/test_helpers/refund_expire_params.rb b/lib/stripe/params/test_helpers/refund_expire_params.rb index c9248562..6199d271 100644 --- a/lib/stripe/params/test_helpers/refund_expire_params.rb +++ b/lib/stripe/params/test_helpers/refund_expire_params.rb @@ -3,7 +3,7 @@ module Stripe module TestHelpers - class RefundExpireParams < Stripe::RequestParams + class RefundExpireParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb b/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb index 70b9f1a9..bbb4fae3 100644 --- a/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +++ b/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb @@ -4,8 +4,8 @@ module Stripe module TestHelpers module Terminal - class ReaderPresentPaymentMethodParams < Stripe::RequestParams - class Card < Stripe::RequestParams + class ReaderPresentPaymentMethodParams < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams # Card security code. attr_accessor :cvc # Two-digit number representing the card's expiration month. @@ -23,7 +23,7 @@ module Stripe end end - class CardPresent < Stripe::RequestParams + class CardPresent < ::Stripe::RequestParams # The card number, as a string without any separators. attr_accessor :number @@ -32,8 +32,8 @@ module Stripe end end - class InteracPresent < Stripe::RequestParams - # Card Number + class InteracPresent < ::Stripe::RequestParams + # The Interac card number. attr_accessor :number def initialize(number: nil) diff --git a/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb b/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb index 14442ba8..e4e82e3c 100644 --- a/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb +++ b/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb @@ -4,7 +4,7 @@ module Stripe module TestHelpers module Terminal - class ReaderSucceedInputCollectionParams < Stripe::RequestParams + class ReaderSucceedInputCollectionParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # This parameter defines the skip behavior for input collection. diff --git a/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb b/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb index 13582d6f..3e93af5b 100644 --- a/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb +++ b/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb @@ -4,7 +4,7 @@ module Stripe module TestHelpers module Terminal - class ReaderTimeoutInputCollectionParams < Stripe::RequestParams + class ReaderTimeoutInputCollectionParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/test_helpers/test_clock_advance_params.rb b/lib/stripe/params/test_helpers/test_clock_advance_params.rb index 67842f17..3b6989be 100644 --- a/lib/stripe/params/test_helpers/test_clock_advance_params.rb +++ b/lib/stripe/params/test_helpers/test_clock_advance_params.rb @@ -3,7 +3,7 @@ module Stripe module TestHelpers - class TestClockAdvanceParams < Stripe::RequestParams + class TestClockAdvanceParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # The time to advance the test clock. Must be after the test clock's current frozen time. Cannot be more than two intervals in the future from the shortest subscription in this test clock. If there are no subscriptions in this test clock, it cannot be more than two years in the future. diff --git a/lib/stripe/params/test_helpers/test_clock_create_params.rb b/lib/stripe/params/test_helpers/test_clock_create_params.rb index e041641b..0686ceb0 100644 --- a/lib/stripe/params/test_helpers/test_clock_create_params.rb +++ b/lib/stripe/params/test_helpers/test_clock_create_params.rb @@ -3,7 +3,7 @@ module Stripe module TestHelpers - class TestClockCreateParams < Stripe::RequestParams + class TestClockCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # The initial frozen time for this test clock. diff --git a/lib/stripe/params/test_helpers/test_clock_delete_params.rb b/lib/stripe/params/test_helpers/test_clock_delete_params.rb index caab84a4..a8a112cf 100644 --- a/lib/stripe/params/test_helpers/test_clock_delete_params.rb +++ b/lib/stripe/params/test_helpers/test_clock_delete_params.rb @@ -3,6 +3,6 @@ module Stripe module TestHelpers - class TestClockDeleteParams < Stripe::RequestParams; end + class TestClockDeleteParams < ::Stripe::RequestParams; end end end diff --git a/lib/stripe/params/test_helpers/test_clock_list_params.rb b/lib/stripe/params/test_helpers/test_clock_list_params.rb index ccefe6f3..6d641f3f 100644 --- a/lib/stripe/params/test_helpers/test_clock_list_params.rb +++ b/lib/stripe/params/test_helpers/test_clock_list_params.rb @@ -3,7 +3,7 @@ module Stripe module TestHelpers - class TestClockListParams < Stripe::RequestParams + class TestClockListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb b/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb index 3e94a07d..42a7d78e 100644 --- a/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb +++ b/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module TestHelpers - class TestClockRetrieveParams < Stripe::RequestParams + class TestClockRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb b/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb index 9179293c..bdaf02fe 100644 --- a/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +++ b/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb @@ -4,8 +4,8 @@ module Stripe module TestHelpers module Treasury - class InboundTransferFailParams < Stripe::RequestParams - class FailureDetails < Stripe::RequestParams + class InboundTransferFailParams < ::Stripe::RequestParams + class FailureDetails < ::Stripe::RequestParams # Reason for the failure. attr_accessor :code diff --git a/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb b/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb index a518d6c1..7ed03636 100644 --- a/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +++ b/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb @@ -4,7 +4,7 @@ module Stripe module TestHelpers module Treasury - class InboundTransferReturnInboundTransferParams < Stripe::RequestParams + class InboundTransferReturnInboundTransferParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb b/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb index 238e02f1..50fbcaa9 100644 --- a/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb +++ b/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb @@ -4,7 +4,7 @@ module Stripe module TestHelpers module Treasury - class InboundTransferSucceedParams < Stripe::RequestParams + class InboundTransferSucceedParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb b/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb index de4d3ee7..dd1a5c4f 100644 --- a/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb +++ b/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb @@ -4,7 +4,7 @@ module Stripe module TestHelpers module Treasury - class OutboundPaymentFailParams < Stripe::RequestParams + class OutboundPaymentFailParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb b/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb index 79fbd7cb..ac6c032a 100644 --- a/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb +++ b/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb @@ -4,7 +4,7 @@ module Stripe module TestHelpers module Treasury - class OutboundPaymentPostParams < Stripe::RequestParams + class OutboundPaymentPostParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb b/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb index 2cfef431..840429f5 100644 --- a/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb +++ b/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb @@ -4,8 +4,8 @@ module Stripe module TestHelpers module Treasury - class OutboundPaymentReturnOutboundPaymentParams < Stripe::RequestParams - class ReturnedDetails < Stripe::RequestParams + class OutboundPaymentReturnOutboundPaymentParams < ::Stripe::RequestParams + class ReturnedDetails < ::Stripe::RequestParams # The return code to be set on the OutboundPayment object. attr_accessor :code diff --git a/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb b/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb index 9f14b0fc..79b38ddc 100644 --- a/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb +++ b/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb @@ -4,9 +4,9 @@ module Stripe module TestHelpers module Treasury - class OutboundPaymentUpdateParams < Stripe::RequestParams - class TrackingDetails < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundPaymentUpdateParams < ::Stripe::RequestParams + class TrackingDetails < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # ACH trace ID for funds sent over the `ach` network. attr_accessor :trace_id @@ -15,7 +15,7 @@ module Stripe end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # CHIPS System Sequence Number (SSN) for funds sent over the `us_domestic_wire` network. attr_accessor :chips # IMAD for funds sent over the `us_domestic_wire` network. diff --git a/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb b/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb index 787333b4..97469271 100644 --- a/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb +++ b/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb @@ -4,7 +4,7 @@ module Stripe module TestHelpers module Treasury - class OutboundTransferFailParams < Stripe::RequestParams + class OutboundTransferFailParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb b/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb index 381350b4..8d6fec8f 100644 --- a/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb +++ b/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb @@ -4,7 +4,7 @@ module Stripe module TestHelpers module Treasury - class OutboundTransferPostParams < Stripe::RequestParams + class OutboundTransferPostParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb b/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb index 4fcc187a..fa5a4fca 100644 --- a/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb +++ b/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb @@ -4,8 +4,8 @@ module Stripe module TestHelpers module Treasury - class OutboundTransferReturnOutboundTransferParams < Stripe::RequestParams - class ReturnedDetails < Stripe::RequestParams + class OutboundTransferReturnOutboundTransferParams < ::Stripe::RequestParams + class ReturnedDetails < ::Stripe::RequestParams # Reason for the return. attr_accessor :code diff --git a/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb b/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb index 6c65cf3c..81609b86 100644 --- a/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb +++ b/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb @@ -4,9 +4,9 @@ module Stripe module TestHelpers module Treasury - class OutboundTransferUpdateParams < Stripe::RequestParams - class TrackingDetails < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundTransferUpdateParams < ::Stripe::RequestParams + class TrackingDetails < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # ACH trace ID for funds sent over the `ach` network. attr_accessor :trace_id @@ -15,7 +15,7 @@ module Stripe end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # CHIPS System Sequence Number (SSN) for funds sent over the `us_domestic_wire` network. attr_accessor :chips # IMAD for funds sent over the `us_domestic_wire` network. diff --git a/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb b/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb index 25e2ee7a..a8aac457 100644 --- a/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +++ b/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb @@ -4,9 +4,9 @@ module Stripe module TestHelpers module Treasury - class ReceivedCreditCreateParams < Stripe::RequestParams - class InitiatingPaymentMethodDetails < Stripe::RequestParams - class UsBankAccount < Stripe::RequestParams + class ReceivedCreditCreateParams < ::Stripe::RequestParams + class InitiatingPaymentMethodDetails < ::Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # The bank account holder's name. attr_accessor :account_holder_name # The bank account number. diff --git a/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb b/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb index cf607681..ce4d949c 100644 --- a/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +++ b/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb @@ -4,9 +4,9 @@ module Stripe module TestHelpers module Treasury - class ReceivedDebitCreateParams < Stripe::RequestParams - class InitiatingPaymentMethodDetails < Stripe::RequestParams - class UsBankAccount < Stripe::RequestParams + class ReceivedDebitCreateParams < ::Stripe::RequestParams + class InitiatingPaymentMethodDetails < ::Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # The bank account holder's name. attr_accessor :account_holder_name # The bank account number. diff --git a/lib/stripe/params/token_create_params.rb b/lib/stripe/params/token_create_params.rb index 338cfbb1..9b921059 100644 --- a/lib/stripe/params/token_create_params.rb +++ b/lib/stripe/params/token_create_params.rb @@ -2,10 +2,10 @@ # frozen_string_literal: true module Stripe - class TokenCreateParams < Stripe::RequestParams - class Account < Stripe::RequestParams - class Company < Stripe::RequestParams - class Address < Stripe::RequestParams + class TokenCreateParams < ::Stripe::RequestParams + class Account < ::Stripe::RequestParams + class Company < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -36,7 +36,7 @@ module Stripe end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -71,7 +71,7 @@ module Stripe end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -106,7 +106,7 @@ module Stripe end end - class DirectorshipDeclaration < Stripe::RequestParams + class DirectorshipDeclaration < ::Stripe::RequestParams # The Unix timestamp marking when the directorship declaration attestation was made. attr_accessor :date # The IP address from which the directorship declaration attestation was made. @@ -121,7 +121,7 @@ module Stripe end end - class OwnershipDeclaration < Stripe::RequestParams + class OwnershipDeclaration < ::Stripe::RequestParams # The Unix timestamp marking when the beneficial owner attestation was made. attr_accessor :date # The IP address from which the beneficial owner attestation was made. @@ -136,7 +136,7 @@ module Stripe end end - class RegistrationDate < Stripe::RequestParams + class RegistrationDate < ::Stripe::RequestParams # The day of registration, between 1 and 31. attr_accessor :day # The month of registration, between 1 and 12. @@ -151,8 +151,23 @@ module Stripe end end - class Verification < Stripe::RequestParams - class Document < Stripe::RequestParams + class RepresentativeDeclaration < ::Stripe::RequestParams + # The Unix timestamp marking when the representative declaration attestation was made. + attr_accessor :date + # The IP address from which the representative declaration attestation was made. + attr_accessor :ip + # The user agent of the browser from which the representative declaration attestation was made. + attr_accessor :user_agent + + def initialize(date: nil, ip: nil, user_agent: nil) + @date = date + @ip = ip + @user_agent = user_agent + end + end + + class Verification < ::Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. attr_accessor :back # The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -206,6 +221,8 @@ module Stripe attr_accessor :registration_date # The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong). attr_accessor :registration_number + # This hash is used to attest that the representative is authorized to act as the representative of their legal entity. + attr_accessor :representative_declaration # The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value. attr_accessor :structure # The business ID number of the company, as appropriate for the company’s country. (Examples are an Employer ID Number in the U.S., a Business Number in Canada, or a Company Number in the UK.) @@ -236,6 +253,7 @@ module Stripe phone: nil, registration_date: nil, registration_number: nil, + representative_declaration: nil, structure: nil, tax_id: nil, tax_id_registrar: nil, @@ -260,6 +278,7 @@ module Stripe @phone = phone @registration_date = registration_date @registration_number = registration_number + @representative_declaration = representative_declaration @structure = structure @tax_id = tax_id @tax_id_registrar = tax_id_registrar @@ -268,8 +287,8 @@ module Stripe end end - class Individual < Stripe::RequestParams - class Address < Stripe::RequestParams + class Individual < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -300,7 +319,7 @@ module Stripe end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -335,7 +354,7 @@ module Stripe end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -370,7 +389,7 @@ module Stripe end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. attr_accessor :day # The month of birth, between 1 and 12. @@ -385,7 +404,7 @@ module Stripe end end - class RegisteredAddress < Stripe::RequestParams + class RegisteredAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -416,7 +435,7 @@ module Stripe end end - class Relationship < Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. attr_accessor :director # Whether the person has significant responsibility to control, manage, or direct the organization. @@ -443,8 +462,8 @@ module Stripe end end - class Verification < Stripe::RequestParams - class AdditionalDocument < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class AdditionalDocument < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. attr_accessor :back # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -456,7 +475,7 @@ module Stripe end end - class Document < Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. attr_accessor :back # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -591,7 +610,7 @@ module Stripe end end - class BankAccount < Stripe::RequestParams + class BankAccount < ::Stripe::RequestParams # The name of the person or business that owns the bank account. This field is required when attaching the bank account to a `Customer` object. attr_accessor :account_holder_name # The type of entity that holds the account. It can be `company` or `individual`. This field is required when attaching the bank account to a `Customer` object. @@ -630,8 +649,8 @@ module Stripe end end - class Card < Stripe::RequestParams - class Networks < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Networks < ::Stripe::RequestParams # The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card. attr_accessor :preferred @@ -697,7 +716,7 @@ module Stripe end end - class CvcUpdate < Stripe::RequestParams + class CvcUpdate < ::Stripe::RequestParams # The CVC value, in string form. attr_accessor :cvc @@ -706,9 +725,9 @@ module Stripe end end - class Person < Stripe::RequestParams - class AdditionalTosAcceptances < Stripe::RequestParams - class Account < Stripe::RequestParams + class Person < ::Stripe::RequestParams + class AdditionalTosAcceptances < ::Stripe::RequestParams + class Account < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted the service agreement. attr_accessor :date # The IP address from which the account representative accepted the service agreement. @@ -730,7 +749,7 @@ module Stripe end end - class Address < Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -761,7 +780,7 @@ module Stripe end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -796,7 +815,7 @@ module Stripe end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -831,7 +850,7 @@ module Stripe end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. attr_accessor :day # The month of birth, between 1 and 12. @@ -846,8 +865,8 @@ module Stripe end end - class Documents < Stripe::RequestParams - class CompanyAuthorization < Stripe::RequestParams + class Documents < ::Stripe::RequestParams + class CompanyAuthorization < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -856,7 +875,7 @@ module Stripe end end - class Passport < Stripe::RequestParams + class Passport < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -865,7 +884,7 @@ module Stripe end end - class Visa < Stripe::RequestParams + class Visa < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. attr_accessor :files @@ -887,7 +906,7 @@ module Stripe end end - class RegisteredAddress < Stripe::RequestParams + class RegisteredAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -918,7 +937,7 @@ module Stripe end end - class Relationship < Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # Whether the person is the authorizer of the account's representative. attr_accessor :authorizer # Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. @@ -957,8 +976,8 @@ module Stripe end end - class UsCfpbData < Stripe::RequestParams - class EthnicityDetails < Stripe::RequestParams + class UsCfpbData < ::Stripe::RequestParams + class EthnicityDetails < ::Stripe::RequestParams # The persons ethnicity attr_accessor :ethnicity # Please specify your origin, when other is selected. @@ -970,7 +989,7 @@ module Stripe end end - class RaceDetails < Stripe::RequestParams + class RaceDetails < ::Stripe::RequestParams # The persons race. attr_accessor :race # Please specify your race, when other is selected. @@ -995,8 +1014,8 @@ module Stripe end end - class Verification < Stripe::RequestParams - class AdditionalDocument < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class AdditionalDocument < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. attr_accessor :back # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -1008,7 +1027,7 @@ module Stripe end end - class Document < Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. attr_accessor :back # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. @@ -1143,7 +1162,7 @@ module Stripe end end - class Pii < Stripe::RequestParams + class Pii < ::Stripe::RequestParams # The `id_number` for the PII, in string form. attr_accessor :id_number diff --git a/lib/stripe/params/token_retrieve_params.rb b/lib/stripe/params/token_retrieve_params.rb index 3f34f3c1..d45a81fd 100644 --- a/lib/stripe/params/token_retrieve_params.rb +++ b/lib/stripe/params/token_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class TokenRetrieveParams < Stripe::RequestParams + class TokenRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/topup_cancel_params.rb b/lib/stripe/params/topup_cancel_params.rb index ba423b62..4e36148a 100644 --- a/lib/stripe/params/topup_cancel_params.rb +++ b/lib/stripe/params/topup_cancel_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class TopupCancelParams < Stripe::RequestParams + class TopupCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/topup_create_params.rb b/lib/stripe/params/topup_create_params.rb index 694c18aa..da808194 100644 --- a/lib/stripe/params/topup_create_params.rb +++ b/lib/stripe/params/topup_create_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class TopupCreateParams < Stripe::RequestParams + class TopupCreateParams < ::Stripe::RequestParams # A positive integer representing how much to transfer. attr_accessor :amount # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). diff --git a/lib/stripe/params/topup_list_params.rb b/lib/stripe/params/topup_list_params.rb index 660318a1..1048d31f 100644 --- a/lib/stripe/params/topup_list_params.rb +++ b/lib/stripe/params/topup_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class TopupListParams < Stripe::RequestParams - class Amount < Stripe::RequestParams + class TopupListParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) @@ -21,7 +21,7 @@ module Stripe end end - class Created < Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/topup_retrieve_params.rb b/lib/stripe/params/topup_retrieve_params.rb index 28073148..c411d638 100644 --- a/lib/stripe/params/topup_retrieve_params.rb +++ b/lib/stripe/params/topup_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class TopupRetrieveParams < Stripe::RequestParams + class TopupRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/topup_update_params.rb b/lib/stripe/params/topup_update_params.rb index 646f77f4..359debf7 100644 --- a/lib/stripe/params/topup_update_params.rb +++ b/lib/stripe/params/topup_update_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class TopupUpdateParams < Stripe::RequestParams + class TopupUpdateParams < ::Stripe::RequestParams # An arbitrary string attached to the object. Often useful for displaying to users. attr_accessor :description # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/transfer_create_params.rb b/lib/stripe/params/transfer_create_params.rb index 0799189d..2b766b6c 100644 --- a/lib/stripe/params/transfer_create_params.rb +++ b/lib/stripe/params/transfer_create_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class TransferCreateParams < Stripe::RequestParams + class TransferCreateParams < ::Stripe::RequestParams # A positive integer in cents (or local equivalent) representing how much to transfer. attr_accessor :amount # Three-letter [ISO code for currency](https://www.iso.org/iso-4217-currency-codes.html) in lowercase. Must be a [supported currency](https://docs.stripe.com/currencies). diff --git a/lib/stripe/params/transfer_list_params.rb b/lib/stripe/params/transfer_list_params.rb index 9d79582f..5432e57f 100644 --- a/lib/stripe/params/transfer_list_params.rb +++ b/lib/stripe/params/transfer_list_params.rb @@ -2,8 +2,8 @@ # frozen_string_literal: true module Stripe - class TransferListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class TransferListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/transfer_retrieve_params.rb b/lib/stripe/params/transfer_retrieve_params.rb index 374cd889..38ab73fa 100644 --- a/lib/stripe/params/transfer_retrieve_params.rb +++ b/lib/stripe/params/transfer_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class TransferRetrieveParams < Stripe::RequestParams + class TransferRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/transfer_reversal_create_params.rb b/lib/stripe/params/transfer_reversal_create_params.rb index beb9746f..4308b3c2 100644 --- a/lib/stripe/params/transfer_reversal_create_params.rb +++ b/lib/stripe/params/transfer_reversal_create_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class TransferReversalCreateParams < Stripe::RequestParams + class TransferReversalCreateParams < ::Stripe::RequestParams # A positive integer in cents (or local equivalent) representing how much of this transfer to reverse. Can only reverse up to the unreversed amount remaining of the transfer. Partial transfer reversals are only allowed for transfers to Stripe Accounts. Defaults to the entire transfer amount. attr_accessor :amount # An arbitrary string which you can attach to a reversal object. This will be unset if you POST an empty value. diff --git a/lib/stripe/params/transfer_reversal_list_params.rb b/lib/stripe/params/transfer_reversal_list_params.rb index 60e05e12..43cec7ec 100644 --- a/lib/stripe/params/transfer_reversal_list_params.rb +++ b/lib/stripe/params/transfer_reversal_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class TransferReversalListParams < Stripe::RequestParams + class TransferReversalListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/transfer_reversal_retrieve_params.rb b/lib/stripe/params/transfer_reversal_retrieve_params.rb index 565f166c..4104d675 100644 --- a/lib/stripe/params/transfer_reversal_retrieve_params.rb +++ b/lib/stripe/params/transfer_reversal_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class TransferReversalRetrieveParams < Stripe::RequestParams + class TransferReversalRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/transfer_reversal_update_params.rb b/lib/stripe/params/transfer_reversal_update_params.rb index 29b4e2f9..53d1233d 100644 --- a/lib/stripe/params/transfer_reversal_update_params.rb +++ b/lib/stripe/params/transfer_reversal_update_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class TransferReversalUpdateParams < Stripe::RequestParams + class TransferReversalUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. diff --git a/lib/stripe/params/transfer_update_params.rb b/lib/stripe/params/transfer_update_params.rb index 12cce40a..6fd6c747 100644 --- a/lib/stripe/params/transfer_update_params.rb +++ b/lib/stripe/params/transfer_update_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class TransferUpdateParams < Stripe::RequestParams + class TransferUpdateParams < ::Stripe::RequestParams # An arbitrary string attached to the object. Often useful for displaying to users. attr_accessor :description # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/treasury/credit_reversal_create_params.rb b/lib/stripe/params/treasury/credit_reversal_create_params.rb index 1f073704..edefe7a1 100644 --- a/lib/stripe/params/treasury/credit_reversal_create_params.rb +++ b/lib/stripe/params/treasury/credit_reversal_create_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class CreditReversalCreateParams < Stripe::RequestParams + class CreditReversalCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. diff --git a/lib/stripe/params/treasury/credit_reversal_list_params.rb b/lib/stripe/params/treasury/credit_reversal_list_params.rb index 729f7448..15c59237 100644 --- a/lib/stripe/params/treasury/credit_reversal_list_params.rb +++ b/lib/stripe/params/treasury/credit_reversal_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class CreditReversalListParams < Stripe::RequestParams + class CreditReversalListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb b/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb index 3484359d..7ad6ae73 100644 --- a/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb +++ b/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class CreditReversalRetrieveParams < Stripe::RequestParams + class CreditReversalRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/treasury/debit_reversal_create_params.rb b/lib/stripe/params/treasury/debit_reversal_create_params.rb index b7378a80..8d8f4f6e 100644 --- a/lib/stripe/params/treasury/debit_reversal_create_params.rb +++ b/lib/stripe/params/treasury/debit_reversal_create_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class DebitReversalCreateParams < Stripe::RequestParams + class DebitReversalCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. diff --git a/lib/stripe/params/treasury/debit_reversal_list_params.rb b/lib/stripe/params/treasury/debit_reversal_list_params.rb index e7387ee1..53249173 100644 --- a/lib/stripe/params/treasury/debit_reversal_list_params.rb +++ b/lib/stripe/params/treasury/debit_reversal_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class DebitReversalListParams < Stripe::RequestParams + class DebitReversalListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb b/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb index 4cc8ac4c..4bab5e6c 100644 --- a/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb +++ b/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class DebitReversalRetrieveParams < Stripe::RequestParams + class DebitReversalRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/treasury/financial_account_close_params.rb b/lib/stripe/params/treasury/financial_account_close_params.rb index bfde778d..47a89fd7 100644 --- a/lib/stripe/params/treasury/financial_account_close_params.rb +++ b/lib/stripe/params/treasury/financial_account_close_params.rb @@ -3,8 +3,8 @@ module Stripe module Treasury - class FinancialAccountCloseParams < Stripe::RequestParams - class ForwardingSettings < Stripe::RequestParams + class FinancialAccountCloseParams < ::Stripe::RequestParams + class ForwardingSettings < ::Stripe::RequestParams # The financial_account id attr_accessor :financial_account # The payment_method or bank account id. This needs to be a verified bank account. diff --git a/lib/stripe/params/treasury/financial_account_create_params.rb b/lib/stripe/params/treasury/financial_account_create_params.rb index 5fc8c978..4bbe84e5 100644 --- a/lib/stripe/params/treasury/financial_account_create_params.rb +++ b/lib/stripe/params/treasury/financial_account_create_params.rb @@ -3,9 +3,9 @@ module Stripe module Treasury - class FinancialAccountCreateParams < Stripe::RequestParams - class Features < Stripe::RequestParams - class CardIssuing < Stripe::RequestParams + class FinancialAccountCreateParams < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -14,7 +14,7 @@ module Stripe end end - class DepositInsurance < Stripe::RequestParams + class DepositInsurance < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -23,8 +23,8 @@ module Stripe end end - class FinancialAddresses < Stripe::RequestParams - class Aba < Stripe::RequestParams + class FinancialAddresses < ::Stripe::RequestParams + class Aba < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -40,8 +40,8 @@ module Stripe end end - class InboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class InboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -57,7 +57,7 @@ module Stripe end end - class IntraStripeFlows < Stripe::RequestParams + class IntraStripeFlows < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -66,8 +66,8 @@ module Stripe end end - class OutboundPayments < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundPayments < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -76,7 +76,7 @@ module Stripe end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -95,8 +95,8 @@ module Stripe end end - class OutboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -105,7 +105,7 @@ module Stripe end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -157,7 +157,7 @@ module Stripe end end - class PlatformRestrictions < Stripe::RequestParams + class PlatformRestrictions < ::Stripe::RequestParams # Restricts all inbound money movement. attr_accessor :inbound_flows # Restricts all outbound money movement. diff --git a/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb b/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb index c88b2708..a371629f 100644 --- a/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb +++ b/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class FinancialAccountFeaturesRetrieveParams < Stripe::RequestParams + class FinancialAccountFeaturesRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/treasury/financial_account_features_update_params.rb b/lib/stripe/params/treasury/financial_account_features_update_params.rb index 148c6ff6..8f573ea7 100644 --- a/lib/stripe/params/treasury/financial_account_features_update_params.rb +++ b/lib/stripe/params/treasury/financial_account_features_update_params.rb @@ -3,8 +3,8 @@ module Stripe module Treasury - class FinancialAccountFeaturesUpdateParams < Stripe::RequestParams - class CardIssuing < Stripe::RequestParams + class FinancialAccountFeaturesUpdateParams < ::Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -13,7 +13,7 @@ module Stripe end end - class DepositInsurance < Stripe::RequestParams + class DepositInsurance < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -22,8 +22,8 @@ module Stripe end end - class FinancialAddresses < Stripe::RequestParams - class Aba < Stripe::RequestParams + class FinancialAddresses < ::Stripe::RequestParams + class Aba < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -39,8 +39,8 @@ module Stripe end end - class InboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class InboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -56,7 +56,7 @@ module Stripe end end - class IntraStripeFlows < Stripe::RequestParams + class IntraStripeFlows < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -65,8 +65,8 @@ module Stripe end end - class OutboundPayments < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundPayments < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -75,7 +75,7 @@ module Stripe end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -94,8 +94,8 @@ module Stripe end end - class OutboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -104,7 +104,7 @@ module Stripe end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested diff --git a/lib/stripe/params/treasury/financial_account_list_params.rb b/lib/stripe/params/treasury/financial_account_list_params.rb index c244e2ea..63938a51 100644 --- a/lib/stripe/params/treasury/financial_account_list_params.rb +++ b/lib/stripe/params/treasury/financial_account_list_params.rb @@ -3,8 +3,8 @@ module Stripe module Treasury - class FinancialAccountListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class FinancialAccountListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb b/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb index 1a204e9c..e3b55ab4 100644 --- a/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb +++ b/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class FinancialAccountRetrieveFeaturesParams < Stripe::RequestParams + class FinancialAccountRetrieveFeaturesParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/treasury/financial_account_retrieve_params.rb b/lib/stripe/params/treasury/financial_account_retrieve_params.rb index 0fcac4db..d8d2d957 100644 --- a/lib/stripe/params/treasury/financial_account_retrieve_params.rb +++ b/lib/stripe/params/treasury/financial_account_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class FinancialAccountRetrieveParams < Stripe::RequestParams + class FinancialAccountRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/treasury/financial_account_update_features_params.rb b/lib/stripe/params/treasury/financial_account_update_features_params.rb index f8bbe815..40fa5b5b 100644 --- a/lib/stripe/params/treasury/financial_account_update_features_params.rb +++ b/lib/stripe/params/treasury/financial_account_update_features_params.rb @@ -3,8 +3,8 @@ module Stripe module Treasury - class FinancialAccountUpdateFeaturesParams < Stripe::RequestParams - class CardIssuing < Stripe::RequestParams + class FinancialAccountUpdateFeaturesParams < ::Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -13,7 +13,7 @@ module Stripe end end - class DepositInsurance < Stripe::RequestParams + class DepositInsurance < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -22,8 +22,8 @@ module Stripe end end - class FinancialAddresses < Stripe::RequestParams - class Aba < Stripe::RequestParams + class FinancialAddresses < ::Stripe::RequestParams + class Aba < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -39,8 +39,8 @@ module Stripe end end - class InboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class InboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -56,7 +56,7 @@ module Stripe end end - class IntraStripeFlows < Stripe::RequestParams + class IntraStripeFlows < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -65,8 +65,8 @@ module Stripe end end - class OutboundPayments < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundPayments < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -75,7 +75,7 @@ module Stripe end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -94,8 +94,8 @@ module Stripe end end - class OutboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -104,7 +104,7 @@ module Stripe end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested diff --git a/lib/stripe/params/treasury/financial_account_update_params.rb b/lib/stripe/params/treasury/financial_account_update_params.rb index 6fb67307..e3df45db 100644 --- a/lib/stripe/params/treasury/financial_account_update_params.rb +++ b/lib/stripe/params/treasury/financial_account_update_params.rb @@ -3,9 +3,9 @@ module Stripe module Treasury - class FinancialAccountUpdateParams < Stripe::RequestParams - class Features < Stripe::RequestParams - class CardIssuing < Stripe::RequestParams + class FinancialAccountUpdateParams < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -14,7 +14,7 @@ module Stripe end end - class DepositInsurance < Stripe::RequestParams + class DepositInsurance < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -23,8 +23,8 @@ module Stripe end end - class FinancialAddresses < Stripe::RequestParams - class Aba < Stripe::RequestParams + class FinancialAddresses < ::Stripe::RequestParams + class Aba < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -40,8 +40,8 @@ module Stripe end end - class InboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class InboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -57,7 +57,7 @@ module Stripe end end - class IntraStripeFlows < Stripe::RequestParams + class IntraStripeFlows < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -66,8 +66,8 @@ module Stripe end end - class OutboundPayments < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundPayments < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -76,7 +76,7 @@ module Stripe end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -95,8 +95,8 @@ module Stripe end end - class OutboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -105,7 +105,7 @@ module Stripe end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. attr_accessor :requested @@ -157,7 +157,7 @@ module Stripe end end - class ForwardingSettings < Stripe::RequestParams + class ForwardingSettings < ::Stripe::RequestParams # The financial_account id attr_accessor :financial_account # The payment_method or bank account id. This needs to be a verified bank account. @@ -172,7 +172,7 @@ module Stripe end end - class PlatformRestrictions < Stripe::RequestParams + class PlatformRestrictions < ::Stripe::RequestParams # Restricts all inbound money movement. attr_accessor :inbound_flows # Restricts all outbound money movement. diff --git a/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb b/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb index b8e41b64..1bb681a3 100644 --- a/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb +++ b/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class InboundTransferCancelParams < Stripe::RequestParams + class InboundTransferCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/treasury/inbound_transfer_create_params.rb b/lib/stripe/params/treasury/inbound_transfer_create_params.rb index abb92f29..f6e16fd0 100644 --- a/lib/stripe/params/treasury/inbound_transfer_create_params.rb +++ b/lib/stripe/params/treasury/inbound_transfer_create_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class InboundTransferCreateParams < Stripe::RequestParams + class InboundTransferCreateParams < ::Stripe::RequestParams # Amount (in cents) to be transferred. attr_accessor :amount # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). diff --git a/lib/stripe/params/treasury/inbound_transfer_fail_params.rb b/lib/stripe/params/treasury/inbound_transfer_fail_params.rb index d6d81e8b..448879af 100644 --- a/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +++ b/lib/stripe/params/treasury/inbound_transfer_fail_params.rb @@ -3,8 +3,8 @@ module Stripe module Treasury - class InboundTransferFailParams < Stripe::RequestParams - class FailureDetails < Stripe::RequestParams + class InboundTransferFailParams < ::Stripe::RequestParams + class FailureDetails < ::Stripe::RequestParams # Reason for the failure. attr_accessor :code diff --git a/lib/stripe/params/treasury/inbound_transfer_list_params.rb b/lib/stripe/params/treasury/inbound_transfer_list_params.rb index 78a6b3a7..d95bc938 100644 --- a/lib/stripe/params/treasury/inbound_transfer_list_params.rb +++ b/lib/stripe/params/treasury/inbound_transfer_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class InboundTransferListParams < Stripe::RequestParams + class InboundTransferListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb b/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb index 4f6cad67..17cee87e 100644 --- a/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb +++ b/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class InboundTransferRetrieveParams < Stripe::RequestParams + class InboundTransferRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb b/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb index 4f5b208a..7e1757d6 100644 --- a/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +++ b/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class InboundTransferReturnInboundTransferParams < Stripe::RequestParams + class InboundTransferReturnInboundTransferParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb b/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb index 6508a523..72c3904c 100644 --- a/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb +++ b/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class InboundTransferSucceedParams < Stripe::RequestParams + class InboundTransferSucceedParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/treasury/outbound_payment_cancel_params.rb b/lib/stripe/params/treasury/outbound_payment_cancel_params.rb index cff6e600..d4437b81 100644 --- a/lib/stripe/params/treasury/outbound_payment_cancel_params.rb +++ b/lib/stripe/params/treasury/outbound_payment_cancel_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class OutboundPaymentCancelParams < Stripe::RequestParams + class OutboundPaymentCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/treasury/outbound_payment_create_params.rb b/lib/stripe/params/treasury/outbound_payment_create_params.rb index 2398ab67..5e91baf9 100644 --- a/lib/stripe/params/treasury/outbound_payment_create_params.rb +++ b/lib/stripe/params/treasury/outbound_payment_create_params.rb @@ -3,10 +3,10 @@ module Stripe module Treasury - class OutboundPaymentCreateParams < Stripe::RequestParams - class DestinationPaymentMethodData < Stripe::RequestParams - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class OutboundPaymentCreateParams < ::Stripe::RequestParams + class DestinationPaymentMethodData < ::Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. attr_accessor :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -53,7 +53,7 @@ module Stripe end end - class UsBankAccount < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. attr_accessor :account_holder_type # Account number of the bank account. @@ -105,8 +105,8 @@ module Stripe end end - class DestinationPaymentMethodOptions < Stripe::RequestParams - class UsBankAccount < Stripe::RequestParams + class DestinationPaymentMethodOptions < ::Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://stripe.com/docs/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. attr_accessor :network @@ -122,7 +122,7 @@ module Stripe end end - class EndUserDetails < Stripe::RequestParams + class EndUserDetails < ::Stripe::RequestParams # IP address of the user initiating the OutboundPayment. Must be supplied if `present` is set to `true`. attr_accessor :ip_address # `True` if the OutboundPayment creation request is being made on behalf of an end user by a platform. Otherwise, `false`. diff --git a/lib/stripe/params/treasury/outbound_payment_fail_params.rb b/lib/stripe/params/treasury/outbound_payment_fail_params.rb index 6c63391c..4ba1aa8c 100644 --- a/lib/stripe/params/treasury/outbound_payment_fail_params.rb +++ b/lib/stripe/params/treasury/outbound_payment_fail_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class OutboundPaymentFailParams < Stripe::RequestParams + class OutboundPaymentFailParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/treasury/outbound_payment_list_params.rb b/lib/stripe/params/treasury/outbound_payment_list_params.rb index eca95829..b5ce7651 100644 --- a/lib/stripe/params/treasury/outbound_payment_list_params.rb +++ b/lib/stripe/params/treasury/outbound_payment_list_params.rb @@ -3,8 +3,8 @@ module Stripe module Treasury - class OutboundPaymentListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class OutboundPaymentListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/treasury/outbound_payment_post_params.rb b/lib/stripe/params/treasury/outbound_payment_post_params.rb index d4ec54ce..4fc2308b 100644 --- a/lib/stripe/params/treasury/outbound_payment_post_params.rb +++ b/lib/stripe/params/treasury/outbound_payment_post_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class OutboundPaymentPostParams < Stripe::RequestParams + class OutboundPaymentPostParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb b/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb index 0f09f8c6..f40cb2dd 100644 --- a/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb +++ b/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class OutboundPaymentRetrieveParams < Stripe::RequestParams + class OutboundPaymentRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb b/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb index 16d5b489..0cabab85 100644 --- a/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb +++ b/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb @@ -3,8 +3,8 @@ module Stripe module Treasury - class OutboundPaymentReturnOutboundPaymentParams < Stripe::RequestParams - class ReturnedDetails < Stripe::RequestParams + class OutboundPaymentReturnOutboundPaymentParams < ::Stripe::RequestParams + class ReturnedDetails < ::Stripe::RequestParams # The return code to be set on the OutboundPayment object. attr_accessor :code diff --git a/lib/stripe/params/treasury/outbound_payment_update_params.rb b/lib/stripe/params/treasury/outbound_payment_update_params.rb index b0683776..9bb8e6ae 100644 --- a/lib/stripe/params/treasury/outbound_payment_update_params.rb +++ b/lib/stripe/params/treasury/outbound_payment_update_params.rb @@ -3,9 +3,9 @@ module Stripe module Treasury - class OutboundPaymentUpdateParams < Stripe::RequestParams - class TrackingDetails < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundPaymentUpdateParams < ::Stripe::RequestParams + class TrackingDetails < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # ACH trace ID for funds sent over the `ach` network. attr_accessor :trace_id @@ -14,7 +14,7 @@ module Stripe end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # CHIPS System Sequence Number (SSN) for funds sent over the `us_domestic_wire` network. attr_accessor :chips # IMAD for funds sent over the `us_domestic_wire` network. diff --git a/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb b/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb index cc5edb8f..37f5ad19 100644 --- a/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb +++ b/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class OutboundTransferCancelParams < Stripe::RequestParams + class OutboundTransferCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/treasury/outbound_transfer_create_params.rb b/lib/stripe/params/treasury/outbound_transfer_create_params.rb index cafc0a0c..f76ffb92 100644 --- a/lib/stripe/params/treasury/outbound_transfer_create_params.rb +++ b/lib/stripe/params/treasury/outbound_transfer_create_params.rb @@ -3,8 +3,8 @@ module Stripe module Treasury - class OutboundTransferCreateParams < Stripe::RequestParams - class DestinationPaymentMethodData < Stripe::RequestParams + class OutboundTransferCreateParams < ::Stripe::RequestParams + class DestinationPaymentMethodData < ::Stripe::RequestParams # Required if type is set to `financial_account`. The FinancialAccount ID to send funds to. attr_accessor :financial_account # The type of the destination. @@ -16,8 +16,8 @@ module Stripe end end - class DestinationPaymentMethodOptions < Stripe::RequestParams - class UsBankAccount < Stripe::RequestParams + class DestinationPaymentMethodOptions < ::Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://stripe.com/docs/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. attr_accessor :network diff --git a/lib/stripe/params/treasury/outbound_transfer_fail_params.rb b/lib/stripe/params/treasury/outbound_transfer_fail_params.rb index 1cc0c4b9..59d28970 100644 --- a/lib/stripe/params/treasury/outbound_transfer_fail_params.rb +++ b/lib/stripe/params/treasury/outbound_transfer_fail_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class OutboundTransferFailParams < Stripe::RequestParams + class OutboundTransferFailParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/treasury/outbound_transfer_list_params.rb b/lib/stripe/params/treasury/outbound_transfer_list_params.rb index 8b1d26af..6597f183 100644 --- a/lib/stripe/params/treasury/outbound_transfer_list_params.rb +++ b/lib/stripe/params/treasury/outbound_transfer_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class OutboundTransferListParams < Stripe::RequestParams + class OutboundTransferListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/treasury/outbound_transfer_post_params.rb b/lib/stripe/params/treasury/outbound_transfer_post_params.rb index 478f7b65..63864582 100644 --- a/lib/stripe/params/treasury/outbound_transfer_post_params.rb +++ b/lib/stripe/params/treasury/outbound_transfer_post_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class OutboundTransferPostParams < Stripe::RequestParams + class OutboundTransferPostParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb b/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb index 8d31c957..59ea1b98 100644 --- a/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb +++ b/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class OutboundTransferRetrieveParams < Stripe::RequestParams + class OutboundTransferRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb b/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb index 5f9c5869..4c1ec490 100644 --- a/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb +++ b/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb @@ -3,8 +3,8 @@ module Stripe module Treasury - class OutboundTransferReturnOutboundTransferParams < Stripe::RequestParams - class ReturnedDetails < Stripe::RequestParams + class OutboundTransferReturnOutboundTransferParams < ::Stripe::RequestParams + class ReturnedDetails < ::Stripe::RequestParams # Reason for the return. attr_accessor :code diff --git a/lib/stripe/params/treasury/outbound_transfer_update_params.rb b/lib/stripe/params/treasury/outbound_transfer_update_params.rb index ce0595b8..14c106a4 100644 --- a/lib/stripe/params/treasury/outbound_transfer_update_params.rb +++ b/lib/stripe/params/treasury/outbound_transfer_update_params.rb @@ -3,9 +3,9 @@ module Stripe module Treasury - class OutboundTransferUpdateParams < Stripe::RequestParams - class TrackingDetails < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundTransferUpdateParams < ::Stripe::RequestParams + class TrackingDetails < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # ACH trace ID for funds sent over the `ach` network. attr_accessor :trace_id @@ -14,7 +14,7 @@ module Stripe end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # CHIPS System Sequence Number (SSN) for funds sent over the `us_domestic_wire` network. attr_accessor :chips # IMAD for funds sent over the `us_domestic_wire` network. diff --git a/lib/stripe/params/treasury/received_credit_create_params.rb b/lib/stripe/params/treasury/received_credit_create_params.rb index 0aa39295..68759d2b 100644 --- a/lib/stripe/params/treasury/received_credit_create_params.rb +++ b/lib/stripe/params/treasury/received_credit_create_params.rb @@ -3,9 +3,9 @@ module Stripe module Treasury - class ReceivedCreditCreateParams < Stripe::RequestParams - class InitiatingPaymentMethodDetails < Stripe::RequestParams - class UsBankAccount < Stripe::RequestParams + class ReceivedCreditCreateParams < ::Stripe::RequestParams + class InitiatingPaymentMethodDetails < ::Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # The bank account holder's name. attr_accessor :account_holder_name # The bank account number. diff --git a/lib/stripe/params/treasury/received_credit_list_params.rb b/lib/stripe/params/treasury/received_credit_list_params.rb index 5a5d0452..86f5a496 100644 --- a/lib/stripe/params/treasury/received_credit_list_params.rb +++ b/lib/stripe/params/treasury/received_credit_list_params.rb @@ -3,8 +3,8 @@ module Stripe module Treasury - class ReceivedCreditListParams < Stripe::RequestParams - class LinkedFlows < Stripe::RequestParams + class ReceivedCreditListParams < ::Stripe::RequestParams + class LinkedFlows < ::Stripe::RequestParams # The source flow type. attr_accessor :source_flow_type diff --git a/lib/stripe/params/treasury/received_credit_retrieve_params.rb b/lib/stripe/params/treasury/received_credit_retrieve_params.rb index fcd7de97..490a6279 100644 --- a/lib/stripe/params/treasury/received_credit_retrieve_params.rb +++ b/lib/stripe/params/treasury/received_credit_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class ReceivedCreditRetrieveParams < Stripe::RequestParams + class ReceivedCreditRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/treasury/received_debit_create_params.rb b/lib/stripe/params/treasury/received_debit_create_params.rb index 251260e0..65f2afd2 100644 --- a/lib/stripe/params/treasury/received_debit_create_params.rb +++ b/lib/stripe/params/treasury/received_debit_create_params.rb @@ -3,9 +3,9 @@ module Stripe module Treasury - class ReceivedDebitCreateParams < Stripe::RequestParams - class InitiatingPaymentMethodDetails < Stripe::RequestParams - class UsBankAccount < Stripe::RequestParams + class ReceivedDebitCreateParams < ::Stripe::RequestParams + class InitiatingPaymentMethodDetails < ::Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # The bank account holder's name. attr_accessor :account_holder_name # The bank account number. diff --git a/lib/stripe/params/treasury/received_debit_list_params.rb b/lib/stripe/params/treasury/received_debit_list_params.rb index 3ed424dc..b2dda6ac 100644 --- a/lib/stripe/params/treasury/received_debit_list_params.rb +++ b/lib/stripe/params/treasury/received_debit_list_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class ReceivedDebitListParams < Stripe::RequestParams + class ReceivedDebitListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/treasury/received_debit_retrieve_params.rb b/lib/stripe/params/treasury/received_debit_retrieve_params.rb index 34207bab..96094be0 100644 --- a/lib/stripe/params/treasury/received_debit_retrieve_params.rb +++ b/lib/stripe/params/treasury/received_debit_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class ReceivedDebitRetrieveParams < Stripe::RequestParams + class ReceivedDebitRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/treasury/transaction_entry_list_params.rb b/lib/stripe/params/treasury/transaction_entry_list_params.rb index c0162c57..07881643 100644 --- a/lib/stripe/params/treasury/transaction_entry_list_params.rb +++ b/lib/stripe/params/treasury/transaction_entry_list_params.rb @@ -3,8 +3,8 @@ module Stripe module Treasury - class TransactionEntryListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class TransactionEntryListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) @@ -22,7 +22,7 @@ module Stripe end end - class EffectiveAt < Stripe::RequestParams + class EffectiveAt < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb b/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb index 7959a25b..2b014c43 100644 --- a/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb +++ b/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class TransactionEntryRetrieveParams < Stripe::RequestParams + class TransactionEntryRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/treasury/transaction_list_params.rb b/lib/stripe/params/treasury/transaction_list_params.rb index 06080881..396cc88a 100644 --- a/lib/stripe/params/treasury/transaction_list_params.rb +++ b/lib/stripe/params/treasury/transaction_list_params.rb @@ -3,8 +3,8 @@ module Stripe module Treasury - class TransactionListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class TransactionListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) @@ -22,8 +22,8 @@ module Stripe end end - class StatusTransitions < Stripe::RequestParams - class PostedAt < Stripe::RequestParams + class StatusTransitions < ::Stripe::RequestParams + class PostedAt < ::Stripe::RequestParams # Minimum value to filter by (exclusive) attr_accessor :gt # Minimum value to filter by (inclusive) diff --git a/lib/stripe/params/treasury/transaction_retrieve_params.rb b/lib/stripe/params/treasury/transaction_retrieve_params.rb index 68a78565..b169e710 100644 --- a/lib/stripe/params/treasury/transaction_retrieve_params.rb +++ b/lib/stripe/params/treasury/transaction_retrieve_params.rb @@ -3,7 +3,7 @@ module Stripe module Treasury - class TransactionRetrieveParams < Stripe::RequestParams + class TransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb b/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb index 12f229c0..8697343d 100644 --- a/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +++ b/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb @@ -4,8 +4,8 @@ module Stripe module V2 module Billing - class MeterEventAdjustmentCreateParams < Stripe::RequestParams - class Cancel < Stripe::RequestParams + class MeterEventAdjustmentCreateParams < ::Stripe::RequestParams + class Cancel < ::Stripe::RequestParams # Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them. attr_accessor :identifier diff --git a/lib/stripe/params/v2/billing/meter_event_create_params.rb b/lib/stripe/params/v2/billing/meter_event_create_params.rb index e54acaec..1d0329e0 100644 --- a/lib/stripe/params/v2/billing/meter_event_create_params.rb +++ b/lib/stripe/params/v2/billing/meter_event_create_params.rb @@ -4,7 +4,7 @@ module Stripe module V2 module Billing - class MeterEventCreateParams < Stripe::RequestParams + class MeterEventCreateParams < ::Stripe::RequestParams # The name of the meter event. Corresponds with the `event_name` field on a meter. attr_accessor :event_name # A unique identifier for the event. If not provided, one will be generated. diff --git a/lib/stripe/params/v2/billing/meter_event_session_create_params.rb b/lib/stripe/params/v2/billing/meter_event_session_create_params.rb index 3d029f62..863ed89a 100644 --- a/lib/stripe/params/v2/billing/meter_event_session_create_params.rb +++ b/lib/stripe/params/v2/billing/meter_event_session_create_params.rb @@ -4,7 +4,7 @@ module Stripe module V2 module Billing - class MeterEventSessionCreateParams < Stripe::RequestParams; end + class MeterEventSessionCreateParams < ::Stripe::RequestParams; end end end end diff --git a/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb b/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb index b978b1c0..e9618e47 100644 --- a/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +++ b/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb @@ -4,8 +4,8 @@ module Stripe module V2 module Billing - class MeterEventStreamCreateParams < Stripe::RequestParams - class Event < Stripe::RequestParams + class MeterEventStreamCreateParams < ::Stripe::RequestParams + class Event < ::Stripe::RequestParams # The name of the meter event. Corresponds with the `event_name` field on a meter. attr_accessor :event_name # A unique identifier for the event. If not provided, one will be generated. diff --git a/lib/stripe/params/v2/core/event_destination_create_params.rb b/lib/stripe/params/v2/core/event_destination_create_params.rb index ddabe973..a5ed754f 100644 --- a/lib/stripe/params/v2/core/event_destination_create_params.rb +++ b/lib/stripe/params/v2/core/event_destination_create_params.rb @@ -4,8 +4,8 @@ module Stripe module V2 module Core - class EventDestinationCreateParams < Stripe::RequestParams - class AmazonEventbridge < Stripe::RequestParams + class EventDestinationCreateParams < ::Stripe::RequestParams + class AmazonEventbridge < ::Stripe::RequestParams # The AWS account ID. attr_accessor :aws_account_id # The region of the AWS event source. @@ -17,7 +17,7 @@ module Stripe end end - class WebhookEndpoint < Stripe::RequestParams + class WebhookEndpoint < ::Stripe::RequestParams # The URL of the webhook endpoint. attr_accessor :url diff --git a/lib/stripe/params/v2/core/event_destination_delete_params.rb b/lib/stripe/params/v2/core/event_destination_delete_params.rb index 31d1cca7..4328fec2 100644 --- a/lib/stripe/params/v2/core/event_destination_delete_params.rb +++ b/lib/stripe/params/v2/core/event_destination_delete_params.rb @@ -4,7 +4,7 @@ module Stripe module V2 module Core - class EventDestinationDeleteParams < Stripe::RequestParams; end + class EventDestinationDeleteParams < ::Stripe::RequestParams; end end end end diff --git a/lib/stripe/params/v2/core/event_destination_disable_params.rb b/lib/stripe/params/v2/core/event_destination_disable_params.rb index 4c280a2d..1ccac510 100644 --- a/lib/stripe/params/v2/core/event_destination_disable_params.rb +++ b/lib/stripe/params/v2/core/event_destination_disable_params.rb @@ -4,7 +4,7 @@ module Stripe module V2 module Core - class EventDestinationDisableParams < Stripe::RequestParams; end + class EventDestinationDisableParams < ::Stripe::RequestParams; end end end end diff --git a/lib/stripe/params/v2/core/event_destination_enable_params.rb b/lib/stripe/params/v2/core/event_destination_enable_params.rb index 1e1d1e64..9ee41429 100644 --- a/lib/stripe/params/v2/core/event_destination_enable_params.rb +++ b/lib/stripe/params/v2/core/event_destination_enable_params.rb @@ -4,7 +4,7 @@ module Stripe module V2 module Core - class EventDestinationEnableParams < Stripe::RequestParams; end + class EventDestinationEnableParams < ::Stripe::RequestParams; end end end end diff --git a/lib/stripe/params/v2/core/event_destination_list_params.rb b/lib/stripe/params/v2/core/event_destination_list_params.rb index 97af3778..3cea59d9 100644 --- a/lib/stripe/params/v2/core/event_destination_list_params.rb +++ b/lib/stripe/params/v2/core/event_destination_list_params.rb @@ -4,7 +4,7 @@ module Stripe module V2 module Core - class EventDestinationListParams < Stripe::RequestParams + class EventDestinationListParams < ::Stripe::RequestParams # Additional fields to include in the response. Currently supports `webhook_endpoint.url`. attr_accessor :include # The page size. diff --git a/lib/stripe/params/v2/core/event_destination_ping_params.rb b/lib/stripe/params/v2/core/event_destination_ping_params.rb index 8b185127..13fa8825 100644 --- a/lib/stripe/params/v2/core/event_destination_ping_params.rb +++ b/lib/stripe/params/v2/core/event_destination_ping_params.rb @@ -4,7 +4,7 @@ module Stripe module V2 module Core - class EventDestinationPingParams < Stripe::RequestParams; end + class EventDestinationPingParams < ::Stripe::RequestParams; end end end end diff --git a/lib/stripe/params/v2/core/event_destination_retrieve_params.rb b/lib/stripe/params/v2/core/event_destination_retrieve_params.rb index be41e1a9..8e4e98cd 100644 --- a/lib/stripe/params/v2/core/event_destination_retrieve_params.rb +++ b/lib/stripe/params/v2/core/event_destination_retrieve_params.rb @@ -4,7 +4,7 @@ module Stripe module V2 module Core - class EventDestinationRetrieveParams < Stripe::RequestParams + class EventDestinationRetrieveParams < ::Stripe::RequestParams # Additional fields to include in the response. attr_accessor :include diff --git a/lib/stripe/params/v2/core/event_destination_update_params.rb b/lib/stripe/params/v2/core/event_destination_update_params.rb index d327db3d..6dabd962 100644 --- a/lib/stripe/params/v2/core/event_destination_update_params.rb +++ b/lib/stripe/params/v2/core/event_destination_update_params.rb @@ -4,8 +4,8 @@ module Stripe module V2 module Core - class EventDestinationUpdateParams < Stripe::RequestParams - class WebhookEndpoint < Stripe::RequestParams + class EventDestinationUpdateParams < ::Stripe::RequestParams + class WebhookEndpoint < ::Stripe::RequestParams # The URL of the webhook endpoint. attr_accessor :url diff --git a/lib/stripe/params/v2/core/event_list_params.rb b/lib/stripe/params/v2/core/event_list_params.rb index 9931279c..51289b32 100644 --- a/lib/stripe/params/v2/core/event_list_params.rb +++ b/lib/stripe/params/v2/core/event_list_params.rb @@ -4,17 +4,40 @@ module Stripe module V2 module Core - class EventListParams < Stripe::RequestParams + class EventListParams < ::Stripe::RequestParams + # Filter for events created after the specified timestamp. + attr_accessor :gt + # Filter for events created at or after the specified timestamp. + attr_accessor :gte # The page size. attr_accessor :limit + # Filter for events created before the specified timestamp. + attr_accessor :lt + # Filter for events created at or before the specified timestamp. + attr_accessor :lte # Primary object ID used to retrieve related events. # # To avoid conflict with Ruby's ':object_id', this attribute has been renamed. If using a hash parameter map instead, please use the original name ':object_id' with NO trailing underscore as the provided param key. attr_accessor :object_id_ + # An array of up to 20 strings containing specific event names. + attr_accessor :types - def initialize(limit: nil, object_id_: nil) + def initialize( + gt: nil, + gte: nil, + limit: nil, + lt: nil, + lte: nil, + object_id_: nil, + types: nil + ) + @gt = gt + @gte = gte @limit = limit + @lt = lt + @lte = lte @object_id_ = object_id_ + @types = types end end end diff --git a/lib/stripe/params/v2/core/event_retrieve_params.rb b/lib/stripe/params/v2/core/event_retrieve_params.rb index 982339f0..9448285f 100644 --- a/lib/stripe/params/v2/core/event_retrieve_params.rb +++ b/lib/stripe/params/v2/core/event_retrieve_params.rb @@ -4,7 +4,7 @@ module Stripe module V2 module Core - class EventRetrieveParams < Stripe::RequestParams; end + class EventRetrieveParams < ::Stripe::RequestParams; end end end end diff --git a/lib/stripe/params/webhook_endpoint_create_params.rb b/lib/stripe/params/webhook_endpoint_create_params.rb index b597da3a..0d75230b 100644 --- a/lib/stripe/params/webhook_endpoint_create_params.rb +++ b/lib/stripe/params/webhook_endpoint_create_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class WebhookEndpointCreateParams < Stripe::RequestParams + class WebhookEndpointCreateParams < ::Stripe::RequestParams # Events sent to this endpoint will be generated with this Stripe Version instead of your account's default Stripe Version. attr_accessor :api_version # Whether this endpoint should receive events from connected accounts (`true`), or from your account (`false`). Defaults to `false`. diff --git a/lib/stripe/params/webhook_endpoint_delete_params.rb b/lib/stripe/params/webhook_endpoint_delete_params.rb index f99121b4..42399716 100644 --- a/lib/stripe/params/webhook_endpoint_delete_params.rb +++ b/lib/stripe/params/webhook_endpoint_delete_params.rb @@ -2,5 +2,5 @@ # frozen_string_literal: true module Stripe - class WebhookEndpointDeleteParams < Stripe::RequestParams; end + class WebhookEndpointDeleteParams < ::Stripe::RequestParams; end end diff --git a/lib/stripe/params/webhook_endpoint_list_params.rb b/lib/stripe/params/webhook_endpoint_list_params.rb index 206b6f67..d761bb91 100644 --- a/lib/stripe/params/webhook_endpoint_list_params.rb +++ b/lib/stripe/params/webhook_endpoint_list_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class WebhookEndpointListParams < Stripe::RequestParams + class WebhookEndpointListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. attr_accessor :ending_before # Specifies which fields in the response should be expanded. diff --git a/lib/stripe/params/webhook_endpoint_retrieve_params.rb b/lib/stripe/params/webhook_endpoint_retrieve_params.rb index 08f7dea4..c195b046 100644 --- a/lib/stripe/params/webhook_endpoint_retrieve_params.rb +++ b/lib/stripe/params/webhook_endpoint_retrieve_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class WebhookEndpointRetrieveParams < Stripe::RequestParams + class WebhookEndpointRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. attr_accessor :expand diff --git a/lib/stripe/params/webhook_endpoint_update_params.rb b/lib/stripe/params/webhook_endpoint_update_params.rb index 27fd7956..57a21bb7 100644 --- a/lib/stripe/params/webhook_endpoint_update_params.rb +++ b/lib/stripe/params/webhook_endpoint_update_params.rb @@ -2,7 +2,7 @@ # frozen_string_literal: true module Stripe - class WebhookEndpointUpdateParams < Stripe::RequestParams + class WebhookEndpointUpdateParams < ::Stripe::RequestParams # An optional description of what the webhook is used for. attr_accessor :description # Disable the webhook endpoint if set to true. diff --git a/lib/stripe/resources.rb b/lib/stripe/resources.rb index ae2f9250..261de442 100644 --- a/lib/stripe/resources.rb +++ b/lib/stripe/resources.rb @@ -77,11 +77,14 @@ require "stripe/resources/issuing/transaction" require "stripe/resources/line_item" require "stripe/resources/login_link" require "stripe/resources/mandate" +require "stripe/resources/payment_attempt_record" require "stripe/resources/payment_intent" +require "stripe/resources/payment_intent_amount_details_line_item" require "stripe/resources/payment_link" require "stripe/resources/payment_method" require "stripe/resources/payment_method_configuration" require "stripe/resources/payment_method_domain" +require "stripe/resources/payment_record" require "stripe/resources/payout" require "stripe/resources/person" require "stripe/resources/plan" diff --git a/lib/stripe/resources/account.rb b/lib/stripe/resources/account.rb index ce932f2b..193946a3 100644 --- a/lib/stripe/resources/account.rb +++ b/lib/stripe/resources/account.rb @@ -34,8 +34,8 @@ module Stripe nested_resource_class_methods :login_link, operations: %i[create] nested_resource_class_methods :person, operations: %i[create retrieve update delete list] - class BusinessProfile < Stripe::StripeObject - class AnnualRevenue < Stripe::StripeObject + class BusinessProfile < ::Stripe::StripeObject + class AnnualRevenue < ::Stripe::StripeObject # A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal). attr_reader :amount # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). @@ -52,7 +52,7 @@ module Stripe end end - class MonthlyEstimatedRevenue < Stripe::StripeObject + class MonthlyEstimatedRevenue < ::Stripe::StripeObject # A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal). attr_reader :amount # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). @@ -67,7 +67,7 @@ module Stripe end end - class SupportAddress < Stripe::StripeObject + class SupportAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -127,7 +127,7 @@ module Stripe end end - class Capabilities < Stripe::StripeObject + class Capabilities < ::Stripe::StripeObject # The status of the Canadian pre-authorized debits payments capability of the account, or whether the account can directly process Canadian pre-authorized debits charges. attr_reader :acss_debit_payments # The status of the Affirm capability of the account, or whether the account can directly process Affirm charges. @@ -258,8 +258,8 @@ module Stripe end end - class Company < Stripe::StripeObject - class Address < Stripe::StripeObject + class Company < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -282,7 +282,7 @@ module Stripe end end - class AddressKana < Stripe::StripeObject + class AddressKana < ::Stripe::StripeObject # City/Ward. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -307,7 +307,7 @@ module Stripe end end - class AddressKanji < Stripe::StripeObject + class AddressKanji < ::Stripe::StripeObject # City/Ward. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -332,7 +332,7 @@ module Stripe end end - class DirectorshipDeclaration < Stripe::StripeObject + class DirectorshipDeclaration < ::Stripe::StripeObject # The Unix timestamp marking when the directorship declaration attestation was made. attr_reader :date # The IP address from which the directorship declaration attestation was made. @@ -349,7 +349,7 @@ module Stripe end end - class OwnershipDeclaration < Stripe::StripeObject + class OwnershipDeclaration < ::Stripe::StripeObject # The Unix timestamp marking when the beneficial owner attestation was made. attr_reader :date # The IP address from which the beneficial owner attestation was made. @@ -366,7 +366,7 @@ module Stripe end end - class RegistrationDate < Stripe::StripeObject + class RegistrationDate < ::Stripe::StripeObject # The day of registration, between 1 and 31. attr_reader :day # The month of registration, between 1 and 12. @@ -383,8 +383,25 @@ module Stripe end end - class Verification < Stripe::StripeObject - class Document < Stripe::StripeObject + class RepresentativeDeclaration < ::Stripe::StripeObject + # The Unix timestamp marking when the representative declaration attestation was made. + attr_reader :date + # The IP address from which the representative declaration attestation was made. + attr_reader :ip + # The user-agent string from the browser where the representative declaration attestation was made. + attr_reader :user_agent + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Verification < ::Stripe::StripeObject + class Document < ::Stripe::StripeObject # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](/file-upload#uploading-a-file). attr_reader :back # A user-displayable string describing the verification state of this document. @@ -445,6 +462,8 @@ module Stripe attr_reader :phone # Attribute for field registration_date attr_reader :registration_date + # This hash is used to attest that the representative is authorized to act as the representative of their legal entity. + attr_reader :representative_declaration # The category identifying the legal structure of the company or legal entity. Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details. attr_reader :structure # Whether the company's business ID number was provided. @@ -464,6 +483,7 @@ module Stripe directorship_declaration: DirectorshipDeclaration, ownership_declaration: OwnershipDeclaration, registration_date: RegistrationDate, + representative_declaration: RepresentativeDeclaration, verification: Verification, } end @@ -473,8 +493,8 @@ module Stripe end end - class Controller < Stripe::StripeObject - class Fees < Stripe::StripeObject + class Controller < ::Stripe::StripeObject + class Fees < ::Stripe::StripeObject # A value indicating the responsible payer of a bundle of Stripe fees for pricing-control eligible products on this account. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior). attr_reader :payer @@ -487,7 +507,7 @@ module Stripe end end - class Losses < Stripe::StripeObject + class Losses < ::Stripe::StripeObject # A value indicating who is liable when this account can't pay back negative balances from payments. attr_reader :payments @@ -500,7 +520,7 @@ module Stripe end end - class StripeDashboard < Stripe::StripeObject + class StripeDashboard < ::Stripe::StripeObject # A value indicating the Stripe dashboard this account has access to independent of the Connect application. attr_reader :type @@ -534,8 +554,8 @@ module Stripe end end - class FutureRequirements < Stripe::StripeObject - class Alternative < Stripe::StripeObject + class FutureRequirements < ::Stripe::StripeObject + class Alternative < ::Stripe::StripeObject # Fields that can be provided to satisfy all fields in `original_fields_due`. attr_reader :alternative_fields_due # Fields that are due and can be satisfied by providing all fields in `alternative_fields_due`. @@ -550,7 +570,7 @@ module Stripe end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. attr_reader :code # An informative message that indicates the error type and provides additional details about the error. @@ -592,7 +612,7 @@ module Stripe end end - class Groups < Stripe::StripeObject + class Groups < ::Stripe::StripeObject # The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details. attr_reader :payments_pricing @@ -605,8 +625,8 @@ module Stripe end end - class Requirements < Stripe::StripeObject - class Alternative < Stripe::StripeObject + class Requirements < ::Stripe::StripeObject + class Alternative < ::Stripe::StripeObject # Fields that can be provided to satisfy all fields in `original_fields_due`. attr_reader :alternative_fields_due # Fields that are due and can be satisfied by providing all fields in `alternative_fields_due`. @@ -621,7 +641,7 @@ module Stripe end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. attr_reader :code # An informative message that indicates the error type and provides additional details about the error. @@ -663,8 +683,8 @@ module Stripe end end - class Settings < Stripe::StripeObject - class BacsDebitPayments < Stripe::StripeObject + class Settings < ::Stripe::StripeObject + class BacsDebitPayments < ::Stripe::StripeObject # The Bacs Direct Debit display name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. The fee appears 5 business days after requesting Bacs. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free. attr_reader :display_name # The Bacs Direct Debit Service user number for this account. For payments made with Bacs Direct Debit, this number is a unique identifier of the account with our banking partners. @@ -679,7 +699,7 @@ module Stripe end end - class Branding < Stripe::StripeObject + class Branding < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px. attr_reader :icon # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A logo for the account that will be used in Checkout instead of the icon and without the account's name next to it if provided. Must be at least 128px x 128px. @@ -698,8 +718,8 @@ module Stripe end end - class CardIssuing < Stripe::StripeObject - class TosAcceptance < Stripe::StripeObject + class CardIssuing < ::Stripe::StripeObject + class TosAcceptance < ::Stripe::StripeObject # The Unix timestamp marking when the account representative accepted the service agreement. attr_reader :date # The IP address from which the account representative accepted the service agreement. @@ -727,8 +747,8 @@ module Stripe end end - class CardPayments < Stripe::StripeObject - class DeclineOn < Stripe::StripeObject + class CardPayments < ::Stripe::StripeObject + class DeclineOn < ::Stripe::StripeObject # Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification. attr_reader :avs_failure # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification. @@ -760,7 +780,7 @@ module Stripe end end - class Dashboard < Stripe::StripeObject + class Dashboard < ::Stripe::StripeObject # The display name for this account. This is used on the Stripe Dashboard to differentiate between accounts. attr_reader :display_name # The timezone used in the Stripe Dashboard for this account. A list of possible time zone values is maintained at the [IANA Time Zone Database](http://www.iana.org/time-zones). @@ -775,7 +795,7 @@ module Stripe end end - class Invoices < Stripe::StripeObject + class Invoices < ::Stripe::StripeObject # The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized. attr_reader :default_account_tax_ids # Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page. @@ -790,7 +810,7 @@ module Stripe end end - class Payments < Stripe::StripeObject + class Payments < ::Stripe::StripeObject # The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge. attr_reader :statement_descriptor # The Kana variation of `statement_descriptor` used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). @@ -811,8 +831,8 @@ module Stripe end end - class Payouts < Stripe::StripeObject - class Schedule < Stripe::StripeObject + class Payouts < ::Stripe::StripeObject + class Schedule < ::Stripe::StripeObject # The number of days charges for the account will be held before being paid out. attr_reader :delay_days # How frequently funds will be paid out. One of `manual` (payouts only created via API call), `daily`, `weekly`, or `monthly`. @@ -850,7 +870,7 @@ module Stripe end end - class SepaDebitPayments < Stripe::StripeObject + class SepaDebitPayments < ::Stripe::StripeObject # SEPA creditor identifier that identifies the company making the payment. attr_reader :creditor_id @@ -863,8 +883,8 @@ module Stripe end end - class Treasury < Stripe::StripeObject - class TosAcceptance < Stripe::StripeObject + class Treasury < ::Stripe::StripeObject + class TosAcceptance < ::Stripe::StripeObject # The Unix timestamp marking when the account representative accepted the service agreement. attr_reader :date # The IP address from which the account representative accepted the service agreement. @@ -932,7 +952,7 @@ module Stripe end end - class TosAcceptance < Stripe::StripeObject + class TosAcceptance < ::Stripe::StripeObject # The Unix timestamp marking when the account representative accepted their service agreement attr_reader :date # The IP address from which the account representative accepted their service agreement diff --git a/lib/stripe/resources/account_session.rb b/lib/stripe/resources/account_session.rb index a4349338..f4d3d197 100644 --- a/lib/stripe/resources/account_session.rb +++ b/lib/stripe/resources/account_session.rb @@ -17,9 +17,9 @@ module Stripe "account_session" end - class Components < Stripe::StripeObject - class AccountManagement < Stripe::StripeObject - class Features < Stripe::StripeObject + class Components < ::Stripe::StripeObject + class AccountManagement < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. attr_reader :disable_stripe_user_authentication # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`. @@ -47,8 +47,8 @@ module Stripe end end - class AccountOnboarding < Stripe::StripeObject - class Features < Stripe::StripeObject + class AccountOnboarding < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. attr_reader :disable_stripe_user_authentication # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`. @@ -76,8 +76,8 @@ module Stripe end end - class Balances < Stripe::StripeObject - class Features < Stripe::StripeObject + class Balances < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. attr_reader :disable_stripe_user_authentication # Whether to allow payout schedule to be changed. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`. @@ -111,8 +111,8 @@ module Stripe end end - class DisputesList < Stripe::StripeObject - class Features < Stripe::StripeObject + class DisputesList < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether to allow capturing and cancelling payment intents. This is `true` by default. attr_reader :capture_payments # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default. @@ -144,8 +144,8 @@ module Stripe end end - class Documents < Stripe::StripeObject - class Features < Stripe::StripeObject + class Documents < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -168,8 +168,8 @@ module Stripe end end - class FinancialAccount < Stripe::StripeObject - class Features < Stripe::StripeObject + class FinancialAccount < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. attr_reader :disable_stripe_user_authentication # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`. @@ -201,8 +201,8 @@ module Stripe end end - class FinancialAccountTransactions < Stripe::StripeObject - class Features < Stripe::StripeObject + class FinancialAccountTransactions < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether to allow card spend dispute management features. attr_reader :card_spend_dispute_management @@ -228,8 +228,8 @@ module Stripe end end - class InstantPayoutsPromotion < Stripe::StripeObject - class Features < Stripe::StripeObject + class InstantPayoutsPromotion < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. attr_reader :disable_stripe_user_authentication # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`. @@ -259,8 +259,8 @@ module Stripe end end - class IssuingCard < Stripe::StripeObject - class Features < Stripe::StripeObject + class IssuingCard < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether to allow card management features. attr_reader :card_management # Whether to allow card spend dispute management features. @@ -292,8 +292,8 @@ module Stripe end end - class IssuingCardsList < Stripe::StripeObject - class Features < Stripe::StripeObject + class IssuingCardsList < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether to allow card management features. attr_reader :card_management # Whether to allow card spend dispute management features. @@ -327,8 +327,8 @@ module Stripe end end - class NotificationBanner < Stripe::StripeObject - class Features < Stripe::StripeObject + class NotificationBanner < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. attr_reader :disable_stripe_user_authentication # Whether external account collection is enabled. This feature can only be `false` for accounts where you’re responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`. @@ -356,8 +356,8 @@ module Stripe end end - class PaymentDetails < Stripe::StripeObject - class Features < Stripe::StripeObject + class PaymentDetails < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether to allow capturing and cancelling payment intents. This is `true` by default. attr_reader :capture_payments # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default. @@ -389,8 +389,8 @@ module Stripe end end - class PaymentDisputes < Stripe::StripeObject - class Features < Stripe::StripeObject + class PaymentDisputes < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default. attr_reader :destination_on_behalf_of_charge_management # Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default. @@ -420,8 +420,8 @@ module Stripe end end - class Payments < Stripe::StripeObject - class Features < Stripe::StripeObject + class Payments < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether to allow capturing and cancelling payment intents. This is `true` by default. attr_reader :capture_payments # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default. @@ -453,8 +453,8 @@ module Stripe end end - class PayoutDetails < Stripe::StripeObject - class Features < Stripe::StripeObject + class PayoutDetails < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -477,8 +477,8 @@ module Stripe end end - class Payouts < Stripe::StripeObject - class Features < Stripe::StripeObject + class Payouts < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. attr_reader :disable_stripe_user_authentication # Whether to allow payout schedule to be changed. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`. @@ -512,8 +512,8 @@ module Stripe end end - class PayoutsList < Stripe::StripeObject - class Features < Stripe::StripeObject + class PayoutsList < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -536,8 +536,8 @@ module Stripe end end - class TaxRegistrations < Stripe::StripeObject - class Features < Stripe::StripeObject + class TaxRegistrations < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -560,8 +560,8 @@ module Stripe end end - class TaxSettings < Stripe::StripeObject - class Features < Stripe::StripeObject + class TaxSettings < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end diff --git a/lib/stripe/resources/application_fee.rb b/lib/stripe/resources/application_fee.rb index 3e7a8b37..eed96ccf 100644 --- a/lib/stripe/resources/application_fee.rb +++ b/lib/stripe/resources/application_fee.rb @@ -13,7 +13,7 @@ module Stripe nested_resource_class_methods :refund, operations: %i[create retrieve update list] - class FeeSource < Stripe::StripeObject + class FeeSource < ::Stripe::StripeObject # Charge ID that created this application fee. attr_reader :charge # Payout ID that created this application fee. diff --git a/lib/stripe/resources/apps/secret.rb b/lib/stripe/resources/apps/secret.rb index 973b5eba..a8cad6fd 100644 --- a/lib/stripe/resources/apps/secret.rb +++ b/lib/stripe/resources/apps/secret.rb @@ -21,7 +21,7 @@ module Stripe "apps.secret" end - class Scope < Stripe::StripeObject + class Scope < ::Stripe::StripeObject # The secret scope type. attr_reader :type # The user ID, if type is set to "user" diff --git a/lib/stripe/resources/balance.rb b/lib/stripe/resources/balance.rb index cde37b18..9803273d 100644 --- a/lib/stripe/resources/balance.rb +++ b/lib/stripe/resources/balance.rb @@ -14,8 +14,8 @@ module Stripe "balance" end - class Available < Stripe::StripeObject - class SourceTypes < Stripe::StripeObject + class Available < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). attr_reader :bank_account # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). @@ -47,8 +47,8 @@ module Stripe end end - class ConnectReserved < Stripe::StripeObject - class SourceTypes < Stripe::StripeObject + class ConnectReserved < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). attr_reader :bank_account # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). @@ -80,9 +80,9 @@ module Stripe end end - class InstantAvailable < Stripe::StripeObject - class NetAvailable < Stripe::StripeObject - class SourceTypes < Stripe::StripeObject + class InstantAvailable < ::Stripe::StripeObject + class NetAvailable < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). attr_reader :bank_account # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). @@ -114,7 +114,7 @@ module Stripe end end - class SourceTypes < Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). attr_reader :bank_account # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). @@ -148,9 +148,9 @@ module Stripe end end - class Issuing < Stripe::StripeObject - class Available < Stripe::StripeObject - class SourceTypes < Stripe::StripeObject + class Issuing < ::Stripe::StripeObject + class Available < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). attr_reader :bank_account # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). @@ -193,8 +193,8 @@ module Stripe end end - class Pending < Stripe::StripeObject - class SourceTypes < Stripe::StripeObject + class Pending < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). attr_reader :bank_account # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). @@ -226,9 +226,9 @@ module Stripe end end - class RefundAndDisputePrefunding < Stripe::StripeObject - class Available < Stripe::StripeObject - class SourceTypes < Stripe::StripeObject + class RefundAndDisputePrefunding < ::Stripe::StripeObject + class Available < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). attr_reader :bank_account # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). @@ -260,8 +260,8 @@ module Stripe end end - class Pending < Stripe::StripeObject - class SourceTypes < Stripe::StripeObject + class Pending < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). attr_reader :bank_account # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). diff --git a/lib/stripe/resources/balance_settings.rb b/lib/stripe/resources/balance_settings.rb index 5979d64b..bdd06dd0 100644 --- a/lib/stripe/resources/balance_settings.rb +++ b/lib/stripe/resources/balance_settings.rb @@ -11,9 +11,9 @@ module Stripe "balance_settings" end - class Payments < Stripe::StripeObject - class Payouts < Stripe::StripeObject - class Schedule < Stripe::StripeObject + class Payments < ::Stripe::StripeObject + class Payouts < ::Stripe::StripeObject + class Schedule < ::Stripe::StripeObject # How frequently funds will be paid out. One of `manual` (payouts only created via API call), `daily`, `weekly`, or `monthly`. attr_reader :interval # The day of the month funds will be paid out. Only shown if `interval` is monthly. Payouts scheduled between the 29th and 31st of the month are sent on the last day of shorter months. @@ -47,7 +47,7 @@ module Stripe end end - class SettlementTiming < Stripe::StripeObject + class SettlementTiming < ::Stripe::StripeObject # The number of days charge funds are held before becoming available. attr_reader :delay_days # The number of days charge funds are held before becoming available. If present, overrides the default, or minimum available, for the account. diff --git a/lib/stripe/resources/balance_transaction.rb b/lib/stripe/resources/balance_transaction.rb index 90b1d53d..7da51491 100644 --- a/lib/stripe/resources/balance_transaction.rb +++ b/lib/stripe/resources/balance_transaction.rb @@ -14,7 +14,7 @@ module Stripe "balance_transaction" end - class FeeDetail < Stripe::StripeObject + class FeeDetail < ::Stripe::StripeObject # Amount of the fee, in cents. attr_reader :amount # ID of the Connect application that earned the fee. diff --git a/lib/stripe/resources/bank_account.rb b/lib/stripe/resources/bank_account.rb index 7f040798..e32ebb4e 100644 --- a/lib/stripe/resources/bank_account.rb +++ b/lib/stripe/resources/bank_account.rb @@ -19,8 +19,8 @@ module Stripe "bank_account" end - class FutureRequirements < Stripe::StripeObject - class Error < Stripe::StripeObject + class FutureRequirements < ::Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. attr_reader :code # An informative message that indicates the error type and provides additional details about the error. @@ -54,8 +54,8 @@ module Stripe end end - class Requirements < Stripe::StripeObject - class Error < Stripe::StripeObject + class Requirements < ::Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. attr_reader :code # An informative message that indicates the error type and provides additional details about the error. diff --git a/lib/stripe/resources/billing/alert.rb b/lib/stripe/resources/billing/alert.rb index c22c7f84..f1793da1 100644 --- a/lib/stripe/resources/billing/alert.rb +++ b/lib/stripe/resources/billing/alert.rb @@ -13,8 +13,8 @@ module Stripe "billing.alert" end - class UsageThreshold < Stripe::StripeObject - class Filter < Stripe::StripeObject + class UsageThreshold < ::Stripe::StripeObject + class Filter < ::Stripe::StripeObject # Limit the scope of the alert to this customer ID attr_reader :customer # Attribute for field type diff --git a/lib/stripe/resources/billing/credit_balance_summary.rb b/lib/stripe/resources/billing/credit_balance_summary.rb index d9d95edf..fe9616a8 100644 --- a/lib/stripe/resources/billing/credit_balance_summary.rb +++ b/lib/stripe/resources/billing/credit_balance_summary.rb @@ -10,9 +10,9 @@ module Stripe "billing.credit_balance_summary" end - class Balance < Stripe::StripeObject - class AvailableBalance < Stripe::StripeObject - class Monetary < Stripe::StripeObject + class Balance < ::Stripe::StripeObject + class AvailableBalance < ::Stripe::StripeObject + class Monetary < ::Stripe::StripeObject # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). attr_reader :currency # A positive integer representing the amount. @@ -40,8 +40,8 @@ module Stripe end end - class LedgerBalance < Stripe::StripeObject - class Monetary < Stripe::StripeObject + class LedgerBalance < ::Stripe::StripeObject + class Monetary < ::Stripe::StripeObject # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). attr_reader :currency # A positive integer representing the amount. diff --git a/lib/stripe/resources/billing/credit_balance_transaction.rb b/lib/stripe/resources/billing/credit_balance_transaction.rb index 87a5bbbf..17eb74cd 100644 --- a/lib/stripe/resources/billing/credit_balance_transaction.rb +++ b/lib/stripe/resources/billing/credit_balance_transaction.rb @@ -12,9 +12,9 @@ module Stripe "billing.credit_balance_transaction" end - class Credit < Stripe::StripeObject - class Amount < Stripe::StripeObject - class Monetary < Stripe::StripeObject + class Credit < ::Stripe::StripeObject + class Amount < ::Stripe::StripeObject + class Monetary < ::Stripe::StripeObject # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). attr_reader :currency # A positive integer representing the amount. @@ -42,7 +42,7 @@ module Stripe end end - class CreditsApplicationInvoiceVoided < Stripe::StripeObject + class CreditsApplicationInvoiceVoided < ::Stripe::StripeObject # The invoice to which the reinstated billing credits were originally applied. attr_reader :invoice # The invoice line item to which the reinstated billing credits were originally applied. @@ -75,9 +75,9 @@ module Stripe end end - class Debit < Stripe::StripeObject - class Amount < Stripe::StripeObject - class Monetary < Stripe::StripeObject + class Debit < ::Stripe::StripeObject + class Amount < ::Stripe::StripeObject + class Monetary < ::Stripe::StripeObject # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). attr_reader :currency # A positive integer representing the amount. @@ -105,7 +105,7 @@ module Stripe end end - class CreditsApplied < Stripe::StripeObject + class CreditsApplied < ::Stripe::StripeObject # The invoice to which the billing credits were applied. attr_reader :invoice # The invoice line item to which the billing credits were applied. diff --git a/lib/stripe/resources/billing/credit_grant.rb b/lib/stripe/resources/billing/credit_grant.rb index 43a7ef5d..537eaa08 100644 --- a/lib/stripe/resources/billing/credit_grant.rb +++ b/lib/stripe/resources/billing/credit_grant.rb @@ -16,8 +16,8 @@ module Stripe "billing.credit_grant" end - class Amount < Stripe::StripeObject - class Monetary < Stripe::StripeObject + class Amount < ::Stripe::StripeObject + class Monetary < ::Stripe::StripeObject # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). attr_reader :currency # A positive integer representing the amount. @@ -45,9 +45,9 @@ module Stripe end end - class ApplicabilityConfig < Stripe::StripeObject - class Scope < Stripe::StripeObject - class Price < Stripe::StripeObject + class ApplicabilityConfig < ::Stripe::StripeObject + class Scope < ::Stripe::StripeObject + class Price < ::Stripe::StripeObject # Unique identifier for the object. attr_reader :id diff --git a/lib/stripe/resources/billing/meter.rb b/lib/stripe/resources/billing/meter.rb index 723d8bbb..ffcf29d4 100644 --- a/lib/stripe/resources/billing/meter.rb +++ b/lib/stripe/resources/billing/meter.rb @@ -21,7 +21,7 @@ module Stripe operations: %i[list], resource_plural: "event_summaries" - class CustomerMapping < Stripe::StripeObject + class CustomerMapping < ::Stripe::StripeObject # The key in the meter event payload to use for mapping the event to a customer. attr_reader :event_payload_key # The method for mapping a meter event to a customer. @@ -36,7 +36,7 @@ module Stripe end end - class DefaultAggregation < Stripe::StripeObject + class DefaultAggregation < ::Stripe::StripeObject # Specifies how events are aggregated. attr_reader :formula @@ -49,7 +49,7 @@ module Stripe end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # The time the meter was deactivated, if any. Measured in seconds since Unix epoch. attr_reader :deactivated_at @@ -62,7 +62,7 @@ module Stripe end end - class ValueSettings < Stripe::StripeObject + class ValueSettings < ::Stripe::StripeObject # The key in the meter event payload to use as the value for this meter. attr_reader :event_payload_key diff --git a/lib/stripe/resources/billing/meter_event_adjustment.rb b/lib/stripe/resources/billing/meter_event_adjustment.rb index 04dcaa27..46a118de 100644 --- a/lib/stripe/resources/billing/meter_event_adjustment.rb +++ b/lib/stripe/resources/billing/meter_event_adjustment.rb @@ -12,7 +12,7 @@ module Stripe "billing.meter_event_adjustment" end - class Cancel < Stripe::StripeObject + class Cancel < ::Stripe::StripeObject # Unique identifier for the event. attr_reader :identifier diff --git a/lib/stripe/resources/billing_portal/configuration.rb b/lib/stripe/resources/billing_portal/configuration.rb index 51602b80..1b41a728 100644 --- a/lib/stripe/resources/billing_portal/configuration.rb +++ b/lib/stripe/resources/billing_portal/configuration.rb @@ -3,7 +3,7 @@ module Stripe module BillingPortal - # A portal configuration describes the functionality and behavior of a portal session. + # A portal configuration describes the functionality and behavior you embed in a portal session. Related guide: [Configure the customer portal](https://docs.stripe.com/customer-management/configure-portal). class Configuration < APIResource extend Stripe::APIOperations::Create extend Stripe::APIOperations::List @@ -14,7 +14,7 @@ module Stripe "billing_portal.configuration" end - class BusinessProfile < Stripe::StripeObject + class BusinessProfile < ::Stripe::StripeObject # The messaging shown to customers in the portal. attr_reader :headline # A link to the business’s publicly available privacy policy. @@ -31,8 +31,8 @@ module Stripe end end - class Features < Stripe::StripeObject - class CustomerUpdate < Stripe::StripeObject + class Features < ::Stripe::StripeObject + class CustomerUpdate < ::Stripe::StripeObject # The types of customer updates that are supported. When empty, customers are not updateable. attr_reader :allowed_updates # Whether the feature is enabled. @@ -47,7 +47,7 @@ module Stripe end end - class InvoiceHistory < Stripe::StripeObject + class InvoiceHistory < ::Stripe::StripeObject # Whether the feature is enabled. attr_reader :enabled @@ -60,7 +60,7 @@ module Stripe end end - class PaymentMethodUpdate < Stripe::StripeObject + class PaymentMethodUpdate < ::Stripe::StripeObject # Whether the feature is enabled. attr_reader :enabled @@ -73,8 +73,8 @@ module Stripe end end - class SubscriptionCancel < Stripe::StripeObject - class CancellationReason < Stripe::StripeObject + class SubscriptionCancel < ::Stripe::StripeObject + class CancellationReason < ::Stripe::StripeObject # Whether the feature is enabled. attr_reader :enabled # Which cancellation reasons will be given as options to the customer. @@ -106,9 +106,9 @@ module Stripe end end - class SubscriptionUpdate < Stripe::StripeObject - class Product < Stripe::StripeObject - class AdjustableQuantity < Stripe::StripeObject + class SubscriptionUpdate < ::Stripe::StripeObject + class Product < ::Stripe::StripeObject + class AdjustableQuantity < ::Stripe::StripeObject # If true, the quantity can be adjusted to any non-negative integer. attr_reader :enabled # The maximum quantity that can be set for the product. @@ -140,8 +140,8 @@ module Stripe end end - class ScheduleAtPeriodEnd < Stripe::StripeObject - class Condition < Stripe::StripeObject + class ScheduleAtPeriodEnd < ::Stripe::StripeObject + class Condition < ::Stripe::StripeObject # The type of condition. attr_reader :type @@ -211,7 +211,7 @@ module Stripe end end - class LoginPage < Stripe::StripeObject + class LoginPage < ::Stripe::StripeObject # If `true`, a shareable `url` will be generated that will take your customers to a hosted login page for the customer portal. # # If `false`, the previously generated `url`, if any, will be deactivated. diff --git a/lib/stripe/resources/billing_portal/session.rb b/lib/stripe/resources/billing_portal/session.rb index 8766e9ac..415027d9 100644 --- a/lib/stripe/resources/billing_portal/session.rb +++ b/lib/stripe/resources/billing_portal/session.rb @@ -25,9 +25,9 @@ module Stripe "billing_portal.session" end - class Flow < Stripe::StripeObject - class AfterCompletion < Stripe::StripeObject - class HostedConfirmation < Stripe::StripeObject + class Flow < ::Stripe::StripeObject + class AfterCompletion < ::Stripe::StripeObject + class HostedConfirmation < ::Stripe::StripeObject # A custom message to display to the customer after the flow is completed. attr_reader :custom_message @@ -40,7 +40,7 @@ module Stripe end end - class Redirect < Stripe::StripeObject + class Redirect < ::Stripe::StripeObject # The URL the customer will be redirected to after the flow is completed. attr_reader :return_url @@ -68,9 +68,9 @@ module Stripe end end - class SubscriptionCancel < Stripe::StripeObject - class Retention < Stripe::StripeObject - class CouponOffer < Stripe::StripeObject + class SubscriptionCancel < ::Stripe::StripeObject + class Retention < ::Stripe::StripeObject + class CouponOffer < ::Stripe::StripeObject # The ID of the coupon to be offered. attr_reader :coupon @@ -109,7 +109,7 @@ module Stripe end end - class SubscriptionUpdate < Stripe::StripeObject + class SubscriptionUpdate < ::Stripe::StripeObject # The ID of the subscription to be updated. attr_reader :subscription @@ -122,8 +122,8 @@ module Stripe end end - class SubscriptionUpdateConfirm < Stripe::StripeObject - class Discount < Stripe::StripeObject + class SubscriptionUpdateConfirm < ::Stripe::StripeObject + class Discount < ::Stripe::StripeObject # The ID of the coupon to apply to this subscription update. attr_reader :coupon # The ID of a promotion code to apply to this subscription update. @@ -138,7 +138,7 @@ module Stripe end end - class Item < Stripe::StripeObject + class Item < ::Stripe::StripeObject # The ID of the [subscription item](https://stripe.com/docs/api/subscriptions/object#subscription_object-items-data-id) to be updated. attr_reader :id # The price the customer should subscribe to through this flow. The price must also be included in the configuration's [`features.subscription_update.products`](https://stripe.com/docs/api/customer_portal/configuration#portal_configuration_object-features-subscription_update-products). diff --git a/lib/stripe/resources/capability.rb b/lib/stripe/resources/capability.rb index 279850e4..edd7a227 100644 --- a/lib/stripe/resources/capability.rb +++ b/lib/stripe/resources/capability.rb @@ -13,8 +13,8 @@ module Stripe "capability" end - class FutureRequirements < Stripe::StripeObject - class Alternative < Stripe::StripeObject + class FutureRequirements < ::Stripe::StripeObject + class Alternative < ::Stripe::StripeObject # Fields that can be provided to satisfy all fields in `original_fields_due`. attr_reader :alternative_fields_due # Fields that are due and can be satisfied by providing all fields in `alternative_fields_due`. @@ -29,7 +29,7 @@ module Stripe end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. attr_reader :code # An informative message that indicates the error type and provides additional details about the error. @@ -71,8 +71,8 @@ module Stripe end end - class Requirements < Stripe::StripeObject - class Alternative < Stripe::StripeObject + class Requirements < ::Stripe::StripeObject + class Alternative < ::Stripe::StripeObject # Fields that can be provided to satisfy all fields in `original_fields_due`. attr_reader :alternative_fields_due # Fields that are due and can be satisfied by providing all fields in `alternative_fields_due`. @@ -87,7 +87,7 @@ module Stripe end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. attr_reader :code # An informative message that indicates the error type and provides additional details about the error. diff --git a/lib/stripe/resources/card.rb b/lib/stripe/resources/card.rb index aa7ccd98..e9795567 100644 --- a/lib/stripe/resources/card.rb +++ b/lib/stripe/resources/card.rb @@ -17,7 +17,7 @@ module Stripe "card" end - class Networks < Stripe::StripeObject + class Networks < ::Stripe::StripeObject # The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card. attr_reader :preferred diff --git a/lib/stripe/resources/cash_balance.rb b/lib/stripe/resources/cash_balance.rb index 0a112558..469c6522 100644 --- a/lib/stripe/resources/cash_balance.rb +++ b/lib/stripe/resources/cash_balance.rb @@ -9,7 +9,7 @@ module Stripe "cash_balance" end - class Settings < Stripe::StripeObject + class Settings < ::Stripe::StripeObject # The configuration for how funds that land in the customer cash balance are reconciled. attr_reader :reconciliation_mode # A flag to indicate if reconciliation mode returned is the user's default or is specific to this customer cash balance diff --git a/lib/stripe/resources/charge.rb b/lib/stripe/resources/charge.rb index 2fc8f22b..181ac23e 100644 --- a/lib/stripe/resources/charge.rb +++ b/lib/stripe/resources/charge.rb @@ -19,8 +19,8 @@ module Stripe nested_resource_class_methods :refund, operations: %i[retrieve list] - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -62,7 +62,7 @@ module Stripe end end - class FraudDetails < Stripe::StripeObject + class FraudDetails < ::Stripe::StripeObject # Assessments from Stripe. If set, the value is `fraudulent`. attr_reader :stripe_report # Assessments reported by you. If set, possible values of are `safe` and `fraudulent`. @@ -77,8 +77,8 @@ module Stripe end end - class Level3 < Stripe::StripeObject - class LineItem < Stripe::StripeObject + class Level3 < ::Stripe::StripeObject + class LineItem < ::Stripe::StripeObject # Attribute for field discount_amount attr_reader :discount_amount # Attribute for field product_code @@ -122,8 +122,8 @@ module Stripe end end - class Outcome < Stripe::StripeObject - class Rule < Stripe::StripeObject + class Outcome < ::Stripe::StripeObject + class Rule < ::Stripe::StripeObject # The action taken on the payment. attr_reader :action # Unique identifier for the object. @@ -169,8 +169,8 @@ module Stripe end end - class PaymentMethodDetails < Stripe::StripeObject - class AchCreditTransfer < Stripe::StripeObject + class PaymentMethodDetails < ::Stripe::StripeObject + class AchCreditTransfer < ::Stripe::StripeObject # Account number to transfer funds to. attr_reader :account_number # Name of the bank associated with the routing number. @@ -189,7 +189,7 @@ module Stripe end end - class AchDebit < Stripe::StripeObject + class AchDebit < ::Stripe::StripeObject # Type of entity that holds the account. This can be either `individual` or `company`. attr_reader :account_holder_type # Name of the bank associated with the bank account. @@ -212,7 +212,7 @@ module Stripe end end - class AcssDebit < Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject # Name of the bank associated with the bank account. attr_reader :bank_name # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. @@ -235,7 +235,7 @@ module Stripe end end - class Affirm < Stripe::StripeObject + class Affirm < ::Stripe::StripeObject # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. attr_reader :location # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. @@ -252,7 +252,7 @@ module Stripe end end - class AfterpayClearpay < Stripe::StripeObject + class AfterpayClearpay < ::Stripe::StripeObject # The Afterpay order ID associated with this payment intent. attr_reader :order_id # Order identifier shown to the merchant in Afterpay’s online portal. @@ -267,7 +267,7 @@ module Stripe end end - class Alipay < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same. attr_reader :buyer_id # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same. @@ -284,8 +284,8 @@ module Stripe end end - class Alma < Stripe::StripeObject - class Installments < Stripe::StripeObject + class Alma < ::Stripe::StripeObject + class Installments < ::Stripe::StripeObject # The number of installments. attr_reader :count @@ -311,9 +311,9 @@ module Stripe end end - class AmazonPay < Stripe::StripeObject - class Funding < Stripe::StripeObject - class Card < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject + class Funding < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. attr_reader :brand # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. @@ -362,7 +362,7 @@ module Stripe end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject # Bank-State-Branch number of the bank account. attr_reader :bsb_number # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. @@ -381,7 +381,7 @@ module Stripe end end - class BacsDebit < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. attr_reader :fingerprint # Last four digits of the bank account number. @@ -400,7 +400,7 @@ module Stripe end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject # Bank code of bank associated with the bank account. attr_reader :bank_code # Name of the bank associated with the bank account. @@ -429,7 +429,7 @@ module Stripe end end - class Billie < Stripe::StripeObject + class Billie < ::Stripe::StripeObject # The Billie transaction ID associated with this payment. attr_reader :transaction_id @@ -442,7 +442,7 @@ module Stripe end end - class Blik < Stripe::StripeObject + class Blik < ::Stripe::StripeObject # A unique and immutable identifier assigned by BLIK to every buyer. attr_reader :buyer_id @@ -455,7 +455,7 @@ module Stripe end end - class Boleto < Stripe::StripeObject + class Boleto < ::Stripe::StripeObject # The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses consumers) attr_reader :tax_id @@ -468,8 +468,8 @@ module Stripe end end - class Card < Stripe::StripeObject - class Checks < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Checks < ::Stripe::StripeObject # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. attr_reader :address_line1_check # If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. @@ -486,7 +486,7 @@ module Stripe end end - class ExtendedAuthorization < Stripe::StripeObject + class ExtendedAuthorization < ::Stripe::StripeObject # Indicates whether or not the capture window is extended beyond the standard authorization. attr_reader :status @@ -499,7 +499,7 @@ module Stripe end end - class IncrementalAuthorization < Stripe::StripeObject + class IncrementalAuthorization < ::Stripe::StripeObject # Indicates whether or not the incremental authorization feature is supported. attr_reader :status @@ -512,8 +512,8 @@ module Stripe end end - class Installments < Stripe::StripeObject - class Plan < Stripe::StripeObject + class Installments < ::Stripe::StripeObject + class Plan < ::Stripe::StripeObject # For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card. attr_reader :count # For `fixed_count` installment plans, this is the interval between installment payments your customer will make to their credit card. @@ -542,7 +542,7 @@ module Stripe end end - class Multicapture < Stripe::StripeObject + class Multicapture < ::Stripe::StripeObject # Indicates whether or not multiple captures are supported. attr_reader :status @@ -555,7 +555,7 @@ module Stripe end end - class NetworkToken < Stripe::StripeObject + class NetworkToken < ::Stripe::StripeObject # Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction. attr_reader :used @@ -568,7 +568,7 @@ module Stripe end end - class Overcapture < Stripe::StripeObject + class Overcapture < ::Stripe::StripeObject # The maximum amount that can be captured. attr_reader :maximum_amount_capturable # Indicates whether or not the authorized amount can be over-captured. @@ -583,7 +583,7 @@ module Stripe end end - class ThreeDSecure < Stripe::StripeObject + class ThreeDSecure < ::Stripe::StripeObject # For authenticated transactions: how the customer was authenticated by # the issuing bank. attr_reader :authentication_flow @@ -615,8 +615,8 @@ module Stripe end end - class Wallet < Stripe::StripeObject - class AmexExpressCheckout < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject + class AmexExpressCheckout < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -626,7 +626,7 @@ module Stripe end end - class ApplePay < Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -636,7 +636,7 @@ module Stripe end end - class GooglePay < Stripe::StripeObject + class GooglePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -646,7 +646,7 @@ module Stripe end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -656,8 +656,8 @@ module Stripe end end - class Masterpass < Stripe::StripeObject - class BillingAddress < Stripe::StripeObject + class Masterpass < ::Stripe::StripeObject + class BillingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -680,7 +680,7 @@ module Stripe end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -723,7 +723,7 @@ module Stripe end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -733,8 +733,8 @@ module Stripe end end - class VisaCheckout < Stripe::StripeObject - class BillingAddress < Stripe::StripeObject + class VisaCheckout < ::Stripe::StripeObject + class BillingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -757,7 +757,7 @@ module Stripe end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -912,8 +912,8 @@ module Stripe end end - class CardPresent < Stripe::StripeObject - class Offline < Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject + class Offline < ::Stripe::StripeObject # Time at which the payment was collected while offline attr_reader :stored_at # The method used to process this payment method offline. Only deferred is allowed. @@ -928,7 +928,7 @@ module Stripe end end - class Receipt < Stripe::StripeObject + class Receipt < ::Stripe::StripeObject # The type of account being debited or credited attr_reader :account_type # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers. @@ -957,7 +957,7 @@ module Stripe end end - class Wallet < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. attr_reader :type @@ -1031,7 +1031,7 @@ module Stripe end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject # A unique and immutable identifier assigned by Cash App to every buyer. attr_reader :buyer_id # A public identifier for buyers using Cash App. @@ -1048,7 +1048,7 @@ module Stripe end end - class Crypto < Stripe::StripeObject + class Crypto < ::Stripe::StripeObject # The wallet address of the customer. attr_reader :buyer_address # The blockchain network that the transaction was sent on. @@ -1067,7 +1067,7 @@ module Stripe end end - class CustomerBalance < Stripe::StripeObject + class CustomerBalance < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1077,7 +1077,7 @@ module Stripe end end - class Eps < Stripe::StripeObject + class Eps < ::Stripe::StripeObject # The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. attr_reader :bank # Owner's verified full name. Values are verified or provided by EPS directly @@ -1094,7 +1094,7 @@ module Stripe end end - class Fpx < Stripe::StripeObject + class Fpx < ::Stripe::StripeObject # Account holder type, if provided. Can be one of `individual` or `company`. attr_reader :account_holder_type # The customer's bank. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`. @@ -1111,7 +1111,7 @@ module Stripe end end - class Giropay < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject # Bank code of bank associated with the bank account. attr_reader :bank_code # Name of the bank associated with the bank account. @@ -1132,7 +1132,7 @@ module Stripe end end - class Grabpay < Stripe::StripeObject + class Grabpay < ::Stripe::StripeObject # Unique transaction id generated by GrabPay attr_reader :transaction_id @@ -1145,7 +1145,7 @@ module Stripe end end - class Ideal < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject # The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. attr_reader :bank # The Bank Identifier Code of the customer's bank. @@ -1169,8 +1169,8 @@ module Stripe end end - class InteracPresent < Stripe::StripeObject - class Receipt < Stripe::StripeObject + class InteracPresent < ::Stripe::StripeObject + class Receipt < ::Stripe::StripeObject # The type of account being debited or credited attr_reader :account_type # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers. @@ -1246,7 +1246,7 @@ module Stripe end end - class KakaoPay < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject # A unique identifier for the buyer as determined by the local payment processor. attr_reader :buyer_id # The Kakao Pay transaction ID associated with this payment. @@ -1261,9 +1261,9 @@ module Stripe end end - class Klarna < Stripe::StripeObject - class PayerDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject + class PayerDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # The payer address country attr_reader :country @@ -1304,8 +1304,8 @@ module Stripe end end - class Konbini < Stripe::StripeObject - class Store < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject + class Store < ::Stripe::StripeObject # The name of the convenience store chain where the payment was completed. attr_reader :chain @@ -1329,7 +1329,7 @@ module Stripe end end - class KrCard < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject # The local credit or debit card brand. attr_reader :brand # A unique identifier for the buyer as determined by the local payment processor. @@ -1348,7 +1348,7 @@ module Stripe end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject # Two-letter ISO code representing the funding source country beneath the Link payment. # You could use this attribute to get a sense of international fees. attr_reader :country @@ -1362,7 +1362,7 @@ module Stripe end end - class MbWay < Stripe::StripeObject + class MbWay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1372,8 +1372,8 @@ module Stripe end end - class Mobilepay < Stripe::StripeObject - class Card < Stripe::StripeObject + class Mobilepay < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject # Brand of the card used in the transaction attr_reader :brand # Two-letter ISO code representing the country of the card @@ -1405,7 +1405,7 @@ module Stripe end end - class Multibanco < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject # Entity number associated with this Multibanco payment. attr_reader :entity # Reference number associated with this Multibanco payment. @@ -1420,7 +1420,7 @@ module Stripe end end - class NaverPay < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject # A unique identifier for the buyer as determined by the local payment processor. attr_reader :buyer_id # The Naver Pay transaction ID associated with this payment. @@ -1435,7 +1435,7 @@ module Stripe end end - class NzBankAccount < Stripe::StripeObject + class NzBankAccount < ::Stripe::StripeObject # The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. attr_reader :account_holder_name # The numeric code for the bank account's bank. @@ -1458,7 +1458,7 @@ module Stripe end end - class Oxxo < Stripe::StripeObject + class Oxxo < ::Stripe::StripeObject # OXXO reference number attr_reader :number @@ -1471,7 +1471,7 @@ module Stripe end end - class P24 < Stripe::StripeObject + class P24 < ::Stripe::StripeObject # The customer's bank. Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `velobank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`. attr_reader :bank # Unique reference for this Przelewy24 payment. @@ -1490,7 +1490,7 @@ module Stripe end end - class PayByBank < Stripe::StripeObject + class PayByBank < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1500,7 +1500,7 @@ module Stripe end end - class Payco < Stripe::StripeObject + class Payco < ::Stripe::StripeObject # A unique identifier for the buyer as determined by the local payment processor. attr_reader :buyer_id # The Payco transaction ID associated with this payment. @@ -1515,7 +1515,7 @@ module Stripe end end - class Paynow < Stripe::StripeObject + class Paynow < ::Stripe::StripeObject # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. attr_reader :location # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. @@ -1532,8 +1532,8 @@ module Stripe end end - class Paypal < Stripe::StripeObject - class SellerProtection < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject + class SellerProtection < ::Stripe::StripeObject # An array of conditions that are covered for the transaction, if applicable. attr_reader :dispute_categories # Indicates whether the transaction is eligible for PayPal's seller protection. @@ -1571,7 +1571,7 @@ module Stripe end end - class Pix < Stripe::StripeObject + class Pix < ::Stripe::StripeObject # Unique transaction id generated by BCB attr_reader :bank_transaction_id @@ -1584,7 +1584,7 @@ module Stripe end end - class Promptpay < Stripe::StripeObject + class Promptpay < ::Stripe::StripeObject # Bill reference generated by PromptPay attr_reader :reference @@ -1597,9 +1597,9 @@ module Stripe end end - class RevolutPay < Stripe::StripeObject - class Funding < Stripe::StripeObject - class Card < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject + class Funding < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. attr_reader :brand # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. @@ -1648,7 +1648,7 @@ module Stripe end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject # A unique identifier for the buyer as determined by the local payment processor. attr_reader :buyer_id # The Samsung Pay transaction ID associated with this payment. @@ -1663,7 +1663,7 @@ module Stripe end end - class Satispay < Stripe::StripeObject + class Satispay < ::Stripe::StripeObject # The Satispay transaction ID associated with this payment. attr_reader :transaction_id @@ -1676,7 +1676,7 @@ module Stripe end end - class SepaCreditTransfer < Stripe::StripeObject + class SepaCreditTransfer < ::Stripe::StripeObject # Name of the bank associated with the bank account. attr_reader :bank_name # Bank Identifier Code of the bank associated with the bank account. @@ -1693,7 +1693,7 @@ module Stripe end end - class SepaDebit < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject # Bank code of bank associated with the bank account. attr_reader :bank_code # Branch code of bank associated with the bank account. @@ -1716,7 +1716,7 @@ module Stripe end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject # Bank code of bank associated with the bank account. attr_reader :bank_code # Name of the bank associated with the bank account. @@ -1747,7 +1747,7 @@ module Stripe end end - class StripeAccount < Stripe::StripeObject + class StripeAccount < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1757,7 +1757,7 @@ module Stripe end end - class Swish < Stripe::StripeObject + class Swish < ::Stripe::StripeObject # Uniquely identifies the payer's Swish account. You can use this attribute to check whether two Swish transactions were paid for by the same payer attr_reader :fingerprint # Payer bank reference number for the payment @@ -1774,7 +1774,7 @@ module Stripe end end - class Twint < Stripe::StripeObject + class Twint < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1784,7 +1784,7 @@ module Stripe end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject # Account holder type: individual or company. attr_reader :account_holder_type # Account type: checkings or savings. Defaults to checking if omitted. @@ -1811,7 +1811,7 @@ module Stripe end end - class Wechat < Stripe::StripeObject + class Wechat < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1821,7 +1821,7 @@ module Stripe end end - class WechatPay < Stripe::StripeObject + class WechatPay < ::Stripe::StripeObject # Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same. attr_reader :fingerprint # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. @@ -1840,7 +1840,7 @@ module Stripe end end - class Zip < Stripe::StripeObject + class Zip < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -2032,7 +2032,7 @@ module Stripe end end - class PresentmentDetails < Stripe::StripeObject + class PresentmentDetails < ::Stripe::StripeObject # Amount intended to be collected by this payment, denominated in `presentment_currency`. attr_reader :presentment_amount # Currency presented to the customer during payment. @@ -2047,7 +2047,7 @@ module Stripe end end - class RadarOptions < Stripe::StripeObject + class RadarOptions < ::Stripe::StripeObject # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. attr_reader :session @@ -2060,8 +2060,8 @@ module Stripe end end - class Shipping < Stripe::StripeObject - class Address < Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -2103,7 +2103,7 @@ module Stripe end end - class TransferData < Stripe::StripeObject + class TransferData < ::Stripe::StripeObject # The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account. attr_reader :amount # ID of an existing, connected Stripe account to transfer funds to if `transfer_data` was specified in the charge request. diff --git a/lib/stripe/resources/checkout/session.rb b/lib/stripe/resources/checkout/session.rb index cfc0e002..d6e3f58a 100644 --- a/lib/stripe/resources/checkout/session.rb +++ b/lib/stripe/resources/checkout/session.rb @@ -27,7 +27,7 @@ module Stripe "checkout.session" end - class AdaptivePricing < Stripe::StripeObject + class AdaptivePricing < ::Stripe::StripeObject # If enabled, Adaptive Pricing is available on [eligible sessions](https://docs.stripe.com/payments/currencies/localize-prices/adaptive-pricing?payment-ui=stripe-hosted#restrictions). attr_reader :enabled @@ -40,8 +40,8 @@ module Stripe end end - class AfterExpiration < Stripe::StripeObject - class Recovery < Stripe::StripeObject + class AfterExpiration < ::Stripe::StripeObject + class Recovery < ::Stripe::StripeObject # Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults to `false` attr_reader :allow_promotion_codes # If `true`, a recovery url will be generated to recover this Checkout Session if it @@ -73,8 +73,8 @@ module Stripe end end - class AutomaticTax < Stripe::StripeObject - class Liability < Stripe::StripeObject + class AutomaticTax < ::Stripe::StripeObject + class Liability < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. attr_reader :account # Type of the account referenced. @@ -106,8 +106,8 @@ module Stripe end end - class BrandingSettings < Stripe::StripeObject - class Icon < Stripe::StripeObject + class BrandingSettings < ::Stripe::StripeObject + class Icon < ::Stripe::StripeObject # The ID of a [File upload](https://stripe.com/docs/api/files) representing the icon. Purpose must be `business_icon`. Required if `type` is `file` and disallowed otherwise. attr_reader :file # The type of image for the icon. Must be one of `file` or `url`. @@ -124,7 +124,7 @@ module Stripe end end - class Logo < Stripe::StripeObject + class Logo < ::Stripe::StripeObject # The ID of a [File upload](https://stripe.com/docs/api/files) representing the logo. Purpose must be `business_logo`. Required if `type` is `file` and disallowed otherwise. attr_reader :file # The type of image for the logo. Must be one of `file` or `url`. @@ -164,9 +164,9 @@ module Stripe end end - class CollectedInformation < Stripe::StripeObject - class ShippingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class CollectedInformation < ::Stripe::StripeObject + class ShippingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -217,7 +217,7 @@ module Stripe end end - class Consent < Stripe::StripeObject + class Consent < ::Stripe::StripeObject # If `opt_in`, the customer consents to receiving promotional communications # from the merchant about this Checkout Session. attr_reader :promotions @@ -233,8 +233,8 @@ module Stripe end end - class ConsentCollection < Stripe::StripeObject - class PaymentMethodReuseAgreement < Stripe::StripeObject + class ConsentCollection < ::Stripe::StripeObject + class PaymentMethodReuseAgreement < ::Stripe::StripeObject # Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's defaults will be used. # # When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI. @@ -266,7 +266,7 @@ module Stripe end end - class CurrencyConversion < Stripe::StripeObject + class CurrencyConversion < ::Stripe::StripeObject # Total of all items in source currency before discounts or taxes are applied. attr_reader :amount_subtotal # Total of all items in source currency after discounts and taxes are applied. @@ -285,9 +285,9 @@ module Stripe end end - class CustomField < Stripe::StripeObject - class Dropdown < Stripe::StripeObject - class Option < Stripe::StripeObject + class CustomField < ::Stripe::StripeObject + class Dropdown < ::Stripe::StripeObject + class Option < ::Stripe::StripeObject # The label for the option, displayed to the customer. Up to 100 characters. attr_reader :label # The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters. @@ -317,7 +317,7 @@ module Stripe end end - class Label < Stripe::StripeObject + class Label < ::Stripe::StripeObject # Custom text for the label, displayed to the customer. Up to 50 characters. attr_reader :custom # The type of the label. @@ -332,7 +332,7 @@ module Stripe end end - class Numeric < Stripe::StripeObject + class Numeric < ::Stripe::StripeObject # The value that will pre-fill the field on the payment page. attr_reader :default_value # The maximum character length constraint for the customer's input. @@ -351,7 +351,7 @@ module Stripe end end - class Text < Stripe::StripeObject + class Text < ::Stripe::StripeObject # The value that will pre-fill the field on the payment page. attr_reader :default_value # The maximum character length constraint for the customer's input. @@ -393,8 +393,8 @@ module Stripe end end - class CustomText < Stripe::StripeObject - class AfterSubmit < Stripe::StripeObject + class CustomText < ::Stripe::StripeObject + class AfterSubmit < ::Stripe::StripeObject # Text may be up to 1200 characters in length. attr_reader :message @@ -407,7 +407,7 @@ module Stripe end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # Text may be up to 1200 characters in length. attr_reader :message @@ -420,7 +420,7 @@ module Stripe end end - class Submit < Stripe::StripeObject + class Submit < ::Stripe::StripeObject # Text may be up to 1200 characters in length. attr_reader :message @@ -433,7 +433,7 @@ module Stripe end end - class TermsOfServiceAcceptance < Stripe::StripeObject + class TermsOfServiceAcceptance < ::Stripe::StripeObject # Text may be up to 1200 characters in length. attr_reader :message @@ -468,8 +468,8 @@ module Stripe end end - class CustomerDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class CustomerDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -492,7 +492,7 @@ module Stripe end end - class TaxId < Stripe::StripeObject + class TaxId < ::Stripe::StripeObject # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` attr_reader :type # The value of the tax ID. @@ -533,7 +533,7 @@ module Stripe end end - class Discount < Stripe::StripeObject + class Discount < ::Stripe::StripeObject # Coupon attached to the Checkout Session. attr_reader :coupon # Promotion code attached to the Checkout Session. @@ -548,9 +548,9 @@ module Stripe end end - class InvoiceCreation < Stripe::StripeObject - class InvoiceData < Stripe::StripeObject - class CustomField < Stripe::StripeObject + class InvoiceCreation < ::Stripe::StripeObject + class InvoiceData < ::Stripe::StripeObject + class CustomField < ::Stripe::StripeObject # The name of the custom field. attr_reader :name # The value of the custom field. @@ -565,7 +565,7 @@ module Stripe end end - class Issuer < Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. attr_reader :account # Type of the account referenced. @@ -580,7 +580,7 @@ module Stripe end end - class RenderingOptions < Stripe::StripeObject + class RenderingOptions < ::Stripe::StripeObject # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. attr_reader :amount_tax_display # ID of the invoice rendering template to be used for the generated invoice. @@ -635,8 +635,8 @@ module Stripe end end - class NameCollection < Stripe::StripeObject - class Business < Stripe::StripeObject + class NameCollection < ::Stripe::StripeObject + class Business < ::Stripe::StripeObject # Indicates whether business name collection is enabled for the session attr_reader :enabled # Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`. @@ -651,7 +651,7 @@ module Stripe end end - class Individual < Stripe::StripeObject + class Individual < ::Stripe::StripeObject # Indicates whether individual name collection is enabled for the session attr_reader :enabled # Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`. @@ -679,8 +679,8 @@ module Stripe end end - class OptionalItem < Stripe::StripeObject - class AdjustableQuantity < Stripe::StripeObject + class OptionalItem < ::Stripe::StripeObject + class AdjustableQuantity < ::Stripe::StripeObject # Set to true if the quantity can be adjusted to any non-negative integer. attr_reader :enabled # The maximum quantity of this item the customer can purchase. By default this value is 99. You can specify a value up to 999999. @@ -712,7 +712,7 @@ module Stripe end end - class PaymentMethodConfigurationDetails < Stripe::StripeObject + class PaymentMethodConfigurationDetails < ::Stripe::StripeObject # ID of the payment method configuration used. attr_reader :id # ID of the parent payment method configuration used. @@ -727,9 +727,9 @@ module Stripe end end - class PaymentMethodOptions < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class PaymentMethodOptions < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # A URL for custom mandate text attr_reader :custom_mandate_url # List of Stripe products where this mandate can be selected automatically. Returned when the Session is in `setup` mode. @@ -775,7 +775,7 @@ module Stripe end end - class Affirm < Stripe::StripeObject + class Affirm < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -796,7 +796,7 @@ module Stripe end end - class AfterpayClearpay < Stripe::StripeObject + class AfterpayClearpay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -817,7 +817,7 @@ module Stripe end end - class Alipay < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -836,7 +836,7 @@ module Stripe end end - class Alma < Stripe::StripeObject + class Alma < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method @@ -849,7 +849,7 @@ module Stripe end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -870,7 +870,7 @@ module Stripe end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -891,8 +891,8 @@ module Stripe end end - class BacsDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. attr_reader :reference_prefix @@ -926,7 +926,7 @@ module Stripe end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -945,7 +945,7 @@ module Stripe end end - class Billie < Stripe::StripeObject + class Billie < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method @@ -958,7 +958,7 @@ module Stripe end end - class Boleto < Stripe::StripeObject + class Boleto < ::Stripe::StripeObject # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto voucher will expire on Wednesday at 23:59 America/Sao_Paulo time. attr_reader :expires_after_days # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -979,8 +979,8 @@ module Stripe end end - class Card < Stripe::StripeObject - class Installments < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Installments < ::Stripe::StripeObject # Indicates if installments are enabled attr_reader :enabled @@ -993,7 +993,7 @@ module Stripe end end - class Restrictions < Stripe::StripeObject + class Restrictions < ::Stripe::StripeObject # Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. attr_reader :brands_blocked @@ -1043,7 +1043,7 @@ module Stripe end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1064,9 +1064,9 @@ module Stripe end end - class CustomerBalance < Stripe::StripeObject - class BankTransfer < Stripe::StripeObject - class EuBankTransfer < Stripe::StripeObject + class CustomerBalance < ::Stripe::StripeObject + class BankTransfer < ::Stripe::StripeObject + class EuBankTransfer < ::Stripe::StripeObject # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. attr_reader :country @@ -1117,7 +1117,7 @@ module Stripe end end - class Eps < Stripe::StripeObject + class Eps < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1136,7 +1136,7 @@ module Stripe end end - class Fpx < Stripe::StripeObject + class Fpx < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1155,7 +1155,7 @@ module Stripe end end - class Giropay < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1174,7 +1174,7 @@ module Stripe end end - class Grabpay < Stripe::StripeObject + class Grabpay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1193,7 +1193,7 @@ module Stripe end end - class Ideal < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1212,7 +1212,7 @@ module Stripe end end - class KakaoPay < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1233,7 +1233,7 @@ module Stripe end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1254,7 +1254,7 @@ module Stripe end end - class Konbini < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject # The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. attr_reader :expires_after_days # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1275,7 +1275,7 @@ module Stripe end end - class KrCard < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1296,7 +1296,7 @@ module Stripe end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1317,7 +1317,7 @@ module Stripe end end - class Mobilepay < Stripe::StripeObject + class Mobilepay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1338,7 +1338,7 @@ module Stripe end end - class Multibanco < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1357,7 +1357,7 @@ module Stripe end end - class NaverPay < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1378,7 +1378,7 @@ module Stripe end end - class Oxxo < Stripe::StripeObject + class Oxxo < ::Stripe::StripeObject # The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. attr_reader :expires_after_days # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1399,7 +1399,7 @@ module Stripe end end - class P24 < Stripe::StripeObject + class P24 < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1418,7 +1418,7 @@ module Stripe end end - class Payco < Stripe::StripeObject + class Payco < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method @@ -1431,7 +1431,7 @@ module Stripe end end - class Paynow < Stripe::StripeObject + class Paynow < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1450,7 +1450,7 @@ module Stripe end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # Preferred locale of the PayPal checkout page that the customer is redirected to. @@ -1475,7 +1475,7 @@ module Stripe end end - class Pix < Stripe::StripeObject + class Pix < ::Stripe::StripeObject # Determines if the amount includes the IOF tax. attr_reader :amount_includes_iof # The number of seconds after which Pix payment will expire. @@ -1498,7 +1498,7 @@ module Stripe end end - class RevolutPay < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1519,7 +1519,7 @@ module Stripe end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method @@ -1532,7 +1532,7 @@ module Stripe end end - class Satispay < Stripe::StripeObject + class Satispay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method @@ -1545,8 +1545,8 @@ module Stripe end end - class SepaDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. attr_reader :reference_prefix @@ -1580,7 +1580,7 @@ module Stripe end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1599,7 +1599,7 @@ module Stripe end end - class Swish < Stripe::StripeObject + class Swish < ::Stripe::StripeObject # The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent. attr_reader :reference @@ -1612,9 +1612,28 @@ module Stripe end end - class UsBankAccount < Stripe::StripeObject - class FinancialConnections < Stripe::StripeObject - class Filters < Stripe::StripeObject + class Twint < ::Stripe::StripeObject + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + attr_reader :setup_future_usage + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class UsBankAccount < ::Stripe::StripeObject + class FinancialConnections < ::Stripe::StripeObject + class Filters < ::Stripe::StripeObject # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. attr_reader :account_subcategories @@ -1744,6 +1763,8 @@ module Stripe attr_reader :sofort # Attribute for field swish attr_reader :swish + # Attribute for field twint + attr_reader :twint # Attribute for field us_bank_account attr_reader :us_bank_account @@ -1788,6 +1809,7 @@ module Stripe sepa_debit: SepaDebit, sofort: Sofort, swish: Swish, + twint: Twint, us_bank_account: UsBankAccount, } end @@ -1797,7 +1819,7 @@ module Stripe end end - class Permissions < Stripe::StripeObject + class Permissions < ::Stripe::StripeObject # Determines which entity is allowed to update the shipping details. # # Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details. @@ -1814,7 +1836,7 @@ module Stripe end end - class PhoneNumberCollection < Stripe::StripeObject + class PhoneNumberCollection < ::Stripe::StripeObject # Indicates whether phone number collection is enabled for the session attr_reader :enabled @@ -1827,7 +1849,7 @@ module Stripe end end - class PresentmentDetails < Stripe::StripeObject + class PresentmentDetails < ::Stripe::StripeObject # Amount intended to be collected by this payment, denominated in `presentment_currency`. attr_reader :presentment_amount # Currency presented to the customer during payment. @@ -1842,7 +1864,7 @@ module Stripe end end - class SavedPaymentMethodOptions < Stripe::StripeObject + class SavedPaymentMethodOptions < ::Stripe::StripeObject # Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with ’allow_redisplay: ‘always’ are shown in Checkout. attr_reader :allow_redisplay_filters # Enable customers to choose if they wish to remove their saved payment methods. Disabled by default. @@ -1859,7 +1881,7 @@ module Stripe end end - class ShippingAddressCollection < Stripe::StripeObject + class ShippingAddressCollection < ::Stripe::StripeObject # An array of two-letter ISO country codes representing which countries Checkout should provide as options for # shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SY, UM, VI`. attr_reader :allowed_countries @@ -1873,8 +1895,8 @@ module Stripe end end - class ShippingCost < Stripe::StripeObject - class Tax < Stripe::StripeObject + class ShippingCost < ::Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. attr_reader :amount # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. @@ -1914,7 +1936,7 @@ module Stripe end end - class ShippingOption < Stripe::StripeObject + class ShippingOption < ::Stripe::StripeObject # A non-negative integer in cents representing how much to charge. attr_reader :shipping_amount # The shipping rate. @@ -1929,7 +1951,7 @@ module Stripe end end - class TaxIdCollection < Stripe::StripeObject + class TaxIdCollection < ::Stripe::StripeObject # Indicates whether tax ID collection is enabled for the session attr_reader :enabled # Indicates whether a tax ID is required on the payment page @@ -1944,9 +1966,9 @@ module Stripe end end - class TotalDetails < Stripe::StripeObject - class Breakdown < Stripe::StripeObject - class Discount < Stripe::StripeObject + class TotalDetails < ::Stripe::StripeObject + class Breakdown < ::Stripe::StripeObject + class Discount < ::Stripe::StripeObject # The amount discounted. attr_reader :amount # A discount represents the actual application of a [coupon](https://stripe.com/docs/api#coupons) or [promotion code](https://stripe.com/docs/api#promotion_codes). @@ -1964,7 +1986,7 @@ module Stripe end end - class Tax < Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. attr_reader :amount # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. @@ -2015,8 +2037,8 @@ module Stripe end end - class WalletOptions < Stripe::StripeObject - class Link < Stripe::StripeObject + class WalletOptions < ::Stripe::StripeObject + class Link < ::Stripe::StripeObject # Describes whether Checkout should display Link. Defaults to `auto`. attr_reader :display diff --git a/lib/stripe/resources/climate/order.rb b/lib/stripe/resources/climate/order.rb index be9b7cd3..0636d986 100644 --- a/lib/stripe/resources/climate/order.rb +++ b/lib/stripe/resources/climate/order.rb @@ -15,7 +15,7 @@ module Stripe "climate.order" end - class Beneficiary < Stripe::StripeObject + class Beneficiary < ::Stripe::StripeObject # Publicly displayable name for the end beneficiary of carbon removal. attr_reader :public_name @@ -28,8 +28,8 @@ module Stripe end end - class DeliveryDetail < Stripe::StripeObject - class Location < Stripe::StripeObject + class DeliveryDetail < ::Stripe::StripeObject + class Location < ::Stripe::StripeObject # The city where the supplier is located. attr_reader :city # Two-letter ISO code representing the country where the supplier is located. diff --git a/lib/stripe/resources/climate/product.rb b/lib/stripe/resources/climate/product.rb index d8344d38..6a60ef9e 100644 --- a/lib/stripe/resources/climate/product.rb +++ b/lib/stripe/resources/climate/product.rb @@ -13,7 +13,7 @@ module Stripe "climate.product" end - class CurrentPricesPerMetricTon < Stripe::StripeObject + class CurrentPricesPerMetricTon < ::Stripe::StripeObject # Fees for one metric ton of carbon removal in the currency's smallest unit. attr_reader :amount_fees # Subtotal for one metric ton of carbon removal (excluding fees) in the currency's smallest unit. diff --git a/lib/stripe/resources/climate/supplier.rb b/lib/stripe/resources/climate/supplier.rb index 939d034f..dccbe511 100644 --- a/lib/stripe/resources/climate/supplier.rb +++ b/lib/stripe/resources/climate/supplier.rb @@ -12,7 +12,7 @@ module Stripe "climate.supplier" end - class Location < Stripe::StripeObject + class Location < ::Stripe::StripeObject # The city where the supplier is located. attr_reader :city # Two-letter ISO code representing the country where the supplier is located. diff --git a/lib/stripe/resources/confirmation_token.rb b/lib/stripe/resources/confirmation_token.rb index 32847f3f..f93f0a3e 100644 --- a/lib/stripe/resources/confirmation_token.rb +++ b/lib/stripe/resources/confirmation_token.rb @@ -15,9 +15,9 @@ module Stripe "confirmation_token" end - class MandateData < Stripe::StripeObject - class CustomerAcceptance < Stripe::StripeObject - class Online < Stripe::StripeObject + class MandateData < ::Stripe::StripeObject + class CustomerAcceptance < ::Stripe::StripeObject + class Online < ::Stripe::StripeObject # The IP address from which the Mandate was accepted by the customer. attr_reader :ip_address # The user agent of the browser from which the Mandate was accepted by the customer. @@ -56,10 +56,10 @@ module Stripe end end - class PaymentMethodOptions < Stripe::StripeObject - class Card < Stripe::StripeObject - class Installments < Stripe::StripeObject - class Plan < Stripe::StripeObject + class PaymentMethodOptions < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Installments < ::Stripe::StripeObject + class Plan < ::Stripe::StripeObject # For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card. attr_reader :count # For `fixed_count` installment plans, this is the interval between installment payments your customer will make to their credit card. @@ -112,8 +112,8 @@ module Stripe end end - class PaymentMethodPreview < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject + class PaymentMethodPreview < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject # Name of the bank associated with the bank account. attr_reader :bank_name # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. @@ -134,7 +134,7 @@ module Stripe end end - class Affirm < Stripe::StripeObject + class Affirm < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -144,7 +144,7 @@ module Stripe end end - class AfterpayClearpay < Stripe::StripeObject + class AfterpayClearpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -154,7 +154,7 @@ module Stripe end end - class Alipay < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -164,7 +164,7 @@ module Stripe end end - class Alma < Stripe::StripeObject + class Alma < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -174,7 +174,7 @@ module Stripe end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -184,7 +184,7 @@ module Stripe end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject # Six-digit number identifying bank and branch associated with this bank account. attr_reader :bsb_number # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. @@ -201,7 +201,7 @@ module Stripe end end - class BacsDebit < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. attr_reader :fingerprint # Last four digits of the bank account number. @@ -218,7 +218,7 @@ module Stripe end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -228,7 +228,7 @@ module Stripe end end - class Billie < Stripe::StripeObject + class Billie < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -238,8 +238,8 @@ module Stripe end end - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -281,7 +281,7 @@ module Stripe end end - class Blik < Stripe::StripeObject + class Blik < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -291,7 +291,7 @@ module Stripe end end - class Boleto < Stripe::StripeObject + class Boleto < ::Stripe::StripeObject # Uniquely identifies the customer tax id (CNPJ or CPF) attr_reader :tax_id @@ -304,8 +304,8 @@ module Stripe end end - class Card < Stripe::StripeObject - class Checks < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Checks < ::Stripe::StripeObject # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. attr_reader :address_line1_check # If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. @@ -322,10 +322,10 @@ module Stripe end end - class GeneratedFrom < Stripe::StripeObject - class PaymentMethodDetails < Stripe::StripeObject - class CardPresent < Stripe::StripeObject - class Offline < Stripe::StripeObject + class GeneratedFrom < ::Stripe::StripeObject + class PaymentMethodDetails < ::Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject + class Offline < ::Stripe::StripeObject # Time at which the payment was collected while offline attr_reader :stored_at # The method used to process this payment method offline. Only deferred is allowed. @@ -340,7 +340,7 @@ module Stripe end end - class Receipt < Stripe::StripeObject + class Receipt < ::Stripe::StripeObject # The type of account being debited or credited attr_reader :account_type # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers. @@ -369,7 +369,7 @@ module Stripe end end - class Wallet < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. attr_reader :type @@ -471,7 +471,7 @@ module Stripe end end - class Networks < Stripe::StripeObject + class Networks < ::Stripe::StripeObject # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). attr_reader :available # The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card. @@ -486,7 +486,7 @@ module Stripe end end - class ThreeDSecureUsage < Stripe::StripeObject + class ThreeDSecureUsage < ::Stripe::StripeObject # Whether 3D Secure is supported on this card. attr_reader :supported @@ -499,8 +499,8 @@ module Stripe end end - class Wallet < Stripe::StripeObject - class AmexExpressCheckout < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject + class AmexExpressCheckout < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -510,7 +510,7 @@ module Stripe end end - class ApplePay < Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -520,7 +520,7 @@ module Stripe end end - class GooglePay < Stripe::StripeObject + class GooglePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -530,7 +530,7 @@ module Stripe end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -540,8 +540,8 @@ module Stripe end end - class Masterpass < Stripe::StripeObject - class BillingAddress < Stripe::StripeObject + class Masterpass < ::Stripe::StripeObject + class BillingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -564,7 +564,7 @@ module Stripe end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -607,7 +607,7 @@ module Stripe end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -617,8 +617,8 @@ module Stripe end end - class VisaCheckout < Stripe::StripeObject - class BillingAddress < Stripe::StripeObject + class VisaCheckout < ::Stripe::StripeObject + class BillingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -641,7 +641,7 @@ module Stripe end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -770,8 +770,8 @@ module Stripe end end - class CardPresent < Stripe::StripeObject - class Networks < Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject + class Networks < ::Stripe::StripeObject # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). attr_reader :available # The preferred network for the card. @@ -786,7 +786,7 @@ module Stripe end end - class Offline < Stripe::StripeObject + class Offline < ::Stripe::StripeObject # Time at which the payment was collected while offline attr_reader :stored_at # The method used to process this payment method offline. Only deferred is allowed. @@ -801,7 +801,7 @@ module Stripe end end - class Wallet < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. attr_reader :type @@ -859,7 +859,7 @@ module Stripe end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject # A unique and immutable identifier assigned by Cash App to every buyer. attr_reader :buyer_id # A public identifier for buyers using Cash App. @@ -874,7 +874,7 @@ module Stripe end end - class Crypto < Stripe::StripeObject + class Crypto < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -884,7 +884,7 @@ module Stripe end end - class CustomerBalance < Stripe::StripeObject + class CustomerBalance < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -894,7 +894,7 @@ module Stripe end end - class Eps < Stripe::StripeObject + class Eps < ::Stripe::StripeObject # The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. attr_reader :bank @@ -907,7 +907,7 @@ module Stripe end end - class Fpx < Stripe::StripeObject + class Fpx < ::Stripe::StripeObject # Account holder type, if provided. Can be one of `individual` or `company`. attr_reader :account_holder_type # The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`. @@ -922,7 +922,7 @@ module Stripe end end - class Giropay < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -932,7 +932,7 @@ module Stripe end end - class Grabpay < Stripe::StripeObject + class Grabpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -942,7 +942,7 @@ module Stripe end end - class Ideal < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject # The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. attr_reader :bank # The Bank Identifier Code of the customer's bank, if the bank was provided. @@ -957,8 +957,8 @@ module Stripe end end - class InteracPresent < Stripe::StripeObject - class Networks < Stripe::StripeObject + class InteracPresent < ::Stripe::StripeObject + class Networks < ::Stripe::StripeObject # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). attr_reader :available # The preferred network for the card. @@ -1012,7 +1012,7 @@ module Stripe end end - class KakaoPay < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1022,8 +1022,8 @@ module Stripe end end - class Klarna < Stripe::StripeObject - class Dob < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject + class Dob < ::Stripe::StripeObject # The day of birth, between 1 and 31. attr_reader :day # The month of birth, between 1 and 12. @@ -1051,7 +1051,7 @@ module Stripe end end - class Konbini < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1061,7 +1061,7 @@ module Stripe end end - class KrCard < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject # The local credit or debit card brand. attr_reader :brand # The last four digits of the card. This may not be present for American Express cards. @@ -1076,7 +1076,7 @@ module Stripe end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject # Account owner's email address. attr_reader :email # [Deprecated] This is a legacy parameter that no longer has any function. @@ -1091,7 +1091,7 @@ module Stripe end end - class MbWay < Stripe::StripeObject + class MbWay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1101,7 +1101,7 @@ module Stripe end end - class Mobilepay < Stripe::StripeObject + class Mobilepay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1111,7 +1111,7 @@ module Stripe end end - class Multibanco < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1121,7 +1121,7 @@ module Stripe end end - class NaverPay < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject # Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same. attr_reader :buyer_id # Whether to fund this transaction with Naver Pay points or a card. @@ -1136,7 +1136,7 @@ module Stripe end end - class NzBankAccount < Stripe::StripeObject + class NzBankAccount < ::Stripe::StripeObject # The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. attr_reader :account_holder_name # The numeric code for the bank account's bank. @@ -1159,7 +1159,7 @@ module Stripe end end - class Oxxo < Stripe::StripeObject + class Oxxo < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1169,7 +1169,7 @@ module Stripe end end - class P24 < Stripe::StripeObject + class P24 < ::Stripe::StripeObject # The customer's bank, if provided. attr_reader :bank @@ -1182,7 +1182,7 @@ module Stripe end end - class PayByBank < Stripe::StripeObject + class PayByBank < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1192,7 +1192,7 @@ module Stripe end end - class Payco < Stripe::StripeObject + class Payco < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1202,7 +1202,7 @@ module Stripe end end - class Paynow < Stripe::StripeObject + class Paynow < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1212,7 +1212,7 @@ module Stripe end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. attr_reader :country # Owner's email. Values are provided by PayPal directly @@ -1230,7 +1230,7 @@ module Stripe end end - class Pix < Stripe::StripeObject + class Pix < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1240,7 +1240,7 @@ module Stripe end end - class Promptpay < Stripe::StripeObject + class Promptpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1250,7 +1250,7 @@ module Stripe end end - class RevolutPay < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1260,7 +1260,7 @@ module Stripe end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1270,7 +1270,7 @@ module Stripe end end - class Satispay < Stripe::StripeObject + class Satispay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1280,8 +1280,8 @@ module Stripe end end - class SepaDebit < Stripe::StripeObject - class GeneratedFrom < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject + class GeneratedFrom < ::Stripe::StripeObject # The ID of the Charge that generated this PaymentMethod, if any. attr_reader :charge # The ID of the SetupAttempt that generated this PaymentMethod, if any. @@ -1317,7 +1317,7 @@ module Stripe end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject # Two-letter ISO code representing the country the bank account is located in. attr_reader :country @@ -1330,7 +1330,7 @@ module Stripe end end - class Swish < Stripe::StripeObject + class Swish < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1340,7 +1340,7 @@ module Stripe end end - class Twint < Stripe::StripeObject + class Twint < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1350,8 +1350,8 @@ module Stripe end end - class UsBankAccount < Stripe::StripeObject - class Networks < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject + class Networks < ::Stripe::StripeObject # The preferred network. attr_reader :preferred # All supported networks. @@ -1366,8 +1366,8 @@ module Stripe end end - class StatusDetails < Stripe::StripeObject - class Blocked < Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject + class Blocked < ::Stripe::StripeObject # The ACH network code that resulted in this block. attr_reader :network_code # The reason why this PaymentMethod's fingerprint has been blocked @@ -1420,7 +1420,7 @@ module Stripe end end - class WechatPay < Stripe::StripeObject + class WechatPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1430,7 +1430,7 @@ module Stripe end end - class Zip < Stripe::StripeObject + class Zip < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1612,8 +1612,8 @@ module Stripe end end - class Shipping < Stripe::StripeObject - class Address < Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). diff --git a/lib/stripe/resources/country_spec.rb b/lib/stripe/resources/country_spec.rb index dfaafeee..29eafb3e 100644 --- a/lib/stripe/resources/country_spec.rb +++ b/lib/stripe/resources/country_spec.rb @@ -16,8 +16,8 @@ module Stripe "country_spec" end - class VerificationFields < Stripe::StripeObject - class Company < Stripe::StripeObject + class VerificationFields < ::Stripe::StripeObject + class Company < ::Stripe::StripeObject # Additional fields which are only required for some users. attr_reader :additional # Fields which every account must eventually provide. @@ -32,7 +32,7 @@ module Stripe end end - class Individual < Stripe::StripeObject + class Individual < ::Stripe::StripeObject # Additional fields which are only required for some users. attr_reader :additional # Fields which every account must eventually provide. diff --git a/lib/stripe/resources/coupon.rb b/lib/stripe/resources/coupon.rb index 0f198109..2977d74b 100644 --- a/lib/stripe/resources/coupon.rb +++ b/lib/stripe/resources/coupon.rb @@ -16,7 +16,7 @@ module Stripe "coupon" end - class AppliesTo < Stripe::StripeObject + class AppliesTo < ::Stripe::StripeObject # A list of product IDs this coupon applies to attr_reader :products @@ -29,7 +29,7 @@ module Stripe end end - class CurrencyOptions < Stripe::StripeObject + class CurrencyOptions < ::Stripe::StripeObject # Amount (in the `currency` specified) that will be taken off the subtotal of any invoices for this customer. attr_reader :amount_off diff --git a/lib/stripe/resources/credit_note.rb b/lib/stripe/resources/credit_note.rb index ab3218eb..a66fff96 100644 --- a/lib/stripe/resources/credit_note.rb +++ b/lib/stripe/resources/credit_note.rb @@ -15,7 +15,7 @@ module Stripe "credit_note" end - class DiscountAmount < Stripe::StripeObject + class DiscountAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the discount. attr_reader :amount # The discount that was applied to get this discount amount. @@ -30,7 +30,7 @@ module Stripe end end - class PretaxCreditAmount < Stripe::StripeObject + class PretaxCreditAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the pretax credit amount. attr_reader :amount # The credit balance transaction that was applied to get this pretax credit amount. @@ -49,14 +49,32 @@ module Stripe end end - class Refund < Stripe::StripeObject + class Refund < ::Stripe::StripeObject + class PaymentRecordRefund < ::Stripe::StripeObject + # ID of the payment record. + attr_reader :payment_record + # ID of the refund group. + attr_reader :refund_group + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # Amount of the refund that applies to this credit note, in cents (or local equivalent). attr_reader :amount_refunded + # The PaymentRecord refund details associated with this credit note refund. + attr_reader :payment_record_refund # ID of the refund. attr_reader :refund + # Type of the refund, one of `refund` or `payment_record_refund`. + attr_reader :type def self.inner_class_types - @inner_class_types = {} + @inner_class_types = { payment_record_refund: PaymentRecordRefund } end def self.field_remappings @@ -64,8 +82,8 @@ module Stripe end end - class ShippingCost < Stripe::StripeObject - class Tax < Stripe::StripeObject + class ShippingCost < ::Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. attr_reader :amount # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. @@ -105,8 +123,8 @@ module Stripe end end - class TotalTax < Stripe::StripeObject - class TaxRateDetails < Stripe::StripeObject + class TotalTax < ::Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject # Attribute for field tax_rate attr_reader :tax_rate diff --git a/lib/stripe/resources/credit_note_line_item.rb b/lib/stripe/resources/credit_note_line_item.rb index 8bb9e44e..8e502bbc 100644 --- a/lib/stripe/resources/credit_note_line_item.rb +++ b/lib/stripe/resources/credit_note_line_item.rb @@ -9,7 +9,7 @@ module Stripe "credit_note_line_item" end - class DiscountAmount < Stripe::StripeObject + class DiscountAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the discount. attr_reader :amount # The discount that was applied to get this discount amount. @@ -24,7 +24,7 @@ module Stripe end end - class PretaxCreditAmount < Stripe::StripeObject + class PretaxCreditAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the pretax credit amount. attr_reader :amount # The credit balance transaction that was applied to get this pretax credit amount. @@ -43,8 +43,8 @@ module Stripe end end - class Tax < Stripe::StripeObject - class TaxRateDetails < Stripe::StripeObject + class Tax < ::Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject # Attribute for field tax_rate attr_reader :tax_rate diff --git a/lib/stripe/resources/customer.rb b/lib/stripe/resources/customer.rb index a0ca54a3..2a7dfb0e 100644 --- a/lib/stripe/resources/customer.rb +++ b/lib/stripe/resources/customer.rb @@ -22,7 +22,7 @@ module Stripe nested_resource_class_methods :source, operations: %i[create retrieve update delete list] nested_resource_class_methods :tax_id, operations: %i[create retrieve delete list] - class Address < Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -45,8 +45,8 @@ module Stripe end end - class InvoiceSettings < Stripe::StripeObject - class CustomField < Stripe::StripeObject + class InvoiceSettings < ::Stripe::StripeObject + class CustomField < ::Stripe::StripeObject # The name of the custom field. attr_reader :name # The value of the custom field. @@ -61,7 +61,7 @@ module Stripe end end - class RenderingOptions < Stripe::StripeObject + class RenderingOptions < ::Stripe::StripeObject # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. attr_reader :amount_tax_display # ID of the invoice rendering template to be used for this customer's invoices. If set, the template will be used on all invoices for this customer unless a template is set directly on the invoice. @@ -93,8 +93,8 @@ module Stripe end end - class Shipping < Stripe::StripeObject - class Address < Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -136,8 +136,8 @@ module Stripe end end - class Tax < Stripe::StripeObject - class Location < Stripe::StripeObject + class Tax < ::Stripe::StripeObject + class Location < ::Stripe::StripeObject # The identified tax country of the customer. attr_reader :country # The data source used to infer the customer's location. @@ -159,6 +159,8 @@ module Stripe attr_reader :ip_address # The identified tax location of the customer. attr_reader :location + # The tax calculation provider used for location resolution. Defaults to `stripe` when not using a [third-party provider](/tax/third-party-apps). + attr_reader :provider def self.inner_class_types @inner_class_types = { location: Location } diff --git a/lib/stripe/resources/customer_cash_balance_transaction.rb b/lib/stripe/resources/customer_cash_balance_transaction.rb index 672a4390..c53c36e4 100644 --- a/lib/stripe/resources/customer_cash_balance_transaction.rb +++ b/lib/stripe/resources/customer_cash_balance_transaction.rb @@ -12,7 +12,7 @@ module Stripe "customer_cash_balance_transaction" end - class AdjustedForOverdraft < Stripe::StripeObject + class AdjustedForOverdraft < ::Stripe::StripeObject # The [Balance Transaction](https://stripe.com/docs/api/balance_transactions/object) that corresponds to funds taken out of your Stripe balance. attr_reader :balance_transaction # The [Cash Balance Transaction](https://stripe.com/docs/api/cash_balance_transactions/object) that brought the customer balance negative, triggering the clawback of funds. @@ -27,7 +27,7 @@ module Stripe end end - class AppliedToPayment < Stripe::StripeObject + class AppliedToPayment < ::Stripe::StripeObject # The [Payment Intent](https://stripe.com/docs/api/payment_intents/object) that funds were applied to. attr_reader :payment_intent @@ -40,9 +40,9 @@ module Stripe end end - class Funded < Stripe::StripeObject - class BankTransfer < Stripe::StripeObject - class EuBankTransfer < Stripe::StripeObject + class Funded < ::Stripe::StripeObject + class BankTransfer < ::Stripe::StripeObject + class EuBankTransfer < ::Stripe::StripeObject # The BIC of the bank of the sender of the funding. attr_reader :bic # The last 4 digits of the IBAN of the sender of the funding. @@ -59,7 +59,7 @@ module Stripe end end - class GbBankTransfer < Stripe::StripeObject + class GbBankTransfer < ::Stripe::StripeObject # The last 4 digits of the account number of the sender of the funding. attr_reader :account_number_last4 # The full name of the sender, as supplied by the sending bank. @@ -76,7 +76,7 @@ module Stripe end end - class JpBankTransfer < Stripe::StripeObject + class JpBankTransfer < ::Stripe::StripeObject # The name of the bank of the sender of the funding. attr_reader :sender_bank # The name of the bank branch of the sender of the funding. @@ -93,7 +93,7 @@ module Stripe end end - class UsBankTransfer < Stripe::StripeObject + class UsBankTransfer < ::Stripe::StripeObject # The banking network used for this funding. attr_reader :network # The full name of the sender, as supplied by the sending bank. @@ -145,7 +145,7 @@ module Stripe end end - class RefundedFromPayment < Stripe::StripeObject + class RefundedFromPayment < ::Stripe::StripeObject # The [Refund](https://stripe.com/docs/api/refunds/object) that moved these funds into the customer's cash balance. attr_reader :refund @@ -158,7 +158,7 @@ module Stripe end end - class TransferredToBalance < Stripe::StripeObject + class TransferredToBalance < ::Stripe::StripeObject # The [Balance Transaction](https://stripe.com/docs/api/balance_transactions/object) that corresponds to funds transferred to your Stripe balance. attr_reader :balance_transaction @@ -171,7 +171,7 @@ module Stripe end end - class UnappliedFromPayment < Stripe::StripeObject + class UnappliedFromPayment < ::Stripe::StripeObject # The [Payment Intent](https://stripe.com/docs/api/payment_intents/object) that funds were unapplied from. attr_reader :payment_intent diff --git a/lib/stripe/resources/customer_session.rb b/lib/stripe/resources/customer_session.rb index 618c8749..420209f4 100644 --- a/lib/stripe/resources/customer_session.rb +++ b/lib/stripe/resources/customer_session.rb @@ -16,8 +16,8 @@ module Stripe "customer_session" end - class Components < Stripe::StripeObject - class BuyButton < Stripe::StripeObject + class Components < ::Stripe::StripeObject + class BuyButton < ::Stripe::StripeObject # Whether the buy button is enabled. attr_reader :enabled @@ -30,8 +30,84 @@ module Stripe end end - class PaymentElement < Stripe::StripeObject - class Features < Stripe::StripeObject + class CustomerSheet < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject + # A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the customer sheet displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list. + # + # If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"]. + attr_reader :payment_method_allow_redisplay_filters + # Controls whether the customer sheet displays the option to remove a saved payment method." + # + # Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods). + attr_reader :payment_method_remove + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Whether the customer sheet is enabled. + attr_reader :enabled + # This hash defines whether the customer sheet supports certain features. + attr_reader :features + + def self.inner_class_types + @inner_class_types = { features: Features } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class MobilePaymentElement < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject + # A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the mobile payment element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list. + # + # If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"]. + attr_reader :payment_method_allow_redisplay_filters + # Controls whether or not the mobile payment element shows saved payment methods. + attr_reader :payment_method_redisplay + # Controls whether the mobile payment element displays the option to remove a saved payment method." + # + # Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods). + attr_reader :payment_method_remove + # Controls whether the mobile payment element displays a checkbox offering to save a new payment method. + # + # If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`. + attr_reader :payment_method_save + # Allows overriding the value of allow_override when saving a new payment method when payment_method_save is set to disabled. Use values: "always", "limited", or "unspecified". + # + # If not specified, defaults to `nil` (no override value). + attr_reader :payment_method_save_allow_redisplay_override + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Whether the mobile payment element is enabled. + attr_reader :enabled + # This hash defines whether the mobile payment element supports certain features. + attr_reader :features + + def self.inner_class_types + @inner_class_types = { features: Features } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class PaymentElement < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the Payment Element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list. # # If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"]. @@ -75,7 +151,7 @@ module Stripe end end - class PricingTable < Stripe::StripeObject + class PricingTable < ::Stripe::StripeObject # Whether the pricing table is enabled. attr_reader :enabled @@ -89,6 +165,10 @@ module Stripe end # This hash contains whether the buy button is enabled. attr_reader :buy_button + # This hash contains whether the customer sheet is enabled and the features it supports. + attr_reader :customer_sheet + # This hash contains whether the mobile payment element is enabled and the features it supports. + attr_reader :mobile_payment_element # This hash contains whether the Payment Element is enabled and the features it supports. attr_reader :payment_element # This hash contains whether the pricing table is enabled. @@ -97,6 +177,8 @@ module Stripe def self.inner_class_types @inner_class_types = { buy_button: BuyButton, + customer_sheet: CustomerSheet, + mobile_payment_element: MobilePaymentElement, payment_element: PaymentElement, pricing_table: PricingTable, } diff --git a/lib/stripe/resources/discount.rb b/lib/stripe/resources/discount.rb index e6194184..411bb72c 100644 --- a/lib/stripe/resources/discount.rb +++ b/lib/stripe/resources/discount.rb @@ -12,7 +12,7 @@ module Stripe "discount" end - class Source < Stripe::StripeObject + class Source < ::Stripe::StripeObject # The coupon that was redeemed to create this discount. attr_reader :coupon # The source type of the discount. diff --git a/lib/stripe/resources/dispute.rb b/lib/stripe/resources/dispute.rb index 275186b5..6908c9b3 100644 --- a/lib/stripe/resources/dispute.rb +++ b/lib/stripe/resources/dispute.rb @@ -16,11 +16,11 @@ module Stripe "dispute" end - class Evidence < Stripe::StripeObject - class EnhancedEvidence < Stripe::StripeObject - class VisaCompellingEvidence3 < Stripe::StripeObject - class DisputedTransaction < Stripe::StripeObject - class ShippingAddress < Stripe::StripeObject + class Evidence < ::Stripe::StripeObject + class EnhancedEvidence < ::Stripe::StripeObject + class VisaCompellingEvidence3 < ::Stripe::StripeObject + class DisputedTransaction < ::Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -68,8 +68,8 @@ module Stripe end end - class PriorUndisputedTransaction < Stripe::StripeObject - class ShippingAddress < Stripe::StripeObject + class PriorUndisputedTransaction < ::Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -133,7 +133,7 @@ module Stripe end end - class VisaCompliance < Stripe::StripeObject + class VisaCompliance < ::Stripe::StripeObject # A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute. attr_reader :fee_acknowledged @@ -227,9 +227,9 @@ module Stripe end end - class EvidenceDetails < Stripe::StripeObject - class EnhancedEligibility < Stripe::StripeObject - class VisaCompellingEvidence3 < Stripe::StripeObject + class EvidenceDetails < ::Stripe::StripeObject + class EnhancedEligibility < ::Stripe::StripeObject + class VisaCompellingEvidence3 < ::Stripe::StripeObject # List of actions required to qualify dispute for Visa Compelling Evidence 3.0 evidence submission. attr_reader :required_actions # Visa Compelling Evidence 3.0 eligibility status. @@ -244,7 +244,7 @@ module Stripe end end - class VisaCompliance < Stripe::StripeObject + class VisaCompliance < ::Stripe::StripeObject # Visa compliance eligibility status. attr_reader :status @@ -292,8 +292,8 @@ module Stripe end end - class PaymentMethodDetails < Stripe::StripeObject - class AmazonPay < Stripe::StripeObject + class PaymentMethodDetails < ::Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject # The AmazonPay dispute type, chargeback or claim attr_reader :dispute_type @@ -306,7 +306,7 @@ module Stripe end end - class Card < Stripe::StripeObject + class Card < ::Stripe::StripeObject # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. attr_reader :brand # The type of dispute opened. Different case types may have varying fees and financial impact. @@ -323,7 +323,7 @@ module Stripe end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject # Chargeback loss reason mapped by Stripe from Klarna's chargeback loss reason attr_reader :chargeback_loss_reason_code # The reason for the dispute as defined by Klarna @@ -338,7 +338,7 @@ module Stripe end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # The ID of the dispute in PayPal. attr_reader :case_id # The reason for the dispute as defined by PayPal diff --git a/lib/stripe/resources/event.rb b/lib/stripe/resources/event.rb index 7519906f..b150b844 100644 --- a/lib/stripe/resources/event.rb +++ b/lib/stripe/resources/event.rb @@ -28,7 +28,7 @@ module Stripe "event" end - class Data < Stripe::StripeObject + class Data < ::Stripe::StripeObject # Object containing the API resource relevant to the event. For example, an `invoice.created` event will have a full [invoice object](https://stripe.com/docs/api#invoice_object) as the value of the object key. attr_reader :object # Object containing the names of the updated attributes and their values prior to the event (only included in events of type `*.updated`). If an array attribute has any updated elements, this object contains the entire array. In Stripe API versions 2017-04-06 or earlier, an updated array attribute in this object includes only the updated array elements. @@ -43,7 +43,7 @@ module Stripe end end - class Request < Stripe::StripeObject + class Request < ::Stripe::StripeObject # ID of the API request that caused the event. If null, the event was automatic (e.g., Stripe's automatic subscription handling). Request logs are available in the [dashboard](https://dashboard.stripe.com/logs), but currently not in the API. attr_reader :id # The idempotency key transmitted during the request, if any. *Note: This property is populated only for events on or after May 23, 2017*. diff --git a/lib/stripe/resources/financial_connections/account.rb b/lib/stripe/resources/financial_connections/account.rb index 0bb44b4a..a4da9a94 100644 --- a/lib/stripe/resources/financial_connections/account.rb +++ b/lib/stripe/resources/financial_connections/account.rb @@ -12,7 +12,7 @@ module Stripe "financial_connections.account" end - class AccountHolder < Stripe::StripeObject + class AccountHolder < ::Stripe::StripeObject # The ID of the Stripe account this account belongs to. Should only be present if `account_holder.type` is `account`. attr_reader :account # ID of the Stripe customer this account belongs to. Present if and only if `account_holder.type` is `customer`. @@ -29,8 +29,8 @@ module Stripe end end - class Balance < Stripe::StripeObject - class Cash < Stripe::StripeObject + class Balance < ::Stripe::StripeObject + class Cash < ::Stripe::StripeObject # The funds available to the account holder. Typically this is the current balance after subtracting any outbound pending transactions and adding any inbound pending transactions. # # Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. @@ -47,7 +47,7 @@ module Stripe end end - class Credit < Stripe::StripeObject + class Credit < ::Stripe::StripeObject # The credit that has been used by the account holder. # # Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. @@ -87,7 +87,7 @@ module Stripe end end - class BalanceRefresh < Stripe::StripeObject + class BalanceRefresh < ::Stripe::StripeObject # The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch. attr_reader :last_attempted_at # Time at which the next balance refresh can be initiated. This value will be `null` when `status` is `pending`. Measured in seconds since the Unix epoch. @@ -104,7 +104,7 @@ module Stripe end end - class OwnershipRefresh < Stripe::StripeObject + class OwnershipRefresh < ::Stripe::StripeObject # The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch. attr_reader :last_attempted_at # Time at which the next ownership refresh can be initiated. This value will be `null` when `status` is `pending`. Measured in seconds since the Unix epoch. @@ -121,7 +121,7 @@ module Stripe end end - class TransactionRefresh < Stripe::StripeObject + class TransactionRefresh < ::Stripe::StripeObject # Unique identifier for the object. attr_reader :id # The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch. @@ -261,7 +261,7 @@ module Stripe ) end - # Subscribes to periodic refreshes of data associated with a Financial Connections Account. + # Subscribes to periodic refreshes of data associated with a Financial Connections Account. When the account status is active, data is typically refreshed once a day. def subscribe(params = {}, opts = {}) request_stripe_object( method: :post, @@ -271,7 +271,7 @@ module Stripe ) end - # Subscribes to periodic refreshes of data associated with a Financial Connections Account. + # Subscribes to periodic refreshes of data associated with a Financial Connections Account. When the account status is active, data is typically refreshed once a day. def self.subscribe(account, params = {}, opts = {}) request_stripe_object( method: :post, diff --git a/lib/stripe/resources/financial_connections/session.rb b/lib/stripe/resources/financial_connections/session.rb index 471edb0e..1047103c 100644 --- a/lib/stripe/resources/financial_connections/session.rb +++ b/lib/stripe/resources/financial_connections/session.rb @@ -12,7 +12,7 @@ module Stripe "financial_connections.session" end - class AccountHolder < Stripe::StripeObject + class AccountHolder < ::Stripe::StripeObject # The ID of the Stripe account this account belongs to. Should only be present if `account_holder.type` is `account`. attr_reader :account # ID of the Stripe customer this account belongs to. Present if and only if `account_holder.type` is `customer`. @@ -29,7 +29,7 @@ module Stripe end end - class Filters < Stripe::StripeObject + class Filters < ::Stripe::StripeObject # Restricts the Session to subcategories of accounts that can be linked. Valid subcategories are: `checking`, `savings`, `mortgage`, `line_of_credit`, `credit_card`. attr_reader :account_subcategories # List of countries from which to filter accounts. diff --git a/lib/stripe/resources/financial_connections/transaction.rb b/lib/stripe/resources/financial_connections/transaction.rb index e15d976f..0c286331 100644 --- a/lib/stripe/resources/financial_connections/transaction.rb +++ b/lib/stripe/resources/financial_connections/transaction.rb @@ -12,7 +12,7 @@ module Stripe "financial_connections.transaction" end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # Time at which this transaction posted. Measured in seconds since the Unix epoch. attr_reader :posted_at # Time at which this transaction was voided. Measured in seconds since the Unix epoch. diff --git a/lib/stripe/resources/forwarding/request.rb b/lib/stripe/resources/forwarding/request.rb index 5e83f906..0b941314 100644 --- a/lib/stripe/resources/forwarding/request.rb +++ b/lib/stripe/resources/forwarding/request.rb @@ -28,7 +28,7 @@ module Stripe "forwarding.request" end - class RequestContext < Stripe::StripeObject + class RequestContext < ::Stripe::StripeObject # The time it took in milliseconds for the destination endpoint to respond. attr_reader :destination_duration # The IP address of the destination. @@ -43,8 +43,8 @@ module Stripe end end - class RequestDetails < Stripe::StripeObject - class Header < Stripe::StripeObject + class RequestDetails < ::Stripe::StripeObject + class Header < ::Stripe::StripeObject # The header name. attr_reader :name # The header value. @@ -74,8 +74,8 @@ module Stripe end end - class ResponseDetails < Stripe::StripeObject - class Header < Stripe::StripeObject + class ResponseDetails < ::Stripe::StripeObject + class Header < ::Stripe::StripeObject # The header name. attr_reader :name # The header value. diff --git a/lib/stripe/resources/funding_instructions.rb b/lib/stripe/resources/funding_instructions.rb index 034d54a1..716834be 100644 --- a/lib/stripe/resources/funding_instructions.rb +++ b/lib/stripe/resources/funding_instructions.rb @@ -13,10 +13,10 @@ module Stripe "funding_instructions" end - class BankTransfer < Stripe::StripeObject - class FinancialAddress < Stripe::StripeObject - class Aba < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class BankTransfer < ::Stripe::StripeObject + class FinancialAddress < ::Stripe::StripeObject + class Aba < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -39,7 +39,7 @@ module Stripe end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -88,8 +88,8 @@ module Stripe end end - class Iban < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Iban < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -112,7 +112,7 @@ module Stripe end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -159,8 +159,8 @@ module Stripe end end - class SortCode < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class SortCode < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -183,7 +183,7 @@ module Stripe end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -228,8 +228,8 @@ module Stripe end end - class Spei < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Spei < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -252,7 +252,7 @@ module Stripe end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -299,8 +299,8 @@ module Stripe end end - class Swift < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Swift < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -323,7 +323,7 @@ module Stripe end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -372,8 +372,8 @@ module Stripe end end - class Zengin < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Zengin < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -396,7 +396,7 @@ module Stripe end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). diff --git a/lib/stripe/resources/identity/verification_report.rb b/lib/stripe/resources/identity/verification_report.rb index 0d0dea77..50b2c173 100644 --- a/lib/stripe/resources/identity/verification_report.rb +++ b/lib/stripe/resources/identity/verification_report.rb @@ -22,8 +22,8 @@ module Stripe "identity.verification_report" end - class Document < Stripe::StripeObject - class Address < Stripe::StripeObject + class Document < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -46,7 +46,7 @@ module Stripe end end - class Dob < Stripe::StripeObject + class Dob < ::Stripe::StripeObject # Numerical day between 1 and 31. attr_reader :day # Numerical month between 1 and 12. @@ -63,7 +63,7 @@ module Stripe end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # A short machine-readable string giving the reason for the verification failure. attr_reader :code # A human-readable message giving the reason for the failure. These messages can be shown to your users. @@ -78,7 +78,7 @@ module Stripe end end - class ExpirationDate < Stripe::StripeObject + class ExpirationDate < ::Stripe::StripeObject # Numerical day between 1 and 31. attr_reader :day # Numerical month between 1 and 12. @@ -95,7 +95,7 @@ module Stripe end end - class IssuedDate < Stripe::StripeObject + class IssuedDate < ::Stripe::StripeObject # Numerical day between 1 and 31. attr_reader :day # Numerical month between 1 and 12. @@ -157,8 +157,8 @@ module Stripe end end - class Email < Stripe::StripeObject - class Error < Stripe::StripeObject + class Email < ::Stripe::StripeObject + class Error < ::Stripe::StripeObject # A short machine-readable string giving the reason for the verification failure. attr_reader :code # A human-readable message giving the reason for the failure. These messages can be shown to your users. @@ -188,8 +188,8 @@ module Stripe end end - class IdNumber < Stripe::StripeObject - class Dob < Stripe::StripeObject + class IdNumber < ::Stripe::StripeObject + class Dob < ::Stripe::StripeObject # Numerical day between 1 and 31. attr_reader :day # Numerical month between 1 and 12. @@ -206,7 +206,7 @@ module Stripe end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # A short machine-readable string giving the reason for the verification failure. attr_reader :code # A human-readable message giving the reason for the failure. These messages can be shown to your users. @@ -244,8 +244,8 @@ module Stripe end end - class Options < Stripe::StripeObject - class Document < Stripe::StripeObject + class Options < ::Stripe::StripeObject + class Document < ::Stripe::StripeObject # Array of strings of allowed identity document types. If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code. attr_reader :allowed_types # Collect an ID number and perform an [ID number check](https://stripe.com/docs/identity/verification-checks?type=id-number) with the document’s extracted name and date of birth. @@ -264,7 +264,7 @@ module Stripe end end - class IdNumber < Stripe::StripeObject + class IdNumber < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -287,8 +287,8 @@ module Stripe end end - class Phone < Stripe::StripeObject - class Error < Stripe::StripeObject + class Phone < ::Stripe::StripeObject + class Error < ::Stripe::StripeObject # A short machine-readable string giving the reason for the verification failure. attr_reader :code # A human-readable message giving the reason for the failure. These messages can be shown to your users. @@ -318,8 +318,8 @@ module Stripe end end - class Selfie < Stripe::StripeObject - class Error < Stripe::StripeObject + class Selfie < ::Stripe::StripeObject + class Error < ::Stripe::StripeObject # A short machine-readable string giving the reason for the verification failure. attr_reader :code # A human-readable message giving the reason for the failure. These messages can be shown to your users. diff --git a/lib/stripe/resources/identity/verification_session.rb b/lib/stripe/resources/identity/verification_session.rb index c7961702..523357b4 100644 --- a/lib/stripe/resources/identity/verification_session.rb +++ b/lib/stripe/resources/identity/verification_session.rb @@ -24,7 +24,7 @@ module Stripe "identity.verification_session" end - class LastError < Stripe::StripeObject + class LastError < ::Stripe::StripeObject # A short machine-readable string giving the reason for the verification or user-session failure. attr_reader :code # A message that explains the reason for verification or user-session failure. @@ -39,8 +39,8 @@ module Stripe end end - class Options < Stripe::StripeObject - class Document < Stripe::StripeObject + class Options < ::Stripe::StripeObject + class Document < ::Stripe::StripeObject # Array of strings of allowed identity document types. If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code. attr_reader :allowed_types # Collect an ID number and perform an [ID number check](https://stripe.com/docs/identity/verification-checks?type=id-number) with the document’s extracted name and date of birth. @@ -59,7 +59,7 @@ module Stripe end end - class Email < Stripe::StripeObject + class Email < ::Stripe::StripeObject # Request one time password verification of `provided_details.email`. attr_reader :require_verification @@ -72,7 +72,7 @@ module Stripe end end - class IdNumber < Stripe::StripeObject + class IdNumber < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -82,7 +82,7 @@ module Stripe end end - class Matching < Stripe::StripeObject + class Matching < ::Stripe::StripeObject # Strictness of the DOB matching policy to apply. attr_reader :dob # Strictness of the name matching policy to apply. @@ -97,7 +97,7 @@ module Stripe end end - class Phone < Stripe::StripeObject + class Phone < ::Stripe::StripeObject # Request one time password verification of `provided_details.phone`. attr_reader :require_verification @@ -135,7 +135,7 @@ module Stripe end end - class ProvidedDetails < Stripe::StripeObject + class ProvidedDetails < ::Stripe::StripeObject # Email of user being verified attr_reader :email # Phone number of user being verified @@ -150,7 +150,7 @@ module Stripe end end - class Redaction < Stripe::StripeObject + class Redaction < ::Stripe::StripeObject # Indicates whether this object and its related objects have been redacted or not. attr_reader :status @@ -163,7 +163,7 @@ module Stripe end end - class RelatedPerson < Stripe::StripeObject + class RelatedPerson < ::Stripe::StripeObject # Token referencing the associated Account of the related Person resource. attr_reader :account # Token referencing the related Person resource. @@ -178,8 +178,8 @@ module Stripe end end - class VerifiedOutputs < Stripe::StripeObject - class Address < Stripe::StripeObject + class VerifiedOutputs < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -202,7 +202,7 @@ module Stripe end end - class Dob < Stripe::StripeObject + class Dob < ::Stripe::StripeObject # Numerical day between 1 and 31. attr_reader :day # Numerical month between 1 and 12. diff --git a/lib/stripe/resources/invoice.rb b/lib/stripe/resources/invoice.rb index a4f8b40f..49e866d4 100644 --- a/lib/stripe/resources/invoice.rb +++ b/lib/stripe/resources/invoice.rb @@ -49,8 +49,8 @@ module Stripe nested_resource_class_methods :line, operations: %i[list] - class AutomaticTax < Stripe::StripeObject - class Liability < Stripe::StripeObject + class AutomaticTax < ::Stripe::StripeObject + class Liability < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. attr_reader :account # Type of the account referenced. @@ -84,7 +84,7 @@ module Stripe end end - class ConfirmationSecret < Stripe::StripeObject + class ConfirmationSecret < ::Stripe::StripeObject # The client_secret of the payment that Stripe creates for the invoice after finalization. attr_reader :client_secret # The type of client_secret. Currently this is always payment_intent, referencing the default payment_intent that Stripe creates during invoice finalization @@ -99,7 +99,7 @@ module Stripe end end - class CustomField < Stripe::StripeObject + class CustomField < ::Stripe::StripeObject # The name of the custom field. attr_reader :name # The value of the custom field. @@ -114,7 +114,7 @@ module Stripe end end - class CustomerAddress < Stripe::StripeObject + class CustomerAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -137,8 +137,8 @@ module Stripe end end - class CustomerShipping < Stripe::StripeObject - class Address < Stripe::StripeObject + class CustomerShipping < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -180,7 +180,7 @@ module Stripe end end - class CustomerTaxId < Stripe::StripeObject + class CustomerTaxId < ::Stripe::StripeObject # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` attr_reader :type # The value of the tax ID. @@ -195,7 +195,7 @@ module Stripe end end - class FromInvoice < Stripe::StripeObject + class FromInvoice < ::Stripe::StripeObject # The relation between this invoice and the cloned invoice attr_reader :action # The invoice that was cloned. @@ -210,7 +210,7 @@ module Stripe end end - class Issuer < Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. attr_reader :account # Type of the account referenced. @@ -225,7 +225,7 @@ module Stripe end end - class LastFinalizationError < Stripe::StripeObject + class LastFinalizationError < ::Stripe::StripeObject # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one. attr_reader :advice_code # For card errors, the ID of the failed charge. @@ -302,8 +302,8 @@ module Stripe end end - class Parent < Stripe::StripeObject - class QuoteDetails < Stripe::StripeObject + class Parent < ::Stripe::StripeObject + class QuoteDetails < ::Stripe::StripeObject # The quote that generated this invoice attr_reader :quote @@ -316,7 +316,7 @@ module Stripe end end - class SubscriptionDetails < Stripe::StripeObject + class SubscriptionDetails < ::Stripe::StripeObject # Set of [key-value pairs](https://stripe.com/docs/api/metadata) defined as subscription metadata when an invoice is created. Becomes an immutable snapshot of the subscription metadata at the time of invoice finalization. # *Note: This attribute is populated only for invoices created on or after June 29, 2023.* attr_reader :metadata @@ -352,10 +352,10 @@ module Stripe end end - class PaymentSettings < Stripe::StripeObject - class PaymentMethodOptions < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class PaymentSettings < ::Stripe::StripeObject + class PaymentMethodOptions < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Transaction type of the mandate. attr_reader :transaction_type @@ -381,7 +381,7 @@ module Stripe end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject # Preferred language of the Bancontact authorization page that the customer is redirected to. attr_reader :preferred_language @@ -394,8 +394,8 @@ module Stripe end end - class Card < Stripe::StripeObject - class Installments < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Installments < ::Stripe::StripeObject # Whether Installments are enabled for this Invoice. attr_reader :enabled @@ -421,9 +421,9 @@ module Stripe end end - class CustomerBalance < Stripe::StripeObject - class BankTransfer < Stripe::StripeObject - class EuBankTransfer < Stripe::StripeObject + class CustomerBalance < ::Stripe::StripeObject + class BankTransfer < ::Stripe::StripeObject + class EuBankTransfer < ::Stripe::StripeObject # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. attr_reader :country @@ -462,7 +462,7 @@ module Stripe end end - class Konbini < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -472,7 +472,7 @@ module Stripe end end - class SepaDebit < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -482,9 +482,9 @@ module Stripe end end - class UsBankAccount < Stripe::StripeObject - class FinancialConnections < Stripe::StripeObject - class Filters < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject + class FinancialConnections < ::Stripe::StripeObject + class Filters < ::Stripe::StripeObject # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. attr_reader :account_subcategories @@ -571,8 +571,8 @@ module Stripe end end - class Rendering < Stripe::StripeObject - class Pdf < Stripe::StripeObject + class Rendering < ::Stripe::StripeObject + class Pdf < ::Stripe::StripeObject # Page size of invoice pdf. Options include a4, letter, and auto. If set to auto, page size will be switched to a4 or letter based on customer locale. attr_reader :page_size @@ -602,8 +602,8 @@ module Stripe end end - class ShippingCost < Stripe::StripeObject - class Tax < Stripe::StripeObject + class ShippingCost < ::Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. attr_reader :amount # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. @@ -643,8 +643,8 @@ module Stripe end end - class ShippingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class ShippingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -686,7 +686,7 @@ module Stripe end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # The time that the invoice draft was finalized. attr_reader :finalized_at # The time that the invoice was marked uncollectible. @@ -705,8 +705,8 @@ module Stripe end end - class ThresholdReason < Stripe::StripeObject - class ItemReason < Stripe::StripeObject + class ThresholdReason < ::Stripe::StripeObject + class ItemReason < ::Stripe::StripeObject # The IDs of the line items that triggered the threshold invoice. attr_reader :line_item_ids # The quantity threshold boundary that applied to the given line item. @@ -734,7 +734,7 @@ module Stripe end end - class TotalDiscountAmount < Stripe::StripeObject + class TotalDiscountAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the discount. attr_reader :amount # The discount that was applied to get this discount amount. @@ -749,7 +749,7 @@ module Stripe end end - class TotalPretaxCreditAmount < Stripe::StripeObject + class TotalPretaxCreditAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the pretax credit amount. attr_reader :amount # The credit balance transaction that was applied to get this pretax credit amount. @@ -768,8 +768,8 @@ module Stripe end end - class TotalTax < Stripe::StripeObject - class TaxRateDetails < Stripe::StripeObject + class TotalTax < ::Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject # Attribute for field tax_rate attr_reader :tax_rate diff --git a/lib/stripe/resources/invoice_item.rb b/lib/stripe/resources/invoice_item.rb index 5b8a27b1..297165c2 100644 --- a/lib/stripe/resources/invoice_item.rb +++ b/lib/stripe/resources/invoice_item.rb @@ -21,8 +21,8 @@ module Stripe "invoiceitem" end - class Parent < Stripe::StripeObject - class SubscriptionDetails < Stripe::StripeObject + class Parent < ::Stripe::StripeObject + class SubscriptionDetails < ::Stripe::StripeObject # The subscription that generated this invoice item attr_reader :subscription # The subscription item that generated this invoice item @@ -50,7 +50,7 @@ module Stripe end end - class Period < Stripe::StripeObject + class Period < ::Stripe::StripeObject # The end of the period, which must be greater than or equal to the start. This value is inclusive. attr_reader :end # The start of the period. This value is inclusive. @@ -65,8 +65,8 @@ module Stripe end end - class Pricing < Stripe::StripeObject - class PriceDetails < Stripe::StripeObject + class Pricing < ::Stripe::StripeObject + class PriceDetails < ::Stripe::StripeObject # The ID of the price this item is associated with. attr_reader :price # The ID of the product this item is associated with. @@ -96,8 +96,8 @@ module Stripe end end - class ProrationDetails < Stripe::StripeObject - class DiscountAmount < Stripe::StripeObject + class ProrationDetails < ::Stripe::StripeObject + class DiscountAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the discount. attr_reader :amount # The discount that was applied to get this discount amount. diff --git a/lib/stripe/resources/invoice_line_item.rb b/lib/stripe/resources/invoice_line_item.rb index 60488ba2..7758eba3 100644 --- a/lib/stripe/resources/invoice_line_item.rb +++ b/lib/stripe/resources/invoice_line_item.rb @@ -13,7 +13,7 @@ module Stripe "line_item" end - class DiscountAmount < Stripe::StripeObject + class DiscountAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the discount. attr_reader :amount # The discount that was applied to get this discount amount. @@ -28,10 +28,10 @@ module Stripe end end - class Parent < Stripe::StripeObject - class InvoiceItemDetails < Stripe::StripeObject - class ProrationDetails < Stripe::StripeObject - class CreditedItems < Stripe::StripeObject + class Parent < ::Stripe::StripeObject + class InvoiceItemDetails < ::Stripe::StripeObject + class ProrationDetails < ::Stripe::StripeObject + class CreditedItems < ::Stripe::StripeObject # Invoice containing the credited invoice line items attr_reader :invoice # Credited invoice line items @@ -74,9 +74,9 @@ module Stripe end end - class SubscriptionItemDetails < Stripe::StripeObject - class ProrationDetails < Stripe::StripeObject - class CreditedItems < Stripe::StripeObject + class SubscriptionItemDetails < ::Stripe::StripeObject + class ProrationDetails < ::Stripe::StripeObject + class CreditedItems < ::Stripe::StripeObject # Invoice containing the credited invoice line items attr_reader :invoice # Credited invoice line items @@ -139,7 +139,7 @@ module Stripe end end - class Period < Stripe::StripeObject + class Period < ::Stripe::StripeObject # The end of the period, which must be greater than or equal to the start. This value is inclusive. attr_reader :end # The start of the period. This value is inclusive. @@ -154,7 +154,7 @@ module Stripe end end - class PretaxCreditAmount < Stripe::StripeObject + class PretaxCreditAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the pretax credit amount. attr_reader :amount # The credit balance transaction that was applied to get this pretax credit amount. @@ -173,8 +173,8 @@ module Stripe end end - class Pricing < Stripe::StripeObject - class PriceDetails < Stripe::StripeObject + class Pricing < ::Stripe::StripeObject + class PriceDetails < ::Stripe::StripeObject # The ID of the price this item is associated with. attr_reader :price # The ID of the product this item is associated with. @@ -204,8 +204,8 @@ module Stripe end end - class Tax < Stripe::StripeObject - class TaxRateDetails < Stripe::StripeObject + class Tax < ::Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject # Attribute for field tax_rate attr_reader :tax_rate diff --git a/lib/stripe/resources/invoice_payment.rb b/lib/stripe/resources/invoice_payment.rb index 876bde3d..ba2223b0 100644 --- a/lib/stripe/resources/invoice_payment.rb +++ b/lib/stripe/resources/invoice_payment.rb @@ -18,11 +18,13 @@ module Stripe "invoice_payment" end - class Payment < Stripe::StripeObject + class Payment < ::Stripe::StripeObject # ID of the successful charge for this payment when `type` is `charge`.Note: charge is only surfaced if the charge object is not associated with a payment intent. If the charge object does have a payment intent, the Invoice Payment surfaces the payment intent instead. attr_reader :charge # ID of the PaymentIntent associated with this payment when `type` is `payment_intent`. Note: This property is only populated for invoices finalized on or after March 15th, 2019. attr_reader :payment_intent + # ID of the PaymentRecord associated with this payment when `type` is `payment_record`. + attr_reader :payment_record # Type of payment object associated with this invoice payment. attr_reader :type @@ -35,7 +37,7 @@ module Stripe end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # The time that the payment was canceled. attr_reader :canceled_at # The time that the payment succeeded. diff --git a/lib/stripe/resources/issuing/authorization.rb b/lib/stripe/resources/issuing/authorization.rb index b2a1a26e..3b4dbf91 100644 --- a/lib/stripe/resources/issuing/authorization.rb +++ b/lib/stripe/resources/issuing/authorization.rb @@ -18,7 +18,7 @@ module Stripe "issuing.authorization" end - class AmountDetails < Stripe::StripeObject + class AmountDetails < ::Stripe::StripeObject # The fee charged by the ATM for the cash withdrawal. attr_reader :atm_fee # The amount of cash requested by the cardholder. @@ -33,8 +33,8 @@ module Stripe end end - class Fleet < Stripe::StripeObject - class CardholderPromptData < Stripe::StripeObject + class Fleet < ::Stripe::StripeObject + class CardholderPromptData < ::Stripe::StripeObject # [Deprecated] An alphanumeric ID, though typical point of sales only support numeric entry. The card program can be configured to prompt for a vehicle ID, driver ID, or generic ID. attr_reader :alphanumeric_id # Driver ID. @@ -57,8 +57,8 @@ module Stripe end end - class ReportedBreakdown < Stripe::StripeObject - class Fuel < Stripe::StripeObject + class ReportedBreakdown < ::Stripe::StripeObject + class Fuel < ::Stripe::StripeObject # Gross fuel amount that should equal Fuel Quantity multiplied by Fuel Unit Cost, inclusive of taxes. attr_reader :gross_amount_decimal @@ -71,7 +71,7 @@ module Stripe end end - class NonFuel < Stripe::StripeObject + class NonFuel < ::Stripe::StripeObject # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. attr_reader :gross_amount_decimal @@ -84,7 +84,7 @@ module Stripe end end - class Tax < Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of state or provincial Sales Tax included in the transaction amount. `null` if not reported by merchant or not subject to tax. attr_reader :local_amount_decimal # Amount of national Sales Tax or VAT included in the transaction amount. `null` if not reported by merchant or not subject to tax. @@ -134,7 +134,7 @@ module Stripe end end - class FraudChallenge < Stripe::StripeObject + class FraudChallenge < ::Stripe::StripeObject # The method by which the fraud challenge was delivered to the cardholder. attr_reader :channel # The status of the fraud challenge. @@ -151,7 +151,7 @@ module Stripe end end - class Fuel < Stripe::StripeObject + class Fuel < ::Stripe::StripeObject # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. attr_reader :industry_product_code # The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places. @@ -172,7 +172,7 @@ module Stripe end end - class MerchantData < Stripe::StripeObject + class MerchantData < ::Stripe::StripeObject # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. attr_reader :category # The merchant category code for the seller’s business @@ -205,7 +205,7 @@ module Stripe end end - class NetworkData < Stripe::StripeObject + class NetworkData < ::Stripe::StripeObject # Identifier assigned to the acquirer by the card network. Sometimes this value is not provided by the network; in this case, the value will be `null`. attr_reader :acquiring_institution_id # The System Trace Audit Number (STAN) is a 6-digit identifier assigned by the acquirer. Prefer `network_data.transaction_id` if present, unless you have special requirements. @@ -222,8 +222,8 @@ module Stripe end end - class PendingRequest < Stripe::StripeObject - class AmountDetails < Stripe::StripeObject + class PendingRequest < ::Stripe::StripeObject + class AmountDetails < ::Stripe::StripeObject # The fee charged by the ATM for the cash withdrawal. attr_reader :atm_fee # The amount of cash requested by the cardholder. @@ -261,8 +261,8 @@ module Stripe end end - class RequestHistory < Stripe::StripeObject - class AmountDetails < Stripe::StripeObject + class RequestHistory < ::Stripe::StripeObject + class AmountDetails < ::Stripe::StripeObject # The fee charged by the ATM for the cash withdrawal. attr_reader :atm_fee # The amount of cash requested by the cardholder. @@ -310,7 +310,7 @@ module Stripe end end - class Treasury < Stripe::StripeObject + class Treasury < ::Stripe::StripeObject # The array of [ReceivedCredits](https://stripe.com/docs/api/treasury/received_credits) associated with this authorization attr_reader :received_credits # The array of [ReceivedDebits](https://stripe.com/docs/api/treasury/received_debits) associated with this authorization @@ -327,8 +327,8 @@ module Stripe end end - class VerificationData < Stripe::StripeObject - class AuthenticationExemption < Stripe::StripeObject + class VerificationData < ::Stripe::StripeObject + class AuthenticationExemption < ::Stripe::StripeObject # The entity that requested the exemption, either the acquiring merchant or the Issuing user. attr_reader :claimed_by # The specific exemption claimed for this authorization. @@ -343,7 +343,7 @@ module Stripe end end - class ThreeDSecure < Stripe::StripeObject + class ThreeDSecure < ::Stripe::StripeObject # The outcome of the 3D Secure authentication request. attr_reader :result diff --git a/lib/stripe/resources/issuing/card.rb b/lib/stripe/resources/issuing/card.rb index 1d44c909..f55dff4c 100644 --- a/lib/stripe/resources/issuing/card.rb +++ b/lib/stripe/resources/issuing/card.rb @@ -14,8 +14,8 @@ module Stripe "issuing.card" end - class Shipping < Stripe::StripeObject - class Address < Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -38,8 +38,8 @@ module Stripe end end - class AddressValidation < Stripe::StripeObject - class NormalizedAddress < Stripe::StripeObject + class AddressValidation < ::Stripe::StripeObject + class NormalizedAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -77,7 +77,7 @@ module Stripe end end - class Customs < Stripe::StripeObject + class Customs < ::Stripe::StripeObject # A registration number used for customs in Europe. See [https://www.gov.uk/eori](https://www.gov.uk/eori) for the UK and [https://ec.europa.eu/taxation_customs/business/customs-procedures-import-and-export/customs-procedures/economic-operators-registration-and-identification-number-eori_en](https://ec.europa.eu/taxation_customs/business/customs-procedures-import-and-export/customs-procedures/economic-operators-registration-and-identification-number-eori_en) for the EU. attr_reader :eori_number @@ -129,8 +129,8 @@ module Stripe end end - class SpendingControls < Stripe::StripeObject - class SpendingLimit < Stripe::StripeObject + class SpendingControls < ::Stripe::StripeObject + class SpendingLimit < ::Stripe::StripeObject # Maximum amount allowed to spend per interval. This amount is in the card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). attr_reader :amount # Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) this limit applies to. Omitting this field will apply the limit to all categories. @@ -168,8 +168,8 @@ module Stripe end end - class Wallets < Stripe::StripeObject - class ApplePay < Stripe::StripeObject + class Wallets < ::Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject # Apple Pay Eligibility attr_reader :eligible # Reason the card is ineligible for Apple Pay @@ -184,7 +184,7 @@ module Stripe end end - class GooglePay < Stripe::StripeObject + class GooglePay < ::Stripe::StripeObject # Google Pay Eligibility attr_reader :eligible # Reason the card is ineligible for Google Pay diff --git a/lib/stripe/resources/issuing/cardholder.rb b/lib/stripe/resources/issuing/cardholder.rb index 6606ac0a..c792fbb5 100644 --- a/lib/stripe/resources/issuing/cardholder.rb +++ b/lib/stripe/resources/issuing/cardholder.rb @@ -16,8 +16,8 @@ module Stripe "issuing.cardholder" end - class Billing < Stripe::StripeObject - class Address < Stripe::StripeObject + class Billing < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -51,7 +51,7 @@ module Stripe end end - class Company < Stripe::StripeObject + class Company < ::Stripe::StripeObject # Whether the company's business ID number was provided. attr_reader :tax_id_provided @@ -64,9 +64,9 @@ module Stripe end end - class Individual < Stripe::StripeObject - class CardIssuing < Stripe::StripeObject - class UserTermsAcceptance < Stripe::StripeObject + class Individual < ::Stripe::StripeObject + class CardIssuing < ::Stripe::StripeObject + class UserTermsAcceptance < ::Stripe::StripeObject # The Unix timestamp marking when the cardholder accepted the Authorized User Terms. attr_reader :date # The IP address from which the cardholder accepted the Authorized User Terms. @@ -94,7 +94,7 @@ module Stripe end end - class Dob < Stripe::StripeObject + class Dob < ::Stripe::StripeObject # The day of birth, between 1 and 31. attr_reader :day # The month of birth, between 1 and 12. @@ -111,8 +111,8 @@ module Stripe end end - class Verification < Stripe::StripeObject - class Document < Stripe::StripeObject + class Verification < ::Stripe::StripeObject + class Document < ::Stripe::StripeObject # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. attr_reader :back # The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. @@ -157,7 +157,7 @@ module Stripe end end - class Requirements < Stripe::StripeObject + class Requirements < ::Stripe::StripeObject # If `disabled_reason` is present, all cards will decline authorizations with `cardholder_verification_required` reason. attr_reader :disabled_reason # Array of fields that need to be collected in order to verify and re-enable the cardholder. @@ -172,8 +172,8 @@ module Stripe end end - class SpendingControls < Stripe::StripeObject - class SpendingLimit < Stripe::StripeObject + class SpendingControls < ::Stripe::StripeObject + class SpendingLimit < ::Stripe::StripeObject # Maximum amount allowed to spend per interval. This amount is in the card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). attr_reader :amount # Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) this limit applies to. Omitting this field will apply the limit to all categories. diff --git a/lib/stripe/resources/issuing/dispute.rb b/lib/stripe/resources/issuing/dispute.rb index f07067bb..09645a12 100644 --- a/lib/stripe/resources/issuing/dispute.rb +++ b/lib/stripe/resources/issuing/dispute.rb @@ -16,8 +16,8 @@ module Stripe "issuing.dispute" end - class Evidence < Stripe::StripeObject - class Canceled < Stripe::StripeObject + class Evidence < ::Stripe::StripeObject + class Canceled < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_reader :additional_documentation # Date when order was canceled. @@ -48,7 +48,7 @@ module Stripe end end - class Duplicate < Stripe::StripeObject + class Duplicate < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_reader :additional_documentation # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the card statement showing that the product had already been paid for. @@ -71,7 +71,7 @@ module Stripe end end - class Fraudulent < Stripe::StripeObject + class Fraudulent < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_reader :additional_documentation # Explanation of why the cardholder is disputing this transaction. @@ -86,7 +86,7 @@ module Stripe end end - class MerchandiseNotAsDescribed < Stripe::StripeObject + class MerchandiseNotAsDescribed < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_reader :additional_documentation # Explanation of why the cardholder is disputing this transaction. @@ -109,7 +109,7 @@ module Stripe end end - class NoValidAuthorization < Stripe::StripeObject + class NoValidAuthorization < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_reader :additional_documentation # Explanation of why the cardholder is disputing this transaction. @@ -124,7 +124,7 @@ module Stripe end end - class NotReceived < Stripe::StripeObject + class NotReceived < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_reader :additional_documentation # Date when the cardholder expected to receive the product. @@ -145,7 +145,7 @@ module Stripe end end - class Other < Stripe::StripeObject + class Other < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_reader :additional_documentation # Explanation of why the cardholder is disputing this transaction. @@ -164,7 +164,7 @@ module Stripe end end - class ServiceNotAsDescribed < Stripe::StripeObject + class ServiceNotAsDescribed < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. attr_reader :additional_documentation # Date when order was canceled. @@ -221,7 +221,7 @@ module Stripe end end - class Treasury < Stripe::StripeObject + class Treasury < ::Stripe::StripeObject # The Treasury [DebitReversal](https://stripe.com/docs/api/treasury/debit_reversals) representing this Issuing dispute attr_reader :debit_reversal # The Treasury [ReceivedDebit](https://stripe.com/docs/api/treasury/received_debits) that is being disputed. diff --git a/lib/stripe/resources/issuing/personalization_design.rb b/lib/stripe/resources/issuing/personalization_design.rb index 94cc45ca..2ee423a9 100644 --- a/lib/stripe/resources/issuing/personalization_design.rb +++ b/lib/stripe/resources/issuing/personalization_design.rb @@ -14,7 +14,7 @@ module Stripe "issuing.personalization_design" end - class CarrierText < Stripe::StripeObject + class CarrierText < ::Stripe::StripeObject # The footer body text of the carrier letter. attr_reader :footer_body # The footer title text of the carrier letter. @@ -33,7 +33,7 @@ module Stripe end end - class Preferences < Stripe::StripeObject + class Preferences < ::Stripe::StripeObject # Whether we use this personalization design to create cards when one isn't specified. A connected account uses the Connect platform's default design if no personalization design is set as the default design. attr_reader :is_default # Whether this personalization design is used to create cards when one is not specified and a default for this connected account does not exist. @@ -48,7 +48,7 @@ module Stripe end end - class RejectionReasons < Stripe::StripeObject + class RejectionReasons < ::Stripe::StripeObject # The reason(s) the card logo was rejected. attr_reader :card_logo # The reason(s) the carrier text was rejected. diff --git a/lib/stripe/resources/issuing/physical_bundle.rb b/lib/stripe/resources/issuing/physical_bundle.rb index a9d6e163..0e7ab5e2 100644 --- a/lib/stripe/resources/issuing/physical_bundle.rb +++ b/lib/stripe/resources/issuing/physical_bundle.rb @@ -12,7 +12,7 @@ module Stripe "issuing.physical_bundle" end - class Features < Stripe::StripeObject + class Features < ::Stripe::StripeObject # The policy for how to use card logo images in a card design with this physical bundle. attr_reader :card_logo # The policy for how to use carrier letter text in a card design with this physical bundle. diff --git a/lib/stripe/resources/issuing/token.rb b/lib/stripe/resources/issuing/token.rb index 911954cd..caa8195f 100644 --- a/lib/stripe/resources/issuing/token.rb +++ b/lib/stripe/resources/issuing/token.rb @@ -13,8 +13,8 @@ module Stripe "issuing.token" end - class NetworkData < Stripe::StripeObject - class Device < Stripe::StripeObject + class NetworkData < ::Stripe::StripeObject + class Device < ::Stripe::StripeObject # An obfuscated ID derived from the device ID. attr_reader :device_fingerprint # The IP address of the device at provisioning time. @@ -37,7 +37,7 @@ module Stripe end end - class Mastercard < Stripe::StripeObject + class Mastercard < ::Stripe::StripeObject # A unique reference ID from MasterCard to represent the card account number. attr_reader :card_reference_id # The network-unique identifier for the token. @@ -56,7 +56,7 @@ module Stripe end end - class Visa < Stripe::StripeObject + class Visa < ::Stripe::StripeObject # A unique reference ID from Visa to represent the card account number. attr_reader :card_reference_id # The network-unique identifier for the token. @@ -75,8 +75,8 @@ module Stripe end end - class WalletProvider < Stripe::StripeObject - class CardholderAddress < Stripe::StripeObject + class WalletProvider < ::Stripe::StripeObject + class CardholderAddress < ::Stripe::StripeObject # The street address of the cardholder tokenizing the card. attr_reader :line1 # The postal code of the cardholder tokenizing the card. diff --git a/lib/stripe/resources/issuing/transaction.rb b/lib/stripe/resources/issuing/transaction.rb index 042aeea4..2ddbd0f9 100644 --- a/lib/stripe/resources/issuing/transaction.rb +++ b/lib/stripe/resources/issuing/transaction.rb @@ -17,7 +17,7 @@ module Stripe "issuing.transaction" end - class AmountDetails < Stripe::StripeObject + class AmountDetails < ::Stripe::StripeObject # The fee charged by the ATM for the cash withdrawal. attr_reader :atm_fee # The amount of cash requested by the cardholder. @@ -32,7 +32,7 @@ module Stripe end end - class MerchantData < Stripe::StripeObject + class MerchantData < ::Stripe::StripeObject # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. attr_reader :category # The merchant category code for the seller’s business @@ -65,7 +65,7 @@ module Stripe end end - class NetworkData < Stripe::StripeObject + class NetworkData < ::Stripe::StripeObject # A code created by Stripe which is shared with the merchant to validate the authorization. This field will be populated if the authorization message was approved. The code typically starts with the letter "S", followed by a six-digit number. For example, "S498162". Please note that the code is not guaranteed to be unique across authorizations. attr_reader :authorization_code # The date the transaction was processed by the card network. This can be different from the date the seller recorded the transaction depending on when the acquirer submits the transaction to the network. @@ -82,9 +82,9 @@ module Stripe end end - class PurchaseDetails < Stripe::StripeObject - class Fleet < Stripe::StripeObject - class CardholderPromptData < Stripe::StripeObject + class PurchaseDetails < ::Stripe::StripeObject + class Fleet < ::Stripe::StripeObject + class CardholderPromptData < ::Stripe::StripeObject # Driver ID. attr_reader :driver_id # Odometer reading. @@ -105,8 +105,8 @@ module Stripe end end - class ReportedBreakdown < Stripe::StripeObject - class Fuel < Stripe::StripeObject + class ReportedBreakdown < ::Stripe::StripeObject + class Fuel < ::Stripe::StripeObject # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. attr_reader :gross_amount_decimal @@ -119,7 +119,7 @@ module Stripe end end - class NonFuel < Stripe::StripeObject + class NonFuel < ::Stripe::StripeObject # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. attr_reader :gross_amount_decimal @@ -132,7 +132,7 @@ module Stripe end end - class Tax < Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. attr_reader :local_amount_decimal # Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax. @@ -182,8 +182,8 @@ module Stripe end end - class Flight < Stripe::StripeObject - class Segment < Stripe::StripeObject + class Flight < ::Stripe::StripeObject + class Segment < ::Stripe::StripeObject # The three-letter IATA airport code of the flight's destination. attr_reader :arrival_airport_code # The airline carrier code. @@ -225,7 +225,7 @@ module Stripe end end - class Fuel < Stripe::StripeObject + class Fuel < ::Stripe::StripeObject # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. attr_reader :industry_product_code # The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places. @@ -246,7 +246,7 @@ module Stripe end end - class Lodging < Stripe::StripeObject + class Lodging < ::Stripe::StripeObject # The time of checking into the lodging. attr_reader :check_in_at # The number of nights stayed at the lodging. @@ -261,7 +261,7 @@ module Stripe end end - class Receipt < Stripe::StripeObject + class Receipt < ::Stripe::StripeObject # The description of the item. The maximum length of this field is 26 characters. attr_reader :description # The quantity of the item. @@ -307,7 +307,7 @@ module Stripe end end - class Treasury < Stripe::StripeObject + class Treasury < ::Stripe::StripeObject # The Treasury [ReceivedCredit](https://stripe.com/docs/api/treasury/received_credits) representing this Issuing transaction if it is a refund attr_reader :received_credit # The Treasury [ReceivedDebit](https://stripe.com/docs/api/treasury/received_debits) representing this Issuing transaction if it is a capture diff --git a/lib/stripe/resources/line_item.rb b/lib/stripe/resources/line_item.rb index c2b10dab..240802a4 100644 --- a/lib/stripe/resources/line_item.rb +++ b/lib/stripe/resources/line_item.rb @@ -9,7 +9,7 @@ module Stripe "item" end - class Discount < Stripe::StripeObject + class Discount < ::Stripe::StripeObject # The amount discounted. attr_reader :amount # A discount represents the actual application of a [coupon](https://stripe.com/docs/api#coupons) or [promotion code](https://stripe.com/docs/api#promotion_codes). @@ -27,7 +27,7 @@ module Stripe end end - class Tax < Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. attr_reader :amount # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. diff --git a/lib/stripe/resources/mandate.rb b/lib/stripe/resources/mandate.rb index 33d6b212..e9e5533d 100644 --- a/lib/stripe/resources/mandate.rb +++ b/lib/stripe/resources/mandate.rb @@ -9,8 +9,8 @@ module Stripe "mandate" end - class CustomerAcceptance < Stripe::StripeObject - class Offline < Stripe::StripeObject + class CustomerAcceptance < ::Stripe::StripeObject + class Offline < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -20,7 +20,7 @@ module Stripe end end - class Online < Stripe::StripeObject + class Online < ::Stripe::StripeObject # The customer accepts the mandate from this IP address. attr_reader :ip_address # The customer accepts the mandate using the user agent of the browser. @@ -52,7 +52,7 @@ module Stripe end end - class MultiUse < Stripe::StripeObject + class MultiUse < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -62,8 +62,8 @@ module Stripe end end - class PaymentMethodDetails < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject + class PaymentMethodDetails < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject # List of Stripe products where this mandate can be selected automatically. attr_reader :default_for # Description of the interval. Only required if the 'payment_schedule' parameter is 'interval' or 'combined'. @@ -82,7 +82,7 @@ module Stripe end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -92,7 +92,7 @@ module Stripe end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject # The URL of the mandate. This URL generally contains sensitive information about the customer and should be shared with them exclusively. attr_reader :url @@ -105,7 +105,7 @@ module Stripe end end - class BacsDebit < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject # The status of the mandate on the Bacs network. Can be one of `pending`, `revoked`, `refused`, or `accepted`. attr_reader :network_status # The unique reference identifying the mandate on the Bacs network. @@ -124,7 +124,7 @@ module Stripe end end - class Card < Stripe::StripeObject + class Card < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -134,7 +134,7 @@ module Stripe end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -144,7 +144,7 @@ module Stripe end end - class KakaoPay < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -154,7 +154,7 @@ module Stripe end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -164,7 +164,7 @@ module Stripe end end - class KrCard < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -174,7 +174,7 @@ module Stripe end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -184,7 +184,7 @@ module Stripe end end - class NaverPay < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -194,7 +194,7 @@ module Stripe end end - class NzBankAccount < Stripe::StripeObject + class NzBankAccount < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -204,7 +204,7 @@ module Stripe end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer. attr_reader :billing_agreement_id # PayPal account PayerID. This identifier uniquely identifies the PayPal customer. @@ -219,7 +219,7 @@ module Stripe end end - class RevolutPay < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -229,7 +229,7 @@ module Stripe end end - class SepaDebit < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject # The unique reference of the mandate. attr_reader :reference # The URL of the mandate. This URL generally contains sensitive information about the customer and should be shared with them exclusively. @@ -244,7 +244,7 @@ module Stripe end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject # Mandate collection method attr_reader :collection_method @@ -317,7 +317,7 @@ module Stripe end end - class SingleUse < Stripe::StripeObject + class SingleUse < ::Stripe::StripeObject # The amount of the payment on a single use mandate. attr_reader :amount # The currency of the payment on a single use mandate. diff --git a/lib/stripe/resources/payment_attempt_record.rb b/lib/stripe/resources/payment_attempt_record.rb new file mode 100644 index 00000000..d07c247e --- /dev/null +++ b/lib/stripe/resources/payment_attempt_record.rb @@ -0,0 +1,1903 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + # A Payment Attempt Record represents an individual attempt at making a payment, on or off Stripe. + # Each payment attempt tries to collect a fixed amount of money from a fixed customer and payment + # method. Payment Attempt Records are attached to Payment Records. Only one attempt per Payment Record + # can have guaranteed funds. + class PaymentAttemptRecord < APIResource + extend Stripe::APIOperations::List + + OBJECT_NAME = "payment_attempt_record" + def self.object_name + "payment_attempt_record" + end + + class Amount < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + attr_reader :value + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class AmountAuthorized < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + attr_reader :value + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class AmountCanceled < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + attr_reader :value + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class AmountFailed < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + attr_reader :value + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class AmountGuaranteed < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + attr_reader :value + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class AmountRefunded < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + attr_reader :value + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class AmountRequested < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + attr_reader :value + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class CustomerDetails < ::Stripe::StripeObject + # ID of the Stripe Customer associated with this payment. + attr_reader :customer + # The customer's email address. + attr_reader :email + # The customer's name. + attr_reader :name + # The customer's phone number. + attr_reader :phone + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class PaymentMethodDetails < ::Stripe::StripeObject + class AchCreditTransfer < ::Stripe::StripeObject + # Account number to transfer funds to. + attr_reader :account_number + # Name of the bank associated with the routing number. + attr_reader :bank_name + # Routing transit number for the bank account to transfer funds to. + attr_reader :routing_number + # SWIFT code of the bank associated with the routing number. + attr_reader :swift_code + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class AchDebit < ::Stripe::StripeObject + # Type of entity that holds the account. This can be either `individual` or `company`. + attr_reader :account_holder_type + # Name of the bank associated with the bank account. + attr_reader :bank_name + # Two-letter ISO code representing the country the bank account is located in. + attr_reader :country + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + attr_reader :fingerprint + # Last four digits of the bank account number. + attr_reader :last4 + # Routing transit number of the bank account. + attr_reader :routing_number + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class AcssDebit < ::Stripe::StripeObject + # Name of the bank associated with the bank account. + attr_reader :bank_name + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + attr_reader :fingerprint + # Institution number of the bank account + attr_reader :institution_number + # Last four digits of the bank account number. + attr_reader :last4 + # ID of the mandate used to make this payment. + attr_reader :mandate + # Transit number of the bank account. + attr_reader :transit_number + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Affirm < ::Stripe::StripeObject + # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. + attr_reader :location + # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. + attr_reader :reader + # The Affirm transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class AfterpayClearpay < ::Stripe::StripeObject + # The Afterpay order ID associated with this payment intent. + attr_reader :order_id + # Order identifier shown to the merchant in Afterpay’s online portal. + attr_reader :reference + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Alipay < ::Stripe::StripeObject + # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same. + attr_reader :buyer_id + # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same. + attr_reader :fingerprint + # Transaction ID of this particular Alipay transaction. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Alma < ::Stripe::StripeObject + class Installments < ::Stripe::StripeObject + # The number of installments. + attr_reader :count + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field installments + attr_reader :installments + # The Alma transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = { installments: Installments } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class AmazonPay < ::Stripe::StripeObject + class Funding < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + attr_reader :brand + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + attr_reader :country + # Two-digit number representing the card's expiration month. + attr_reader :exp_month + # Four-digit number representing the card's expiration year. + attr_reader :exp_year + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + attr_reader :funding + # The last four digits of the card. + attr_reader :last4 + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field card + attr_reader :card + # funding type of the underlying payment method. + attr_reader :type + + def self.inner_class_types + @inner_class_types = { card: Card } + end + + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field funding + attr_reader :funding + # The Amazon Pay transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = { funding: Funding } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class AuBecsDebit < ::Stripe::StripeObject + # Bank-State-Branch number of the bank account. + attr_reader :bsb_number + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + attr_reader :fingerprint + # Last four digits of the bank account number. + attr_reader :last4 + # ID of the mandate used to make this payment. + attr_reader :mandate + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class BacsDebit < ::Stripe::StripeObject + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + attr_reader :fingerprint + # Last four digits of the bank account number. + attr_reader :last4 + # ID of the mandate used to make this payment. + attr_reader :mandate + # Sort code of the bank account. (e.g., `10-20-30`) + attr_reader :sort_code + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Bancontact < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + attr_reader :bank_code + # Name of the bank associated with the bank account. + attr_reader :bank_name + # Bank Identifier Code of the bank associated with the bank account. + attr_reader :bic + # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. + attr_reader :generated_sepa_debit + # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. + attr_reader :generated_sepa_debit_mandate + # Last four characters of the IBAN. + attr_reader :iban_last4 + # Preferred language of the Bancontact authorization page that the customer is redirected to. + # Can be one of `en`, `de`, `fr`, or `nl` + attr_reader :preferred_language + # Owner's verified full name. Values are verified or provided by Bancontact directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + attr_reader :verified_name + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Billie < ::Stripe::StripeObject + # The Billie transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject + # City, district, suburb, town, or village. + attr_reader :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_reader :country + # Address line 1, such as the street, PO Box, or company name. + attr_reader :line1 + # Address line 2, such as the apartment, suite, unit, or building. + attr_reader :line2 + # ZIP or postal code. + attr_reader :postal_code + # State, county, province, or region. + attr_reader :state + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # A representation of a physical address. + attr_reader :address + # The billing email associated with the method of payment. + attr_reader :email + # The billing name associated with the method of payment. + attr_reader :name + # The billing phone number associated with the method of payment. + attr_reader :phone + + def self.inner_class_types + @inner_class_types = { address: Address } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Blik < ::Stripe::StripeObject + # A unique and immutable identifier assigned by BLIK to every buyer. + attr_reader :buyer_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Boleto < ::Stripe::StripeObject + # The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses consumers) + attr_reader :tax_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Card < ::Stripe::StripeObject + class Checks < ::Stripe::StripeObject + # Attribute for field address_line1_check + attr_reader :address_line1_check + # Attribute for field address_postal_code_check + attr_reader :address_postal_code_check + # Attribute for field cvc_check + attr_reader :cvc_check + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class NetworkToken < ::Stripe::StripeObject + # Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction. + attr_reader :used + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class ThreeDSecure < ::Stripe::StripeObject + # Attribute for field authentication_flow + attr_reader :authentication_flow + # Attribute for field result + attr_reader :result + # Attribute for field result_reason + attr_reader :result_reason + # Attribute for field version + attr_reader :version + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Wallet < ::Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject + # Type of the apple_pay transaction, one of `apple_pay` or `apple_pay_later`. + attr_reader :type + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class GooglePay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field apple_pay + attr_reader :apple_pay + # (For tokenized numbers only.) The last four digits of the device account number. + attr_reader :dynamic_last4 + # Attribute for field google_pay + attr_reader :google_pay + # The type of the card wallet, one of `apple_pay` or `google_pay`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type. + attr_reader :type + + def self.inner_class_types + @inner_class_types = { apple_pay: ApplePay, google_pay: GooglePay } + end + + def self.field_remappings + @field_remappings = {} + end + end + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + attr_reader :brand + # When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured. + attr_reader :capture_before + # Check results by Card networks on Card address and CVC at time of payment. + attr_reader :checks + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + attr_reader :country + # Two-digit number representing the card's expiration month. + attr_reader :exp_month + # Four-digit number representing the card's expiration year. + attr_reader :exp_year + # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + # + # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + attr_reader :fingerprint + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + attr_reader :funding + # The last four digits of the card. + attr_reader :last4 + # True if this payment was marked as MOTO and out of scope for SCA. + attr_reader :moto + # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + attr_reader :network + # If this card has network token credentials, this contains the details of the network token credentials. + attr_reader :network_token + # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + attr_reader :network_transaction_id + # Populated if this transaction used 3D Secure authentication. + attr_reader :three_d_secure + # If this Card is part of a card wallet, this contains the details of the card wallet. + attr_reader :wallet + + def self.inner_class_types + @inner_class_types = { + checks: Checks, + network_token: NetworkToken, + three_d_secure: ThreeDSecure, + wallet: Wallet, + } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class CardPresent < ::Stripe::StripeObject + class Offline < ::Stripe::StripeObject + # Time at which the payment was collected while offline + attr_reader :stored_at + # The method used to process this payment method offline. Only deferred is allowed. + attr_reader :type + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Receipt < ::Stripe::StripeObject + # The type of account being debited or credited + attr_reader :account_type + # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers. + attr_reader :application_cryptogram + # The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip. + attr_reader :application_preferred_name + # Identifier for this transaction. + attr_reader :authorization_code + # EMV tag 8A. A code returned by the card issuer. + attr_reader :authorization_response_code + # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`. + attr_reader :cardholder_verification_method + # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84. + attr_reader :dedicated_file_name + # A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95. + attr_reader :terminal_verification_results + # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B. + attr_reader :transaction_status_information + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Wallet < ::Stripe::StripeObject + # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. + attr_reader :type + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # The authorized amount + attr_reader :amount_authorized + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + attr_reader :brand + # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. + attr_reader :brand_product + # When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured. + attr_reader :capture_before + # The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay. + attr_reader :cardholder_name + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + attr_reader :country + # A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) + attr_reader :description + # Authorization response cryptogram. + attr_reader :emv_auth_data + # Two-digit number representing the card's expiration month. + attr_reader :exp_month + # Four-digit number representing the card's expiration year. + attr_reader :exp_year + # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + # + # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + attr_reader :fingerprint + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + attr_reader :funding + # ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod. + attr_reader :generated_card + # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) + attr_reader :iin + # Whether this [PaymentIntent](https://stripe.com/docs/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support). + attr_reader :incremental_authorization_supported + # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) + attr_reader :issuer + # The last four digits of the card. + attr_reader :last4 + # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + attr_reader :network + # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + attr_reader :network_transaction_id + # Details about payments collected offline. + attr_reader :offline + # Defines whether the authorized amount can be over-captured or not + attr_reader :overcapture_supported + # The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip. + attr_reader :preferred_locales + # How card details were read in this transaction. + attr_reader :read_method + # A collection of fields required to be displayed on receipts. Only required for EMV transactions. + attr_reader :receipt + # Attribute for field wallet + attr_reader :wallet + + def self.inner_class_types + @inner_class_types = { offline: Offline, receipt: Receipt, wallet: Wallet } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Cashapp < ::Stripe::StripeObject + # A unique and immutable identifier assigned by Cash App to every buyer. + attr_reader :buyer_id + # A public identifier for buyers using Cash App. + attr_reader :cashtag + # A unique and immutable identifier of payments assigned by Cash App + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Crypto < ::Stripe::StripeObject + # The wallet address of the customer. + attr_reader :buyer_address + # The blockchain network that the transaction was sent on. + attr_reader :network + # The token currency that the transaction was sent with. + attr_reader :token_currency + # The blockchain transaction hash of the crypto payment. + attr_reader :transaction_hash + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Custom < ::Stripe::StripeObject + # Display name for the custom (user-defined) payment method type used to make this payment. + attr_reader :display_name + # The custom payment method type associated with this payment. + attr_reader :type + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class CustomerBalance < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Eps < ::Stripe::StripeObject + # The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. + attr_reader :bank + # Owner's verified full name. Values are verified or provided by EPS directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + # EPS rarely provides this information so the attribute is usually empty. + attr_reader :verified_name + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Fpx < ::Stripe::StripeObject + # Account holder type, if provided. Can be one of `individual` or `company`. + attr_reader :account_holder_type + # The customer's bank. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`. + attr_reader :bank + # Unique transaction id generated by FPX for every request from the merchant + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Giropay < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + attr_reader :bank_code + # Name of the bank associated with the bank account. + attr_reader :bank_name + # Bank Identifier Code of the bank associated with the bank account. + attr_reader :bic + # Owner's verified full name. Values are verified or provided by Giropay directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + # Giropay rarely provides this information so the attribute is usually empty. + attr_reader :verified_name + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Grabpay < ::Stripe::StripeObject + # Unique transaction id generated by GrabPay + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Ideal < ::Stripe::StripeObject + # The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. + attr_reader :bank + # The Bank Identifier Code of the customer's bank. + attr_reader :bic + # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. + attr_reader :generated_sepa_debit + # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. + attr_reader :generated_sepa_debit_mandate + # Last four characters of the IBAN. + attr_reader :iban_last4 + # Owner's verified full name. Values are verified or provided by iDEAL directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + attr_reader :verified_name + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class InteracPresent < ::Stripe::StripeObject + class Receipt < ::Stripe::StripeObject + # The type of account being debited or credited + attr_reader :account_type + # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers. + attr_reader :application_cryptogram + # The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip. + attr_reader :application_preferred_name + # Identifier for this transaction. + attr_reader :authorization_code + # EMV tag 8A. A code returned by the card issuer. + attr_reader :authorization_response_code + # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`. + attr_reader :cardholder_verification_method + # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84. + attr_reader :dedicated_file_name + # A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95. + attr_reader :terminal_verification_results + # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B. + attr_reader :transaction_status_information + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Card brand. Can be `interac`, `mastercard` or `visa`. + attr_reader :brand + # The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay. + attr_reader :cardholder_name + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + attr_reader :country + # A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) + attr_reader :description + # Authorization response cryptogram. + attr_reader :emv_auth_data + # Two-digit number representing the card's expiration month. + attr_reader :exp_month + # Four-digit number representing the card's expiration year. + attr_reader :exp_year + # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + # + # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + attr_reader :fingerprint + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + attr_reader :funding + # ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod. + attr_reader :generated_card + # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) + attr_reader :iin + # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) + attr_reader :issuer + # The last four digits of the card. + attr_reader :last4 + # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + attr_reader :network + # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + attr_reader :network_transaction_id + # The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip. + attr_reader :preferred_locales + # How card details were read in this transaction. + attr_reader :read_method + # A collection of fields required to be displayed on receipts. Only required for EMV transactions. + attr_reader :receipt + + def self.inner_class_types + @inner_class_types = { receipt: Receipt } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class KakaoPay < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + attr_reader :buyer_id + # The Kakao Pay transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Klarna < ::Stripe::StripeObject + class PayerDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject + # The payer address country + attr_reader :country + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # The payer's address + attr_reader :address + + def self.inner_class_types + @inner_class_types = { address: Address } + end + + def self.field_remappings + @field_remappings = {} + end + end + # The payer details for this transaction. + attr_reader :payer_details + # The Klarna payment method used for this transaction. + # Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` + attr_reader :payment_method_category + # Preferred language of the Klarna authorization page that the customer is redirected to. + # Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` + attr_reader :preferred_locale + + def self.inner_class_types + @inner_class_types = { payer_details: PayerDetails } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Konbini < ::Stripe::StripeObject + class Store < ::Stripe::StripeObject + # The name of the convenience store chain where the payment was completed. + attr_reader :chain + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # If the payment succeeded, this contains the details of the convenience store where the payment was completed. + attr_reader :store + + def self.inner_class_types + @inner_class_types = { store: Store } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class KrCard < ::Stripe::StripeObject + # The local credit or debit card brand. + attr_reader :brand + # A unique identifier for the buyer as determined by the local payment processor. + attr_reader :buyer_id + # The last four digits of the card. This may not be present for American Express cards. + attr_reader :last4 + # The Korean Card transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Link < ::Stripe::StripeObject + # Two-letter ISO code representing the funding source country beneath the Link payment. + # You could use this attribute to get a sense of international fees. + attr_reader :country + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class MbWay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Mobilepay < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + # Brand of the card used in the transaction + attr_reader :brand + # Two-letter ISO code representing the country of the card + attr_reader :country + # Two digit number representing the card's expiration month + attr_reader :exp_month + # Two digit number representing the card's expiration year + attr_reader :exp_year + # The last 4 digits of the card + attr_reader :last4 + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Internal card details + attr_reader :card + + def self.inner_class_types + @inner_class_types = { card: Card } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Multibanco < ::Stripe::StripeObject + # Entity number associated with this Multibanco payment. + attr_reader :entity + # Reference number associated with this Multibanco payment. + attr_reader :reference + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class NaverPay < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + attr_reader :buyer_id + # The Naver Pay transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class NzBankAccount < ::Stripe::StripeObject + # The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. + attr_reader :account_holder_name + # The numeric code for the bank account's bank. + attr_reader :bank_code + # The name of the bank. + attr_reader :bank_name + # The numeric code for the bank account's bank branch. + attr_reader :branch_code + # Last four digits of the bank account number. + attr_reader :last4 + # The suffix of the bank account number. + attr_reader :suffix + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Oxxo < ::Stripe::StripeObject + # OXXO reference number + attr_reader :number + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class P24 < ::Stripe::StripeObject + # The customer's bank. Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `velobank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`. + attr_reader :bank + # Unique reference for this Przelewy24 payment. + attr_reader :reference + # Owner's verified full name. Values are verified or provided by Przelewy24 directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + # Przelewy24 rarely provides this information so the attribute is usually empty. + attr_reader :verified_name + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class PayByBank < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Payco < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + attr_reader :buyer_id + # The Payco transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Paynow < ::Stripe::StripeObject + # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. + attr_reader :location + # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. + attr_reader :reader + # Reference number associated with this PayNow payment + attr_reader :reference + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Paypal < ::Stripe::StripeObject + class SellerProtection < ::Stripe::StripeObject + # An array of conditions that are covered for the transaction, if applicable. + attr_reader :dispute_categories + # Indicates whether the transaction is eligible for PayPal's seller protection. + attr_reader :status + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + attr_reader :country + # Owner's email. Values are provided by PayPal directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + attr_reader :payer_email + # PayPal account PayerID. This identifier uniquely identifies the PayPal customer. + attr_reader :payer_id + # Owner's full name. Values provided by PayPal directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + attr_reader :payer_name + # The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction. + attr_reader :seller_protection + # A unique ID generated by PayPal for this transaction. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = { seller_protection: SellerProtection } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Pix < ::Stripe::StripeObject + # Unique transaction id generated by BCB + attr_reader :bank_transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Promptpay < ::Stripe::StripeObject + # Bill reference generated by PromptPay + attr_reader :reference + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class RevolutPay < ::Stripe::StripeObject + class Funding < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + attr_reader :brand + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + attr_reader :country + # Two-digit number representing the card's expiration month. + attr_reader :exp_month + # Four-digit number representing the card's expiration year. + attr_reader :exp_year + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + attr_reader :funding + # The last four digits of the card. + attr_reader :last4 + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field card + attr_reader :card + # funding type of the underlying payment method. + attr_reader :type + + def self.inner_class_types + @inner_class_types = { card: Card } + end + + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field funding + attr_reader :funding + # The Revolut Pay transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = { funding: Funding } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class SamsungPay < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + attr_reader :buyer_id + # The Samsung Pay transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Satispay < ::Stripe::StripeObject + # The Satispay transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class SepaCreditTransfer < ::Stripe::StripeObject + # Name of the bank associated with the bank account. + attr_reader :bank_name + # Bank Identifier Code of the bank associated with the bank account. + attr_reader :bic + # IBAN of the bank account to transfer funds to. + attr_reader :iban + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class SepaDebit < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + attr_reader :bank_code + # Branch code of bank associated with the bank account. + attr_reader :branch_code + # Two-letter ISO code representing the country the bank account is located in. + attr_reader :country + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + attr_reader :fingerprint + # Last four characters of the IBAN. + attr_reader :last4 + # Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://stripe.com/docs/api/mandates/retrieve). + attr_reader :mandate + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Sofort < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + attr_reader :bank_code + # Name of the bank associated with the bank account. + attr_reader :bank_name + # Bank Identifier Code of the bank associated with the bank account. + attr_reader :bic + # Two-letter ISO code representing the country the bank account is located in. + attr_reader :country + # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. + attr_reader :generated_sepa_debit + # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. + attr_reader :generated_sepa_debit_mandate + # Last four characters of the IBAN. + attr_reader :iban_last4 + # Preferred language of the SOFORT authorization page that the customer is redirected to. + # Can be one of `de`, `en`, `es`, `fr`, `it`, `nl`, or `pl` + attr_reader :preferred_language + # Owner's verified full name. Values are verified or provided by SOFORT directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + attr_reader :verified_name + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class StripeAccount < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Swish < ::Stripe::StripeObject + # Uniquely identifies the payer's Swish account. You can use this attribute to check whether two Swish transactions were paid for by the same payer + attr_reader :fingerprint + # Payer bank reference number for the payment + attr_reader :payment_reference + # The last four digits of the Swish account phone number + attr_reader :verified_phone_last4 + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Twint < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class UsBankAccount < ::Stripe::StripeObject + # Attribute for field account_holder_type + attr_reader :account_holder_type + # Attribute for field account_type + attr_reader :account_type + # Name of the bank associated with the bank account. + attr_reader :bank_name + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + attr_reader :fingerprint + # Last four digits of the bank account number. + attr_reader :last4 + # ID of the mandate used to make this payment. + attr_reader :mandate + # Reference number to locate ACH payments with customer’s bank. + attr_reader :payment_reference + # Routing number of the bank account. + attr_reader :routing_number + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Wechat < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class WechatPay < ::Stripe::StripeObject + # Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same. + attr_reader :fingerprint + # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. + attr_reader :location + # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. + attr_reader :reader + # Transaction ID of this particular WeChat Pay transaction. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Zip < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field ach_credit_transfer + attr_reader :ach_credit_transfer + # Attribute for field ach_debit + attr_reader :ach_debit + # Attribute for field acss_debit + attr_reader :acss_debit + # Attribute for field affirm + attr_reader :affirm + # Attribute for field afterpay_clearpay + attr_reader :afterpay_clearpay + # Attribute for field alipay + attr_reader :alipay + # Attribute for field alma + attr_reader :alma + # Attribute for field amazon_pay + attr_reader :amazon_pay + # Attribute for field au_becs_debit + attr_reader :au_becs_debit + # Attribute for field bacs_debit + attr_reader :bacs_debit + # Attribute for field bancontact + attr_reader :bancontact + # Attribute for field billie + attr_reader :billie + # The billing details associated with the method of payment. + attr_reader :billing_details + # Attribute for field blik + attr_reader :blik + # Attribute for field boleto + attr_reader :boleto + # Details of the card used for this payment attempt. + attr_reader :card + # Attribute for field card_present + attr_reader :card_present + # Attribute for field cashapp + attr_reader :cashapp + # Attribute for field crypto + attr_reader :crypto + # Custom Payment Methods represent Payment Method types not modeled directly in + # the Stripe API. This resource consists of details about the custom payment method + # used for this payment attempt. + attr_reader :custom + # Attribute for field customer_balance + attr_reader :customer_balance + # Attribute for field eps + attr_reader :eps + # Attribute for field fpx + attr_reader :fpx + # Attribute for field giropay + attr_reader :giropay + # Attribute for field grabpay + attr_reader :grabpay + # Attribute for field ideal + attr_reader :ideal + # Attribute for field interac_present + attr_reader :interac_present + # Attribute for field kakao_pay + attr_reader :kakao_pay + # Attribute for field klarna + attr_reader :klarna + # Attribute for field konbini + attr_reader :konbini + # Attribute for field kr_card + attr_reader :kr_card + # Attribute for field link + attr_reader :link + # Attribute for field mb_way + attr_reader :mb_way + # Attribute for field mobilepay + attr_reader :mobilepay + # Attribute for field multibanco + attr_reader :multibanco + # Attribute for field naver_pay + attr_reader :naver_pay + # Attribute for field nz_bank_account + attr_reader :nz_bank_account + # Attribute for field oxxo + attr_reader :oxxo + # Attribute for field p24 + attr_reader :p24 + # Attribute for field pay_by_bank + attr_reader :pay_by_bank + # Attribute for field payco + attr_reader :payco + # ID of the Stripe PaymentMethod used to make this payment. + attr_reader :payment_method + # Attribute for field paynow + attr_reader :paynow + # Attribute for field paypal + attr_reader :paypal + # Attribute for field pix + attr_reader :pix + # Attribute for field promptpay + attr_reader :promptpay + # Attribute for field revolut_pay + attr_reader :revolut_pay + # Attribute for field samsung_pay + attr_reader :samsung_pay + # Attribute for field satispay + attr_reader :satispay + # Attribute for field sepa_credit_transfer + attr_reader :sepa_credit_transfer + # Attribute for field sepa_debit + attr_reader :sepa_debit + # Attribute for field sofort + attr_reader :sofort + # Attribute for field stripe_account + attr_reader :stripe_account + # Attribute for field swish + attr_reader :swish + # Attribute for field twint + attr_reader :twint + # The type of transaction-specific details of the payment method used in the payment. See [PaymentMethod.type](https://stripe.com/docs/api/payment_methods/object#payment_method_object-type) for the full list of possible types. + # An additional hash is included on `payment_method_details` with a name matching this value. + # It contains information specific to the payment method. + attr_reader :type + # Details of the US Bank Account used for this payment attempt. + attr_reader :us_bank_account + # Attribute for field wechat + attr_reader :wechat + # Attribute for field wechat_pay + attr_reader :wechat_pay + # Attribute for field zip + attr_reader :zip + + def self.inner_class_types + @inner_class_types = { + ach_credit_transfer: AchCreditTransfer, + ach_debit: AchDebit, + acss_debit: AcssDebit, + affirm: Affirm, + afterpay_clearpay: AfterpayClearpay, + alipay: Alipay, + alma: Alma, + amazon_pay: AmazonPay, + au_becs_debit: AuBecsDebit, + bacs_debit: BacsDebit, + bancontact: Bancontact, + billie: Billie, + billing_details: BillingDetails, + blik: Blik, + boleto: Boleto, + card: Card, + card_present: CardPresent, + cashapp: Cashapp, + crypto: Crypto, + custom: Custom, + customer_balance: CustomerBalance, + eps: Eps, + fpx: Fpx, + giropay: Giropay, + grabpay: Grabpay, + ideal: Ideal, + interac_present: InteracPresent, + kakao_pay: KakaoPay, + klarna: Klarna, + konbini: Konbini, + kr_card: KrCard, + link: Link, + mb_way: MbWay, + mobilepay: Mobilepay, + multibanco: Multibanco, + naver_pay: NaverPay, + nz_bank_account: NzBankAccount, + oxxo: Oxxo, + p24: P24, + pay_by_bank: PayByBank, + payco: Payco, + paynow: Paynow, + paypal: Paypal, + pix: Pix, + promptpay: Promptpay, + revolut_pay: RevolutPay, + samsung_pay: SamsungPay, + satispay: Satispay, + sepa_credit_transfer: SepaCreditTransfer, + sepa_debit: SepaDebit, + sofort: Sofort, + stripe_account: StripeAccount, + swish: Swish, + twint: Twint, + us_bank_account: UsBankAccount, + wechat: Wechat, + wechat_pay: WechatPay, + zip: Zip, + } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class ProcessorDetails < ::Stripe::StripeObject + class Custom < ::Stripe::StripeObject + # An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID. + attr_reader :payment_reference + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Custom processors represent payment processors not modeled directly in + # the Stripe API. This resource consists of details about the custom processor + # used for this payment attempt. + attr_reader :custom + # The processor used for this payment attempt. + attr_reader :type + + def self.inner_class_types + @inner_class_types = { custom: Custom } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class ShippingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject + # City, district, suburb, town, or village. + attr_reader :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_reader :country + # Address line 1, such as the street, PO Box, or company name. + attr_reader :line1 + # Address line 2, such as the apartment, suite, unit, or building. + attr_reader :line2 + # ZIP or postal code. + attr_reader :postal_code + # State, county, province, or region. + attr_reader :state + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # A representation of a physical address. + attr_reader :address + # The shipping recipient's name. + attr_reader :name + # The shipping recipient's phone number. + attr_reader :phone + + def self.inner_class_types + @inner_class_types = { address: Address } + end + + def self.field_remappings + @field_remappings = {} + end + end + # A representation of an amount of money, consisting of an amount and a currency. + attr_reader :amount + # A representation of an amount of money, consisting of an amount and a currency. + attr_reader :amount_authorized + # A representation of an amount of money, consisting of an amount and a currency. + attr_reader :amount_canceled + # A representation of an amount of money, consisting of an amount and a currency. + attr_reader :amount_failed + # A representation of an amount of money, consisting of an amount and a currency. + attr_reader :amount_guaranteed + # A representation of an amount of money, consisting of an amount and a currency. + attr_reader :amount_refunded + # A representation of an amount of money, consisting of an amount and a currency. + attr_reader :amount_requested + # ID of the Connect application that created the PaymentAttemptRecord. + attr_reader :application + # Time at which the object was created. Measured in seconds since the Unix epoch. + attr_reader :created + # Customer information for this payment. + attr_reader :customer_details + # Indicates whether the customer was present in your checkout flow during this payment. + attr_reader :customer_presence + # An arbitrary string attached to the object. Often useful for displaying to users. + attr_reader :description + # Unique identifier for the object. + attr_reader :id + # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + attr_reader :livemode + # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + attr_reader :metadata + # String representing the object's type. Objects of the same type share the same value. + attr_reader :object + # Information about the Payment Method debited for this payment. + attr_reader :payment_method_details + # ID of the Payment Record this Payment Attempt Record belongs to. + attr_reader :payment_record + # Processor information associated with this payment. + attr_reader :processor_details + # Indicates who reported the payment. + attr_reader :reported_by + # Shipping information for this payment. + attr_reader :shipping_details + + # List all the Payment Attempt Records attached to the specified Payment Record. + def self.list(params = {}, opts = {}) + request_stripe_object( + method: :get, + path: "/v1/payment_attempt_records", + params: params, + opts: opts + ) + end + + def self.inner_class_types + @inner_class_types = { + amount: Amount, + amount_authorized: AmountAuthorized, + amount_canceled: AmountCanceled, + amount_failed: AmountFailed, + amount_guaranteed: AmountGuaranteed, + amount_refunded: AmountRefunded, + amount_requested: AmountRequested, + customer_details: CustomerDetails, + payment_method_details: PaymentMethodDetails, + processor_details: ProcessorDetails, + shipping_details: ShippingDetails, + } + end + + def self.field_remappings + @field_remappings = {} + end + end +end diff --git a/lib/stripe/resources/payment_intent.rb b/lib/stripe/resources/payment_intent.rb index 892b3ec2..160b3d79 100644 --- a/lib/stripe/resources/payment_intent.rb +++ b/lib/stripe/resources/payment_intent.rb @@ -16,6 +16,7 @@ module Stripe class PaymentIntent < APIResource extend Stripe::APIOperations::Create extend Stripe::APIOperations::List + extend Stripe::APIOperations::NestedResource extend Stripe::APIOperations::Search include Stripe::APIOperations::Save @@ -24,8 +25,40 @@ module Stripe "payment_intent" end - class AmountDetails < Stripe::StripeObject - class Tip < Stripe::StripeObject + nested_resource_class_methods :amount_details_line_item, operations: %i[list] + + class AmountDetails < ::Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + # Portion of the amount that is for shipping. + attr_reader :amount + # The postal code that represents the shipping source. + attr_reader :from_postal_code + # The postal code that represents the shipping destination. + attr_reader :to_postal_code + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Tax < ::Stripe::StripeObject + # Total portion of the amount that is for tax. + attr_reader :total_tax_amount + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Tip < ::Stripe::StripeObject # Portion of the amount that corresponds to a tip. attr_reader :amount @@ -37,11 +70,19 @@ module Stripe @field_remappings = {} end end + # The total discount applied on the transaction. + attr_reader :discount_amount + # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. + attr_reader :line_items + # Attribute for field shipping + attr_reader :shipping + # Attribute for field tax + attr_reader :tax # Attribute for field tip attr_reader :tip def self.inner_class_types - @inner_class_types = { tip: Tip } + @inner_class_types = { shipping: Shipping, tax: Tax, tip: Tip } end def self.field_remappings @@ -49,7 +90,7 @@ module Stripe end end - class AutomaticPaymentMethods < Stripe::StripeObject + class AutomaticPaymentMethods < ::Stripe::StripeObject # Controls whether this PaymentIntent will accept redirect-based payment methods. # # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment. @@ -66,7 +107,7 @@ module Stripe end end - class LastPaymentError < Stripe::StripeObject + class LastPaymentError < ::Stripe::StripeObject # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one. attr_reader :advice_code # For card errors, the ID of the failed charge. @@ -143,8 +184,8 @@ module Stripe end end - class NextAction < Stripe::StripeObject - class AlipayHandleRedirect < Stripe::StripeObject + class NextAction < ::Stripe::StripeObject + class AlipayHandleRedirect < ::Stripe::StripeObject # The native data to be used with Alipay SDK you must redirect your customer to in order to authenticate the payment in an Android App. attr_reader :native_data # The native URL you must redirect your customer to in order to authenticate the payment in an iOS App. @@ -163,7 +204,7 @@ module Stripe end end - class BoletoDisplayDetails < Stripe::StripeObject + class BoletoDisplayDetails < ::Stripe::StripeObject # The timestamp after which the boleto expires. attr_reader :expires_at # The URL to the hosted boleto voucher page, which allows customers to view the boleto voucher. @@ -182,7 +223,7 @@ module Stripe end end - class CardAwaitNotification < Stripe::StripeObject + class CardAwaitNotification < ::Stripe::StripeObject # The time that payment will be attempted. If customer approval is required, they need to provide approval before this time. attr_reader :charge_attempt_at # For payments greater than INR 15000, the customer must provide explicit approval of the payment with their bank. For payments of lower amount, no customer action is required. @@ -197,8 +238,8 @@ module Stripe end end - class CashappHandleRedirectOrDisplayQrCode < Stripe::StripeObject - class QrCode < Stripe::StripeObject + class CashappHandleRedirectOrDisplayQrCode < ::Stripe::StripeObject + class QrCode < ::Stripe::StripeObject # The date (unix timestamp) when the QR code expires. attr_reader :expires_at # The image_url_png string used to render QR code @@ -230,10 +271,10 @@ module Stripe end end - class DisplayBankTransferInstructions < Stripe::StripeObject - class FinancialAddress < Stripe::StripeObject - class Aba < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class DisplayBankTransferInstructions < ::Stripe::StripeObject + class FinancialAddress < ::Stripe::StripeObject + class Aba < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -256,7 +297,7 @@ module Stripe end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -305,8 +346,8 @@ module Stripe end end - class Iban < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Iban < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -329,7 +370,7 @@ module Stripe end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -376,8 +417,8 @@ module Stripe end end - class SortCode < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class SortCode < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -400,7 +441,7 @@ module Stripe end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -445,8 +486,8 @@ module Stripe end end - class Spei < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Spei < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -469,7 +510,7 @@ module Stripe end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -516,8 +557,8 @@ module Stripe end end - class Swift < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Swift < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -540,7 +581,7 @@ module Stripe end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -589,8 +630,8 @@ module Stripe end end - class Zengin < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Zengin < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -613,7 +654,7 @@ module Stripe end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -719,9 +760,9 @@ module Stripe end end - class KonbiniDisplayDetails < Stripe::StripeObject - class Stores < Stripe::StripeObject - class Familymart < Stripe::StripeObject + class KonbiniDisplayDetails < ::Stripe::StripeObject + class Stores < ::Stripe::StripeObject + class Familymart < ::Stripe::StripeObject # The confirmation number. attr_reader :confirmation_number # The payment code. @@ -736,7 +777,7 @@ module Stripe end end - class Lawson < Stripe::StripeObject + class Lawson < ::Stripe::StripeObject # The confirmation number. attr_reader :confirmation_number # The payment code. @@ -751,7 +792,7 @@ module Stripe end end - class Ministop < Stripe::StripeObject + class Ministop < ::Stripe::StripeObject # The confirmation number. attr_reader :confirmation_number # The payment code. @@ -766,7 +807,7 @@ module Stripe end end - class Seicomart < Stripe::StripeObject + class Seicomart < ::Stripe::StripeObject # The confirmation number. attr_reader :confirmation_number # The payment code. @@ -818,7 +859,7 @@ module Stripe end end - class MultibancoDisplayDetails < Stripe::StripeObject + class MultibancoDisplayDetails < ::Stripe::StripeObject # Entity number associated with this Multibanco payment. attr_reader :entity # The timestamp at which the Multibanco voucher expires. @@ -837,7 +878,7 @@ module Stripe end end - class OxxoDisplayDetails < Stripe::StripeObject + class OxxoDisplayDetails < ::Stripe::StripeObject # The timestamp after which the OXXO voucher expires. attr_reader :expires_after # The URL for the hosted OXXO voucher page, which allows customers to view and print an OXXO voucher. @@ -854,7 +895,7 @@ module Stripe end end - class PaynowDisplayQrCode < Stripe::StripeObject + class PaynowDisplayQrCode < ::Stripe::StripeObject # The raw data string used to generate QR code, it should be used together with QR code library. attr_reader :data # The URL to the hosted PayNow instructions page, which allows customers to view the PayNow QR code. @@ -873,7 +914,7 @@ module Stripe end end - class PixDisplayQrCode < Stripe::StripeObject + class PixDisplayQrCode < ::Stripe::StripeObject # The raw data string used to generate QR code, it should be used together with QR code library. attr_reader :data # The date (unix timestamp) when the PIX expires. @@ -894,7 +935,7 @@ module Stripe end end - class PromptpayDisplayQrCode < Stripe::StripeObject + class PromptpayDisplayQrCode < ::Stripe::StripeObject # The raw data string used to generate QR code, it should be used together with QR code library. attr_reader :data # The URL to the hosted PromptPay instructions page, which allows customers to view the PromptPay QR code. @@ -913,7 +954,7 @@ module Stripe end end - class RedirectToUrl < Stripe::StripeObject + class RedirectToUrl < ::Stripe::StripeObject # If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion. attr_reader :return_url # The URL you must redirect your customer to in order to authenticate the payment. @@ -928,8 +969,8 @@ module Stripe end end - class SwishHandleRedirectOrDisplayQrCode < Stripe::StripeObject - class QrCode < Stripe::StripeObject + class SwishHandleRedirectOrDisplayQrCode < ::Stripe::StripeObject + class QrCode < ::Stripe::StripeObject # The raw data string used to generate QR code, it should be used together with QR code library. attr_reader :data # The image_url_png string used to render QR code @@ -961,7 +1002,7 @@ module Stripe end end - class VerifyWithMicrodeposits < Stripe::StripeObject + class VerifyWithMicrodeposits < ::Stripe::StripeObject # The timestamp when the microdeposits are expected to land. attr_reader :arrival_date # The URL for the hosted verification page, which allows customers to verify their bank account. @@ -978,7 +1019,7 @@ module Stripe end end - class WechatPayDisplayQrCode < Stripe::StripeObject + class WechatPayDisplayQrCode < ::Stripe::StripeObject # The data being used to generate QR code attr_reader :data # The URL to the hosted WeChat Pay instructions page, which allows customers to view the WeChat Pay QR code. @@ -999,7 +1040,7 @@ module Stripe end end - class WechatPayRedirectToAndroidApp < Stripe::StripeObject + class WechatPayRedirectToAndroidApp < ::Stripe::StripeObject # app_id is the APP ID registered on WeChat open platform attr_reader :app_id # nonce_str is a random string @@ -1024,7 +1065,7 @@ module Stripe end end - class WechatPayRedirectToIosApp < Stripe::StripeObject + class WechatPayRedirectToIosApp < ::Stripe::StripeObject # An universal link that redirect to WeChat Pay app attr_reader :native_url @@ -1102,7 +1143,22 @@ module Stripe end end - class PaymentMethodConfigurationDetails < Stripe::StripeObject + class PaymentDetails < ::Stripe::StripeObject + # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + attr_reader :customer_reference + # A unique value assigned by the business to identify the transaction. + attr_reader :order_reference + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class PaymentMethodConfigurationDetails < ::Stripe::StripeObject # ID of the payment method configuration used. attr_reader :id # ID of the parent payment method configuration used. @@ -1117,9 +1173,9 @@ module Stripe end end - class PaymentMethodOptions < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class PaymentMethodOptions < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # A URL for custom mandate text attr_reader :custom_mandate_url # Description of the interval. Only required if the 'payment_schedule' parameter is 'interval' or 'combined'. @@ -1161,7 +1217,7 @@ module Stripe end end - class Affirm < Stripe::StripeObject + class Affirm < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # Preferred language of the Affirm authorization page that the customer is redirected to. @@ -1184,7 +1240,7 @@ module Stripe end end - class AfterpayClearpay < Stripe::StripeObject + class AfterpayClearpay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # An internal identifier or reference that this payment corresponds to. You must limit the identifier to 128 characters, and it can only contain letters, numbers, underscores, backslashes, and dashes. @@ -1208,7 +1264,7 @@ module Stripe end end - class Alipay < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1227,7 +1283,7 @@ module Stripe end end - class Alma < Stripe::StripeObject + class Alma < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method @@ -1240,7 +1296,7 @@ module Stripe end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1261,7 +1317,7 @@ module Stripe end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1282,8 +1338,8 @@ module Stripe end end - class BacsDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. attr_reader :reference_prefix @@ -1317,7 +1373,7 @@ module Stripe end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject # Preferred language of the Bancontact authorization page that the customer is redirected to. attr_reader :preferred_language # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1338,7 +1394,7 @@ module Stripe end end - class Billie < Stripe::StripeObject + class Billie < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method @@ -1351,7 +1407,7 @@ module Stripe end end - class Blik < Stripe::StripeObject + class Blik < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1370,7 +1426,7 @@ module Stripe end end - class Boleto < Stripe::StripeObject + class Boleto < ::Stripe::StripeObject # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto voucher will expire on Wednesday at 23:59 America/Sao_Paulo time. attr_reader :expires_after_days # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1391,9 +1447,9 @@ module Stripe end end - class Card < Stripe::StripeObject - class Installments < Stripe::StripeObject - class AvailablePlan < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Installments < ::Stripe::StripeObject + class AvailablePlan < ::Stripe::StripeObject # For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card. attr_reader :count # For `fixed_count` installment plans, this is the interval between installment payments your customer will make to their credit card. @@ -1411,7 +1467,7 @@ module Stripe end end - class Plan < Stripe::StripeObject + class Plan < ::Stripe::StripeObject # For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card. attr_reader :count # For `fixed_count` installment plans, this is the interval between installment payments your customer will make to their credit card. @@ -1444,7 +1500,7 @@ module Stripe end end - class MandateOptions < Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Amount to be charged for future payments. attr_reader :amount # One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. @@ -1516,8 +1572,8 @@ module Stripe end end - class CardPresent < Stripe::StripeObject - class Routing < Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject + class Routing < ::Stripe::StripeObject # Requested routing priority attr_reader :requested_priority @@ -1545,7 +1601,7 @@ module Stripe end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1566,7 +1622,7 @@ module Stripe end end - class Crypto < Stripe::StripeObject + class Crypto < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1585,9 +1641,9 @@ module Stripe end end - class CustomerBalance < Stripe::StripeObject - class BankTransfer < Stripe::StripeObject - class EuBankTransfer < Stripe::StripeObject + class CustomerBalance < ::Stripe::StripeObject + class BankTransfer < ::Stripe::StripeObject + class EuBankTransfer < ::Stripe::StripeObject # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. attr_reader :country @@ -1638,7 +1694,7 @@ module Stripe end end - class Eps < Stripe::StripeObject + class Eps < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1657,7 +1713,7 @@ module Stripe end end - class Fpx < Stripe::StripeObject + class Fpx < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1676,7 +1732,7 @@ module Stripe end end - class Giropay < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1695,7 +1751,7 @@ module Stripe end end - class Grabpay < Stripe::StripeObject + class Grabpay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1714,7 +1770,7 @@ module Stripe end end - class Ideal < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1733,7 +1789,7 @@ module Stripe end end - class InteracPresent < Stripe::StripeObject + class InteracPresent < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1743,7 +1799,7 @@ module Stripe end end - class KakaoPay < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1764,7 +1820,7 @@ module Stripe end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # Preferred locale of the Klarna checkout page that the customer is redirected to. @@ -1787,7 +1843,7 @@ module Stripe end end - class Konbini < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject # An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. attr_reader :confirmation_number # The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. @@ -1814,7 +1870,7 @@ module Stripe end end - class KrCard < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1835,7 +1891,7 @@ module Stripe end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # [Deprecated] This is a legacy parameter that no longer has any function. @@ -1858,7 +1914,7 @@ module Stripe end end - class MbWay < Stripe::StripeObject + class MbWay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1877,7 +1933,7 @@ module Stripe end end - class Mobilepay < Stripe::StripeObject + class Mobilepay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1898,7 +1954,7 @@ module Stripe end end - class Multibanco < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1917,7 +1973,7 @@ module Stripe end end - class NaverPay < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1938,7 +1994,7 @@ module Stripe end end - class NzBankAccount < Stripe::StripeObject + class NzBankAccount < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1959,7 +2015,7 @@ module Stripe end end - class Oxxo < Stripe::StripeObject + class Oxxo < ::Stripe::StripeObject # The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. attr_reader :expires_after_days # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1980,7 +2036,7 @@ module Stripe end end - class P24 < Stripe::StripeObject + class P24 < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1999,7 +2055,7 @@ module Stripe end end - class PayByBank < Stripe::StripeObject + class PayByBank < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -2009,7 +2065,7 @@ module Stripe end end - class Payco < Stripe::StripeObject + class Payco < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method @@ -2022,7 +2078,7 @@ module Stripe end end - class Paynow < Stripe::StripeObject + class Paynow < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2041,7 +2097,7 @@ module Stripe end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # Preferred locale of the PayPal checkout page that the customer is redirected to. @@ -2066,7 +2122,7 @@ module Stripe end end - class Pix < Stripe::StripeObject + class Pix < ::Stripe::StripeObject # Determines if the amount includes the IOF tax. attr_reader :amount_includes_iof # The number of seconds (between 10 and 1209600) after which Pix payment will expire. @@ -2091,7 +2147,7 @@ module Stripe end end - class Promptpay < Stripe::StripeObject + class Promptpay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2110,7 +2166,7 @@ module Stripe end end - class RevolutPay < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2131,7 +2187,7 @@ module Stripe end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method @@ -2144,7 +2200,7 @@ module Stripe end end - class Satispay < Stripe::StripeObject + class Satispay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. attr_reader :capture_method @@ -2157,8 +2213,8 @@ module Stripe end end - class SepaDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. attr_reader :reference_prefix @@ -2192,7 +2248,7 @@ module Stripe end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject # Preferred language of the SOFORT authorization page that the customer is redirected to. attr_reader :preferred_language # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2213,7 +2269,7 @@ module Stripe end end - class Swish < Stripe::StripeObject + class Swish < ::Stripe::StripeObject # A reference for this payment to be displayed in the Swish app. attr_reader :reference # Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2234,7 +2290,7 @@ module Stripe end end - class Twint < Stripe::StripeObject + class Twint < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2253,9 +2309,9 @@ module Stripe end end - class UsBankAccount < Stripe::StripeObject - class FinancialConnections < Stripe::StripeObject - class Filters < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject + class FinancialConnections < ::Stripe::StripeObject + class Filters < ::Stripe::StripeObject # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. attr_reader :account_subcategories @@ -2285,7 +2341,7 @@ module Stripe end end - class MandateOptions < Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Mandate collection method attr_reader :collection_method @@ -2328,7 +2384,7 @@ module Stripe end end - class WechatPay < Stripe::StripeObject + class WechatPay < ::Stripe::StripeObject # The app ID registered with WeChat Pay. Only required when client is ios or android. attr_reader :app_id # The client type that the end customer will pay from @@ -2351,7 +2407,7 @@ module Stripe end end - class Zip < Stripe::StripeObject + class Zip < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2533,7 +2589,7 @@ module Stripe end end - class PresentmentDetails < Stripe::StripeObject + class PresentmentDetails < ::Stripe::StripeObject # Amount intended to be collected by this payment, denominated in `presentment_currency`. attr_reader :presentment_amount # Currency presented to the customer during payment. @@ -2548,9 +2604,9 @@ module Stripe end end - class Processing < Stripe::StripeObject - class Card < Stripe::StripeObject - class CustomerNotification < Stripe::StripeObject + class Processing < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + class CustomerNotification < ::Stripe::StripeObject # Whether customer approval has been requested for this payment. For payments greater than INR 15000 or mandate amount, the customer must provide explicit approval of the payment with their bank. attr_reader :approval_requested # If customer approval is required, they need to provide approval before this time. @@ -2589,8 +2645,8 @@ module Stripe end end - class Shipping < Stripe::StripeObject - class Address < Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -2632,7 +2688,7 @@ module Stripe end end - class TransferData < Stripe::StripeObject + class TransferData < ::Stripe::StripeObject # The amount transferred to the destination account. This transfer will occur automatically after the payment succeeds. If no amount is specified, by default the entire payment amount is transferred to the destination account. # The amount must be less than or equal to the [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount), and must be a positive integer # representing how much to transfer in the smallest currency unit (e.g., 100 cents to charge $1.00). @@ -2706,6 +2762,8 @@ module Stripe attr_reader :object # The account (if any) for which the funds of the PaymentIntent are intended. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts) for details. attr_reader :on_behalf_of + # Attribute for field payment_details + attr_reader :payment_details # ID of the payment method used in this PaymentIntent. attr_reader :payment_method # Information about the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) used for this PaymentIntent. @@ -3041,6 +3099,7 @@ module Stripe automatic_payment_methods: AutomaticPaymentMethods, last_payment_error: LastPaymentError, next_action: NextAction, + payment_details: PaymentDetails, payment_method_configuration_details: PaymentMethodConfigurationDetails, payment_method_options: PaymentMethodOptions, presentment_details: PresentmentDetails, diff --git a/lib/stripe/resources/payment_intent_amount_details_line_item.rb b/lib/stripe/resources/payment_intent_amount_details_line_item.rb new file mode 100644 index 00000000..659606c4 --- /dev/null +++ b/lib/stripe/resources/payment_intent_amount_details_line_item.rb @@ -0,0 +1,132 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + class PaymentIntentAmountDetailsLineItem < APIResource + OBJECT_NAME = "payment_intent_amount_details_line_item" + def self.object_name + "payment_intent_amount_details_line_item" + end + + class PaymentMethodOptions < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + # Attribute for field commodity_code + attr_reader :commodity_code + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class CardPresent < ::Stripe::StripeObject + # Attribute for field commodity_code + attr_reader :commodity_code + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Klarna < ::Stripe::StripeObject + # Attribute for field image_url + attr_reader :image_url + # Attribute for field product_url + attr_reader :product_url + # Attribute for field reference + attr_reader :reference + # Attribute for field subscription_reference + attr_reader :subscription_reference + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Paypal < ::Stripe::StripeObject + # Type of the line item. + attr_reader :category + # Description of the line item. + attr_reader :description + # The Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers). + attr_reader :sold_by + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field card + attr_reader :card + # Attribute for field card_present + attr_reader :card_present + # Attribute for field klarna + attr_reader :klarna + # Attribute for field paypal + attr_reader :paypal + + def self.inner_class_types + @inner_class_types = { card: Card, card_present: CardPresent, klarna: Klarna, paypal: Paypal } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Tax < ::Stripe::StripeObject + # Total portion of the amount that is for tax. + attr_reader :total_tax_amount + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # The amount an item was discounted for. Positive integer. + attr_reader :discount_amount + # Unique identifier for the object. + attr_reader :id + # String representing the object's type. Objects of the same type share the same value. + attr_reader :object + # Payment method-specific information for line items. + attr_reader :payment_method_options + # Unique identifier of the product. At most 12 characters long. + attr_reader :product_code + # Name of the product. At most 100 characters long. + attr_reader :product_name + # Number of items of the product. Positive integer. + attr_reader :quantity + # Contains information about the tax on the item. + attr_reader :tax + # Cost of the product. Non-negative integer. + attr_reader :unit_cost + # A unit of measure for the line item, such as gallons, feet, meters, etc. + attr_reader :unit_of_measure + + def self.inner_class_types + @inner_class_types = { payment_method_options: PaymentMethodOptions, tax: Tax } + end + + def self.field_remappings + @field_remappings = {} + end + end +end diff --git a/lib/stripe/resources/payment_link.rb b/lib/stripe/resources/payment_link.rb index 8a39198e..888751f7 100644 --- a/lib/stripe/resources/payment_link.rb +++ b/lib/stripe/resources/payment_link.rb @@ -17,8 +17,8 @@ module Stripe "payment_link" end - class AfterCompletion < Stripe::StripeObject - class HostedConfirmation < Stripe::StripeObject + class AfterCompletion < ::Stripe::StripeObject + class HostedConfirmation < ::Stripe::StripeObject # The custom message that is displayed to the customer after the purchase is complete. attr_reader :custom_message @@ -31,7 +31,7 @@ module Stripe end end - class Redirect < Stripe::StripeObject + class Redirect < ::Stripe::StripeObject # The URL the customer will be redirected to after the purchase is complete. attr_reader :url @@ -59,8 +59,8 @@ module Stripe end end - class AutomaticTax < Stripe::StripeObject - class Liability < Stripe::StripeObject + class AutomaticTax < ::Stripe::StripeObject + class Liability < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. attr_reader :account # Type of the account referenced. @@ -88,8 +88,8 @@ module Stripe end end - class ConsentCollection < Stripe::StripeObject - class PaymentMethodReuseAgreement < Stripe::StripeObject + class ConsentCollection < ::Stripe::StripeObject + class PaymentMethodReuseAgreement < ::Stripe::StripeObject # Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's defaults will be used. # # When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI. @@ -119,9 +119,9 @@ module Stripe end end - class CustomField < Stripe::StripeObject - class Dropdown < Stripe::StripeObject - class Option < Stripe::StripeObject + class CustomField < ::Stripe::StripeObject + class Dropdown < ::Stripe::StripeObject + class Option < ::Stripe::StripeObject # The label for the option, displayed to the customer. Up to 100 characters. attr_reader :label # The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters. @@ -149,7 +149,7 @@ module Stripe end end - class Label < Stripe::StripeObject + class Label < ::Stripe::StripeObject # Custom text for the label, displayed to the customer. Up to 50 characters. attr_reader :custom # The type of the label. @@ -164,7 +164,7 @@ module Stripe end end - class Numeric < Stripe::StripeObject + class Numeric < ::Stripe::StripeObject # The value that will pre-fill the field on the payment page. attr_reader :default_value # The maximum character length constraint for the customer's input. @@ -181,7 +181,7 @@ module Stripe end end - class Text < Stripe::StripeObject + class Text < ::Stripe::StripeObject # The value that will pre-fill the field on the payment page. attr_reader :default_value # The maximum character length constraint for the customer's input. @@ -221,8 +221,8 @@ module Stripe end end - class CustomText < Stripe::StripeObject - class AfterSubmit < Stripe::StripeObject + class CustomText < ::Stripe::StripeObject + class AfterSubmit < ::Stripe::StripeObject # Text may be up to 1200 characters in length. attr_reader :message @@ -235,7 +235,7 @@ module Stripe end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # Text may be up to 1200 characters in length. attr_reader :message @@ -248,7 +248,7 @@ module Stripe end end - class Submit < Stripe::StripeObject + class Submit < ::Stripe::StripeObject # Text may be up to 1200 characters in length. attr_reader :message @@ -261,7 +261,7 @@ module Stripe end end - class TermsOfServiceAcceptance < Stripe::StripeObject + class TermsOfServiceAcceptance < ::Stripe::StripeObject # Text may be up to 1200 characters in length. attr_reader :message @@ -296,9 +296,9 @@ module Stripe end end - class InvoiceCreation < Stripe::StripeObject - class InvoiceData < Stripe::StripeObject - class CustomField < Stripe::StripeObject + class InvoiceCreation < ::Stripe::StripeObject + class InvoiceData < ::Stripe::StripeObject + class CustomField < ::Stripe::StripeObject # The name of the custom field. attr_reader :name # The value of the custom field. @@ -313,7 +313,7 @@ module Stripe end end - class Issuer < Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. attr_reader :account # Type of the account referenced. @@ -328,7 +328,7 @@ module Stripe end end - class RenderingOptions < Stripe::StripeObject + class RenderingOptions < ::Stripe::StripeObject # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. attr_reader :amount_tax_display # ID of the invoice rendering template to be used for the generated invoice. @@ -383,8 +383,52 @@ module Stripe end end - class OptionalItem < Stripe::StripeObject - class AdjustableQuantity < Stripe::StripeObject + class NameCollection < ::Stripe::StripeObject + class Business < ::Stripe::StripeObject + # Indicates whether business name collection is enabled for the payment link. + attr_reader :enabled + # Whether the customer is required to complete the field before checking out. Defaults to `false`. + attr_reader :optional + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Individual < ::Stripe::StripeObject + # Indicates whether individual name collection is enabled for the payment link. + attr_reader :enabled + # Whether the customer is required to complete the field before checking out. Defaults to `false`. + attr_reader :optional + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field business + attr_reader :business + # Attribute for field individual + attr_reader :individual + + def self.inner_class_types + @inner_class_types = { business: Business, individual: Individual } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class OptionalItem < ::Stripe::StripeObject + class AdjustableQuantity < ::Stripe::StripeObject # Set to true if the quantity can be adjusted to any non-negative integer. attr_reader :enabled # The maximum quantity of this item the customer can purchase. By default this value is 99. @@ -416,7 +460,7 @@ module Stripe end end - class PaymentIntentData < Stripe::StripeObject + class PaymentIntentData < ::Stripe::StripeObject # Indicates when the funds will be captured from the customer's account. attr_reader :capture_method # An arbitrary string attached to the object. Often useful for displaying to users. @@ -441,7 +485,7 @@ module Stripe end end - class PhoneNumberCollection < Stripe::StripeObject + class PhoneNumberCollection < ::Stripe::StripeObject # If `true`, a phone number will be collected during checkout. attr_reader :enabled @@ -454,8 +498,8 @@ module Stripe end end - class Restrictions < Stripe::StripeObject - class CompletedSessions < Stripe::StripeObject + class Restrictions < ::Stripe::StripeObject + class CompletedSessions < ::Stripe::StripeObject # The current number of checkout sessions that have been completed on the payment link which count towards the `completed_sessions` restriction to be met. attr_reader :count # The maximum number of checkout sessions that can be completed for the `completed_sessions` restriction to be met. @@ -481,7 +525,7 @@ module Stripe end end - class ShippingAddressCollection < Stripe::StripeObject + class ShippingAddressCollection < ::Stripe::StripeObject # An array of two-letter ISO country codes representing which countries Checkout should provide as options for shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI`. attr_reader :allowed_countries @@ -494,7 +538,7 @@ module Stripe end end - class ShippingOption < Stripe::StripeObject + class ShippingOption < ::Stripe::StripeObject # A non-negative integer in cents representing how much to charge. attr_reader :shipping_amount # The ID of the Shipping Rate to use for this shipping option. @@ -509,9 +553,9 @@ module Stripe end end - class SubscriptionData < Stripe::StripeObject - class InvoiceSettings < Stripe::StripeObject - class Issuer < Stripe::StripeObject + class SubscriptionData < ::Stripe::StripeObject + class InvoiceSettings < ::Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. attr_reader :account # Type of the account referenced. @@ -537,8 +581,8 @@ module Stripe end end - class TrialSettings < Stripe::StripeObject - class EndBehavior < Stripe::StripeObject + class TrialSettings < ::Stripe::StripeObject + class EndBehavior < ::Stripe::StripeObject # Indicates how the subscription should change when the trial ends if the user did not provide a payment method. attr_reader :missing_payment_method @@ -581,7 +625,7 @@ module Stripe end end - class TaxIdCollection < Stripe::StripeObject + class TaxIdCollection < ::Stripe::StripeObject # Indicates whether tax ID collection is enabled for the session. attr_reader :enabled # Attribute for field required @@ -596,7 +640,7 @@ module Stripe end end - class TransferData < Stripe::StripeObject + class TransferData < ::Stripe::StripeObject # The amount in cents (or local equivalent) that will be transferred to the destination account. By default, the entire amount is transferred to the destination. attr_reader :amount # The connected account receiving the transfer. @@ -648,6 +692,8 @@ module Stripe attr_reader :livemode # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. attr_reader :metadata + # Attribute for field name_collection + attr_reader :name_collection # String representing the object's type. Objects of the same type share the same value. attr_reader :object # The account on behalf of which to charge. See the [Connect documentation](https://support.stripe.com/questions/sending-invoices-on-behalf-of-connected-accounts) for details. @@ -727,6 +773,7 @@ module Stripe custom_fields: CustomField, custom_text: CustomText, invoice_creation: InvoiceCreation, + name_collection: NameCollection, optional_items: OptionalItem, payment_intent_data: PaymentIntentData, phone_number_collection: PhoneNumberCollection, diff --git a/lib/stripe/resources/payment_method.rb b/lib/stripe/resources/payment_method.rb index a5997aab..3dcc671f 100644 --- a/lib/stripe/resources/payment_method.rb +++ b/lib/stripe/resources/payment_method.rb @@ -17,7 +17,7 @@ module Stripe "payment_method" end - class AcssDebit < Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject # Name of the bank associated with the bank account. attr_reader :bank_name # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. @@ -38,7 +38,7 @@ module Stripe end end - class Affirm < Stripe::StripeObject + class Affirm < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -48,7 +48,7 @@ module Stripe end end - class AfterpayClearpay < Stripe::StripeObject + class AfterpayClearpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -58,7 +58,7 @@ module Stripe end end - class Alipay < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -68,7 +68,7 @@ module Stripe end end - class Alma < Stripe::StripeObject + class Alma < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -78,7 +78,7 @@ module Stripe end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -88,7 +88,7 @@ module Stripe end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject # Six-digit number identifying bank and branch associated with this bank account. attr_reader :bsb_number # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. @@ -105,7 +105,7 @@ module Stripe end end - class BacsDebit < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. attr_reader :fingerprint # Last four digits of the bank account number. @@ -122,7 +122,7 @@ module Stripe end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -132,7 +132,7 @@ module Stripe end end - class Billie < Stripe::StripeObject + class Billie < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -142,8 +142,8 @@ module Stripe end end - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -185,7 +185,7 @@ module Stripe end end - class Blik < Stripe::StripeObject + class Blik < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -195,7 +195,7 @@ module Stripe end end - class Boleto < Stripe::StripeObject + class Boleto < ::Stripe::StripeObject # Uniquely identifies the customer tax id (CNPJ or CPF) attr_reader :tax_id @@ -208,8 +208,8 @@ module Stripe end end - class Card < Stripe::StripeObject - class Checks < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Checks < ::Stripe::StripeObject # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. attr_reader :address_line1_check # If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. @@ -226,10 +226,10 @@ module Stripe end end - class GeneratedFrom < Stripe::StripeObject - class PaymentMethodDetails < Stripe::StripeObject - class CardPresent < Stripe::StripeObject - class Offline < Stripe::StripeObject + class GeneratedFrom < ::Stripe::StripeObject + class PaymentMethodDetails < ::Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject + class Offline < ::Stripe::StripeObject # Time at which the payment was collected while offline attr_reader :stored_at # The method used to process this payment method offline. Only deferred is allowed. @@ -244,7 +244,7 @@ module Stripe end end - class Receipt < Stripe::StripeObject + class Receipt < ::Stripe::StripeObject # The type of account being debited or credited attr_reader :account_type # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers. @@ -273,7 +273,7 @@ module Stripe end end - class Wallet < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. attr_reader :type @@ -375,7 +375,7 @@ module Stripe end end - class Networks < Stripe::StripeObject + class Networks < ::Stripe::StripeObject # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). attr_reader :available # The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card. @@ -390,7 +390,7 @@ module Stripe end end - class ThreeDSecureUsage < Stripe::StripeObject + class ThreeDSecureUsage < ::Stripe::StripeObject # Whether 3D Secure is supported on this card. attr_reader :supported @@ -403,8 +403,8 @@ module Stripe end end - class Wallet < Stripe::StripeObject - class AmexExpressCheckout < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject + class AmexExpressCheckout < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -414,7 +414,7 @@ module Stripe end end - class ApplePay < Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -424,7 +424,7 @@ module Stripe end end - class GooglePay < Stripe::StripeObject + class GooglePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -434,7 +434,7 @@ module Stripe end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -444,8 +444,8 @@ module Stripe end end - class Masterpass < Stripe::StripeObject - class BillingAddress < Stripe::StripeObject + class Masterpass < ::Stripe::StripeObject + class BillingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -468,7 +468,7 @@ module Stripe end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -511,7 +511,7 @@ module Stripe end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -521,8 +521,8 @@ module Stripe end end - class VisaCheckout < Stripe::StripeObject - class BillingAddress < Stripe::StripeObject + class VisaCheckout < ::Stripe::StripeObject + class BillingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -545,7 +545,7 @@ module Stripe end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -674,8 +674,8 @@ module Stripe end end - class CardPresent < Stripe::StripeObject - class Networks < Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject + class Networks < ::Stripe::StripeObject # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). attr_reader :available # The preferred network for the card. @@ -690,7 +690,7 @@ module Stripe end end - class Offline < Stripe::StripeObject + class Offline < ::Stripe::StripeObject # Time at which the payment was collected while offline attr_reader :stored_at # The method used to process this payment method offline. Only deferred is allowed. @@ -705,7 +705,7 @@ module Stripe end end - class Wallet < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. attr_reader :type @@ -763,7 +763,7 @@ module Stripe end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject # A unique and immutable identifier assigned by Cash App to every buyer. attr_reader :buyer_id # A public identifier for buyers using Cash App. @@ -778,7 +778,7 @@ module Stripe end end - class Crypto < Stripe::StripeObject + class Crypto < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -788,7 +788,38 @@ module Stripe end end - class CustomerBalance < Stripe::StripeObject + class Custom < ::Stripe::StripeObject + class Logo < ::Stripe::StripeObject + # Content type of the Dashboard-only CustomPaymentMethodType logo. + attr_reader :content_type + # URL of the Dashboard-only CustomPaymentMethodType logo. + attr_reader :url + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Display name of the Dashboard-only CustomPaymentMethodType. + attr_reader :display_name + # Contains information about the Dashboard-only CustomPaymentMethodType logo. + attr_reader :logo + # ID of the Dashboard-only CustomPaymentMethodType. Not expandable. + attr_reader :type + + def self.inner_class_types + @inner_class_types = { logo: Logo } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class CustomerBalance < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -798,7 +829,7 @@ module Stripe end end - class Eps < Stripe::StripeObject + class Eps < ::Stripe::StripeObject # The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. attr_reader :bank @@ -811,7 +842,7 @@ module Stripe end end - class Fpx < Stripe::StripeObject + class Fpx < ::Stripe::StripeObject # Account holder type, if provided. Can be one of `individual` or `company`. attr_reader :account_holder_type # The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`. @@ -826,7 +857,7 @@ module Stripe end end - class Giropay < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -836,7 +867,7 @@ module Stripe end end - class Grabpay < Stripe::StripeObject + class Grabpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -846,7 +877,7 @@ module Stripe end end - class Ideal < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject # The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. attr_reader :bank # The Bank Identifier Code of the customer's bank, if the bank was provided. @@ -861,8 +892,8 @@ module Stripe end end - class InteracPresent < Stripe::StripeObject - class Networks < Stripe::StripeObject + class InteracPresent < ::Stripe::StripeObject + class Networks < ::Stripe::StripeObject # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). attr_reader :available # The preferred network for the card. @@ -916,7 +947,7 @@ module Stripe end end - class KakaoPay < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -926,8 +957,8 @@ module Stripe end end - class Klarna < Stripe::StripeObject - class Dob < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject + class Dob < ::Stripe::StripeObject # The day of birth, between 1 and 31. attr_reader :day # The month of birth, between 1 and 12. @@ -955,7 +986,7 @@ module Stripe end end - class Konbini < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -965,7 +996,7 @@ module Stripe end end - class KrCard < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject # The local credit or debit card brand. attr_reader :brand # The last four digits of the card. This may not be present for American Express cards. @@ -980,7 +1011,7 @@ module Stripe end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject # Account owner's email address. attr_reader :email # [Deprecated] This is a legacy parameter that no longer has any function. @@ -995,7 +1026,7 @@ module Stripe end end - class MbWay < Stripe::StripeObject + class MbWay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1005,7 +1036,7 @@ module Stripe end end - class Mobilepay < Stripe::StripeObject + class Mobilepay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1015,7 +1046,7 @@ module Stripe end end - class Multibanco < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1025,7 +1056,7 @@ module Stripe end end - class NaverPay < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject # Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same. attr_reader :buyer_id # Whether to fund this transaction with Naver Pay points or a card. @@ -1040,7 +1071,7 @@ module Stripe end end - class NzBankAccount < Stripe::StripeObject + class NzBankAccount < ::Stripe::StripeObject # The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. attr_reader :account_holder_name # The numeric code for the bank account's bank. @@ -1063,7 +1094,7 @@ module Stripe end end - class Oxxo < Stripe::StripeObject + class Oxxo < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1073,7 +1104,7 @@ module Stripe end end - class P24 < Stripe::StripeObject + class P24 < ::Stripe::StripeObject # The customer's bank, if provided. attr_reader :bank @@ -1086,7 +1117,7 @@ module Stripe end end - class PayByBank < Stripe::StripeObject + class PayByBank < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1096,7 +1127,7 @@ module Stripe end end - class Payco < Stripe::StripeObject + class Payco < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1106,7 +1137,7 @@ module Stripe end end - class Paynow < Stripe::StripeObject + class Paynow < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1116,7 +1147,7 @@ module Stripe end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. attr_reader :country # Owner's email. Values are provided by PayPal directly @@ -1134,7 +1165,7 @@ module Stripe end end - class Pix < Stripe::StripeObject + class Pix < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1144,7 +1175,7 @@ module Stripe end end - class Promptpay < Stripe::StripeObject + class Promptpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1154,7 +1185,7 @@ module Stripe end end - class RadarOptions < Stripe::StripeObject + class RadarOptions < ::Stripe::StripeObject # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. attr_reader :session @@ -1167,7 +1198,7 @@ module Stripe end end - class RevolutPay < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1177,7 +1208,7 @@ module Stripe end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1187,7 +1218,7 @@ module Stripe end end - class Satispay < Stripe::StripeObject + class Satispay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1197,8 +1228,8 @@ module Stripe end end - class SepaDebit < Stripe::StripeObject - class GeneratedFrom < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject + class GeneratedFrom < ::Stripe::StripeObject # The ID of the Charge that generated this PaymentMethod, if any. attr_reader :charge # The ID of the SetupAttempt that generated this PaymentMethod, if any. @@ -1234,7 +1265,7 @@ module Stripe end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject # Two-letter ISO code representing the country the bank account is located in. attr_reader :country @@ -1247,7 +1278,7 @@ module Stripe end end - class Swish < Stripe::StripeObject + class Swish < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1257,7 +1288,7 @@ module Stripe end end - class Twint < Stripe::StripeObject + class Twint < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1267,8 +1298,8 @@ module Stripe end end - class UsBankAccount < Stripe::StripeObject - class Networks < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject + class Networks < ::Stripe::StripeObject # The preferred network. attr_reader :preferred # All supported networks. @@ -1283,8 +1314,8 @@ module Stripe end end - class StatusDetails < Stripe::StripeObject - class Blocked < Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject + class Blocked < ::Stripe::StripeObject # The ACH network code that resulted in this block. attr_reader :network_code # The reason why this PaymentMethod's fingerprint has been blocked @@ -1337,7 +1368,7 @@ module Stripe end end - class WechatPay < Stripe::StripeObject + class WechatPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1347,7 +1378,7 @@ module Stripe end end - class Zip < Stripe::StripeObject + class Zip < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1394,6 +1425,8 @@ module Stripe attr_reader :created # Attribute for field crypto attr_reader :crypto + # Attribute for field custom + attr_reader :custom # The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer. attr_reader :customer # Attribute for field customer_balance @@ -1584,6 +1617,7 @@ module Stripe card_present: CardPresent, cashapp: Cashapp, crypto: Crypto, + custom: Custom, customer_balance: CustomerBalance, eps: Eps, fpx: Fpx, diff --git a/lib/stripe/resources/payment_method_configuration.rb b/lib/stripe/resources/payment_method_configuration.rb index f12fc447..49dc0a62 100644 --- a/lib/stripe/resources/payment_method_configuration.rb +++ b/lib/stripe/resources/payment_method_configuration.rb @@ -26,8 +26,8 @@ module Stripe "payment_method_configuration" end - class AcssDebit < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -57,8 +57,8 @@ module Stripe end end - class Affirm < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Affirm < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -88,8 +88,8 @@ module Stripe end end - class AfterpayClearpay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class AfterpayClearpay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -119,8 +119,8 @@ module Stripe end end - class Alipay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -150,8 +150,8 @@ module Stripe end end - class Alma < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Alma < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -181,8 +181,8 @@ module Stripe end end - class AmazonPay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -212,8 +212,8 @@ module Stripe end end - class ApplePay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -243,8 +243,8 @@ module Stripe end end - class AuBecsDebit < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -274,8 +274,8 @@ module Stripe end end - class BacsDebit < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -305,8 +305,8 @@ module Stripe end end - class Bancontact < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -336,8 +336,8 @@ module Stripe end end - class Billie < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Billie < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -367,8 +367,8 @@ module Stripe end end - class Blik < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Blik < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -398,8 +398,8 @@ module Stripe end end - class Boleto < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Boleto < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -429,8 +429,8 @@ module Stripe end end - class Card < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -460,8 +460,8 @@ module Stripe end end - class CartesBancaires < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class CartesBancaires < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -491,8 +491,8 @@ module Stripe end end - class Cashapp < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -522,8 +522,8 @@ module Stripe end end - class CustomerBalance < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Crypto < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -553,8 +553,8 @@ module Stripe end end - class Eps < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class CustomerBalance < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -584,8 +584,8 @@ module Stripe end end - class Fpx < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Eps < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -615,8 +615,8 @@ module Stripe end end - class Giropay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Fpx < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -646,8 +646,8 @@ module Stripe end end - class GooglePay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -677,8 +677,8 @@ module Stripe end end - class Grabpay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class GooglePay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -708,8 +708,8 @@ module Stripe end end - class Ideal < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Grabpay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -739,8 +739,8 @@ module Stripe end end - class Jcb < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -770,8 +770,8 @@ module Stripe end end - class KakaoPay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Jcb < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -801,8 +801,8 @@ module Stripe end end - class Klarna < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -832,8 +832,8 @@ module Stripe end end - class Konbini < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -863,8 +863,8 @@ module Stripe end end - class KrCard < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -894,8 +894,8 @@ module Stripe end end - class Link < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -925,8 +925,8 @@ module Stripe end end - class Mobilepay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Link < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -956,8 +956,8 @@ module Stripe end end - class Multibanco < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class MbWay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -987,8 +987,8 @@ module Stripe end end - class NaverPay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Mobilepay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -1018,8 +1018,8 @@ module Stripe end end - class NzBankAccount < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -1049,8 +1049,8 @@ module Stripe end end - class Oxxo < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -1080,8 +1080,8 @@ module Stripe end end - class P24 < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class NzBankAccount < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -1111,8 +1111,8 @@ module Stripe end end - class PayByBank < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Oxxo < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -1142,8 +1142,8 @@ module Stripe end end - class Payco < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class P24 < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -1173,8 +1173,8 @@ module Stripe end end - class Paynow < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class PayByBank < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -1204,8 +1204,8 @@ module Stripe end end - class Paypal < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Payco < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -1235,8 +1235,8 @@ module Stripe end end - class Pix < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Paynow < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -1266,8 +1266,8 @@ module Stripe end end - class Promptpay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -1297,8 +1297,8 @@ module Stripe end end - class RevolutPay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Pix < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -1328,8 +1328,8 @@ module Stripe end end - class SamsungPay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Promptpay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -1359,8 +1359,8 @@ module Stripe end end - class Satispay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -1390,8 +1390,8 @@ module Stripe end end - class SepaDebit < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -1421,8 +1421,8 @@ module Stripe end end - class Sofort < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Satispay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -1452,8 +1452,8 @@ module Stripe end end - class Swish < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -1483,8 +1483,8 @@ module Stripe end end - class Twint < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -1514,8 +1514,8 @@ module Stripe end end - class UsBankAccount < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Swish < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -1545,8 +1545,8 @@ module Stripe end end - class WechatPay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Twint < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -1576,8 +1576,70 @@ module Stripe end end - class Zip < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject + # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + attr_reader :overridable + # The account's display preference. + attr_reader :preference + # The effective display preference value. + attr_reader :value + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + attr_reader :available + # Attribute for field display_preference + attr_reader :display_preference + + def self.inner_class_types + @inner_class_types = { display_preference: DisplayPreference } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class WechatPay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject + # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + attr_reader :overridable + # The account's display preference. + attr_reader :preference + # The effective display preference value. + attr_reader :value + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + attr_reader :available + # Attribute for field display_preference + attr_reader :display_preference + + def self.inner_class_types + @inner_class_types = { display_preference: DisplayPreference } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Zip < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. attr_reader :overridable # The account's display preference. @@ -1642,6 +1704,8 @@ module Stripe attr_reader :cartes_bancaires # Attribute for field cashapp attr_reader :cashapp + # Attribute for field crypto + attr_reader :crypto # Attribute for field customer_balance attr_reader :customer_balance # Attribute for field eps @@ -1674,6 +1738,8 @@ module Stripe attr_reader :link # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. attr_reader :livemode + # Attribute for field mb_way + attr_reader :mb_way # Attribute for field mobilepay attr_reader :mobilepay # Attribute for field multibanco @@ -1773,6 +1839,7 @@ module Stripe card: Card, cartes_bancaires: CartesBancaires, cashapp: Cashapp, + crypto: Crypto, customer_balance: CustomerBalance, eps: Eps, fpx: Fpx, @@ -1786,6 +1853,7 @@ module Stripe konbini: Konbini, kr_card: KrCard, link: Link, + mb_way: MbWay, mobilepay: Mobilepay, multibanco: Multibanco, naver_pay: NaverPay, diff --git a/lib/stripe/resources/payment_method_domain.rb b/lib/stripe/resources/payment_method_domain.rb index 98ad1e36..2db87744 100644 --- a/lib/stripe/resources/payment_method_domain.rb +++ b/lib/stripe/resources/payment_method_domain.rb @@ -16,8 +16,8 @@ module Stripe "payment_method_domain" end - class AmazonPay < Stripe::StripeObject - class StatusDetails < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject # The error message associated with the status of the payment method on the domain. attr_reader :error_message @@ -43,8 +43,8 @@ module Stripe end end - class ApplePay < Stripe::StripeObject - class StatusDetails < Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject # The error message associated with the status of the payment method on the domain. attr_reader :error_message @@ -70,8 +70,8 @@ module Stripe end end - class GooglePay < Stripe::StripeObject - class StatusDetails < Stripe::StripeObject + class GooglePay < ::Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject # The error message associated with the status of the payment method on the domain. attr_reader :error_message @@ -97,8 +97,8 @@ module Stripe end end - class Klarna < Stripe::StripeObject - class StatusDetails < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject # The error message associated with the status of the payment method on the domain. attr_reader :error_message @@ -124,8 +124,8 @@ module Stripe end end - class Link < Stripe::StripeObject - class StatusDetails < Stripe::StripeObject + class Link < ::Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject # The error message associated with the status of the payment method on the domain. attr_reader :error_message @@ -151,8 +151,8 @@ module Stripe end end - class Paypal < Stripe::StripeObject - class StatusDetails < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject # The error message associated with the status of the payment method on the domain. attr_reader :error_message diff --git a/lib/stripe/resources/payment_record.rb b/lib/stripe/resources/payment_record.rb new file mode 100644 index 00000000..d431fa99 --- /dev/null +++ b/lib/stripe/resources/payment_record.rb @@ -0,0 +1,2031 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + # A Payment Record is a resource that allows you to represent payments that occur on- or off-Stripe. + # For example, you can create a Payment Record to model a payment made on a different payment processor, + # in order to mark an Invoice as paid and a Subscription as active. Payment Records consist of one or + # more Payment Attempt Records, which represent individual attempts made on a payment network. + class PaymentRecord < APIResource + OBJECT_NAME = "payment_record" + def self.object_name + "payment_record" + end + + class Amount < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + attr_reader :value + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class AmountAuthorized < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + attr_reader :value + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class AmountCanceled < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + attr_reader :value + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class AmountFailed < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + attr_reader :value + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class AmountGuaranteed < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + attr_reader :value + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class AmountRefunded < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + attr_reader :value + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class AmountRequested < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + attr_reader :value + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class CustomerDetails < ::Stripe::StripeObject + # ID of the Stripe Customer associated with this payment. + attr_reader :customer + # The customer's email address. + attr_reader :email + # The customer's name. + attr_reader :name + # The customer's phone number. + attr_reader :phone + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class PaymentMethodDetails < ::Stripe::StripeObject + class AchCreditTransfer < ::Stripe::StripeObject + # Account number to transfer funds to. + attr_reader :account_number + # Name of the bank associated with the routing number. + attr_reader :bank_name + # Routing transit number for the bank account to transfer funds to. + attr_reader :routing_number + # SWIFT code of the bank associated with the routing number. + attr_reader :swift_code + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class AchDebit < ::Stripe::StripeObject + # Type of entity that holds the account. This can be either `individual` or `company`. + attr_reader :account_holder_type + # Name of the bank associated with the bank account. + attr_reader :bank_name + # Two-letter ISO code representing the country the bank account is located in. + attr_reader :country + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + attr_reader :fingerprint + # Last four digits of the bank account number. + attr_reader :last4 + # Routing transit number of the bank account. + attr_reader :routing_number + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class AcssDebit < ::Stripe::StripeObject + # Name of the bank associated with the bank account. + attr_reader :bank_name + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + attr_reader :fingerprint + # Institution number of the bank account + attr_reader :institution_number + # Last four digits of the bank account number. + attr_reader :last4 + # ID of the mandate used to make this payment. + attr_reader :mandate + # Transit number of the bank account. + attr_reader :transit_number + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Affirm < ::Stripe::StripeObject + # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. + attr_reader :location + # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. + attr_reader :reader + # The Affirm transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class AfterpayClearpay < ::Stripe::StripeObject + # The Afterpay order ID associated with this payment intent. + attr_reader :order_id + # Order identifier shown to the merchant in Afterpay’s online portal. + attr_reader :reference + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Alipay < ::Stripe::StripeObject + # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same. + attr_reader :buyer_id + # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same. + attr_reader :fingerprint + # Transaction ID of this particular Alipay transaction. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Alma < ::Stripe::StripeObject + class Installments < ::Stripe::StripeObject + # The number of installments. + attr_reader :count + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field installments + attr_reader :installments + # The Alma transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = { installments: Installments } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class AmazonPay < ::Stripe::StripeObject + class Funding < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + attr_reader :brand + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + attr_reader :country + # Two-digit number representing the card's expiration month. + attr_reader :exp_month + # Four-digit number representing the card's expiration year. + attr_reader :exp_year + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + attr_reader :funding + # The last four digits of the card. + attr_reader :last4 + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field card + attr_reader :card + # funding type of the underlying payment method. + attr_reader :type + + def self.inner_class_types + @inner_class_types = { card: Card } + end + + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field funding + attr_reader :funding + # The Amazon Pay transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = { funding: Funding } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class AuBecsDebit < ::Stripe::StripeObject + # Bank-State-Branch number of the bank account. + attr_reader :bsb_number + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + attr_reader :fingerprint + # Last four digits of the bank account number. + attr_reader :last4 + # ID of the mandate used to make this payment. + attr_reader :mandate + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class BacsDebit < ::Stripe::StripeObject + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + attr_reader :fingerprint + # Last four digits of the bank account number. + attr_reader :last4 + # ID of the mandate used to make this payment. + attr_reader :mandate + # Sort code of the bank account. (e.g., `10-20-30`) + attr_reader :sort_code + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Bancontact < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + attr_reader :bank_code + # Name of the bank associated with the bank account. + attr_reader :bank_name + # Bank Identifier Code of the bank associated with the bank account. + attr_reader :bic + # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. + attr_reader :generated_sepa_debit + # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. + attr_reader :generated_sepa_debit_mandate + # Last four characters of the IBAN. + attr_reader :iban_last4 + # Preferred language of the Bancontact authorization page that the customer is redirected to. + # Can be one of `en`, `de`, `fr`, or `nl` + attr_reader :preferred_language + # Owner's verified full name. Values are verified or provided by Bancontact directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + attr_reader :verified_name + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Billie < ::Stripe::StripeObject + # The Billie transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject + # City, district, suburb, town, or village. + attr_reader :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_reader :country + # Address line 1, such as the street, PO Box, or company name. + attr_reader :line1 + # Address line 2, such as the apartment, suite, unit, or building. + attr_reader :line2 + # ZIP or postal code. + attr_reader :postal_code + # State, county, province, or region. + attr_reader :state + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # A representation of a physical address. + attr_reader :address + # The billing email associated with the method of payment. + attr_reader :email + # The billing name associated with the method of payment. + attr_reader :name + # The billing phone number associated with the method of payment. + attr_reader :phone + + def self.inner_class_types + @inner_class_types = { address: Address } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Blik < ::Stripe::StripeObject + # A unique and immutable identifier assigned by BLIK to every buyer. + attr_reader :buyer_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Boleto < ::Stripe::StripeObject + # The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses consumers) + attr_reader :tax_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Card < ::Stripe::StripeObject + class Checks < ::Stripe::StripeObject + # Attribute for field address_line1_check + attr_reader :address_line1_check + # Attribute for field address_postal_code_check + attr_reader :address_postal_code_check + # Attribute for field cvc_check + attr_reader :cvc_check + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class NetworkToken < ::Stripe::StripeObject + # Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction. + attr_reader :used + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class ThreeDSecure < ::Stripe::StripeObject + # Attribute for field authentication_flow + attr_reader :authentication_flow + # Attribute for field result + attr_reader :result + # Attribute for field result_reason + attr_reader :result_reason + # Attribute for field version + attr_reader :version + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Wallet < ::Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject + # Type of the apple_pay transaction, one of `apple_pay` or `apple_pay_later`. + attr_reader :type + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class GooglePay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field apple_pay + attr_reader :apple_pay + # (For tokenized numbers only.) The last four digits of the device account number. + attr_reader :dynamic_last4 + # Attribute for field google_pay + attr_reader :google_pay + # The type of the card wallet, one of `apple_pay` or `google_pay`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type. + attr_reader :type + + def self.inner_class_types + @inner_class_types = { apple_pay: ApplePay, google_pay: GooglePay } + end + + def self.field_remappings + @field_remappings = {} + end + end + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + attr_reader :brand + # When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured. + attr_reader :capture_before + # Check results by Card networks on Card address and CVC at time of payment. + attr_reader :checks + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + attr_reader :country + # Two-digit number representing the card's expiration month. + attr_reader :exp_month + # Four-digit number representing the card's expiration year. + attr_reader :exp_year + # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + # + # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + attr_reader :fingerprint + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + attr_reader :funding + # The last four digits of the card. + attr_reader :last4 + # True if this payment was marked as MOTO and out of scope for SCA. + attr_reader :moto + # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + attr_reader :network + # If this card has network token credentials, this contains the details of the network token credentials. + attr_reader :network_token + # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + attr_reader :network_transaction_id + # Populated if this transaction used 3D Secure authentication. + attr_reader :three_d_secure + # If this Card is part of a card wallet, this contains the details of the card wallet. + attr_reader :wallet + + def self.inner_class_types + @inner_class_types = { + checks: Checks, + network_token: NetworkToken, + three_d_secure: ThreeDSecure, + wallet: Wallet, + } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class CardPresent < ::Stripe::StripeObject + class Offline < ::Stripe::StripeObject + # Time at which the payment was collected while offline + attr_reader :stored_at + # The method used to process this payment method offline. Only deferred is allowed. + attr_reader :type + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Receipt < ::Stripe::StripeObject + # The type of account being debited or credited + attr_reader :account_type + # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers. + attr_reader :application_cryptogram + # The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip. + attr_reader :application_preferred_name + # Identifier for this transaction. + attr_reader :authorization_code + # EMV tag 8A. A code returned by the card issuer. + attr_reader :authorization_response_code + # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`. + attr_reader :cardholder_verification_method + # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84. + attr_reader :dedicated_file_name + # A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95. + attr_reader :terminal_verification_results + # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B. + attr_reader :transaction_status_information + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Wallet < ::Stripe::StripeObject + # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. + attr_reader :type + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # The authorized amount + attr_reader :amount_authorized + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + attr_reader :brand + # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. + attr_reader :brand_product + # When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured. + attr_reader :capture_before + # The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay. + attr_reader :cardholder_name + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + attr_reader :country + # A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) + attr_reader :description + # Authorization response cryptogram. + attr_reader :emv_auth_data + # Two-digit number representing the card's expiration month. + attr_reader :exp_month + # Four-digit number representing the card's expiration year. + attr_reader :exp_year + # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + # + # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + attr_reader :fingerprint + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + attr_reader :funding + # ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod. + attr_reader :generated_card + # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) + attr_reader :iin + # Whether this [PaymentIntent](https://stripe.com/docs/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support). + attr_reader :incremental_authorization_supported + # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) + attr_reader :issuer + # The last four digits of the card. + attr_reader :last4 + # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + attr_reader :network + # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + attr_reader :network_transaction_id + # Details about payments collected offline. + attr_reader :offline + # Defines whether the authorized amount can be over-captured or not + attr_reader :overcapture_supported + # The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip. + attr_reader :preferred_locales + # How card details were read in this transaction. + attr_reader :read_method + # A collection of fields required to be displayed on receipts. Only required for EMV transactions. + attr_reader :receipt + # Attribute for field wallet + attr_reader :wallet + + def self.inner_class_types + @inner_class_types = { offline: Offline, receipt: Receipt, wallet: Wallet } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Cashapp < ::Stripe::StripeObject + # A unique and immutable identifier assigned by Cash App to every buyer. + attr_reader :buyer_id + # A public identifier for buyers using Cash App. + attr_reader :cashtag + # A unique and immutable identifier of payments assigned by Cash App + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Crypto < ::Stripe::StripeObject + # The wallet address of the customer. + attr_reader :buyer_address + # The blockchain network that the transaction was sent on. + attr_reader :network + # The token currency that the transaction was sent with. + attr_reader :token_currency + # The blockchain transaction hash of the crypto payment. + attr_reader :transaction_hash + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Custom < ::Stripe::StripeObject + # Display name for the custom (user-defined) payment method type used to make this payment. + attr_reader :display_name + # The custom payment method type associated with this payment. + attr_reader :type + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class CustomerBalance < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Eps < ::Stripe::StripeObject + # The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. + attr_reader :bank + # Owner's verified full name. Values are verified or provided by EPS directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + # EPS rarely provides this information so the attribute is usually empty. + attr_reader :verified_name + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Fpx < ::Stripe::StripeObject + # Account holder type, if provided. Can be one of `individual` or `company`. + attr_reader :account_holder_type + # The customer's bank. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`. + attr_reader :bank + # Unique transaction id generated by FPX for every request from the merchant + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Giropay < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + attr_reader :bank_code + # Name of the bank associated with the bank account. + attr_reader :bank_name + # Bank Identifier Code of the bank associated with the bank account. + attr_reader :bic + # Owner's verified full name. Values are verified or provided by Giropay directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + # Giropay rarely provides this information so the attribute is usually empty. + attr_reader :verified_name + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Grabpay < ::Stripe::StripeObject + # Unique transaction id generated by GrabPay + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Ideal < ::Stripe::StripeObject + # The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. + attr_reader :bank + # The Bank Identifier Code of the customer's bank. + attr_reader :bic + # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. + attr_reader :generated_sepa_debit + # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. + attr_reader :generated_sepa_debit_mandate + # Last four characters of the IBAN. + attr_reader :iban_last4 + # Owner's verified full name. Values are verified or provided by iDEAL directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + attr_reader :verified_name + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class InteracPresent < ::Stripe::StripeObject + class Receipt < ::Stripe::StripeObject + # The type of account being debited or credited + attr_reader :account_type + # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers. + attr_reader :application_cryptogram + # The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip. + attr_reader :application_preferred_name + # Identifier for this transaction. + attr_reader :authorization_code + # EMV tag 8A. A code returned by the card issuer. + attr_reader :authorization_response_code + # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`. + attr_reader :cardholder_verification_method + # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84. + attr_reader :dedicated_file_name + # A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95. + attr_reader :terminal_verification_results + # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B. + attr_reader :transaction_status_information + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Card brand. Can be `interac`, `mastercard` or `visa`. + attr_reader :brand + # The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay. + attr_reader :cardholder_name + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + attr_reader :country + # A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) + attr_reader :description + # Authorization response cryptogram. + attr_reader :emv_auth_data + # Two-digit number representing the card's expiration month. + attr_reader :exp_month + # Four-digit number representing the card's expiration year. + attr_reader :exp_year + # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + # + # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + attr_reader :fingerprint + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + attr_reader :funding + # ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod. + attr_reader :generated_card + # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) + attr_reader :iin + # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) + attr_reader :issuer + # The last four digits of the card. + attr_reader :last4 + # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + attr_reader :network + # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + attr_reader :network_transaction_id + # The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip. + attr_reader :preferred_locales + # How card details were read in this transaction. + attr_reader :read_method + # A collection of fields required to be displayed on receipts. Only required for EMV transactions. + attr_reader :receipt + + def self.inner_class_types + @inner_class_types = { receipt: Receipt } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class KakaoPay < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + attr_reader :buyer_id + # The Kakao Pay transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Klarna < ::Stripe::StripeObject + class PayerDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject + # The payer address country + attr_reader :country + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # The payer's address + attr_reader :address + + def self.inner_class_types + @inner_class_types = { address: Address } + end + + def self.field_remappings + @field_remappings = {} + end + end + # The payer details for this transaction. + attr_reader :payer_details + # The Klarna payment method used for this transaction. + # Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` + attr_reader :payment_method_category + # Preferred language of the Klarna authorization page that the customer is redirected to. + # Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` + attr_reader :preferred_locale + + def self.inner_class_types + @inner_class_types = { payer_details: PayerDetails } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Konbini < ::Stripe::StripeObject + class Store < ::Stripe::StripeObject + # The name of the convenience store chain where the payment was completed. + attr_reader :chain + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # If the payment succeeded, this contains the details of the convenience store where the payment was completed. + attr_reader :store + + def self.inner_class_types + @inner_class_types = { store: Store } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class KrCard < ::Stripe::StripeObject + # The local credit or debit card brand. + attr_reader :brand + # A unique identifier for the buyer as determined by the local payment processor. + attr_reader :buyer_id + # The last four digits of the card. This may not be present for American Express cards. + attr_reader :last4 + # The Korean Card transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Link < ::Stripe::StripeObject + # Two-letter ISO code representing the funding source country beneath the Link payment. + # You could use this attribute to get a sense of international fees. + attr_reader :country + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class MbWay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Mobilepay < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + # Brand of the card used in the transaction + attr_reader :brand + # Two-letter ISO code representing the country of the card + attr_reader :country + # Two digit number representing the card's expiration month + attr_reader :exp_month + # Two digit number representing the card's expiration year + attr_reader :exp_year + # The last 4 digits of the card + attr_reader :last4 + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Internal card details + attr_reader :card + + def self.inner_class_types + @inner_class_types = { card: Card } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Multibanco < ::Stripe::StripeObject + # Entity number associated with this Multibanco payment. + attr_reader :entity + # Reference number associated with this Multibanco payment. + attr_reader :reference + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class NaverPay < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + attr_reader :buyer_id + # The Naver Pay transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class NzBankAccount < ::Stripe::StripeObject + # The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. + attr_reader :account_holder_name + # The numeric code for the bank account's bank. + attr_reader :bank_code + # The name of the bank. + attr_reader :bank_name + # The numeric code for the bank account's bank branch. + attr_reader :branch_code + # Last four digits of the bank account number. + attr_reader :last4 + # The suffix of the bank account number. + attr_reader :suffix + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Oxxo < ::Stripe::StripeObject + # OXXO reference number + attr_reader :number + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class P24 < ::Stripe::StripeObject + # The customer's bank. Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `velobank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`. + attr_reader :bank + # Unique reference for this Przelewy24 payment. + attr_reader :reference + # Owner's verified full name. Values are verified or provided by Przelewy24 directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + # Przelewy24 rarely provides this information so the attribute is usually empty. + attr_reader :verified_name + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class PayByBank < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Payco < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + attr_reader :buyer_id + # The Payco transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Paynow < ::Stripe::StripeObject + # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. + attr_reader :location + # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. + attr_reader :reader + # Reference number associated with this PayNow payment + attr_reader :reference + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Paypal < ::Stripe::StripeObject + class SellerProtection < ::Stripe::StripeObject + # An array of conditions that are covered for the transaction, if applicable. + attr_reader :dispute_categories + # Indicates whether the transaction is eligible for PayPal's seller protection. + attr_reader :status + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + attr_reader :country + # Owner's email. Values are provided by PayPal directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + attr_reader :payer_email + # PayPal account PayerID. This identifier uniquely identifies the PayPal customer. + attr_reader :payer_id + # Owner's full name. Values provided by PayPal directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + attr_reader :payer_name + # The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction. + attr_reader :seller_protection + # A unique ID generated by PayPal for this transaction. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = { seller_protection: SellerProtection } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Pix < ::Stripe::StripeObject + # Unique transaction id generated by BCB + attr_reader :bank_transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Promptpay < ::Stripe::StripeObject + # Bill reference generated by PromptPay + attr_reader :reference + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class RevolutPay < ::Stripe::StripeObject + class Funding < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + attr_reader :brand + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + attr_reader :country + # Two-digit number representing the card's expiration month. + attr_reader :exp_month + # Four-digit number representing the card's expiration year. + attr_reader :exp_year + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + attr_reader :funding + # The last four digits of the card. + attr_reader :last4 + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field card + attr_reader :card + # funding type of the underlying payment method. + attr_reader :type + + def self.inner_class_types + @inner_class_types = { card: Card } + end + + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field funding + attr_reader :funding + # The Revolut Pay transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = { funding: Funding } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class SamsungPay < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + attr_reader :buyer_id + # The Samsung Pay transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Satispay < ::Stripe::StripeObject + # The Satispay transaction ID associated with this payment. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class SepaCreditTransfer < ::Stripe::StripeObject + # Name of the bank associated with the bank account. + attr_reader :bank_name + # Bank Identifier Code of the bank associated with the bank account. + attr_reader :bic + # IBAN of the bank account to transfer funds to. + attr_reader :iban + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class SepaDebit < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + attr_reader :bank_code + # Branch code of bank associated with the bank account. + attr_reader :branch_code + # Two-letter ISO code representing the country the bank account is located in. + attr_reader :country + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + attr_reader :fingerprint + # Last four characters of the IBAN. + attr_reader :last4 + # Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://stripe.com/docs/api/mandates/retrieve). + attr_reader :mandate + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Sofort < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + attr_reader :bank_code + # Name of the bank associated with the bank account. + attr_reader :bank_name + # Bank Identifier Code of the bank associated with the bank account. + attr_reader :bic + # Two-letter ISO code representing the country the bank account is located in. + attr_reader :country + # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. + attr_reader :generated_sepa_debit + # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. + attr_reader :generated_sepa_debit_mandate + # Last four characters of the IBAN. + attr_reader :iban_last4 + # Preferred language of the SOFORT authorization page that the customer is redirected to. + # Can be one of `de`, `en`, `es`, `fr`, `it`, `nl`, or `pl` + attr_reader :preferred_language + # Owner's verified full name. Values are verified or provided by SOFORT directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + attr_reader :verified_name + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class StripeAccount < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Swish < ::Stripe::StripeObject + # Uniquely identifies the payer's Swish account. You can use this attribute to check whether two Swish transactions were paid for by the same payer + attr_reader :fingerprint + # Payer bank reference number for the payment + attr_reader :payment_reference + # The last four digits of the Swish account phone number + attr_reader :verified_phone_last4 + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Twint < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class UsBankAccount < ::Stripe::StripeObject + # Attribute for field account_holder_type + attr_reader :account_holder_type + # Attribute for field account_type + attr_reader :account_type + # Name of the bank associated with the bank account. + attr_reader :bank_name + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + attr_reader :fingerprint + # Last four digits of the bank account number. + attr_reader :last4 + # ID of the mandate used to make this payment. + attr_reader :mandate + # Reference number to locate ACH payments with customer’s bank. + attr_reader :payment_reference + # Routing number of the bank account. + attr_reader :routing_number + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Wechat < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class WechatPay < ::Stripe::StripeObject + # Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same. + attr_reader :fingerprint + # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. + attr_reader :location + # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. + attr_reader :reader + # Transaction ID of this particular WeChat Pay transaction. + attr_reader :transaction_id + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Zip < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field ach_credit_transfer + attr_reader :ach_credit_transfer + # Attribute for field ach_debit + attr_reader :ach_debit + # Attribute for field acss_debit + attr_reader :acss_debit + # Attribute for field affirm + attr_reader :affirm + # Attribute for field afterpay_clearpay + attr_reader :afterpay_clearpay + # Attribute for field alipay + attr_reader :alipay + # Attribute for field alma + attr_reader :alma + # Attribute for field amazon_pay + attr_reader :amazon_pay + # Attribute for field au_becs_debit + attr_reader :au_becs_debit + # Attribute for field bacs_debit + attr_reader :bacs_debit + # Attribute for field bancontact + attr_reader :bancontact + # Attribute for field billie + attr_reader :billie + # The billing details associated with the method of payment. + attr_reader :billing_details + # Attribute for field blik + attr_reader :blik + # Attribute for field boleto + attr_reader :boleto + # Details of the card used for this payment attempt. + attr_reader :card + # Attribute for field card_present + attr_reader :card_present + # Attribute for field cashapp + attr_reader :cashapp + # Attribute for field crypto + attr_reader :crypto + # Custom Payment Methods represent Payment Method types not modeled directly in + # the Stripe API. This resource consists of details about the custom payment method + # used for this payment attempt. + attr_reader :custom + # Attribute for field customer_balance + attr_reader :customer_balance + # Attribute for field eps + attr_reader :eps + # Attribute for field fpx + attr_reader :fpx + # Attribute for field giropay + attr_reader :giropay + # Attribute for field grabpay + attr_reader :grabpay + # Attribute for field ideal + attr_reader :ideal + # Attribute for field interac_present + attr_reader :interac_present + # Attribute for field kakao_pay + attr_reader :kakao_pay + # Attribute for field klarna + attr_reader :klarna + # Attribute for field konbini + attr_reader :konbini + # Attribute for field kr_card + attr_reader :kr_card + # Attribute for field link + attr_reader :link + # Attribute for field mb_way + attr_reader :mb_way + # Attribute for field mobilepay + attr_reader :mobilepay + # Attribute for field multibanco + attr_reader :multibanco + # Attribute for field naver_pay + attr_reader :naver_pay + # Attribute for field nz_bank_account + attr_reader :nz_bank_account + # Attribute for field oxxo + attr_reader :oxxo + # Attribute for field p24 + attr_reader :p24 + # Attribute for field pay_by_bank + attr_reader :pay_by_bank + # Attribute for field payco + attr_reader :payco + # ID of the Stripe PaymentMethod used to make this payment. + attr_reader :payment_method + # Attribute for field paynow + attr_reader :paynow + # Attribute for field paypal + attr_reader :paypal + # Attribute for field pix + attr_reader :pix + # Attribute for field promptpay + attr_reader :promptpay + # Attribute for field revolut_pay + attr_reader :revolut_pay + # Attribute for field samsung_pay + attr_reader :samsung_pay + # Attribute for field satispay + attr_reader :satispay + # Attribute for field sepa_credit_transfer + attr_reader :sepa_credit_transfer + # Attribute for field sepa_debit + attr_reader :sepa_debit + # Attribute for field sofort + attr_reader :sofort + # Attribute for field stripe_account + attr_reader :stripe_account + # Attribute for field swish + attr_reader :swish + # Attribute for field twint + attr_reader :twint + # The type of transaction-specific details of the payment method used in the payment. See [PaymentMethod.type](https://stripe.com/docs/api/payment_methods/object#payment_method_object-type) for the full list of possible types. + # An additional hash is included on `payment_method_details` with a name matching this value. + # It contains information specific to the payment method. + attr_reader :type + # Details of the US Bank Account used for this payment attempt. + attr_reader :us_bank_account + # Attribute for field wechat + attr_reader :wechat + # Attribute for field wechat_pay + attr_reader :wechat_pay + # Attribute for field zip + attr_reader :zip + + def self.inner_class_types + @inner_class_types = { + ach_credit_transfer: AchCreditTransfer, + ach_debit: AchDebit, + acss_debit: AcssDebit, + affirm: Affirm, + afterpay_clearpay: AfterpayClearpay, + alipay: Alipay, + alma: Alma, + amazon_pay: AmazonPay, + au_becs_debit: AuBecsDebit, + bacs_debit: BacsDebit, + bancontact: Bancontact, + billie: Billie, + billing_details: BillingDetails, + blik: Blik, + boleto: Boleto, + card: Card, + card_present: CardPresent, + cashapp: Cashapp, + crypto: Crypto, + custom: Custom, + customer_balance: CustomerBalance, + eps: Eps, + fpx: Fpx, + giropay: Giropay, + grabpay: Grabpay, + ideal: Ideal, + interac_present: InteracPresent, + kakao_pay: KakaoPay, + klarna: Klarna, + konbini: Konbini, + kr_card: KrCard, + link: Link, + mb_way: MbWay, + mobilepay: Mobilepay, + multibanco: Multibanco, + naver_pay: NaverPay, + nz_bank_account: NzBankAccount, + oxxo: Oxxo, + p24: P24, + pay_by_bank: PayByBank, + payco: Payco, + paynow: Paynow, + paypal: Paypal, + pix: Pix, + promptpay: Promptpay, + revolut_pay: RevolutPay, + samsung_pay: SamsungPay, + satispay: Satispay, + sepa_credit_transfer: SepaCreditTransfer, + sepa_debit: SepaDebit, + sofort: Sofort, + stripe_account: StripeAccount, + swish: Swish, + twint: Twint, + us_bank_account: UsBankAccount, + wechat: Wechat, + wechat_pay: WechatPay, + zip: Zip, + } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class ProcessorDetails < ::Stripe::StripeObject + class Custom < ::Stripe::StripeObject + # An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID. + attr_reader :payment_reference + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Custom processors represent payment processors not modeled directly in + # the Stripe API. This resource consists of details about the custom processor + # used for this payment attempt. + attr_reader :custom + # The processor used for this payment attempt. + attr_reader :type + + def self.inner_class_types + @inner_class_types = { custom: Custom } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class ShippingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject + # City, district, suburb, town, or village. + attr_reader :city + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + attr_reader :country + # Address line 1, such as the street, PO Box, or company name. + attr_reader :line1 + # Address line 2, such as the apartment, suite, unit, or building. + attr_reader :line2 + # ZIP or postal code. + attr_reader :postal_code + # State, county, province, or region. + attr_reader :state + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # A representation of a physical address. + attr_reader :address + # The shipping recipient's name. + attr_reader :name + # The shipping recipient's phone number. + attr_reader :phone + + def self.inner_class_types + @inner_class_types = { address: Address } + end + + def self.field_remappings + @field_remappings = {} + end + end + # A representation of an amount of money, consisting of an amount and a currency. + attr_reader :amount + # A representation of an amount of money, consisting of an amount and a currency. + attr_reader :amount_authorized + # A representation of an amount of money, consisting of an amount and a currency. + attr_reader :amount_canceled + # A representation of an amount of money, consisting of an amount and a currency. + attr_reader :amount_failed + # A representation of an amount of money, consisting of an amount and a currency. + attr_reader :amount_guaranteed + # A representation of an amount of money, consisting of an amount and a currency. + attr_reader :amount_refunded + # A representation of an amount of money, consisting of an amount and a currency. + attr_reader :amount_requested + # ID of the Connect application that created the PaymentRecord. + attr_reader :application + # Time at which the object was created. Measured in seconds since the Unix epoch. + attr_reader :created + # Customer information for this payment. + attr_reader :customer_details + # Indicates whether the customer was present in your checkout flow during this payment. + attr_reader :customer_presence + # An arbitrary string attached to the object. Often useful for displaying to users. + attr_reader :description + # Unique identifier for the object. + attr_reader :id + # ID of the latest Payment Attempt Record attached to this Payment Record. + attr_reader :latest_payment_attempt_record + # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + attr_reader :livemode + # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + attr_reader :metadata + # String representing the object's type. Objects of the same type share the same value. + attr_reader :object + # Information about the Payment Method debited for this payment. + attr_reader :payment_method_details + # Processor information associated with this payment. + attr_reader :processor_details + # Shipping information for this payment. + attr_reader :shipping_details + + # Report a new Payment Record. You may report a Payment Record as it is + # initialized and later report updates through the other report_* methods, or report Payment + # Records in a terminal state directly, through this method. + def self.report_payment(params = {}, opts = {}) + request_stripe_object( + method: :post, + path: "/v1/payment_records/report_payment", + params: params, + opts: opts + ) + end + + # Report a new payment attempt on the specified Payment Record. A new payment + # attempt can only be specified if all other payment attempts are canceled or failed. + def report_payment_attempt(params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/payment_records/%s/report_payment_attempt", { id: CGI.escape(self["id"]) }), + params: params, + opts: opts + ) + end + + # Report a new payment attempt on the specified Payment Record. A new payment + # attempt can only be specified if all other payment attempts are canceled or failed. + def self.report_payment_attempt(id, params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/payment_records/%s/report_payment_attempt", { id: CGI.escape(id) }), + params: params, + opts: opts + ) + end + + # Report that the most recent payment attempt on the specified Payment Record + # was canceled. + def report_payment_attempt_canceled(params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/payment_records/%s/report_payment_attempt_canceled", { id: CGI.escape(self["id"]) }), + params: params, + opts: opts + ) + end + + # Report that the most recent payment attempt on the specified Payment Record + # was canceled. + def self.report_payment_attempt_canceled(id, params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/payment_records/%s/report_payment_attempt_canceled", { id: CGI.escape(id) }), + params: params, + opts: opts + ) + end + + # Report that the most recent payment attempt on the specified Payment Record + # failed or errored. + def report_payment_attempt_failed(params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/payment_records/%s/report_payment_attempt_failed", { id: CGI.escape(self["id"]) }), + params: params, + opts: opts + ) + end + + # Report that the most recent payment attempt on the specified Payment Record + # failed or errored. + def self.report_payment_attempt_failed(id, params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/payment_records/%s/report_payment_attempt_failed", { id: CGI.escape(id) }), + params: params, + opts: opts + ) + end + + # Report that the most recent payment attempt on the specified Payment Record + # was guaranteed. + def report_payment_attempt_guaranteed(params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/payment_records/%s/report_payment_attempt_guaranteed", { id: CGI.escape(self["id"]) }), + params: params, + opts: opts + ) + end + + # Report that the most recent payment attempt on the specified Payment Record + # was guaranteed. + def self.report_payment_attempt_guaranteed(id, params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/payment_records/%s/report_payment_attempt_guaranteed", { id: CGI.escape(id) }), + params: params, + opts: opts + ) + end + + # Report informational updates on the specified Payment Record. + def report_payment_attempt_informational(params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/payment_records/%s/report_payment_attempt_informational", { id: CGI.escape(self["id"]) }), + params: params, + opts: opts + ) + end + + # Report informational updates on the specified Payment Record. + def self.report_payment_attempt_informational(id, params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/payment_records/%s/report_payment_attempt_informational", { id: CGI.escape(id) }), + params: params, + opts: opts + ) + end + + # Report that the most recent payment attempt on the specified Payment Record + # was refunded. + def report_refund(params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/payment_records/%s/report_refund", { id: CGI.escape(self["id"]) }), + params: params, + opts: opts + ) + end + + # Report that the most recent payment attempt on the specified Payment Record + # was refunded. + def self.report_refund(id, params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/payment_records/%s/report_refund", { id: CGI.escape(id) }), + params: params, + opts: opts + ) + end + + def self.inner_class_types + @inner_class_types = { + amount: Amount, + amount_authorized: AmountAuthorized, + amount_canceled: AmountCanceled, + amount_failed: AmountFailed, + amount_guaranteed: AmountGuaranteed, + amount_refunded: AmountRefunded, + amount_requested: AmountRequested, + customer_details: CustomerDetails, + payment_method_details: PaymentMethodDetails, + processor_details: ProcessorDetails, + shipping_details: ShippingDetails, + } + end + + def self.field_remappings + @field_remappings = {} + end + end +end diff --git a/lib/stripe/resources/payout.rb b/lib/stripe/resources/payout.rb index a59577a7..1f8fd6a1 100644 --- a/lib/stripe/resources/payout.rb +++ b/lib/stripe/resources/payout.rb @@ -20,7 +20,7 @@ module Stripe "payout" end - class TraceId < Stripe::StripeObject + class TraceId < ::Stripe::StripeObject # Possible values are `pending`, `supported`, and `unsupported`. When `payout.status` is `pending` or `in_transit`, this will be `pending`. When the payout transitions to `paid`, `failed`, or `canceled`, this status will become `supported` or `unsupported` shortly after in most cases. In some cases, this may appear as `pending` for up to 10 days after `arrival_date` until transitioning to `supported` or `unsupported`. attr_reader :status # The trace ID value if `trace_id.status` is `supported`, otherwise `nil`. @@ -123,7 +123,7 @@ module Stripe request_stripe_object(method: :get, path: "/v1/payouts", params: params, opts: opts) end - # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead. + # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead. # # By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required. def reverse(params = {}, opts = {}) @@ -135,7 +135,7 @@ module Stripe ) end - # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead. + # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead. # # By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required. def self.reverse(payout, params = {}, opts = {}) diff --git a/lib/stripe/resources/person.rb b/lib/stripe/resources/person.rb index acbea4c6..c932667a 100644 --- a/lib/stripe/resources/person.rb +++ b/lib/stripe/resources/person.rb @@ -15,8 +15,8 @@ module Stripe "person" end - class AdditionalTosAcceptances < Stripe::StripeObject - class Account < Stripe::StripeObject + class AdditionalTosAcceptances < ::Stripe::StripeObject + class Account < ::Stripe::StripeObject # The Unix timestamp marking when the legal guardian accepted the service agreement. attr_reader :date # The IP address from which the legal guardian accepted the service agreement. @@ -44,7 +44,7 @@ module Stripe end end - class Address < Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -67,7 +67,7 @@ module Stripe end end - class AddressKana < Stripe::StripeObject + class AddressKana < ::Stripe::StripeObject # City/Ward. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -92,7 +92,7 @@ module Stripe end end - class AddressKanji < Stripe::StripeObject + class AddressKanji < ::Stripe::StripeObject # City/Ward. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -117,7 +117,7 @@ module Stripe end end - class Dob < Stripe::StripeObject + class Dob < ::Stripe::StripeObject # The day of birth, between 1 and 31. attr_reader :day # The month of birth, between 1 and 12. @@ -134,8 +134,8 @@ module Stripe end end - class FutureRequirements < Stripe::StripeObject - class Alternative < Stripe::StripeObject + class FutureRequirements < ::Stripe::StripeObject + class Alternative < ::Stripe::StripeObject # Fields that can be provided to satisfy all fields in `original_fields_due`. attr_reader :alternative_fields_due # Fields that are due and can be satisfied by providing all fields in `alternative_fields_due`. @@ -150,7 +150,7 @@ module Stripe end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. attr_reader :code # An informative message that indicates the error type and provides additional details about the error. @@ -188,7 +188,7 @@ module Stripe end end - class RegisteredAddress < Stripe::StripeObject + class RegisteredAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -211,7 +211,7 @@ module Stripe end end - class Relationship < Stripe::StripeObject + class Relationship < ::Stripe::StripeObject # Whether the person is the authorizer of the account's representative. attr_reader :authorizer # Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. @@ -238,8 +238,8 @@ module Stripe end end - class Requirements < Stripe::StripeObject - class Alternative < Stripe::StripeObject + class Requirements < ::Stripe::StripeObject + class Alternative < ::Stripe::StripeObject # Fields that can be provided to satisfy all fields in `original_fields_due`. attr_reader :alternative_fields_due # Fields that are due and can be satisfied by providing all fields in `alternative_fields_due`. @@ -254,7 +254,7 @@ module Stripe end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. attr_reader :code # An informative message that indicates the error type and provides additional details about the error. @@ -292,8 +292,8 @@ module Stripe end end - class UsCfpbData < Stripe::StripeObject - class EthnicityDetails < Stripe::StripeObject + class UsCfpbData < ::Stripe::StripeObject + class EthnicityDetails < ::Stripe::StripeObject # The persons ethnicity attr_reader :ethnicity # Please specify your origin, when other is selected. @@ -308,7 +308,7 @@ module Stripe end end - class RaceDetails < Stripe::StripeObject + class RaceDetails < ::Stripe::StripeObject # The persons race. attr_reader :race # Please specify your race, when other is selected. @@ -338,8 +338,8 @@ module Stripe end end - class Verification < Stripe::StripeObject - class AdditionalDocument < Stripe::StripeObject + class Verification < ::Stripe::StripeObject + class AdditionalDocument < ::Stripe::StripeObject # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. attr_reader :back # A user-displayable string describing the verification state of this document. For example, if a document is uploaded and the picture is too fuzzy, this may say "Identity document is too unclear to read". @@ -358,7 +358,7 @@ module Stripe end end - class Document < Stripe::StripeObject + class Document < ::Stripe::StripeObject # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. attr_reader :back # A user-displayable string describing the verification state of this document. For example, if a document is uploaded and the picture is too fuzzy, this may say "Identity document is too unclear to read". diff --git a/lib/stripe/resources/plan.rb b/lib/stripe/resources/plan.rb index 7c8a1d8a..8acc8955 100644 --- a/lib/stripe/resources/plan.rb +++ b/lib/stripe/resources/plan.rb @@ -21,7 +21,7 @@ module Stripe "plan" end - class Tier < Stripe::StripeObject + class Tier < ::Stripe::StripeObject # Price for the entire tier. attr_reader :flat_amount # Same as `flat_amount`, but contains a decimal value with at most 12 decimal places. @@ -42,7 +42,7 @@ module Stripe end end - class TransformUsage < Stripe::StripeObject + class TransformUsage < ::Stripe::StripeObject # Divide usage by this number. attr_reader :divide_by # After division, either round the result `up` or `down`. diff --git a/lib/stripe/resources/price.rb b/lib/stripe/resources/price.rb index 1cfa6f3d..75e979ed 100644 --- a/lib/stripe/resources/price.rb +++ b/lib/stripe/resources/price.rb @@ -19,8 +19,8 @@ module Stripe "price" end - class CurrencyOptions < Stripe::StripeObject - class CustomUnitAmount < Stripe::StripeObject + class CurrencyOptions < ::Stripe::StripeObject + class CustomUnitAmount < ::Stripe::StripeObject # The maximum unit amount the customer can specify for this item. attr_reader :maximum # The minimum unit amount the customer can specify for this item. Must be at least the minimum charge amount. @@ -37,7 +37,7 @@ module Stripe end end - class Tier < Stripe::StripeObject + class Tier < ::Stripe::StripeObject # Price for the entire tier. attr_reader :flat_amount # Same as `flat_amount`, but contains a decimal value with at most 12 decimal places. @@ -77,7 +77,7 @@ module Stripe end end - class CustomUnitAmount < Stripe::StripeObject + class CustomUnitAmount < ::Stripe::StripeObject # The maximum unit amount the customer can specify for this item. attr_reader :maximum # The minimum unit amount the customer can specify for this item. Must be at least the minimum charge amount. @@ -94,7 +94,7 @@ module Stripe end end - class Recurring < Stripe::StripeObject + class Recurring < ::Stripe::StripeObject # The frequency at which a subscription is billed. One of `day`, `week`, `month` or `year`. attr_reader :interval # The number of intervals (specified in the `interval` attribute) between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. @@ -115,7 +115,7 @@ module Stripe end end - class Tier < Stripe::StripeObject + class Tier < ::Stripe::StripeObject # Price for the entire tier. attr_reader :flat_amount # Same as `flat_amount`, but contains a decimal value with at most 12 decimal places. @@ -136,7 +136,7 @@ module Stripe end end - class TransformQuantity < Stripe::StripeObject + class TransformQuantity < ::Stripe::StripeObject # Divide usage by this number. attr_reader :divide_by # After division, either round the result `up` or `down`. diff --git a/lib/stripe/resources/product.rb b/lib/stripe/resources/product.rb index c86727cc..0f84021a 100644 --- a/lib/stripe/resources/product.rb +++ b/lib/stripe/resources/product.rb @@ -25,7 +25,7 @@ module Stripe nested_resource_class_methods :feature, operations: %i[create retrieve delete list] - class MarketingFeature < Stripe::StripeObject + class MarketingFeature < ::Stripe::StripeObject # The marketing feature name. Up to 80 characters long. attr_reader :name @@ -38,7 +38,7 @@ module Stripe end end - class PackageDimensions < Stripe::StripeObject + class PackageDimensions < ::Stripe::StripeObject # Height, in inches. attr_reader :height # Length, in inches. diff --git a/lib/stripe/resources/promotion_code.rb b/lib/stripe/resources/promotion_code.rb index 393d3245..9070807d 100644 --- a/lib/stripe/resources/promotion_code.rb +++ b/lib/stripe/resources/promotion_code.rb @@ -17,7 +17,7 @@ module Stripe "promotion_code" end - class Promotion < Stripe::StripeObject + class Promotion < ::Stripe::StripeObject # If promotion `type` is `coupon`, the coupon for this promotion. attr_reader :coupon # The type of promotion. @@ -32,8 +32,8 @@ module Stripe end end - class Restrictions < Stripe::StripeObject - class CurrencyOptions < Stripe::StripeObject + class Restrictions < ::Stripe::StripeObject + class CurrencyOptions < ::Stripe::StripeObject # Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work). attr_reader :minimum_amount diff --git a/lib/stripe/resources/quote.rb b/lib/stripe/resources/quote.rb index 78e0af06..8024b9c5 100644 --- a/lib/stripe/resources/quote.rb +++ b/lib/stripe/resources/quote.rb @@ -14,8 +14,8 @@ module Stripe "quote" end - class AutomaticTax < Stripe::StripeObject - class Liability < Stripe::StripeObject + class AutomaticTax < ::Stripe::StripeObject + class Liability < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. attr_reader :account # Type of the account referenced. @@ -47,11 +47,11 @@ module Stripe end end - class Computed < Stripe::StripeObject - class Recurring < Stripe::StripeObject - class TotalDetails < Stripe::StripeObject - class Breakdown < Stripe::StripeObject - class Discount < Stripe::StripeObject + class Computed < ::Stripe::StripeObject + class Recurring < ::Stripe::StripeObject + class TotalDetails < ::Stripe::StripeObject + class Breakdown < ::Stripe::StripeObject + class Discount < ::Stripe::StripeObject # The amount discounted. attr_reader :amount # A discount represents the actual application of a [coupon](https://stripe.com/docs/api#coupons) or [promotion code](https://stripe.com/docs/api#promotion_codes). @@ -69,7 +69,7 @@ module Stripe end end - class Tax < Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. attr_reader :amount # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. @@ -139,10 +139,10 @@ module Stripe end end - class Upfront < Stripe::StripeObject - class TotalDetails < Stripe::StripeObject - class Breakdown < Stripe::StripeObject - class Discount < Stripe::StripeObject + class Upfront < ::Stripe::StripeObject + class TotalDetails < ::Stripe::StripeObject + class Breakdown < ::Stripe::StripeObject + class Discount < ::Stripe::StripeObject # The amount discounted. attr_reader :amount # A discount represents the actual application of a [coupon](https://stripe.com/docs/api#coupons) or [promotion code](https://stripe.com/docs/api#promotion_codes). @@ -160,7 +160,7 @@ module Stripe end end - class Tax < Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. attr_reader :amount # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. @@ -241,7 +241,7 @@ module Stripe end end - class FromQuote < Stripe::StripeObject + class FromQuote < ::Stripe::StripeObject # Whether this quote is a revision of a different quote. attr_reader :is_revision # The quote that was cloned. @@ -256,8 +256,8 @@ module Stripe end end - class InvoiceSettings < Stripe::StripeObject - class Issuer < Stripe::StripeObject + class InvoiceSettings < ::Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. attr_reader :account # Type of the account referenced. @@ -285,7 +285,7 @@ module Stripe end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # The time that the quote was accepted. Measured in seconds since Unix epoch. attr_reader :accepted_at # The time that the quote was canceled. Measured in seconds since Unix epoch. @@ -302,9 +302,9 @@ module Stripe end end - class SubscriptionData < Stripe::StripeObject - class BillingMode < Stripe::StripeObject - class Flexible < Stripe::StripeObject + class SubscriptionData < ::Stripe::StripeObject + class BillingMode < ::Stripe::StripeObject + class Flexible < ::Stripe::StripeObject # Controls how invoices and invoice items display proration amounts and discount amounts. attr_reader :proration_discounts @@ -349,9 +349,9 @@ module Stripe end end - class TotalDetails < Stripe::StripeObject - class Breakdown < Stripe::StripeObject - class Discount < Stripe::StripeObject + class TotalDetails < ::Stripe::StripeObject + class Breakdown < ::Stripe::StripeObject + class Discount < ::Stripe::StripeObject # The amount discounted. attr_reader :amount # A discount represents the actual application of a [coupon](https://stripe.com/docs/api#coupons) or [promotion code](https://stripe.com/docs/api#promotion_codes). @@ -369,7 +369,7 @@ module Stripe end end - class Tax < Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. attr_reader :amount # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. @@ -420,7 +420,7 @@ module Stripe end end - class TransferData < Stripe::StripeObject + class TransferData < ::Stripe::StripeObject # The amount in cents (or local equivalent) that will be transferred to the destination account when the invoice is paid. By default, the entire amount is transferred to the destination. attr_reader :amount # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount will be transferred to the destination. diff --git a/lib/stripe/resources/refund.rb b/lib/stripe/resources/refund.rb index 07d2d741..e0bb8c7a 100644 --- a/lib/stripe/resources/refund.rb +++ b/lib/stripe/resources/refund.rb @@ -17,8 +17,8 @@ module Stripe "refund" end - class DestinationDetails < Stripe::StripeObject - class Affirm < Stripe::StripeObject + class DestinationDetails < ::Stripe::StripeObject + class Affirm < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28,7 +28,7 @@ module Stripe end end - class AfterpayClearpay < Stripe::StripeObject + class AfterpayClearpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -38,7 +38,7 @@ module Stripe end end - class Alipay < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -48,7 +48,7 @@ module Stripe end end - class Alma < Stripe::StripeObject + class Alma < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -58,7 +58,7 @@ module Stripe end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -68,7 +68,7 @@ module Stripe end end - class AuBankTransfer < Stripe::StripeObject + class AuBankTransfer < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -78,7 +78,7 @@ module Stripe end end - class Blik < Stripe::StripeObject + class Blik < ::Stripe::StripeObject # For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed. attr_reader :network_decline_code # The reference assigned to the refund. @@ -95,7 +95,7 @@ module Stripe end end - class BrBankTransfer < Stripe::StripeObject + class BrBankTransfer < ::Stripe::StripeObject # The reference assigned to the refund. attr_reader :reference # Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. @@ -110,7 +110,7 @@ module Stripe end end - class Card < Stripe::StripeObject + class Card < ::Stripe::StripeObject # Value of the reference number assigned to the refund. attr_reader :reference # Status of the reference number on the refund. This can be `pending`, `available` or `unavailable`. @@ -129,7 +129,7 @@ module Stripe end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -139,7 +139,10 @@ module Stripe end end - class CustomerCashBalance < Stripe::StripeObject + class Crypto < ::Stripe::StripeObject + # The transaction hash of the refund. + attr_reader :reference + def self.inner_class_types @inner_class_types = {} end @@ -149,7 +152,7 @@ module Stripe end end - class Eps < Stripe::StripeObject + class CustomerCashBalance < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -159,7 +162,17 @@ module Stripe end end - class EuBankTransfer < Stripe::StripeObject + class Eps < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class EuBankTransfer < ::Stripe::StripeObject # The reference assigned to the refund. attr_reader :reference # Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. @@ -174,7 +187,7 @@ module Stripe end end - class GbBankTransfer < Stripe::StripeObject + class GbBankTransfer < ::Stripe::StripeObject # The reference assigned to the refund. attr_reader :reference # Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. @@ -189,7 +202,7 @@ module Stripe end end - class Giropay < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -199,7 +212,7 @@ module Stripe end end - class Grabpay < Stripe::StripeObject + class Grabpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -209,7 +222,7 @@ module Stripe end end - class JpBankTransfer < Stripe::StripeObject + class JpBankTransfer < ::Stripe::StripeObject # The reference assigned to the refund. attr_reader :reference # Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. @@ -224,7 +237,7 @@ module Stripe end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -234,7 +247,7 @@ module Stripe end end - class Multibanco < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject # The reference assigned to the refund. attr_reader :reference # Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. @@ -249,7 +262,7 @@ module Stripe end end - class MxBankTransfer < Stripe::StripeObject + class MxBankTransfer < ::Stripe::StripeObject # The reference assigned to the refund. attr_reader :reference # Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. @@ -264,7 +277,7 @@ module Stripe end end - class NzBankTransfer < Stripe::StripeObject + class NzBankTransfer < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -274,7 +287,7 @@ module Stripe end end - class P24 < Stripe::StripeObject + class P24 < ::Stripe::StripeObject # The reference assigned to the refund. attr_reader :reference # Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. @@ -289,7 +302,7 @@ module Stripe end end - class Paynow < Stripe::StripeObject + class Paynow < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -299,7 +312,7 @@ module Stripe end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed. attr_reader :network_decline_code @@ -312,7 +325,7 @@ module Stripe end end - class Pix < Stripe::StripeObject + class Pix < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -322,7 +335,7 @@ module Stripe end end - class Revolut < Stripe::StripeObject + class Revolut < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -332,7 +345,7 @@ module Stripe end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -342,7 +355,7 @@ module Stripe end end - class Swish < Stripe::StripeObject + class Swish < ::Stripe::StripeObject # For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed. attr_reader :network_decline_code # The reference assigned to the refund. @@ -359,7 +372,7 @@ module Stripe end end - class ThBankTransfer < Stripe::StripeObject + class ThBankTransfer < ::Stripe::StripeObject # The reference assigned to the refund. attr_reader :reference # Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. @@ -374,7 +387,7 @@ module Stripe end end - class UsBankTransfer < Stripe::StripeObject + class UsBankTransfer < ::Stripe::StripeObject # The reference assigned to the refund. attr_reader :reference # Status of the reference on the refund. This can be `pending`, `available` or `unavailable`. @@ -389,7 +402,7 @@ module Stripe end end - class WechatPay < Stripe::StripeObject + class WechatPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -399,7 +412,7 @@ module Stripe end end - class Zip < Stripe::StripeObject + class Zip < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -428,6 +441,8 @@ module Stripe attr_reader :card # Attribute for field cashapp attr_reader :cashapp + # Attribute for field crypto + attr_reader :crypto # Attribute for field customer_cash_balance attr_reader :customer_cash_balance # Attribute for field eps @@ -487,6 +502,7 @@ module Stripe br_bank_transfer: BrBankTransfer, card: Card, cashapp: Cashapp, + crypto: Crypto, customer_cash_balance: CustomerCashBalance, eps: Eps, eu_bank_transfer: EuBankTransfer, @@ -517,9 +533,9 @@ module Stripe end end - class NextAction < Stripe::StripeObject - class DisplayDetails < Stripe::StripeObject - class EmailSent < Stripe::StripeObject + class NextAction < ::Stripe::StripeObject + class DisplayDetails < ::Stripe::StripeObject + class EmailSent < ::Stripe::StripeObject # The timestamp when the email was sent. attr_reader :email_sent_at # The recipient's email address. @@ -560,7 +576,7 @@ module Stripe end end - class PresentmentDetails < Stripe::StripeObject + class PresentmentDetails < ::Stripe::StripeObject # Amount intended to be collected by this payment, denominated in `presentment_currency`. attr_reader :presentment_amount # Currency presented to the customer during payment. diff --git a/lib/stripe/resources/reporting/report_run.rb b/lib/stripe/resources/reporting/report_run.rb index 612bec70..7da9cc0c 100644 --- a/lib/stripe/resources/reporting/report_run.rb +++ b/lib/stripe/resources/reporting/report_run.rb @@ -20,7 +20,7 @@ module Stripe "reporting.report_run" end - class Parameters < Stripe::StripeObject + class Parameters < ::Stripe::StripeObject # The set of output columns requested for inclusion in the report run. attr_reader :columns # Connected account ID by which to filter the report run. diff --git a/lib/stripe/resources/review.rb b/lib/stripe/resources/review.rb index e4401b8a..afa7bba5 100644 --- a/lib/stripe/resources/review.rb +++ b/lib/stripe/resources/review.rb @@ -14,7 +14,7 @@ module Stripe "review" end - class IpAddressLocation < Stripe::StripeObject + class IpAddressLocation < ::Stripe::StripeObject # The city where the payment originated. attr_reader :city # Two-letter ISO code representing the country where the payment originated. @@ -35,7 +35,7 @@ module Stripe end end - class Session < Stripe::StripeObject + class Session < ::Stripe::StripeObject # The browser used in this browser session (e.g., `Chrome`). attr_reader :browser # Information about the device used for the browser session (e.g., `Samsung SM-G930T`). diff --git a/lib/stripe/resources/setup_attempt.rb b/lib/stripe/resources/setup_attempt.rb index 8a00d3a0..8984b391 100644 --- a/lib/stripe/resources/setup_attempt.rb +++ b/lib/stripe/resources/setup_attempt.rb @@ -14,8 +14,8 @@ module Stripe "setup_attempt" end - class PaymentMethodDetails < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject + class PaymentMethodDetails < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -25,7 +25,7 @@ module Stripe end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -35,7 +35,7 @@ module Stripe end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -45,7 +45,7 @@ module Stripe end end - class BacsDebit < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -55,7 +55,7 @@ module Stripe end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject # Bank code of bank associated with the bank account. attr_reader :bank_code # Name of the bank associated with the bank account. @@ -84,7 +84,7 @@ module Stripe end end - class Boleto < Stripe::StripeObject + class Boleto < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -94,8 +94,8 @@ module Stripe end end - class Card < Stripe::StripeObject - class Checks < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Checks < ::Stripe::StripeObject # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. attr_reader :address_line1_check # If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. @@ -112,7 +112,7 @@ module Stripe end end - class ThreeDSecure < Stripe::StripeObject + class ThreeDSecure < ::Stripe::StripeObject # For authenticated transactions: how the customer was authenticated by # the issuing bank. attr_reader :authentication_flow @@ -139,8 +139,8 @@ module Stripe end end - class Wallet < Stripe::StripeObject - class ApplePay < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -150,7 +150,7 @@ module Stripe end end - class GooglePay < Stripe::StripeObject + class GooglePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -214,8 +214,8 @@ module Stripe end end - class CardPresent < Stripe::StripeObject - class Offline < Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject + class Offline < ::Stripe::StripeObject # Time at which the payment was collected while offline attr_reader :stored_at # The method used to process this payment method offline. Only deferred is allowed. @@ -243,7 +243,7 @@ module Stripe end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -253,7 +253,7 @@ module Stripe end end - class Ideal < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject # The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. attr_reader :bank # The Bank Identifier Code of the customer's bank. @@ -277,7 +277,7 @@ module Stripe end end - class KakaoPay < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -287,7 +287,7 @@ module Stripe end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -297,7 +297,7 @@ module Stripe end end - class KrCard < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -307,7 +307,7 @@ module Stripe end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -317,7 +317,7 @@ module Stripe end end - class NaverPay < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject # Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same. attr_reader :buyer_id @@ -330,7 +330,7 @@ module Stripe end end - class NzBankAccount < Stripe::StripeObject + class NzBankAccount < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -340,7 +340,7 @@ module Stripe end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -350,7 +350,7 @@ module Stripe end end - class RevolutPay < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -360,7 +360,7 @@ module Stripe end end - class SepaDebit < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -370,7 +370,7 @@ module Stripe end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject # Bank code of bank associated with the bank account. attr_reader :bank_code # Name of the bank associated with the bank account. @@ -399,7 +399,7 @@ module Stripe end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -484,7 +484,7 @@ module Stripe end end - class SetupError < Stripe::StripeObject + class SetupError < ::Stripe::StripeObject # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one. attr_reader :advice_code # For card errors, the ID of the failed charge. diff --git a/lib/stripe/resources/setup_intent.rb b/lib/stripe/resources/setup_intent.rb index 11d2c4a5..57e7f11e 100644 --- a/lib/stripe/resources/setup_intent.rb +++ b/lib/stripe/resources/setup_intent.rb @@ -33,7 +33,7 @@ module Stripe "setup_intent" end - class AutomaticPaymentMethods < Stripe::StripeObject + class AutomaticPaymentMethods < ::Stripe::StripeObject # Controls whether this SetupIntent will accept redirect-based payment methods. # # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/setup_intents/confirm) this SetupIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the setup. @@ -50,7 +50,7 @@ module Stripe end end - class LastSetupError < Stripe::StripeObject + class LastSetupError < ::Stripe::StripeObject # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one. attr_reader :advice_code # For card errors, the ID of the failed charge. @@ -127,9 +127,9 @@ module Stripe end end - class NextAction < Stripe::StripeObject - class CashappHandleRedirectOrDisplayQrCode < Stripe::StripeObject - class QrCode < Stripe::StripeObject + class NextAction < ::Stripe::StripeObject + class CashappHandleRedirectOrDisplayQrCode < ::Stripe::StripeObject + class QrCode < ::Stripe::StripeObject # The date (unix timestamp) when the QR code expires. attr_reader :expires_at # The image_url_png string used to render QR code @@ -161,7 +161,7 @@ module Stripe end end - class RedirectToUrl < Stripe::StripeObject + class RedirectToUrl < ::Stripe::StripeObject # If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion. attr_reader :return_url # The URL you must redirect your customer to in order to authenticate. @@ -176,7 +176,7 @@ module Stripe end end - class VerifyWithMicrodeposits < Stripe::StripeObject + class VerifyWithMicrodeposits < ::Stripe::StripeObject # The timestamp when the microdeposits are expected to land. attr_reader :arrival_date # The URL for the hosted verification page, which allows customers to verify their bank account. @@ -216,7 +216,7 @@ module Stripe end end - class PaymentMethodConfigurationDetails < Stripe::StripeObject + class PaymentMethodConfigurationDetails < ::Stripe::StripeObject # ID of the payment method configuration used. attr_reader :id # ID of the parent payment method configuration used. @@ -231,9 +231,9 @@ module Stripe end end - class PaymentMethodOptions < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class PaymentMethodOptions < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # A URL for custom mandate text attr_reader :custom_mandate_url # List of Stripe products where this mandate can be selected automatically. @@ -269,7 +269,7 @@ module Stripe end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -279,8 +279,8 @@ module Stripe end end - class BacsDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. attr_reader :reference_prefix @@ -304,8 +304,8 @@ module Stripe end end - class Card < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Amount to be charged for future payments. attr_reader :amount # One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. @@ -351,7 +351,7 @@ module Stripe end end - class CardPresent < Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -361,7 +361,7 @@ module Stripe end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject # The currency of the setup intent. Three letter ISO currency code. attr_reader :currency # Preferred locale of the Klarna checkout page that the customer is redirected to. @@ -376,7 +376,7 @@ module Stripe end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject # [Deprecated] This is a legacy parameter that no longer has any function. attr_reader :persistent_token @@ -389,7 +389,7 @@ module Stripe end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer. attr_reader :billing_agreement_id @@ -402,8 +402,8 @@ module Stripe end end - class SepaDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. attr_reader :reference_prefix @@ -427,9 +427,9 @@ module Stripe end end - class UsBankAccount < Stripe::StripeObject - class FinancialConnections < Stripe::StripeObject - class Filters < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject + class FinancialConnections < ::Stripe::StripeObject + class Filters < ::Stripe::StripeObject # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. attr_reader :account_subcategories @@ -459,7 +459,7 @@ module Stripe end end - class MandateOptions < Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Mandate collection method attr_reader :collection_method @@ -551,6 +551,8 @@ module Stripe attr_reader :customer # An arbitrary string attached to the object. Often useful for displaying to users. attr_reader :description + # Payment method types that are excluded from this SetupIntent. + attr_reader :excluded_payment_method_types # Indicates the directions of money movement for which this payment method is intended to be used. # # Include `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes. diff --git a/lib/stripe/resources/shipping_rate.rb b/lib/stripe/resources/shipping_rate.rb index 95b44396..2963d6e1 100644 --- a/lib/stripe/resources/shipping_rate.rb +++ b/lib/stripe/resources/shipping_rate.rb @@ -14,8 +14,8 @@ module Stripe "shipping_rate" end - class DeliveryEstimate < Stripe::StripeObject - class Maximum < Stripe::StripeObject + class DeliveryEstimate < ::Stripe::StripeObject + class Maximum < ::Stripe::StripeObject # A unit of time. attr_reader :unit # Must be greater than 0. @@ -30,7 +30,7 @@ module Stripe end end - class Minimum < Stripe::StripeObject + class Minimum < ::Stripe::StripeObject # A unit of time. attr_reader :unit # Must be greater than 0. @@ -58,8 +58,8 @@ module Stripe end end - class FixedAmount < Stripe::StripeObject - class CurrencyOptions < Stripe::StripeObject + class FixedAmount < ::Stripe::StripeObject + class CurrencyOptions < ::Stripe::StripeObject # A non-negative integer in cents representing how much to charge. attr_reader :amount # Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. diff --git a/lib/stripe/resources/sigma/scheduled_query_run.rb b/lib/stripe/resources/sigma/scheduled_query_run.rb index 8291c494..cff513b1 100644 --- a/lib/stripe/resources/sigma/scheduled_query_run.rb +++ b/lib/stripe/resources/sigma/scheduled_query_run.rb @@ -15,7 +15,7 @@ module Stripe "scheduled_query_run" end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # Information about the run failure. attr_reader :message diff --git a/lib/stripe/resources/source.rb b/lib/stripe/resources/source.rb index fb3bd980..b898a8de 100644 --- a/lib/stripe/resources/source.rb +++ b/lib/stripe/resources/source.rb @@ -24,7 +24,7 @@ module Stripe nested_resource_class_methods :source_transaction, operations: %i[retrieve list] - class AchCreditTransfer < Stripe::StripeObject + class AchCreditTransfer < ::Stripe::StripeObject # Attribute for field account_number attr_reader :account_number # Attribute for field bank_name @@ -51,7 +51,7 @@ module Stripe end end - class AchDebit < Stripe::StripeObject + class AchDebit < ::Stripe::StripeObject # Attribute for field bank_name attr_reader :bank_name # Attribute for field country @@ -74,7 +74,7 @@ module Stripe end end - class AcssDebit < Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject # Attribute for field bank_address_city attr_reader :bank_address_city # Attribute for field bank_address_line_1 @@ -105,7 +105,7 @@ module Stripe end end - class Alipay < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject # Attribute for field data_string attr_reader :data_string # Attribute for field native_url @@ -122,7 +122,7 @@ module Stripe end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject # Attribute for field bsb_number attr_reader :bsb_number # Attribute for field fingerprint @@ -139,7 +139,7 @@ module Stripe end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject # Attribute for field bank_code attr_reader :bank_code # Attribute for field bank_name @@ -162,7 +162,7 @@ module Stripe end end - class Card < Stripe::StripeObject + class Card < ::Stripe::StripeObject # Attribute for field address_line1_check attr_reader :address_line1_check # Attribute for field address_zip_check @@ -207,7 +207,7 @@ module Stripe end end - class CardPresent < Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject # Attribute for field application_cryptogram attr_reader :application_cryptogram # Attribute for field application_preferred_name @@ -270,7 +270,7 @@ module Stripe end end - class CodeVerification < Stripe::StripeObject + class CodeVerification < ::Stripe::StripeObject # The number of attempts remaining to authenticate the source object with a verification code. attr_reader :attempts_remaining # The status of the code verification, either `pending` (awaiting verification, `attempts_remaining` should be greater than 0), `succeeded` (successful verification) or `failed` (failed verification, cannot be verified anymore as `attempts_remaining` should be 0). @@ -285,7 +285,7 @@ module Stripe end end - class Eps < Stripe::StripeObject + class Eps < ::Stripe::StripeObject # Attribute for field reference attr_reader :reference # Attribute for field statement_descriptor @@ -300,7 +300,7 @@ module Stripe end end - class Giropay < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject # Attribute for field bank_code attr_reader :bank_code # Attribute for field bank_name @@ -319,7 +319,7 @@ module Stripe end end - class Ideal < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject # Attribute for field bank attr_reader :bank # Attribute for field bic @@ -338,7 +338,7 @@ module Stripe end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject # Attribute for field background_image_url attr_reader :background_image_url # Attribute for field client_token @@ -401,7 +401,7 @@ module Stripe end end - class Multibanco < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject # Attribute for field entity attr_reader :entity # Attribute for field reference @@ -432,8 +432,8 @@ module Stripe end end - class Owner < Stripe::StripeObject - class Address < Stripe::StripeObject + class Owner < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -456,7 +456,7 @@ module Stripe end end - class VerifiedAddress < Stripe::StripeObject + class VerifiedAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -504,7 +504,7 @@ module Stripe end end - class P24 < Stripe::StripeObject + class P24 < ::Stripe::StripeObject # Attribute for field reference attr_reader :reference @@ -517,7 +517,7 @@ module Stripe end end - class Receiver < Stripe::StripeObject + class Receiver < ::Stripe::StripeObject # The address of the receiver source. This is the value that should be communicated to the customer to send their funds to. attr_reader :address # The total amount that was moved to your balance. This is almost always equal to the amount charged. In rare cases when customers deposit excess funds and we are unable to refund those, those funds get moved to your balance and show up in amount_charged as well. The amount charged is expressed in the source's currency. @@ -540,7 +540,7 @@ module Stripe end end - class Redirect < Stripe::StripeObject + class Redirect < ::Stripe::StripeObject # The failure reason for the redirect, either `user_abort` (the customer aborted or dropped out of the redirect flow), `declined` (the authentication failed or the transaction was declined), or `processing_error` (the redirect failed due to a technical error). Present only if the redirect status is `failed`. attr_reader :failure_reason # The URL you provide to redirect the customer to after they authenticated their payment. @@ -559,7 +559,7 @@ module Stripe end end - class SepaCreditTransfer < Stripe::StripeObject + class SepaCreditTransfer < ::Stripe::StripeObject # Attribute for field bank_name attr_reader :bank_name # Attribute for field bic @@ -592,7 +592,7 @@ module Stripe end end - class SepaDebit < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject # Attribute for field bank_code attr_reader :bank_code # Attribute for field branch_code @@ -617,7 +617,7 @@ module Stripe end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject # Attribute for field bank_code attr_reader :bank_code # Attribute for field bank_name @@ -642,8 +642,8 @@ module Stripe end end - class SourceOrder < Stripe::StripeObject - class Item < Stripe::StripeObject + class SourceOrder < ::Stripe::StripeObject + class Item < ::Stripe::StripeObject # The amount (price) for this order item. attr_reader :amount # This currency of this order item. Required when `amount` is present. @@ -666,8 +666,8 @@ module Stripe end end - class Shipping < Stripe::StripeObject - class Address < Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -728,7 +728,7 @@ module Stripe end end - class ThreeDSecure < Stripe::StripeObject + class ThreeDSecure < ::Stripe::StripeObject # Attribute for field address_line1_check attr_reader :address_line1_check # Attribute for field address_zip_check @@ -779,7 +779,7 @@ module Stripe end end - class Wechat < Stripe::StripeObject + class Wechat < ::Stripe::StripeObject # Attribute for field prepay_id attr_reader :prepay_id # Attribute for field qr_code_url diff --git a/lib/stripe/resources/source_mandate_notification.rb b/lib/stripe/resources/source_mandate_notification.rb index e2dcabc0..e992425e 100644 --- a/lib/stripe/resources/source_mandate_notification.rb +++ b/lib/stripe/resources/source_mandate_notification.rb @@ -11,7 +11,7 @@ module Stripe "source_mandate_notification" end - class AcssDebit < Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject # The statement descriptor associate with the debit. attr_reader :statement_descriptor @@ -24,7 +24,7 @@ module Stripe end end - class BacsDebit < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject # Last 4 digits of the account number associated with the debit. attr_reader :last4 @@ -37,7 +37,7 @@ module Stripe end end - class SepaDebit < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject # SEPA creditor ID. attr_reader :creditor_identifier # Last 4 digits of the account number associated with the debit. diff --git a/lib/stripe/resources/source_transaction.rb b/lib/stripe/resources/source_transaction.rb index 4818d0b3..7dcdc84a 100644 --- a/lib/stripe/resources/source_transaction.rb +++ b/lib/stripe/resources/source_transaction.rb @@ -12,7 +12,7 @@ module Stripe "source_transaction" end - class AchCreditTransfer < Stripe::StripeObject + class AchCreditTransfer < ::Stripe::StripeObject # Customer data associated with the transfer. attr_reader :customer_data # Bank account fingerprint associated with the transfer. @@ -31,7 +31,7 @@ module Stripe end end - class ChfCreditTransfer < Stripe::StripeObject + class ChfCreditTransfer < ::Stripe::StripeObject # Reference associated with the transfer. attr_reader :reference # Sender's country address. @@ -52,7 +52,7 @@ module Stripe end end - class GbpCreditTransfer < Stripe::StripeObject + class GbpCreditTransfer < ::Stripe::StripeObject # Bank account fingerprint associated with the Stripe owned bank account receiving the transfer. attr_reader :fingerprint # The credit transfer rails the sender used to push this transfer. The possible rails are: Faster Payments, BACS, CHAPS, and wire transfers. Currently only Faster Payments is supported. @@ -77,7 +77,7 @@ module Stripe end end - class PaperCheck < Stripe::StripeObject + class PaperCheck < ::Stripe::StripeObject # Time at which the deposited funds will be available for use. Measured in seconds since the Unix epoch. attr_reader :available_at # Comma-separated list of invoice IDs associated with the paper check. @@ -92,7 +92,7 @@ module Stripe end end - class SepaCreditTransfer < Stripe::StripeObject + class SepaCreditTransfer < ::Stripe::StripeObject # Reference associated with the transfer. attr_reader :reference # Sender's bank account IBAN. diff --git a/lib/stripe/resources/subscription.rb b/lib/stripe/resources/subscription.rb index d7bf9856..fabc5242 100644 --- a/lib/stripe/resources/subscription.rb +++ b/lib/stripe/resources/subscription.rb @@ -16,8 +16,8 @@ module Stripe "subscription" end - class AutomaticTax < Stripe::StripeObject - class Liability < Stripe::StripeObject + class AutomaticTax < ::Stripe::StripeObject + class Liability < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. attr_reader :account # Type of the account referenced. @@ -47,7 +47,7 @@ module Stripe end end - class BillingCycleAnchorConfig < Stripe::StripeObject + class BillingCycleAnchorConfig < ::Stripe::StripeObject # The day of the month of the billing_cycle_anchor. attr_reader :day_of_month # The hour of the day of the billing_cycle_anchor. @@ -68,8 +68,8 @@ module Stripe end end - class BillingMode < Stripe::StripeObject - class Flexible < Stripe::StripeObject + class BillingMode < ::Stripe::StripeObject + class Flexible < ::Stripe::StripeObject # Controls how invoices and invoice items display proration amounts and discount amounts. attr_reader :proration_discounts @@ -97,7 +97,7 @@ module Stripe end end - class BillingThresholds < Stripe::StripeObject + class BillingThresholds < ::Stripe::StripeObject # Monetary threshold that triggers the subscription to create an invoice attr_reader :amount_gte # Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. This value may not be `true` if the subscription contains items with plans that have `aggregate_usage=last_ever`. @@ -112,7 +112,7 @@ module Stripe end end - class CancellationDetails < Stripe::StripeObject + class CancellationDetails < ::Stripe::StripeObject # Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user. attr_reader :comment # The customer submitted reason for why they canceled, if the subscription was canceled explicitly by the user. @@ -129,8 +129,8 @@ module Stripe end end - class InvoiceSettings < Stripe::StripeObject - class Issuer < Stripe::StripeObject + class InvoiceSettings < ::Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. attr_reader :account # Type of the account referenced. @@ -158,7 +158,7 @@ module Stripe end end - class PauseCollection < Stripe::StripeObject + class PauseCollection < ::Stripe::StripeObject # The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`. attr_reader :behavior # The time after which the subscription will resume collecting payments. @@ -173,10 +173,10 @@ module Stripe end end - class PaymentSettings < Stripe::StripeObject - class PaymentMethodOptions < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class PaymentSettings < ::Stripe::StripeObject + class PaymentMethodOptions < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Transaction type of the mandate. attr_reader :transaction_type @@ -202,7 +202,7 @@ module Stripe end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject # Preferred language of the Bancontact authorization page that the customer is redirected to. attr_reader :preferred_language @@ -215,8 +215,8 @@ module Stripe end end - class Card < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Amount to be charged for future payments. attr_reader :amount # One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. @@ -248,9 +248,9 @@ module Stripe end end - class CustomerBalance < Stripe::StripeObject - class BankTransfer < Stripe::StripeObject - class EuBankTransfer < Stripe::StripeObject + class CustomerBalance < ::Stripe::StripeObject + class BankTransfer < ::Stripe::StripeObject + class EuBankTransfer < ::Stripe::StripeObject # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. attr_reader :country @@ -289,7 +289,7 @@ module Stripe end end - class Konbini < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -299,7 +299,7 @@ module Stripe end end - class SepaDebit < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -309,9 +309,9 @@ module Stripe end end - class UsBankAccount < Stripe::StripeObject - class FinancialConnections < Stripe::StripeObject - class Filters < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject + class FinancialConnections < ::Stripe::StripeObject + class Filters < ::Stripe::StripeObject # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. attr_reader :account_subcategories @@ -398,7 +398,7 @@ module Stripe end end - class PendingInvoiceItemInterval < Stripe::StripeObject + class PendingInvoiceItemInterval < ::Stripe::StripeObject # Specifies invoicing frequency. Either `day`, `week`, `month` or `year`. attr_reader :interval # The number of intervals between invoices. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). @@ -413,7 +413,7 @@ module Stripe end end - class PendingUpdate < Stripe::StripeObject + class PendingUpdate < ::Stripe::StripeObject # If the update is applied, determines the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. The timestamp is in UTC format. attr_reader :billing_cycle_anchor # The point after which the changes reflected by this update will be discarded and no longer applied. @@ -434,7 +434,7 @@ module Stripe end end - class TransferData < Stripe::StripeObject + class TransferData < ::Stripe::StripeObject # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. attr_reader :amount_percent # The account where funds from the payment will be transferred to upon payment success. @@ -449,8 +449,8 @@ module Stripe end end - class TrialSettings < Stripe::StripeObject - class EndBehavior < Stripe::StripeObject + class TrialSettings < ::Stripe::StripeObject + class EndBehavior < ::Stripe::StripeObject # Indicates how the subscription should change when the trial ends if the user did not provide a payment method. attr_reader :missing_payment_method diff --git a/lib/stripe/resources/subscription_item.rb b/lib/stripe/resources/subscription_item.rb index 0eff9310..9d7ad7be 100644 --- a/lib/stripe/resources/subscription_item.rb +++ b/lib/stripe/resources/subscription_item.rb @@ -15,7 +15,7 @@ module Stripe "subscription_item" end - class BillingThresholds < Stripe::StripeObject + class BillingThresholds < ::Stripe::StripeObject # Usage threshold that triggers the subscription to create an invoice attr_reader :usage_gte diff --git a/lib/stripe/resources/subscription_schedule.rb b/lib/stripe/resources/subscription_schedule.rb index 8f747a33..63a090ae 100644 --- a/lib/stripe/resources/subscription_schedule.rb +++ b/lib/stripe/resources/subscription_schedule.rb @@ -15,8 +15,8 @@ module Stripe "subscription_schedule" end - class BillingMode < Stripe::StripeObject - class Flexible < Stripe::StripeObject + class BillingMode < ::Stripe::StripeObject + class Flexible < ::Stripe::StripeObject # Controls how invoices and invoice items display proration amounts and discount amounts. attr_reader :proration_discounts @@ -44,7 +44,7 @@ module Stripe end end - class CurrentPhase < Stripe::StripeObject + class CurrentPhase < ::Stripe::StripeObject # The end of this phase of the subscription schedule. attr_reader :end_date # The start of this phase of the subscription schedule. @@ -59,9 +59,9 @@ module Stripe end end - class DefaultSettings < Stripe::StripeObject - class AutomaticTax < Stripe::StripeObject - class Liability < Stripe::StripeObject + class DefaultSettings < ::Stripe::StripeObject + class AutomaticTax < ::Stripe::StripeObject + class Liability < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. attr_reader :account # Type of the account referenced. @@ -91,7 +91,7 @@ module Stripe end end - class BillingThresholds < Stripe::StripeObject + class BillingThresholds < ::Stripe::StripeObject # Monetary threshold that triggers the subscription to create an invoice attr_reader :amount_gte # Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. This value may not be `true` if the subscription contains items with plans that have `aggregate_usage=last_ever`. @@ -106,8 +106,8 @@ module Stripe end end - class InvoiceSettings < Stripe::StripeObject - class Issuer < Stripe::StripeObject + class InvoiceSettings < ::Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. attr_reader :account # Type of the account referenced. @@ -137,7 +137,7 @@ module Stripe end end - class TransferData < Stripe::StripeObject + class TransferData < ::Stripe::StripeObject # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. attr_reader :amount_percent # The account where funds from the payment will be transferred to upon payment success. @@ -186,9 +186,9 @@ module Stripe end end - class Phase < Stripe::StripeObject - class AddInvoiceItem < Stripe::StripeObject - class Discount < Stripe::StripeObject + class Phase < ::Stripe::StripeObject + class AddInvoiceItem < ::Stripe::StripeObject + class Discount < ::Stripe::StripeObject # ID of the coupon to create a new discount for. attr_reader :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -205,8 +205,8 @@ module Stripe end end - class Period < Stripe::StripeObject - class End < Stripe::StripeObject + class Period < ::Stripe::StripeObject + class End < ::Stripe::StripeObject # A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`. attr_reader :timestamp # Select how to calculate the end of the invoice item period. @@ -221,7 +221,7 @@ module Stripe end end - class Start < Stripe::StripeObject + class Start < ::Stripe::StripeObject # A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`. attr_reader :timestamp # Select how to calculate the start of the invoice item period. @@ -270,8 +270,8 @@ module Stripe end end - class AutomaticTax < Stripe::StripeObject - class Liability < Stripe::StripeObject + class AutomaticTax < ::Stripe::StripeObject + class Liability < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. attr_reader :account # Type of the account referenced. @@ -301,7 +301,7 @@ module Stripe end end - class BillingThresholds < Stripe::StripeObject + class BillingThresholds < ::Stripe::StripeObject # Monetary threshold that triggers the subscription to create an invoice attr_reader :amount_gte # Indicates if the `billing_cycle_anchor` should be reset when a threshold is reached. If true, `billing_cycle_anchor` will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. This value may not be `true` if the subscription contains items with plans that have `aggregate_usage=last_ever`. @@ -316,7 +316,7 @@ module Stripe end end - class Discount < Stripe::StripeObject + class Discount < ::Stripe::StripeObject # ID of the coupon to create a new discount for. attr_reader :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -333,8 +333,8 @@ module Stripe end end - class InvoiceSettings < Stripe::StripeObject - class Issuer < Stripe::StripeObject + class InvoiceSettings < ::Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. attr_reader :account # Type of the account referenced. @@ -364,8 +364,8 @@ module Stripe end end - class Item < Stripe::StripeObject - class BillingThresholds < Stripe::StripeObject + class Item < ::Stripe::StripeObject + class BillingThresholds < ::Stripe::StripeObject # Usage threshold that triggers the subscription to create an invoice attr_reader :usage_gte @@ -378,7 +378,7 @@ module Stripe end end - class Discount < Stripe::StripeObject + class Discount < ::Stripe::StripeObject # ID of the coupon to create a new discount for. attr_reader :coupon # ID of an existing discount on the object (or one of its ancestors) to reuse. @@ -418,7 +418,7 @@ module Stripe end end - class TransferData < Stripe::StripeObject + class TransferData < ::Stripe::StripeObject # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. attr_reader :amount_percent # The account where funds from the payment will be transferred to upon payment success. diff --git a/lib/stripe/resources/tax/calculation.rb b/lib/stripe/resources/tax/calculation.rb index 1cace4cb..03409e41 100644 --- a/lib/stripe/resources/tax/calculation.rb +++ b/lib/stripe/resources/tax/calculation.rb @@ -14,8 +14,8 @@ module Stripe "tax.calculation" end - class CustomerDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class CustomerDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -38,7 +38,7 @@ module Stripe end end - class TaxId < Stripe::StripeObject + class TaxId < ::Stripe::StripeObject # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` attr_reader :type # The value of the tax ID. @@ -72,8 +72,8 @@ module Stripe end end - class ShipFromDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class ShipFromDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -107,9 +107,9 @@ module Stripe end end - class ShippingCost < Stripe::StripeObject - class TaxBreakdown < Stripe::StripeObject - class Jurisdiction < Stripe::StripeObject + class ShippingCost < ::Stripe::StripeObject + class TaxBreakdown < ::Stripe::StripeObject + class Jurisdiction < ::Stripe::StripeObject # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). attr_reader :country # A human-readable name for the jurisdiction imposing the tax. @@ -128,7 +128,7 @@ module Stripe end end - class TaxRateDetails < Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject # A localized display name for tax type, intended to be human-readable. For example, "Local Sales and Use Tax", "Value-added tax (VAT)", or "Umsatzsteuer (USt.)". attr_reader :display_name # The tax rate percentage as a string. For example, 8.5% is represented as "8.5". @@ -187,9 +187,9 @@ module Stripe end end - class TaxBreakdown < Stripe::StripeObject - class TaxRateDetails < Stripe::StripeObject - class FlatAmount < Stripe::StripeObject + class TaxBreakdown < ::Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject + class FlatAmount < ::Stripe::StripeObject # Amount of the tax when the `rate_type` is `flat_amount`. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). attr_reader :amount # Three-letter ISO currency code, in lowercase. diff --git a/lib/stripe/resources/tax/calculation_line_item.rb b/lib/stripe/resources/tax/calculation_line_item.rb index aea7ed58..fbb2246b 100644 --- a/lib/stripe/resources/tax/calculation_line_item.rb +++ b/lib/stripe/resources/tax/calculation_line_item.rb @@ -9,8 +9,8 @@ module Stripe "tax.calculation_line_item" end - class TaxBreakdown < Stripe::StripeObject - class Jurisdiction < Stripe::StripeObject + class TaxBreakdown < ::Stripe::StripeObject + class Jurisdiction < ::Stripe::StripeObject # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). attr_reader :country # A human-readable name for the jurisdiction imposing the tax. @@ -29,7 +29,7 @@ module Stripe end end - class TaxRateDetails < Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject # A localized display name for tax type, intended to be human-readable. For example, "Local Sales and Use Tax", "Value-added tax (VAT)", or "Umsatzsteuer (USt.)". attr_reader :display_name # The tax rate percentage as a string. For example, 8.5% is represented as "8.5". diff --git a/lib/stripe/resources/tax/registration.rb b/lib/stripe/resources/tax/registration.rb index 708693a0..aa162cf5 100644 --- a/lib/stripe/resources/tax/registration.rb +++ b/lib/stripe/resources/tax/registration.rb @@ -18,9 +18,9 @@ module Stripe "tax.registration" end - class CountryOptions < Stripe::StripeObject - class Ae < Stripe::StripeObject - class Standard < Stripe::StripeObject + class CountryOptions < ::Stripe::StripeObject + class Ae < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. attr_reader :place_of_supply_scheme @@ -46,7 +46,7 @@ module Stripe end end - class Al < Stripe::StripeObject + class Al < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -59,7 +59,7 @@ module Stripe end end - class Am < Stripe::StripeObject + class Am < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -72,7 +72,7 @@ module Stripe end end - class Ao < Stripe::StripeObject + class Ao < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -85,8 +85,8 @@ module Stripe end end - class At < Stripe::StripeObject - class Standard < Stripe::StripeObject + class At < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -112,8 +112,8 @@ module Stripe end end - class Au < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Au < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. attr_reader :place_of_supply_scheme @@ -139,7 +139,7 @@ module Stripe end end - class Aw < Stripe::StripeObject + class Aw < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -152,7 +152,7 @@ module Stripe end end - class Az < Stripe::StripeObject + class Az < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -165,7 +165,7 @@ module Stripe end end - class Ba < Stripe::StripeObject + class Ba < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -178,7 +178,7 @@ module Stripe end end - class Bb < Stripe::StripeObject + class Bb < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -191,7 +191,7 @@ module Stripe end end - class Bd < Stripe::StripeObject + class Bd < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -204,8 +204,8 @@ module Stripe end end - class Be < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Be < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -231,7 +231,7 @@ module Stripe end end - class Bf < Stripe::StripeObject + class Bf < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -244,8 +244,8 @@ module Stripe end end - class Bg < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Bg < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -271,7 +271,7 @@ module Stripe end end - class Bh < Stripe::StripeObject + class Bh < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -284,7 +284,7 @@ module Stripe end end - class Bj < Stripe::StripeObject + class Bj < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -297,7 +297,7 @@ module Stripe end end - class Bs < Stripe::StripeObject + class Bs < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -310,7 +310,7 @@ module Stripe end end - class By < Stripe::StripeObject + class By < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -323,8 +323,8 @@ module Stripe end end - class Ca < Stripe::StripeObject - class ProvinceStandard < Stripe::StripeObject + class Ca < ::Stripe::StripeObject + class ProvinceStandard < ::Stripe::StripeObject # Two-letter CA province code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). attr_reader :province @@ -350,7 +350,7 @@ module Stripe end end - class Cd < Stripe::StripeObject + class Cd < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -363,8 +363,8 @@ module Stripe end end - class Ch < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Ch < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. attr_reader :place_of_supply_scheme @@ -390,7 +390,7 @@ module Stripe end end - class Cl < Stripe::StripeObject + class Cl < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -403,7 +403,7 @@ module Stripe end end - class Cm < Stripe::StripeObject + class Cm < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -416,7 +416,7 @@ module Stripe end end - class Co < Stripe::StripeObject + class Co < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -429,7 +429,7 @@ module Stripe end end - class Cr < Stripe::StripeObject + class Cr < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -442,7 +442,7 @@ module Stripe end end - class Cv < Stripe::StripeObject + class Cv < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -455,8 +455,8 @@ module Stripe end end - class Cy < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Cy < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -482,8 +482,8 @@ module Stripe end end - class Cz < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Cz < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -509,8 +509,8 @@ module Stripe end end - class De < Stripe::StripeObject - class Standard < Stripe::StripeObject + class De < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -536,8 +536,8 @@ module Stripe end end - class Dk < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Dk < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -563,7 +563,7 @@ module Stripe end end - class Ec < Stripe::StripeObject + class Ec < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -576,8 +576,8 @@ module Stripe end end - class Ee < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Ee < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -603,7 +603,7 @@ module Stripe end end - class Eg < Stripe::StripeObject + class Eg < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -616,8 +616,8 @@ module Stripe end end - class Es < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Es < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -643,7 +643,7 @@ module Stripe end end - class Et < Stripe::StripeObject + class Et < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -656,8 +656,8 @@ module Stripe end end - class Fi < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Fi < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -683,8 +683,8 @@ module Stripe end end - class Fr < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Fr < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -710,8 +710,8 @@ module Stripe end end - class Gb < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Gb < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. attr_reader :place_of_supply_scheme @@ -737,7 +737,7 @@ module Stripe end end - class Ge < Stripe::StripeObject + class Ge < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -750,7 +750,7 @@ module Stripe end end - class Gn < Stripe::StripeObject + class Gn < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -763,8 +763,8 @@ module Stripe end end - class Gr < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Gr < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -790,8 +790,8 @@ module Stripe end end - class Hr < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Hr < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -817,8 +817,8 @@ module Stripe end end - class Hu < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Hu < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -844,7 +844,7 @@ module Stripe end end - class Id < Stripe::StripeObject + class Id < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -857,8 +857,8 @@ module Stripe end end - class Ie < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Ie < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -884,7 +884,7 @@ module Stripe end end - class In < Stripe::StripeObject + class In < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -897,7 +897,7 @@ module Stripe end end - class Is < Stripe::StripeObject + class Is < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -910,8 +910,8 @@ module Stripe end end - class It < Stripe::StripeObject - class Standard < Stripe::StripeObject + class It < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -937,8 +937,8 @@ module Stripe end end - class Jp < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Jp < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. attr_reader :place_of_supply_scheme @@ -964,7 +964,7 @@ module Stripe end end - class Ke < Stripe::StripeObject + class Ke < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -977,7 +977,7 @@ module Stripe end end - class Kg < Stripe::StripeObject + class Kg < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -990,7 +990,7 @@ module Stripe end end - class Kh < Stripe::StripeObject + class Kh < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1003,7 +1003,7 @@ module Stripe end end - class Kr < Stripe::StripeObject + class Kr < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1016,7 +1016,7 @@ module Stripe end end - class Kz < Stripe::StripeObject + class Kz < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1029,7 +1029,7 @@ module Stripe end end - class La < Stripe::StripeObject + class La < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1042,8 +1042,8 @@ module Stripe end end - class Lt < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Lt < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -1069,8 +1069,8 @@ module Stripe end end - class Lu < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Lu < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -1096,8 +1096,8 @@ module Stripe end end - class Lv < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Lv < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -1123,7 +1123,7 @@ module Stripe end end - class Ma < Stripe::StripeObject + class Ma < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1136,7 +1136,7 @@ module Stripe end end - class Md < Stripe::StripeObject + class Md < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1149,7 +1149,7 @@ module Stripe end end - class Me < Stripe::StripeObject + class Me < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1162,7 +1162,7 @@ module Stripe end end - class Mk < Stripe::StripeObject + class Mk < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1175,7 +1175,7 @@ module Stripe end end - class Mr < Stripe::StripeObject + class Mr < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1188,8 +1188,8 @@ module Stripe end end - class Mt < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Mt < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -1215,7 +1215,7 @@ module Stripe end end - class Mx < Stripe::StripeObject + class Mx < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1228,7 +1228,7 @@ module Stripe end end - class My < Stripe::StripeObject + class My < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1241,7 +1241,7 @@ module Stripe end end - class Ng < Stripe::StripeObject + class Ng < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1254,8 +1254,8 @@ module Stripe end end - class Nl < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Nl < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -1281,8 +1281,8 @@ module Stripe end end - class No < Stripe::StripeObject - class Standard < Stripe::StripeObject + class No < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. attr_reader :place_of_supply_scheme @@ -1308,7 +1308,7 @@ module Stripe end end - class Np < Stripe::StripeObject + class Np < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1321,8 +1321,8 @@ module Stripe end end - class Nz < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Nz < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. attr_reader :place_of_supply_scheme @@ -1348,7 +1348,7 @@ module Stripe end end - class Om < Stripe::StripeObject + class Om < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1361,7 +1361,7 @@ module Stripe end end - class Pe < Stripe::StripeObject + class Pe < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1374,7 +1374,7 @@ module Stripe end end - class Ph < Stripe::StripeObject + class Ph < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1387,8 +1387,8 @@ module Stripe end end - class Pl < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Pl < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -1414,8 +1414,8 @@ module Stripe end end - class Pt < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Pt < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -1441,8 +1441,8 @@ module Stripe end end - class Ro < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Ro < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -1468,7 +1468,7 @@ module Stripe end end - class Rs < Stripe::StripeObject + class Rs < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1481,7 +1481,7 @@ module Stripe end end - class Ru < Stripe::StripeObject + class Ru < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1494,7 +1494,7 @@ module Stripe end end - class Sa < Stripe::StripeObject + class Sa < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1507,8 +1507,8 @@ module Stripe end end - class Se < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Se < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -1534,8 +1534,8 @@ module Stripe end end - class Sg < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Sg < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. attr_reader :place_of_supply_scheme @@ -1561,8 +1561,8 @@ module Stripe end end - class Si < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Si < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -1588,8 +1588,8 @@ module Stripe end end - class Sk < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Sk < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. attr_reader :place_of_supply_scheme @@ -1615,7 +1615,7 @@ module Stripe end end - class Sn < Stripe::StripeObject + class Sn < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1628,7 +1628,7 @@ module Stripe end end - class Sr < Stripe::StripeObject + class Sr < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1641,7 +1641,7 @@ module Stripe end end - class Th < Stripe::StripeObject + class Th < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1654,7 +1654,7 @@ module Stripe end end - class Tj < Stripe::StripeObject + class Tj < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1667,7 +1667,7 @@ module Stripe end end - class Tr < Stripe::StripeObject + class Tr < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1680,7 +1680,7 @@ module Stripe end end - class Tz < Stripe::StripeObject + class Tw < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1693,7 +1693,7 @@ module Stripe end end - class Ua < Stripe::StripeObject + class Tz < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1706,7 +1706,7 @@ module Stripe end end - class Ug < Stripe::StripeObject + class Ua < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1719,8 +1719,21 @@ module Stripe end end - class Us < Stripe::StripeObject - class LocalAmusementTax < Stripe::StripeObject + class Ug < ::Stripe::StripeObject + # Type of registration in `country`. + attr_reader :type + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Us < ::Stripe::StripeObject + class LocalAmusementTax < ::Stripe::StripeObject # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. attr_reader :jurisdiction @@ -1733,7 +1746,7 @@ module Stripe end end - class LocalLeaseTax < Stripe::StripeObject + class LocalLeaseTax < ::Stripe::StripeObject # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. attr_reader :jurisdiction @@ -1746,8 +1759,8 @@ module Stripe end end - class StateSalesTax < Stripe::StripeObject - class Election < Stripe::StripeObject + class StateSalesTax < ::Stripe::StripeObject + class Election < ::Stripe::StripeObject # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. attr_reader :jurisdiction # The type of the election for the state sales tax registration. @@ -1796,7 +1809,7 @@ module Stripe end end - class Uy < Stripe::StripeObject + class Uy < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1809,7 +1822,7 @@ module Stripe end end - class Uz < Stripe::StripeObject + class Uz < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1822,7 +1835,7 @@ module Stripe end end - class Vn < Stripe::StripeObject + class Vn < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1835,7 +1848,7 @@ module Stripe end end - class Za < Stripe::StripeObject + class Za < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1848,7 +1861,7 @@ module Stripe end end - class Zm < Stripe::StripeObject + class Zm < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -1861,7 +1874,7 @@ module Stripe end end - class Zw < Stripe::StripeObject + class Zw < ::Stripe::StripeObject # Type of registration in `country`. attr_reader :type @@ -2051,6 +2064,8 @@ module Stripe attr_reader :tj # Attribute for field tr attr_reader :tr + # Attribute for field tw + attr_reader :tw # Attribute for field tz attr_reader :tz # Attribute for field ua @@ -2163,6 +2178,7 @@ module Stripe th: Th, tj: Tj, tr: Tr, + tw: Tw, tz: Tz, ua: Ua, ug: Ug, diff --git a/lib/stripe/resources/tax/settings.rb b/lib/stripe/resources/tax/settings.rb index abec7ed9..81fd771a 100644 --- a/lib/stripe/resources/tax/settings.rb +++ b/lib/stripe/resources/tax/settings.rb @@ -14,7 +14,7 @@ module Stripe "tax.settings" end - class Defaults < Stripe::StripeObject + class Defaults < ::Stripe::StripeObject # The tax calculation provider this account uses. Defaults to `stripe` when not using a [third-party provider](/tax/third-party-apps). attr_reader :provider # Default [tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#tax-behavior) used to specify whether the price is considered inclusive of taxes or exclusive of taxes. If the item's price has a tax behavior set, it will take precedence over the default tax behavior. @@ -31,8 +31,8 @@ module Stripe end end - class HeadOffice < Stripe::StripeObject - class Address < Stripe::StripeObject + class HeadOffice < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -66,8 +66,8 @@ module Stripe end end - class StatusDetails < Stripe::StripeObject - class Active < Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject + class Active < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -77,7 +77,7 @@ module Stripe end end - class Pending < Stripe::StripeObject + class Pending < ::Stripe::StripeObject # The list of missing fields that are required to perform calculations. It includes the entry `head_office` when the status is `pending`. It is recommended to set the optional values even if they aren't listed as required for calculating taxes. Calculations can fail if missing fields aren't explicitly provided on every call. attr_reader :missing_fields diff --git a/lib/stripe/resources/tax/transaction.rb b/lib/stripe/resources/tax/transaction.rb index 5ba069eb..d0692dda 100644 --- a/lib/stripe/resources/tax/transaction.rb +++ b/lib/stripe/resources/tax/transaction.rb @@ -12,8 +12,8 @@ module Stripe "tax.transaction" end - class CustomerDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class CustomerDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -36,7 +36,7 @@ module Stripe end end - class TaxId < Stripe::StripeObject + class TaxId < ::Stripe::StripeObject # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` attr_reader :type # The value of the tax ID. @@ -70,7 +70,7 @@ module Stripe end end - class Reversal < Stripe::StripeObject + class Reversal < ::Stripe::StripeObject # The `id` of the reversed `Transaction` object. attr_reader :original_transaction @@ -83,8 +83,8 @@ module Stripe end end - class ShipFromDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class ShipFromDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -118,9 +118,9 @@ module Stripe end end - class ShippingCost < Stripe::StripeObject - class TaxBreakdown < Stripe::StripeObject - class Jurisdiction < Stripe::StripeObject + class ShippingCost < ::Stripe::StripeObject + class TaxBreakdown < ::Stripe::StripeObject + class Jurisdiction < ::Stripe::StripeObject # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). attr_reader :country # A human-readable name for the jurisdiction imposing the tax. @@ -139,7 +139,7 @@ module Stripe end end - class TaxRateDetails < Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject # A localized display name for tax type, intended to be human-readable. For example, "Local Sales and Use Tax", "Value-added tax (VAT)", or "Umsatzsteuer (USt.)". attr_reader :display_name # The tax rate percentage as a string. For example, 8.5% is represented as "8.5". diff --git a/lib/stripe/resources/tax/transaction_line_item.rb b/lib/stripe/resources/tax/transaction_line_item.rb index 802703e0..feffb297 100644 --- a/lib/stripe/resources/tax/transaction_line_item.rb +++ b/lib/stripe/resources/tax/transaction_line_item.rb @@ -9,7 +9,7 @@ module Stripe "tax.transaction_line_item" end - class Reversal < Stripe::StripeObject + class Reversal < ::Stripe::StripeObject # The `id` of the line item to reverse in the original transaction. attr_reader :original_line_item diff --git a/lib/stripe/resources/tax_id.rb b/lib/stripe/resources/tax_id.rb index 59be7ce8..6b948f02 100644 --- a/lib/stripe/resources/tax_id.rb +++ b/lib/stripe/resources/tax_id.rb @@ -16,7 +16,7 @@ module Stripe "tax_id" end - class Owner < Stripe::StripeObject + class Owner < ::Stripe::StripeObject # The account being referenced when `type` is `account`. attr_reader :account # The Connect Application being referenced when `type` is `application`. @@ -35,7 +35,7 @@ module Stripe end end - class Verification < Stripe::StripeObject + class Verification < ::Stripe::StripeObject # Verification status, one of `pending`, `verified`, `unverified`, or `unavailable`. attr_reader :status # Verified address. diff --git a/lib/stripe/resources/tax_rate.rb b/lib/stripe/resources/tax_rate.rb index 1eeb9a70..954c35b4 100644 --- a/lib/stripe/resources/tax_rate.rb +++ b/lib/stripe/resources/tax_rate.rb @@ -15,7 +15,7 @@ module Stripe "tax_rate" end - class FlatAmount < Stripe::StripeObject + class FlatAmount < ::Stripe::StripeObject # Amount of the tax when the `rate_type` is `flat_amount`. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). attr_reader :amount # Three-letter ISO currency code, in lowercase. diff --git a/lib/stripe/resources/terminal/configuration.rb b/lib/stripe/resources/terminal/configuration.rb index f4b035f4..d5579673 100644 --- a/lib/stripe/resources/terminal/configuration.rb +++ b/lib/stripe/resources/terminal/configuration.rb @@ -16,7 +16,7 @@ module Stripe "terminal.configuration" end - class BbposWisepad3 < Stripe::StripeObject + class BbposWisepad3 < ::Stripe::StripeObject # A File ID representing an image to display on the reader attr_reader :splashscreen @@ -29,7 +29,7 @@ module Stripe end end - class BbposWiseposE < Stripe::StripeObject + class BbposWiseposE < ::Stripe::StripeObject # A File ID representing an image to display on the reader attr_reader :splashscreen @@ -42,7 +42,7 @@ module Stripe end end - class Offline < Stripe::StripeObject + class Offline < ::Stripe::StripeObject # Determines whether to allow transactions to be collected while reader is offline. Defaults to false. attr_reader :enabled @@ -55,7 +55,7 @@ module Stripe end end - class RebootWindow < Stripe::StripeObject + class RebootWindow < ::Stripe::StripeObject # Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour. attr_reader :end_hour # Integer between 0 to 23 that represents the start hour of the reboot time window. @@ -70,7 +70,7 @@ module Stripe end end - class StripeS700 < Stripe::StripeObject + class StripeS700 < ::Stripe::StripeObject # A File ID representing an image to display on the reader attr_reader :splashscreen @@ -83,8 +83,8 @@ module Stripe end end - class Tipping < Stripe::StripeObject - class Aed < Stripe::StripeObject + class Tipping < ::Stripe::StripeObject + class Aed < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip attr_reader :fixed_amounts # Percentages displayed when collecting a tip @@ -101,7 +101,7 @@ module Stripe end end - class Aud < Stripe::StripeObject + class Aud < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip attr_reader :fixed_amounts # Percentages displayed when collecting a tip @@ -118,7 +118,7 @@ module Stripe end end - class Bgn < Stripe::StripeObject + class Bgn < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip attr_reader :fixed_amounts # Percentages displayed when collecting a tip @@ -135,7 +135,7 @@ module Stripe end end - class Cad < Stripe::StripeObject + class Cad < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip attr_reader :fixed_amounts # Percentages displayed when collecting a tip @@ -152,7 +152,7 @@ module Stripe end end - class Chf < Stripe::StripeObject + class Chf < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip attr_reader :fixed_amounts # Percentages displayed when collecting a tip @@ -169,7 +169,7 @@ module Stripe end end - class Czk < Stripe::StripeObject + class Czk < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip attr_reader :fixed_amounts # Percentages displayed when collecting a tip @@ -186,7 +186,7 @@ module Stripe end end - class Dkk < Stripe::StripeObject + class Dkk < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip attr_reader :fixed_amounts # Percentages displayed when collecting a tip @@ -203,7 +203,7 @@ module Stripe end end - class Eur < Stripe::StripeObject + class Eur < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip attr_reader :fixed_amounts # Percentages displayed when collecting a tip @@ -220,7 +220,7 @@ module Stripe end end - class Gbp < Stripe::StripeObject + class Gbp < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip attr_reader :fixed_amounts # Percentages displayed when collecting a tip @@ -237,7 +237,7 @@ module Stripe end end - class Hkd < Stripe::StripeObject + class Gip < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip attr_reader :fixed_amounts # Percentages displayed when collecting a tip @@ -254,7 +254,7 @@ module Stripe end end - class Huf < Stripe::StripeObject + class Hkd < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip attr_reader :fixed_amounts # Percentages displayed when collecting a tip @@ -271,7 +271,7 @@ module Stripe end end - class Jpy < Stripe::StripeObject + class Huf < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip attr_reader :fixed_amounts # Percentages displayed when collecting a tip @@ -288,7 +288,7 @@ module Stripe end end - class Mxn < Stripe::StripeObject + class Jpy < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip attr_reader :fixed_amounts # Percentages displayed when collecting a tip @@ -305,7 +305,7 @@ module Stripe end end - class Myr < Stripe::StripeObject + class Mxn < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip attr_reader :fixed_amounts # Percentages displayed when collecting a tip @@ -322,7 +322,7 @@ module Stripe end end - class Nok < Stripe::StripeObject + class Myr < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip attr_reader :fixed_amounts # Percentages displayed when collecting a tip @@ -339,7 +339,7 @@ module Stripe end end - class Nzd < Stripe::StripeObject + class Nok < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip attr_reader :fixed_amounts # Percentages displayed when collecting a tip @@ -356,7 +356,7 @@ module Stripe end end - class Pln < Stripe::StripeObject + class Nzd < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip attr_reader :fixed_amounts # Percentages displayed when collecting a tip @@ -373,7 +373,7 @@ module Stripe end end - class Ron < Stripe::StripeObject + class Pln < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip attr_reader :fixed_amounts # Percentages displayed when collecting a tip @@ -390,7 +390,7 @@ module Stripe end end - class Sek < Stripe::StripeObject + class Ron < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip attr_reader :fixed_amounts # Percentages displayed when collecting a tip @@ -407,7 +407,7 @@ module Stripe end end - class Sgd < Stripe::StripeObject + class Sek < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip attr_reader :fixed_amounts # Percentages displayed when collecting a tip @@ -424,7 +424,24 @@ module Stripe end end - class Usd < Stripe::StripeObject + class Sgd < ::Stripe::StripeObject + # Fixed amounts displayed when collecting a tip + attr_reader :fixed_amounts + # Percentages displayed when collecting a tip + attr_reader :percentages + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + attr_reader :smart_tip_threshold + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Usd < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip attr_reader :fixed_amounts # Percentages displayed when collecting a tip @@ -458,6 +475,8 @@ module Stripe attr_reader :eur # Attribute for field gbp attr_reader :gbp + # Attribute for field gip + attr_reader :gip # Attribute for field hkd attr_reader :hkd # Attribute for field huf @@ -494,6 +513,7 @@ module Stripe dkk: Dkk, eur: Eur, gbp: Gbp, + gip: Gip, hkd: Hkd, huf: Huf, jpy: Jpy, @@ -514,7 +534,7 @@ module Stripe end end - class VerifoneP400 < Stripe::StripeObject + class VerifoneP400 < ::Stripe::StripeObject # A File ID representing an image to display on the reader attr_reader :splashscreen @@ -527,8 +547,8 @@ module Stripe end end - class Wifi < Stripe::StripeObject - class EnterpriseEapPeap < Stripe::StripeObject + class Wifi < ::Stripe::StripeObject + class EnterpriseEapPeap < ::Stripe::StripeObject # A File ID representing a PEM file containing the server certificate attr_reader :ca_certificate_file # Password for connecting to the WiFi network @@ -547,7 +567,7 @@ module Stripe end end - class EnterpriseEapTls < Stripe::StripeObject + class EnterpriseEapTls < ::Stripe::StripeObject # A File ID representing a PEM file containing the server certificate attr_reader :ca_certificate_file # A File ID representing a PEM file containing the client certificate @@ -568,7 +588,7 @@ module Stripe end end - class PersonalPsk < Stripe::StripeObject + class PersonalPsk < ::Stripe::StripeObject # Password for connecting to the WiFi network attr_reader :password # Name of the WiFi network diff --git a/lib/stripe/resources/terminal/location.rb b/lib/stripe/resources/terminal/location.rb index c692a683..6f8fec60 100644 --- a/lib/stripe/resources/terminal/location.rb +++ b/lib/stripe/resources/terminal/location.rb @@ -17,7 +17,7 @@ module Stripe "terminal.location" end - class Address < Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -40,7 +40,7 @@ module Stripe end end - class AddressKana < Stripe::StripeObject + class AddressKana < ::Stripe::StripeObject # City/Ward. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -65,7 +65,7 @@ module Stripe end end - class AddressKanji < Stripe::StripeObject + class AddressKanji < ::Stripe::StripeObject # City/Ward. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). diff --git a/lib/stripe/resources/terminal/reader.rb b/lib/stripe/resources/terminal/reader.rb index a86448b0..70907758 100644 --- a/lib/stripe/resources/terminal/reader.rb +++ b/lib/stripe/resources/terminal/reader.rb @@ -17,10 +17,10 @@ module Stripe "terminal.reader" end - class Action < Stripe::StripeObject - class CollectInputs < Stripe::StripeObject - class Input < Stripe::StripeObject - class CustomText < Stripe::StripeObject + class Action < ::Stripe::StripeObject + class CollectInputs < ::Stripe::StripeObject + class Input < ::Stripe::StripeObject + class CustomText < ::Stripe::StripeObject # Customize the default description for this input attr_reader :description # Customize the default label for this input's skip button @@ -39,7 +39,7 @@ module Stripe end end - class Email < Stripe::StripeObject + class Email < ::Stripe::StripeObject # The collected email address attr_reader :value @@ -52,7 +52,7 @@ module Stripe end end - class Numeric < Stripe::StripeObject + class Numeric < ::Stripe::StripeObject # The collected number attr_reader :value @@ -65,7 +65,7 @@ module Stripe end end - class Phone < Stripe::StripeObject + class Phone < ::Stripe::StripeObject # The collected phone number attr_reader :value @@ -78,13 +78,13 @@ module Stripe end end - class Selection < Stripe::StripeObject - class Choice < Stripe::StripeObject - # The id to be selected + class Selection < ::Stripe::StripeObject + class Choice < ::Stripe::StripeObject + # The identifier for the selected choice. Maximum 50 characters. attr_reader :id - # The button style for the choice + # The button style for the choice. Can be `primary` or `secondary`. attr_reader :style - # The text to be selected + # The text to be selected. Maximum 30 characters. attr_reader :text def self.inner_class_types @@ -111,7 +111,7 @@ module Stripe end end - class Signature < Stripe::StripeObject + class Signature < ::Stripe::StripeObject # The File ID of a collected signature image attr_reader :value @@ -124,7 +124,7 @@ module Stripe end end - class Text < Stripe::StripeObject + class Text < ::Stripe::StripeObject # The collected text value attr_reader :value @@ -137,14 +137,14 @@ module Stripe end end - class Toggle < Stripe::StripeObject - # The toggle's default value + class Toggle < ::Stripe::StripeObject + # The toggle's default value. Can be `enabled` or `disabled`. attr_reader :default_value - # The toggle's description text + # The toggle's description text. Maximum 50 characters. attr_reader :description - # The toggle's title text + # The toggle's title text. Maximum 50 characters. attr_reader :title - # The toggle's collected value + # The toggle's collected value. Can be `enabled` or `disabled`. attr_reader :value def self.inner_class_types @@ -209,9 +209,9 @@ module Stripe end end - class CollectPaymentMethod < Stripe::StripeObject - class CollectConfig < Stripe::StripeObject - class Tipping < Stripe::StripeObject + class CollectPaymentMethod < ::Stripe::StripeObject + class CollectConfig < ::Stripe::StripeObject + class Tipping < ::Stripe::StripeObject # Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency). attr_reader :amount_eligible @@ -258,8 +258,8 @@ module Stripe end end - class ConfirmPaymentIntent < Stripe::StripeObject - class ConfirmConfig < Stripe::StripeObject + class ConfirmPaymentIntent < ::Stripe::StripeObject + class ConfirmConfig < ::Stripe::StripeObject # If the customer doesn't abandon authenticating the payment, they're redirected to this URL after completion. attr_reader :return_url @@ -285,9 +285,9 @@ module Stripe end end - class ProcessPaymentIntent < Stripe::StripeObject - class ProcessConfig < Stripe::StripeObject - class Tipping < Stripe::StripeObject + class ProcessPaymentIntent < ::Stripe::StripeObject + class ProcessConfig < ::Stripe::StripeObject + class Tipping < ::Stripe::StripeObject # Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency). attr_reader :amount_eligible @@ -330,8 +330,8 @@ module Stripe end end - class ProcessSetupIntent < Stripe::StripeObject - class ProcessConfig < Stripe::StripeObject + class ProcessSetupIntent < ::Stripe::StripeObject + class ProcessConfig < ::Stripe::StripeObject # Enable customer-initiated cancellation when processing this SetupIntent. attr_reader :enable_customer_cancellation @@ -359,8 +359,8 @@ module Stripe end end - class RefundPayment < Stripe::StripeObject - class RefundPaymentConfig < Stripe::StripeObject + class RefundPayment < ::Stripe::StripeObject + class RefundPaymentConfig < ::Stripe::StripeObject # Enable customer-initiated cancellation when refunding this payment. attr_reader :enable_customer_cancellation @@ -400,9 +400,9 @@ module Stripe end end - class SetReaderDisplay < Stripe::StripeObject - class Cart < Stripe::StripeObject - class LineItem < Stripe::StripeObject + class SetReaderDisplay < ::Stripe::StripeObject + class Cart < ::Stripe::StripeObject + class LineItem < ::Stripe::StripeObject # The amount of the line item. A positive integer in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). attr_reader :amount # Description of the line item. @@ -435,9 +435,9 @@ module Stripe @field_remappings = {} end end - # Cart object to be displayed by the reader. + # Cart object to be displayed by the reader, including line items, amounts, and currency. attr_reader :cart - # Type of information to be displayed by the reader. + # Type of information to be displayed by the reader. Only `cart` is currently supported. attr_reader :type def self.inner_class_types @@ -499,6 +499,8 @@ module Stripe attr_reader :ip_address # Custom label given to the reader for easier identification. attr_reader :label + # The last time this reader reported to Stripe backend. + attr_reader :last_seen_at # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. attr_reader :livemode # The location identifier of the reader. @@ -514,7 +516,7 @@ module Stripe # Always true for a deleted object attr_reader :deleted - # Cancels the current reader action. + # Cancels the current reader action. See [Programmatic Cancellation](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven#programmatic-cancellation) for more details. def cancel_action(params = {}, opts = {}) request_stripe_object( method: :post, @@ -524,7 +526,7 @@ module Stripe ) end - # Cancels the current reader action. + # Cancels the current reader action. See [Programmatic Cancellation](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven#programmatic-cancellation) for more details. def self.cancel_action(reader, params = {}, opts = {}) request_stripe_object( method: :post, @@ -534,7 +536,7 @@ module Stripe ) end - # Initiates an input collection flow on a Reader. + # Initiates an [input collection flow](https://docs.stripe.com/docs/terminal/features/collect-inputs) on a Reader to display input forms and collect information from your customers. def collect_inputs(params = {}, opts = {}) request_stripe_object( method: :post, @@ -544,7 +546,7 @@ module Stripe ) end - # Initiates an input collection flow on a Reader. + # Initiates an [input collection flow](https://docs.stripe.com/docs/terminal/features/collect-inputs) on a Reader to display input forms and collect information from your customers. def self.collect_inputs(reader, params = {}, opts = {}) request_stripe_object( method: :post, @@ -554,7 +556,7 @@ module Stripe ) end - # Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. + # Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. See [Collecting a Payment method](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#collect-a-paymentmethod) for more details. def collect_payment_method(params = {}, opts = {}) request_stripe_object( method: :post, @@ -564,7 +566,7 @@ module Stripe ) end - # Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. + # Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. See [Collecting a Payment method](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#collect-a-paymentmethod) for more details. def self.collect_payment_method(reader, params = {}, opts = {}) request_stripe_object( method: :post, @@ -574,7 +576,7 @@ module Stripe ) end - # Finalizes a payment on a Reader. + # Finalizes a payment on a Reader. See [Confirming a Payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#confirm-the-paymentintent) for more details. def confirm_payment_intent(params = {}, opts = {}) request_stripe_object( method: :post, @@ -584,7 +586,7 @@ module Stripe ) end - # Finalizes a payment on a Reader. + # Finalizes a payment on a Reader. See [Confirming a Payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#confirm-the-paymentintent) for more details. def self.confirm_payment_intent(reader, params = {}, opts = {}) request_stripe_object( method: :post, @@ -634,7 +636,7 @@ module Stripe ) end - # Initiates a payment flow on a Reader. + # Initiates a payment flow on a Reader. See [process the payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=immediately#process-payment) for more details. def process_payment_intent(params = {}, opts = {}) request_stripe_object( method: :post, @@ -644,7 +646,7 @@ module Stripe ) end - # Initiates a payment flow on a Reader. + # Initiates a payment flow on a Reader. See [process the payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=immediately#process-payment) for more details. def self.process_payment_intent(reader, params = {}, opts = {}) request_stripe_object( method: :post, @@ -654,7 +656,7 @@ module Stripe ) end - # Initiates a setup intent flow on a Reader. + # Initiates a SetupIntent flow on a Reader. See [Save directly without charging](https://docs.stripe.com/docs/terminal/features/saving-payment-details/save-directly) for more details. def process_setup_intent(params = {}, opts = {}) request_stripe_object( method: :post, @@ -664,7 +666,7 @@ module Stripe ) end - # Initiates a setup intent flow on a Reader. + # Initiates a SetupIntent flow on a Reader. See [Save directly without charging](https://docs.stripe.com/docs/terminal/features/saving-payment-details/save-directly) for more details. def self.process_setup_intent(reader, params = {}, opts = {}) request_stripe_object( method: :post, @@ -674,7 +676,7 @@ module Stripe ) end - # Initiates a refund on a Reader + # Initiates an in-person refund on a Reader. See [Refund an Interac Payment](https://docs.stripe.com/docs/terminal/payments/regional?integration-country=CA#refund-an-interac-payment) for more details. def refund_payment(params = {}, opts = {}) request_stripe_object( method: :post, @@ -684,7 +686,7 @@ module Stripe ) end - # Initiates a refund on a Reader + # Initiates an in-person refund on a Reader. See [Refund an Interac Payment](https://docs.stripe.com/docs/terminal/payments/regional?integration-country=CA#refund-an-interac-payment) for more details. def self.refund_payment(reader, params = {}, opts = {}) request_stripe_object( method: :post, @@ -694,7 +696,7 @@ module Stripe ) end - # Sets reader display to show cart details. + # Sets the reader display to show [cart details](https://docs.stripe.com/docs/terminal/features/display). def set_reader_display(params = {}, opts = {}) request_stripe_object( method: :post, @@ -704,7 +706,7 @@ module Stripe ) end - # Sets reader display to show cart details. + # Sets the reader display to show [cart details](https://docs.stripe.com/docs/terminal/features/display). def self.set_reader_display(reader, params = {}, opts = {}) request_stripe_object( method: :post, diff --git a/lib/stripe/resources/test_helpers/test_clock.rb b/lib/stripe/resources/test_helpers/test_clock.rb index 96acee04..c8e4365f 100644 --- a/lib/stripe/resources/test_helpers/test_clock.rb +++ b/lib/stripe/resources/test_helpers/test_clock.rb @@ -16,8 +16,8 @@ module Stripe "test_helpers.test_clock" end - class StatusDetails < Stripe::StripeObject - class Advancing < Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject + class Advancing < ::Stripe::StripeObject # The `frozen_time` that the Test Clock is advancing towards. attr_reader :target_frozen_time diff --git a/lib/stripe/resources/treasury/credit_reversal.rb b/lib/stripe/resources/treasury/credit_reversal.rb index 74acea6c..6845a39e 100644 --- a/lib/stripe/resources/treasury/credit_reversal.rb +++ b/lib/stripe/resources/treasury/credit_reversal.rb @@ -13,7 +13,7 @@ module Stripe "treasury.credit_reversal" end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # Timestamp describing when the CreditReversal changed status to `posted` attr_reader :posted_at diff --git a/lib/stripe/resources/treasury/debit_reversal.rb b/lib/stripe/resources/treasury/debit_reversal.rb index 202f2841..402c6c1c 100644 --- a/lib/stripe/resources/treasury/debit_reversal.rb +++ b/lib/stripe/resources/treasury/debit_reversal.rb @@ -13,7 +13,7 @@ module Stripe "treasury.debit_reversal" end - class LinkedFlows < Stripe::StripeObject + class LinkedFlows < ::Stripe::StripeObject # Set if there is an Issuing dispute associated with the DebitReversal. attr_reader :issuing_dispute @@ -26,7 +26,7 @@ module Stripe end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # Timestamp describing when the DebitReversal changed status to `completed`. attr_reader :completed_at diff --git a/lib/stripe/resources/treasury/financial_account.rb b/lib/stripe/resources/treasury/financial_account.rb index 2d5e9690..802fda7b 100644 --- a/lib/stripe/resources/treasury/financial_account.rb +++ b/lib/stripe/resources/treasury/financial_account.rb @@ -15,7 +15,7 @@ module Stripe "treasury.financial_account" end - class Balance < Stripe::StripeObject + class Balance < ::Stripe::StripeObject # Funds the user can spend right now. attr_reader :cash # Funds not spendable yet, but will become available at a later time. @@ -32,8 +32,8 @@ module Stripe end end - class FinancialAddress < Stripe::StripeObject - class Aba < Stripe::StripeObject + class FinancialAddress < ::Stripe::StripeObject + class Aba < ::Stripe::StripeObject # The name of the person or business that owns the bank account. attr_reader :account_holder_name # The account number. @@ -69,7 +69,7 @@ module Stripe end end - class PlatformRestrictions < Stripe::StripeObject + class PlatformRestrictions < ::Stripe::StripeObject # Restricts all inbound money movement. attr_reader :inbound_flows # Restricts all outbound money movement. @@ -84,8 +84,8 @@ module Stripe end end - class StatusDetails < Stripe::StripeObject - class Closed < Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject + class Closed < ::Stripe::StripeObject # The array that contains reasons for a FinancialAccount closure. attr_reader :reasons diff --git a/lib/stripe/resources/treasury/financial_account_features.rb b/lib/stripe/resources/treasury/financial_account_features.rb index ba9142cb..aa83dc06 100644 --- a/lib/stripe/resources/treasury/financial_account_features.rb +++ b/lib/stripe/resources/treasury/financial_account_features.rb @@ -11,8 +11,8 @@ module Stripe "treasury.financial_account_features" end - class CardIssuing < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class CardIssuing < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. attr_reader :code # Represents what the user should do, if anything, to activate the Feature. @@ -44,8 +44,8 @@ module Stripe end end - class DepositInsurance < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class DepositInsurance < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. attr_reader :code # Represents what the user should do, if anything, to activate the Feature. @@ -77,9 +77,9 @@ module Stripe end end - class FinancialAddresses < Stripe::StripeObject - class Aba < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class FinancialAddresses < ::Stripe::StripeObject + class Aba < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. attr_reader :code # Represents what the user should do, if anything, to activate the Feature. @@ -122,9 +122,9 @@ module Stripe end end - class InboundTransfers < Stripe::StripeObject - class Ach < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class InboundTransfers < ::Stripe::StripeObject + class Ach < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. attr_reader :code # Represents what the user should do, if anything, to activate the Feature. @@ -167,8 +167,8 @@ module Stripe end end - class IntraStripeFlows < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class IntraStripeFlows < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. attr_reader :code # Represents what the user should do, if anything, to activate the Feature. @@ -200,9 +200,9 @@ module Stripe end end - class OutboundPayments < Stripe::StripeObject - class Ach < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class OutboundPayments < ::Stripe::StripeObject + class Ach < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. attr_reader :code # Represents what the user should do, if anything, to activate the Feature. @@ -234,8 +234,8 @@ module Stripe end end - class UsDomesticWire < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class UsDomesticWire < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. attr_reader :code # Represents what the user should do, if anything, to activate the Feature. @@ -280,9 +280,9 @@ module Stripe end end - class OutboundTransfers < Stripe::StripeObject - class Ach < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class OutboundTransfers < ::Stripe::StripeObject + class Ach < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. attr_reader :code # Represents what the user should do, if anything, to activate the Feature. @@ -314,8 +314,8 @@ module Stripe end end - class UsDomesticWire < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class UsDomesticWire < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. attr_reader :code # Represents what the user should do, if anything, to activate the Feature. diff --git a/lib/stripe/resources/treasury/inbound_transfer.rb b/lib/stripe/resources/treasury/inbound_transfer.rb index 0532a4b7..85ba2090 100644 --- a/lib/stripe/resources/treasury/inbound_transfer.rb +++ b/lib/stripe/resources/treasury/inbound_transfer.rb @@ -15,7 +15,7 @@ module Stripe "treasury.inbound_transfer" end - class FailureDetails < Stripe::StripeObject + class FailureDetails < ::Stripe::StripeObject # Reason for the failure. attr_reader :code @@ -28,7 +28,7 @@ module Stripe end end - class LinkedFlows < Stripe::StripeObject + class LinkedFlows < ::Stripe::StripeObject # If funds for this flow were returned after the flow went to the `succeeded` state, this field contains a reference to the ReceivedDebit return. attr_reader :received_debit @@ -41,9 +41,9 @@ module Stripe end end - class OriginPaymentMethodDetails < Stripe::StripeObject - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class OriginPaymentMethodDetails < ::Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -81,7 +81,7 @@ module Stripe end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject # Account holder type: individual or company. attr_reader :account_holder_type # Account type: checkings or savings. Defaults to checking if omitted. @@ -123,7 +123,7 @@ module Stripe end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # Timestamp describing when an InboundTransfer changed status to `canceled`. attr_reader :canceled_at # Timestamp describing when an InboundTransfer changed status to `failed`. diff --git a/lib/stripe/resources/treasury/outbound_payment.rb b/lib/stripe/resources/treasury/outbound_payment.rb index 338e8b39..160fb13e 100644 --- a/lib/stripe/resources/treasury/outbound_payment.rb +++ b/lib/stripe/resources/treasury/outbound_payment.rb @@ -17,9 +17,9 @@ module Stripe "treasury.outbound_payment" end - class DestinationPaymentMethodDetails < Stripe::StripeObject - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class DestinationPaymentMethodDetails < ::Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -57,7 +57,7 @@ module Stripe end end - class FinancialAccount < Stripe::StripeObject + class FinancialAccount < ::Stripe::StripeObject # Token of the FinancialAccount. attr_reader :id # The rails used to send funds. @@ -72,7 +72,7 @@ module Stripe end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject # Account holder type: individual or company. attr_reader :account_holder_type # Account type: checkings or savings. Defaults to checking if omitted. @@ -120,7 +120,7 @@ module Stripe end end - class EndUserDetails < Stripe::StripeObject + class EndUserDetails < ::Stripe::StripeObject # IP address of the user initiating the OutboundPayment. Set if `present` is set to `true`. IP address collection is required for risk and compliance reasons. This will be used to help determine if the OutboundPayment is authorized or should be blocked. attr_reader :ip_address # `true` if the OutboundPayment creation request is being made on behalf of an end user by a platform. Otherwise, `false`. @@ -135,7 +135,7 @@ module Stripe end end - class ReturnedDetails < Stripe::StripeObject + class ReturnedDetails < ::Stripe::StripeObject # Reason for the return. attr_reader :code # The Transaction associated with this object. @@ -150,7 +150,7 @@ module Stripe end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # Timestamp describing when an OutboundPayment changed status to `canceled`. attr_reader :canceled_at # Timestamp describing when an OutboundPayment changed status to `failed`. @@ -169,8 +169,8 @@ module Stripe end end - class TrackingDetails < Stripe::StripeObject - class Ach < Stripe::StripeObject + class TrackingDetails < ::Stripe::StripeObject + class Ach < ::Stripe::StripeObject # ACH trace ID of the OutboundPayment for payments sent over the `ach` network. attr_reader :trace_id @@ -183,7 +183,7 @@ module Stripe end end - class UsDomesticWire < Stripe::StripeObject + class UsDomesticWire < ::Stripe::StripeObject # CHIPS System Sequence Number (SSN) of the OutboundPayment for payments sent over the `us_domestic_wire` network. attr_reader :chips # IMAD of the OutboundPayment for payments sent over the `us_domestic_wire` network. diff --git a/lib/stripe/resources/treasury/outbound_transfer.rb b/lib/stripe/resources/treasury/outbound_transfer.rb index e100f823..555e18db 100644 --- a/lib/stripe/resources/treasury/outbound_transfer.rb +++ b/lib/stripe/resources/treasury/outbound_transfer.rb @@ -17,9 +17,9 @@ module Stripe "treasury.outbound_transfer" end - class DestinationPaymentMethodDetails < Stripe::StripeObject - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class DestinationPaymentMethodDetails < ::Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -57,7 +57,7 @@ module Stripe end end - class FinancialAccount < Stripe::StripeObject + class FinancialAccount < ::Stripe::StripeObject # Token of the FinancialAccount. attr_reader :id # The rails used to send funds. @@ -72,7 +72,7 @@ module Stripe end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject # Account holder type: individual or company. attr_reader :account_holder_type # Account type: checkings or savings. Defaults to checking if omitted. @@ -120,7 +120,7 @@ module Stripe end end - class ReturnedDetails < Stripe::StripeObject + class ReturnedDetails < ::Stripe::StripeObject # Reason for the return. attr_reader :code # The Transaction associated with this object. @@ -135,7 +135,7 @@ module Stripe end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # Timestamp describing when an OutboundTransfer changed status to `canceled` attr_reader :canceled_at # Timestamp describing when an OutboundTransfer changed status to `failed` @@ -154,8 +154,8 @@ module Stripe end end - class TrackingDetails < Stripe::StripeObject - class Ach < Stripe::StripeObject + class TrackingDetails < ::Stripe::StripeObject + class Ach < ::Stripe::StripeObject # ACH trace ID of the OutboundTransfer for transfers sent over the `ach` network. attr_reader :trace_id @@ -168,7 +168,7 @@ module Stripe end end - class UsDomesticWire < Stripe::StripeObject + class UsDomesticWire < ::Stripe::StripeObject # CHIPS System Sequence Number (SSN) of the OutboundTransfer for transfers sent over the `us_domestic_wire` network. attr_reader :chips # IMAD of the OutboundTransfer for transfers sent over the `us_domestic_wire` network. diff --git a/lib/stripe/resources/treasury/received_credit.rb b/lib/stripe/resources/treasury/received_credit.rb index 0f24e73a..07ed9ed2 100644 --- a/lib/stripe/resources/treasury/received_credit.rb +++ b/lib/stripe/resources/treasury/received_credit.rb @@ -12,9 +12,9 @@ module Stripe "treasury.received_credit" end - class InitiatingPaymentMethodDetails < Stripe::StripeObject - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class InitiatingPaymentMethodDetails < ::Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -52,7 +52,7 @@ module Stripe end end - class FinancialAccount < Stripe::StripeObject + class FinancialAccount < ::Stripe::StripeObject # The FinancialAccount ID. attr_reader :id # The rails the ReceivedCredit was sent over. A FinancialAccount can only send funds over `stripe`. @@ -67,7 +67,7 @@ module Stripe end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject # Bank name. attr_reader :bank_name # The last four digits of the bank account number. @@ -109,8 +109,8 @@ module Stripe end end - class LinkedFlows < Stripe::StripeObject - class SourceFlowDetails < Stripe::StripeObject + class LinkedFlows < ::Stripe::StripeObject + class SourceFlowDetails < ::Stripe::StripeObject # You can reverse some [ReceivedCredits](https://stripe.com/docs/api#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. attr_reader :credit_reversal # Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers). @@ -167,7 +167,7 @@ module Stripe end end - class ReversalDetails < Stripe::StripeObject + class ReversalDetails < ::Stripe::StripeObject # Time before which a ReceivedCredit can be reversed. attr_reader :deadline # Set if a ReceivedCredit cannot be reversed. diff --git a/lib/stripe/resources/treasury/received_debit.rb b/lib/stripe/resources/treasury/received_debit.rb index 7cc58b4b..9db88b28 100644 --- a/lib/stripe/resources/treasury/received_debit.rb +++ b/lib/stripe/resources/treasury/received_debit.rb @@ -12,9 +12,9 @@ module Stripe "treasury.received_debit" end - class InitiatingPaymentMethodDetails < Stripe::StripeObject - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class InitiatingPaymentMethodDetails < ::Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. attr_reader :city # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -52,7 +52,7 @@ module Stripe end end - class FinancialAccount < Stripe::StripeObject + class FinancialAccount < ::Stripe::StripeObject # The FinancialAccount ID. attr_reader :id # The rails the ReceivedCredit was sent over. A FinancialAccount can only send funds over `stripe`. @@ -67,7 +67,7 @@ module Stripe end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject # Bank name. attr_reader :bank_name # The last four digits of the bank account number. @@ -109,7 +109,7 @@ module Stripe end end - class LinkedFlows < Stripe::StripeObject + class LinkedFlows < ::Stripe::StripeObject # The DebitReversal created as a result of this ReceivedDebit being reversed. attr_reader :debit_reversal # Set if the ReceivedDebit is associated with an InboundTransfer's return of funds. @@ -130,7 +130,7 @@ module Stripe end end - class ReversalDetails < Stripe::StripeObject + class ReversalDetails < ::Stripe::StripeObject # Time before which a ReceivedDebit can be reversed. attr_reader :deadline # Set if a ReceivedDebit can't be reversed. diff --git a/lib/stripe/resources/treasury/transaction.rb b/lib/stripe/resources/treasury/transaction.rb index 9fab6f3b..ca83e6f6 100644 --- a/lib/stripe/resources/treasury/transaction.rb +++ b/lib/stripe/resources/treasury/transaction.rb @@ -12,7 +12,7 @@ module Stripe "treasury.transaction" end - class BalanceImpact < Stripe::StripeObject + class BalanceImpact < ::Stripe::StripeObject # The change made to funds the user can spend right now. attr_reader :cash # The change made to funds that are not spendable yet, but will become available at a later time. @@ -29,7 +29,7 @@ module Stripe end end - class FlowDetails < Stripe::StripeObject + class FlowDetails < ::Stripe::StripeObject # You can reverse some [ReceivedCredits](https://stripe.com/docs/api#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. attr_reader :credit_reversal # You can reverse some [ReceivedDebits](https://stripe.com/docs/api#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal. @@ -72,7 +72,7 @@ module Stripe end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # Timestamp describing when the Transaction changed status to `posted`. attr_reader :posted_at # Timestamp describing when the Transaction changed status to `void`. diff --git a/lib/stripe/resources/treasury/transaction_entry.rb b/lib/stripe/resources/treasury/transaction_entry.rb index ab002b50..47a6c7c9 100644 --- a/lib/stripe/resources/treasury/transaction_entry.rb +++ b/lib/stripe/resources/treasury/transaction_entry.rb @@ -12,7 +12,7 @@ module Stripe "treasury.transaction_entry" end - class BalanceImpact < Stripe::StripeObject + class BalanceImpact < ::Stripe::StripeObject # The change made to funds the user can spend right now. attr_reader :cash # The change made to funds that are not spendable yet, but will become available at a later time. @@ -29,7 +29,7 @@ module Stripe end end - class FlowDetails < Stripe::StripeObject + class FlowDetails < ::Stripe::StripeObject # You can reverse some [ReceivedCredits](https://stripe.com/docs/api#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. attr_reader :credit_reversal # You can reverse some [ReceivedDebits](https://stripe.com/docs/api#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal. diff --git a/lib/stripe/resources/v2/billing/meter_event_adjustment.rb b/lib/stripe/resources/v2/billing/meter_event_adjustment.rb index 21d8e2bd..4e19f95b 100644 --- a/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +++ b/lib/stripe/resources/v2/billing/meter_event_adjustment.rb @@ -10,7 +10,7 @@ module Stripe "v2.billing.meter_event_adjustment" end - class Cancel < Stripe::StripeObject + class Cancel < ::Stripe::StripeObject # Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them. attr_reader :identifier diff --git a/lib/stripe/resources/v2/core/event.rb b/lib/stripe/resources/v2/core/event.rb index b6f6adab..85890fc9 100644 --- a/lib/stripe/resources/v2/core/event.rb +++ b/lib/stripe/resources/v2/core/event.rb @@ -11,8 +11,8 @@ module Stripe "v2.core.event" end - class Reason < Stripe::StripeObject - class Request < Stripe::StripeObject + class Reason < ::Stripe::StripeObject + class Request < ::Stripe::StripeObject # ID of the API request that caused the event. attr_reader :id # The idempotency key transmitted during the request. diff --git a/lib/stripe/resources/v2/core/event_destination.rb b/lib/stripe/resources/v2/core/event_destination.rb index e3bb7037..b5e09955 100644 --- a/lib/stripe/resources/v2/core/event_destination.rb +++ b/lib/stripe/resources/v2/core/event_destination.rb @@ -11,8 +11,8 @@ module Stripe "v2.core.event_destination" end - class StatusDetails < Stripe::StripeObject - class Disabled < Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject + class Disabled < ::Stripe::StripeObject # Reason event destination has been disabled. attr_reader :reason @@ -36,7 +36,7 @@ module Stripe end end - class AmazonEventbridge < Stripe::StripeObject + class AmazonEventbridge < ::Stripe::StripeObject # The AWS account ID. attr_reader :aws_account_id # The ARN of the AWS event source. @@ -53,7 +53,7 @@ module Stripe end end - class WebhookEndpoint < Stripe::StripeObject + class WebhookEndpoint < ::Stripe::StripeObject # The signing secret of the webhook endpoint, only includable on creation. attr_reader :signing_secret # The URL of the webhook endpoint, includable. diff --git a/lib/stripe/services.rb b/lib/stripe/services.rb index c7139e2e..85b5a427 100644 --- a/lib/stripe/services.rb +++ b/lib/stripe/services.rb @@ -85,12 +85,15 @@ require "stripe/services/issuing/token_service" require "stripe/services/issuing/transaction_service" require "stripe/services/issuing_service" require "stripe/services/mandate_service" +require "stripe/services/payment_attempt_record_service" +require "stripe/services/payment_intent_amount_details_line_item_service" require "stripe/services/payment_intent_service" require "stripe/services/payment_link_line_item_service" require "stripe/services/payment_link_service" require "stripe/services/payment_method_configuration_service" require "stripe/services/payment_method_domain_service" require "stripe/services/payment_method_service" +require "stripe/services/payment_record_service" require "stripe/services/payout_service" require "stripe/services/plan_service" require "stripe/services/price_service" diff --git a/lib/stripe/services/financial_connections/account_service.rb b/lib/stripe/services/financial_connections/account_service.rb index 8383d590..fc966628 100644 --- a/lib/stripe/services/financial_connections/account_service.rb +++ b/lib/stripe/services/financial_connections/account_service.rb @@ -55,7 +55,7 @@ module Stripe ) end - # Subscribes to periodic refreshes of data associated with a Financial Connections Account. + # Subscribes to periodic refreshes of data associated with a Financial Connections Account. When the account status is active, data is typically refreshed once a day. def subscribe(account, params = {}, opts = {}) request( method: :post, diff --git a/lib/stripe/services/payment_attempt_record_service.rb b/lib/stripe/services/payment_attempt_record_service.rb new file mode 100644 index 00000000..0d3749c2 --- /dev/null +++ b/lib/stripe/services/payment_attempt_record_service.rb @@ -0,0 +1,28 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + class PaymentAttemptRecordService < StripeService + # List all the Payment Attempt Records attached to the specified Payment Record. + def list(params = {}, opts = {}) + request( + method: :get, + path: "/v1/payment_attempt_records", + params: params, + opts: opts, + base_address: :api + ) + end + + # Retrieves a Payment Attempt Record with the given ID + def retrieve(id, params = {}, opts = {}) + request( + method: :get, + path: format("/v1/payment_attempt_records/%s", { id: CGI.escape(id) }), + params: params, + opts: opts, + base_address: :api + ) + end + end +end diff --git a/lib/stripe/services/payment_intent_amount_details_line_item_service.rb b/lib/stripe/services/payment_intent_amount_details_line_item_service.rb new file mode 100644 index 00000000..8fa29104 --- /dev/null +++ b/lib/stripe/services/payment_intent_amount_details_line_item_service.rb @@ -0,0 +1,17 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + class PaymentIntentAmountDetailsLineItemService < StripeService + # Lists all LineItems of a given PaymentIntent. + def list(intent, params = {}, opts = {}) + request( + method: :get, + path: format("/v1/payment_intents/%s/amount_details_line_items", { intent: CGI.escape(intent) }), + params: params, + opts: opts, + base_address: :api + ) + end + end +end diff --git a/lib/stripe/services/payment_intent_service.rb b/lib/stripe/services/payment_intent_service.rb index 5df4d630..4651e1e2 100644 --- a/lib/stripe/services/payment_intent_service.rb +++ b/lib/stripe/services/payment_intent_service.rb @@ -3,6 +3,13 @@ module Stripe class PaymentIntentService < StripeService + attr_reader :amount_details_line_items + + def initialize(requestor) + super + @amount_details_line_items = Stripe::PaymentIntentAmountDetailsLineItemService.new(@requestor) + end + # Manually reconcile the remaining amount for a customer_balance PaymentIntent. def apply_customer_balance(intent, params = {}, opts = {}) request( diff --git a/lib/stripe/services/payment_record_service.rb b/lib/stripe/services/payment_record_service.rb new file mode 100644 index 00000000..82ba0618 --- /dev/null +++ b/lib/stripe/services/payment_record_service.rb @@ -0,0 +1,101 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + class PaymentRecordService < StripeService + # Report a new Payment Record. You may report a Payment Record as it is + # initialized and later report updates through the other report_* methods, or report Payment + # Records in a terminal state directly, through this method. + def report_payment(params = {}, opts = {}) + request( + method: :post, + path: "/v1/payment_records/report_payment", + params: params, + opts: opts, + base_address: :api + ) + end + + # Report a new payment attempt on the specified Payment Record. A new payment + # attempt can only be specified if all other payment attempts are canceled or failed. + def report_payment_attempt(id, params = {}, opts = {}) + request( + method: :post, + path: format("/v1/payment_records/%s/report_payment_attempt", { id: CGI.escape(id) }), + params: params, + opts: opts, + base_address: :api + ) + end + + # Report that the most recent payment attempt on the specified Payment Record + # was canceled. + def report_payment_attempt_canceled(id, params = {}, opts = {}) + request( + method: :post, + path: format("/v1/payment_records/%s/report_payment_attempt_canceled", { id: CGI.escape(id) }), + params: params, + opts: opts, + base_address: :api + ) + end + + # Report that the most recent payment attempt on the specified Payment Record + # failed or errored. + def report_payment_attempt_failed(id, params = {}, opts = {}) + request( + method: :post, + path: format("/v1/payment_records/%s/report_payment_attempt_failed", { id: CGI.escape(id) }), + params: params, + opts: opts, + base_address: :api + ) + end + + # Report that the most recent payment attempt on the specified Payment Record + # was guaranteed. + def report_payment_attempt_guaranteed(id, params = {}, opts = {}) + request( + method: :post, + path: format("/v1/payment_records/%s/report_payment_attempt_guaranteed", { id: CGI.escape(id) }), + params: params, + opts: opts, + base_address: :api + ) + end + + # Report informational updates on the specified Payment Record. + def report_payment_attempt_informational(id, params = {}, opts = {}) + request( + method: :post, + path: format("/v1/payment_records/%s/report_payment_attempt_informational", { id: CGI.escape(id) }), + params: params, + opts: opts, + base_address: :api + ) + end + + # Report that the most recent payment attempt on the specified Payment Record + # was refunded. + def report_refund(id, params = {}, opts = {}) + request( + method: :post, + path: format("/v1/payment_records/%s/report_refund", { id: CGI.escape(id) }), + params: params, + opts: opts, + base_address: :api + ) + end + + # Retrieves a Payment Record with the given ID + def retrieve(id, params = {}, opts = {}) + request( + method: :get, + path: format("/v1/payment_records/%s", { id: CGI.escape(id) }), + params: params, + opts: opts, + base_address: :api + ) + end + end +end diff --git a/lib/stripe/services/payout_service.rb b/lib/stripe/services/payout_service.rb index 78596c7d..9687082d 100644 --- a/lib/stripe/services/payout_service.rb +++ b/lib/stripe/services/payout_service.rb @@ -39,7 +39,7 @@ module Stripe ) end - # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead. + # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead. # # By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required. def reverse(payout, params = {}, opts = {}) diff --git a/lib/stripe/services/terminal/reader_service.rb b/lib/stripe/services/terminal/reader_service.rb index 25e2effb..17dc73bb 100644 --- a/lib/stripe/services/terminal/reader_service.rb +++ b/lib/stripe/services/terminal/reader_service.rb @@ -4,7 +4,7 @@ module Stripe module Terminal class ReaderService < StripeService - # Cancels the current reader action. + # Cancels the current reader action. See [Programmatic Cancellation](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven#programmatic-cancellation) for more details. def cancel_action(reader, params = {}, opts = {}) request( method: :post, @@ -15,7 +15,7 @@ module Stripe ) end - # Initiates an input collection flow on a Reader. + # Initiates an [input collection flow](https://docs.stripe.com/docs/terminal/features/collect-inputs) on a Reader to display input forms and collect information from your customers. def collect_inputs(reader, params = {}, opts = {}) request( method: :post, @@ -26,7 +26,7 @@ module Stripe ) end - # Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. + # Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. See [Collecting a Payment method](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#collect-a-paymentmethod) for more details. def collect_payment_method(reader, params = {}, opts = {}) request( method: :post, @@ -37,7 +37,7 @@ module Stripe ) end - # Finalizes a payment on a Reader. + # Finalizes a payment on a Reader. See [Confirming a Payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#confirm-the-paymentintent) for more details. def confirm_payment_intent(reader, params = {}, opts = {}) request( method: :post, @@ -81,7 +81,7 @@ module Stripe ) end - # Initiates a payment flow on a Reader. + # Initiates a payment flow on a Reader. See [process the payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=immediately#process-payment) for more details. def process_payment_intent(reader, params = {}, opts = {}) request( method: :post, @@ -92,7 +92,7 @@ module Stripe ) end - # Initiates a setup intent flow on a Reader. + # Initiates a SetupIntent flow on a Reader. See [Save directly without charging](https://docs.stripe.com/docs/terminal/features/saving-payment-details/save-directly) for more details. def process_setup_intent(reader, params = {}, opts = {}) request( method: :post, @@ -103,7 +103,7 @@ module Stripe ) end - # Initiates a refund on a Reader + # Initiates an in-person refund on a Reader. See [Refund an Interac Payment](https://docs.stripe.com/docs/terminal/payments/regional?integration-country=CA#refund-an-interac-payment) for more details. def refund_payment(reader, params = {}, opts = {}) request( method: :post, @@ -125,7 +125,7 @@ module Stripe ) end - # Sets reader display to show cart details. + # Sets the reader display to show [cart details](https://docs.stripe.com/docs/terminal/features/display). def set_reader_display(reader, params = {}, opts = {}) request( method: :post, diff --git a/lib/stripe/services/v1_services.rb b/lib/stripe/services/v1_services.rb index 3cf91ecb..4b069005 100644 --- a/lib/stripe/services/v1_services.rb +++ b/lib/stripe/services/v1_services.rb @@ -4,7 +4,7 @@ module Stripe class V1Services < StripeService # v1 accessors: The beginning of the section generated from our OpenAPI spec attr_reader :accounts - attr_reader :account_links, :account_sessions, :apple_pay_domains, :application_fees, :apps, :balance, :balance_settings, :balance_transactions, :billing, :billing_portal, :charges, :checkout, :climate, :confirmation_tokens, :country_specs, :coupons, :credit_notes, :customers, :customer_sessions, :disputes, :entitlements, :ephemeral_keys, :events, :exchange_rates, :files, :file_links, :financial_connections, :forwarding, :identity, :invoices, :invoice_items, :invoice_payments, :invoice_rendering_templates, :issuing, :mandates, :payment_intents, :payment_links, :payment_methods, :payment_method_configurations, :payment_method_domains, :payouts, :plans, :prices, :products, :promotion_codes, :quotes, :radar, :refunds, :reporting, :reviews, :setup_attempts, :setup_intents, :shipping_rates, :sigma, :sources, :subscriptions, :subscription_items, :subscription_schedules, :tax, :tax_codes, :tax_ids, :tax_rates, :terminal, :test_helpers, :tokens, :topups, :transfers, :treasury, :webhook_endpoints + attr_reader :account_links, :account_sessions, :apple_pay_domains, :application_fees, :apps, :balance, :balance_settings, :balance_transactions, :billing, :billing_portal, :charges, :checkout, :climate, :confirmation_tokens, :country_specs, :coupons, :credit_notes, :customers, :customer_sessions, :disputes, :entitlements, :ephemeral_keys, :events, :exchange_rates, :files, :file_links, :financial_connections, :forwarding, :identity, :invoices, :invoice_items, :invoice_payments, :invoice_rendering_templates, :issuing, :mandates, :payment_attempt_records, :payment_intents, :payment_links, :payment_methods, :payment_method_configurations, :payment_method_domains, :payment_records, :payouts, :plans, :prices, :products, :promotion_codes, :quotes, :radar, :refunds, :reporting, :reviews, :setup_attempts, :setup_intents, :shipping_rates, :sigma, :sources, :subscriptions, :subscription_items, :subscription_schedules, :tax, :tax_codes, :tax_ids, :tax_rates, :terminal, :test_helpers, :tokens, :topups, :transfers, :treasury, :webhook_endpoints # v1 accessors: The end of the section generated from our OpenAPI spec # OAuthService is manually maintained, as it has special behaviors @@ -49,11 +49,13 @@ module Stripe @invoice_rendering_templates = Stripe::InvoiceRenderingTemplateService.new(@requestor) @issuing = Stripe::IssuingService.new(@requestor) @mandates = Stripe::MandateService.new(@requestor) + @payment_attempt_records = Stripe::PaymentAttemptRecordService.new(@requestor) @payment_intents = Stripe::PaymentIntentService.new(@requestor) @payment_links = Stripe::PaymentLinkService.new(@requestor) @payment_methods = Stripe::PaymentMethodService.new(@requestor) @payment_method_configurations = Stripe::PaymentMethodConfigurationService.new(@requestor) @payment_method_domains = Stripe::PaymentMethodDomainService.new(@requestor) + @payment_records = Stripe::PaymentRecordService.new(@requestor) @payouts = Stripe::PayoutService.new(@requestor) @plans = Stripe::PlanService.new(@requestor) @prices = Stripe::PriceService.new(@requestor) diff --git a/rbi/stripe.rbi b/rbi/stripe.rbi index c4b16f23..c64ce87c 100644 --- a/rbi/stripe.rbi +++ b/rbi/stripe.rbi @@ -48,7 +48,7 @@ module Stripe sig { returns(String) } def object; end # A paginated list of owners for this account. - sig { returns(Stripe::ListObject) } + sig { returns(::Stripe::ListObject) } def owners; end end end @@ -62,7 +62,7 @@ module Stripe sig { returns(String) } def customer; end # The list of entitlements this customer has. - sig { returns(Stripe::ListObject) } + sig { returns(::Stripe::ListObject) } def entitlements; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -78,7 +78,7 @@ module Stripe module Billing class AlertTriggered < APIResource # A billing alert is a resource that notifies you when a certain usage threshold on a meter is crossed. For example, you might create a billing alert to notify you when a certain user made 100 API requests. - sig { returns(Stripe::Billing::Alert) } + sig { returns(::Stripe::Billing::Alert) } def alert; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -125,8 +125,8 @@ module Stripe # # Related guide: [Bank debits and transfers](https://docs.stripe.com/payments/bank-debits-transfers) class BankAccount < APIResource - class FutureRequirements < Stripe::StripeObject - class Error < Stripe::StripeObject + class FutureRequirements < ::Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. sig { returns(String) } def code; end @@ -162,8 +162,8 @@ module Stripe @field_remappings = {} end end - class Requirements < Stripe::StripeObject - class Error < Stripe::StripeObject + class Requirements < ::Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. sig { returns(String) } def code; end @@ -200,7 +200,7 @@ module Stripe end end # The account this bank account belongs to. Only applicable on Accounts (not customers or recipients) This property is only available when returned as an [External Account](/api/external_account_bank_accounts/object) where [controller.is_controller](/api/accounts/object#account_object-controller-is_controller) is `true`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # The name of the person or business that owns the bank account. sig { returns(T.nilable(String)) } @@ -224,7 +224,7 @@ module Stripe sig { returns(String) } def currency; end # The ID of the customer that the bank account is associated with. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # Whether this bank account is the default external account for its currency. sig { returns(T.nilable(T::Boolean)) } @@ -267,8 +267,8 @@ end module Stripe module Tax class CalculationLineItem < APIResource - class TaxBreakdown < Stripe::StripeObject - class Jurisdiction < Stripe::StripeObject + class TaxBreakdown < ::Stripe::StripeObject + class Jurisdiction < ::Stripe::StripeObject # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). sig { returns(String) } def country; end @@ -288,7 +288,7 @@ module Stripe @field_remappings = {} end end - class TaxRateDetails < Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject # A localized display name for tax type, intended to be human-readable. For example, "Local Sales and Use Tax", "Value-added tax (VAT)", or "Umsatzsteuer (USt.)". sig { returns(String) } def display_name; end @@ -377,7 +377,7 @@ module Stripe # # Related guide: [Card payments with Sources](https://stripe.com/docs/sources/cards) class Card < APIResource - class Networks < Stripe::StripeObject + class Networks < ::Stripe::StripeObject # The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card. sig { returns(T.nilable(String)) } def preferred; end @@ -389,7 +389,7 @@ module Stripe end end # Attribute for field account - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # City/District/Suburb/Town/Village. sig { returns(T.nilable(String)) } @@ -431,7 +431,7 @@ module Stripe sig { returns(T.nilable(String)) } def currency; end # The customer that this card belongs to. This attribute will not be in the card object if the card belongs to an account or recipient instead. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # If a CVC was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`. A result of unchecked indicates that CVC was provided but hasn't been checked yet. Checks are typically performed when attaching a card to a Customer object, or when creating a charge. For more details, see [Check if a card is valid without a charge](https://support.stripe.com/questions/check-if-a-card-is-valid-without-a-charge). sig { returns(T.nilable(String)) } @@ -507,7 +507,7 @@ module Stripe sig { returns(String) } def currency; end # ID of the account that funds are being collected for. - sig { returns(T.any(String, Stripe::Account)) } + sig { returns(T.any(String, ::Stripe::Account)) } def destination; end # Unique identifier for the object. sig { returns(String) } @@ -540,9 +540,9 @@ module Stripe # # Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts) class Discount < StripeObject - class Source < Stripe::StripeObject + class Source < ::Stripe::StripeObject # The coupon that was redeemed to create this discount. - sig { returns(T.nilable(T.any(String, Stripe::Coupon))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Coupon))) } def coupon; end # The source type of the discount. sig { returns(String) } @@ -558,7 +558,7 @@ module Stripe sig { returns(T.nilable(String)) } def checkout_session; end # The ID of the customer associated with this discount. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # If the coupon has a duration of `repeating`, the date that this discount will end. If the coupon has a duration of `once` or `forever`, this attribute will be null. sig { returns(T.nilable(Integer)) } @@ -576,7 +576,7 @@ module Stripe sig { returns(String) } def object; end # The promotion code applied to create this discount. - sig { returns(T.nilable(T.any(String, Stripe::PromotionCode))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PromotionCode))) } def promotion_code; end # Attribute for field source sig { returns(Source) } @@ -601,8 +601,8 @@ module Stripe # Encodes whether a FinancialAccount has access to a particular Feature, with a `status` enum and associated `status_details`. # Stripe or the platform can control Features via the requested field. class FinancialAccountFeatures < APIResource - class CardIssuing < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class CardIssuing < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. sig { returns(String) } def code; end @@ -635,8 +635,8 @@ module Stripe @field_remappings = {} end end - class DepositInsurance < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class DepositInsurance < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. sig { returns(String) } def code; end @@ -669,9 +669,9 @@ module Stripe @field_remappings = {} end end - class FinancialAddresses < Stripe::StripeObject - class Aba < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class FinancialAddresses < ::Stripe::StripeObject + class Aba < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. sig { returns(String) } def code; end @@ -714,9 +714,9 @@ module Stripe @field_remappings = {} end end - class InboundTransfers < Stripe::StripeObject - class Ach < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class InboundTransfers < ::Stripe::StripeObject + class Ach < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. sig { returns(String) } def code; end @@ -759,8 +759,8 @@ module Stripe @field_remappings = {} end end - class IntraStripeFlows < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class IntraStripeFlows < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. sig { returns(String) } def code; end @@ -793,9 +793,9 @@ module Stripe @field_remappings = {} end end - class OutboundPayments < Stripe::StripeObject - class Ach < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class OutboundPayments < ::Stripe::StripeObject + class Ach < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. sig { returns(String) } def code; end @@ -828,8 +828,8 @@ module Stripe @field_remappings = {} end end - class UsDomesticWire < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class UsDomesticWire < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. sig { returns(String) } def code; end @@ -875,9 +875,9 @@ module Stripe @field_remappings = {} end end - class OutboundTransfers < Stripe::StripeObject - class Ach < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class OutboundTransfers < ::Stripe::StripeObject + class Ach < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. sig { returns(String) } def code; end @@ -910,8 +910,8 @@ module Stripe @field_remappings = {} end end - class UsDomesticWire < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class UsDomesticWire < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. sig { returns(String) } def code; end @@ -992,10 +992,10 @@ module Stripe # `financial_addresses` field. # Related guide: [Customer balance funding instructions](https://stripe.com/docs/payments/customer-balance/funding-instructions) class FundingInstructions < APIResource - class BankTransfer < Stripe::StripeObject - class FinancialAddress < Stripe::StripeObject - class Aba < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class BankTransfer < ::Stripe::StripeObject + class FinancialAddress < ::Stripe::StripeObject + class Aba < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -1021,7 +1021,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -1078,8 +1078,8 @@ module Stripe @field_remappings = {} end end - class Iban < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Iban < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -1105,7 +1105,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -1159,8 +1159,8 @@ module Stripe @field_remappings = {} end end - class SortCode < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class SortCode < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -1186,7 +1186,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -1237,8 +1237,8 @@ module Stripe @field_remappings = {} end end - class Spei < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Spei < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -1264,7 +1264,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -1318,8 +1318,8 @@ module Stripe @field_remappings = {} end end - class Swift < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Swift < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -1345,7 +1345,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -1402,8 +1402,8 @@ module Stripe @field_remappings = {} end end - class Zengin < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Zengin < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -1429,7 +1429,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -1567,7 +1567,7 @@ end module Stripe # A line item. class LineItem < APIResource - class Discount < Stripe::StripeObject + class Discount < ::Stripe::StripeObject # The amount discounted. sig { returns(Integer) } def amount; end @@ -1575,7 +1575,7 @@ module Stripe # It contains information about when the discount began, when it will end, and what it is applied to. # # Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts) - sig { returns(Stripe::Discount) } + sig { returns(::Stripe::Discount) } def discount; end def self.inner_class_types @inner_class_types = {} @@ -1584,14 +1584,14 @@ module Stripe @field_remappings = {} end end - class Tax < Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. sig { returns(Integer) } def amount; end # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # # Related guide: [Tax rates](/billing/taxes/tax-rates) - sig { returns(Stripe::TaxRate) } + sig { returns(::Stripe::TaxRate) } def rate; end # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. sig { returns(T.nilable(String)) } @@ -1634,7 +1634,7 @@ module Stripe sig { returns(String) } def object; end # The price used to generate the line item. - sig { returns(T.nilable(Stripe::Price)) } + sig { returns(T.nilable(::Stripe::Price)) } def price; end # The quantity of products being purchased. sig { returns(T.nilable(Integer)) } @@ -1670,7 +1670,7 @@ module Stripe # a source mandate must be sent to the payer. They will trigger a webhook or # deliver an email to the customer. class SourceMandateNotification < APIResource - class AcssDebit < Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject # The statement descriptor associate with the debit. sig { returns(T.nilable(String)) } def statement_descriptor; end @@ -1681,7 +1681,7 @@ module Stripe @field_remappings = {} end end - class BacsDebit < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject # Last 4 digits of the account number associated with the debit. sig { returns(T.nilable(String)) } def last4; end @@ -1692,7 +1692,7 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject # SEPA creditor ID. sig { returns(T.nilable(String)) } def creditor_identifier; end @@ -1746,7 +1746,7 @@ module Stripe # This newer API provides access to our latest features and payment method types. # # Related guides: [Sources API](https://stripe.com/docs/sources) and [Sources & Customers](https://stripe.com/docs/sources/customers). - sig { returns(Stripe::Source) } + sig { returns(::Stripe::Source) } def source; end # The status of the mandate notification. Valid statuses are `pending` or `submitted`. sig { returns(String) } @@ -1780,7 +1780,7 @@ end module Stripe module Tax class TransactionLineItem < APIResource - class Reversal < Stripe::StripeObject + class Reversal < ::Stripe::StripeObject # The `id` of the line item to reverse in the original transaction. sig { returns(String) } def original_line_item; end @@ -1854,7 +1854,7 @@ module Stripe def url; end # Creates an AccountLink object that includes a single-use Stripe URL that the platform can redirect their user to in order to take them through the Connect Onboarding flow. sig { - params(params: T.any(::Stripe::AccountLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::AccountLink) + params(params: T.any(::Stripe::AccountLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::AccountLink) } def self.create(params = {}, opts = {}); end end @@ -1869,9 +1869,9 @@ module Stripe # # Related guide: [Connect embedded components](https://stripe.com/docs/connect/get-started-connect-embedded-components) class AccountSession < APIResource - class Components < Stripe::StripeObject - class AccountManagement < Stripe::StripeObject - class Features < Stripe::StripeObject + class Components < ::Stripe::StripeObject + class AccountManagement < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T::Boolean) } def disable_stripe_user_authentication; end @@ -1898,8 +1898,8 @@ module Stripe @field_remappings = {} end end - class AccountOnboarding < Stripe::StripeObject - class Features < Stripe::StripeObject + class AccountOnboarding < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T::Boolean) } def disable_stripe_user_authentication; end @@ -1926,8 +1926,8 @@ module Stripe @field_remappings = {} end end - class Balances < Stripe::StripeObject - class Features < Stripe::StripeObject + class Balances < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T::Boolean) } def disable_stripe_user_authentication; end @@ -1963,8 +1963,8 @@ module Stripe @field_remappings = {} end end - class DisputesList < Stripe::StripeObject - class Features < Stripe::StripeObject + class DisputesList < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether to allow capturing and cancelling payment intents. This is `true` by default. sig { returns(T::Boolean) } def capture_payments; end @@ -1997,8 +1997,8 @@ module Stripe @field_remappings = {} end end - class Documents < Stripe::StripeObject - class Features < Stripe::StripeObject + class Documents < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -2019,8 +2019,8 @@ module Stripe @field_remappings = {} end end - class FinancialAccount < Stripe::StripeObject - class Features < Stripe::StripeObject + class FinancialAccount < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T::Boolean) } def disable_stripe_user_authentication; end @@ -2053,8 +2053,8 @@ module Stripe @field_remappings = {} end end - class FinancialAccountTransactions < Stripe::StripeObject - class Features < Stripe::StripeObject + class FinancialAccountTransactions < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether to allow card spend dispute management features. sig { returns(T::Boolean) } def card_spend_dispute_management; end @@ -2078,8 +2078,8 @@ module Stripe @field_remappings = {} end end - class InstantPayoutsPromotion < Stripe::StripeObject - class Features < Stripe::StripeObject + class InstantPayoutsPromotion < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T::Boolean) } def disable_stripe_user_authentication; end @@ -2109,8 +2109,8 @@ module Stripe @field_remappings = {} end end - class IssuingCard < Stripe::StripeObject - class Features < Stripe::StripeObject + class IssuingCard < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether to allow card management features. sig { returns(T::Boolean) } def card_management; end @@ -2143,8 +2143,8 @@ module Stripe @field_remappings = {} end end - class IssuingCardsList < Stripe::StripeObject - class Features < Stripe::StripeObject + class IssuingCardsList < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether to allow card management features. sig { returns(T::Boolean) } def card_management; end @@ -2180,8 +2180,8 @@ module Stripe @field_remappings = {} end end - class NotificationBanner < Stripe::StripeObject - class Features < Stripe::StripeObject + class NotificationBanner < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T::Boolean) } def disable_stripe_user_authentication; end @@ -2208,8 +2208,8 @@ module Stripe @field_remappings = {} end end - class PaymentDetails < Stripe::StripeObject - class Features < Stripe::StripeObject + class PaymentDetails < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether to allow capturing and cancelling payment intents. This is `true` by default. sig { returns(T::Boolean) } def capture_payments; end @@ -2242,8 +2242,8 @@ module Stripe @field_remappings = {} end end - class PaymentDisputes < Stripe::StripeObject - class Features < Stripe::StripeObject + class PaymentDisputes < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default. sig { returns(T::Boolean) } def destination_on_behalf_of_charge_management; end @@ -2273,8 +2273,8 @@ module Stripe @field_remappings = {} end end - class Payments < Stripe::StripeObject - class Features < Stripe::StripeObject + class Payments < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether to allow capturing and cancelling payment intents. This is `true` by default. sig { returns(T::Boolean) } def capture_payments; end @@ -2307,8 +2307,8 @@ module Stripe @field_remappings = {} end end - class PayoutDetails < Stripe::StripeObject - class Features < Stripe::StripeObject + class PayoutDetails < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -2329,8 +2329,8 @@ module Stripe @field_remappings = {} end end - class Payouts < Stripe::StripeObject - class Features < Stripe::StripeObject + class Payouts < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T::Boolean) } def disable_stripe_user_authentication; end @@ -2366,8 +2366,8 @@ module Stripe @field_remappings = {} end end - class PayoutsList < Stripe::StripeObject - class Features < Stripe::StripeObject + class PayoutsList < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -2388,8 +2388,8 @@ module Stripe @field_remappings = {} end end - class TaxRegistrations < Stripe::StripeObject - class Features < Stripe::StripeObject + class TaxRegistrations < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -2410,8 +2410,8 @@ module Stripe @field_remappings = {} end end - class TaxSettings < Stripe::StripeObject - class Features < Stripe::StripeObject + class TaxSettings < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -2540,7 +2540,7 @@ module Stripe def object; end # Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access. sig { - params(params: T.any(::Stripe::AccountSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::AccountSession) + params(params: T.any(::Stripe::AccountSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::AccountSession) } def self.create(params = {}, opts = {}); end end @@ -2560,8 +2560,8 @@ module Stripe # until you create an [Account Link](https://docs.stripe.com/api/account_links) or [Account Session](https://docs.stripe.com/api/account_sessions) # to start Connect Onboarding. Learn about the [differences between accounts](https://docs.stripe.com/connect/accounts). class Account < APIResource - class BusinessProfile < Stripe::StripeObject - class AnnualRevenue < Stripe::StripeObject + class BusinessProfile < ::Stripe::StripeObject + class AnnualRevenue < ::Stripe::StripeObject # A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal). sig { returns(T.nilable(Integer)) } def amount; end @@ -2578,7 +2578,7 @@ module Stripe @field_remappings = {} end end - class MonthlyEstimatedRevenue < Stripe::StripeObject + class MonthlyEstimatedRevenue < ::Stripe::StripeObject # A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal). sig { returns(Integer) } def amount; end @@ -2592,7 +2592,7 @@ module Stripe @field_remappings = {} end end - class SupportAddress < Stripe::StripeObject + class SupportAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -2665,7 +2665,7 @@ module Stripe @field_remappings = {} end end - class Capabilities < Stripe::StripeObject + class Capabilities < ::Stripe::StripeObject # The status of the Canadian pre-authorized debits payments capability of the account, or whether the account can directly process Canadian pre-authorized debits charges. sig { returns(T.nilable(String)) } def acss_debit_payments; end @@ -2853,8 +2853,8 @@ module Stripe @field_remappings = {} end end - class Company < Stripe::StripeObject - class Address < Stripe::StripeObject + class Company < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -2880,7 +2880,7 @@ module Stripe @field_remappings = {} end end - class AddressKana < Stripe::StripeObject + class AddressKana < ::Stripe::StripeObject # City/Ward. sig { returns(T.nilable(String)) } def city; end @@ -2909,7 +2909,7 @@ module Stripe @field_remappings = {} end end - class AddressKanji < Stripe::StripeObject + class AddressKanji < ::Stripe::StripeObject # City/Ward. sig { returns(T.nilable(String)) } def city; end @@ -2938,7 +2938,7 @@ module Stripe @field_remappings = {} end end - class DirectorshipDeclaration < Stripe::StripeObject + class DirectorshipDeclaration < ::Stripe::StripeObject # The Unix timestamp marking when the directorship declaration attestation was made. sig { returns(T.nilable(Integer)) } def date; end @@ -2955,7 +2955,7 @@ module Stripe @field_remappings = {} end end - class OwnershipDeclaration < Stripe::StripeObject + class OwnershipDeclaration < ::Stripe::StripeObject # The Unix timestamp marking when the beneficial owner attestation was made. sig { returns(T.nilable(Integer)) } def date; end @@ -2972,7 +2972,7 @@ module Stripe @field_remappings = {} end end - class RegistrationDate < Stripe::StripeObject + class RegistrationDate < ::Stripe::StripeObject # The day of registration, between 1 and 31. sig { returns(T.nilable(Integer)) } def day; end @@ -2989,10 +2989,27 @@ module Stripe @field_remappings = {} end end - class Verification < Stripe::StripeObject - class Document < Stripe::StripeObject + class RepresentativeDeclaration < ::Stripe::StripeObject + # The Unix timestamp marking when the representative declaration attestation was made. + sig { returns(T.nilable(Integer)) } + def date; end + # The IP address from which the representative declaration attestation was made. + sig { returns(T.nilable(String)) } + def ip; end + # The user-agent string from the browser where the representative declaration attestation was made. + sig { returns(T.nilable(String)) } + def user_agent; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Verification < ::Stripe::StripeObject + class Document < ::Stripe::StripeObject # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](/file-upload#uploading-a-file). - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def back; end # A user-displayable string describing the verification state of this document. sig { returns(T.nilable(String)) } @@ -3001,7 +3018,7 @@ module Stripe sig { returns(T.nilable(String)) } def details_code; end # The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](/file-upload#uploading-a-file). - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def front; end def self.inner_class_types @inner_class_types = {} @@ -3068,6 +3085,9 @@ module Stripe # Attribute for field registration_date sig { returns(T.nilable(RegistrationDate)) } def registration_date; end + # This hash is used to attest that the representative is authorized to act as the representative of their legal entity. + sig { returns(T.nilable(RepresentativeDeclaration)) } + def representative_declaration; end # The category identifying the legal structure of the company or legal entity. Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details. sig { returns(T.nilable(String)) } def structure; end @@ -3091,6 +3111,7 @@ module Stripe directorship_declaration: DirectorshipDeclaration, ownership_declaration: OwnershipDeclaration, registration_date: RegistrationDate, + representative_declaration: RepresentativeDeclaration, verification: Verification, } end @@ -3098,8 +3119,8 @@ module Stripe @field_remappings = {} end end - class Controller < Stripe::StripeObject - class Fees < Stripe::StripeObject + class Controller < ::Stripe::StripeObject + class Fees < ::Stripe::StripeObject # A value indicating the responsible payer of a bundle of Stripe fees for pricing-control eligible products on this account. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior). sig { returns(String) } def payer; end @@ -3110,7 +3131,7 @@ module Stripe @field_remappings = {} end end - class Losses < Stripe::StripeObject + class Losses < ::Stripe::StripeObject # A value indicating who is liable when this account can't pay back negative balances from payments. sig { returns(String) } def payments; end @@ -3121,7 +3142,7 @@ module Stripe @field_remappings = {} end end - class StripeDashboard < Stripe::StripeObject + class StripeDashboard < ::Stripe::StripeObject # A value indicating the Stripe dashboard this account has access to independent of the Connect application. sig { returns(String) } def type; end @@ -3157,8 +3178,8 @@ module Stripe @field_remappings = {} end end - class FutureRequirements < Stripe::StripeObject - class Alternative < Stripe::StripeObject + class FutureRequirements < ::Stripe::StripeObject + class Alternative < ::Stripe::StripeObject # Fields that can be provided to satisfy all fields in `original_fields_due`. sig { returns(T::Array[String]) } def alternative_fields_due; end @@ -3172,7 +3193,7 @@ module Stripe @field_remappings = {} end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. sig { returns(String) } def code; end @@ -3220,7 +3241,7 @@ module Stripe @field_remappings = {} end end - class Groups < Stripe::StripeObject + class Groups < ::Stripe::StripeObject # The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details. sig { returns(T.nilable(String)) } def payments_pricing; end @@ -3231,8 +3252,8 @@ module Stripe @field_remappings = {} end end - class Requirements < Stripe::StripeObject - class Alternative < Stripe::StripeObject + class Requirements < ::Stripe::StripeObject + class Alternative < ::Stripe::StripeObject # Fields that can be provided to satisfy all fields in `original_fields_due`. sig { returns(T::Array[String]) } def alternative_fields_due; end @@ -3246,7 +3267,7 @@ module Stripe @field_remappings = {} end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. sig { returns(String) } def code; end @@ -3294,8 +3315,8 @@ module Stripe @field_remappings = {} end end - class Settings < Stripe::StripeObject - class BacsDebitPayments < Stripe::StripeObject + class Settings < ::Stripe::StripeObject + class BacsDebitPayments < ::Stripe::StripeObject # The Bacs Direct Debit display name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. The fee appears 5 business days after requesting Bacs. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free. sig { returns(T.nilable(String)) } def display_name; end @@ -3309,12 +3330,12 @@ module Stripe @field_remappings = {} end end - class Branding < Stripe::StripeObject + class Branding < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def icon; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A logo for the account that will be used in Checkout instead of the icon and without the account's name next to it if provided. Must be at least 128px x 128px. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def logo; end # A CSS hex color value representing the primary branding color for this account sig { returns(T.nilable(String)) } @@ -3329,8 +3350,8 @@ module Stripe @field_remappings = {} end end - class CardIssuing < Stripe::StripeObject - class TosAcceptance < Stripe::StripeObject + class CardIssuing < ::Stripe::StripeObject + class TosAcceptance < ::Stripe::StripeObject # The Unix timestamp marking when the account representative accepted the service agreement. sig { returns(T.nilable(Integer)) } def date; end @@ -3357,8 +3378,8 @@ module Stripe @field_remappings = {} end end - class CardPayments < Stripe::StripeObject - class DeclineOn < Stripe::StripeObject + class CardPayments < ::Stripe::StripeObject + class DeclineOn < ::Stripe::StripeObject # Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification. sig { returns(T::Boolean) } def avs_failure; end @@ -3391,7 +3412,7 @@ module Stripe @field_remappings = {} end end - class Dashboard < Stripe::StripeObject + class Dashboard < ::Stripe::StripeObject # The display name for this account. This is used on the Stripe Dashboard to differentiate between accounts. sig { returns(T.nilable(String)) } def display_name; end @@ -3405,9 +3426,9 @@ module Stripe @field_remappings = {} end end - class Invoices < Stripe::StripeObject + class Invoices < ::Stripe::StripeObject # The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized. - sig { returns(T.nilable(T::Array[T.any(String, Stripe::TaxId)])) } + sig { returns(T.nilable(T::Array[T.any(String, ::Stripe::TaxId)])) } def default_account_tax_ids; end # Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page. sig { returns(T.nilable(String)) } @@ -3419,7 +3440,7 @@ module Stripe @field_remappings = {} end end - class Payments < Stripe::StripeObject + class Payments < ::Stripe::StripeObject # The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge. sig { returns(T.nilable(String)) } def statement_descriptor; end @@ -3442,8 +3463,8 @@ module Stripe @field_remappings = {} end end - class Payouts < Stripe::StripeObject - class Schedule < Stripe::StripeObject + class Payouts < ::Stripe::StripeObject + class Schedule < ::Stripe::StripeObject # The number of days charges for the account will be held before being paid out. sig { returns(Integer) } def delay_days; end @@ -3485,7 +3506,7 @@ module Stripe @field_remappings = {} end end - class SepaDebitPayments < Stripe::StripeObject + class SepaDebitPayments < ::Stripe::StripeObject # SEPA creditor identifier that identifies the company making the payment. sig { returns(T.nilable(String)) } def creditor_id; end @@ -3496,8 +3517,8 @@ module Stripe @field_remappings = {} end end - class Treasury < Stripe::StripeObject - class TosAcceptance < Stripe::StripeObject + class Treasury < ::Stripe::StripeObject + class TosAcceptance < ::Stripe::StripeObject # The Unix timestamp marking when the account representative accepted the service agreement. sig { returns(T.nilable(Integer)) } def date; end @@ -3572,7 +3593,7 @@ module Stripe @field_remappings = {} end end - class TosAcceptance < Stripe::StripeObject + class TosAcceptance < ::Stripe::StripeObject # The Unix timestamp marking when the account representative accepted their service agreement sig { returns(T.nilable(Integer)) } def date; end @@ -3626,7 +3647,7 @@ module Stripe sig { returns(T.nilable(String)) } def email; end # External accounts (bank accounts and debit cards) currently attached to this account. External accounts are only returned for requests where `controller[is_controller]` is true. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def external_accounts; end # Attribute for field future_requirements sig { returns(T.nilable(FutureRequirements)) } @@ -3642,7 +3663,7 @@ module Stripe # A platform can only access a subset of data in a person for an account where [account.controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`, which includes Standard and Express accounts, after creating an Account Link or Account Session to start Connect onboarding. # # See the [Standard onboarding](/connect/standard-accounts) or [Express onboarding](/connect/express-accounts) documentation for information about prefilling information and account onboarding steps. Learn more about [handling identity verification with the API](/connect/handling-api-verification#person-information). - sig { returns(T.nilable(Stripe::Person)) } + sig { returns(T.nilable(::Stripe::Person)) } def individual; end # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. sig { returns(T.nilable(T::Hash[String, String])) } @@ -3675,7 +3696,7 @@ module Stripe # creating the account. Connect Onboarding won't ask for the prefilled information during account onboarding. # You can prefill any information on the account. sig { - params(params: T.any(::Stripe::AccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(params: T.any(::Stripe::AccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def self.create(params = {}, opts = {}); end @@ -3687,7 +3708,7 @@ module Stripe # # If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead. sig { - params(account: String, params: T.any(::Stripe::AccountDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(account: String, params: T.any(::Stripe::AccountDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def self.delete(account, params = {}, opts = {}); end @@ -3699,25 +3720,25 @@ module Stripe # # If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead. sig { - params(params: T.any(::Stripe::AccountDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(params: T.any(::Stripe::AccountDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def delete(params = {}, opts = {}); end # Returns a list of accounts connected to your platform via [Connect](https://docs.stripe.com/docs/connect). If you're not a platform, the list is empty. sig { - params(params: T.any(::Stripe::AccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::AccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Returns a list of people associated with the account's legal entity. The people are returned sorted by creation date, with the most recent people appearing first. sig { - params(params: T.any(::Stripe::AccountPersonsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::AccountPersonsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def persons(params = {}, opts = {}); end # Returns a list of people associated with the account's legal entity. The people are returned sorted by creation date, with the most recent people appearing first. sig { - params(account: String, params: T.any(::Stripe::AccountPersonsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(account: String, params: T.any(::Stripe::AccountPersonsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.persons(account, params = {}, opts = {}); end @@ -3725,7 +3746,7 @@ module Stripe # # Only accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time. Live-mode accounts can only be rejected after all balances are zero. sig { - params(params: T.any(::Stripe::AccountRejectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(params: T.any(::Stripe::AccountRejectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def reject(params = {}, opts = {}); end @@ -3733,7 +3754,7 @@ module Stripe # # Only accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time. Live-mode accounts can only be rejected after all balances are zero. sig { - params(account: String, params: T.any(::Stripe::AccountRejectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(account: String, params: T.any(::Stripe::AccountRejectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def self.reject(account, params = {}, opts = {}); end @@ -3751,7 +3772,7 @@ module Stripe # To update your own account, use the [Dashboard](https://dashboard.stripe.com/settings/account). Refer to our # [Connect](https://docs.stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts. sig { - params(account: String, params: T.any(::Stripe::AccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(account: String, params: T.any(::Stripe::AccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def self.update(account, params = {}, opts = {}); end end @@ -3762,8 +3783,8 @@ module Stripe # # Related guide: [Account capabilities](https://stripe.com/docs/connect/account-capabilities) class Capability < APIResource - class FutureRequirements < Stripe::StripeObject - class Alternative < Stripe::StripeObject + class FutureRequirements < ::Stripe::StripeObject + class Alternative < ::Stripe::StripeObject # Fields that can be provided to satisfy all fields in `original_fields_due`. sig { returns(T::Array[String]) } def alternative_fields_due; end @@ -3777,7 +3798,7 @@ module Stripe @field_remappings = {} end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. sig { returns(String) } def code; end @@ -3825,8 +3846,8 @@ module Stripe @field_remappings = {} end end - class Requirements < Stripe::StripeObject - class Alternative < Stripe::StripeObject + class Requirements < ::Stripe::StripeObject + class Alternative < ::Stripe::StripeObject # Fields that can be provided to satisfy all fields in `original_fields_due`. sig { returns(T::Array[String]) } def alternative_fields_due; end @@ -3840,7 +3861,7 @@ module Stripe @field_remappings = {} end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. sig { returns(String) } def code; end @@ -3889,7 +3910,7 @@ module Stripe end end # The account for which the capability enables functionality. - sig { returns(T.any(String, Stripe::Account)) } + sig { returns(T.any(String, ::Stripe::Account)) } def account; end # Attribute for field future_requirements sig { returns(T.nilable(FutureRequirements)) } @@ -3938,8 +3959,8 @@ module Stripe # # See the [Standard onboarding](https://docs.stripe.com/connect/standard-accounts) or [Express onboarding](https://docs.stripe.com/connect/express-accounts) documentation for information about prefilling information and account onboarding steps. Learn more about [handling identity verification with the API](https://docs.stripe.com/connect/handling-api-verification#person-information). class Person < APIResource - class AdditionalTosAcceptances < Stripe::StripeObject - class Account < Stripe::StripeObject + class AdditionalTosAcceptances < ::Stripe::StripeObject + class Account < ::Stripe::StripeObject # The Unix timestamp marking when the legal guardian accepted the service agreement. sig { returns(T.nilable(Integer)) } def date; end @@ -3966,7 +3987,7 @@ module Stripe @field_remappings = {} end end - class Address < Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -3992,7 +4013,7 @@ module Stripe @field_remappings = {} end end - class AddressKana < Stripe::StripeObject + class AddressKana < ::Stripe::StripeObject # City/Ward. sig { returns(T.nilable(String)) } def city; end @@ -4021,7 +4042,7 @@ module Stripe @field_remappings = {} end end - class AddressKanji < Stripe::StripeObject + class AddressKanji < ::Stripe::StripeObject # City/Ward. sig { returns(T.nilable(String)) } def city; end @@ -4050,7 +4071,7 @@ module Stripe @field_remappings = {} end end - class Dob < Stripe::StripeObject + class Dob < ::Stripe::StripeObject # The day of birth, between 1 and 31. sig { returns(T.nilable(Integer)) } def day; end @@ -4067,8 +4088,8 @@ module Stripe @field_remappings = {} end end - class FutureRequirements < Stripe::StripeObject - class Alternative < Stripe::StripeObject + class FutureRequirements < ::Stripe::StripeObject + class Alternative < ::Stripe::StripeObject # Fields that can be provided to satisfy all fields in `original_fields_due`. sig { returns(T::Array[String]) } def alternative_fields_due; end @@ -4082,7 +4103,7 @@ module Stripe @field_remappings = {} end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. sig { returns(String) } def code; end @@ -4124,7 +4145,7 @@ module Stripe @field_remappings = {} end end - class RegisteredAddress < Stripe::StripeObject + class RegisteredAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -4150,7 +4171,7 @@ module Stripe @field_remappings = {} end end - class Relationship < Stripe::StripeObject + class Relationship < ::Stripe::StripeObject # Whether the person is the authorizer of the account's representative. sig { returns(T.nilable(T::Boolean)) } def authorizer; end @@ -4182,8 +4203,8 @@ module Stripe @field_remappings = {} end end - class Requirements < Stripe::StripeObject - class Alternative < Stripe::StripeObject + class Requirements < ::Stripe::StripeObject + class Alternative < ::Stripe::StripeObject # Fields that can be provided to satisfy all fields in `original_fields_due`. sig { returns(T::Array[String]) } def alternative_fields_due; end @@ -4197,7 +4218,7 @@ module Stripe @field_remappings = {} end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. sig { returns(String) } def code; end @@ -4239,8 +4260,8 @@ module Stripe @field_remappings = {} end end - class UsCfpbData < Stripe::StripeObject - class EthnicityDetails < Stripe::StripeObject + class UsCfpbData < ::Stripe::StripeObject + class EthnicityDetails < ::Stripe::StripeObject # The persons ethnicity sig { returns(T.nilable(T::Array[String])) } def ethnicity; end @@ -4254,7 +4275,7 @@ module Stripe @field_remappings = {} end end - class RaceDetails < Stripe::StripeObject + class RaceDetails < ::Stripe::StripeObject # The persons race. sig { returns(T.nilable(T::Array[String])) } def race; end @@ -4284,10 +4305,10 @@ module Stripe @field_remappings = {} end end - class Verification < Stripe::StripeObject - class AdditionalDocument < Stripe::StripeObject + class Verification < ::Stripe::StripeObject + class AdditionalDocument < ::Stripe::StripeObject # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def back; end # A user-displayable string describing the verification state of this document. For example, if a document is uploaded and the picture is too fuzzy, this may say "Identity document is too unclear to read". sig { returns(T.nilable(String)) } @@ -4296,7 +4317,7 @@ module Stripe sig { returns(T.nilable(String)) } def details_code; end # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def front; end def self.inner_class_types @inner_class_types = {} @@ -4305,9 +4326,9 @@ module Stripe @field_remappings = {} end end - class Document < Stripe::StripeObject + class Document < ::Stripe::StripeObject # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def back; end # A user-displayable string describing the verification state of this document. For example, if a document is uploaded and the picture is too fuzzy, this may say "Identity document is too unclear to read". sig { returns(T.nilable(String)) } @@ -4316,7 +4337,7 @@ module Stripe sig { returns(T.nilable(String)) } def details_code; end # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def front; end def self.inner_class_types @inner_class_types = {} @@ -4472,25 +4493,25 @@ module Stripe def deleted; end # Create an apple pay domain. sig { - params(params: T.any(::Stripe::ApplePayDomainCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ApplePayDomain) + params(params: T.any(::Stripe::ApplePayDomainCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ApplePayDomain) } def self.create(params = {}, opts = {}); end # Delete an apple pay domain. sig { - params(domain: String, params: T.any(::Stripe::ApplePayDomainDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ApplePayDomain) + params(domain: String, params: T.any(::Stripe::ApplePayDomainDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ApplePayDomain) } def self.delete(domain, params = {}, opts = {}); end # Delete an apple pay domain. sig { - params(params: T.any(::Stripe::ApplePayDomainDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ApplePayDomain) + params(params: T.any(::Stripe::ApplePayDomainDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ApplePayDomain) } def delete(params = {}, opts = {}); end # List apple pay domains. sig { - params(params: T.any(::Stripe::ApplePayDomainListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ApplePayDomainListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -4498,7 +4519,7 @@ end # typed: true module Stripe class ApplicationFee < APIResource - class FeeSource < Stripe::StripeObject + class FeeSource < ::Stripe::StripeObject # Charge ID that created this application fee. sig { returns(T.nilable(String)) } def charge; end @@ -4516,7 +4537,7 @@ module Stripe end end # ID of the Stripe account this fee was taken from. - sig { returns(T.any(String, Stripe::Account)) } + sig { returns(T.any(String, ::Stripe::Account)) } def account; end # Amount earned, in cents (or local equivalent). sig { returns(Integer) } @@ -4525,13 +4546,13 @@ module Stripe sig { returns(Integer) } def amount_refunded; end # ID of the Connect application that earned the fee. - sig { returns(T.any(String, Stripe::Application)) } + sig { returns(T.any(String, ::Stripe::Application)) } def application; end # Balance transaction that describes the impact of this collected application fee on your account balance (not including refunds). - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def balance_transaction; end # ID of the charge that the application fee was taken from. - sig { returns(T.any(String, Stripe::Charge)) } + sig { returns(T.any(String, ::Stripe::Charge)) } def charge; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -4552,17 +4573,17 @@ module Stripe sig { returns(String) } def object; end # ID of the corresponding charge on the platform account, if this fee was the result of a charge using the `destination` parameter. - sig { returns(T.nilable(T.any(String, Stripe::Charge))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Charge))) } def originating_transaction; end # Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false. sig { returns(T::Boolean) } def refunded; end # A list of refunds that have been applied to the fee. - sig { returns(Stripe::ListObject) } + sig { returns(::Stripe::ListObject) } def refunds; end # Returns a list of application fees you've previously collected. The application fees are returned in sorted order, with the most recent fees appearing first. sig { - params(params: T.any(::Stripe::ApplicationFeeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ApplicationFeeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -4579,7 +4600,7 @@ module Stripe sig { returns(Integer) } def amount; end # Balance transaction that describes the impact on your account balance. - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def balance_transaction; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -4588,7 +4609,7 @@ module Stripe sig { returns(String) } def currency; end # ID of the application fee that was refunded. - sig { returns(T.any(String, Stripe::ApplicationFee)) } + sig { returns(T.any(String, ::Stripe::ApplicationFee)) } def fee; end # Unique identifier for the object. sig { returns(String) } @@ -4614,7 +4635,7 @@ module Stripe # # Related guide: [Store data between page reloads](https://stripe.com/docs/stripe-apps/store-auth-data-custom-objects) class Secret < APIResource - class Scope < Stripe::StripeObject + class Scope < ::Stripe::StripeObject # The secret scope type. sig { returns(String) } def type; end @@ -4657,25 +4678,25 @@ module Stripe def scope; end # Create or replace a secret in the secret store. sig { - params(params: T.any(::Stripe::Apps::SecretCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Apps::Secret) + params(params: T.any(::Stripe::Apps::SecretCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Apps::Secret) } def self.create(params = {}, opts = {}); end # Deletes a secret from the secret store by name and scope. sig { - params(params: T.any(::Stripe::Apps::SecretDeleteWhereParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Apps::Secret) + params(params: T.any(::Stripe::Apps::SecretDeleteWhereParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Apps::Secret) } def self.delete_where(params = {}, opts = {}); end # Finds a secret in the secret store by name and scope. sig { - params(params: T.any(::Stripe::Apps::SecretFindParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Apps::Secret) + params(params: T.any(::Stripe::Apps::SecretFindParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Apps::Secret) } def self.find(params = {}, opts = {}); end # List all secrets stored on the given scope. sig { - params(params: T.any(::Stripe::Apps::SecretListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Apps::SecretListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -4690,8 +4711,8 @@ module Stripe # # Related guide: [Balances and settlement time](https://stripe.com/docs/payments/balances), [Understanding Connect account balances](https://stripe.com/docs/connect/account-balances) class Balance < SingletonAPIResource - class Available < Stripe::StripeObject - class SourceTypes < Stripe::StripeObject + class Available < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). sig { returns(T.nilable(Integer)) } def bank_account; end @@ -4724,8 +4745,8 @@ module Stripe @field_remappings = {} end end - class ConnectReserved < Stripe::StripeObject - class SourceTypes < Stripe::StripeObject + class ConnectReserved < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). sig { returns(T.nilable(Integer)) } def bank_account; end @@ -4758,9 +4779,9 @@ module Stripe @field_remappings = {} end end - class InstantAvailable < Stripe::StripeObject - class NetAvailable < Stripe::StripeObject - class SourceTypes < Stripe::StripeObject + class InstantAvailable < ::Stripe::StripeObject + class NetAvailable < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). sig { returns(T.nilable(Integer)) } def bank_account; end @@ -4793,7 +4814,7 @@ module Stripe @field_remappings = {} end end - class SourceTypes < Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). sig { returns(T.nilable(Integer)) } def bank_account; end @@ -4829,9 +4850,9 @@ module Stripe @field_remappings = {} end end - class Issuing < Stripe::StripeObject - class Available < Stripe::StripeObject - class SourceTypes < Stripe::StripeObject + class Issuing < ::Stripe::StripeObject + class Available < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). sig { returns(T.nilable(Integer)) } def bank_account; end @@ -4874,8 +4895,8 @@ module Stripe @field_remappings = {} end end - class Pending < Stripe::StripeObject - class SourceTypes < Stripe::StripeObject + class Pending < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). sig { returns(T.nilable(Integer)) } def bank_account; end @@ -4908,9 +4929,9 @@ module Stripe @field_remappings = {} end end - class RefundAndDisputePrefunding < Stripe::StripeObject - class Available < Stripe::StripeObject - class SourceTypes < Stripe::StripeObject + class RefundAndDisputePrefunding < ::Stripe::StripeObject + class Available < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). sig { returns(T.nilable(Integer)) } def bank_account; end @@ -4943,8 +4964,8 @@ module Stripe @field_remappings = {} end end - class Pending < Stripe::StripeObject - class SourceTypes < Stripe::StripeObject + class Pending < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). sig { returns(T.nilable(Integer)) } def bank_account; end @@ -5020,9 +5041,9 @@ end module Stripe # Options for customizing account balances and payout settings for a Stripe platform's connected accounts. class BalanceSettings < SingletonAPIResource - class Payments < Stripe::StripeObject - class Payouts < Stripe::StripeObject - class Schedule < Stripe::StripeObject + class Payments < ::Stripe::StripeObject + class Payouts < ::Stripe::StripeObject + class Schedule < ::Stripe::StripeObject # How frequently funds will be paid out. One of `manual` (payouts only created via API call), `daily`, `weekly`, or `monthly`. sig { returns(T.nilable(String)) } def interval; end @@ -5058,7 +5079,7 @@ module Stripe @field_remappings = {} end end - class SettlementTiming < Stripe::StripeObject + class SettlementTiming < ::Stripe::StripeObject # The number of days charge funds are held before becoming available. sig { returns(Integer) } def delay_days; end @@ -5103,7 +5124,7 @@ module Stripe # # Related guide: [Balance transaction types](https://stripe.com/docs/reports/balance-transaction-types) class BalanceTransaction < APIResource - class FeeDetail < Stripe::StripeObject + class FeeDetail < ::Stripe::StripeObject # Amount of the fee, in cents. sig { returns(Integer) } def amount; end @@ -5167,7 +5188,7 @@ module Stripe def reporting_category; end # This transaction relates to the Stripe object. sig { - returns(T.nilable(T.any(String, T.any(Stripe::ApplicationFee, Stripe::Charge, Stripe::ConnectCollectionTransfer, Stripe::CustomerCashBalanceTransaction, Stripe::Dispute, Stripe::ApplicationFeeRefund, Stripe::Issuing::Authorization, Stripe::Issuing::Dispute, Stripe::Issuing::Transaction, Stripe::Payout, Stripe::Refund, Stripe::ReserveTransaction, Stripe::TaxDeductedAtSource, Stripe::Topup, Stripe::Transfer, Stripe::Reversal)))) + returns(T.nilable(T.any(String, T.any(::Stripe::ApplicationFee, ::Stripe::Charge, ::Stripe::ConnectCollectionTransfer, ::Stripe::CustomerCashBalanceTransaction, ::Stripe::Dispute, ::Stripe::ApplicationFeeRefund, ::Stripe::Issuing::Authorization, ::Stripe::Issuing::Dispute, ::Stripe::Issuing::Transaction, ::Stripe::Payout, ::Stripe::Refund, ::Stripe::ReserveTransaction, ::Stripe::TaxDeductedAtSource, ::Stripe::Topup, ::Stripe::Transfer, ::Stripe::Reversal)))) } def source; end # The transaction's net funds status in the Stripe balance, which are either `available` or `pending`. @@ -5180,7 +5201,7 @@ module Stripe # # Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history. sig { - params(params: T.any(::Stripe::BalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::BalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -5190,10 +5211,10 @@ module Stripe module Billing # A billing alert is a resource that notifies you when a certain usage threshold on a meter is crossed. For example, you might create a billing alert to notify you when a certain user made 100 API requests. class Alert < APIResource - class UsageThreshold < Stripe::StripeObject - class Filter < Stripe::StripeObject + class UsageThreshold < ::Stripe::StripeObject + class Filter < ::Stripe::StripeObject # Limit the scope of the alert to this customer ID - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # Attribute for field type sig { returns(String) } @@ -5212,7 +5233,7 @@ module Stripe sig { returns(Integer) } def gte; end # The [Billing Meter](/api/billing/meter) ID whose usage is monitored. - sig { returns(T.any(String, Stripe::Billing::Meter)) } + sig { returns(T.any(String, ::Stripe::Billing::Meter)) } def meter; end # Defines how the alert will behave. sig { returns(String) } @@ -5247,49 +5268,49 @@ module Stripe def usage_threshold; end # Reactivates this alert, allowing it to trigger again. sig { - params(params: T.any(::Stripe::Billing::AlertActivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(params: T.any(::Stripe::Billing::AlertActivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def activate(params = {}, opts = {}); end # Reactivates this alert, allowing it to trigger again. sig { - params(id: String, params: T.any(::Stripe::Billing::AlertActivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(id: String, params: T.any(::Stripe::Billing::AlertActivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def self.activate(id, params = {}, opts = {}); end # Archives this alert, removing it from the list view and APIs. This is non-reversible. sig { - params(params: T.any(::Stripe::Billing::AlertArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(params: T.any(::Stripe::Billing::AlertArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def archive(params = {}, opts = {}); end # Archives this alert, removing it from the list view and APIs. This is non-reversible. sig { - params(id: String, params: T.any(::Stripe::Billing::AlertArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(id: String, params: T.any(::Stripe::Billing::AlertArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def self.archive(id, params = {}, opts = {}); end # Creates a billing alert sig { - params(params: T.any(::Stripe::Billing::AlertCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(params: T.any(::Stripe::Billing::AlertCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def self.create(params = {}, opts = {}); end # Deactivates this alert, preventing it from triggering. sig { - params(params: T.any(::Stripe::Billing::AlertDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(params: T.any(::Stripe::Billing::AlertDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def deactivate(params = {}, opts = {}); end # Deactivates this alert, preventing it from triggering. sig { - params(id: String, params: T.any(::Stripe::Billing::AlertDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(id: String, params: T.any(::Stripe::Billing::AlertDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def self.deactivate(id, params = {}, opts = {}); end # Lists billing active and inactive alerts sig { - params(params: T.any(::Stripe::Billing::AlertListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Billing::AlertListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -5300,9 +5321,9 @@ module Stripe module Billing # Indicates the billing credit balance for billing credits granted to a customer. class CreditBalanceSummary < SingletonAPIResource - class Balance < Stripe::StripeObject - class AvailableBalance < Stripe::StripeObject - class Monetary < Stripe::StripeObject + class Balance < ::Stripe::StripeObject + class AvailableBalance < ::Stripe::StripeObject + class Monetary < ::Stripe::StripeObject # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -5329,8 +5350,8 @@ module Stripe @field_remappings = {} end end - class LedgerBalance < Stripe::StripeObject - class Monetary < Stripe::StripeObject + class LedgerBalance < ::Stripe::StripeObject + class Monetary < ::Stripe::StripeObject # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -5374,7 +5395,7 @@ module Stripe sig { returns(T::Array[Balance]) } def balances; end # The customer the balance is for. - sig { returns(T.any(String, Stripe::Customer)) } + sig { returns(T.any(String, ::Stripe::Customer)) } def customer; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -5390,9 +5411,9 @@ module Stripe module Billing # A credit balance transaction is a resource representing a transaction (either a credit or a debit) against an existing credit grant. class CreditBalanceTransaction < APIResource - class Credit < Stripe::StripeObject - class Amount < Stripe::StripeObject - class Monetary < Stripe::StripeObject + class Credit < ::Stripe::StripeObject + class Amount < ::Stripe::StripeObject + class Monetary < ::Stripe::StripeObject # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -5419,9 +5440,9 @@ module Stripe @field_remappings = {} end end - class CreditsApplicationInvoiceVoided < Stripe::StripeObject + class CreditsApplicationInvoiceVoided < ::Stripe::StripeObject # The invoice to which the reinstated billing credits were originally applied. - sig { returns(T.any(String, Stripe::Invoice)) } + sig { returns(T.any(String, ::Stripe::Invoice)) } def invoice; end # The invoice line item to which the reinstated billing credits were originally applied. sig { returns(String) } @@ -5452,9 +5473,9 @@ module Stripe @field_remappings = {} end end - class Debit < Stripe::StripeObject - class Amount < Stripe::StripeObject - class Monetary < Stripe::StripeObject + class Debit < ::Stripe::StripeObject + class Amount < ::Stripe::StripeObject + class Monetary < ::Stripe::StripeObject # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -5481,9 +5502,9 @@ module Stripe @field_remappings = {} end end - class CreditsApplied < Stripe::StripeObject + class CreditsApplied < ::Stripe::StripeObject # The invoice to which the billing credits were applied. - sig { returns(T.any(String, Stripe::Invoice)) } + sig { returns(T.any(String, ::Stripe::Invoice)) } def invoice; end # The invoice line item to which the billing credits were applied. sig { returns(String) } @@ -5518,7 +5539,7 @@ module Stripe sig { returns(T.nilable(Credit)) } def credit; end # The credit grant associated with this credit balance transaction. - sig { returns(T.any(String, Stripe::Billing::CreditGrant)) } + sig { returns(T.any(String, ::Stripe::Billing::CreditGrant)) } def credit_grant; end # Debit details for this credit balance transaction. Only present if type is `debit`. sig { returns(T.nilable(Debit)) } @@ -5536,14 +5557,14 @@ module Stripe sig { returns(String) } def object; end # ID of the test clock this credit balance transaction belongs to. - sig { returns(T.nilable(T.any(String, Stripe::TestHelpers::TestClock))) } + sig { returns(T.nilable(T.any(String, ::Stripe::TestHelpers::TestClock))) } def test_clock; end # The type of credit balance transaction (credit or debit). sig { returns(T.nilable(String)) } def type; end # Retrieve a list of credit balance transactions. sig { - params(params: T.any(::Stripe::Billing::CreditBalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Billing::CreditBalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -5556,8 +5577,8 @@ module Stripe # # Related guide: [Billing credits](https://docs.stripe.com/billing/subscriptions/usage-based/billing-credits) class CreditGrant < APIResource - class Amount < Stripe::StripeObject - class Monetary < Stripe::StripeObject + class Amount < ::Stripe::StripeObject + class Monetary < ::Stripe::StripeObject # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -5584,9 +5605,9 @@ module Stripe @field_remappings = {} end end - class ApplicabilityConfig < Stripe::StripeObject - class Scope < Stripe::StripeObject - class Price < Stripe::StripeObject + class ApplicabilityConfig < ::Stripe::StripeObject + class Scope < ::Stripe::StripeObject + class Price < ::Stripe::StripeObject # Unique identifier for the object. sig { returns(T.nilable(String)) } def id; end @@ -5633,7 +5654,7 @@ module Stripe sig { returns(Integer) } def created; end # ID of the customer receiving the billing credits. - sig { returns(T.any(String, Stripe::Customer)) } + sig { returns(T.any(String, ::Stripe::Customer)) } def customer; end # The time when the billing credits become effective-when they're eligible for use. sig { returns(T.nilable(Integer)) } @@ -5660,7 +5681,7 @@ module Stripe sig { returns(T.nilable(Integer)) } def priority; end # ID of the test clock this credit grant belongs to. - sig { returns(T.nilable(T.any(String, Stripe::TestHelpers::TestClock))) } + sig { returns(T.nilable(T.any(String, ::Stripe::TestHelpers::TestClock))) } def test_clock; end # Time at which the object was last updated. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -5670,43 +5691,43 @@ module Stripe def voided_at; end # Creates a credit grant. sig { - params(params: T.any(::Stripe::Billing::CreditGrantCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditGrant) + params(params: T.any(::Stripe::Billing::CreditGrantCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditGrant) } def self.create(params = {}, opts = {}); end # Expires a credit grant. sig { - params(params: T.any(::Stripe::Billing::CreditGrantExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditGrant) + params(params: T.any(::Stripe::Billing::CreditGrantExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditGrant) } def expire(params = {}, opts = {}); end # Expires a credit grant. sig { - params(id: String, params: T.any(::Stripe::Billing::CreditGrantExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditGrant) + params(id: String, params: T.any(::Stripe::Billing::CreditGrantExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditGrant) } def self.expire(id, params = {}, opts = {}); end # Retrieve a list of credit grants. sig { - params(params: T.any(::Stripe::Billing::CreditGrantListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Billing::CreditGrantListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates a credit grant. sig { - params(id: String, params: T.any(::Stripe::Billing::CreditGrantUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditGrant) + params(id: String, params: T.any(::Stripe::Billing::CreditGrantUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditGrant) } def self.update(id, params = {}, opts = {}); end # Voids a credit grant. sig { - params(params: T.any(::Stripe::Billing::CreditGrantVoidGrantParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditGrant) + params(params: T.any(::Stripe::Billing::CreditGrantVoidGrantParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditGrant) } def void_grant(params = {}, opts = {}); end # Voids a credit grant. sig { - params(id: String, params: T.any(::Stripe::Billing::CreditGrantVoidGrantParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditGrant) + params(id: String, params: T.any(::Stripe::Billing::CreditGrantVoidGrantParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditGrant) } def self.void_grant(id, params = {}, opts = {}); end end @@ -5717,7 +5738,7 @@ module Stripe module Billing # A billing meter event adjustment is a resource that allows you to cancel a meter event. For example, you might create a billing meter event adjustment to cancel a meter event that was created in error or attached to the wrong customer. class MeterEventAdjustment < APIResource - class Cancel < Stripe::StripeObject + class Cancel < ::Stripe::StripeObject # Unique identifier for the event. sig { returns(T.nilable(String)) } def identifier; end @@ -5748,7 +5769,7 @@ module Stripe def type; end # Creates a billing meter event adjustment. sig { - params(params: T.any(::Stripe::Billing::MeterEventAdjustmentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::MeterEventAdjustment) + params(params: T.any(::Stripe::Billing::MeterEventAdjustmentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::MeterEventAdjustment) } def self.create(params = {}, opts = {}); end end @@ -5782,7 +5803,7 @@ module Stripe def timestamp; end # Creates a billing meter event. sig { - params(params: T.any(::Stripe::Billing::MeterEventCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::MeterEvent) + params(params: T.any(::Stripe::Billing::MeterEventCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::MeterEvent) } def self.create(params = {}, opts = {}); end end @@ -5795,7 +5816,7 @@ module Stripe # # Related guide: [Usage based billing](https://docs.stripe.com/billing/subscriptions/usage-based) class Meter < APIResource - class CustomerMapping < Stripe::StripeObject + class CustomerMapping < ::Stripe::StripeObject # The key in the meter event payload to use for mapping the event to a customer. sig { returns(String) } def event_payload_key; end @@ -5809,7 +5830,7 @@ module Stripe @field_remappings = {} end end - class DefaultAggregation < Stripe::StripeObject + class DefaultAggregation < ::Stripe::StripeObject # Specifies how events are aggregated. sig { returns(String) } def formula; end @@ -5820,7 +5841,7 @@ module Stripe @field_remappings = {} end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # The time the meter was deactivated, if any. Measured in seconds since Unix epoch. sig { returns(T.nilable(Integer)) } def deactivated_at; end @@ -5831,7 +5852,7 @@ module Stripe @field_remappings = {} end end - class ValueSettings < Stripe::StripeObject + class ValueSettings < ::Stripe::StripeObject # The key in the meter event payload to use as the value for this meter. sig { returns(String) } def event_payload_key; end @@ -5883,43 +5904,43 @@ module Stripe def value_settings; end # Creates a billing meter. sig { - params(params: T.any(::Stripe::Billing::MeterCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Meter) + params(params: T.any(::Stripe::Billing::MeterCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) } def self.create(params = {}, opts = {}); end # When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price. sig { - params(params: T.any(::Stripe::Billing::MeterDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Meter) + params(params: T.any(::Stripe::Billing::MeterDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) } def deactivate(params = {}, opts = {}); end # When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price. sig { - params(id: String, params: T.any(::Stripe::Billing::MeterDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Meter) + params(id: String, params: T.any(::Stripe::Billing::MeterDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) } def self.deactivate(id, params = {}, opts = {}); end # Retrieve a list of billing meters. sig { - params(params: T.any(::Stripe::Billing::MeterListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Billing::MeterListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price. sig { - params(params: T.any(::Stripe::Billing::MeterReactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Meter) + params(params: T.any(::Stripe::Billing::MeterReactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) } def reactivate(params = {}, opts = {}); end # When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price. sig { - params(id: String, params: T.any(::Stripe::Billing::MeterReactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Meter) + params(id: String, params: T.any(::Stripe::Billing::MeterReactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) } def self.reactivate(id, params = {}, opts = {}); end # Updates a billing meter. sig { - params(id: String, params: T.any(::Stripe::Billing::MeterUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Meter) + params(id: String, params: T.any(::Stripe::Billing::MeterUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) } def self.update(id, params = {}, opts = {}); end end @@ -5960,9 +5981,9 @@ end # typed: true module Stripe module BillingPortal - # A portal configuration describes the functionality and behavior of a portal session. + # A portal configuration describes the functionality and behavior you embed in a portal session. Related guide: [Configure the customer portal](https://docs.stripe.com/customer-management/configure-portal). class Configuration < APIResource - class BusinessProfile < Stripe::StripeObject + class BusinessProfile < ::Stripe::StripeObject # The messaging shown to customers in the portal. sig { returns(T.nilable(String)) } def headline; end @@ -5979,8 +6000,8 @@ module Stripe @field_remappings = {} end end - class Features < Stripe::StripeObject - class CustomerUpdate < Stripe::StripeObject + class Features < ::Stripe::StripeObject + class CustomerUpdate < ::Stripe::StripeObject # The types of customer updates that are supported. When empty, customers are not updateable. sig { returns(T::Array[String]) } def allowed_updates; end @@ -5994,7 +6015,7 @@ module Stripe @field_remappings = {} end end - class InvoiceHistory < Stripe::StripeObject + class InvoiceHistory < ::Stripe::StripeObject # Whether the feature is enabled. sig { returns(T::Boolean) } def enabled; end @@ -6005,7 +6026,7 @@ module Stripe @field_remappings = {} end end - class PaymentMethodUpdate < Stripe::StripeObject + class PaymentMethodUpdate < ::Stripe::StripeObject # Whether the feature is enabled. sig { returns(T::Boolean) } def enabled; end @@ -6016,8 +6037,8 @@ module Stripe @field_remappings = {} end end - class SubscriptionCancel < Stripe::StripeObject - class CancellationReason < Stripe::StripeObject + class SubscriptionCancel < ::Stripe::StripeObject + class CancellationReason < ::Stripe::StripeObject # Whether the feature is enabled. sig { returns(T::Boolean) } def enabled; end @@ -6050,9 +6071,9 @@ module Stripe @field_remappings = {} end end - class SubscriptionUpdate < Stripe::StripeObject - class Product < Stripe::StripeObject - class AdjustableQuantity < Stripe::StripeObject + class SubscriptionUpdate < ::Stripe::StripeObject + class Product < ::Stripe::StripeObject + class AdjustableQuantity < ::Stripe::StripeObject # If true, the quantity can be adjusted to any non-negative integer. sig { returns(T::Boolean) } def enabled; end @@ -6085,8 +6106,8 @@ module Stripe @field_remappings = {} end end - class ScheduleAtPeriodEnd < Stripe::StripeObject - class Condition < Stripe::StripeObject + class ScheduleAtPeriodEnd < ::Stripe::StripeObject + class Condition < ::Stripe::StripeObject # The type of condition. sig { returns(String) } def type; end @@ -6160,7 +6181,7 @@ module Stripe @field_remappings = {} end end - class LoginPage < Stripe::StripeObject + class LoginPage < ::Stripe::StripeObject # If `true`, a shareable `url` will be generated that will take your customers to a hosted login page for the customer portal. # # If `false`, the previously generated `url`, if any, will be deactivated. @@ -6180,7 +6201,7 @@ module Stripe sig { returns(T::Boolean) } def active; end # ID of the Connect Application that created the configuration. - sig { returns(T.nilable(T.any(String, Stripe::Application))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Application))) } def application; end # Attribute for field business_profile sig { returns(BusinessProfile) } @@ -6220,19 +6241,19 @@ module Stripe def updated; end # Creates a configuration that describes the functionality and behavior of a PortalSession sig { - params(params: T.any(::Stripe::BillingPortal::ConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BillingPortal::Configuration) + params(params: T.any(::Stripe::BillingPortal::ConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::BillingPortal::Configuration) } def self.create(params = {}, opts = {}); end # Returns a list of configurations that describe the functionality of the customer portal. sig { - params(params: T.any(::Stripe::BillingPortal::ConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::BillingPortal::ConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates a configuration that describes the functionality of the customer portal. sig { - params(configuration: String, params: T.any(::Stripe::BillingPortal::ConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BillingPortal::Configuration) + params(configuration: String, params: T.any(::Stripe::BillingPortal::ConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::BillingPortal::Configuration) } def self.update(configuration, params = {}, opts = {}); end end @@ -6256,9 +6277,9 @@ module Stripe # # Related guide: [Customer management](https://docs.stripe.com/customer-management) class Session < APIResource - class Flow < Stripe::StripeObject - class AfterCompletion < Stripe::StripeObject - class HostedConfirmation < Stripe::StripeObject + class Flow < ::Stripe::StripeObject + class AfterCompletion < ::Stripe::StripeObject + class HostedConfirmation < ::Stripe::StripeObject # A custom message to display to the customer after the flow is completed. sig { returns(T.nilable(String)) } def custom_message; end @@ -6269,7 +6290,7 @@ module Stripe @field_remappings = {} end end - class Redirect < Stripe::StripeObject + class Redirect < ::Stripe::StripeObject # The URL the customer will be redirected to after the flow is completed. sig { returns(String) } def return_url; end @@ -6296,9 +6317,9 @@ module Stripe @field_remappings = {} end end - class SubscriptionCancel < Stripe::StripeObject - class Retention < Stripe::StripeObject - class CouponOffer < Stripe::StripeObject + class SubscriptionCancel < ::Stripe::StripeObject + class Retention < ::Stripe::StripeObject + class CouponOffer < ::Stripe::StripeObject # The ID of the coupon to be offered. sig { returns(String) } def coupon; end @@ -6335,7 +6356,7 @@ module Stripe @field_remappings = {} end end - class SubscriptionUpdate < Stripe::StripeObject + class SubscriptionUpdate < ::Stripe::StripeObject # The ID of the subscription to be updated. sig { returns(String) } def subscription; end @@ -6346,8 +6367,8 @@ module Stripe @field_remappings = {} end end - class SubscriptionUpdateConfirm < Stripe::StripeObject - class Discount < Stripe::StripeObject + class SubscriptionUpdateConfirm < ::Stripe::StripeObject + class Discount < ::Stripe::StripeObject # The ID of the coupon to apply to this subscription update. sig { returns(T.nilable(String)) } def coupon; end @@ -6361,7 +6382,7 @@ module Stripe @field_remappings = {} end end - class Item < Stripe::StripeObject + class Item < ::Stripe::StripeObject # The ID of the [subscription item](https://stripe.com/docs/api/subscriptions/object#subscription_object-items-data-id) to be updated. sig { returns(T.nilable(String)) } def id; end @@ -6422,7 +6443,7 @@ module Stripe end end # The configuration used by this session, describing the features available. - sig { returns(T.any(String, Stripe::BillingPortal::Configuration)) } + sig { returns(T.any(String, ::Stripe::BillingPortal::Configuration)) } def configuration; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -6456,7 +6477,7 @@ module Stripe def url; end # Creates a session of the customer portal. sig { - params(params: T.any(::Stripe::BillingPortal::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BillingPortal::Session) + params(params: T.any(::Stripe::BillingPortal::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::BillingPortal::Session) } def self.create(params = {}, opts = {}); end end @@ -6468,8 +6489,8 @@ module Stripe # PaymentIntent confirmation is the most common way to create Charges, but [Account Debits](https://stripe.com/docs/connect/account-debits) may also create Charges. # Some legacy payment flows create Charges directly, which is not recommended for new integrations. class Charge < APIResource - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -6517,7 +6538,7 @@ module Stripe @field_remappings = {} end end - class FraudDetails < Stripe::StripeObject + class FraudDetails < ::Stripe::StripeObject # Assessments from Stripe. If set, the value is `fraudulent`. sig { returns(T.nilable(String)) } def stripe_report; end @@ -6531,8 +6552,8 @@ module Stripe @field_remappings = {} end end - class Level3 < Stripe::StripeObject - class LineItem < Stripe::StripeObject + class Level3 < ::Stripe::StripeObject + class LineItem < ::Stripe::StripeObject # Attribute for field discount_amount sig { returns(T.nilable(Integer)) } def discount_amount; end @@ -6583,8 +6604,8 @@ module Stripe @field_remappings = {} end end - class Outcome < Stripe::StripeObject - class Rule < Stripe::StripeObject + class Outcome < ::Stripe::StripeObject + class Rule < ::Stripe::StripeObject # The action taken on the payment. sig { returns(String) } def action; end @@ -6638,8 +6659,8 @@ module Stripe @field_remappings = {} end end - class PaymentMethodDetails < Stripe::StripeObject - class AchCreditTransfer < Stripe::StripeObject + class PaymentMethodDetails < ::Stripe::StripeObject + class AchCreditTransfer < ::Stripe::StripeObject # Account number to transfer funds to. sig { returns(T.nilable(String)) } def account_number; end @@ -6659,7 +6680,7 @@ module Stripe @field_remappings = {} end end - class AchDebit < Stripe::StripeObject + class AchDebit < ::Stripe::StripeObject # Type of entity that holds the account. This can be either `individual` or `company`. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -6685,7 +6706,7 @@ module Stripe @field_remappings = {} end end - class AcssDebit < Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject # Name of the bank associated with the bank account. sig { returns(T.nilable(String)) } def bank_name; end @@ -6711,7 +6732,7 @@ module Stripe @field_remappings = {} end end - class Affirm < Stripe::StripeObject + class Affirm < ::Stripe::StripeObject # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. sig { returns(T.nilable(String)) } def location; end @@ -6728,7 +6749,7 @@ module Stripe @field_remappings = {} end end - class AfterpayClearpay < Stripe::StripeObject + class AfterpayClearpay < ::Stripe::StripeObject # The Afterpay order ID associated with this payment intent. sig { returns(T.nilable(String)) } def order_id; end @@ -6742,7 +6763,7 @@ module Stripe @field_remappings = {} end end - class Alipay < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same. sig { returns(T.nilable(String)) } def buyer_id; end @@ -6759,8 +6780,8 @@ module Stripe @field_remappings = {} end end - class Alma < Stripe::StripeObject - class Installments < Stripe::StripeObject + class Alma < ::Stripe::StripeObject + class Installments < ::Stripe::StripeObject # The number of installments. sig { returns(Integer) } def count; end @@ -6784,9 +6805,9 @@ module Stripe @field_remappings = {} end end - class AmazonPay < Stripe::StripeObject - class Funding < Stripe::StripeObject - class Card < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject + class Funding < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. sig { returns(T.nilable(String)) } def brand; end @@ -6838,7 +6859,7 @@ module Stripe @field_remappings = {} end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject # Bank-State-Branch number of the bank account. sig { returns(T.nilable(String)) } def bsb_number; end @@ -6858,7 +6879,7 @@ module Stripe @field_remappings = {} end end - class BacsDebit < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. sig { returns(T.nilable(String)) } def fingerprint; end @@ -6878,7 +6899,7 @@ module Stripe @field_remappings = {} end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject # Bank code of bank associated with the bank account. sig { returns(T.nilable(String)) } def bank_code; end @@ -6889,10 +6910,10 @@ module Stripe sig { returns(T.nilable(String)) } def bic; end # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def generated_sepa_debit; end # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def generated_sepa_debit_mandate; end # Last four characters of the IBAN. sig { returns(T.nilable(String)) } @@ -6912,7 +6933,7 @@ module Stripe @field_remappings = {} end end - class Billie < Stripe::StripeObject + class Billie < ::Stripe::StripeObject # The Billie transaction ID associated with this payment. sig { returns(T.nilable(String)) } def transaction_id; end @@ -6923,7 +6944,7 @@ module Stripe @field_remappings = {} end end - class Blik < Stripe::StripeObject + class Blik < ::Stripe::StripeObject # A unique and immutable identifier assigned by BLIK to every buyer. sig { returns(T.nilable(String)) } def buyer_id; end @@ -6934,7 +6955,7 @@ module Stripe @field_remappings = {} end end - class Boleto < Stripe::StripeObject + class Boleto < ::Stripe::StripeObject # The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses consumers) sig { returns(String) } def tax_id; end @@ -6945,8 +6966,8 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject - class Checks < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Checks < ::Stripe::StripeObject # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. sig { returns(T.nilable(String)) } def address_line1_check; end @@ -6963,7 +6984,7 @@ module Stripe @field_remappings = {} end end - class ExtendedAuthorization < Stripe::StripeObject + class ExtendedAuthorization < ::Stripe::StripeObject # Indicates whether or not the capture window is extended beyond the standard authorization. sig { returns(String) } def status; end @@ -6974,7 +6995,7 @@ module Stripe @field_remappings = {} end end - class IncrementalAuthorization < Stripe::StripeObject + class IncrementalAuthorization < ::Stripe::StripeObject # Indicates whether or not the incremental authorization feature is supported. sig { returns(String) } def status; end @@ -6985,8 +7006,8 @@ module Stripe @field_remappings = {} end end - class Installments < Stripe::StripeObject - class Plan < Stripe::StripeObject + class Installments < ::Stripe::StripeObject + class Plan < ::Stripe::StripeObject # For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card. sig { returns(T.nilable(Integer)) } def count; end @@ -7014,7 +7035,7 @@ module Stripe @field_remappings = {} end end - class Multicapture < Stripe::StripeObject + class Multicapture < ::Stripe::StripeObject # Indicates whether or not multiple captures are supported. sig { returns(String) } def status; end @@ -7025,7 +7046,7 @@ module Stripe @field_remappings = {} end end - class NetworkToken < Stripe::StripeObject + class NetworkToken < ::Stripe::StripeObject # Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction. sig { returns(T::Boolean) } def used; end @@ -7036,7 +7057,7 @@ module Stripe @field_remappings = {} end end - class Overcapture < Stripe::StripeObject + class Overcapture < ::Stripe::StripeObject # The maximum amount that can be captured. sig { returns(Integer) } def maximum_amount_capturable; end @@ -7050,7 +7071,7 @@ module Stripe @field_remappings = {} end end - class ThreeDSecure < Stripe::StripeObject + class ThreeDSecure < ::Stripe::StripeObject # For authenticated transactions: how the customer was authenticated by # the issuing bank. sig { returns(T.nilable(String)) } @@ -7087,8 +7108,8 @@ module Stripe @field_remappings = {} end end - class Wallet < Stripe::StripeObject - class AmexExpressCheckout < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject + class AmexExpressCheckout < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -7096,7 +7117,7 @@ module Stripe @field_remappings = {} end end - class ApplePay < Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -7104,7 +7125,7 @@ module Stripe @field_remappings = {} end end - class GooglePay < Stripe::StripeObject + class GooglePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -7112,7 +7133,7 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -7120,8 +7141,8 @@ module Stripe @field_remappings = {} end end - class Masterpass < Stripe::StripeObject - class BillingAddress < Stripe::StripeObject + class Masterpass < ::Stripe::StripeObject + class BillingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -7147,7 +7168,7 @@ module Stripe @field_remappings = {} end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -7195,7 +7216,7 @@ module Stripe @field_remappings = {} end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -7203,8 +7224,8 @@ module Stripe @field_remappings = {} end end - class VisaCheckout < Stripe::StripeObject - class BillingAddress < Stripe::StripeObject + class VisaCheckout < ::Stripe::StripeObject + class BillingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -7230,7 +7251,7 @@ module Stripe @field_remappings = {} end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -7422,8 +7443,8 @@ module Stripe @field_remappings = {} end end - class CardPresent < Stripe::StripeObject - class Offline < Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject + class Offline < ::Stripe::StripeObject # Time at which the payment was collected while offline sig { returns(T.nilable(Integer)) } def stored_at; end @@ -7437,7 +7458,7 @@ module Stripe @field_remappings = {} end end - class Receipt < Stripe::StripeObject + class Receipt < ::Stripe::StripeObject # The type of account being debited or credited sig { returns(T.nilable(String)) } def account_type; end @@ -7472,7 +7493,7 @@ module Stripe @field_remappings = {} end end - class Wallet < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. sig { returns(String) } def type; end @@ -7567,7 +7588,7 @@ module Stripe @field_remappings = {} end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject # A unique and immutable identifier assigned by Cash App to every buyer. sig { returns(T.nilable(String)) } def buyer_id; end @@ -7584,7 +7605,7 @@ module Stripe @field_remappings = {} end end - class Crypto < Stripe::StripeObject + class Crypto < ::Stripe::StripeObject # The wallet address of the customer. sig { returns(T.nilable(String)) } def buyer_address; end @@ -7604,7 +7625,7 @@ module Stripe @field_remappings = {} end end - class CustomerBalance < Stripe::StripeObject + class CustomerBalance < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -7612,7 +7633,7 @@ module Stripe @field_remappings = {} end end - class Eps < Stripe::StripeObject + class Eps < ::Stripe::StripeObject # The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. sig { returns(T.nilable(String)) } def bank; end @@ -7628,7 +7649,7 @@ module Stripe @field_remappings = {} end end - class Fpx < Stripe::StripeObject + class Fpx < ::Stripe::StripeObject # Account holder type, if provided. Can be one of `individual` or `company`. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -7645,7 +7666,7 @@ module Stripe @field_remappings = {} end end - class Giropay < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject # Bank code of bank associated with the bank account. sig { returns(T.nilable(String)) } def bank_code; end @@ -7667,7 +7688,7 @@ module Stripe @field_remappings = {} end end - class Grabpay < Stripe::StripeObject + class Grabpay < ::Stripe::StripeObject # Unique transaction id generated by GrabPay sig { returns(T.nilable(String)) } def transaction_id; end @@ -7678,7 +7699,7 @@ module Stripe @field_remappings = {} end end - class Ideal < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject # The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. sig { returns(T.nilable(String)) } def bank; end @@ -7686,10 +7707,10 @@ module Stripe sig { returns(T.nilable(String)) } def bic; end # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def generated_sepa_debit; end # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def generated_sepa_debit_mandate; end # Last four characters of the IBAN. sig { returns(T.nilable(String)) } @@ -7705,8 +7726,8 @@ module Stripe @field_remappings = {} end end - class InteracPresent < Stripe::StripeObject - class Receipt < Stripe::StripeObject + class InteracPresent < ::Stripe::StripeObject + class Receipt < ::Stripe::StripeObject # The type of account being debited or credited sig { returns(T.nilable(String)) } def account_type; end @@ -7804,7 +7825,7 @@ module Stripe @field_remappings = {} end end - class KakaoPay < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject # A unique identifier for the buyer as determined by the local payment processor. sig { returns(T.nilable(String)) } def buyer_id; end @@ -7818,9 +7839,9 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject - class PayerDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject + class PayerDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # The payer address country sig { returns(T.nilable(String)) } def country; end @@ -7859,8 +7880,8 @@ module Stripe @field_remappings = {} end end - class Konbini < Stripe::StripeObject - class Store < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject + class Store < ::Stripe::StripeObject # The name of the convenience store chain where the payment was completed. sig { returns(T.nilable(String)) } def chain; end @@ -7881,7 +7902,7 @@ module Stripe @field_remappings = {} end end - class KrCard < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject # The local credit or debit card brand. sig { returns(T.nilable(String)) } def brand; end @@ -7901,7 +7922,7 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject # Two-letter ISO code representing the funding source country beneath the Link payment. # You could use this attribute to get a sense of international fees. sig { returns(T.nilable(String)) } @@ -7913,7 +7934,7 @@ module Stripe @field_remappings = {} end end - class MbWay < Stripe::StripeObject + class MbWay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -7921,8 +7942,8 @@ module Stripe @field_remappings = {} end end - class Mobilepay < Stripe::StripeObject - class Card < Stripe::StripeObject + class Mobilepay < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject # Brand of the card used in the transaction sig { returns(T.nilable(String)) } def brand; end @@ -7955,7 +7976,7 @@ module Stripe @field_remappings = {} end end - class Multibanco < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject # Entity number associated with this Multibanco payment. sig { returns(T.nilable(String)) } def entity; end @@ -7969,7 +7990,7 @@ module Stripe @field_remappings = {} end end - class NaverPay < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject # A unique identifier for the buyer as determined by the local payment processor. sig { returns(T.nilable(String)) } def buyer_id; end @@ -7983,7 +8004,7 @@ module Stripe @field_remappings = {} end end - class NzBankAccount < Stripe::StripeObject + class NzBankAccount < ::Stripe::StripeObject # The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -8009,7 +8030,7 @@ module Stripe @field_remappings = {} end end - class Oxxo < Stripe::StripeObject + class Oxxo < ::Stripe::StripeObject # OXXO reference number sig { returns(T.nilable(String)) } def number; end @@ -8020,7 +8041,7 @@ module Stripe @field_remappings = {} end end - class P24 < Stripe::StripeObject + class P24 < ::Stripe::StripeObject # The customer's bank. Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `velobank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`. sig { returns(T.nilable(String)) } def bank; end @@ -8039,7 +8060,7 @@ module Stripe @field_remappings = {} end end - class PayByBank < Stripe::StripeObject + class PayByBank < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -8047,7 +8068,7 @@ module Stripe @field_remappings = {} end end - class Payco < Stripe::StripeObject + class Payco < ::Stripe::StripeObject # A unique identifier for the buyer as determined by the local payment processor. sig { returns(T.nilable(String)) } def buyer_id; end @@ -8061,7 +8082,7 @@ module Stripe @field_remappings = {} end end - class Paynow < Stripe::StripeObject + class Paynow < ::Stripe::StripeObject # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. sig { returns(T.nilable(String)) } def location; end @@ -8078,8 +8099,8 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject - class SellerProtection < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject + class SellerProtection < ::Stripe::StripeObject # An array of conditions that are covered for the transaction, if applicable. sig { returns(T.nilable(T::Array[String])) } def dispute_categories; end @@ -8120,7 +8141,7 @@ module Stripe @field_remappings = {} end end - class Pix < Stripe::StripeObject + class Pix < ::Stripe::StripeObject # Unique transaction id generated by BCB sig { returns(T.nilable(String)) } def bank_transaction_id; end @@ -8131,7 +8152,7 @@ module Stripe @field_remappings = {} end end - class Promptpay < Stripe::StripeObject + class Promptpay < ::Stripe::StripeObject # Bill reference generated by PromptPay sig { returns(T.nilable(String)) } def reference; end @@ -8142,9 +8163,9 @@ module Stripe @field_remappings = {} end end - class RevolutPay < Stripe::StripeObject - class Funding < Stripe::StripeObject - class Card < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject + class Funding < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. sig { returns(T.nilable(String)) } def brand; end @@ -8196,7 +8217,7 @@ module Stripe @field_remappings = {} end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject # A unique identifier for the buyer as determined by the local payment processor. sig { returns(T.nilable(String)) } def buyer_id; end @@ -8210,7 +8231,7 @@ module Stripe @field_remappings = {} end end - class Satispay < Stripe::StripeObject + class Satispay < ::Stripe::StripeObject # The Satispay transaction ID associated with this payment. sig { returns(T.nilable(String)) } def transaction_id; end @@ -8221,7 +8242,7 @@ module Stripe @field_remappings = {} end end - class SepaCreditTransfer < Stripe::StripeObject + class SepaCreditTransfer < ::Stripe::StripeObject # Name of the bank associated with the bank account. sig { returns(T.nilable(String)) } def bank_name; end @@ -8238,7 +8259,7 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject # Bank code of bank associated with the bank account. sig { returns(T.nilable(String)) } def bank_code; end @@ -8264,7 +8285,7 @@ module Stripe @field_remappings = {} end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject # Bank code of bank associated with the bank account. sig { returns(T.nilable(String)) } def bank_code; end @@ -8278,10 +8299,10 @@ module Stripe sig { returns(T.nilable(String)) } def country; end # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def generated_sepa_debit; end # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def generated_sepa_debit_mandate; end # Last four characters of the IBAN. sig { returns(T.nilable(String)) } @@ -8301,7 +8322,7 @@ module Stripe @field_remappings = {} end end - class StripeAccount < Stripe::StripeObject + class StripeAccount < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -8309,7 +8330,7 @@ module Stripe @field_remappings = {} end end - class Swish < Stripe::StripeObject + class Swish < ::Stripe::StripeObject # Uniquely identifies the payer's Swish account. You can use this attribute to check whether two Swish transactions were paid for by the same payer sig { returns(T.nilable(String)) } def fingerprint; end @@ -8326,7 +8347,7 @@ module Stripe @field_remappings = {} end end - class Twint < Stripe::StripeObject + class Twint < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -8334,7 +8355,7 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -8351,7 +8372,7 @@ module Stripe sig { returns(T.nilable(String)) } def last4; end # ID of the mandate used to make this payment. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def mandate; end # Reference number to locate ACH payments with customer's bank. sig { returns(T.nilable(String)) } @@ -8366,7 +8387,7 @@ module Stripe @field_remappings = {} end end - class Wechat < Stripe::StripeObject + class Wechat < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -8374,7 +8395,7 @@ module Stripe @field_remappings = {} end end - class WechatPay < Stripe::StripeObject + class WechatPay < ::Stripe::StripeObject # Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same. sig { returns(T.nilable(String)) } def fingerprint; end @@ -8394,7 +8415,7 @@ module Stripe @field_remappings = {} end end - class Zip < Stripe::StripeObject + class Zip < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -8639,7 +8660,7 @@ module Stripe @field_remappings = {} end end - class PresentmentDetails < Stripe::StripeObject + class PresentmentDetails < ::Stripe::StripeObject # Amount intended to be collected by this payment, denominated in `presentment_currency`. sig { returns(Integer) } def presentment_amount; end @@ -8653,7 +8674,7 @@ module Stripe @field_remappings = {} end end - class RadarOptions < Stripe::StripeObject + class RadarOptions < ::Stripe::StripeObject # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -8664,8 +8685,8 @@ module Stripe @field_remappings = {} end end - class Shipping < Stripe::StripeObject - class Address < Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -8713,12 +8734,12 @@ module Stripe @field_remappings = {} end end - class TransferData < Stripe::StripeObject + class TransferData < ::Stripe::StripeObject # The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account. sig { returns(T.nilable(Integer)) } def amount; end # ID of an existing, connected Stripe account to transfer funds to if `transfer_data` was specified in the charge request. - sig { returns(T.any(String, Stripe::Account)) } + sig { returns(T.any(String, ::Stripe::Account)) } def destination; end def self.inner_class_types @inner_class_types = {} @@ -8737,10 +8758,10 @@ module Stripe sig { returns(Integer) } def amount_refunded; end # ID of the Connect application that created the charge. - sig { returns(T.nilable(T.any(String, Stripe::Application))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Application))) } def application; end # The application fee (if any) for the charge. [See the Connect documentation](https://stripe.com/docs/connect/direct-charges#collect-fees) for details. - sig { returns(T.nilable(T.any(String, Stripe::ApplicationFee))) } + sig { returns(T.nilable(T.any(String, ::Stripe::ApplicationFee))) } def application_fee; end # The amount of the application fee (if any) requested for the charge. [See the Connect documentation](https://stripe.com/docs/connect/direct-charges#collect-fees) for details. sig { returns(T.nilable(Integer)) } @@ -8749,7 +8770,7 @@ module Stripe sig { returns(T.nilable(String)) } def authorization_code; end # ID of the balance transaction that describes the impact of this charge on your account balance (not including refunds or disputes). - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def balance_transaction; end # Attribute for field billing_details sig { returns(BillingDetails) } @@ -8767,7 +8788,7 @@ module Stripe sig { returns(String) } def currency; end # ID of the customer this charge is for if one exists. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } @@ -8776,7 +8797,7 @@ module Stripe sig { returns(T::Boolean) } def disputed; end # ID of the balance transaction that describes the reversal of the balance on your account due to payment failure. - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def failure_balance_transaction; end # Error code explaining reason for charge failure if available (see [the errors section](https://stripe.com/docs/error-codes) for a list of codes). sig { returns(T.nilable(String)) } @@ -8803,7 +8824,7 @@ module Stripe sig { returns(String) } def object; end # The account (if any) the charge was made on behalf of without triggering an automatic transfer. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers) for details. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def on_behalf_of; end # Details about whether the payment was accepted, and why. See [understanding declines](https://stripe.com/docs/declines) for details. sig { returns(T.nilable(Outcome)) } @@ -8812,7 +8833,7 @@ module Stripe sig { returns(T::Boolean) } def paid; end # ID of the PaymentIntent associated with this charge, if one exists. - sig { returns(T.nilable(T.any(String, Stripe::PaymentIntent))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntent))) } def payment_intent; end # ID of the payment method used in this charge. sig { returns(T.nilable(String)) } @@ -8839,21 +8860,21 @@ module Stripe sig { returns(T::Boolean) } def refunded; end # A list of refunds that have been applied to the charge. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def refunds; end # ID of the review associated with this charge if one exists. - sig { returns(T.nilable(T.any(String, Stripe::Review))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Review))) } def review; end # Shipping information for the charge. sig { returns(T.nilable(Shipping)) } def shipping; end # This is a legacy field that will be removed in the future. It contains the Source, Card, or BankAccount object used for the charge. For details about the payment method used for this charge, refer to `payment_method` or `payment_method_details` instead. sig { - returns(T.nilable(T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source))) + returns(T.nilable(T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source))) } def source; end # The transfer ID which created this charge. Only present if the charge came from another Stripe account. [See the Connect documentation](https://docs.stripe.com/connect/destination-charges) for details. - sig { returns(T.nilable(T.any(String, Stripe::Transfer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Transfer))) } def source_transfer; end # For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). # @@ -8867,7 +8888,7 @@ module Stripe sig { returns(String) } def status; end # ID of the transfer to the `destination` account (only applicable if the charge was created using the `destination` parameter). - sig { returns(T.nilable(T.any(String, Stripe::Transfer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Transfer))) } def transfer; end # An optional dictionary including the account to automatically transfer to as part of a destination charge. [See the Connect documentation](https://stripe.com/docs/connect/destination-charges) for details. sig { returns(T.nilable(TransferData)) } @@ -8881,7 +8902,7 @@ module Stripe # # Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture). sig { - params(params: T.any(::Stripe::ChargeCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Charge) + params(params: T.any(::Stripe::ChargeCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Charge) } def capture(params = {}, opts = {}); end @@ -8891,7 +8912,7 @@ module Stripe # # Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture). sig { - params(charge: String, params: T.any(::Stripe::ChargeCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Charge) + params(charge: String, params: T.any(::Stripe::ChargeCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Charge) } def self.capture(charge, params = {}, opts = {}); end @@ -8899,29 +8920,29 @@ module Stripe # to initiate a new payment instead. Confirmation of the PaymentIntent creates the Charge # object used to request payment. sig { - params(params: T.any(::Stripe::ChargeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Charge) + params(params: T.any(::Stripe::ChargeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Charge) } def self.create(params = {}, opts = {}); end # Returns a list of charges you've previously created. The charges are returned in sorted order, with the most recent charges appearing first. sig { - params(params: T.any(::Stripe::ChargeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ChargeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::ChargeSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::ChargeSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def self.search(params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::ChargeSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::ChargeSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(::Stripe::SearchResultObject) } def self.search_auto_paging_each(params = {}, opts = {}, &blk); end # Updates the specified charge by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(charge: String, params: T.any(::Stripe::ChargeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Charge) + params(charge: String, params: T.any(::Stripe::ChargeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Charge) } def self.update(charge, params = {}, opts = {}); end end @@ -8944,7 +8965,7 @@ module Stripe # # Related guide: [Checkout quickstart](https://stripe.com/docs/checkout/quickstart) class Session < APIResource - class AdaptivePricing < Stripe::StripeObject + class AdaptivePricing < ::Stripe::StripeObject # If enabled, Adaptive Pricing is available on [eligible sessions](https://docs.stripe.com/payments/currencies/localize-prices/adaptive-pricing?payment-ui=stripe-hosted#restrictions). sig { returns(T::Boolean) } def enabled; end @@ -8955,8 +8976,8 @@ module Stripe @field_remappings = {} end end - class AfterExpiration < Stripe::StripeObject - class Recovery < Stripe::StripeObject + class AfterExpiration < ::Stripe::StripeObject + class Recovery < ::Stripe::StripeObject # Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults to `false` sig { returns(T::Boolean) } def allow_promotion_codes; end @@ -8988,10 +9009,10 @@ module Stripe @field_remappings = {} end end - class AutomaticTax < Stripe::StripeObject - class Liability < Stripe::StripeObject + class AutomaticTax < ::Stripe::StripeObject + class Liability < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -9022,8 +9043,8 @@ module Stripe @field_remappings = {} end end - class BrandingSettings < Stripe::StripeObject - class Icon < Stripe::StripeObject + class BrandingSettings < ::Stripe::StripeObject + class Icon < ::Stripe::StripeObject # The ID of a [File upload](https://stripe.com/docs/api/files) representing the icon. Purpose must be `business_icon`. Required if `type` is `file` and disallowed otherwise. sig { returns(T.nilable(String)) } def file; end @@ -9040,7 +9061,7 @@ module Stripe @field_remappings = {} end end - class Logo < Stripe::StripeObject + class Logo < ::Stripe::StripeObject # The ID of a [File upload](https://stripe.com/docs/api/files) representing the logo. Purpose must be `business_logo`. Required if `type` is `file` and disallowed otherwise. sig { returns(T.nilable(String)) } def file; end @@ -9085,9 +9106,9 @@ module Stripe @field_remappings = {} end end - class CollectedInformation < Stripe::StripeObject - class ShippingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class CollectedInformation < ::Stripe::StripeObject + class ShippingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -9142,7 +9163,7 @@ module Stripe @field_remappings = {} end end - class Consent < Stripe::StripeObject + class Consent < ::Stripe::StripeObject # If `opt_in`, the customer consents to receiving promotional communications # from the merchant about this Checkout Session. sig { returns(T.nilable(String)) } @@ -9157,8 +9178,8 @@ module Stripe @field_remappings = {} end end - class ConsentCollection < Stripe::StripeObject - class PaymentMethodReuseAgreement < Stripe::StripeObject + class ConsentCollection < ::Stripe::StripeObject + class PaymentMethodReuseAgreement < ::Stripe::StripeObject # Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's defaults will be used. # # When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI. @@ -9189,7 +9210,7 @@ module Stripe @field_remappings = {} end end - class CurrencyConversion < Stripe::StripeObject + class CurrencyConversion < ::Stripe::StripeObject # Total of all items in source currency before discounts or taxes are applied. sig { returns(Integer) } def amount_subtotal; end @@ -9209,9 +9230,9 @@ module Stripe @field_remappings = {} end end - class CustomField < Stripe::StripeObject - class Dropdown < Stripe::StripeObject - class Option < Stripe::StripeObject + class CustomField < ::Stripe::StripeObject + class Dropdown < ::Stripe::StripeObject + class Option < ::Stripe::StripeObject # The label for the option, displayed to the customer. Up to 100 characters. sig { returns(String) } def label; end @@ -9241,7 +9262,7 @@ module Stripe @field_remappings = {} end end - class Label < Stripe::StripeObject + class Label < ::Stripe::StripeObject # Custom text for the label, displayed to the customer. Up to 50 characters. sig { returns(T.nilable(String)) } def custom; end @@ -9255,7 +9276,7 @@ module Stripe @field_remappings = {} end end - class Numeric < Stripe::StripeObject + class Numeric < ::Stripe::StripeObject # The value that will pre-fill the field on the payment page. sig { returns(T.nilable(String)) } def default_value; end @@ -9275,7 +9296,7 @@ module Stripe @field_remappings = {} end end - class Text < Stripe::StripeObject + class Text < ::Stripe::StripeObject # The value that will pre-fill the field on the payment page. sig { returns(T.nilable(String)) } def default_value; end @@ -9323,8 +9344,8 @@ module Stripe @field_remappings = {} end end - class CustomText < Stripe::StripeObject - class AfterSubmit < Stripe::StripeObject + class CustomText < ::Stripe::StripeObject + class AfterSubmit < ::Stripe::StripeObject # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -9335,7 +9356,7 @@ module Stripe @field_remappings = {} end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -9346,7 +9367,7 @@ module Stripe @field_remappings = {} end end - class Submit < Stripe::StripeObject + class Submit < ::Stripe::StripeObject # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -9357,7 +9378,7 @@ module Stripe @field_remappings = {} end end - class TermsOfServiceAcceptance < Stripe::StripeObject + class TermsOfServiceAcceptance < ::Stripe::StripeObject # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -9392,8 +9413,8 @@ module Stripe @field_remappings = {} end end - class CustomerDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class CustomerDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -9419,7 +9440,7 @@ module Stripe @field_remappings = {} end end - class TaxId < Stripe::StripeObject + class TaxId < ::Stripe::StripeObject # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` sig { returns(String) } def type; end @@ -9465,12 +9486,12 @@ module Stripe @field_remappings = {} end end - class Discount < Stripe::StripeObject + class Discount < ::Stripe::StripeObject # Coupon attached to the Checkout Session. - sig { returns(T.nilable(T.any(String, Stripe::Coupon))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Coupon))) } def coupon; end # Promotion code attached to the Checkout Session. - sig { returns(T.nilable(T.any(String, Stripe::PromotionCode))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PromotionCode))) } def promotion_code; end def self.inner_class_types @inner_class_types = {} @@ -9479,9 +9500,9 @@ module Stripe @field_remappings = {} end end - class InvoiceCreation < Stripe::StripeObject - class InvoiceData < Stripe::StripeObject - class CustomField < Stripe::StripeObject + class InvoiceCreation < ::Stripe::StripeObject + class InvoiceData < ::Stripe::StripeObject + class CustomField < ::Stripe::StripeObject # The name of the custom field. sig { returns(String) } def name; end @@ -9495,9 +9516,9 @@ module Stripe @field_remappings = {} end end - class Issuer < Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -9509,7 +9530,7 @@ module Stripe @field_remappings = {} end end - class RenderingOptions < Stripe::StripeObject + class RenderingOptions < ::Stripe::StripeObject # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. sig { returns(T.nilable(String)) } def amount_tax_display; end @@ -9524,7 +9545,7 @@ module Stripe end end # The account tax IDs associated with the invoice. - sig { returns(T.nilable(T::Array[T.any(String, Stripe::TaxId)])) } + sig { returns(T.nilable(T::Array[T.any(String, ::Stripe::TaxId)])) } def account_tax_ids; end # Custom fields displayed on the invoice. sig { returns(T.nilable(T::Array[CustomField])) } @@ -9568,8 +9589,8 @@ module Stripe @field_remappings = {} end end - class NameCollection < Stripe::StripeObject - class Business < Stripe::StripeObject + class NameCollection < ::Stripe::StripeObject + class Business < ::Stripe::StripeObject # Indicates whether business name collection is enabled for the session sig { returns(T::Boolean) } def enabled; end @@ -9583,7 +9604,7 @@ module Stripe @field_remappings = {} end end - class Individual < Stripe::StripeObject + class Individual < ::Stripe::StripeObject # Indicates whether individual name collection is enabled for the session sig { returns(T::Boolean) } def enabled; end @@ -9610,8 +9631,8 @@ module Stripe @field_remappings = {} end end - class OptionalItem < Stripe::StripeObject - class AdjustableQuantity < Stripe::StripeObject + class OptionalItem < ::Stripe::StripeObject + class AdjustableQuantity < ::Stripe::StripeObject # Set to true if the quantity can be adjusted to any non-negative integer. sig { returns(T::Boolean) } def enabled; end @@ -9644,7 +9665,7 @@ module Stripe @field_remappings = {} end end - class PaymentMethodConfigurationDetails < Stripe::StripeObject + class PaymentMethodConfigurationDetails < ::Stripe::StripeObject # ID of the payment method configuration used. sig { returns(String) } def id; end @@ -9658,9 +9679,9 @@ module Stripe @field_remappings = {} end end - class PaymentMethodOptions < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class PaymentMethodOptions < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # A URL for custom mandate text sig { returns(T.nilable(String)) } def custom_mandate_url; end @@ -9711,7 +9732,7 @@ module Stripe @field_remappings = {} end end - class Affirm < Stripe::StripeObject + class Affirm < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -9731,7 +9752,7 @@ module Stripe @field_remappings = {} end end - class AfterpayClearpay < Stripe::StripeObject + class AfterpayClearpay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -9751,7 +9772,7 @@ module Stripe @field_remappings = {} end end - class Alipay < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -9768,7 +9789,7 @@ module Stripe @field_remappings = {} end end - class Alma < Stripe::StripeObject + class Alma < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -9779,7 +9800,7 @@ module Stripe @field_remappings = {} end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -9799,7 +9820,7 @@ module Stripe @field_remappings = {} end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -9819,8 +9840,8 @@ module Stripe @field_remappings = {} end end - class BacsDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -9853,7 +9874,7 @@ module Stripe @field_remappings = {} end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -9870,7 +9891,7 @@ module Stripe @field_remappings = {} end end - class Billie < Stripe::StripeObject + class Billie < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -9881,7 +9902,7 @@ module Stripe @field_remappings = {} end end - class Boleto < Stripe::StripeObject + class Boleto < ::Stripe::StripeObject # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto voucher will expire on Wednesday at 23:59 America/Sao_Paulo time. sig { returns(Integer) } def expires_after_days; end @@ -9901,8 +9922,8 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject - class Installments < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Installments < ::Stripe::StripeObject # Indicates if installments are enabled sig { returns(T.nilable(T::Boolean)) } def enabled; end @@ -9913,7 +9934,7 @@ module Stripe @field_remappings = {} end end - class Restrictions < Stripe::StripeObject + class Restrictions < ::Stripe::StripeObject # Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. sig { returns(T.nilable(T::Array[String])) } def brands_blocked; end @@ -9970,7 +9991,7 @@ module Stripe @field_remappings = {} end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -9990,9 +10011,9 @@ module Stripe @field_remappings = {} end end - class CustomerBalance < Stripe::StripeObject - class BankTransfer < Stripe::StripeObject - class EuBankTransfer < Stripe::StripeObject + class CustomerBalance < ::Stripe::StripeObject + class BankTransfer < ::Stripe::StripeObject + class EuBankTransfer < ::Stripe::StripeObject # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -10043,7 +10064,7 @@ module Stripe @field_remappings = {} end end - class Eps < Stripe::StripeObject + class Eps < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -10060,7 +10081,7 @@ module Stripe @field_remappings = {} end end - class Fpx < Stripe::StripeObject + class Fpx < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -10077,7 +10098,7 @@ module Stripe @field_remappings = {} end end - class Giropay < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -10094,7 +10115,7 @@ module Stripe @field_remappings = {} end end - class Grabpay < Stripe::StripeObject + class Grabpay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -10111,7 +10132,7 @@ module Stripe @field_remappings = {} end end - class Ideal < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -10128,7 +10149,7 @@ module Stripe @field_remappings = {} end end - class KakaoPay < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -10148,7 +10169,7 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -10168,7 +10189,7 @@ module Stripe @field_remappings = {} end end - class Konbini < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject # The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. sig { returns(T.nilable(Integer)) } def expires_after_days; end @@ -10188,7 +10209,7 @@ module Stripe @field_remappings = {} end end - class KrCard < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -10208,7 +10229,7 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -10228,7 +10249,7 @@ module Stripe @field_remappings = {} end end - class Mobilepay < Stripe::StripeObject + class Mobilepay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -10248,7 +10269,7 @@ module Stripe @field_remappings = {} end end - class Multibanco < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -10265,7 +10286,7 @@ module Stripe @field_remappings = {} end end - class NaverPay < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -10285,7 +10306,7 @@ module Stripe @field_remappings = {} end end - class Oxxo < Stripe::StripeObject + class Oxxo < ::Stripe::StripeObject # The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. sig { returns(Integer) } def expires_after_days; end @@ -10305,7 +10326,7 @@ module Stripe @field_remappings = {} end end - class P24 < Stripe::StripeObject + class P24 < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -10322,7 +10343,7 @@ module Stripe @field_remappings = {} end end - class Payco < Stripe::StripeObject + class Payco < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -10333,7 +10354,7 @@ module Stripe @field_remappings = {} end end - class Paynow < Stripe::StripeObject + class Paynow < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -10350,7 +10371,7 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -10376,7 +10397,7 @@ module Stripe @field_remappings = {} end end - class Pix < Stripe::StripeObject + class Pix < ::Stripe::StripeObject # Determines if the amount includes the IOF tax. sig { returns(T.nilable(String)) } def amount_includes_iof; end @@ -10399,7 +10420,7 @@ module Stripe @field_remappings = {} end end - class RevolutPay < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -10419,7 +10440,7 @@ module Stripe @field_remappings = {} end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -10430,7 +10451,7 @@ module Stripe @field_remappings = {} end end - class Satispay < Stripe::StripeObject + class Satispay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -10441,8 +10462,8 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -10475,7 +10496,7 @@ module Stripe @field_remappings = {} end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -10492,7 +10513,7 @@ module Stripe @field_remappings = {} end end - class Swish < Stripe::StripeObject + class Swish < ::Stripe::StripeObject # The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent. sig { returns(T.nilable(String)) } def reference; end @@ -10503,9 +10524,26 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject - class FinancialConnections < Stripe::StripeObject - class Filters < Stripe::StripeObject + class Twint < ::Stripe::StripeObject + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(String)) } + def setup_future_usage; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class UsBankAccount < ::Stripe::StripeObject + class FinancialConnections < ::Stripe::StripeObject + class Filters < ::Stripe::StripeObject # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -10677,6 +10715,9 @@ module Stripe # Attribute for field swish sig { returns(T.nilable(Swish)) } def swish; end + # Attribute for field twint + sig { returns(T.nilable(Twint)) } + def twint; end # Attribute for field us_bank_account sig { returns(T.nilable(UsBankAccount)) } def us_bank_account; end @@ -10721,6 +10762,7 @@ module Stripe sepa_debit: SepaDebit, sofort: Sofort, swish: Swish, + twint: Twint, us_bank_account: UsBankAccount, } end @@ -10728,7 +10770,7 @@ module Stripe @field_remappings = {} end end - class Permissions < Stripe::StripeObject + class Permissions < ::Stripe::StripeObject # Determines which entity is allowed to update the shipping details. # # Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details. @@ -10743,7 +10785,7 @@ module Stripe @field_remappings = {} end end - class PhoneNumberCollection < Stripe::StripeObject + class PhoneNumberCollection < ::Stripe::StripeObject # Indicates whether phone number collection is enabled for the session sig { returns(T::Boolean) } def enabled; end @@ -10754,7 +10796,7 @@ module Stripe @field_remappings = {} end end - class PresentmentDetails < Stripe::StripeObject + class PresentmentDetails < ::Stripe::StripeObject # Amount intended to be collected by this payment, denominated in `presentment_currency`. sig { returns(Integer) } def presentment_amount; end @@ -10768,7 +10810,7 @@ module Stripe @field_remappings = {} end end - class SavedPaymentMethodOptions < Stripe::StripeObject + class SavedPaymentMethodOptions < ::Stripe::StripeObject # Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with ’allow_redisplay: ‘always’ are shown in Checkout. sig { returns(T.nilable(T::Array[String])) } def allow_redisplay_filters; end @@ -10785,7 +10827,7 @@ module Stripe @field_remappings = {} end end - class ShippingAddressCollection < Stripe::StripeObject + class ShippingAddressCollection < ::Stripe::StripeObject # An array of two-letter ISO country codes representing which countries Checkout should provide as options for # shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SY, UM, VI`. sig { returns(T::Array[String]) } @@ -10797,15 +10839,15 @@ module Stripe @field_remappings = {} end end - class ShippingCost < Stripe::StripeObject - class Tax < Stripe::StripeObject + class ShippingCost < ::Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. sig { returns(Integer) } def amount; end # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # # Related guide: [Tax rates](/billing/taxes/tax-rates) - sig { returns(Stripe::TaxRate) } + sig { returns(::Stripe::TaxRate) } def rate; end # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. sig { returns(T.nilable(String)) } @@ -10830,7 +10872,7 @@ module Stripe sig { returns(Integer) } def amount_total; end # The ID of the ShippingRate for this order. - sig { returns(T.nilable(T.any(String, Stripe::ShippingRate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::ShippingRate))) } def shipping_rate; end # The taxes applied to the shipping rate. sig { returns(T.nilable(T::Array[Tax])) } @@ -10842,12 +10884,12 @@ module Stripe @field_remappings = {} end end - class ShippingOption < Stripe::StripeObject + class ShippingOption < ::Stripe::StripeObject # A non-negative integer in cents representing how much to charge. sig { returns(Integer) } def shipping_amount; end # The shipping rate. - sig { returns(T.any(String, Stripe::ShippingRate)) } + sig { returns(T.any(String, ::Stripe::ShippingRate)) } def shipping_rate; end def self.inner_class_types @inner_class_types = {} @@ -10856,7 +10898,7 @@ module Stripe @field_remappings = {} end end - class TaxIdCollection < Stripe::StripeObject + class TaxIdCollection < ::Stripe::StripeObject # Indicates whether tax ID collection is enabled for the session sig { returns(T::Boolean) } def enabled; end @@ -10870,9 +10912,9 @@ module Stripe @field_remappings = {} end end - class TotalDetails < Stripe::StripeObject - class Breakdown < Stripe::StripeObject - class Discount < Stripe::StripeObject + class TotalDetails < ::Stripe::StripeObject + class Breakdown < ::Stripe::StripeObject + class Discount < ::Stripe::StripeObject # The amount discounted. sig { returns(Integer) } def amount; end @@ -10880,7 +10922,7 @@ module Stripe # It contains information about when the discount began, when it will end, and what it is applied to. # # Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts) - sig { returns(Stripe::Discount) } + sig { returns(::Stripe::Discount) } def discount; end def self.inner_class_types @inner_class_types = {} @@ -10889,14 +10931,14 @@ module Stripe @field_remappings = {} end end - class Tax < Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. sig { returns(Integer) } def amount; end # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # # Related guide: [Tax rates](/billing/taxes/tax-rates) - sig { returns(Stripe::TaxRate) } + sig { returns(::Stripe::TaxRate) } def rate; end # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. sig { returns(T.nilable(String)) } @@ -10943,8 +10985,8 @@ module Stripe @field_remappings = {} end end - class WalletOptions < Stripe::StripeObject - class Link < Stripe::StripeObject + class WalletOptions < ::Stripe::StripeObject + class Link < ::Stripe::StripeObject # Describes whether Checkout should display Link. Defaults to `auto`. sig { returns(T.nilable(String)) } def display; end @@ -11030,7 +11072,7 @@ module Stripe # will create a new customer object based on information provided # during the payment flow unless an existing customer was provided when # the Session was created. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # Configure whether a Checkout Session creates a Customer when the Checkout Session completes. sig { returns(T.nilable(String)) } @@ -11058,13 +11100,13 @@ module Stripe sig { returns(String) } def id; end # ID of the invoice created by the Checkout Session, if it exists. - sig { returns(T.nilable(T.any(String, Stripe::Invoice))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Invoice))) } def invoice; end # Details on the state of invoice creation for the Checkout Session. sig { returns(T.nilable(InvoiceCreation)) } def invoice_creation; end # The line items purchased by the customer. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def line_items; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -11091,10 +11133,10 @@ module Stripe sig { returns(T.nilable(String)) } def origin_context; end # The ID of the PaymentIntent for Checkout Sessions in `payment` mode. You can't confirm or cancel the PaymentIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead. - sig { returns(T.nilable(T.any(String, Stripe::PaymentIntent))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntent))) } def payment_intent; end # The ID of the Payment Link that created this Session. - sig { returns(T.nilable(T.any(String, Stripe::PaymentLink))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentLink))) } def payment_link; end # Configure whether a Checkout Session should collect a payment method. Defaults to `always`. sig { returns(T.nilable(String)) } @@ -11137,7 +11179,7 @@ module Stripe sig { returns(T.nilable(SavedPaymentMethodOptions)) } def saved_payment_method_options; end # The ID of the SetupIntent for Checkout Sessions in `setup` mode. You can't confirm or cancel the SetupIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead. - sig { returns(T.nilable(T.any(String, Stripe::SetupIntent))) } + sig { returns(T.nilable(T.any(String, ::Stripe::SetupIntent))) } def setup_intent; end # When set, provides configuration for Checkout to collect a shipping address from a customer. sig { returns(T.nilable(ShippingAddressCollection)) } @@ -11157,7 +11199,7 @@ module Stripe sig { returns(T.nilable(String)) } def submit_type; end # The ID of the [Subscription](https://stripe.com/docs/api/subscriptions) for Checkout Sessions in `subscription` mode. - sig { returns(T.nilable(T.any(String, Stripe::Subscription))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Subscription))) } def subscription; end # The URL the customer will be directed to after the payment or # subscription creation is successful. @@ -11181,7 +11223,7 @@ module Stripe def wallet_options; end # Creates a Checkout Session object. sig { - params(params: T.any(::Stripe::Checkout::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session) + params(params: T.any(::Stripe::Checkout::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Checkout::Session) } def self.create(params = {}, opts = {}); end @@ -11189,7 +11231,7 @@ module Stripe # # After it expires, a customer can't complete a Checkout Session and customers loading the Checkout Session see a message saying the Checkout Session is expired. sig { - params(params: T.any(::Stripe::Checkout::SessionExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session) + params(params: T.any(::Stripe::Checkout::SessionExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Checkout::Session) } def expire(params = {}, opts = {}); end @@ -11197,25 +11239,25 @@ module Stripe # # After it expires, a customer can't complete a Checkout Session and customers loading the Checkout Session see a message saying the Checkout Session is expired. sig { - params(session: String, params: T.any(::Stripe::Checkout::SessionExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session) + params(session: String, params: T.any(::Stripe::Checkout::SessionExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Checkout::Session) } def self.expire(session, params = {}, opts = {}); end # Returns a list of Checkout Sessions. sig { - params(params: T.any(::Stripe::Checkout::SessionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Checkout::SessionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # When retrieving a Checkout Session, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. sig { - params(params: T.any(::Stripe::Checkout::SessionListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Checkout::SessionListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list_line_items(params = {}, opts = {}); end # When retrieving a Checkout Session, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. sig { - params(session: String, params: T.any(::Stripe::Checkout::SessionListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(session: String, params: T.any(::Stripe::Checkout::SessionListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list_line_items(session, params = {}, opts = {}); end @@ -11223,7 +11265,7 @@ module Stripe # # Related guide: [Dynamically update Checkout](https://docs.stripe.com/payments/checkout/dynamic-updates) sig { - params(session: String, params: T.any(::Stripe::Checkout::SessionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session) + params(session: String, params: T.any(::Stripe::Checkout::SessionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Checkout::Session) } def self.update(session, params = {}, opts = {}); end end @@ -11235,7 +11277,7 @@ module Stripe # Orders represent your intent to purchase a particular Climate product. When you create an order, the # payment is deducted from your merchant balance. class Order < APIResource - class Beneficiary < Stripe::StripeObject + class Beneficiary < ::Stripe::StripeObject # Publicly displayable name for the end beneficiary of carbon removal. sig { returns(String) } def public_name; end @@ -11246,8 +11288,8 @@ module Stripe @field_remappings = {} end end - class DeliveryDetail < Stripe::StripeObject - class Location < Stripe::StripeObject + class DeliveryDetail < ::Stripe::StripeObject + class Location < ::Stripe::StripeObject # The city where the supplier is located. sig { returns(T.nilable(String)) } def city; end @@ -11283,7 +11325,7 @@ module Stripe sig { returns(T.nilable(String)) } def registry_url; end # A supplier of carbon removal. - sig { returns(Stripe::Climate::Supplier) } + sig { returns(::Stripe::Climate::Supplier) } def supplier; end def self.inner_class_types @inner_class_types = {location: Location} @@ -11350,7 +11392,7 @@ module Stripe sig { returns(String) } def object; end # Unique ID for the Climate `Product` this order is purchasing. - sig { returns(T.any(String, Stripe::Climate::Product)) } + sig { returns(T.any(String, ::Stripe::Climate::Product)) } def product; end # Time at which the order's product was substituted for a different product. Measured in seconds since the Unix epoch. sig { returns(T.nilable(Integer)) } @@ -11363,7 +11405,7 @@ module Stripe # might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe # provides 90 days advance notice and refunds the amount_total. sig { - params(params: T.any(::Stripe::Climate::OrderCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Climate::Order) + params(params: T.any(::Stripe::Climate::OrderCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Climate::Order) } def cancel(params = {}, opts = {}); end @@ -11372,27 +11414,27 @@ module Stripe # might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe # provides 90 days advance notice and refunds the amount_total. sig { - params(order: String, params: T.any(::Stripe::Climate::OrderCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Climate::Order) + params(order: String, params: T.any(::Stripe::Climate::OrderCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Climate::Order) } def self.cancel(order, params = {}, opts = {}); end # Creates a Climate order object for a given Climate product. The order will be processed immediately # after creation and payment will be deducted your Stripe balance. sig { - params(params: T.any(::Stripe::Climate::OrderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Climate::Order) + params(params: T.any(::Stripe::Climate::OrderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Climate::Order) } def self.create(params = {}, opts = {}); end # Lists all Climate order objects. The orders are returned sorted by creation date, with the # most recently created orders appearing first. sig { - params(params: T.any(::Stripe::Climate::OrderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Climate::OrderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the specified order by setting the values of the parameters passed. sig { - params(order: String, params: T.any(::Stripe::Climate::OrderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Climate::Order) + params(order: String, params: T.any(::Stripe::Climate::OrderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Climate::Order) } def self.update(order, params = {}, opts = {}); end end @@ -11404,7 +11446,7 @@ module Stripe # A Climate product represents a type of carbon removal unit available for reservation. # You can retrieve it to see the current price and availability. class Product < APIResource - class CurrentPricesPerMetricTon < Stripe::StripeObject + class CurrentPricesPerMetricTon < ::Stripe::StripeObject # Fees for one metric ton of carbon removal in the currency's smallest unit. sig { returns(Integer) } def amount_fees; end @@ -11448,11 +11490,11 @@ module Stripe sig { returns(String) } def object; end # The carbon removal suppliers that fulfill orders for this Climate product. - sig { returns(T::Array[Stripe::Climate::Supplier]) } + sig { returns(T::Array[::Stripe::Climate::Supplier]) } def suppliers; end # Lists all available Climate product objects. sig { - params(params: T.any(::Stripe::Climate::ProductListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Climate::ProductListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -11463,7 +11505,7 @@ module Stripe module Climate # A supplier of carbon removal. class Supplier < APIResource - class Location < Stripe::StripeObject + class Location < ::Stripe::StripeObject # The city where the supplier is located. sig { returns(T.nilable(String)) } def city; end @@ -11509,7 +11551,7 @@ module Stripe def removal_pathway; end # Lists all available Climate supplier objects. sig { - params(params: T.any(::Stripe::Climate::SupplierListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Climate::SupplierListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -11525,9 +11567,9 @@ module Stripe # - [Finalize payments on the server](https://stripe.com/docs/payments/finalize-payments-on-the-server) # - [Build two-step confirmation](https://stripe.com/docs/payments/build-a-two-step-confirmation). class ConfirmationToken < APIResource - class MandateData < Stripe::StripeObject - class CustomerAcceptance < Stripe::StripeObject - class Online < Stripe::StripeObject + class MandateData < ::Stripe::StripeObject + class CustomerAcceptance < ::Stripe::StripeObject + class Online < ::Stripe::StripeObject # The IP address from which the Mandate was accepted by the customer. sig { returns(T.nilable(String)) } def ip_address; end @@ -11564,10 +11606,10 @@ module Stripe @field_remappings = {} end end - class PaymentMethodOptions < Stripe::StripeObject - class Card < Stripe::StripeObject - class Installments < Stripe::StripeObject - class Plan < Stripe::StripeObject + class PaymentMethodOptions < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Installments < ::Stripe::StripeObject + class Plan < ::Stripe::StripeObject # For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card. sig { returns(T.nilable(Integer)) } def count; end @@ -11618,8 +11660,8 @@ module Stripe @field_remappings = {} end end - class PaymentMethodPreview < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject + class PaymentMethodPreview < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject # Name of the bank associated with the bank account. sig { returns(T.nilable(String)) } def bank_name; end @@ -11642,7 +11684,7 @@ module Stripe @field_remappings = {} end end - class Affirm < Stripe::StripeObject + class Affirm < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -11650,7 +11692,7 @@ module Stripe @field_remappings = {} end end - class AfterpayClearpay < Stripe::StripeObject + class AfterpayClearpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -11658,7 +11700,7 @@ module Stripe @field_remappings = {} end end - class Alipay < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -11666,7 +11708,7 @@ module Stripe @field_remappings = {} end end - class Alma < Stripe::StripeObject + class Alma < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -11674,7 +11716,7 @@ module Stripe @field_remappings = {} end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -11682,7 +11724,7 @@ module Stripe @field_remappings = {} end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject # Six-digit number identifying bank and branch associated with this bank account. sig { returns(T.nilable(String)) } def bsb_number; end @@ -11699,7 +11741,7 @@ module Stripe @field_remappings = {} end end - class BacsDebit < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. sig { returns(T.nilable(String)) } def fingerprint; end @@ -11716,7 +11758,7 @@ module Stripe @field_remappings = {} end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -11724,7 +11766,7 @@ module Stripe @field_remappings = {} end end - class Billie < Stripe::StripeObject + class Billie < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -11732,8 +11774,8 @@ module Stripe @field_remappings = {} end end - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -11781,7 +11823,7 @@ module Stripe @field_remappings = {} end end - class Blik < Stripe::StripeObject + class Blik < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -11789,7 +11831,7 @@ module Stripe @field_remappings = {} end end - class Boleto < Stripe::StripeObject + class Boleto < ::Stripe::StripeObject # Uniquely identifies the customer tax id (CNPJ or CPF) sig { returns(String) } def tax_id; end @@ -11800,8 +11842,8 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject - class Checks < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Checks < ::Stripe::StripeObject # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. sig { returns(T.nilable(String)) } def address_line1_check; end @@ -11818,10 +11860,10 @@ module Stripe @field_remappings = {} end end - class GeneratedFrom < Stripe::StripeObject - class PaymentMethodDetails < Stripe::StripeObject - class CardPresent < Stripe::StripeObject - class Offline < Stripe::StripeObject + class GeneratedFrom < ::Stripe::StripeObject + class PaymentMethodDetails < ::Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject + class Offline < ::Stripe::StripeObject # Time at which the payment was collected while offline sig { returns(T.nilable(Integer)) } def stored_at; end @@ -11835,7 +11877,7 @@ module Stripe @field_remappings = {} end end - class Receipt < Stripe::StripeObject + class Receipt < ::Stripe::StripeObject # The type of account being debited or credited sig { returns(T.nilable(String)) } def account_type; end @@ -11870,7 +11912,7 @@ module Stripe @field_remappings = {} end end - class Wallet < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. sig { returns(String) } def type; end @@ -11985,7 +12027,7 @@ module Stripe sig { returns(T.nilable(PaymentMethodDetails)) } def payment_method_details; end # The ID of the SetupAttempt that generated this PaymentMethod, if any. - sig { returns(T.nilable(T.any(String, Stripe::SetupAttempt))) } + sig { returns(T.nilable(T.any(String, ::Stripe::SetupAttempt))) } def setup_attempt; end def self.inner_class_types @inner_class_types = {payment_method_details: PaymentMethodDetails} @@ -11994,7 +12036,7 @@ module Stripe @field_remappings = {} end end - class Networks < Stripe::StripeObject + class Networks < ::Stripe::StripeObject # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). sig { returns(T::Array[String]) } def available; end @@ -12008,7 +12050,7 @@ module Stripe @field_remappings = {} end end - class ThreeDSecureUsage < Stripe::StripeObject + class ThreeDSecureUsage < ::Stripe::StripeObject # Whether 3D Secure is supported on this card. sig { returns(T::Boolean) } def supported; end @@ -12019,8 +12061,8 @@ module Stripe @field_remappings = {} end end - class Wallet < Stripe::StripeObject - class AmexExpressCheckout < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject + class AmexExpressCheckout < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12028,7 +12070,7 @@ module Stripe @field_remappings = {} end end - class ApplePay < Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12036,7 +12078,7 @@ module Stripe @field_remappings = {} end end - class GooglePay < Stripe::StripeObject + class GooglePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12044,7 +12086,7 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12052,8 +12094,8 @@ module Stripe @field_remappings = {} end end - class Masterpass < Stripe::StripeObject - class BillingAddress < Stripe::StripeObject + class Masterpass < ::Stripe::StripeObject + class BillingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -12079,7 +12121,7 @@ module Stripe @field_remappings = {} end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -12127,7 +12169,7 @@ module Stripe @field_remappings = {} end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12135,8 +12177,8 @@ module Stripe @field_remappings = {} end end - class VisaCheckout < Stripe::StripeObject - class BillingAddress < Stripe::StripeObject + class VisaCheckout < ::Stripe::StripeObject + class BillingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -12162,7 +12204,7 @@ module Stripe @field_remappings = {} end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -12318,8 +12360,8 @@ module Stripe @field_remappings = {} end end - class CardPresent < Stripe::StripeObject - class Networks < Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject + class Networks < ::Stripe::StripeObject # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). sig { returns(T::Array[String]) } def available; end @@ -12333,7 +12375,7 @@ module Stripe @field_remappings = {} end end - class Offline < Stripe::StripeObject + class Offline < ::Stripe::StripeObject # Time at which the payment was collected while offline sig { returns(T.nilable(Integer)) } def stored_at; end @@ -12347,7 +12389,7 @@ module Stripe @field_remappings = {} end end - class Wallet < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. sig { returns(String) } def type; end @@ -12418,7 +12460,7 @@ module Stripe @field_remappings = {} end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject # A unique and immutable identifier assigned by Cash App to every buyer. sig { returns(T.nilable(String)) } def buyer_id; end @@ -12432,7 +12474,7 @@ module Stripe @field_remappings = {} end end - class Crypto < Stripe::StripeObject + class Crypto < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12440,7 +12482,7 @@ module Stripe @field_remappings = {} end end - class CustomerBalance < Stripe::StripeObject + class CustomerBalance < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12448,7 +12490,7 @@ module Stripe @field_remappings = {} end end - class Eps < Stripe::StripeObject + class Eps < ::Stripe::StripeObject # The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. sig { returns(T.nilable(String)) } def bank; end @@ -12459,7 +12501,7 @@ module Stripe @field_remappings = {} end end - class Fpx < Stripe::StripeObject + class Fpx < ::Stripe::StripeObject # Account holder type, if provided. Can be one of `individual` or `company`. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -12473,7 +12515,7 @@ module Stripe @field_remappings = {} end end - class Giropay < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12481,7 +12523,7 @@ module Stripe @field_remappings = {} end end - class Grabpay < Stripe::StripeObject + class Grabpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12489,7 +12531,7 @@ module Stripe @field_remappings = {} end end - class Ideal < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject # The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. sig { returns(T.nilable(String)) } def bank; end @@ -12503,8 +12545,8 @@ module Stripe @field_remappings = {} end end - class InteracPresent < Stripe::StripeObject - class Networks < Stripe::StripeObject + class InteracPresent < ::Stripe::StripeObject + class Networks < ::Stripe::StripeObject # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). sig { returns(T::Array[String]) } def available; end @@ -12569,7 +12611,7 @@ module Stripe @field_remappings = {} end end - class KakaoPay < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12577,8 +12619,8 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject - class Dob < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject + class Dob < ::Stripe::StripeObject # The day of birth, between 1 and 31. sig { returns(T.nilable(Integer)) } def day; end @@ -12605,7 +12647,7 @@ module Stripe @field_remappings = {} end end - class Konbini < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12613,7 +12655,7 @@ module Stripe @field_remappings = {} end end - class KrCard < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject # The local credit or debit card brand. sig { returns(T.nilable(String)) } def brand; end @@ -12627,7 +12669,7 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject # Account owner's email address. sig { returns(T.nilable(String)) } def email; end @@ -12641,7 +12683,7 @@ module Stripe @field_remappings = {} end end - class MbWay < Stripe::StripeObject + class MbWay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12649,7 +12691,7 @@ module Stripe @field_remappings = {} end end - class Mobilepay < Stripe::StripeObject + class Mobilepay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12657,7 +12699,7 @@ module Stripe @field_remappings = {} end end - class Multibanco < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12665,7 +12707,7 @@ module Stripe @field_remappings = {} end end - class NaverPay < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject # Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same. sig { returns(T.nilable(String)) } def buyer_id; end @@ -12679,7 +12721,7 @@ module Stripe @field_remappings = {} end end - class NzBankAccount < Stripe::StripeObject + class NzBankAccount < ::Stripe::StripeObject # The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -12705,7 +12747,7 @@ module Stripe @field_remappings = {} end end - class Oxxo < Stripe::StripeObject + class Oxxo < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12713,7 +12755,7 @@ module Stripe @field_remappings = {} end end - class P24 < Stripe::StripeObject + class P24 < ::Stripe::StripeObject # The customer's bank, if provided. sig { returns(T.nilable(String)) } def bank; end @@ -12724,7 +12766,7 @@ module Stripe @field_remappings = {} end end - class PayByBank < Stripe::StripeObject + class PayByBank < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12732,7 +12774,7 @@ module Stripe @field_remappings = {} end end - class Payco < Stripe::StripeObject + class Payco < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12740,7 +12782,7 @@ module Stripe @field_remappings = {} end end - class Paynow < Stripe::StripeObject + class Paynow < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12748,7 +12790,7 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. sig { returns(T.nilable(String)) } def country; end @@ -12766,7 +12808,7 @@ module Stripe @field_remappings = {} end end - class Pix < Stripe::StripeObject + class Pix < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12774,7 +12816,7 @@ module Stripe @field_remappings = {} end end - class Promptpay < Stripe::StripeObject + class Promptpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12782,7 +12824,7 @@ module Stripe @field_remappings = {} end end - class RevolutPay < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12790,7 +12832,7 @@ module Stripe @field_remappings = {} end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12798,7 +12840,7 @@ module Stripe @field_remappings = {} end end - class Satispay < Stripe::StripeObject + class Satispay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12806,13 +12848,13 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject - class GeneratedFrom < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject + class GeneratedFrom < ::Stripe::StripeObject # The ID of the Charge that generated this PaymentMethod, if any. - sig { returns(T.nilable(T.any(String, Stripe::Charge))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Charge))) } def charge; end # The ID of the SetupAttempt that generated this PaymentMethod, if any. - sig { returns(T.nilable(T.any(String, Stripe::SetupAttempt))) } + sig { returns(T.nilable(T.any(String, ::Stripe::SetupAttempt))) } def setup_attempt; end def self.inner_class_types @inner_class_types = {} @@ -12846,7 +12888,7 @@ module Stripe @field_remappings = {} end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject # Two-letter ISO code representing the country the bank account is located in. sig { returns(T.nilable(String)) } def country; end @@ -12857,7 +12899,7 @@ module Stripe @field_remappings = {} end end - class Swish < Stripe::StripeObject + class Swish < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12865,7 +12907,7 @@ module Stripe @field_remappings = {} end end - class Twint < Stripe::StripeObject + class Twint < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12873,8 +12915,8 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject - class Networks < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject + class Networks < ::Stripe::StripeObject # The preferred network. sig { returns(T.nilable(String)) } def preferred; end @@ -12888,8 +12930,8 @@ module Stripe @field_remappings = {} end end - class StatusDetails < Stripe::StripeObject - class Blocked < Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject + class Blocked < ::Stripe::StripeObject # The ACH network code that resulted in this block. sig { returns(T.nilable(String)) } def network_code; end @@ -12947,7 +12989,7 @@ module Stripe @field_remappings = {} end end - class WechatPay < Stripe::StripeObject + class WechatPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -12955,7 +12997,7 @@ module Stripe @field_remappings = {} end end - class Zip < Stripe::StripeObject + class Zip < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -13018,7 +13060,7 @@ module Stripe sig { returns(T.nilable(Crypto)) } def crypto; end # The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # Attribute for field customer_balance sig { returns(T.nilable(CustomerBalance)) } @@ -13188,8 +13230,8 @@ module Stripe @field_remappings = {} end end - class Shipping < Stripe::StripeObject - class Address < Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -13286,8 +13328,8 @@ module Stripe # You can also view the information from this API call as [an online # guide](https://docs.stripe.com/docs/connect/required-verification-information). class CountrySpec < APIResource - class VerificationFields < Stripe::StripeObject - class Company < Stripe::StripeObject + class VerificationFields < ::Stripe::StripeObject + class Company < ::Stripe::StripeObject # Additional fields which are only required for some users. sig { returns(T::Array[String]) } def additional; end @@ -13301,7 +13343,7 @@ module Stripe @field_remappings = {} end end - class Individual < Stripe::StripeObject + class Individual < ::Stripe::StripeObject # Additional fields which are only required for some users. sig { returns(T::Array[String]) } def additional; end @@ -13354,7 +13396,7 @@ module Stripe def verification_fields; end # Lists all Country Spec objects available in the API. sig { - params(params: T.any(::Stripe::CountrySpecListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::CountrySpecListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -13365,7 +13407,7 @@ module Stripe # might want to apply to a customer. Coupons may be applied to [subscriptions](https://stripe.com/docs/api#subscriptions), [invoices](https://stripe.com/docs/api#invoices), # [checkout sessions](https://stripe.com/docs/api/checkout/sessions), [quotes](https://stripe.com/docs/api#quotes), and more. Coupons do not work with conventional one-off [charges](https://stripe.com/docs/api#create_charge) or [payment intents](https://stripe.com/docs/api/payment_intents). class Coupon < APIResource - class AppliesTo < Stripe::StripeObject + class AppliesTo < ::Stripe::StripeObject # A list of product IDs this coupon applies to sig { returns(T::Array[String]) } def products; end @@ -13376,7 +13418,7 @@ module Stripe @field_remappings = {} end end - class CurrencyOptions < Stripe::StripeObject + class CurrencyOptions < ::Stripe::StripeObject # Amount (in the `currency` specified) that will be taken off the subtotal of any invoices for this customer. sig { returns(Integer) } def amount_off; end @@ -13445,31 +13487,31 @@ module Stripe # # A coupon has either a percent_off or an amount_off and currency. If you set an amount_off, that amount will be subtracted from any invoice's subtotal. For example, an invoice with a subtotal of 100 will have a final total of 0 if a coupon with an amount_off of 200 is applied to it and an invoice with a subtotal of 300 will have a final total of 100 if a coupon with an amount_off of 200 is applied to it. sig { - params(params: T.any(::Stripe::CouponCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Coupon) + params(params: T.any(::Stripe::CouponCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Coupon) } def self.create(params = {}, opts = {}); end # You can delete coupons via the [coupon management](https://dashboard.stripe.com/coupons) page of the Stripe dashboard. However, deleting a coupon does not affect any customers who have already applied the coupon; it means that new customers can't redeem the coupon. You can also delete coupons via the API. sig { - params(coupon: String, params: T.any(::Stripe::CouponDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Coupon) + params(coupon: String, params: T.any(::Stripe::CouponDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Coupon) } def self.delete(coupon, params = {}, opts = {}); end # You can delete coupons via the [coupon management](https://dashboard.stripe.com/coupons) page of the Stripe dashboard. However, deleting a coupon does not affect any customers who have already applied the coupon; it means that new customers can't redeem the coupon. You can also delete coupons via the API. sig { - params(params: T.any(::Stripe::CouponDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Coupon) + params(params: T.any(::Stripe::CouponDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Coupon) } def delete(params = {}, opts = {}); end # Returns a list of your coupons. sig { - params(params: T.any(::Stripe::CouponListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::CouponListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the metadata of a coupon. Other coupon details (currency, duration, amount_off) are, by design, not editable. sig { - params(coupon: String, params: T.any(::Stripe::CouponUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Coupon) + params(coupon: String, params: T.any(::Stripe::CouponUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Coupon) } def self.update(coupon, params = {}, opts = {}); end end @@ -13480,12 +13522,12 @@ module Stripe # # Related guide: [Credit notes](https://stripe.com/docs/billing/invoices/credit-notes) class CreditNote < APIResource - class DiscountAmount < Stripe::StripeObject + class DiscountAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the discount. sig { returns(Integer) } def amount; end # The discount that was applied to get this discount amount. - sig { returns(T.any(String, Stripe::Discount)) } + sig { returns(T.any(String, ::Stripe::Discount)) } def discount; end def self.inner_class_types @inner_class_types = {} @@ -13494,15 +13536,15 @@ module Stripe @field_remappings = {} end end - class PretaxCreditAmount < Stripe::StripeObject + class PretaxCreditAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the pretax credit amount. sig { returns(Integer) } def amount; end # The credit balance transaction that was applied to get this pretax credit amount. - sig { returns(T.nilable(T.any(String, Stripe::Billing::CreditBalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Billing::CreditBalanceTransaction))) } def credit_balance_transaction; end # The discount that was applied to get this pretax credit amount. - sig { returns(T.nilable(T.any(String, Stripe::Discount))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Discount))) } def discount; end # Type of the pretax credit amount referenced. sig { returns(String) } @@ -13514,29 +13556,49 @@ module Stripe @field_remappings = {} end end - class Refund < Stripe::StripeObject + class Refund < ::Stripe::StripeObject + class PaymentRecordRefund < ::Stripe::StripeObject + # ID of the payment record. + sig { returns(String) } + def payment_record; end + # ID of the refund group. + sig { returns(String) } + def refund_group; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # Amount of the refund that applies to this credit note, in cents (or local equivalent). sig { returns(Integer) } def amount_refunded; end + # The PaymentRecord refund details associated with this credit note refund. + sig { returns(T.nilable(PaymentRecordRefund)) } + def payment_record_refund; end # ID of the refund. - sig { returns(T.any(String, Stripe::Refund)) } + sig { returns(T.any(String, ::Stripe::Refund)) } def refund; end + # Type of the refund, one of `refund` or `payment_record_refund`. + sig { returns(T.nilable(String)) } + def type; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {payment_record_refund: PaymentRecordRefund} end def self.field_remappings @field_remappings = {} end end - class ShippingCost < Stripe::StripeObject - class Tax < Stripe::StripeObject + class ShippingCost < ::Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. sig { returns(Integer) } def amount; end # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # # Related guide: [Tax rates](/billing/taxes/tax-rates) - sig { returns(Stripe::TaxRate) } + sig { returns(::Stripe::TaxRate) } def rate; end # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. sig { returns(T.nilable(String)) } @@ -13561,7 +13623,7 @@ module Stripe sig { returns(Integer) } def amount_total; end # The ID of the ShippingRate for this invoice. - sig { returns(T.nilable(T.any(String, Stripe::ShippingRate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::ShippingRate))) } def shipping_rate; end # The taxes applied to the shipping rate. sig { returns(T.nilable(T::Array[Tax])) } @@ -13573,8 +13635,8 @@ module Stripe @field_remappings = {} end end - class TotalTax < Stripe::StripeObject - class TaxRateDetails < Stripe::StripeObject + class TotalTax < ::Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject # Attribute for field tax_rate sig { returns(String) } def tax_rate; end @@ -13623,10 +13685,10 @@ module Stripe sig { returns(String) } def currency; end # ID of the customer. - sig { returns(T.any(String, Stripe::Customer)) } + sig { returns(T.any(String, ::Stripe::Customer)) } def customer; end # Customer balance transaction related to this credit note. - sig { returns(T.nilable(T.any(String, Stripe::CustomerBalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::CustomerBalanceTransaction))) } def customer_balance_transaction; end # The integer amount in cents (or local equivalent) representing the total amount of discount that was credited. sig { returns(Integer) } @@ -13641,10 +13703,10 @@ module Stripe sig { returns(String) } def id; end # ID of the invoice. - sig { returns(T.any(String, Stripe::Invoice)) } + sig { returns(T.any(String, ::Stripe::Invoice)) } def invoice; end # Line items that make up the credit note - sig { returns(Stripe::ListObject) } + sig { returns(::Stripe::ListObject) } def lines; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -13723,43 +13785,43 @@ module Stripe # You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount, # post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation. sig { - params(params: T.any(::Stripe::CreditNoteCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote) + params(params: T.any(::Stripe::CreditNoteCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } def self.create(params = {}, opts = {}); end # Returns a list of credit notes. sig { - params(params: T.any(::Stripe::CreditNoteListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::CreditNoteListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # When retrieving a credit note preview, you'll get a lines property containing the first handful of those items. This URL you can retrieve the full (paginated) list of line items. sig { - params(params: T.any(::Stripe::CreditNoteListPreviewLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::CreditNoteListPreviewLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list_preview_line_items(params = {}, opts = {}); end # Get a preview of a credit note without creating it. sig { - params(params: T.any(::Stripe::CreditNotePreviewParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote) + params(params: T.any(::Stripe::CreditNotePreviewParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } def self.preview(params = {}, opts = {}); end # Updates an existing credit note. sig { - params(id: String, params: T.any(::Stripe::CreditNoteUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote) + params(id: String, params: T.any(::Stripe::CreditNoteUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } def self.update(id, params = {}, opts = {}); end # Marks a credit note as void. Learn more about [voiding credit notes](https://docs.stripe.com/docs/billing/invoices/credit-notes#voiding). sig { - params(params: T.any(::Stripe::CreditNoteVoidCreditNoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote) + params(params: T.any(::Stripe::CreditNoteVoidCreditNoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } def void_credit_note(params = {}, opts = {}); end # Marks a credit note as void. Learn more about [voiding credit notes](https://docs.stripe.com/docs/billing/invoices/credit-notes#voiding). sig { - params(id: String, params: T.any(::Stripe::CreditNoteVoidCreditNoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote) + params(id: String, params: T.any(::Stripe::CreditNoteVoidCreditNoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } def self.void_credit_note(id, params = {}, opts = {}); end end @@ -13768,12 +13830,12 @@ end module Stripe # The credit note line item object class CreditNoteLineItem < StripeObject - class DiscountAmount < Stripe::StripeObject + class DiscountAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the discount. sig { returns(Integer) } def amount; end # The discount that was applied to get this discount amount. - sig { returns(T.any(String, Stripe::Discount)) } + sig { returns(T.any(String, ::Stripe::Discount)) } def discount; end def self.inner_class_types @inner_class_types = {} @@ -13782,15 +13844,15 @@ module Stripe @field_remappings = {} end end - class PretaxCreditAmount < Stripe::StripeObject + class PretaxCreditAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the pretax credit amount. sig { returns(Integer) } def amount; end # The credit balance transaction that was applied to get this pretax credit amount. - sig { returns(T.nilable(T.any(String, Stripe::Billing::CreditBalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Billing::CreditBalanceTransaction))) } def credit_balance_transaction; end # The discount that was applied to get this pretax credit amount. - sig { returns(T.nilable(T.any(String, Stripe::Discount))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Discount))) } def discount; end # Type of the pretax credit amount referenced. sig { returns(String) } @@ -13802,8 +13864,8 @@ module Stripe @field_remappings = {} end end - class Tax < Stripe::StripeObject - class TaxRateDetails < Stripe::StripeObject + class Tax < ::Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject # Attribute for field tax_rate sig { returns(String) } def tax_rate; end @@ -13870,7 +13932,7 @@ module Stripe sig { returns(T.nilable(Integer)) } def quantity; end # The tax rates which apply to the line item. - sig { returns(T::Array[Stripe::TaxRate]) } + sig { returns(T::Array[::Stripe::TaxRate]) } def tax_rates; end # The tax information of the line item. sig { returns(T.nilable(T::Array[Tax])) } @@ -13895,8 +13957,8 @@ module Stripe # [Customer Session with the Pricing Table](https://docs.stripe.com/payments/checkout/pricing-table#customer-session), # [Customer Session with the Buy Button](https://docs.stripe.com/payment-links/buy-button#pass-an-existing-customer). class CustomerSession < APIResource - class Components < Stripe::StripeObject - class BuyButton < Stripe::StripeObject + class Components < ::Stripe::StripeObject + class BuyButton < ::Stripe::StripeObject # Whether the buy button is enabled. sig { returns(T::Boolean) } def enabled; end @@ -13907,8 +13969,85 @@ module Stripe @field_remappings = {} end end - class PaymentElement < Stripe::StripeObject - class Features < Stripe::StripeObject + class CustomerSheet < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject + # A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the customer sheet displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list. + # + # If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"]. + sig { returns(T.nilable(T::Array[String])) } + def payment_method_allow_redisplay_filters; end + # Controls whether the customer sheet displays the option to remove a saved payment method." + # + # Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods). + sig { returns(T.nilable(String)) } + def payment_method_remove; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the customer sheet is enabled. + sig { returns(T::Boolean) } + def enabled; end + # This hash defines whether the customer sheet supports certain features. + sig { returns(T.nilable(Features)) } + def features; end + def self.inner_class_types + @inner_class_types = {features: Features} + end + def self.field_remappings + @field_remappings = {} + end + end + class MobilePaymentElement < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject + # A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the mobile payment element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list. + # + # If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"]. + sig { returns(T.nilable(T::Array[String])) } + def payment_method_allow_redisplay_filters; end + # Controls whether or not the mobile payment element shows saved payment methods. + sig { returns(T.nilable(String)) } + def payment_method_redisplay; end + # Controls whether the mobile payment element displays the option to remove a saved payment method." + # + # Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods). + sig { returns(T.nilable(String)) } + def payment_method_remove; end + # Controls whether the mobile payment element displays a checkbox offering to save a new payment method. + # + # If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`. + sig { returns(T.nilable(String)) } + def payment_method_save; end + # Allows overriding the value of allow_override when saving a new payment method when payment_method_save is set to disabled. Use values: "always", "limited", or "unspecified". + # + # If not specified, defaults to `nil` (no override value). + sig { returns(T.nilable(String)) } + def payment_method_save_allow_redisplay_override; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the mobile payment element is enabled. + sig { returns(T::Boolean) } + def enabled; end + # This hash defines whether the mobile payment element supports certain features. + sig { returns(T.nilable(Features)) } + def features; end + def self.inner_class_types + @inner_class_types = {features: Features} + end + def self.field_remappings + @field_remappings = {} + end + end + class PaymentElement < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the Payment Element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list. # # If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"]. @@ -13955,7 +14094,7 @@ module Stripe @field_remappings = {} end end - class PricingTable < Stripe::StripeObject + class PricingTable < ::Stripe::StripeObject # Whether the pricing table is enabled. sig { returns(T::Boolean) } def enabled; end @@ -13969,6 +14108,12 @@ module Stripe # This hash contains whether the buy button is enabled. sig { returns(BuyButton) } def buy_button; end + # This hash contains whether the customer sheet is enabled and the features it supports. + sig { returns(CustomerSheet) } + def customer_sheet; end + # This hash contains whether the mobile payment element is enabled and the features it supports. + sig { returns(MobilePaymentElement) } + def mobile_payment_element; end # This hash contains whether the Payment Element is enabled and the features it supports. sig { returns(PaymentElement) } def payment_element; end @@ -13978,6 +14123,8 @@ module Stripe def self.inner_class_types @inner_class_types = { buy_button: BuyButton, + customer_sheet: CustomerSheet, + mobile_payment_element: MobilePaymentElement, payment_element: PaymentElement, pricing_table: PricingTable, } @@ -13998,7 +14145,7 @@ module Stripe sig { returns(Integer) } def created; end # The Customer the Customer Session was created for. - sig { returns(T.any(String, Stripe::Customer)) } + sig { returns(T.any(String, ::Stripe::Customer)) } def customer; end # The timestamp at which this Customer Session will expire. sig { returns(Integer) } @@ -14011,7 +14158,7 @@ module Stripe def object; end # Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources. sig { - params(params: T.any(::Stripe::CustomerSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CustomerSession) + params(params: T.any(::Stripe::CustomerSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CustomerSession) } def self.create(params = {}, opts = {}); end end @@ -14021,7 +14168,7 @@ module Stripe # This object represents a customer of your business. Use it to [create recurring charges](https://stripe.com/docs/invoicing/customer), [save payment](https://stripe.com/docs/payments/save-during-payment) and contact information, # and track payments that belong to the same customer. class Customer < APIResource - class Address < Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -14047,8 +14194,8 @@ module Stripe @field_remappings = {} end end - class InvoiceSettings < Stripe::StripeObject - class CustomField < Stripe::StripeObject + class InvoiceSettings < ::Stripe::StripeObject + class CustomField < ::Stripe::StripeObject # The name of the custom field. sig { returns(String) } def name; end @@ -14062,7 +14209,7 @@ module Stripe @field_remappings = {} end end - class RenderingOptions < Stripe::StripeObject + class RenderingOptions < ::Stripe::StripeObject # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. sig { returns(T.nilable(String)) } def amount_tax_display; end @@ -14080,7 +14227,7 @@ module Stripe sig { returns(T.nilable(T::Array[CustomField])) } def custom_fields; end # ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def default_payment_method; end # Default footer to be displayed on invoices for this customer. sig { returns(T.nilable(String)) } @@ -14095,8 +14242,8 @@ module Stripe @field_remappings = {} end end - class Shipping < Stripe::StripeObject - class Address < Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -14144,8 +14291,8 @@ module Stripe @field_remappings = {} end end - class Tax < Stripe::StripeObject - class Location < Stripe::StripeObject + class Tax < ::Stripe::StripeObject + class Location < ::Stripe::StripeObject # The identified tax country of the customer. sig { returns(String) } def country; end @@ -14171,6 +14318,9 @@ module Stripe # The identified tax location of the customer. sig { returns(T.nilable(Location)) } def location; end + # The tax calculation provider used for location resolution. Defaults to `stripe` when not using a [third-party provider](/tax/third-party-apps). + sig { returns(String) } + def provider; end def self.inner_class_types @inner_class_types = {location: Location} end @@ -14188,7 +14338,7 @@ module Stripe sig { returns(T.nilable(String)) } def business_name; end # The current funds being held by Stripe on behalf of the customer. You can apply these funds towards payment intents when the source is "cash_balance". The `settings[reconciliation_mode]` field describes if these funds apply to these payment intents manually or automatically. - sig { returns(T.nilable(Stripe::CashBalance)) } + sig { returns(T.nilable(::Stripe::CashBalance)) } def cash_balance; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -14200,7 +14350,7 @@ module Stripe # # If you use payment methods created through the PaymentMethods API, see the [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method) field instead. sig { - returns(T.nilable(T.any(String, T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source)))) + returns(T.nilable(T.any(String, T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source)))) } def default_source; end # Tracks the most recent state change on any invoice belonging to the customer. Paying an invoice or marking it uncollectible via the API will set this field to false. An automatic payment failure or passing the `invoice.due_date` will set this field to `true`. @@ -14214,7 +14364,7 @@ module Stripe sig { returns(T.nilable(String)) } def description; end # Describes the current discount active on the customer, if there is one. - sig { returns(T.nilable(Stripe::Discount)) } + sig { returns(T.nilable(::Stripe::Discount)) } def discount; end # The customer's email address. sig { returns(T.nilable(String)) } @@ -14259,10 +14409,10 @@ module Stripe sig { returns(T.nilable(Shipping)) } def shipping; end # The customer's payment sources, if any. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def sources; end # The customer's current subscriptions, if any. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def subscriptions; end # Attribute for field tax sig { returns(T.nilable(Tax)) } @@ -14271,17 +14421,17 @@ module Stripe sig { returns(T.nilable(String)) } def tax_exempt; end # The customer's tax IDs. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def tax_ids; end # ID of the test clock that this customer belongs to. - sig { returns(T.nilable(T.any(String, Stripe::TestHelpers::TestClock))) } + sig { returns(T.nilable(T.any(String, ::Stripe::TestHelpers::TestClock))) } def test_clock; end # Always true for a deleted object sig { returns(T.nilable(T::Boolean)) } def deleted; end # Creates a new customer object. sig { - params(params: T.any(::Stripe::CustomerCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer) + params(params: T.any(::Stripe::CustomerCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Customer) } def self.create(params = {}, opts = {}); end @@ -14289,7 +14439,7 @@ module Stripe # funding instructions will be created. If funding instructions have already been created for a given customer, the same # funding instructions will be retrieved. In other words, we will return the same funding instructions each time. sig { - params(params: T.any(::Stripe::CustomerCreateFundingInstructionsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FundingInstructions) + params(params: T.any(::Stripe::CustomerCreateFundingInstructionsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FundingInstructions) } def create_funding_instructions(params = {}, opts = {}); end @@ -14297,49 +14447,49 @@ module Stripe # funding instructions will be created. If funding instructions have already been created for a given customer, the same # funding instructions will be retrieved. In other words, we will return the same funding instructions each time. sig { - params(customer: String, params: T.any(::Stripe::CustomerCreateFundingInstructionsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FundingInstructions) + params(customer: String, params: T.any(::Stripe::CustomerCreateFundingInstructionsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FundingInstructions) } def self.create_funding_instructions(customer, params = {}, opts = {}); end # Permanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer. sig { - params(customer: String, params: T.any(::Stripe::CustomerDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer) + params(customer: String, params: T.any(::Stripe::CustomerDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Customer) } def self.delete(customer, params = {}, opts = {}); end # Permanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer. sig { - params(params: T.any(::Stripe::CustomerDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer) + params(params: T.any(::Stripe::CustomerDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Customer) } def delete(params = {}, opts = {}); end # Removes the currently applied discount on a customer. sig { - params(params: T.any(::Stripe::CustomerDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Discount) + params(params: T.any(::Stripe::CustomerDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Discount) } def delete_discount(params = {}, opts = {}); end # Removes the currently applied discount on a customer. sig { - params(customer: String, params: T.any(::Stripe::CustomerDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Discount) + params(customer: String, params: T.any(::Stripe::CustomerDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Discount) } def self.delete_discount(customer, params = {}, opts = {}); end # Returns a list of your customers. The customers are returned sorted by creation date, with the most recent customers appearing first. sig { - params(params: T.any(::Stripe::CustomerListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::CustomerListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Returns a list of PaymentMethods for a given Customer sig { - params(params: T.any(::Stripe::CustomerListPaymentMethodsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::CustomerListPaymentMethodsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list_payment_methods(params = {}, opts = {}); end # Returns a list of PaymentMethods for a given Customer sig { - params(customer: String, params: T.any(::Stripe::CustomerListPaymentMethodsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(customer: String, params: T.any(::Stripe::CustomerListPaymentMethodsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list_payment_methods(customer, params = {}, opts = {}); end @@ -14351,23 +14501,23 @@ module Stripe # Retrieves a PaymentMethod object for a given Customer. sig { - params(payment_method: String, params: T.any(::Stripe::CustomerRetrievePaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(payment_method: String, params: T.any(::Stripe::CustomerRetrievePaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def retrieve_payment_method(payment_method, params = {}, opts = {}); end # Retrieves a PaymentMethod object for a given Customer. sig { - params(customer: String, payment_method: String, params: T.any(::Stripe::CustomerRetrievePaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(customer: String, payment_method: String, params: T.any(::Stripe::CustomerRetrievePaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def self.retrieve_payment_method(customer, payment_method, params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::CustomerSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::CustomerSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def self.search(params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::CustomerSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::CustomerSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(::Stripe::SearchResultObject) } def self.search_auto_paging_each(params = {}, opts = {}, &blk); end @@ -14375,7 +14525,7 @@ module Stripe # # This request accepts mostly the same arguments as the customer creation call. sig { - params(customer: String, params: T.any(::Stripe::CustomerUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer) + params(customer: String, params: T.any(::Stripe::CustomerUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Customer) } def self.update(customer, params = {}, opts = {}); end @@ -14399,19 +14549,19 @@ module Stripe sig { returns(Integer) } def amount; end # The ID of the checkout session (if any) that created the transaction. - sig { returns(T.nilable(T.any(String, Stripe::Checkout::Session))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Checkout::Session))) } def checkout_session; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } def created; end # The ID of the credit note (if any) related to the transaction. - sig { returns(T.nilable(T.any(String, Stripe::CreditNote))) } + sig { returns(T.nilable(T.any(String, ::Stripe::CreditNote))) } def credit_note; end # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end # The ID of the customer the transaction belongs to. - sig { returns(T.any(String, Stripe::Customer)) } + sig { returns(T.any(String, ::Stripe::Customer)) } def customer; end # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } @@ -14423,7 +14573,7 @@ module Stripe sig { returns(String) } def id; end # The ID of the invoice (if any) related to the transaction. - sig { returns(T.nilable(T.any(String, Stripe::Invoice))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Invoice))) } def invoice; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -14443,7 +14593,7 @@ end module Stripe # A customer's `Cash balance` represents real funds. Customers can add funds to their cash balance by sending a bank transfer. These funds can be used for payment and can eventually be paid out to your bank account. class CashBalance < APIResource - class Settings < Stripe::StripeObject + class Settings < ::Stripe::StripeObject # The configuration for how funds that land in the customer cash balance are reconciled. sig { returns(String) } def reconciliation_mode; end @@ -14481,12 +14631,12 @@ module Stripe # represent when funds are moved into or out of this balance. This includes funding by the customer, allocation # to payments, and refunds to the customer. class CustomerCashBalanceTransaction < APIResource - class AdjustedForOverdraft < Stripe::StripeObject + class AdjustedForOverdraft < ::Stripe::StripeObject # The [Balance Transaction](https://stripe.com/docs/api/balance_transactions/object) that corresponds to funds taken out of your Stripe balance. - sig { returns(T.any(String, Stripe::BalanceTransaction)) } + sig { returns(T.any(String, ::Stripe::BalanceTransaction)) } def balance_transaction; end # The [Cash Balance Transaction](https://stripe.com/docs/api/cash_balance_transactions/object) that brought the customer balance negative, triggering the clawback of funds. - sig { returns(T.any(String, Stripe::CustomerCashBalanceTransaction)) } + sig { returns(T.any(String, ::Stripe::CustomerCashBalanceTransaction)) } def linked_transaction; end def self.inner_class_types @inner_class_types = {} @@ -14495,9 +14645,9 @@ module Stripe @field_remappings = {} end end - class AppliedToPayment < Stripe::StripeObject + class AppliedToPayment < ::Stripe::StripeObject # The [Payment Intent](https://stripe.com/docs/api/payment_intents/object) that funds were applied to. - sig { returns(T.any(String, Stripe::PaymentIntent)) } + sig { returns(T.any(String, ::Stripe::PaymentIntent)) } def payment_intent; end def self.inner_class_types @inner_class_types = {} @@ -14506,9 +14656,9 @@ module Stripe @field_remappings = {} end end - class Funded < Stripe::StripeObject - class BankTransfer < Stripe::StripeObject - class EuBankTransfer < Stripe::StripeObject + class Funded < ::Stripe::StripeObject + class BankTransfer < ::Stripe::StripeObject + class EuBankTransfer < ::Stripe::StripeObject # The BIC of the bank of the sender of the funding. sig { returns(T.nilable(String)) } def bic; end @@ -14525,7 +14675,7 @@ module Stripe @field_remappings = {} end end - class GbBankTransfer < Stripe::StripeObject + class GbBankTransfer < ::Stripe::StripeObject # The last 4 digits of the account number of the sender of the funding. sig { returns(T.nilable(String)) } def account_number_last4; end @@ -14542,7 +14692,7 @@ module Stripe @field_remappings = {} end end - class JpBankTransfer < Stripe::StripeObject + class JpBankTransfer < ::Stripe::StripeObject # The name of the bank of the sender of the funding. sig { returns(T.nilable(String)) } def sender_bank; end @@ -14559,7 +14709,7 @@ module Stripe @field_remappings = {} end end - class UsBankTransfer < Stripe::StripeObject + class UsBankTransfer < ::Stripe::StripeObject # The banking network used for this funding. sig { returns(T.nilable(String)) } def network; end @@ -14613,9 +14763,9 @@ module Stripe @field_remappings = {} end end - class RefundedFromPayment < Stripe::StripeObject + class RefundedFromPayment < ::Stripe::StripeObject # The [Refund](https://stripe.com/docs/api/refunds/object) that moved these funds into the customer's cash balance. - sig { returns(T.any(String, Stripe::Refund)) } + sig { returns(T.any(String, ::Stripe::Refund)) } def refund; end def self.inner_class_types @inner_class_types = {} @@ -14624,9 +14774,9 @@ module Stripe @field_remappings = {} end end - class TransferredToBalance < Stripe::StripeObject + class TransferredToBalance < ::Stripe::StripeObject # The [Balance Transaction](https://stripe.com/docs/api/balance_transactions/object) that corresponds to funds transferred to your Stripe balance. - sig { returns(T.any(String, Stripe::BalanceTransaction)) } + sig { returns(T.any(String, ::Stripe::BalanceTransaction)) } def balance_transaction; end def self.inner_class_types @inner_class_types = {} @@ -14635,9 +14785,9 @@ module Stripe @field_remappings = {} end end - class UnappliedFromPayment < Stripe::StripeObject + class UnappliedFromPayment < ::Stripe::StripeObject # The [Payment Intent](https://stripe.com/docs/api/payment_intents/object) that funds were unapplied from. - sig { returns(T.any(String, Stripe::PaymentIntent)) } + sig { returns(T.any(String, ::Stripe::PaymentIntent)) } def payment_intent; end def self.inner_class_types @inner_class_types = {} @@ -14659,7 +14809,7 @@ module Stripe sig { returns(String) } def currency; end # The customer whose available cash balance changed as a result of this transaction. - sig { returns(T.any(String, Stripe::Customer)) } + sig { returns(T.any(String, ::Stripe::Customer)) } def customer; end # The total available cash balance for the specified currency after this transaction was applied. Represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). sig { returns(Integer) } @@ -14701,11 +14851,11 @@ module Stripe # # Related guide: [Disputes and fraud](https://stripe.com/docs/disputes) class Dispute < APIResource - class Evidence < Stripe::StripeObject - class EnhancedEvidence < Stripe::StripeObject - class VisaCompellingEvidence3 < Stripe::StripeObject - class DisputedTransaction < Stripe::StripeObject - class ShippingAddress < Stripe::StripeObject + class Evidence < ::Stripe::StripeObject + class EnhancedEvidence < ::Stripe::StripeObject + class VisaCompellingEvidence3 < ::Stripe::StripeObject + class DisputedTransaction < ::Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -14762,8 +14912,8 @@ module Stripe @field_remappings = {} end end - class PriorUndisputedTransaction < Stripe::StripeObject - class ShippingAddress < Stripe::StripeObject + class PriorUndisputedTransaction < ::Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -14836,7 +14986,7 @@ module Stripe @field_remappings = {} end end - class VisaCompliance < Stripe::StripeObject + class VisaCompliance < ::Stripe::StripeObject # A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute. sig { returns(T::Boolean) } def fee_acknowledged; end @@ -14870,7 +15020,7 @@ module Stripe sig { returns(T.nilable(String)) } def billing_address; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Your subscription cancellation policy, as shown to the customer. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def cancellation_policy; end # An explanation of how and when the customer was shown your refund policy prior to purchase. sig { returns(T.nilable(String)) } @@ -14879,7 +15029,7 @@ module Stripe sig { returns(T.nilable(String)) } def cancellation_rebuttal; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any communication with the customer that you feel is relevant to your case. Examples include emails proving that the customer received the product or service, or demonstrating their use of or satisfaction with the product or service. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def customer_communication; end # The email address of the customer. sig { returns(T.nilable(String)) } @@ -14891,10 +15041,10 @@ module Stripe sig { returns(T.nilable(String)) } def customer_purchase_ip; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A relevant document or contract showing the customer's signature. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def customer_signature; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Documentation for the prior charge that can uniquely identify the charge, such as a receipt, shipping label, work order, etc. This document should be paired with a similar document from the disputed payment that proves the two payments are separate. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def duplicate_charge_documentation; end # An explanation of the difference between the disputed charge versus the prior charge that appears to be a duplicate. sig { returns(T.nilable(String)) } @@ -14909,10 +15059,10 @@ module Stripe sig { returns(T.nilable(String)) } def product_description; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any receipt or message sent to the customer notifying them of the charge. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def receipt; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Your refund policy, as shown to the customer. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def refund_policy; end # Documentation demonstrating that the customer was shown your refund policy prior to purchase. sig { returns(T.nilable(String)) } @@ -14924,7 +15074,7 @@ module Stripe sig { returns(T.nilable(String)) } def service_date; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Documentation showing proof that a service was provided to the customer. This could include a copy of a signed contract, work order, or other form of written agreement. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def service_documentation; end # The address to which a physical product was shipped. You should try to include as complete address information as possible. sig { returns(T.nilable(String)) } @@ -14936,13 +15086,13 @@ module Stripe sig { returns(T.nilable(String)) } def shipping_date; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Documentation showing proof that a product was shipped to the customer at the same address the customer provided to you. This could include a copy of the shipment receipt, shipping label, etc. It should show the customer's full shipping address, if possible. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def shipping_documentation; end # The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas. sig { returns(T.nilable(String)) } def shipping_tracking_number; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any additional evidence or statements. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def uncategorized_file; end # Any additional evidence or statements. sig { returns(T.nilable(String)) } @@ -14954,9 +15104,9 @@ module Stripe @field_remappings = {} end end - class EvidenceDetails < Stripe::StripeObject - class EnhancedEligibility < Stripe::StripeObject - class VisaCompellingEvidence3 < Stripe::StripeObject + class EvidenceDetails < ::Stripe::StripeObject + class EnhancedEligibility < ::Stripe::StripeObject + class VisaCompellingEvidence3 < ::Stripe::StripeObject # List of actions required to qualify dispute for Visa Compelling Evidence 3.0 evidence submission. sig { returns(T::Array[String]) } def required_actions; end @@ -14970,7 +15120,7 @@ module Stripe @field_remappings = {} end end - class VisaCompliance < Stripe::StripeObject + class VisaCompliance < ::Stripe::StripeObject # Visa compliance eligibility status. sig { returns(String) } def status; end @@ -15019,8 +15169,8 @@ module Stripe @field_remappings = {} end end - class PaymentMethodDetails < Stripe::StripeObject - class AmazonPay < Stripe::StripeObject + class PaymentMethodDetails < ::Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject # The AmazonPay dispute type, chargeback or claim sig { returns(T.nilable(String)) } def dispute_type; end @@ -15031,7 +15181,7 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject + class Card < ::Stripe::StripeObject # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. sig { returns(String) } def brand; end @@ -15048,7 +15198,7 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject # Chargeback loss reason mapped by Stripe from Klarna's chargeback loss reason sig { returns(T.nilable(String)) } def chargeback_loss_reason_code; end @@ -15062,7 +15212,7 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # The ID of the dispute in PayPal. sig { returns(T.nilable(String)) } def case_id; end @@ -15102,10 +15252,10 @@ module Stripe sig { returns(Integer) } def amount; end # List of zero, one, or two balance transactions that show funds withdrawn and reinstated to your Stripe account as a result of this dispute. - sig { returns(T::Array[Stripe::BalanceTransaction]) } + sig { returns(T::Array[::Stripe::BalanceTransaction]) } def balance_transactions; end # ID of the charge that's disputed. - sig { returns(T.any(String, Stripe::Charge)) } + sig { returns(T.any(String, ::Stripe::Charge)) } def charge; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -15141,7 +15291,7 @@ module Stripe sig { returns(String) } def object; end # ID of the PaymentIntent that's disputed. - sig { returns(T.nilable(T.any(String, Stripe::PaymentIntent))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntent))) } def payment_intent; end # Attribute for field payment_method_details sig { returns(T.nilable(PaymentMethodDetails)) } @@ -15156,7 +15306,7 @@ module Stripe # # The status of the dispute will change from needs_response to lost. Closing a dispute is irreversible. sig { - params(params: T.any(::Stripe::DisputeCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Dispute) + params(params: T.any(::Stripe::DisputeCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Dispute) } def close(params = {}, opts = {}); end @@ -15164,13 +15314,13 @@ module Stripe # # The status of the dispute will change from needs_response to lost. Closing a dispute is irreversible. sig { - params(dispute: String, params: T.any(::Stripe::DisputeCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Dispute) + params(dispute: String, params: T.any(::Stripe::DisputeCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Dispute) } def self.close(dispute, params = {}, opts = {}); end # Returns a list of your disputes. sig { - params(params: T.any(::Stripe::DisputeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::DisputeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end @@ -15178,7 +15328,7 @@ module Stripe # # Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our [guide to dispute types](https://docs.stripe.com/docs/disputes/categories). sig { - params(dispute: String, params: T.any(::Stripe::DisputeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Dispute) + params(dispute: String, params: T.any(::Stripe::DisputeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Dispute) } def self.update(dispute, params = {}, opts = {}); end end @@ -15189,7 +15339,7 @@ module Stripe # An active entitlement describes access to a feature for a customer. class ActiveEntitlement < APIResource # The [Feature](https://stripe.com/docs/api/entitlements/feature) that the customer is entitled to. - sig { returns(T.any(String, Stripe::Entitlements::Feature)) } + sig { returns(T.any(String, ::Stripe::Entitlements::Feature)) } def feature; end # Unique identifier for the object. sig { returns(String) } @@ -15205,7 +15355,7 @@ module Stripe def object; end # Retrieve a list of active entitlements for a customer sig { - params(params: T.any(::Stripe::Entitlements::ActiveEntitlementListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Entitlements::ActiveEntitlementListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -15240,19 +15390,19 @@ module Stripe def object; end # Creates a feature sig { - params(params: T.any(::Stripe::Entitlements::FeatureCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Entitlements::Feature) + params(params: T.any(::Stripe::Entitlements::FeatureCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Entitlements::Feature) } def self.create(params = {}, opts = {}); end # Retrieve a list of features sig { - params(params: T.any(::Stripe::Entitlements::FeatureListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Entitlements::FeatureListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Update a feature's metadata or permanently deactivate it. sig { - params(id: String, params: T.any(::Stripe::Entitlements::FeatureUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Entitlements::Feature) + params(id: String, params: T.any(::Stripe::Entitlements::FeatureUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Entitlements::Feature) } def self.update(id, params = {}, opts = {}); end end @@ -15281,13 +15431,13 @@ module Stripe def secret; end # Invalidates a short-lived API key for a given resource. sig { - params(key: String, params: T.any(::Stripe::EphemeralKeyDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::EphemeralKey) + params(key: String, params: T.any(::Stripe::EphemeralKeyDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::EphemeralKey) } def self.delete(key, params = {}, opts = {}); end # Invalidates a short-lived API key for a given resource. sig { - params(params: T.any(::Stripe::EphemeralKeyDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::EphemeralKey) + params(params: T.any(::Stripe::EphemeralKeyDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::EphemeralKey) } def delete(params = {}, opts = {}); end end @@ -15313,7 +15463,7 @@ module Stripe # You can access events through the [Retrieve Event API](https://docs.stripe.com/api/events#retrieve_event) # for 30 days. class Event < APIResource - class Data < Stripe::StripeObject + class Data < ::Stripe::StripeObject # Object containing the API resource relevant to the event. For example, an `invoice.created` event will have a full [invoice object](https://stripe.com/docs/api#invoice_object) as the value of the object key. sig { returns(T::Hash[String, T.untyped]) } def object; end @@ -15327,7 +15477,7 @@ module Stripe @field_remappings = {} end end - class Request < Stripe::StripeObject + class Request < ::Stripe::StripeObject # ID of the API request that caused the event. If null, the event was automatic (e.g., Stripe's automatic subscription handling). Request logs are available in the [dashboard](https://dashboard.stripe.com/logs), but currently not in the API. sig { returns(T.nilable(String)) } def id; end @@ -15376,7 +15526,7 @@ module Stripe def type; end # List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://docs.stripe.com/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header). sig { - params(params: T.any(::Stripe::EventListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::EventListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -15425,7 +15575,7 @@ module Stripe # # Returns a list of objects that contain the rates at which foreign currencies are converted to one another. Only shows the currencies for which Stripe supports. sig { - params(params: T.any(::Stripe::ExchangeRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ExchangeRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -15446,7 +15596,7 @@ module Stripe sig { returns(T.nilable(Integer)) } def expires_at; end # The file object this link points to. - sig { returns(T.any(String, Stripe::File)) } + sig { returns(T.any(String, ::Stripe::File)) } def file; end # Unique identifier for the object. sig { returns(String) } @@ -15465,19 +15615,19 @@ module Stripe def url; end # Creates a new file link object. sig { - params(params: T.any(::Stripe::FileLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FileLink) + params(params: T.any(::Stripe::FileLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FileLink) } def self.create(params = {}, opts = {}); end # Returns a list of file links. sig { - params(params: T.any(::Stripe::FileLinkListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::FileLinkListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates an existing file link object. Expired links can no longer be updated. sig { - params(link: String, params: T.any(::Stripe::FileLinkUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FileLink) + params(link: String, params: T.any(::Stripe::FileLinkUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FileLink) } def self.update(link, params = {}, opts = {}); end end @@ -15505,7 +15655,7 @@ module Stripe sig { returns(String) } def id; end # A list of [file links](https://stripe.com/docs/api#file_links) that point at this file. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def links; end # String representing the object's type. Objects of the same type share the same value. sig { returns(String) } @@ -15529,13 +15679,13 @@ module Stripe # # All of Stripe's officially supported Client libraries support sending multipart/form-data. sig { - params(params: T.any(::Stripe::FileCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::File) + params(params: T.any(::Stripe::FileCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::File) } def self.create(params = {}, opts = {}); end # Returns a list of the files that your account has access to. Stripe sorts and returns the files by their creation dates, placing the most recently created files at the top. sig { - params(params: T.any(::Stripe::FileListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::FileListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -15545,12 +15695,12 @@ module Stripe module FinancialConnections # A Financial Connections Account represents an account that exists outside of Stripe, to which you have been granted some degree of access. class Account < APIResource - class AccountHolder < Stripe::StripeObject + class AccountHolder < ::Stripe::StripeObject # The ID of the Stripe account this account belongs to. Should only be present if `account_holder.type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # ID of the Stripe customer this account belongs to. Present if and only if `account_holder.type` is `customer`. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # Type of account holder that this account belongs to. sig { returns(String) } @@ -15562,8 +15712,8 @@ module Stripe @field_remappings = {} end end - class Balance < Stripe::StripeObject - class Cash < Stripe::StripeObject + class Balance < ::Stripe::StripeObject + class Cash < ::Stripe::StripeObject # The funds available to the account holder. Typically this is the current balance after subtracting any outbound pending transactions and adding any inbound pending transactions. # # Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. @@ -15578,7 +15728,7 @@ module Stripe @field_remappings = {} end end - class Credit < Stripe::StripeObject + class Credit < ::Stripe::StripeObject # The credit that has been used by the account holder. # # Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. @@ -15619,7 +15769,7 @@ module Stripe @field_remappings = {} end end - class BalanceRefresh < Stripe::StripeObject + class BalanceRefresh < ::Stripe::StripeObject # The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch. sig { returns(Integer) } def last_attempted_at; end @@ -15636,7 +15786,7 @@ module Stripe @field_remappings = {} end end - class OwnershipRefresh < Stripe::StripeObject + class OwnershipRefresh < ::Stripe::StripeObject # The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch. sig { returns(Integer) } def last_attempted_at; end @@ -15653,7 +15803,7 @@ module Stripe @field_remappings = {} end end - class TransactionRefresh < Stripe::StripeObject + class TransactionRefresh < ::Stripe::StripeObject # Unique identifier for the object. sig { returns(String) } def id; end @@ -15707,7 +15857,7 @@ module Stripe sig { returns(String) } def object; end # The most recent information about the account's owners. - sig { returns(T.nilable(T.any(String, Stripe::FinancialConnections::AccountOwnership))) } + sig { returns(T.nilable(T.any(String, ::Stripe::FinancialConnections::AccountOwnership))) } def ownership; end # The state of the most recent attempt to refresh the account owners. sig { returns(T.nilable(OwnershipRefresh)) } @@ -15745,67 +15895,67 @@ module Stripe def transaction_refresh; end # Disables your access to a Financial Connections Account. You will no longer be able to access data associated with the account (e.g. balances, transactions). sig { - params(params: T.any(::Stripe::FinancialConnections::AccountDisconnectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(params: T.any(::Stripe::FinancialConnections::AccountDisconnectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def disconnect(params = {}, opts = {}); end # Disables your access to a Financial Connections Account. You will no longer be able to access data associated with the account (e.g. balances, transactions). sig { - params(account: String, params: T.any(::Stripe::FinancialConnections::AccountDisconnectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(account: String, params: T.any(::Stripe::FinancialConnections::AccountDisconnectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def self.disconnect(account, params = {}, opts = {}); end # Returns a list of Financial Connections Account objects. sig { - params(params: T.any(::Stripe::FinancialConnections::AccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::FinancialConnections::AccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Lists all owners for a given Account sig { - params(params: T.any(::Stripe::FinancialConnections::AccountListOwnersParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::FinancialConnections::AccountListOwnersParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list_owners(params = {}, opts = {}); end # Lists all owners for a given Account sig { - params(account: String, params: T.any(::Stripe::FinancialConnections::AccountListOwnersParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(account: String, params: T.any(::Stripe::FinancialConnections::AccountListOwnersParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list_owners(account, params = {}, opts = {}); end # Refreshes the data associated with a Financial Connections Account. sig { - params(params: T.any(::Stripe::FinancialConnections::AccountRefreshAccountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(params: T.any(::Stripe::FinancialConnections::AccountRefreshAccountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def refresh_account(params = {}, opts = {}); end # Refreshes the data associated with a Financial Connections Account. sig { - params(account: String, params: T.any(::Stripe::FinancialConnections::AccountRefreshAccountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(account: String, params: T.any(::Stripe::FinancialConnections::AccountRefreshAccountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def self.refresh_account(account, params = {}, opts = {}); end - # Subscribes to periodic refreshes of data associated with a Financial Connections Account. + # Subscribes to periodic refreshes of data associated with a Financial Connections Account. When the account status is active, data is typically refreshed once a day. sig { - params(params: T.any(::Stripe::FinancialConnections::AccountSubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(params: T.any(::Stripe::FinancialConnections::AccountSubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def subscribe(params = {}, opts = {}); end - # Subscribes to periodic refreshes of data associated with a Financial Connections Account. + # Subscribes to periodic refreshes of data associated with a Financial Connections Account. When the account status is active, data is typically refreshed once a day. sig { - params(account: String, params: T.any(::Stripe::FinancialConnections::AccountSubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(account: String, params: T.any(::Stripe::FinancialConnections::AccountSubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def self.subscribe(account, params = {}, opts = {}); end # Unsubscribes from periodic refreshes of data associated with a Financial Connections Account. sig { - params(params: T.any(::Stripe::FinancialConnections::AccountUnsubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(params: T.any(::Stripe::FinancialConnections::AccountUnsubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def unsubscribe(params = {}, opts = {}); end # Unsubscribes from periodic refreshes of data associated with a Financial Connections Account. sig { - params(account: String, params: T.any(::Stripe::FinancialConnections::AccountUnsubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(account: String, params: T.any(::Stripe::FinancialConnections::AccountUnsubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def self.unsubscribe(account, params = {}, opts = {}); end end @@ -15816,12 +15966,12 @@ module Stripe module FinancialConnections # A Financial Connections Session is the secure way to programmatically launch the client-side Stripe.js modal that lets your users link their accounts. class Session < APIResource - class AccountHolder < Stripe::StripeObject + class AccountHolder < ::Stripe::StripeObject # The ID of the Stripe account this account belongs to. Should only be present if `account_holder.type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # ID of the Stripe customer this account belongs to. Present if and only if `account_holder.type` is `customer`. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # Type of account holder that this account belongs to. sig { returns(String) } @@ -15833,7 +15983,7 @@ module Stripe @field_remappings = {} end end - class Filters < Stripe::StripeObject + class Filters < ::Stripe::StripeObject # Restricts the Session to subcategories of accounts that can be linked. Valid subcategories are: `checking`, `savings`, `mortgage`, `line_of_credit`, `credit_card`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -15851,7 +16001,7 @@ module Stripe sig { returns(T.nilable(AccountHolder)) } def account_holder; end # The accounts that were collected as part of this Session. - sig { returns(Stripe::ListObject) } + sig { returns(::Stripe::ListObject) } def accounts; end # A value that will be passed to the client to launch the authentication flow. sig { returns(String) } @@ -15879,7 +16029,7 @@ module Stripe def return_url; end # To launch the Financial Connections authorization flow, create a Session. The session's client_secret can be used to launch the flow using Stripe.js. sig { - params(params: T.any(::Stripe::FinancialConnections::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Session) + params(params: T.any(::Stripe::FinancialConnections::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Session) } def self.create(params = {}, opts = {}); end end @@ -15890,7 +16040,7 @@ module Stripe module FinancialConnections # A Transaction represents a real transaction that affects a Financial Connections Account balance. class Transaction < APIResource - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # Time at which this transaction posted. Measured in seconds since the Unix epoch. sig { returns(T.nilable(Integer)) } def posted_at; end @@ -15942,7 +16092,7 @@ module Stripe def updated; end # Returns a list of Financial Connections Transaction objects. sig { - params(params: T.any(::Stripe::FinancialConnections::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::FinancialConnections::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -15968,7 +16118,7 @@ module Stripe # # Related guide: [Forward card details to third-party API endpoints](https://docs.stripe.com/payments/forwarding). class Request < APIResource - class RequestContext < Stripe::StripeObject + class RequestContext < ::Stripe::StripeObject # The time it took in milliseconds for the destination endpoint to respond. sig { returns(Integer) } def destination_duration; end @@ -15982,8 +16132,8 @@ module Stripe @field_remappings = {} end end - class RequestDetails < Stripe::StripeObject - class Header < Stripe::StripeObject + class RequestDetails < ::Stripe::StripeObject + class Header < ::Stripe::StripeObject # The header name. sig { returns(String) } def name; end @@ -16013,8 +16163,8 @@ module Stripe @field_remappings = {} end end - class ResponseDetails < Stripe::StripeObject - class Header < Stripe::StripeObject + class ResponseDetails < ::Stripe::StripeObject + class Header < ::Stripe::StripeObject # The header name. sig { returns(String) } def name; end @@ -16079,13 +16229,13 @@ module Stripe def url; end # Creates a ForwardingRequest object. sig { - params(params: T.any(::Stripe::Forwarding::RequestCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Forwarding::Request) + params(params: T.any(::Stripe::Forwarding::RequestCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Forwarding::Request) } def self.create(params = {}, opts = {}); end # Lists all ForwardingRequest objects. sig { - params(params: T.any(::Stripe::Forwarding::RequestListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Forwarding::RequestListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -16106,8 +16256,8 @@ module Stripe # # Related guide: [Accessing verification results](https://stripe.com/docs/identity/verification-sessions#results). class VerificationReport < APIResource - class Document < Stripe::StripeObject - class Address < Stripe::StripeObject + class Document < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -16133,7 +16283,7 @@ module Stripe @field_remappings = {} end end - class Dob < Stripe::StripeObject + class Dob < ::Stripe::StripeObject # Numerical day between 1 and 31. sig { returns(T.nilable(Integer)) } def day; end @@ -16150,7 +16300,7 @@ module Stripe @field_remappings = {} end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # A short machine-readable string giving the reason for the verification failure. sig { returns(T.nilable(String)) } def code; end @@ -16164,7 +16314,7 @@ module Stripe @field_remappings = {} end end - class ExpirationDate < Stripe::StripeObject + class ExpirationDate < ::Stripe::StripeObject # Numerical day between 1 and 31. sig { returns(T.nilable(Integer)) } def day; end @@ -16181,7 +16331,7 @@ module Stripe @field_remappings = {} end end - class IssuedDate < Stripe::StripeObject + class IssuedDate < ::Stripe::StripeObject # Numerical day between 1 and 31. sig { returns(T.nilable(Integer)) } def day; end @@ -16256,8 +16406,8 @@ module Stripe @field_remappings = {} end end - class Email < Stripe::StripeObject - class Error < Stripe::StripeObject + class Email < ::Stripe::StripeObject + class Error < ::Stripe::StripeObject # A short machine-readable string giving the reason for the verification failure. sig { returns(T.nilable(String)) } def code; end @@ -16287,8 +16437,8 @@ module Stripe @field_remappings = {} end end - class IdNumber < Stripe::StripeObject - class Dob < Stripe::StripeObject + class IdNumber < ::Stripe::StripeObject + class Dob < ::Stripe::StripeObject # Numerical day between 1 and 31. sig { returns(T.nilable(Integer)) } def day; end @@ -16305,7 +16455,7 @@ module Stripe @field_remappings = {} end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # A short machine-readable string giving the reason for the verification failure. sig { returns(T.nilable(String)) } def code; end @@ -16347,8 +16497,8 @@ module Stripe @field_remappings = {} end end - class Options < Stripe::StripeObject - class Document < Stripe::StripeObject + class Options < ::Stripe::StripeObject + class Document < ::Stripe::StripeObject # Array of strings of allowed identity document types. If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code. sig { returns(T.nilable(T::Array[String])) } def allowed_types; end @@ -16368,7 +16518,7 @@ module Stripe @field_remappings = {} end end - class IdNumber < Stripe::StripeObject + class IdNumber < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -16389,8 +16539,8 @@ module Stripe @field_remappings = {} end end - class Phone < Stripe::StripeObject - class Error < Stripe::StripeObject + class Phone < ::Stripe::StripeObject + class Error < ::Stripe::StripeObject # A short machine-readable string giving the reason for the verification failure. sig { returns(T.nilable(String)) } def code; end @@ -16420,8 +16570,8 @@ module Stripe @field_remappings = {} end end - class Selfie < Stripe::StripeObject - class Error < Stripe::StripeObject + class Selfie < ::Stripe::StripeObject + class Error < ::Stripe::StripeObject # A short machine-readable string giving the reason for the verification failure. sig { returns(T.nilable(String)) } def code; end @@ -16498,7 +16648,7 @@ module Stripe def verification_session; end # List all verification reports. sig { - params(params: T.any(::Stripe::Identity::VerificationReportListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Identity::VerificationReportListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -16519,7 +16669,7 @@ module Stripe # # Related guide: [The Verification Sessions API](https://stripe.com/docs/identity/verification-sessions) class VerificationSession < APIResource - class LastError < Stripe::StripeObject + class LastError < ::Stripe::StripeObject # A short machine-readable string giving the reason for the verification or user-session failure. sig { returns(T.nilable(String)) } def code; end @@ -16533,8 +16683,8 @@ module Stripe @field_remappings = {} end end - class Options < Stripe::StripeObject - class Document < Stripe::StripeObject + class Options < ::Stripe::StripeObject + class Document < ::Stripe::StripeObject # Array of strings of allowed identity document types. If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code. sig { returns(T.nilable(T::Array[String])) } def allowed_types; end @@ -16554,7 +16704,7 @@ module Stripe @field_remappings = {} end end - class Email < Stripe::StripeObject + class Email < ::Stripe::StripeObject # Request one time password verification of `provided_details.email`. sig { returns(T.nilable(T::Boolean)) } def require_verification; end @@ -16565,7 +16715,7 @@ module Stripe @field_remappings = {} end end - class IdNumber < Stripe::StripeObject + class IdNumber < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -16573,7 +16723,7 @@ module Stripe @field_remappings = {} end end - class Matching < Stripe::StripeObject + class Matching < ::Stripe::StripeObject # Strictness of the DOB matching policy to apply. sig { returns(T.nilable(String)) } def dob; end @@ -16587,7 +16737,7 @@ module Stripe @field_remappings = {} end end - class Phone < Stripe::StripeObject + class Phone < ::Stripe::StripeObject # Request one time password verification of `provided_details.phone`. sig { returns(T.nilable(T::Boolean)) } def require_verification; end @@ -16626,7 +16776,7 @@ module Stripe @field_remappings = {} end end - class ProvidedDetails < Stripe::StripeObject + class ProvidedDetails < ::Stripe::StripeObject # Email of user being verified sig { returns(T.nilable(String)) } def email; end @@ -16640,7 +16790,7 @@ module Stripe @field_remappings = {} end end - class Redaction < Stripe::StripeObject + class Redaction < ::Stripe::StripeObject # Indicates whether this object and its related objects have been redacted or not. sig { returns(String) } def status; end @@ -16651,7 +16801,7 @@ module Stripe @field_remappings = {} end end - class RelatedPerson < Stripe::StripeObject + class RelatedPerson < ::Stripe::StripeObject # Token referencing the associated Account of the related Person resource. sig { returns(String) } def account; end @@ -16665,8 +16815,8 @@ module Stripe @field_remappings = {} end end - class VerifiedOutputs < Stripe::StripeObject - class Address < Stripe::StripeObject + class VerifiedOutputs < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -16692,7 +16842,7 @@ module Stripe @field_remappings = {} end end - class Dob < Stripe::StripeObject + class Dob < ::Stripe::StripeObject # Numerical day between 1 and 31. sig { returns(T.nilable(Integer)) } def day; end @@ -16765,7 +16915,7 @@ module Stripe sig { returns(T.nilable(LastError)) } def last_error; end # ID of the most recent VerificationReport. [Learn more about accessing detailed verification results.](https://stripe.com/docs/identity/verification-sessions#results) - sig { returns(T.nilable(T.any(String, Stripe::Identity::VerificationReport))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Identity::VerificationReport))) } def last_verification_report; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -16810,7 +16960,7 @@ module Stripe # # Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#cancel). sig { - params(params: T.any(::Stripe::Identity::VerificationSessionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(params: T.any(::Stripe::Identity::VerificationSessionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationSession) } def cancel(params = {}, opts = {}); end @@ -16818,7 +16968,7 @@ module Stripe # # Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#cancel). sig { - params(session: String, params: T.any(::Stripe::Identity::VerificationSessionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(session: String, params: T.any(::Stripe::Identity::VerificationSessionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationSession) } def self.cancel(session, params = {}, opts = {}); end @@ -16830,13 +16980,13 @@ module Stripe # # Related guide: [Verify your users' identity documents](https://docs.stripe.com/docs/identity/verify-identity-documents) sig { - params(params: T.any(::Stripe::Identity::VerificationSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(params: T.any(::Stripe::Identity::VerificationSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationSession) } def self.create(params = {}, opts = {}); end # Returns a list of VerificationSessions sig { - params(params: T.any(::Stripe::Identity::VerificationSessionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Identity::VerificationSessionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end @@ -16860,7 +17010,7 @@ module Stripe # # [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#redact). sig { - params(params: T.any(::Stripe::Identity::VerificationSessionRedactParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(params: T.any(::Stripe::Identity::VerificationSessionRedactParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationSession) } def redact(params = {}, opts = {}); end @@ -16884,7 +17034,7 @@ module Stripe # # [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#redact). sig { - params(session: String, params: T.any(::Stripe::Identity::VerificationSessionRedactParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(session: String, params: T.any(::Stripe::Identity::VerificationSessionRedactParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationSession) } def self.redact(session, params = {}, opts = {}); end @@ -16893,7 +17043,7 @@ module Stripe # When the session status is requires_input, you can use this method to update the # verification check and options. sig { - params(session: String, params: T.any(::Stripe::Identity::VerificationSessionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(session: String, params: T.any(::Stripe::Identity::VerificationSessionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationSession) } def self.update(session, params = {}, opts = {}); end end @@ -16910,13 +17060,16 @@ module Stripe # This resource and its endpoints allows you to easily track if a payment is associated with a specific invoice and # monitor the allocation details of the payments. class InvoicePayment < APIResource - class Payment < Stripe::StripeObject + class Payment < ::Stripe::StripeObject # ID of the successful charge for this payment when `type` is `charge`.Note: charge is only surfaced if the charge object is not associated with a payment intent. If the charge object does have a payment intent, the Invoice Payment surfaces the payment intent instead. - sig { returns(T.nilable(T.any(String, Stripe::Charge))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Charge))) } def charge; end # ID of the PaymentIntent associated with this payment when `type` is `payment_intent`. Note: This property is only populated for invoices finalized on or after March 15th, 2019. - sig { returns(T.nilable(T.any(String, Stripe::PaymentIntent))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntent))) } def payment_intent; end + # ID of the PaymentRecord associated with this payment when `type` is `payment_record`. + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentRecord))) } + def payment_record; end # Type of payment object associated with this invoice payment. sig { returns(String) } def type; end @@ -16927,7 +17080,7 @@ module Stripe @field_remappings = {} end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # The time that the payment was canceled. sig { returns(T.nilable(Integer)) } def canceled_at; end @@ -16957,7 +17110,7 @@ module Stripe sig { returns(String) } def id; end # The invoice that was paid. - sig { returns(T.any(String, Stripe::Invoice)) } + sig { returns(T.any(String, ::Stripe::Invoice)) } def invoice; end # Stripe automatically creates a default InvoicePayment when the invoice is finalized, and keeps it synchronized with the invoice’s `amount_remaining`. The PaymentIntent associated with the default payment can’t be edited or canceled directly. sig { returns(T::Boolean) } @@ -16979,7 +17132,7 @@ module Stripe def status_transitions; end # When retrieving an invoice, there is an includable payments property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of payments. sig { - params(params: T.any(::Stripe::InvoicePaymentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::InvoicePaymentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -17015,31 +17168,31 @@ module Stripe def version; end # Updates the status of an invoice rendering template to ‘archived' so no new Stripe objects (customers, invoices, etc.) can reference it. The template can also no longer be updated. However, if the template is already set on a Stripe object, it will continue to be applied on invoices generated by it. sig { - params(params: T.any(::Stripe::InvoiceRenderingTemplateArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceRenderingTemplate) + params(params: T.any(::Stripe::InvoiceRenderingTemplateArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceRenderingTemplate) } def archive(params = {}, opts = {}); end # Updates the status of an invoice rendering template to ‘archived' so no new Stripe objects (customers, invoices, etc.) can reference it. The template can also no longer be updated. However, if the template is already set on a Stripe object, it will continue to be applied on invoices generated by it. sig { - params(template: String, params: T.any(::Stripe::InvoiceRenderingTemplateArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceRenderingTemplate) + params(template: String, params: T.any(::Stripe::InvoiceRenderingTemplateArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceRenderingTemplate) } def self.archive(template, params = {}, opts = {}); end # List all templates, ordered by creation date, with the most recently created template appearing first. sig { - params(params: T.any(::Stripe::InvoiceRenderingTemplateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::InvoiceRenderingTemplateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Unarchive an invoice rendering template so it can be used on new Stripe objects again. sig { - params(params: T.any(::Stripe::InvoiceRenderingTemplateUnarchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceRenderingTemplate) + params(params: T.any(::Stripe::InvoiceRenderingTemplateUnarchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceRenderingTemplate) } def unarchive(params = {}, opts = {}); end # Unarchive an invoice rendering template so it can be used on new Stripe objects again. sig { - params(template: String, params: T.any(::Stripe::InvoiceRenderingTemplateUnarchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceRenderingTemplate) + params(template: String, params: T.any(::Stripe::InvoiceRenderingTemplateUnarchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceRenderingTemplate) } def self.unarchive(template, params = {}, opts = {}); end end @@ -17055,8 +17208,8 @@ module Stripe # # Related guides: [Integrate with the Invoicing API](https://stripe.com/docs/invoicing/integration), [Subscription Invoices](https://stripe.com/docs/billing/invoices/subscription#adding-upcoming-invoice-items). class InvoiceItem < APIResource - class Parent < Stripe::StripeObject - class SubscriptionDetails < Stripe::StripeObject + class Parent < ::Stripe::StripeObject + class SubscriptionDetails < ::Stripe::StripeObject # The subscription that generated this invoice item sig { returns(String) } def subscription; end @@ -17083,7 +17236,7 @@ module Stripe @field_remappings = {} end end - class Period < Stripe::StripeObject + class Period < ::Stripe::StripeObject # The end of the period, which must be greater than or equal to the start. This value is inclusive. sig { returns(Integer) } def end; end @@ -17097,8 +17250,8 @@ module Stripe @field_remappings = {} end end - class Pricing < Stripe::StripeObject - class PriceDetails < Stripe::StripeObject + class Pricing < ::Stripe::StripeObject + class PriceDetails < ::Stripe::StripeObject # The ID of the price this item is associated with. sig { returns(String) } def price; end @@ -17128,13 +17281,13 @@ module Stripe @field_remappings = {} end end - class ProrationDetails < Stripe::StripeObject - class DiscountAmount < Stripe::StripeObject + class ProrationDetails < ::Stripe::StripeObject + class DiscountAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the discount. sig { returns(Integer) } def amount; end # The discount that was applied to get this discount amount. - sig { returns(T.any(String, Stripe::Discount)) } + sig { returns(T.any(String, ::Stripe::Discount)) } def discount; end def self.inner_class_types @inner_class_types = {} @@ -17160,7 +17313,7 @@ module Stripe sig { returns(String) } def currency; end # The ID of the customer who will be billed when this invoice item is billed. - sig { returns(T.any(String, Stripe::Customer)) } + sig { returns(T.any(String, ::Stripe::Customer)) } def customer; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -17172,13 +17325,13 @@ module Stripe sig { returns(T::Boolean) } def discountable; end # The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount. - sig { returns(T.nilable(T::Array[T.any(String, Stripe::Discount)])) } + sig { returns(T.nilable(T::Array[T.any(String, ::Stripe::Discount)])) } def discounts; end # Unique identifier for the object. sig { returns(String) } def id; end # The ID of the invoice this invoice item belongs to. - sig { returns(T.nilable(T.any(String, Stripe::Invoice))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Invoice))) } def invoice; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -17211,41 +17364,41 @@ module Stripe sig { returns(Integer) } def quantity; end # The tax rates which apply to the invoice item. When set, the `default_tax_rates` on the invoice do not apply to this invoice item. - sig { returns(T.nilable(T::Array[Stripe::TaxRate])) } + sig { returns(T.nilable(T::Array[::Stripe::TaxRate])) } def tax_rates; end # ID of the test clock this invoice item belongs to. - sig { returns(T.nilable(T.any(String, Stripe::TestHelpers::TestClock))) } + sig { returns(T.nilable(T.any(String, ::Stripe::TestHelpers::TestClock))) } def test_clock; end # Always true for a deleted object sig { returns(T.nilable(T::Boolean)) } def deleted; end # Creates an item to be added to a draft invoice (up to 250 items per invoice). If no invoice is specified, the item will be on the next invoice created for the customer specified. sig { - params(params: T.any(::Stripe::InvoiceItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceItem) + params(params: T.any(::Stripe::InvoiceItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceItem) } def self.create(params = {}, opts = {}); end # Deletes an invoice item, removing it from an invoice. Deleting invoice items is only possible when they're not attached to invoices, or if it's attached to a draft invoice. sig { - params(invoiceitem: String, params: T.any(::Stripe::InvoiceItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceItem) + params(invoiceitem: String, params: T.any(::Stripe::InvoiceItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceItem) } def self.delete(invoiceitem, params = {}, opts = {}); end # Deletes an invoice item, removing it from an invoice. Deleting invoice items is only possible when they're not attached to invoices, or if it's attached to a draft invoice. sig { - params(params: T.any(::Stripe::InvoiceItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceItem) + params(params: T.any(::Stripe::InvoiceItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceItem) } def delete(params = {}, opts = {}); end # Returns a list of your invoice items. Invoice items are returned sorted by creation date, with the most recently created invoice items appearing first. sig { - params(params: T.any(::Stripe::InvoiceItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::InvoiceItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the amount or description of an invoice item on an upcoming invoice. Updating an invoice item is only possible before the invoice it's attached to is closed. sig { - params(invoiceitem: String, params: T.any(::Stripe::InvoiceItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceItem) + params(invoiceitem: String, params: T.any(::Stripe::InvoiceItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceItem) } def self.update(invoiceitem, params = {}, opts = {}); end end @@ -17285,10 +17438,10 @@ module Stripe # # Related guide: [Send invoices to customers](https://stripe.com/docs/billing/invoices/sending) class Invoice < APIResource - class AutomaticTax < Stripe::StripeObject - class Liability < Stripe::StripeObject + class AutomaticTax < ::Stripe::StripeObject + class Liability < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -17322,7 +17475,7 @@ module Stripe @field_remappings = {} end end - class ConfirmationSecret < Stripe::StripeObject + class ConfirmationSecret < ::Stripe::StripeObject # The client_secret of the payment that Stripe creates for the invoice after finalization. sig { returns(String) } def client_secret; end @@ -17336,7 +17489,7 @@ module Stripe @field_remappings = {} end end - class CustomField < Stripe::StripeObject + class CustomField < ::Stripe::StripeObject # The name of the custom field. sig { returns(String) } def name; end @@ -17350,7 +17503,7 @@ module Stripe @field_remappings = {} end end - class CustomerAddress < Stripe::StripeObject + class CustomerAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -17376,8 +17529,8 @@ module Stripe @field_remappings = {} end end - class CustomerShipping < Stripe::StripeObject - class Address < Stripe::StripeObject + class CustomerShipping < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -17425,7 +17578,7 @@ module Stripe @field_remappings = {} end end - class CustomerTaxId < Stripe::StripeObject + class CustomerTaxId < ::Stripe::StripeObject # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` sig { returns(String) } def type; end @@ -17439,12 +17592,12 @@ module Stripe @field_remappings = {} end end - class FromInvoice < Stripe::StripeObject + class FromInvoice < ::Stripe::StripeObject # The relation between this invoice and the cloned invoice sig { returns(String) } def action; end # The invoice that was cloned. - sig { returns(T.any(String, Stripe::Invoice)) } + sig { returns(T.any(String, ::Stripe::Invoice)) } def invoice; end def self.inner_class_types @inner_class_types = {} @@ -17453,9 +17606,9 @@ module Stripe @field_remappings = {} end end - class Issuer < Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -17467,7 +17620,7 @@ module Stripe @field_remappings = {} end end - class LastFinalizationError < Stripe::StripeObject + class LastFinalizationError < ::Stripe::StripeObject # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one. sig { returns(T.nilable(String)) } def advice_code; end @@ -17506,14 +17659,14 @@ module Stripe # authentication flows and ultimately creates at most one successful charge. # # Related guide: [Payment Intents API](https://stripe.com/docs/payments/payment-intents) - sig { returns(T.nilable(Stripe::PaymentIntent)) } + sig { returns(T.nilable(::Stripe::PaymentIntent)) } def payment_intent; end # PaymentMethod objects represent your customer's payment instruments. # You can use them with [PaymentIntents](https://stripe.com/docs/payments/payment-intents) to collect payments or save them to # Customer objects to store instrument details for future payments. # # Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios). - sig { returns(T.nilable(Stripe::PaymentMethod)) } + sig { returns(T.nilable(::Stripe::PaymentMethod)) } def payment_method; end # If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors. sig { returns(T.nilable(String)) } @@ -17542,11 +17695,11 @@ module Stripe # By using SetupIntents, you can reduce friction for your customers, even as regulations change over time. # # Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) - sig { returns(T.nilable(Stripe::SetupIntent)) } + sig { returns(T.nilable(::Stripe::SetupIntent)) } def setup_intent; end # Attribute for field source sig { - returns(T.nilable(T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source))) + returns(T.nilable(T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source))) } def source; end # The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error` @@ -17559,8 +17712,8 @@ module Stripe @field_remappings = {} end end - class Parent < Stripe::StripeObject - class QuoteDetails < Stripe::StripeObject + class Parent < ::Stripe::StripeObject + class QuoteDetails < ::Stripe::StripeObject # The quote that generated this invoice sig { returns(String) } def quote; end @@ -17571,13 +17724,13 @@ module Stripe @field_remappings = {} end end - class SubscriptionDetails < Stripe::StripeObject + class SubscriptionDetails < ::Stripe::StripeObject # Set of [key-value pairs](https://stripe.com/docs/api/metadata) defined as subscription metadata when an invoice is created. Becomes an immutable snapshot of the subscription metadata at the time of invoice finalization. # *Note: This attribute is populated only for invoices created on or after June 29, 2023.* sig { returns(T.nilable(T::Hash[String, String])) } def metadata; end # The subscription that generated this invoice - sig { returns(T.any(String, Stripe::Subscription)) } + sig { returns(T.any(String, ::Stripe::Subscription)) } def subscription; end # Only set for upcoming invoices that preview prorations. The time used to calculate prorations. sig { returns(T.nilable(Integer)) } @@ -17608,10 +17761,10 @@ module Stripe @field_remappings = {} end end - class PaymentSettings < Stripe::StripeObject - class PaymentMethodOptions < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class PaymentSettings < ::Stripe::StripeObject + class PaymentMethodOptions < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Transaction type of the mandate. sig { returns(T.nilable(String)) } def transaction_type; end @@ -17635,7 +17788,7 @@ module Stripe @field_remappings = {} end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject # Preferred language of the Bancontact authorization page that the customer is redirected to. sig { returns(String) } def preferred_language; end @@ -17646,8 +17799,8 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject - class Installments < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Installments < ::Stripe::StripeObject # Whether Installments are enabled for this Invoice. sig { returns(T.nilable(T::Boolean)) } def enabled; end @@ -17671,9 +17824,9 @@ module Stripe @field_remappings = {} end end - class CustomerBalance < Stripe::StripeObject - class BankTransfer < Stripe::StripeObject - class EuBankTransfer < Stripe::StripeObject + class CustomerBalance < ::Stripe::StripeObject + class BankTransfer < ::Stripe::StripeObject + class EuBankTransfer < ::Stripe::StripeObject # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -17710,7 +17863,7 @@ module Stripe @field_remappings = {} end end - class Konbini < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -17718,7 +17871,7 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -17726,9 +17879,9 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject - class FinancialConnections < Stripe::StripeObject - class Filters < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject + class FinancialConnections < ::Stripe::StripeObject + class Filters < ::Stripe::StripeObject # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -17820,8 +17973,8 @@ module Stripe @field_remappings = {} end end - class Rendering < Stripe::StripeObject - class Pdf < Stripe::StripeObject + class Rendering < ::Stripe::StripeObject + class Pdf < ::Stripe::StripeObject # Page size of invoice pdf. Options include a4, letter, and auto. If set to auto, page size will be switched to a4 or letter based on customer locale. sig { returns(T.nilable(String)) } def page_size; end @@ -17851,15 +18004,15 @@ module Stripe @field_remappings = {} end end - class ShippingCost < Stripe::StripeObject - class Tax < Stripe::StripeObject + class ShippingCost < ::Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. sig { returns(Integer) } def amount; end # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # # Related guide: [Tax rates](/billing/taxes/tax-rates) - sig { returns(Stripe::TaxRate) } + sig { returns(::Stripe::TaxRate) } def rate; end # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. sig { returns(T.nilable(String)) } @@ -17884,7 +18037,7 @@ module Stripe sig { returns(Integer) } def amount_total; end # The ID of the ShippingRate for this invoice. - sig { returns(T.nilable(T.any(String, Stripe::ShippingRate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::ShippingRate))) } def shipping_rate; end # The taxes applied to the shipping rate. sig { returns(T.nilable(T::Array[Tax])) } @@ -17896,8 +18049,8 @@ module Stripe @field_remappings = {} end end - class ShippingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class ShippingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -17945,7 +18098,7 @@ module Stripe @field_remappings = {} end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # The time that the invoice draft was finalized. sig { returns(T.nilable(Integer)) } def finalized_at; end @@ -17965,8 +18118,8 @@ module Stripe @field_remappings = {} end end - class ThresholdReason < Stripe::StripeObject - class ItemReason < Stripe::StripeObject + class ThresholdReason < ::Stripe::StripeObject + class ItemReason < ::Stripe::StripeObject # The IDs of the line items that triggered the threshold invoice. sig { returns(T::Array[String]) } def line_item_ids; end @@ -17993,12 +18146,12 @@ module Stripe @field_remappings = {} end end - class TotalDiscountAmount < Stripe::StripeObject + class TotalDiscountAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the discount. sig { returns(Integer) } def amount; end # The discount that was applied to get this discount amount. - sig { returns(T.any(String, Stripe::Discount)) } + sig { returns(T.any(String, ::Stripe::Discount)) } def discount; end def self.inner_class_types @inner_class_types = {} @@ -18007,15 +18160,15 @@ module Stripe @field_remappings = {} end end - class TotalPretaxCreditAmount < Stripe::StripeObject + class TotalPretaxCreditAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the pretax credit amount. sig { returns(Integer) } def amount; end # The credit balance transaction that was applied to get this pretax credit amount. - sig { returns(T.nilable(T.any(String, Stripe::Billing::CreditBalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Billing::CreditBalanceTransaction))) } def credit_balance_transaction; end # The discount that was applied to get this pretax credit amount. - sig { returns(T.nilable(T.any(String, Stripe::Discount))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Discount))) } def discount; end # Type of the pretax credit amount referenced. sig { returns(String) } @@ -18027,8 +18180,8 @@ module Stripe @field_remappings = {} end end - class TotalTax < Stripe::StripeObject - class TaxRateDetails < Stripe::StripeObject + class TotalTax < ::Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject # Attribute for field tax_rate sig { returns(String) } def tax_rate; end @@ -18071,7 +18224,7 @@ module Stripe sig { returns(T.nilable(String)) } def account_name; end # The account tax IDs associated with the invoice. Only editable when the invoice is a draft. - sig { returns(T.nilable(T::Array[T.any(String, Stripe::TaxId)])) } + sig { returns(T.nilable(T::Array[T.any(String, ::Stripe::TaxId)])) } def account_tax_ids; end # Final amount due at this time for this invoice. If the invoice's total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the `amount_due` may be 0. If there is a positive `starting_balance` for the invoice (the customer owes money), the `amount_due` will also take that into account. The charge that gets generated for the invoice will be for the amount specified in `amount_due`. sig { returns(Integer) } @@ -18089,7 +18242,7 @@ module Stripe sig { returns(Integer) } def amount_shipping; end # ID of the Connect Application that created the invoice. - sig { returns(T.nilable(T.any(String, Stripe::Application))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Application))) } def application; end # Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule. If a failure is returned with a non-retryable return code, the invoice can no longer be retried unless a new payment method is obtained. Retries will continue to be scheduled, and attempt_count will continue to increment, but retries will only be executed if a new payment method is obtained. sig { returns(Integer) } @@ -18133,7 +18286,7 @@ module Stripe sig { returns(T.nilable(T::Array[CustomField])) } def custom_fields; end # The ID of the customer who will be billed. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # The customer's address. Until the invoice is finalized, this field will equal `customer.address`. Once the invoice is finalized, this field will no longer be updated. sig { returns(T.nilable(CustomerAddress)) } @@ -18157,21 +18310,21 @@ module Stripe sig { returns(T.nilable(T::Array[CustomerTaxId])) } def customer_tax_ids; end # ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def default_payment_method; end # ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source. sig { - returns(T.nilable(T.any(String, T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source)))) + returns(T.nilable(T.any(String, T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source)))) } def default_source; end # The tax rates applied to this invoice, if any. - sig { returns(T::Array[Stripe::TaxRate]) } + sig { returns(T::Array[::Stripe::TaxRate]) } def default_tax_rates; end # An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard. sig { returns(T.nilable(String)) } def description; end # The discounts applied to the invoice. Line item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount. - sig { returns(T::Array[T.any(String, Stripe::Discount)]) } + sig { returns(T::Array[T.any(String, ::Stripe::Discount)]) } def discounts; end # The date on which payment for this invoice is due. This value will be `null` for invoices where `collection_method=charge_automatically`. sig { returns(T.nilable(Integer)) } @@ -18204,10 +18357,10 @@ module Stripe sig { returns(T.nilable(LastFinalizationError)) } def last_finalization_error; end # The ID of the most recent non-draft revision of this invoice - sig { returns(T.nilable(T.any(String, Stripe::Invoice))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Invoice))) } def latest_revision; end # The individual line items that make up the invoice. `lines` is sorted as follows: (1) pending invoice items (including prorations) in reverse chronological order, (2) subscription items in reverse chronological order, and (3) invoice items added after invoice creation in chronological order. - sig { returns(Stripe::ListObject) } + sig { returns(::Stripe::ListObject) } def lines; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -18225,7 +18378,7 @@ module Stripe sig { returns(String) } def object; end # The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def on_behalf_of; end # The parent that generated this invoice sig { returns(T.nilable(Parent)) } @@ -18234,7 +18387,7 @@ module Stripe sig { returns(PaymentSettings) } def payment_settings; end # Payments for this invoice - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def payments; end # End of the usage period during which invoice items were added to this invoice. This looks back one period for a subscription invoice. Use the [line item period](/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price. sig { returns(Integer) } @@ -18279,7 +18432,7 @@ module Stripe sig { returns(T.nilable(Integer)) } def subtotal_excluding_tax; end # ID of the test clock this invoice belongs to. - sig { returns(T.nilable(T.any(String, Stripe::TestHelpers::TestClock))) } + sig { returns(T.nilable(T.any(String, ::Stripe::TestHelpers::TestClock))) } def test_clock; end # Attribute for field threshold_reason sig { returns(T.nilable(ThresholdReason)) } @@ -18307,13 +18460,13 @@ module Stripe def deleted; end # Adds multiple line items to an invoice. This is only possible when an invoice is still a draft. sig { - params(params: T.any(::Stripe::InvoiceAddLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceAddLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def add_lines(params = {}, opts = {}); end # Adds multiple line items to an invoice. This is only possible when an invoice is still a draft. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceAddLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceAddLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.add_lines(invoice, params = {}, opts = {}); end @@ -18328,7 +18481,7 @@ module Stripe # # See: [Partial payments](https://docs.stripe.com/docs/invoicing/partial-payments) to learn more. sig { - params(params: T.any(::Stripe::InvoiceAttachPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceAttachPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def attach_payment(params = {}, opts = {}); end @@ -18343,13 +18496,13 @@ module Stripe # # See: [Partial payments](https://docs.stripe.com/docs/invoicing/partial-payments) to learn more. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceAttachPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceAttachPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.attach_payment(invoice, params = {}, opts = {}); end # This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](#pay_invoice) or send](https://docs.stripe.com/api#finalize_invoice) the invoice to your customers. sig { - params(params: T.any(::Stripe::InvoiceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.create(params = {}, opts = {}); end @@ -18363,83 +18516,83 @@ module Stripe # # Note: Currency conversion calculations use the latest exchange rates. Exchange rates may vary between the time of the preview and the time of the actual invoice creation. [Learn more](https://docs.stripe.com/currencies/conversions) sig { - params(params: T.any(::Stripe::InvoiceCreatePreviewParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceCreatePreviewParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.create_preview(params = {}, opts = {}); end # Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api#void_invoice). sig { - params(invoice: String, params: T.any(::Stripe::InvoiceDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.delete(invoice, params = {}, opts = {}); end # Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api#void_invoice). sig { - params(params: T.any(::Stripe::InvoiceDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def delete(params = {}, opts = {}); end # Stripe automatically finalizes drafts before sending and attempting payment on invoices. However, if you'd like to finalize a draft invoice manually, you can do so using this method. sig { - params(params: T.any(::Stripe::InvoiceFinalizeInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceFinalizeInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def finalize_invoice(params = {}, opts = {}); end # Stripe automatically finalizes drafts before sending and attempting payment on invoices. However, if you'd like to finalize a draft invoice manually, you can do so using this method. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceFinalizeInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceFinalizeInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.finalize_invoice(invoice, params = {}, opts = {}); end # You can list all invoices, or list the invoices for a specific customer. The invoices are returned sorted by creation date, with the most recently created invoices appearing first. sig { - params(params: T.any(::Stripe::InvoiceListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::InvoiceListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Marking an invoice as uncollectible is useful for keeping track of bad debts that can be written off for accounting purposes. sig { - params(params: T.any(::Stripe::InvoiceMarkUncollectibleParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceMarkUncollectibleParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def mark_uncollectible(params = {}, opts = {}); end # Marking an invoice as uncollectible is useful for keeping track of bad debts that can be written off for accounting purposes. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceMarkUncollectibleParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceMarkUncollectibleParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.mark_uncollectible(invoice, params = {}, opts = {}); end # Stripe automatically creates and then attempts to collect payment on invoices for customers on subscriptions according to your [subscriptions settings](https://dashboard.stripe.com/account/billing/automatic). However, if you'd like to attempt payment on an invoice out of the normal collection schedule or for some other reason, you can do so. sig { - params(params: T.any(::Stripe::InvoicePayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoicePayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def pay(params = {}, opts = {}); end # Stripe automatically creates and then attempts to collect payment on invoices for customers on subscriptions according to your [subscriptions settings](https://dashboard.stripe.com/account/billing/automatic). However, if you'd like to attempt payment on an invoice out of the normal collection schedule or for some other reason, you can do so. sig { - params(invoice: String, params: T.any(::Stripe::InvoicePayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoicePayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.pay(invoice, params = {}, opts = {}); end # Removes multiple line items from an invoice. This is only possible when an invoice is still a draft. sig { - params(params: T.any(::Stripe::InvoiceRemoveLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceRemoveLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def remove_lines(params = {}, opts = {}); end # Removes multiple line items from an invoice. This is only possible when an invoice is still a draft. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceRemoveLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceRemoveLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.remove_lines(invoice, params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::InvoiceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::InvoiceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def self.search(params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::InvoiceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::InvoiceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(::Stripe::SearchResultObject) } def self.search_auto_paging_each(params = {}, opts = {}, &blk); end @@ -18447,7 +18600,7 @@ module Stripe # # Requests made in test-mode result in no emails being sent, despite sending an invoice.sent event. sig { - params(params: T.any(::Stripe::InvoiceSendInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceSendInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def send_invoice(params = {}, opts = {}); end @@ -18455,7 +18608,7 @@ module Stripe # # Requests made in test-mode result in no emails being sent, despite sending an invoice.sent event. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceSendInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceSendInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.send_invoice(invoice, params = {}, opts = {}); end @@ -18466,19 +18619,19 @@ module Stripe # sending reminders for, or [automatically reconciling](https://docs.stripe.com/docs/billing/invoices/reconciliation) invoices, pass # auto_advance=false. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.update(invoice, params = {}, opts = {}); end # Updates multiple line items on an invoice. This is only possible when an invoice is still a draft. sig { - params(params: T.any(::Stripe::InvoiceUpdateLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceUpdateLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def update_lines(params = {}, opts = {}); end # Updates multiple line items on an invoice. This is only possible when an invoice is still a draft. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceUpdateLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceUpdateLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.update_lines(invoice, params = {}, opts = {}); end @@ -18486,7 +18639,7 @@ module Stripe # # Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api#create_invoice) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business. sig { - params(params: T.any(::Stripe::InvoiceVoidInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceVoidInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def void_invoice(params = {}, opts = {}); end @@ -18494,7 +18647,7 @@ module Stripe # # Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api#create_invoice) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceVoidInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceVoidInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.void_invoice(invoice, params = {}, opts = {}); end end @@ -18505,12 +18658,12 @@ module Stripe # # Each line item is backed by either an [invoice item](https://stripe.com/docs/api/invoiceitems) or a [subscription item](https://stripe.com/docs/api/subscription_items). class InvoiceLineItem < APIResource - class DiscountAmount < Stripe::StripeObject + class DiscountAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the discount. sig { returns(Integer) } def amount; end # The discount that was applied to get this discount amount. - sig { returns(T.any(String, Stripe::Discount)) } + sig { returns(T.any(String, ::Stripe::Discount)) } def discount; end def self.inner_class_types @inner_class_types = {} @@ -18519,10 +18672,10 @@ module Stripe @field_remappings = {} end end - class Parent < Stripe::StripeObject - class InvoiceItemDetails < Stripe::StripeObject - class ProrationDetails < Stripe::StripeObject - class CreditedItems < Stripe::StripeObject + class Parent < ::Stripe::StripeObject + class InvoiceItemDetails < ::Stripe::StripeObject + class ProrationDetails < ::Stripe::StripeObject + class CreditedItems < ::Stripe::StripeObject # Invoice containing the credited invoice line items sig { returns(String) } def invoice; end @@ -18565,9 +18718,9 @@ module Stripe @field_remappings = {} end end - class SubscriptionItemDetails < Stripe::StripeObject - class ProrationDetails < Stripe::StripeObject - class CreditedItems < Stripe::StripeObject + class SubscriptionItemDetails < ::Stripe::StripeObject + class ProrationDetails < ::Stripe::StripeObject + class CreditedItems < ::Stripe::StripeObject # Invoice containing the credited invoice line items sig { returns(String) } def invoice; end @@ -18632,7 +18785,7 @@ module Stripe @field_remappings = {} end end - class Period < Stripe::StripeObject + class Period < ::Stripe::StripeObject # The end of the period, which must be greater than or equal to the start. This value is inclusive. sig { returns(Integer) } def end; end @@ -18646,15 +18799,15 @@ module Stripe @field_remappings = {} end end - class PretaxCreditAmount < Stripe::StripeObject + class PretaxCreditAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the pretax credit amount. sig { returns(Integer) } def amount; end # The credit balance transaction that was applied to get this pretax credit amount. - sig { returns(T.nilable(T.any(String, Stripe::Billing::CreditBalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Billing::CreditBalanceTransaction))) } def credit_balance_transaction; end # The discount that was applied to get this pretax credit amount. - sig { returns(T.nilable(T.any(String, Stripe::Discount))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Discount))) } def discount; end # Type of the pretax credit amount referenced. sig { returns(String) } @@ -18666,8 +18819,8 @@ module Stripe @field_remappings = {} end end - class Pricing < Stripe::StripeObject - class PriceDetails < Stripe::StripeObject + class Pricing < ::Stripe::StripeObject + class PriceDetails < ::Stripe::StripeObject # The ID of the price this item is associated with. sig { returns(String) } def price; end @@ -18697,8 +18850,8 @@ module Stripe @field_remappings = {} end end - class Tax < Stripe::StripeObject - class TaxRateDetails < Stripe::StripeObject + class Tax < ::Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject # Attribute for field tax_rate sig { returns(String) } def tax_rate; end @@ -18750,7 +18903,7 @@ module Stripe sig { returns(T::Boolean) } def discountable; end # The discounts applied to the invoice line item. Line item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount. - sig { returns(T::Array[T.any(String, Stripe::Discount)]) } + sig { returns(T::Array[T.any(String, ::Stripe::Discount)]) } def discounts; end # Unique identifier for the object. sig { returns(String) } @@ -18783,7 +18936,7 @@ module Stripe sig { returns(T.nilable(Integer)) } def quantity; end # Attribute for field subscription - sig { returns(T.nilable(T.any(String, Stripe::Subscription))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Subscription))) } def subscription; end # The tax information of the line item. sig { returns(T.nilable(T::Array[Tax])) } @@ -18793,7 +18946,7 @@ module Stripe # item and the invoice line item, so updates on this endpoint will propagate to the invoice item as well. # Updating an invoice's line item is only possible before the invoice is finalized. sig { - params(invoice: String, line_item_id: String, params: T.any(::Stripe::InvoiceLineItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceLineItem) + params(invoice: String, line_item_id: String, params: T.any(::Stripe::InvoiceLineItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceLineItem) } def self.update(invoice, line_item_id, params = {}, opts = {}); end end @@ -18807,7 +18960,7 @@ module Stripe # # Related guide: [Issued card authorizations](https://stripe.com/docs/issuing/purchases/authorizations) class Authorization < APIResource - class AmountDetails < Stripe::StripeObject + class AmountDetails < ::Stripe::StripeObject # The fee charged by the ATM for the cash withdrawal. sig { returns(T.nilable(Integer)) } def atm_fee; end @@ -18821,8 +18974,8 @@ module Stripe @field_remappings = {} end end - class Fleet < Stripe::StripeObject - class CardholderPromptData < Stripe::StripeObject + class Fleet < ::Stripe::StripeObject + class CardholderPromptData < ::Stripe::StripeObject # [Deprecated] An alphanumeric ID, though typical point of sales only support numeric entry. The card program can be configured to prompt for a vehicle ID, driver ID, or generic ID. sig { returns(T.nilable(String)) } def alphanumeric_id; end @@ -18848,8 +19001,8 @@ module Stripe @field_remappings = {} end end - class ReportedBreakdown < Stripe::StripeObject - class Fuel < Stripe::StripeObject + class ReportedBreakdown < ::Stripe::StripeObject + class Fuel < ::Stripe::StripeObject # Gross fuel amount that should equal Fuel Quantity multiplied by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -18860,7 +19013,7 @@ module Stripe @field_remappings = {} end end - class NonFuel < Stripe::StripeObject + class NonFuel < ::Stripe::StripeObject # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -18871,7 +19024,7 @@ module Stripe @field_remappings = {} end end - class Tax < Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of state or provincial Sales Tax included in the transaction amount. `null` if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -18923,7 +19076,7 @@ module Stripe @field_remappings = {} end end - class FraudChallenge < Stripe::StripeObject + class FraudChallenge < ::Stripe::StripeObject # The method by which the fraud challenge was delivered to the cardholder. sig { returns(String) } def channel; end @@ -18940,7 +19093,7 @@ module Stripe @field_remappings = {} end end - class Fuel < Stripe::StripeObject + class Fuel < ::Stripe::StripeObject # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end @@ -18963,7 +19116,7 @@ module Stripe @field_remappings = {} end end - class MerchantData < Stripe::StripeObject + class MerchantData < ::Stripe::StripeObject # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. sig { returns(String) } def category; end @@ -19004,7 +19157,7 @@ module Stripe @field_remappings = {} end end - class NetworkData < Stripe::StripeObject + class NetworkData < ::Stripe::StripeObject # Identifier assigned to the acquirer by the card network. Sometimes this value is not provided by the network; in this case, the value will be `null`. sig { returns(T.nilable(String)) } def acquiring_institution_id; end @@ -19021,8 +19174,8 @@ module Stripe @field_remappings = {} end end - class PendingRequest < Stripe::StripeObject - class AmountDetails < Stripe::StripeObject + class PendingRequest < ::Stripe::StripeObject + class AmountDetails < ::Stripe::StripeObject # The fee charged by the ATM for the cash withdrawal. sig { returns(T.nilable(Integer)) } def atm_fee; end @@ -19064,8 +19217,8 @@ module Stripe @field_remappings = {} end end - class RequestHistory < Stripe::StripeObject - class AmountDetails < Stripe::StripeObject + class RequestHistory < ::Stripe::StripeObject + class AmountDetails < ::Stripe::StripeObject # The fee charged by the ATM for the cash withdrawal. sig { returns(T.nilable(Integer)) } def atm_fee; end @@ -19122,7 +19275,7 @@ module Stripe @field_remappings = {} end end - class Treasury < Stripe::StripeObject + class Treasury < ::Stripe::StripeObject # The array of [ReceivedCredits](https://stripe.com/docs/api/treasury/received_credits) associated with this authorization sig { returns(T::Array[String]) } def received_credits; end @@ -19139,8 +19292,8 @@ module Stripe @field_remappings = {} end end - class VerificationData < Stripe::StripeObject - class AuthenticationExemption < Stripe::StripeObject + class VerificationData < ::Stripe::StripeObject + class AuthenticationExemption < ::Stripe::StripeObject # The entity that requested the exemption, either the acquiring merchant or the Issuing user. sig { returns(String) } def claimed_by; end @@ -19154,7 +19307,7 @@ module Stripe @field_remappings = {} end end - class ThreeDSecure < Stripe::StripeObject + class ThreeDSecure < ::Stripe::StripeObject # The outcome of the 3D Secure authentication request. sig { returns(String) } def result; end @@ -19209,13 +19362,13 @@ module Stripe sig { returns(String) } def authorization_method; end # List of balance transactions associated with this authorization. - sig { returns(T::Array[Stripe::BalanceTransaction]) } + sig { returns(T::Array[::Stripe::BalanceTransaction]) } def balance_transactions; end # You can [create physical or virtual cards](https://stripe.com/docs/issuing) that are issued to cardholders. - sig { returns(Stripe::Issuing::Card) } + sig { returns(::Stripe::Issuing::Card) } def card; end # The cardholder to whom this authorization belongs. - sig { returns(T.nilable(T.any(String, Stripe::Issuing::Cardholder))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Issuing::Cardholder))) } def cardholder; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -19266,10 +19419,10 @@ module Stripe sig { returns(String) } def status; end # [Token](https://stripe.com/docs/api/issuing/tokens/object) object used for this authorization. If a network token was not used for this authorization, this field will be null. - sig { returns(T.nilable(T.any(String, Stripe::Issuing::Token))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Issuing::Token))) } def token; end # List of [transactions](https://stripe.com/docs/api/issuing/transactions) associated with this authorization. - sig { returns(T::Array[Stripe::Issuing::Transaction]) } + sig { returns(T::Array[::Stripe::Issuing::Transaction]) } def transactions; end # [Treasury](https://stripe.com/docs/api/treasury) details related to this authorization if it was created on a [FinancialAccount](https://stripe.com/docs/api/treasury/financial_accounts). sig { returns(T.nilable(Treasury)) } @@ -19286,40 +19439,40 @@ module Stripe # [Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations) flow. # This method is deprecated. Instead, [respond directly to the webhook request to approve an authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). sig { - params(params: T.any(::Stripe::Issuing::AuthorizationApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(params: T.any(::Stripe::Issuing::AuthorizationApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def approve(params = {}, opts = {}); end # [Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations) flow. # This method is deprecated. Instead, [respond directly to the webhook request to approve an authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). sig { - params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def self.approve(authorization, params = {}, opts = {}); end # [Deprecated] Declines a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations) flow. # This method is deprecated. Instead, [respond directly to the webhook request to decline an authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). sig { - params(params: T.any(::Stripe::Issuing::AuthorizationDeclineParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(params: T.any(::Stripe::Issuing::AuthorizationDeclineParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def decline(params = {}, opts = {}); end # [Deprecated] Declines a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations) flow. # This method is deprecated. Instead, [respond directly to the webhook request to decline an authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). sig { - params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationDeclineParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationDeclineParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def self.decline(authorization, params = {}, opts = {}); end # Returns a list of Issuing Authorization objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::AuthorizationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::AuthorizationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the specified Issuing Authorization object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def self.update(authorization, params = {}, opts = {}); end end @@ -19332,8 +19485,8 @@ module Stripe # # Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards/virtual/issue-cards#create-cardholder) class Cardholder < APIResource - class Billing < Stripe::StripeObject - class Address < Stripe::StripeObject + class Billing < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -19369,7 +19522,7 @@ module Stripe @field_remappings = {} end end - class Company < Stripe::StripeObject + class Company < ::Stripe::StripeObject # Whether the company's business ID number was provided. sig { returns(T::Boolean) } def tax_id_provided; end @@ -19380,9 +19533,9 @@ module Stripe @field_remappings = {} end end - class Individual < Stripe::StripeObject - class CardIssuing < Stripe::StripeObject - class UserTermsAcceptance < Stripe::StripeObject + class Individual < ::Stripe::StripeObject + class CardIssuing < ::Stripe::StripeObject + class UserTermsAcceptance < ::Stripe::StripeObject # The Unix timestamp marking when the cardholder accepted the Authorized User Terms. sig { returns(T.nilable(Integer)) } def date; end @@ -19409,7 +19562,7 @@ module Stripe @field_remappings = {} end end - class Dob < Stripe::StripeObject + class Dob < ::Stripe::StripeObject # The day of birth, between 1 and 31. sig { returns(T.nilable(Integer)) } def day; end @@ -19426,13 +19579,13 @@ module Stripe @field_remappings = {} end end - class Verification < Stripe::StripeObject - class Document < Stripe::StripeObject + class Verification < ::Stripe::StripeObject + class Document < ::Stripe::StripeObject # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def back; end # The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def front; end def self.inner_class_types @inner_class_types = {} @@ -19473,7 +19626,7 @@ module Stripe @field_remappings = {} end end - class Requirements < Stripe::StripeObject + class Requirements < ::Stripe::StripeObject # If `disabled_reason` is present, all cards will decline authorizations with `cardholder_verification_required` reason. sig { returns(T.nilable(String)) } def disabled_reason; end @@ -19487,8 +19640,8 @@ module Stripe @field_remappings = {} end end - class SpendingControls < Stripe::StripeObject - class SpendingLimit < Stripe::StripeObject + class SpendingControls < ::Stripe::StripeObject + class SpendingLimit < ::Stripe::StripeObject # Maximum amount allowed to spend per interval. This amount is in the card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). sig { returns(Integer) } def amount; end @@ -19581,19 +19734,19 @@ module Stripe def type; end # Creates a new Issuing Cardholder object that can be issued cards. sig { - params(params: T.any(::Stripe::Issuing::CardholderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Cardholder) + params(params: T.any(::Stripe::Issuing::CardholderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Cardholder) } def self.create(params = {}, opts = {}); end # Returns a list of Issuing Cardholder objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::CardholderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::CardholderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the specified Issuing Cardholder object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(cardholder: String, params: T.any(::Stripe::Issuing::CardholderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Cardholder) + params(cardholder: String, params: T.any(::Stripe::Issuing::CardholderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Cardholder) } def self.update(cardholder, params = {}, opts = {}); end end @@ -19604,8 +19757,8 @@ module Stripe module Issuing # You can [create physical or virtual cards](https://stripe.com/docs/issuing) that are issued to cardholders. class Card < APIResource - class Shipping < Stripe::StripeObject - class Address < Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -19631,8 +19784,8 @@ module Stripe @field_remappings = {} end end - class AddressValidation < Stripe::StripeObject - class NormalizedAddress < Stripe::StripeObject + class AddressValidation < ::Stripe::StripeObject + class NormalizedAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -19674,7 +19827,7 @@ module Stripe @field_remappings = {} end end - class Customs < Stripe::StripeObject + class Customs < ::Stripe::StripeObject # A registration number used for customs in Europe. See [https://www.gov.uk/eori](https://www.gov.uk/eori) for the UK and [https://ec.europa.eu/taxation_customs/business/customs-procedures-import-and-export/customs-procedures/economic-operators-registration-and-identification-number-eori_en](https://ec.europa.eu/taxation_customs/business/customs-procedures-import-and-export/customs-procedures/economic-operators-registration-and-identification-number-eori_en) for the EU. sig { returns(T.nilable(String)) } def eori_number; end @@ -19735,8 +19888,8 @@ module Stripe @field_remappings = {} end end - class SpendingControls < Stripe::StripeObject - class SpendingLimit < Stripe::StripeObject + class SpendingControls < ::Stripe::StripeObject + class SpendingLimit < ::Stripe::StripeObject # Maximum amount allowed to spend per interval. This amount is in the card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). sig { returns(Integer) } def amount; end @@ -19778,8 +19931,8 @@ module Stripe @field_remappings = {} end end - class Wallets < Stripe::StripeObject - class ApplePay < Stripe::StripeObject + class Wallets < ::Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject # Apple Pay Eligibility sig { returns(T::Boolean) } def eligible; end @@ -19793,7 +19946,7 @@ module Stripe @field_remappings = {} end end - class GooglePay < Stripe::StripeObject + class GooglePay < ::Stripe::StripeObject # Google Pay Eligibility sig { returns(T::Boolean) } def eligible; end @@ -19832,7 +19985,7 @@ module Stripe # An Issuing `Cardholder` object represents an individual or business entity who is [issued](https://stripe.com/docs/issuing) cards. # # Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards/virtual/issue-cards#create-cardholder) - sig { returns(Stripe::Issuing::Cardholder) } + sig { returns(::Stripe::Issuing::Cardholder) } def cardholder; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -19871,13 +20024,13 @@ module Stripe sig { returns(String) } def object; end # The personalization design object belonging to this card. - sig { returns(T.nilable(T.any(String, Stripe::Issuing::PersonalizationDesign))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Issuing::PersonalizationDesign))) } def personalization_design; end # The latest card that replaces this card, if any. - sig { returns(T.nilable(T.any(String, Stripe::Issuing::Card))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Issuing::Card))) } def replaced_by; end # The card this card replaces, if any. - sig { returns(T.nilable(T.any(String, Stripe::Issuing::Card))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Issuing::Card))) } def replacement_for; end # The reason why the previous card needed to be replaced. sig { returns(T.nilable(String)) } @@ -19902,19 +20055,19 @@ module Stripe def wallets; end # Creates an Issuing Card object. sig { - params(params: T.any(::Stripe::Issuing::CardCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Card) + params(params: T.any(::Stripe::Issuing::CardCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Card) } def self.create(params = {}, opts = {}); end # Returns a list of Issuing Card objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::CardListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::CardListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the specified Issuing Card object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(card: String, params: T.any(::Stripe::Issuing::CardUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Card) + params(card: String, params: T.any(::Stripe::Issuing::CardUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Card) } def self.update(card, params = {}, opts = {}); end end @@ -19927,10 +20080,10 @@ module Stripe # # Related guide: [Issuing disputes](https://stripe.com/docs/issuing/purchases/disputes) class Dispute < APIResource - class Evidence < Stripe::StripeObject - class Canceled < Stripe::StripeObject + class Evidence < ::Stripe::StripeObject + class Canceled < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def additional_documentation; end # Date when order was canceled. sig { returns(T.nilable(Integer)) } @@ -19966,18 +20119,18 @@ module Stripe @field_remappings = {} end end - class Duplicate < Stripe::StripeObject + class Duplicate < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def additional_documentation; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the card statement showing that the product had already been paid for. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def card_statement; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the receipt showing that the product had been paid for in cash. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def cash_receipt; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Image of the front and back of the check that was used to pay for the product. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def check_image; end # Explanation of why the cardholder is disputing this transaction. sig { returns(T.nilable(String)) } @@ -19992,9 +20145,9 @@ module Stripe @field_remappings = {} end end - class Fraudulent < Stripe::StripeObject + class Fraudulent < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def additional_documentation; end # Explanation of why the cardholder is disputing this transaction. sig { returns(T.nilable(String)) } @@ -20006,9 +20159,9 @@ module Stripe @field_remappings = {} end end - class MerchandiseNotAsDescribed < Stripe::StripeObject + class MerchandiseNotAsDescribed < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def additional_documentation; end # Explanation of why the cardholder is disputing this transaction. sig { returns(T.nilable(String)) } @@ -20032,9 +20185,9 @@ module Stripe @field_remappings = {} end end - class NoValidAuthorization < Stripe::StripeObject + class NoValidAuthorization < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def additional_documentation; end # Explanation of why the cardholder is disputing this transaction. sig { returns(T.nilable(String)) } @@ -20046,9 +20199,9 @@ module Stripe @field_remappings = {} end end - class NotReceived < Stripe::StripeObject + class NotReceived < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def additional_documentation; end # Date when the cardholder expected to receive the product. sig { returns(T.nilable(Integer)) } @@ -20069,9 +20222,9 @@ module Stripe @field_remappings = {} end end - class Other < Stripe::StripeObject + class Other < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def additional_documentation; end # Explanation of why the cardholder is disputing this transaction. sig { returns(T.nilable(String)) } @@ -20089,9 +20242,9 @@ module Stripe @field_remappings = {} end end - class ServiceNotAsDescribed < Stripe::StripeObject + class ServiceNotAsDescribed < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def additional_documentation; end # Date when order was canceled. sig { returns(T.nilable(Integer)) } @@ -20155,7 +20308,7 @@ module Stripe @field_remappings = {} end end - class Treasury < Stripe::StripeObject + class Treasury < ::Stripe::StripeObject # The Treasury [DebitReversal](https://stripe.com/docs/api/treasury/debit_reversals) representing this Issuing dispute sig { returns(T.nilable(String)) } def debit_reversal; end @@ -20173,7 +20326,7 @@ module Stripe sig { returns(Integer) } def amount; end # List of balance transactions associated with the dispute. - sig { returns(T.nilable(T::Array[Stripe::BalanceTransaction])) } + sig { returns(T.nilable(T::Array[::Stripe::BalanceTransaction])) } def balance_transactions; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -20203,38 +20356,38 @@ module Stripe sig { returns(String) } def status; end # The transaction being disputed. - sig { returns(T.any(String, Stripe::Issuing::Transaction)) } + sig { returns(T.any(String, ::Stripe::Issuing::Transaction)) } def transaction; end # [Treasury](https://stripe.com/docs/api/treasury) details related to this dispute if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts sig { returns(T.nilable(Treasury)) } def treasury; end # Creates an Issuing Dispute object. Individual pieces of evidence within the evidence object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to [Dispute reasons and evidence](https://docs.stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence) for more details about evidence requirements. sig { - params(params: T.any(::Stripe::Issuing::DisputeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Dispute) + params(params: T.any(::Stripe::Issuing::DisputeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Dispute) } def self.create(params = {}, opts = {}); end # Returns a list of Issuing Dispute objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::DisputeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::DisputeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Submits an Issuing Dispute to the card network. Stripe validates that all evidence fields required for the dispute's reason are present. For more details, see [Dispute reasons and evidence](https://docs.stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence). sig { - params(params: T.any(::Stripe::Issuing::DisputeSubmitParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Dispute) + params(params: T.any(::Stripe::Issuing::DisputeSubmitParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Dispute) } def submit(params = {}, opts = {}); end # Submits an Issuing Dispute to the card network. Stripe validates that all evidence fields required for the dispute's reason are present. For more details, see [Dispute reasons and evidence](https://docs.stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence). sig { - params(dispute: String, params: T.any(::Stripe::Issuing::DisputeSubmitParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Dispute) + params(dispute: String, params: T.any(::Stripe::Issuing::DisputeSubmitParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Dispute) } def self.submit(dispute, params = {}, opts = {}); end # Updates the specified Issuing Dispute object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on the evidence object can be unset by passing in an empty string. sig { - params(dispute: String, params: T.any(::Stripe::Issuing::DisputeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Dispute) + params(dispute: String, params: T.any(::Stripe::Issuing::DisputeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Dispute) } def self.update(dispute, params = {}, opts = {}); end end @@ -20245,7 +20398,7 @@ module Stripe module Issuing # A Personalization Design is a logical grouping of a Physical Bundle, card logo, and carrier text that represents a product line. class PersonalizationDesign < APIResource - class CarrierText < Stripe::StripeObject + class CarrierText < ::Stripe::StripeObject # The footer body text of the carrier letter. sig { returns(T.nilable(String)) } def footer_body; end @@ -20265,7 +20418,7 @@ module Stripe @field_remappings = {} end end - class Preferences < Stripe::StripeObject + class Preferences < ::Stripe::StripeObject # Whether we use this personalization design to create cards when one isn't specified. A connected account uses the Connect platform's default design if no personalization design is set as the default design. sig { returns(T::Boolean) } def is_default; end @@ -20279,7 +20432,7 @@ module Stripe @field_remappings = {} end end - class RejectionReasons < Stripe::StripeObject + class RejectionReasons < ::Stripe::StripeObject # The reason(s) the card logo was rejected. sig { returns(T.nilable(T::Array[String])) } def card_logo; end @@ -20294,7 +20447,7 @@ module Stripe end end # The file for the card logo to use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def card_logo; end # Hash containing carrier text, for use with physical bundles that support carrier text. sig { returns(T.nilable(CarrierText)) } @@ -20321,7 +20474,7 @@ module Stripe sig { returns(String) } def object; end # The physical bundle object belonging to this personalization design. - sig { returns(T.any(String, Stripe::Issuing::PhysicalBundle)) } + sig { returns(T.any(String, ::Stripe::Issuing::PhysicalBundle)) } def physical_bundle; end # Attribute for field preferences sig { returns(Preferences) } @@ -20334,19 +20487,19 @@ module Stripe def status; end # Creates a personalization design object. sig { - params(params: T.any(::Stripe::Issuing::PersonalizationDesignCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::PersonalizationDesign) + params(params: T.any(::Stripe::Issuing::PersonalizationDesignCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::PersonalizationDesign) } def self.create(params = {}, opts = {}); end # Returns a list of personalization design objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::PersonalizationDesignListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::PersonalizationDesignListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates a card personalization object. sig { - params(personalization_design: String, params: T.any(::Stripe::Issuing::PersonalizationDesignUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::PersonalizationDesign) + params(personalization_design: String, params: T.any(::Stripe::Issuing::PersonalizationDesignUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::PersonalizationDesign) } def self.update(personalization_design, params = {}, opts = {}); end end @@ -20357,7 +20510,7 @@ module Stripe module Issuing # A Physical Bundle represents the bundle of physical items - card stock, carrier letter, and envelope - that is shipped to a cardholder when you create a physical card. class PhysicalBundle < APIResource - class Features < Stripe::StripeObject + class Features < ::Stripe::StripeObject # The policy for how to use card logo images in a card design with this physical bundle. sig { returns(String) } def card_logo; end @@ -20397,7 +20550,7 @@ module Stripe def type; end # Returns a list of physical bundle objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::PhysicalBundleListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::PhysicalBundleListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -20408,8 +20561,8 @@ module Stripe module Issuing # An issuing token object is created when an issued card is added to a digital wallet. As a [card issuer](https://stripe.com/docs/issuing), you can [view and manage these tokens](https://stripe.com/docs/issuing/controls/token-management) through Stripe. class Token < APIResource - class NetworkData < Stripe::StripeObject - class Device < Stripe::StripeObject + class NetworkData < ::Stripe::StripeObject + class Device < ::Stripe::StripeObject # An obfuscated ID derived from the device ID. sig { returns(T.nilable(String)) } def device_fingerprint; end @@ -20435,7 +20588,7 @@ module Stripe @field_remappings = {} end end - class Mastercard < Stripe::StripeObject + class Mastercard < ::Stripe::StripeObject # A unique reference ID from MasterCard to represent the card account number. sig { returns(T.nilable(String)) } def card_reference_id; end @@ -20455,7 +20608,7 @@ module Stripe @field_remappings = {} end end - class Visa < Stripe::StripeObject + class Visa < ::Stripe::StripeObject # A unique reference ID from Visa to represent the card account number. sig { returns(String) } def card_reference_id; end @@ -20475,8 +20628,8 @@ module Stripe @field_remappings = {} end end - class WalletProvider < Stripe::StripeObject - class CardholderAddress < Stripe::StripeObject + class WalletProvider < ::Stripe::StripeObject + class CardholderAddress < ::Stripe::StripeObject # The street address of the cardholder tokenizing the card. sig { returns(String) } def line1; end @@ -20555,7 +20708,7 @@ module Stripe end end # Card associated with this token. - sig { returns(T.any(String, Stripe::Issuing::Card)) } + sig { returns(T.any(String, ::Stripe::Issuing::Card)) } def card; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -20592,13 +20745,13 @@ module Stripe def wallet_provider; end # Lists all Issuing Token objects for a given card. sig { - params(params: T.any(::Stripe::Issuing::TokenListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::TokenListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Attempts to update the specified Issuing Token object to the status specified. sig { - params(token: String, params: T.any(::Stripe::Issuing::TokenUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Token) + params(token: String, params: T.any(::Stripe::Issuing::TokenUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Token) } def self.update(token, params = {}, opts = {}); end end @@ -20613,7 +20766,7 @@ module Stripe # # Related guide: [Issued card transactions](https://stripe.com/docs/issuing/purchases/transactions) class Transaction < APIResource - class AmountDetails < Stripe::StripeObject + class AmountDetails < ::Stripe::StripeObject # The fee charged by the ATM for the cash withdrawal. sig { returns(T.nilable(Integer)) } def atm_fee; end @@ -20627,7 +20780,7 @@ module Stripe @field_remappings = {} end end - class MerchantData < Stripe::StripeObject + class MerchantData < ::Stripe::StripeObject # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. sig { returns(String) } def category; end @@ -20668,7 +20821,7 @@ module Stripe @field_remappings = {} end end - class NetworkData < Stripe::StripeObject + class NetworkData < ::Stripe::StripeObject # A code created by Stripe which is shared with the merchant to validate the authorization. This field will be populated if the authorization message was approved. The code typically starts with the letter "S", followed by a six-digit number. For example, "S498162". Please note that the code is not guaranteed to be unique across authorizations. sig { returns(T.nilable(String)) } def authorization_code; end @@ -20685,9 +20838,9 @@ module Stripe @field_remappings = {} end end - class PurchaseDetails < Stripe::StripeObject - class Fleet < Stripe::StripeObject - class CardholderPromptData < Stripe::StripeObject + class PurchaseDetails < ::Stripe::StripeObject + class Fleet < ::Stripe::StripeObject + class CardholderPromptData < ::Stripe::StripeObject # Driver ID. sig { returns(T.nilable(String)) } def driver_id; end @@ -20710,8 +20863,8 @@ module Stripe @field_remappings = {} end end - class ReportedBreakdown < Stripe::StripeObject - class Fuel < Stripe::StripeObject + class ReportedBreakdown < ::Stripe::StripeObject + class Fuel < ::Stripe::StripeObject # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -20722,7 +20875,7 @@ module Stripe @field_remappings = {} end end - class NonFuel < Stripe::StripeObject + class NonFuel < ::Stripe::StripeObject # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -20733,7 +20886,7 @@ module Stripe @field_remappings = {} end end - class Tax < Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -20785,8 +20938,8 @@ module Stripe @field_remappings = {} end end - class Flight < Stripe::StripeObject - class Segment < Stripe::StripeObject + class Flight < ::Stripe::StripeObject + class Segment < ::Stripe::StripeObject # The three-letter IATA airport code of the flight's destination. sig { returns(T.nilable(String)) } def arrival_airport_code; end @@ -20834,7 +20987,7 @@ module Stripe @field_remappings = {} end end - class Fuel < Stripe::StripeObject + class Fuel < ::Stripe::StripeObject # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end @@ -20857,7 +21010,7 @@ module Stripe @field_remappings = {} end end - class Lodging < Stripe::StripeObject + class Lodging < ::Stripe::StripeObject # The time of checking into the lodging. sig { returns(T.nilable(Integer)) } def check_in_at; end @@ -20871,7 +21024,7 @@ module Stripe @field_remappings = {} end end - class Receipt < Stripe::StripeObject + class Receipt < ::Stripe::StripeObject # The description of the item. The maximum length of this field is 26 characters. sig { returns(T.nilable(String)) } def description; end @@ -20922,7 +21075,7 @@ module Stripe @field_remappings = {} end end - class Treasury < Stripe::StripeObject + class Treasury < ::Stripe::StripeObject # The Treasury [ReceivedCredit](https://stripe.com/docs/api/treasury/received_credits) representing this Issuing transaction if it is a refund sig { returns(T.nilable(String)) } def received_credit; end @@ -20943,16 +21096,16 @@ module Stripe sig { returns(T.nilable(AmountDetails)) } def amount_details; end # The `Authorization` object that led to this transaction. - sig { returns(T.nilable(T.any(String, Stripe::Issuing::Authorization))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Issuing::Authorization))) } def authorization; end # ID of the [balance transaction](https://stripe.com/docs/api/balance_transactions) associated with this transaction. - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def balance_transaction; end # The card used to make this transaction. - sig { returns(T.any(String, Stripe::Issuing::Card)) } + sig { returns(T.any(String, ::Stripe::Issuing::Card)) } def card; end # The cardholder to whom this transaction belongs. - sig { returns(T.nilable(T.any(String, Stripe::Issuing::Cardholder))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Issuing::Cardholder))) } def cardholder; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -20961,7 +21114,7 @@ module Stripe sig { returns(String) } def currency; end # If you've disputed the transaction, the ID of the dispute. - sig { returns(T.nilable(T.any(String, Stripe::Issuing::Dispute))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Issuing::Dispute))) } def dispute; end # Unique identifier for the object. sig { returns(String) } @@ -20991,7 +21144,7 @@ module Stripe sig { returns(T.nilable(PurchaseDetails)) } def purchase_details; end # [Token](https://stripe.com/docs/api/issuing/tokens/object) object used for this transaction. If a network token was not used for this transaction, this field will be null. - sig { returns(T.nilable(T.any(String, Stripe::Issuing::Token))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Issuing::Token))) } def token; end # [Treasury](https://stripe.com/docs/api/treasury) details related to this transaction if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts sig { returns(T.nilable(Treasury)) } @@ -21004,13 +21157,13 @@ module Stripe def wallet; end # Returns a list of Issuing Transaction objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the specified Issuing Transaction object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(transaction: String, params: T.any(::Stripe::Issuing::TransactionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Transaction) + params(transaction: String, params: T.any(::Stripe::Issuing::TransactionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Transaction) } def self.update(transaction, params = {}, opts = {}); end end @@ -21020,8 +21173,8 @@ end module Stripe # A Mandate is a record of the permission that your customer gives you to debit their payment method. class Mandate < APIResource - class CustomerAcceptance < Stripe::StripeObject - class Offline < Stripe::StripeObject + class CustomerAcceptance < ::Stripe::StripeObject + class Offline < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -21029,7 +21182,7 @@ module Stripe @field_remappings = {} end end - class Online < Stripe::StripeObject + class Online < ::Stripe::StripeObject # The customer accepts the mandate from this IP address. sig { returns(T.nilable(String)) } def ip_address; end @@ -21062,7 +21215,7 @@ module Stripe @field_remappings = {} end end - class MultiUse < Stripe::StripeObject + class MultiUse < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -21070,8 +21223,8 @@ module Stripe @field_remappings = {} end end - class PaymentMethodDetails < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject + class PaymentMethodDetails < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject # List of Stripe products where this mandate can be selected automatically. sig { returns(T.nilable(T::Array[String])) } def default_for; end @@ -21091,7 +21244,7 @@ module Stripe @field_remappings = {} end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -21099,7 +21252,7 @@ module Stripe @field_remappings = {} end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject # The URL of the mandate. This URL generally contains sensitive information about the customer and should be shared with them exclusively. sig { returns(String) } def url; end @@ -21110,7 +21263,7 @@ module Stripe @field_remappings = {} end end - class BacsDebit < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject # The status of the mandate on the Bacs network. Can be one of `pending`, `revoked`, `refused`, or `accepted`. sig { returns(String) } def network_status; end @@ -21130,7 +21283,7 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject + class Card < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -21138,7 +21291,7 @@ module Stripe @field_remappings = {} end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -21146,7 +21299,7 @@ module Stripe @field_remappings = {} end end - class KakaoPay < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -21154,7 +21307,7 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -21162,7 +21315,7 @@ module Stripe @field_remappings = {} end end - class KrCard < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -21170,7 +21323,7 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -21178,7 +21331,7 @@ module Stripe @field_remappings = {} end end - class NaverPay < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -21186,7 +21339,7 @@ module Stripe @field_remappings = {} end end - class NzBankAccount < Stripe::StripeObject + class NzBankAccount < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -21194,7 +21347,7 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer. sig { returns(T.nilable(String)) } def billing_agreement_id; end @@ -21208,7 +21361,7 @@ module Stripe @field_remappings = {} end end - class RevolutPay < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -21216,7 +21369,7 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject # The unique reference of the mandate. sig { returns(String) } def reference; end @@ -21230,7 +21383,7 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject # Mandate collection method sig { returns(T.nilable(String)) } def collection_method; end @@ -21316,7 +21469,7 @@ module Stripe @field_remappings = {} end end - class SingleUse < Stripe::StripeObject + class SingleUse < ::Stripe::StripeObject # The amount of the payment on a single use mandate. sig { returns(Integer) } def amount; end @@ -21349,7 +21502,7 @@ module Stripe sig { returns(T.nilable(String)) } def on_behalf_of; end # ID of the payment method associated with this mandate. - sig { returns(T.any(String, Stripe::PaymentMethod)) } + sig { returns(T.any(String, ::Stripe::PaymentMethod)) } def payment_method; end # Attribute for field payment_method_details sig { returns(PaymentMethodDetails) } @@ -21366,6 +21519,2015 @@ module Stripe end end # typed: true +module Stripe + # A Payment Attempt Record represents an individual attempt at making a payment, on or off Stripe. + # Each payment attempt tries to collect a fixed amount of money from a fixed customer and payment + # method. Payment Attempt Records are attached to Payment Records. Only one attempt per Payment Record + # can have guaranteed funds. + class PaymentAttemptRecord < APIResource + class Amount < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountAuthorized < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountCanceled < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountFailed < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountGuaranteed < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountRefunded < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountRequested < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class CustomerDetails < ::Stripe::StripeObject + # ID of the Stripe Customer associated with this payment. + sig { returns(T.nilable(String)) } + def customer; end + # The customer's email address. + sig { returns(T.nilable(String)) } + def email; end + # The customer's name. + sig { returns(T.nilable(String)) } + def name; end + # The customer's phone number. + sig { returns(T.nilable(String)) } + def phone; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class PaymentMethodDetails < ::Stripe::StripeObject + class AchCreditTransfer < ::Stripe::StripeObject + # Account number to transfer funds to. + sig { returns(T.nilable(String)) } + def account_number; end + # Name of the bank associated with the routing number. + sig { returns(T.nilable(String)) } + def bank_name; end + # Routing transit number for the bank account to transfer funds to. + sig { returns(T.nilable(String)) } + def routing_number; end + # SWIFT code of the bank associated with the routing number. + sig { returns(T.nilable(String)) } + def swift_code; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AchDebit < ::Stripe::StripeObject + # Type of entity that holds the account. This can be either `individual` or `company`. + sig { returns(T.nilable(String)) } + def account_holder_type; end + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Two-letter ISO code representing the country the bank account is located in. + sig { returns(T.nilable(String)) } + def country; end + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Last four digits of the bank account number. + sig { returns(T.nilable(String)) } + def last4; end + # Routing transit number of the bank account. + sig { returns(T.nilable(String)) } + def routing_number; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AcssDebit < ::Stripe::StripeObject + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Institution number of the bank account + sig { returns(T.nilable(String)) } + def institution_number; end + # Last four digits of the bank account number. + sig { returns(T.nilable(String)) } + def last4; end + # ID of the mandate used to make this payment. + sig { returns(T.nilable(String)) } + def mandate; end + # Transit number of the bank account. + sig { returns(T.nilable(String)) } + def transit_number; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Affirm < ::Stripe::StripeObject + # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. + sig { returns(T.nilable(String)) } + def location; end + # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. + sig { returns(T.nilable(String)) } + def reader; end + # The Affirm transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AfterpayClearpay < ::Stripe::StripeObject + # The Afterpay order ID associated with this payment intent. + sig { returns(T.nilable(String)) } + def order_id; end + # Order identifier shown to the merchant in Afterpay’s online portal. + sig { returns(T.nilable(String)) } + def reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Alipay < ::Stripe::StripeObject + # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same. + sig { returns(T.nilable(String)) } + def buyer_id; end + # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Transaction ID of this particular Alipay transaction. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Alma < ::Stripe::StripeObject + class Installments < ::Stripe::StripeObject + # The number of installments. + sig { returns(Integer) } + def count; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field installments + sig { returns(T.nilable(Installments)) } + def installments; end + # The Alma transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {installments: Installments} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmazonPay < ::Stripe::StripeObject + class Funding < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + sig { returns(T.nilable(String)) } + def brand; end + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + sig { returns(T.nilable(String)) } + def country; end + # Two-digit number representing the card's expiration month. + sig { returns(T.nilable(Integer)) } + def exp_month; end + # Four-digit number representing the card's expiration year. + sig { returns(T.nilable(Integer)) } + def exp_year; end + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + sig { returns(T.nilable(String)) } + def funding; end + # The last four digits of the card. + sig { returns(T.nilable(String)) } + def last4; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field card + sig { returns(T.nilable(Card)) } + def card; end + # funding type of the underlying payment method. + sig { returns(T.nilable(String)) } + def type; end + def self.inner_class_types + @inner_class_types = {card: Card} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field funding + sig { returns(T.nilable(Funding)) } + def funding; end + # The Amazon Pay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {funding: Funding} + end + def self.field_remappings + @field_remappings = {} + end + end + class AuBecsDebit < ::Stripe::StripeObject + # Bank-State-Branch number of the bank account. + sig { returns(T.nilable(String)) } + def bsb_number; end + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Last four digits of the bank account number. + sig { returns(T.nilable(String)) } + def last4; end + # ID of the mandate used to make this payment. + sig { returns(T.nilable(String)) } + def mandate; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class BacsDebit < ::Stripe::StripeObject + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Last four digits of the bank account number. + sig { returns(T.nilable(String)) } + def last4; end + # ID of the mandate used to make this payment. + sig { returns(T.nilable(String)) } + def mandate; end + # Sort code of the bank account. (e.g., `10-20-30`) + sig { returns(T.nilable(String)) } + def sort_code; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Bancontact < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_code; end + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Bank Identifier Code of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bic; end + # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } + def generated_sepa_debit; end + # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } + def generated_sepa_debit_mandate; end + # Last four characters of the IBAN. + sig { returns(T.nilable(String)) } + def iban_last4; end + # Preferred language of the Bancontact authorization page that the customer is redirected to. + # Can be one of `en`, `de`, `fr`, or `nl` + sig { returns(T.nilable(String)) } + def preferred_language; end + # Owner's verified full name. Values are verified or provided by Bancontact directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Billie < ::Stripe::StripeObject + # The Billie transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(T.nilable(String)) } + def line1; end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # A representation of a physical address. + sig { returns(Address) } + def address; end + # The billing email associated with the method of payment. + sig { returns(T.nilable(String)) } + def email; end + # The billing name associated with the method of payment. + sig { returns(T.nilable(String)) } + def name; end + # The billing phone number associated with the method of payment. + sig { returns(T.nilable(String)) } + def phone; end + def self.inner_class_types + @inner_class_types = {address: Address} + end + def self.field_remappings + @field_remappings = {} + end + end + class Blik < ::Stripe::StripeObject + # A unique and immutable identifier assigned by BLIK to every buyer. + sig { returns(T.nilable(String)) } + def buyer_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Boleto < ::Stripe::StripeObject + # The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses consumers) + sig { returns(String) } + def tax_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Card < ::Stripe::StripeObject + class Checks < ::Stripe::StripeObject + # Attribute for field address_line1_check + sig { returns(T.nilable(String)) } + def address_line1_check; end + # Attribute for field address_postal_code_check + sig { returns(T.nilable(String)) } + def address_postal_code_check; end + # Attribute for field cvc_check + sig { returns(T.nilable(String)) } + def cvc_check; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class NetworkToken < ::Stripe::StripeObject + # Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction. + sig { returns(T::Boolean) } + def used; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class ThreeDSecure < ::Stripe::StripeObject + # Attribute for field authentication_flow + sig { returns(T.nilable(String)) } + def authentication_flow; end + # Attribute for field result + sig { returns(T.nilable(String)) } + def result; end + # Attribute for field result_reason + sig { returns(T.nilable(String)) } + def result_reason; end + # Attribute for field version + sig { returns(T.nilable(String)) } + def version; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Wallet < ::Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject + # Type of the apple_pay transaction, one of `apple_pay` or `apple_pay_later`. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class GooglePay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field apple_pay + sig { returns(T.nilable(ApplePay)) } + def apple_pay; end + # (For tokenized numbers only.) The last four digits of the device account number. + sig { returns(T.nilable(String)) } + def dynamic_last4; end + # Attribute for field google_pay + sig { returns(T.nilable(GooglePay)) } + def google_pay; end + # The type of the card wallet, one of `apple_pay` or `google_pay`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {apple_pay: ApplePay, google_pay: GooglePay} + end + def self.field_remappings + @field_remappings = {} + end + end + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + sig { returns(String) } + def brand; end + # When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured. + sig { returns(T.nilable(Integer)) } + def capture_before; end + # Check results by Card networks on Card address and CVC at time of payment. + sig { returns(T.nilable(Checks)) } + def checks; end + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + sig { returns(T.nilable(String)) } + def country; end + # Two-digit number representing the card's expiration month. + sig { returns(Integer) } + def exp_month; end + # Four-digit number representing the card's expiration year. + sig { returns(Integer) } + def exp_year; end + # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + # + # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + sig { returns(T.nilable(String)) } + def fingerprint; end + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + sig { returns(String) } + def funding; end + # The last four digits of the card. + sig { returns(String) } + def last4; end + # True if this payment was marked as MOTO and out of scope for SCA. + sig { returns(T.nilable(T::Boolean)) } + def moto; end + # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + sig { returns(T.nilable(String)) } + def network; end + # If this card has network token credentials, this contains the details of the network token credentials. + sig { returns(T.nilable(NetworkToken)) } + def network_token; end + # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + sig { returns(T.nilable(String)) } + def network_transaction_id; end + # Populated if this transaction used 3D Secure authentication. + sig { returns(T.nilable(ThreeDSecure)) } + def three_d_secure; end + # If this Card is part of a card wallet, this contains the details of the card wallet. + sig { returns(T.nilable(Wallet)) } + def wallet; end + def self.inner_class_types + @inner_class_types = { + checks: Checks, + network_token: NetworkToken, + three_d_secure: ThreeDSecure, + wallet: Wallet, + } + end + def self.field_remappings + @field_remappings = {} + end + end + class CardPresent < ::Stripe::StripeObject + class Offline < ::Stripe::StripeObject + # Time at which the payment was collected while offline + sig { returns(T.nilable(Integer)) } + def stored_at; end + # The method used to process this payment method offline. Only deferred is allowed. + sig { returns(T.nilable(String)) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Receipt < ::Stripe::StripeObject + # The type of account being debited or credited + sig { returns(T.nilable(String)) } + def account_type; end + # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers. + sig { returns(T.nilable(String)) } + def application_cryptogram; end + # The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip. + sig { returns(T.nilable(String)) } + def application_preferred_name; end + # Identifier for this transaction. + sig { returns(T.nilable(String)) } + def authorization_code; end + # EMV tag 8A. A code returned by the card issuer. + sig { returns(T.nilable(String)) } + def authorization_response_code; end + # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`. + sig { returns(T.nilable(String)) } + def cardholder_verification_method; end + # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84. + sig { returns(T.nilable(String)) } + def dedicated_file_name; end + # A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95. + sig { returns(T.nilable(String)) } + def terminal_verification_results; end + # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B. + sig { returns(T.nilable(String)) } + def transaction_status_information; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Wallet < ::Stripe::StripeObject + # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The authorized amount + sig { returns(T.nilable(Integer)) } + def amount_authorized; end + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + sig { returns(T.nilable(String)) } + def brand; end + # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. + sig { returns(T.nilable(String)) } + def brand_product; end + # When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured. + sig { returns(T.nilable(Integer)) } + def capture_before; end + # The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay. + sig { returns(T.nilable(String)) } + def cardholder_name; end + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + sig { returns(T.nilable(String)) } + def country; end + # A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def description; end + # Authorization response cryptogram. + sig { returns(T.nilable(String)) } + def emv_auth_data; end + # Two-digit number representing the card's expiration month. + sig { returns(Integer) } + def exp_month; end + # Four-digit number representing the card's expiration year. + sig { returns(Integer) } + def exp_year; end + # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + # + # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + sig { returns(T.nilable(String)) } + def fingerprint; end + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + sig { returns(T.nilable(String)) } + def funding; end + # ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod. + sig { returns(T.nilable(String)) } + def generated_card; end + # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def iin; end + # Whether this [PaymentIntent](https://stripe.com/docs/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support). + sig { returns(T::Boolean) } + def incremental_authorization_supported; end + # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def issuer; end + # The last four digits of the card. + sig { returns(T.nilable(String)) } + def last4; end + # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + sig { returns(T.nilable(String)) } + def network; end + # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + sig { returns(T.nilable(String)) } + def network_transaction_id; end + # Details about payments collected offline. + sig { returns(T.nilable(Offline)) } + def offline; end + # Defines whether the authorized amount can be over-captured or not + sig { returns(T::Boolean) } + def overcapture_supported; end + # The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip. + sig { returns(T.nilable(T::Array[String])) } + def preferred_locales; end + # How card details were read in this transaction. + sig { returns(T.nilable(String)) } + def read_method; end + # A collection of fields required to be displayed on receipts. Only required for EMV transactions. + sig { returns(T.nilable(Receipt)) } + def receipt; end + # Attribute for field wallet + sig { returns(T.nilable(Wallet)) } + def wallet; end + def self.inner_class_types + @inner_class_types = {offline: Offline, receipt: Receipt, wallet: Wallet} + end + def self.field_remappings + @field_remappings = {} + end + end + class Cashapp < ::Stripe::StripeObject + # A unique and immutable identifier assigned by Cash App to every buyer. + sig { returns(T.nilable(String)) } + def buyer_id; end + # A public identifier for buyers using Cash App. + sig { returns(T.nilable(String)) } + def cashtag; end + # A unique and immutable identifier of payments assigned by Cash App + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Crypto < ::Stripe::StripeObject + # The wallet address of the customer. + sig { returns(T.nilable(String)) } + def buyer_address; end + # The blockchain network that the transaction was sent on. + sig { returns(T.nilable(String)) } + def network; end + # The token currency that the transaction was sent with. + sig { returns(T.nilable(String)) } + def token_currency; end + # The blockchain transaction hash of the crypto payment. + sig { returns(T.nilable(String)) } + def transaction_hash; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Custom < ::Stripe::StripeObject + # Display name for the custom (user-defined) payment method type used to make this payment. + sig { returns(String) } + def display_name; end + # The custom payment method type associated with this payment. + sig { returns(T.nilable(String)) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class CustomerBalance < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Eps < ::Stripe::StripeObject + # The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. + sig { returns(T.nilable(String)) } + def bank; end + # Owner's verified full name. Values are verified or provided by EPS directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + # EPS rarely provides this information so the attribute is usually empty. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Fpx < ::Stripe::StripeObject + # Account holder type, if provided. Can be one of `individual` or `company`. + sig { returns(T.nilable(String)) } + def account_holder_type; end + # The customer's bank. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`. + sig { returns(String) } + def bank; end + # Unique transaction id generated by FPX for every request from the merchant + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Giropay < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_code; end + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Bank Identifier Code of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bic; end + # Owner's verified full name. Values are verified or provided by Giropay directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + # Giropay rarely provides this information so the attribute is usually empty. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Grabpay < ::Stripe::StripeObject + # Unique transaction id generated by GrabPay + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Ideal < ::Stripe::StripeObject + # The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. + sig { returns(T.nilable(String)) } + def bank; end + # The Bank Identifier Code of the customer's bank. + sig { returns(T.nilable(String)) } + def bic; end + # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } + def generated_sepa_debit; end + # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } + def generated_sepa_debit_mandate; end + # Last four characters of the IBAN. + sig { returns(T.nilable(String)) } + def iban_last4; end + # Owner's verified full name. Values are verified or provided by iDEAL directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class InteracPresent < ::Stripe::StripeObject + class Receipt < ::Stripe::StripeObject + # The type of account being debited or credited + sig { returns(T.nilable(String)) } + def account_type; end + # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers. + sig { returns(T.nilable(String)) } + def application_cryptogram; end + # The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip. + sig { returns(T.nilable(String)) } + def application_preferred_name; end + # Identifier for this transaction. + sig { returns(T.nilable(String)) } + def authorization_code; end + # EMV tag 8A. A code returned by the card issuer. + sig { returns(T.nilable(String)) } + def authorization_response_code; end + # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`. + sig { returns(T.nilable(String)) } + def cardholder_verification_method; end + # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84. + sig { returns(T.nilable(String)) } + def dedicated_file_name; end + # A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95. + sig { returns(T.nilable(String)) } + def terminal_verification_results; end + # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B. + sig { returns(T.nilable(String)) } + def transaction_status_information; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Card brand. Can be `interac`, `mastercard` or `visa`. + sig { returns(T.nilable(String)) } + def brand; end + # The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay. + sig { returns(T.nilable(String)) } + def cardholder_name; end + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + sig { returns(T.nilable(String)) } + def country; end + # A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def description; end + # Authorization response cryptogram. + sig { returns(T.nilable(String)) } + def emv_auth_data; end + # Two-digit number representing the card's expiration month. + sig { returns(Integer) } + def exp_month; end + # Four-digit number representing the card's expiration year. + sig { returns(Integer) } + def exp_year; end + # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + # + # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + sig { returns(T.nilable(String)) } + def fingerprint; end + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + sig { returns(T.nilable(String)) } + def funding; end + # ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod. + sig { returns(T.nilable(String)) } + def generated_card; end + # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def iin; end + # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def issuer; end + # The last four digits of the card. + sig { returns(T.nilable(String)) } + def last4; end + # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + sig { returns(T.nilable(String)) } + def network; end + # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + sig { returns(T.nilable(String)) } + def network_transaction_id; end + # The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip. + sig { returns(T.nilable(T::Array[String])) } + def preferred_locales; end + # How card details were read in this transaction. + sig { returns(T.nilable(String)) } + def read_method; end + # A collection of fields required to be displayed on receipts. Only required for EMV transactions. + sig { returns(T.nilable(Receipt)) } + def receipt; end + def self.inner_class_types + @inner_class_types = {receipt: Receipt} + end + def self.field_remappings + @field_remappings = {} + end + end + class KakaoPay < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end + # The Kakao Pay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Klarna < ::Stripe::StripeObject + class PayerDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject + # The payer address country + sig { returns(T.nilable(String)) } + def country; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The payer's address + sig { returns(T.nilable(Address)) } + def address; end + def self.inner_class_types + @inner_class_types = {address: Address} + end + def self.field_remappings + @field_remappings = {} + end + end + # The payer details for this transaction. + sig { returns(T.nilable(PayerDetails)) } + def payer_details; end + # The Klarna payment method used for this transaction. + # Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` + sig { returns(T.nilable(String)) } + def payment_method_category; end + # Preferred language of the Klarna authorization page that the customer is redirected to. + # Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` + sig { returns(T.nilable(String)) } + def preferred_locale; end + def self.inner_class_types + @inner_class_types = {payer_details: PayerDetails} + end + def self.field_remappings + @field_remappings = {} + end + end + class Konbini < ::Stripe::StripeObject + class Store < ::Stripe::StripeObject + # The name of the convenience store chain where the payment was completed. + sig { returns(T.nilable(String)) } + def chain; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # If the payment succeeded, this contains the details of the convenience store where the payment was completed. + sig { returns(T.nilable(Store)) } + def store; end + def self.inner_class_types + @inner_class_types = {store: Store} + end + def self.field_remappings + @field_remappings = {} + end + end + class KrCard < ::Stripe::StripeObject + # The local credit or debit card brand. + sig { returns(T.nilable(String)) } + def brand; end + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end + # The last four digits of the card. This may not be present for American Express cards. + sig { returns(T.nilable(String)) } + def last4; end + # The Korean Card transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Link < ::Stripe::StripeObject + # Two-letter ISO code representing the funding source country beneath the Link payment. + # You could use this attribute to get a sense of international fees. + sig { returns(T.nilable(String)) } + def country; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class MbWay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Mobilepay < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + # Brand of the card used in the transaction + sig { returns(T.nilable(String)) } + def brand; end + # Two-letter ISO code representing the country of the card + sig { returns(T.nilable(String)) } + def country; end + # Two digit number representing the card's expiration month + sig { returns(T.nilable(Integer)) } + def exp_month; end + # Two digit number representing the card's expiration year + sig { returns(T.nilable(Integer)) } + def exp_year; end + # The last 4 digits of the card + sig { returns(T.nilable(String)) } + def last4; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Internal card details + sig { returns(T.nilable(Card)) } + def card; end + def self.inner_class_types + @inner_class_types = {card: Card} + end + def self.field_remappings + @field_remappings = {} + end + end + class Multibanco < ::Stripe::StripeObject + # Entity number associated with this Multibanco payment. + sig { returns(T.nilable(String)) } + def entity; end + # Reference number associated with this Multibanco payment. + sig { returns(T.nilable(String)) } + def reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class NaverPay < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end + # The Naver Pay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class NzBankAccount < ::Stripe::StripeObject + # The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. + sig { returns(T.nilable(String)) } + def account_holder_name; end + # The numeric code for the bank account's bank. + sig { returns(String) } + def bank_code; end + # The name of the bank. + sig { returns(String) } + def bank_name; end + # The numeric code for the bank account's bank branch. + sig { returns(String) } + def branch_code; end + # Last four digits of the bank account number. + sig { returns(String) } + def last4; end + # The suffix of the bank account number. + sig { returns(T.nilable(String)) } + def suffix; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Oxxo < ::Stripe::StripeObject + # OXXO reference number + sig { returns(T.nilable(String)) } + def number; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class P24 < ::Stripe::StripeObject + # The customer's bank. Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `velobank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`. + sig { returns(T.nilable(String)) } + def bank; end + # Unique reference for this Przelewy24 payment. + sig { returns(T.nilable(String)) } + def reference; end + # Owner's verified full name. Values are verified or provided by Przelewy24 directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + # Przelewy24 rarely provides this information so the attribute is usually empty. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class PayByBank < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Payco < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end + # The Payco transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Paynow < ::Stripe::StripeObject + # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. + sig { returns(T.nilable(String)) } + def location; end + # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. + sig { returns(T.nilable(String)) } + def reader; end + # Reference number associated with this PayNow payment + sig { returns(T.nilable(String)) } + def reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Paypal < ::Stripe::StripeObject + class SellerProtection < ::Stripe::StripeObject + # An array of conditions that are covered for the transaction, if applicable. + sig { returns(T.nilable(T::Array[String])) } + def dispute_categories; end + # Indicates whether the transaction is eligible for PayPal's seller protection. + sig { returns(String) } + def status; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def country; end + # Owner's email. Values are provided by PayPal directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def payer_email; end + # PayPal account PayerID. This identifier uniquely identifies the PayPal customer. + sig { returns(T.nilable(String)) } + def payer_id; end + # Owner's full name. Values provided by PayPal directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def payer_name; end + # The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction. + sig { returns(T.nilable(SellerProtection)) } + def seller_protection; end + # A unique ID generated by PayPal for this transaction. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {seller_protection: SellerProtection} + end + def self.field_remappings + @field_remappings = {} + end + end + class Pix < ::Stripe::StripeObject + # Unique transaction id generated by BCB + sig { returns(T.nilable(String)) } + def bank_transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Promptpay < ::Stripe::StripeObject + # Bill reference generated by PromptPay + sig { returns(T.nilable(String)) } + def reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class RevolutPay < ::Stripe::StripeObject + class Funding < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + sig { returns(T.nilable(String)) } + def brand; end + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + sig { returns(T.nilable(String)) } + def country; end + # Two-digit number representing the card's expiration month. + sig { returns(T.nilable(Integer)) } + def exp_month; end + # Four-digit number representing the card's expiration year. + sig { returns(T.nilable(Integer)) } + def exp_year; end + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + sig { returns(T.nilable(String)) } + def funding; end + # The last four digits of the card. + sig { returns(T.nilable(String)) } + def last4; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field card + sig { returns(T.nilable(Card)) } + def card; end + # funding type of the underlying payment method. + sig { returns(T.nilable(String)) } + def type; end + def self.inner_class_types + @inner_class_types = {card: Card} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field funding + sig { returns(T.nilable(Funding)) } + def funding; end + # The Revolut Pay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {funding: Funding} + end + def self.field_remappings + @field_remappings = {} + end + end + class SamsungPay < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end + # The Samsung Pay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Satispay < ::Stripe::StripeObject + # The Satispay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class SepaCreditTransfer < ::Stripe::StripeObject + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Bank Identifier Code of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bic; end + # IBAN of the bank account to transfer funds to. + sig { returns(T.nilable(String)) } + def iban; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class SepaDebit < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_code; end + # Branch code of bank associated with the bank account. + sig { returns(T.nilable(String)) } + def branch_code; end + # Two-letter ISO code representing the country the bank account is located in. + sig { returns(T.nilable(String)) } + def country; end + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Last four characters of the IBAN. + sig { returns(T.nilable(String)) } + def last4; end + # Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://stripe.com/docs/api/mandates/retrieve). + sig { returns(T.nilable(String)) } + def mandate; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Sofort < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_code; end + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Bank Identifier Code of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bic; end + # Two-letter ISO code representing the country the bank account is located in. + sig { returns(T.nilable(String)) } + def country; end + # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } + def generated_sepa_debit; end + # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } + def generated_sepa_debit_mandate; end + # Last four characters of the IBAN. + sig { returns(T.nilable(String)) } + def iban_last4; end + # Preferred language of the SOFORT authorization page that the customer is redirected to. + # Can be one of `de`, `en`, `es`, `fr`, `it`, `nl`, or `pl` + sig { returns(T.nilable(String)) } + def preferred_language; end + # Owner's verified full name. Values are verified or provided by SOFORT directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class StripeAccount < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Swish < ::Stripe::StripeObject + # Uniquely identifies the payer's Swish account. You can use this attribute to check whether two Swish transactions were paid for by the same payer + sig { returns(T.nilable(String)) } + def fingerprint; end + # Payer bank reference number for the payment + sig { returns(T.nilable(String)) } + def payment_reference; end + # The last four digits of the Swish account phone number + sig { returns(T.nilable(String)) } + def verified_phone_last4; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Twint < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class UsBankAccount < ::Stripe::StripeObject + # Attribute for field account_holder_type + sig { returns(T.nilable(String)) } + def account_holder_type; end + # Attribute for field account_type + sig { returns(T.nilable(String)) } + def account_type; end + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Last four digits of the bank account number. + sig { returns(T.nilable(String)) } + def last4; end + # ID of the mandate used to make this payment. + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } + def mandate; end + # Reference number to locate ACH payments with customer’s bank. + sig { returns(T.nilable(String)) } + def payment_reference; end + # Routing number of the bank account. + sig { returns(T.nilable(String)) } + def routing_number; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Wechat < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class WechatPay < ::Stripe::StripeObject + # Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. + sig { returns(T.nilable(String)) } + def location; end + # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. + sig { returns(T.nilable(String)) } + def reader; end + # Transaction ID of this particular WeChat Pay transaction. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Zip < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field ach_credit_transfer + sig { returns(T.nilable(AchCreditTransfer)) } + def ach_credit_transfer; end + # Attribute for field ach_debit + sig { returns(T.nilable(AchDebit)) } + def ach_debit; end + # Attribute for field acss_debit + sig { returns(T.nilable(AcssDebit)) } + def acss_debit; end + # Attribute for field affirm + sig { returns(T.nilable(Affirm)) } + def affirm; end + # Attribute for field afterpay_clearpay + sig { returns(T.nilable(AfterpayClearpay)) } + def afterpay_clearpay; end + # Attribute for field alipay + sig { returns(T.nilable(Alipay)) } + def alipay; end + # Attribute for field alma + sig { returns(T.nilable(Alma)) } + def alma; end + # Attribute for field amazon_pay + sig { returns(T.nilable(AmazonPay)) } + def amazon_pay; end + # Attribute for field au_becs_debit + sig { returns(T.nilable(AuBecsDebit)) } + def au_becs_debit; end + # Attribute for field bacs_debit + sig { returns(T.nilable(BacsDebit)) } + def bacs_debit; end + # Attribute for field bancontact + sig { returns(T.nilable(Bancontact)) } + def bancontact; end + # Attribute for field billie + sig { returns(T.nilable(Billie)) } + def billie; end + # The billing details associated with the method of payment. + sig { returns(T.nilable(BillingDetails)) } + def billing_details; end + # Attribute for field blik + sig { returns(T.nilable(Blik)) } + def blik; end + # Attribute for field boleto + sig { returns(T.nilable(Boleto)) } + def boleto; end + # Details of the card used for this payment attempt. + sig { returns(T.nilable(Card)) } + def card; end + # Attribute for field card_present + sig { returns(T.nilable(CardPresent)) } + def card_present; end + # Attribute for field cashapp + sig { returns(T.nilable(Cashapp)) } + def cashapp; end + # Attribute for field crypto + sig { returns(T.nilable(Crypto)) } + def crypto; end + # Custom Payment Methods represent Payment Method types not modeled directly in + # the Stripe API. This resource consists of details about the custom payment method + # used for this payment attempt. + sig { returns(T.nilable(Custom)) } + def custom; end + # Attribute for field customer_balance + sig { returns(T.nilable(CustomerBalance)) } + def customer_balance; end + # Attribute for field eps + sig { returns(T.nilable(Eps)) } + def eps; end + # Attribute for field fpx + sig { returns(T.nilable(Fpx)) } + def fpx; end + # Attribute for field giropay + sig { returns(T.nilable(Giropay)) } + def giropay; end + # Attribute for field grabpay + sig { returns(T.nilable(Grabpay)) } + def grabpay; end + # Attribute for field ideal + sig { returns(T.nilable(Ideal)) } + def ideal; end + # Attribute for field interac_present + sig { returns(T.nilable(InteracPresent)) } + def interac_present; end + # Attribute for field kakao_pay + sig { returns(T.nilable(KakaoPay)) } + def kakao_pay; end + # Attribute for field klarna + sig { returns(T.nilable(Klarna)) } + def klarna; end + # Attribute for field konbini + sig { returns(T.nilable(Konbini)) } + def konbini; end + # Attribute for field kr_card + sig { returns(T.nilable(KrCard)) } + def kr_card; end + # Attribute for field link + sig { returns(T.nilable(Link)) } + def link; end + # Attribute for field mb_way + sig { returns(T.nilable(MbWay)) } + def mb_way; end + # Attribute for field mobilepay + sig { returns(T.nilable(Mobilepay)) } + def mobilepay; end + # Attribute for field multibanco + sig { returns(T.nilable(Multibanco)) } + def multibanco; end + # Attribute for field naver_pay + sig { returns(T.nilable(NaverPay)) } + def naver_pay; end + # Attribute for field nz_bank_account + sig { returns(T.nilable(NzBankAccount)) } + def nz_bank_account; end + # Attribute for field oxxo + sig { returns(T.nilable(Oxxo)) } + def oxxo; end + # Attribute for field p24 + sig { returns(T.nilable(P24)) } + def p24; end + # Attribute for field pay_by_bank + sig { returns(T.nilable(PayByBank)) } + def pay_by_bank; end + # Attribute for field payco + sig { returns(T.nilable(Payco)) } + def payco; end + # ID of the Stripe PaymentMethod used to make this payment. + sig { returns(T.nilable(String)) } + def payment_method; end + # Attribute for field paynow + sig { returns(T.nilable(Paynow)) } + def paynow; end + # Attribute for field paypal + sig { returns(T.nilable(Paypal)) } + def paypal; end + # Attribute for field pix + sig { returns(T.nilable(Pix)) } + def pix; end + # Attribute for field promptpay + sig { returns(T.nilable(Promptpay)) } + def promptpay; end + # Attribute for field revolut_pay + sig { returns(T.nilable(RevolutPay)) } + def revolut_pay; end + # Attribute for field samsung_pay + sig { returns(T.nilable(SamsungPay)) } + def samsung_pay; end + # Attribute for field satispay + sig { returns(T.nilable(Satispay)) } + def satispay; end + # Attribute for field sepa_credit_transfer + sig { returns(T.nilable(SepaCreditTransfer)) } + def sepa_credit_transfer; end + # Attribute for field sepa_debit + sig { returns(T.nilable(SepaDebit)) } + def sepa_debit; end + # Attribute for field sofort + sig { returns(T.nilable(Sofort)) } + def sofort; end + # Attribute for field stripe_account + sig { returns(T.nilable(StripeAccount)) } + def stripe_account; end + # Attribute for field swish + sig { returns(T.nilable(Swish)) } + def swish; end + # Attribute for field twint + sig { returns(T.nilable(Twint)) } + def twint; end + # The type of transaction-specific details of the payment method used in the payment. See [PaymentMethod.type](https://stripe.com/docs/api/payment_methods/object#payment_method_object-type) for the full list of possible types. + # An additional hash is included on `payment_method_details` with a name matching this value. + # It contains information specific to the payment method. + sig { returns(String) } + def type; end + # Details of the US Bank Account used for this payment attempt. + sig { returns(T.nilable(UsBankAccount)) } + def us_bank_account; end + # Attribute for field wechat + sig { returns(T.nilable(Wechat)) } + def wechat; end + # Attribute for field wechat_pay + sig { returns(T.nilable(WechatPay)) } + def wechat_pay; end + # Attribute for field zip + sig { returns(T.nilable(Zip)) } + def zip; end + def self.inner_class_types + @inner_class_types = { + ach_credit_transfer: AchCreditTransfer, + ach_debit: AchDebit, + acss_debit: AcssDebit, + affirm: Affirm, + afterpay_clearpay: AfterpayClearpay, + alipay: Alipay, + alma: Alma, + amazon_pay: AmazonPay, + au_becs_debit: AuBecsDebit, + bacs_debit: BacsDebit, + bancontact: Bancontact, + billie: Billie, + billing_details: BillingDetails, + blik: Blik, + boleto: Boleto, + card: Card, + card_present: CardPresent, + cashapp: Cashapp, + crypto: Crypto, + custom: Custom, + customer_balance: CustomerBalance, + eps: Eps, + fpx: Fpx, + giropay: Giropay, + grabpay: Grabpay, + ideal: Ideal, + interac_present: InteracPresent, + kakao_pay: KakaoPay, + klarna: Klarna, + konbini: Konbini, + kr_card: KrCard, + link: Link, + mb_way: MbWay, + mobilepay: Mobilepay, + multibanco: Multibanco, + naver_pay: NaverPay, + nz_bank_account: NzBankAccount, + oxxo: Oxxo, + p24: P24, + pay_by_bank: PayByBank, + payco: Payco, + paynow: Paynow, + paypal: Paypal, + pix: Pix, + promptpay: Promptpay, + revolut_pay: RevolutPay, + samsung_pay: SamsungPay, + satispay: Satispay, + sepa_credit_transfer: SepaCreditTransfer, + sepa_debit: SepaDebit, + sofort: Sofort, + stripe_account: StripeAccount, + swish: Swish, + twint: Twint, + us_bank_account: UsBankAccount, + wechat: Wechat, + wechat_pay: WechatPay, + zip: Zip, + } + end + def self.field_remappings + @field_remappings = {} + end + end + class ProcessorDetails < ::Stripe::StripeObject + class Custom < ::Stripe::StripeObject + # An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID. + sig { returns(T.nilable(String)) } + def payment_reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Custom processors represent payment processors not modeled directly in + # the Stripe API. This resource consists of details about the custom processor + # used for this payment attempt. + sig { returns(T.nilable(Custom)) } + def custom; end + # The processor used for this payment attempt. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {custom: Custom} + end + def self.field_remappings + @field_remappings = {} + end + end + class ShippingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(T.nilable(String)) } + def line1; end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # A representation of a physical address. + sig { returns(Address) } + def address; end + # The shipping recipient's name. + sig { returns(T.nilable(String)) } + def name; end + # The shipping recipient's phone number. + sig { returns(T.nilable(String)) } + def phone; end + def self.inner_class_types + @inner_class_types = {address: Address} + end + def self.field_remappings + @field_remappings = {} + end + end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(Amount) } + def amount; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountAuthorized) } + def amount_authorized; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountCanceled) } + def amount_canceled; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountFailed) } + def amount_failed; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountGuaranteed) } + def amount_guaranteed; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountRefunded) } + def amount_refunded; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountRequested) } + def amount_requested; end + # ID of the Connect application that created the PaymentAttemptRecord. + sig { returns(T.nilable(String)) } + def application; end + # Time at which the object was created. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def created; end + # Customer information for this payment. + sig { returns(T.nilable(CustomerDetails)) } + def customer_details; end + # Indicates whether the customer was present in your checkout flow during this payment. + sig { returns(T.nilable(String)) } + def customer_presence; end + # An arbitrary string attached to the object. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + # Unique identifier for the object. + sig { returns(String) } + def id; end + # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + sig { returns(T::Boolean) } + def livemode; end + # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + sig { returns(T::Hash[String, String]) } + def metadata; end + # String representing the object's type. Objects of the same type share the same value. + sig { returns(String) } + def object; end + # Information about the Payment Method debited for this payment. + sig { returns(T.nilable(PaymentMethodDetails)) } + def payment_method_details; end + # ID of the Payment Record this Payment Attempt Record belongs to. + sig { returns(T.nilable(String)) } + def payment_record; end + # Processor information associated with this payment. + sig { returns(ProcessorDetails) } + def processor_details; end + # Indicates who reported the payment. + sig { returns(String) } + def reported_by; end + # Shipping information for this payment. + sig { returns(T.nilable(ShippingDetails)) } + def shipping_details; end + # List all the Payment Attempt Records attached to the specified Payment Record. + sig { + params(params: T.any(::Stripe::PaymentAttemptRecordListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) + } + def self.list(params = {}, opts = {}); end + end +end +# typed: true module Stripe # A PaymentIntent guides you through the process of collecting a payment from your customer. # We recommend that you create exactly one PaymentIntent for each order or @@ -21379,8 +23541,36 @@ module Stripe # # Related guide: [Payment Intents API](https://stripe.com/docs/payments/payment-intents) class PaymentIntent < APIResource - class AmountDetails < Stripe::StripeObject - class Tip < Stripe::StripeObject + class AmountDetails < ::Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + # Portion of the amount that is for shipping. + sig { returns(T.nilable(Integer)) } + def amount; end + # The postal code that represents the shipping source. + sig { returns(T.nilable(String)) } + def from_postal_code; end + # The postal code that represents the shipping destination. + sig { returns(T.nilable(String)) } + def to_postal_code; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Tax < ::Stripe::StripeObject + # Total portion of the amount that is for tax. + sig { returns(T.nilable(Integer)) } + def total_tax_amount; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Tip < ::Stripe::StripeObject # Portion of the amount that corresponds to a tip. sig { returns(T.nilable(Integer)) } def amount; end @@ -21391,17 +23581,29 @@ module Stripe @field_remappings = {} end end + # The total discount applied on the transaction. + sig { returns(T.nilable(Integer)) } + def discount_amount; end + # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. + sig { returns(T.nilable(::Stripe::ListObject)) } + def line_items; end + # Attribute for field shipping + sig { returns(T.nilable(Shipping)) } + def shipping; end + # Attribute for field tax + sig { returns(T.nilable(Tax)) } + def tax; end # Attribute for field tip sig { returns(T.nilable(Tip)) } def tip; end def self.inner_class_types - @inner_class_types = {tip: Tip} + @inner_class_types = {shipping: Shipping, tax: Tax, tip: Tip} end def self.field_remappings @field_remappings = {} end end - class AutomaticPaymentMethods < Stripe::StripeObject + class AutomaticPaymentMethods < ::Stripe::StripeObject # Controls whether this PaymentIntent will accept redirect-based payment methods. # # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment. @@ -21417,7 +23619,7 @@ module Stripe @field_remappings = {} end end - class LastPaymentError < Stripe::StripeObject + class LastPaymentError < ::Stripe::StripeObject # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one. sig { returns(T.nilable(String)) } def advice_code; end @@ -21456,14 +23658,14 @@ module Stripe # authentication flows and ultimately creates at most one successful charge. # # Related guide: [Payment Intents API](https://stripe.com/docs/payments/payment-intents) - sig { returns(T.nilable(Stripe::PaymentIntent)) } + sig { returns(T.nilable(::Stripe::PaymentIntent)) } def payment_intent; end # PaymentMethod objects represent your customer's payment instruments. # You can use them with [PaymentIntents](https://stripe.com/docs/payments/payment-intents) to collect payments or save them to # Customer objects to store instrument details for future payments. # # Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios). - sig { returns(T.nilable(Stripe::PaymentMethod)) } + sig { returns(T.nilable(::Stripe::PaymentMethod)) } def payment_method; end # If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors. sig { returns(T.nilable(String)) } @@ -21492,11 +23694,11 @@ module Stripe # By using SetupIntents, you can reduce friction for your customers, even as regulations change over time. # # Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) - sig { returns(T.nilable(Stripe::SetupIntent)) } + sig { returns(T.nilable(::Stripe::SetupIntent)) } def setup_intent; end # Attribute for field source sig { - returns(T.nilable(T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source))) + returns(T.nilable(T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source))) } def source; end # The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error` @@ -21509,8 +23711,8 @@ module Stripe @field_remappings = {} end end - class NextAction < Stripe::StripeObject - class AlipayHandleRedirect < Stripe::StripeObject + class NextAction < ::Stripe::StripeObject + class AlipayHandleRedirect < ::Stripe::StripeObject # The native data to be used with Alipay SDK you must redirect your customer to in order to authenticate the payment in an Android App. sig { returns(T.nilable(String)) } def native_data; end @@ -21530,7 +23732,7 @@ module Stripe @field_remappings = {} end end - class BoletoDisplayDetails < Stripe::StripeObject + class BoletoDisplayDetails < ::Stripe::StripeObject # The timestamp after which the boleto expires. sig { returns(T.nilable(Integer)) } def expires_at; end @@ -21550,7 +23752,7 @@ module Stripe @field_remappings = {} end end - class CardAwaitNotification < Stripe::StripeObject + class CardAwaitNotification < ::Stripe::StripeObject # The time that payment will be attempted. If customer approval is required, they need to provide approval before this time. sig { returns(T.nilable(Integer)) } def charge_attempt_at; end @@ -21564,8 +23766,8 @@ module Stripe @field_remappings = {} end end - class CashappHandleRedirectOrDisplayQrCode < Stripe::StripeObject - class QrCode < Stripe::StripeObject + class CashappHandleRedirectOrDisplayQrCode < ::Stripe::StripeObject + class QrCode < ::Stripe::StripeObject # The date (unix timestamp) when the QR code expires. sig { returns(Integer) } def expires_at; end @@ -21598,10 +23800,10 @@ module Stripe @field_remappings = {} end end - class DisplayBankTransferInstructions < Stripe::StripeObject - class FinancialAddress < Stripe::StripeObject - class Aba < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class DisplayBankTransferInstructions < ::Stripe::StripeObject + class FinancialAddress < ::Stripe::StripeObject + class Aba < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -21627,7 +23829,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -21684,8 +23886,8 @@ module Stripe @field_remappings = {} end end - class Iban < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Iban < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -21711,7 +23913,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -21765,8 +23967,8 @@ module Stripe @field_remappings = {} end end - class SortCode < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class SortCode < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -21792,7 +23994,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -21843,8 +24045,8 @@ module Stripe @field_remappings = {} end end - class Spei < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Spei < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -21870,7 +24072,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -21924,8 +24126,8 @@ module Stripe @field_remappings = {} end end - class Swift < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Swift < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -21951,7 +24153,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -22008,8 +24210,8 @@ module Stripe @field_remappings = {} end end - class Zengin < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Zengin < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -22035,7 +24237,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -22161,9 +24363,9 @@ module Stripe @field_remappings = {} end end - class KonbiniDisplayDetails < Stripe::StripeObject - class Stores < Stripe::StripeObject - class Familymart < Stripe::StripeObject + class KonbiniDisplayDetails < ::Stripe::StripeObject + class Stores < ::Stripe::StripeObject + class Familymart < ::Stripe::StripeObject # The confirmation number. sig { returns(T.nilable(String)) } def confirmation_number; end @@ -22177,7 +24379,7 @@ module Stripe @field_remappings = {} end end - class Lawson < Stripe::StripeObject + class Lawson < ::Stripe::StripeObject # The confirmation number. sig { returns(T.nilable(String)) } def confirmation_number; end @@ -22191,7 +24393,7 @@ module Stripe @field_remappings = {} end end - class Ministop < Stripe::StripeObject + class Ministop < ::Stripe::StripeObject # The confirmation number. sig { returns(T.nilable(String)) } def confirmation_number; end @@ -22205,7 +24407,7 @@ module Stripe @field_remappings = {} end end - class Seicomart < Stripe::StripeObject + class Seicomart < ::Stripe::StripeObject # The confirmation number. sig { returns(T.nilable(String)) } def confirmation_number; end @@ -22259,7 +24461,7 @@ module Stripe @field_remappings = {} end end - class MultibancoDisplayDetails < Stripe::StripeObject + class MultibancoDisplayDetails < ::Stripe::StripeObject # Entity number associated with this Multibanco payment. sig { returns(T.nilable(String)) } def entity; end @@ -22279,7 +24481,7 @@ module Stripe @field_remappings = {} end end - class OxxoDisplayDetails < Stripe::StripeObject + class OxxoDisplayDetails < ::Stripe::StripeObject # The timestamp after which the OXXO voucher expires. sig { returns(T.nilable(Integer)) } def expires_after; end @@ -22296,7 +24498,7 @@ module Stripe @field_remappings = {} end end - class PaynowDisplayQrCode < Stripe::StripeObject + class PaynowDisplayQrCode < ::Stripe::StripeObject # The raw data string used to generate QR code, it should be used together with QR code library. sig { returns(String) } def data; end @@ -22316,7 +24518,7 @@ module Stripe @field_remappings = {} end end - class PixDisplayQrCode < Stripe::StripeObject + class PixDisplayQrCode < ::Stripe::StripeObject # The raw data string used to generate QR code, it should be used together with QR code library. sig { returns(T.nilable(String)) } def data; end @@ -22339,7 +24541,7 @@ module Stripe @field_remappings = {} end end - class PromptpayDisplayQrCode < Stripe::StripeObject + class PromptpayDisplayQrCode < ::Stripe::StripeObject # The raw data string used to generate QR code, it should be used together with QR code library. sig { returns(String) } def data; end @@ -22359,7 +24561,7 @@ module Stripe @field_remappings = {} end end - class RedirectToUrl < Stripe::StripeObject + class RedirectToUrl < ::Stripe::StripeObject # If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion. sig { returns(T.nilable(String)) } def return_url; end @@ -22373,8 +24575,8 @@ module Stripe @field_remappings = {} end end - class SwishHandleRedirectOrDisplayQrCode < Stripe::StripeObject - class QrCode < Stripe::StripeObject + class SwishHandleRedirectOrDisplayQrCode < ::Stripe::StripeObject + class QrCode < ::Stripe::StripeObject # The raw data string used to generate QR code, it should be used together with QR code library. sig { returns(String) } def data; end @@ -22407,7 +24609,7 @@ module Stripe @field_remappings = {} end end - class VerifyWithMicrodeposits < Stripe::StripeObject + class VerifyWithMicrodeposits < ::Stripe::StripeObject # The timestamp when the microdeposits are expected to land. sig { returns(Integer) } def arrival_date; end @@ -22424,7 +24626,7 @@ module Stripe @field_remappings = {} end end - class WechatPayDisplayQrCode < Stripe::StripeObject + class WechatPayDisplayQrCode < ::Stripe::StripeObject # The data being used to generate QR code sig { returns(String) } def data; end @@ -22447,7 +24649,7 @@ module Stripe @field_remappings = {} end end - class WechatPayRedirectToAndroidApp < Stripe::StripeObject + class WechatPayRedirectToAndroidApp < ::Stripe::StripeObject # app_id is the APP ID registered on WeChat open platform sig { returns(String) } def app_id; end @@ -22476,7 +24678,7 @@ module Stripe @field_remappings = {} end end - class WechatPayRedirectToIosApp < Stripe::StripeObject + class WechatPayRedirectToIosApp < ::Stripe::StripeObject # An universal link that redirect to WeChat Pay app sig { returns(String) } def native_url; end @@ -22569,7 +24771,21 @@ module Stripe @field_remappings = {} end end - class PaymentMethodConfigurationDetails < Stripe::StripeObject + class PaymentDetails < ::Stripe::StripeObject + # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + sig { returns(T.nilable(String)) } + def customer_reference; end + # A unique value assigned by the business to identify the transaction. + sig { returns(T.nilable(String)) } + def order_reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class PaymentMethodConfigurationDetails < ::Stripe::StripeObject # ID of the payment method configuration used. sig { returns(String) } def id; end @@ -22583,9 +24799,9 @@ module Stripe @field_remappings = {} end end - class PaymentMethodOptions < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class PaymentMethodOptions < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # A URL for custom mandate text sig { returns(T.nilable(String)) } def custom_mandate_url; end @@ -22630,7 +24846,7 @@ module Stripe @field_remappings = {} end end - class Affirm < Stripe::StripeObject + class Affirm < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -22653,7 +24869,7 @@ module Stripe @field_remappings = {} end end - class AfterpayClearpay < Stripe::StripeObject + class AfterpayClearpay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -22677,7 +24893,7 @@ module Stripe @field_remappings = {} end end - class Alipay < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -22694,7 +24910,7 @@ module Stripe @field_remappings = {} end end - class Alma < Stripe::StripeObject + class Alma < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -22705,7 +24921,7 @@ module Stripe @field_remappings = {} end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -22725,7 +24941,7 @@ module Stripe @field_remappings = {} end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -22745,8 +24961,8 @@ module Stripe @field_remappings = {} end end - class BacsDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -22779,7 +24995,7 @@ module Stripe @field_remappings = {} end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject # Preferred language of the Bancontact authorization page that the customer is redirected to. sig { returns(String) } def preferred_language; end @@ -22799,7 +25015,7 @@ module Stripe @field_remappings = {} end end - class Billie < Stripe::StripeObject + class Billie < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -22810,7 +25026,7 @@ module Stripe @field_remappings = {} end end - class Blik < Stripe::StripeObject + class Blik < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -22827,7 +25043,7 @@ module Stripe @field_remappings = {} end end - class Boleto < Stripe::StripeObject + class Boleto < ::Stripe::StripeObject # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto voucher will expire on Wednesday at 23:59 America/Sao_Paulo time. sig { returns(Integer) } def expires_after_days; end @@ -22847,9 +25063,9 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject - class Installments < Stripe::StripeObject - class AvailablePlan < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Installments < ::Stripe::StripeObject + class AvailablePlan < ::Stripe::StripeObject # For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card. sig { returns(T.nilable(Integer)) } def count; end @@ -22867,7 +25083,7 @@ module Stripe @field_remappings = {} end end - class Plan < Stripe::StripeObject + class Plan < ::Stripe::StripeObject # For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card. sig { returns(T.nilable(Integer)) } def count; end @@ -22901,7 +25117,7 @@ module Stripe @field_remappings = {} end end - class MandateOptions < Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Amount to be charged for future payments. sig { returns(Integer) } def amount; end @@ -22990,8 +25206,8 @@ module Stripe @field_remappings = {} end end - class CardPresent < Stripe::StripeObject - class Routing < Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject + class Routing < ::Stripe::StripeObject # Requested routing priority sig { returns(T.nilable(String)) } def requested_priority; end @@ -23018,7 +25234,7 @@ module Stripe @field_remappings = {} end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -23038,7 +25254,7 @@ module Stripe @field_remappings = {} end end - class Crypto < Stripe::StripeObject + class Crypto < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -23055,9 +25271,9 @@ module Stripe @field_remappings = {} end end - class CustomerBalance < Stripe::StripeObject - class BankTransfer < Stripe::StripeObject - class EuBankTransfer < Stripe::StripeObject + class CustomerBalance < ::Stripe::StripeObject + class BankTransfer < ::Stripe::StripeObject + class EuBankTransfer < ::Stripe::StripeObject # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -23108,7 +25324,7 @@ module Stripe @field_remappings = {} end end - class Eps < Stripe::StripeObject + class Eps < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -23125,7 +25341,7 @@ module Stripe @field_remappings = {} end end - class Fpx < Stripe::StripeObject + class Fpx < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -23142,7 +25358,7 @@ module Stripe @field_remappings = {} end end - class Giropay < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -23159,7 +25375,7 @@ module Stripe @field_remappings = {} end end - class Grabpay < Stripe::StripeObject + class Grabpay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -23176,7 +25392,7 @@ module Stripe @field_remappings = {} end end - class Ideal < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -23193,7 +25409,7 @@ module Stripe @field_remappings = {} end end - class InteracPresent < Stripe::StripeObject + class InteracPresent < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -23201,7 +25417,7 @@ module Stripe @field_remappings = {} end end - class KakaoPay < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -23221,7 +25437,7 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -23244,7 +25460,7 @@ module Stripe @field_remappings = {} end end - class Konbini < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject # An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. sig { returns(T.nilable(String)) } def confirmation_number; end @@ -23273,7 +25489,7 @@ module Stripe @field_remappings = {} end end - class KrCard < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -23293,7 +25509,7 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -23316,7 +25532,7 @@ module Stripe @field_remappings = {} end end - class MbWay < Stripe::StripeObject + class MbWay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -23333,7 +25549,7 @@ module Stripe @field_remappings = {} end end - class Mobilepay < Stripe::StripeObject + class Mobilepay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -23353,7 +25569,7 @@ module Stripe @field_remappings = {} end end - class Multibanco < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -23370,7 +25586,7 @@ module Stripe @field_remappings = {} end end - class NaverPay < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -23390,7 +25606,7 @@ module Stripe @field_remappings = {} end end - class NzBankAccount < Stripe::StripeObject + class NzBankAccount < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -23410,7 +25626,7 @@ module Stripe @field_remappings = {} end end - class Oxxo < Stripe::StripeObject + class Oxxo < ::Stripe::StripeObject # The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. sig { returns(Integer) } def expires_after_days; end @@ -23430,7 +25646,7 @@ module Stripe @field_remappings = {} end end - class P24 < Stripe::StripeObject + class P24 < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -23447,7 +25663,7 @@ module Stripe @field_remappings = {} end end - class PayByBank < Stripe::StripeObject + class PayByBank < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -23455,7 +25671,7 @@ module Stripe @field_remappings = {} end end - class Payco < Stripe::StripeObject + class Payco < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -23466,7 +25682,7 @@ module Stripe @field_remappings = {} end end - class Paynow < Stripe::StripeObject + class Paynow < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -23483,7 +25699,7 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -23509,7 +25725,7 @@ module Stripe @field_remappings = {} end end - class Pix < Stripe::StripeObject + class Pix < ::Stripe::StripeObject # Determines if the amount includes the IOF tax. sig { returns(T.nilable(String)) } def amount_includes_iof; end @@ -23535,7 +25751,7 @@ module Stripe @field_remappings = {} end end - class Promptpay < Stripe::StripeObject + class Promptpay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -23552,7 +25768,7 @@ module Stripe @field_remappings = {} end end - class RevolutPay < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -23572,7 +25788,7 @@ module Stripe @field_remappings = {} end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -23583,7 +25799,7 @@ module Stripe @field_remappings = {} end end - class Satispay < Stripe::StripeObject + class Satispay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -23594,8 +25810,8 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -23628,7 +25844,7 @@ module Stripe @field_remappings = {} end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject # Preferred language of the SOFORT authorization page that the customer is redirected to. sig { returns(T.nilable(String)) } def preferred_language; end @@ -23648,7 +25864,7 @@ module Stripe @field_remappings = {} end end - class Swish < Stripe::StripeObject + class Swish < ::Stripe::StripeObject # A reference for this payment to be displayed in the Swish app. sig { returns(T.nilable(String)) } def reference; end @@ -23668,7 +25884,7 @@ module Stripe @field_remappings = {} end end - class Twint < Stripe::StripeObject + class Twint < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -23685,9 +25901,9 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject - class FinancialConnections < Stripe::StripeObject - class Filters < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject + class FinancialConnections < ::Stripe::StripeObject + class Filters < ::Stripe::StripeObject # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -23717,7 +25933,7 @@ module Stripe @field_remappings = {} end end - class MandateOptions < Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Mandate collection method sig { returns(T.nilable(String)) } def collection_method; end @@ -23762,7 +25978,7 @@ module Stripe @field_remappings = {} end end - class WechatPay < Stripe::StripeObject + class WechatPay < ::Stripe::StripeObject # The app ID registered with WeChat Pay. Only required when client is ios or android. sig { returns(T.nilable(String)) } def app_id; end @@ -23785,7 +26001,7 @@ module Stripe @field_remappings = {} end end - class Zip < Stripe::StripeObject + class Zip < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -24014,7 +26230,7 @@ module Stripe @field_remappings = {} end end - class PresentmentDetails < Stripe::StripeObject + class PresentmentDetails < ::Stripe::StripeObject # Amount intended to be collected by this payment, denominated in `presentment_currency`. sig { returns(Integer) } def presentment_amount; end @@ -24028,9 +26244,9 @@ module Stripe @field_remappings = {} end end - class Processing < Stripe::StripeObject - class Card < Stripe::StripeObject - class CustomerNotification < Stripe::StripeObject + class Processing < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + class CustomerNotification < ::Stripe::StripeObject # Whether customer approval has been requested for this payment. For payments greater than INR 15000 or mandate amount, the customer must provide explicit approval of the payment with their bank. sig { returns(T.nilable(T::Boolean)) } def approval_requested; end @@ -24067,8 +26283,8 @@ module Stripe @field_remappings = {} end end - class Shipping < Stripe::StripeObject - class Address < Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -24116,14 +26332,14 @@ module Stripe @field_remappings = {} end end - class TransferData < Stripe::StripeObject + class TransferData < ::Stripe::StripeObject # The amount transferred to the destination account. This transfer will occur automatically after the payment succeeds. If no amount is specified, by default the entire payment amount is transferred to the destination account. # The amount must be less than or equal to the [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount), and must be a positive integer # representing how much to transfer in the smallest currency unit (e.g., 100 cents to charge $1.00). sig { returns(T.nilable(Integer)) } def amount; end # The account (if any) that the payment is attributed to for tax reporting, and where funds from the payment are transferred to after payment success. - sig { returns(T.any(String, Stripe::Account)) } + sig { returns(T.any(String, ::Stripe::Account)) } def destination; end def self.inner_class_types @inner_class_types = {} @@ -24145,7 +26361,7 @@ module Stripe sig { returns(Integer) } def amount_received; end # ID of the Connect application that created the PaymentIntent. - sig { returns(T.nilable(T.any(String, Stripe::Application))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Application))) } def application; end # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } @@ -24183,7 +26399,7 @@ module Stripe # Payment methods attached to other Customers cannot be used with this PaymentIntent. # # If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } @@ -24198,7 +26414,7 @@ module Stripe sig { returns(T.nilable(LastPaymentError)) } def last_payment_error; end # ID of the latest [Charge object](https://stripe.com/docs/api/charges) created by this PaymentIntent. This property is `null` until PaymentIntent confirmation is attempted. - sig { returns(T.nilable(T.any(String, Stripe::Charge))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Charge))) } def latest_charge; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -24213,10 +26429,13 @@ module Stripe sig { returns(String) } def object; end # The account (if any) for which the funds of the PaymentIntent are intended. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts) for details. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def on_behalf_of; end + # Attribute for field payment_details + sig { returns(T.nilable(PaymentDetails)) } + def payment_details; end # ID of the payment method used in this PaymentIntent. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def payment_method; end # Information about the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) used for this PaymentIntent. sig { returns(T.nilable(PaymentMethodConfigurationDetails)) } @@ -24237,7 +26456,7 @@ module Stripe sig { returns(T.nilable(String)) } def receipt_email; end # ID of the review associated with this PaymentIntent, if any. - sig { returns(T.nilable(T.any(String, Stripe::Review))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Review))) } def review; end # Indicates that you intend to make future payments with this PaymentIntent's payment method. # @@ -24253,7 +26472,7 @@ module Stripe def shipping; end # This is a legacy field that will be removed in the future. It is the ID of the Source object that is associated with this PaymentIntent, if one was supplied. sig { - returns(T.nilable(T.any(String, T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source)))) + returns(T.nilable(T.any(String, T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source)))) } def source; end # Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). @@ -24275,13 +26494,13 @@ module Stripe def transfer_group; end # Manually reconcile the remaining amount for a customer_balance PaymentIntent. sig { - params(params: T.any(::Stripe::PaymentIntentApplyCustomerBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(params: T.any(::Stripe::PaymentIntentApplyCustomerBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def apply_customer_balance(params = {}, opts = {}); end # Manually reconcile the remaining amount for a customer_balance PaymentIntent. sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentApplyCustomerBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentApplyCustomerBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def self.apply_customer_balance(intent, params = {}, opts = {}); end @@ -24291,7 +26510,7 @@ module Stripe # # You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead. sig { - params(params: T.any(::Stripe::PaymentIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(params: T.any(::Stripe::PaymentIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def cancel(params = {}, opts = {}); end @@ -24301,7 +26520,7 @@ module Stripe # # You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead. sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def self.cancel(intent, params = {}, opts = {}); end @@ -24311,7 +26530,7 @@ module Stripe # # Learn more about [separate authorization and capture](https://docs.stripe.com/docs/payments/capture-later). sig { - params(params: T.any(::Stripe::PaymentIntentCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(params: T.any(::Stripe::PaymentIntentCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def capture(params = {}, opts = {}); end @@ -24321,7 +26540,7 @@ module Stripe # # Learn more about [separate authorization and capture](https://docs.stripe.com/docs/payments/capture-later). sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def self.capture(intent, params = {}, opts = {}); end @@ -24356,7 +26575,7 @@ module Stripe # After this limit is reached, any further calls to this endpoint will # transition the PaymentIntent to the canceled state. sig { - params(params: T.any(::Stripe::PaymentIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(params: T.any(::Stripe::PaymentIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def confirm(params = {}, opts = {}); end @@ -24391,7 +26610,7 @@ module Stripe # After this limit is reached, any further calls to this endpoint will # transition the PaymentIntent to the canceled state. sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def self.confirm(intent, params = {}, opts = {}); end @@ -24406,7 +26625,7 @@ module Stripe # available in the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) when you supply # confirm=true. sig { - params(params: T.any(::Stripe::PaymentIntentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(params: T.any(::Stripe::PaymentIntentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def self.create(params = {}, opts = {}); end @@ -24435,7 +26654,7 @@ module Stripe # # Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). sig { - params(params: T.any(::Stripe::PaymentIntentIncrementAuthorizationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(params: T.any(::Stripe::PaymentIntentIncrementAuthorizationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def increment_authorization(params = {}, opts = {}); end @@ -24464,23 +26683,23 @@ module Stripe # # Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentIncrementAuthorizationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentIncrementAuthorizationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def self.increment_authorization(intent, params = {}, opts = {}); end # Returns a list of PaymentIntents. sig { - params(params: T.any(::Stripe::PaymentIntentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PaymentIntentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::PaymentIntentSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::PaymentIntentSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def self.search(params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::PaymentIntentSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::PaymentIntentSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(::Stripe::SearchResultObject) } def self.search_auto_paging_each(params = {}, opts = {}, &blk); end @@ -24492,24 +26711,149 @@ module Stripe # update and confirm at the same time, we recommend updating properties through # the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) instead. sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def self.update(intent, params = {}, opts = {}); end # Verifies microdeposits on a PaymentIntent object. sig { - params(params: T.any(::Stripe::PaymentIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(params: T.any(::Stripe::PaymentIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def verify_microdeposits(params = {}, opts = {}); end # Verifies microdeposits on a PaymentIntent object. sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def self.verify_microdeposits(intent, params = {}, opts = {}); end end end # typed: true +module Stripe + class PaymentIntentAmountDetailsLineItem < APIResource + class PaymentMethodOptions < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + # Attribute for field commodity_code + sig { returns(T.nilable(String)) } + def commodity_code; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class CardPresent < ::Stripe::StripeObject + # Attribute for field commodity_code + sig { returns(T.nilable(String)) } + def commodity_code; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Klarna < ::Stripe::StripeObject + # Attribute for field image_url + sig { returns(T.nilable(String)) } + def image_url; end + # Attribute for field product_url + sig { returns(T.nilable(String)) } + def product_url; end + # Attribute for field reference + sig { returns(T.nilable(String)) } + def reference; end + # Attribute for field subscription_reference + sig { returns(T.nilable(String)) } + def subscription_reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Paypal < ::Stripe::StripeObject + # Type of the line item. + sig { returns(T.nilable(String)) } + def category; end + # Description of the line item. + sig { returns(T.nilable(String)) } + def description; end + # The Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers). + sig { returns(T.nilable(String)) } + def sold_by; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field card + sig { returns(T.nilable(Card)) } + def card; end + # Attribute for field card_present + sig { returns(T.nilable(CardPresent)) } + def card_present; end + # Attribute for field klarna + sig { returns(T.nilable(Klarna)) } + def klarna; end + # Attribute for field paypal + sig { returns(T.nilable(Paypal)) } + def paypal; end + def self.inner_class_types + @inner_class_types = {card: Card, card_present: CardPresent, klarna: Klarna, paypal: Paypal} + end + def self.field_remappings + @field_remappings = {} + end + end + class Tax < ::Stripe::StripeObject + # Total portion of the amount that is for tax. + sig { returns(Integer) } + def total_tax_amount; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The amount an item was discounted for. Positive integer. + sig { returns(T.nilable(Integer)) } + def discount_amount; end + # Unique identifier for the object. + sig { returns(String) } + def id; end + # String representing the object's type. Objects of the same type share the same value. + sig { returns(String) } + def object; end + # Payment method-specific information for line items. + sig { returns(T.nilable(PaymentMethodOptions)) } + def payment_method_options; end + # Unique identifier of the product. At most 12 characters long. + sig { returns(T.nilable(String)) } + def product_code; end + # Name of the product. At most 100 characters long. + sig { returns(String) } + def product_name; end + # Number of items of the product. Positive integer. + sig { returns(Integer) } + def quantity; end + # Contains information about the tax on the item. + sig { returns(T.nilable(Tax)) } + def tax; end + # Cost of the product. Non-negative integer. + sig { returns(Integer) } + def unit_cost; end + # A unit of measure for the line item, such as gallons, feet, meters, etc. + sig { returns(T.nilable(String)) } + def unit_of_measure; end + end +end +# typed: true module Stripe # A payment link is a shareable URL that will take your customers to a hosted payment page. A payment link can be shared and used multiple times. # @@ -24517,8 +26861,8 @@ module Stripe # # Related guide: [Payment Links API](https://stripe.com/docs/payment-links) class PaymentLink < APIResource - class AfterCompletion < Stripe::StripeObject - class HostedConfirmation < Stripe::StripeObject + class AfterCompletion < ::Stripe::StripeObject + class HostedConfirmation < ::Stripe::StripeObject # The custom message that is displayed to the customer after the purchase is complete. sig { returns(T.nilable(String)) } def custom_message; end @@ -24529,7 +26873,7 @@ module Stripe @field_remappings = {} end end - class Redirect < Stripe::StripeObject + class Redirect < ::Stripe::StripeObject # The URL the customer will be redirected to after the purchase is complete. sig { returns(String) } def url; end @@ -24556,10 +26900,10 @@ module Stripe @field_remappings = {} end end - class AutomaticTax < Stripe::StripeObject - class Liability < Stripe::StripeObject + class AutomaticTax < ::Stripe::StripeObject + class Liability < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -24584,8 +26928,8 @@ module Stripe @field_remappings = {} end end - class ConsentCollection < Stripe::StripeObject - class PaymentMethodReuseAgreement < Stripe::StripeObject + class ConsentCollection < ::Stripe::StripeObject + class PaymentMethodReuseAgreement < ::Stripe::StripeObject # Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's defaults will be used. # # When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI. @@ -24614,9 +26958,9 @@ module Stripe @field_remappings = {} end end - class CustomField < Stripe::StripeObject - class Dropdown < Stripe::StripeObject - class Option < Stripe::StripeObject + class CustomField < ::Stripe::StripeObject + class Dropdown < ::Stripe::StripeObject + class Option < ::Stripe::StripeObject # The label for the option, displayed to the customer. Up to 100 characters. sig { returns(String) } def label; end @@ -24643,7 +26987,7 @@ module Stripe @field_remappings = {} end end - class Label < Stripe::StripeObject + class Label < ::Stripe::StripeObject # Custom text for the label, displayed to the customer. Up to 50 characters. sig { returns(T.nilable(String)) } def custom; end @@ -24657,7 +27001,7 @@ module Stripe @field_remappings = {} end end - class Numeric < Stripe::StripeObject + class Numeric < ::Stripe::StripeObject # The value that will pre-fill the field on the payment page. sig { returns(T.nilable(String)) } def default_value; end @@ -24674,7 +27018,7 @@ module Stripe @field_remappings = {} end end - class Text < Stripe::StripeObject + class Text < ::Stripe::StripeObject # The value that will pre-fill the field on the payment page. sig { returns(T.nilable(String)) } def default_value; end @@ -24719,8 +27063,8 @@ module Stripe @field_remappings = {} end end - class CustomText < Stripe::StripeObject - class AfterSubmit < Stripe::StripeObject + class CustomText < ::Stripe::StripeObject + class AfterSubmit < ::Stripe::StripeObject # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -24731,7 +27075,7 @@ module Stripe @field_remappings = {} end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -24742,7 +27086,7 @@ module Stripe @field_remappings = {} end end - class Submit < Stripe::StripeObject + class Submit < ::Stripe::StripeObject # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -24753,7 +27097,7 @@ module Stripe @field_remappings = {} end end - class TermsOfServiceAcceptance < Stripe::StripeObject + class TermsOfServiceAcceptance < ::Stripe::StripeObject # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -24788,9 +27132,9 @@ module Stripe @field_remappings = {} end end - class InvoiceCreation < Stripe::StripeObject - class InvoiceData < Stripe::StripeObject - class CustomField < Stripe::StripeObject + class InvoiceCreation < ::Stripe::StripeObject + class InvoiceData < ::Stripe::StripeObject + class CustomField < ::Stripe::StripeObject # The name of the custom field. sig { returns(String) } def name; end @@ -24804,9 +27148,9 @@ module Stripe @field_remappings = {} end end - class Issuer < Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -24818,7 +27162,7 @@ module Stripe @field_remappings = {} end end - class RenderingOptions < Stripe::StripeObject + class RenderingOptions < ::Stripe::StripeObject # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. sig { returns(T.nilable(String)) } def amount_tax_display; end @@ -24833,7 +27177,7 @@ module Stripe end end # The account tax IDs associated with the invoice. - sig { returns(T.nilable(T::Array[T.any(String, Stripe::TaxId)])) } + sig { returns(T.nilable(T::Array[T.any(String, ::Stripe::TaxId)])) } def account_tax_ids; end # A list of up to 4 custom fields to be displayed on the invoice. sig { returns(T.nilable(T::Array[CustomField])) } @@ -24877,8 +27221,50 @@ module Stripe @field_remappings = {} end end - class OptionalItem < Stripe::StripeObject - class AdjustableQuantity < Stripe::StripeObject + class NameCollection < ::Stripe::StripeObject + class Business < ::Stripe::StripeObject + # Indicates whether business name collection is enabled for the payment link. + sig { returns(T::Boolean) } + def enabled; end + # Whether the customer is required to complete the field before checking out. Defaults to `false`. + sig { returns(T::Boolean) } + def optional; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Individual < ::Stripe::StripeObject + # Indicates whether individual name collection is enabled for the payment link. + sig { returns(T::Boolean) } + def enabled; end + # Whether the customer is required to complete the field before checking out. Defaults to `false`. + sig { returns(T::Boolean) } + def optional; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field business + sig { returns(T.nilable(Business)) } + def business; end + # Attribute for field individual + sig { returns(T.nilable(Individual)) } + def individual; end + def self.inner_class_types + @inner_class_types = {business: Business, individual: Individual} + end + def self.field_remappings + @field_remappings = {} + end + end + class OptionalItem < ::Stripe::StripeObject + class AdjustableQuantity < ::Stripe::StripeObject # Set to true if the quantity can be adjusted to any non-negative integer. sig { returns(T::Boolean) } def enabled; end @@ -24911,7 +27297,7 @@ module Stripe @field_remappings = {} end end - class PaymentIntentData < Stripe::StripeObject + class PaymentIntentData < ::Stripe::StripeObject # Indicates when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -24940,7 +27326,7 @@ module Stripe @field_remappings = {} end end - class PhoneNumberCollection < Stripe::StripeObject + class PhoneNumberCollection < ::Stripe::StripeObject # If `true`, a phone number will be collected during checkout. sig { returns(T::Boolean) } def enabled; end @@ -24951,8 +27337,8 @@ module Stripe @field_remappings = {} end end - class Restrictions < Stripe::StripeObject - class CompletedSessions < Stripe::StripeObject + class Restrictions < ::Stripe::StripeObject + class CompletedSessions < ::Stripe::StripeObject # The current number of checkout sessions that have been completed on the payment link which count towards the `completed_sessions` restriction to be met. sig { returns(Integer) } def count; end @@ -24976,7 +27362,7 @@ module Stripe @field_remappings = {} end end - class ShippingAddressCollection < Stripe::StripeObject + class ShippingAddressCollection < ::Stripe::StripeObject # An array of two-letter ISO country codes representing which countries Checkout should provide as options for shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI`. sig { returns(T::Array[String]) } def allowed_countries; end @@ -24987,12 +27373,12 @@ module Stripe @field_remappings = {} end end - class ShippingOption < Stripe::StripeObject + class ShippingOption < ::Stripe::StripeObject # A non-negative integer in cents representing how much to charge. sig { returns(Integer) } def shipping_amount; end # The ID of the Shipping Rate to use for this shipping option. - sig { returns(T.any(String, Stripe::ShippingRate)) } + sig { returns(T.any(String, ::Stripe::ShippingRate)) } def shipping_rate; end def self.inner_class_types @inner_class_types = {} @@ -25001,11 +27387,11 @@ module Stripe @field_remappings = {} end end - class SubscriptionData < Stripe::StripeObject - class InvoiceSettings < Stripe::StripeObject - class Issuer < Stripe::StripeObject + class SubscriptionData < ::Stripe::StripeObject + class InvoiceSettings < ::Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -25027,8 +27413,8 @@ module Stripe @field_remappings = {} end end - class TrialSettings < Stripe::StripeObject - class EndBehavior < Stripe::StripeObject + class TrialSettings < ::Stripe::StripeObject + class EndBehavior < ::Stripe::StripeObject # Indicates how the subscription should change when the trial ends if the user did not provide a payment method. sig { returns(String) } def missing_payment_method; end @@ -25071,7 +27457,7 @@ module Stripe @field_remappings = {} end end - class TaxIdCollection < Stripe::StripeObject + class TaxIdCollection < ::Stripe::StripeObject # Indicates whether tax ID collection is enabled for the session. sig { returns(T::Boolean) } def enabled; end @@ -25085,12 +27471,12 @@ module Stripe @field_remappings = {} end end - class TransferData < Stripe::StripeObject + class TransferData < ::Stripe::StripeObject # The amount in cents (or local equivalent) that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Integer)) } def amount; end # The connected account receiving the transfer. - sig { returns(T.any(String, Stripe::Account)) } + sig { returns(T.any(String, ::Stripe::Account)) } def destination; end def self.inner_class_types @inner_class_types = {} @@ -25109,7 +27495,7 @@ module Stripe sig { returns(T::Boolean) } def allow_promotion_codes; end # The ID of the Connect application that created the Payment Link. - sig { returns(T.nilable(T.any(String, Stripe::Application))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Application))) } def application; end # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. sig { returns(T.nilable(Integer)) } @@ -25148,7 +27534,7 @@ module Stripe sig { returns(T.nilable(InvoiceCreation)) } def invoice_creation; end # The line items representing what is being sold. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def line_items; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -25156,11 +27542,14 @@ module Stripe # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. sig { returns(T::Hash[String, String]) } def metadata; end + # Attribute for field name_collection + sig { returns(T.nilable(NameCollection)) } + def name_collection; end # String representing the object's type. Objects of the same type share the same value. sig { returns(String) } def object; end # The account on behalf of which to charge. See the [Connect documentation](https://support.stripe.com/questions/sending-invoices-on-behalf-of-connected-accounts) for details. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def on_behalf_of; end # The optional items presented to the customer at checkout. sig { returns(T.nilable(T::Array[OptionalItem])) } @@ -25203,31 +27592,31 @@ module Stripe def url; end # Creates a payment link. sig { - params(params: T.any(::Stripe::PaymentLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentLink) + params(params: T.any(::Stripe::PaymentLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentLink) } def self.create(params = {}, opts = {}); end # Returns a list of your payment links. sig { - params(params: T.any(::Stripe::PaymentLinkListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PaymentLinkListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # When retrieving a payment link, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. sig { - params(params: T.any(::Stripe::PaymentLinkListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PaymentLinkListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list_line_items(params = {}, opts = {}); end # When retrieving a payment link, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. sig { - params(payment_link: String, params: T.any(::Stripe::PaymentLinkListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(payment_link: String, params: T.any(::Stripe::PaymentLinkListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list_line_items(payment_link, params = {}, opts = {}); end # Updates a payment link. sig { - params(payment_link: String, params: T.any(::Stripe::PaymentLinkUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentLink) + params(payment_link: String, params: T.any(::Stripe::PaymentLinkUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentLink) } def self.update(payment_link, params = {}, opts = {}); end end @@ -25249,8 +27638,8 @@ module Stripe # - [Multiple configurations on dynamic payment methods](https://stripe.com/docs/payments/multiple-payment-method-configs) # - [Multiple configurations for your Connect accounts](https://stripe.com/docs/connect/multiple-payment-method-configurations) class PaymentMethodConfiguration < APIResource - class AcssDebit < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25280,8 +27669,8 @@ module Stripe @field_remappings = {} end end - class Affirm < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Affirm < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25311,8 +27700,8 @@ module Stripe @field_remappings = {} end end - class AfterpayClearpay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class AfterpayClearpay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25342,8 +27731,8 @@ module Stripe @field_remappings = {} end end - class Alipay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25373,8 +27762,8 @@ module Stripe @field_remappings = {} end end - class Alma < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Alma < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25404,8 +27793,8 @@ module Stripe @field_remappings = {} end end - class AmazonPay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25435,8 +27824,8 @@ module Stripe @field_remappings = {} end end - class ApplePay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25466,8 +27855,8 @@ module Stripe @field_remappings = {} end end - class AuBecsDebit < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25497,8 +27886,8 @@ module Stripe @field_remappings = {} end end - class BacsDebit < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25528,8 +27917,8 @@ module Stripe @field_remappings = {} end end - class Bancontact < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25559,8 +27948,8 @@ module Stripe @field_remappings = {} end end - class Billie < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Billie < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25590,8 +27979,8 @@ module Stripe @field_remappings = {} end end - class Blik < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Blik < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25621,8 +28010,8 @@ module Stripe @field_remappings = {} end end - class Boleto < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Boleto < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25652,8 +28041,8 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25683,8 +28072,8 @@ module Stripe @field_remappings = {} end end - class CartesBancaires < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class CartesBancaires < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25714,8 +28103,8 @@ module Stripe @field_remappings = {} end end - class Cashapp < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25745,8 +28134,8 @@ module Stripe @field_remappings = {} end end - class CustomerBalance < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Crypto < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25776,8 +28165,8 @@ module Stripe @field_remappings = {} end end - class Eps < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class CustomerBalance < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25807,8 +28196,8 @@ module Stripe @field_remappings = {} end end - class Fpx < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Eps < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25838,8 +28227,8 @@ module Stripe @field_remappings = {} end end - class Giropay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Fpx < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25869,8 +28258,8 @@ module Stripe @field_remappings = {} end end - class GooglePay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25900,8 +28289,8 @@ module Stripe @field_remappings = {} end end - class Grabpay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class GooglePay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25931,8 +28320,8 @@ module Stripe @field_remappings = {} end end - class Ideal < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Grabpay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25962,8 +28351,8 @@ module Stripe @field_remappings = {} end end - class Jcb < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -25993,8 +28382,8 @@ module Stripe @field_remappings = {} end end - class KakaoPay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Jcb < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26024,8 +28413,8 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26055,8 +28444,8 @@ module Stripe @field_remappings = {} end end - class Konbini < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26086,8 +28475,8 @@ module Stripe @field_remappings = {} end end - class KrCard < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26117,8 +28506,8 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26148,8 +28537,8 @@ module Stripe @field_remappings = {} end end - class Mobilepay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Link < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26179,8 +28568,8 @@ module Stripe @field_remappings = {} end end - class Multibanco < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class MbWay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26210,8 +28599,8 @@ module Stripe @field_remappings = {} end end - class NaverPay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Mobilepay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26241,8 +28630,8 @@ module Stripe @field_remappings = {} end end - class NzBankAccount < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26272,8 +28661,8 @@ module Stripe @field_remappings = {} end end - class Oxxo < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26303,8 +28692,8 @@ module Stripe @field_remappings = {} end end - class P24 < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class NzBankAccount < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26334,8 +28723,8 @@ module Stripe @field_remappings = {} end end - class PayByBank < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Oxxo < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26365,8 +28754,8 @@ module Stripe @field_remappings = {} end end - class Payco < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class P24 < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26396,8 +28785,8 @@ module Stripe @field_remappings = {} end end - class Paynow < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class PayByBank < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26427,8 +28816,8 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Payco < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26458,8 +28847,8 @@ module Stripe @field_remappings = {} end end - class Pix < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Paynow < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26489,8 +28878,8 @@ module Stripe @field_remappings = {} end end - class Promptpay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26520,8 +28909,8 @@ module Stripe @field_remappings = {} end end - class RevolutPay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Pix < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26551,8 +28940,8 @@ module Stripe @field_remappings = {} end end - class SamsungPay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Promptpay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26582,8 +28971,8 @@ module Stripe @field_remappings = {} end end - class Satispay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26613,8 +29002,8 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26644,8 +29033,8 @@ module Stripe @field_remappings = {} end end - class Sofort < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Satispay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26675,8 +29064,8 @@ module Stripe @field_remappings = {} end end - class Swish < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26706,8 +29095,8 @@ module Stripe @field_remappings = {} end end - class Twint < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26737,8 +29126,8 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Swish < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26768,8 +29157,8 @@ module Stripe @field_remappings = {} end end - class WechatPay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Twint < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26799,8 +29188,70 @@ module Stripe @field_remappings = {} end end - class Zip < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject + # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + sig { returns(T.nilable(T::Boolean)) } + def overridable; end + # The account's display preference. + sig { returns(String) } + def preference; end + # The effective display preference value. + sig { returns(String) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + sig { returns(T::Boolean) } + def available; end + # Attribute for field display_preference + sig { returns(DisplayPreference) } + def display_preference; end + def self.inner_class_types + @inner_class_types = {display_preference: DisplayPreference} + end + def self.field_remappings + @field_remappings = {} + end + end + class WechatPay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject + # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + sig { returns(T.nilable(T::Boolean)) } + def overridable; end + # The account's display preference. + sig { returns(String) } + def preference; end + # The effective display preference value. + sig { returns(String) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + sig { returns(T::Boolean) } + def available; end + # Attribute for field display_preference + sig { returns(DisplayPreference) } + def display_preference; end + def self.inner_class_types + @inner_class_types = {display_preference: DisplayPreference} + end + def self.field_remappings + @field_remappings = {} + end + end + class Zip < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -26884,6 +29335,9 @@ module Stripe # Attribute for field cashapp sig { returns(T.nilable(Cashapp)) } def cashapp; end + # Attribute for field crypto + sig { returns(T.nilable(Crypto)) } + def crypto; end # Attribute for field customer_balance sig { returns(T.nilable(CustomerBalance)) } def customer_balance; end @@ -26932,6 +29386,9 @@ module Stripe # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } def livemode; end + # Attribute for field mb_way + sig { returns(T.nilable(MbWay)) } + def mb_way; end # Attribute for field mobilepay sig { returns(T.nilable(Mobilepay)) } def mobilepay; end @@ -27009,19 +29466,19 @@ module Stripe def zip; end # Creates a payment method configuration sig { - params(params: T.any(::Stripe::PaymentMethodConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodConfiguration) + params(params: T.any(::Stripe::PaymentMethodConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodConfiguration) } def self.create(params = {}, opts = {}); end # List payment method configurations sig { - params(params: T.any(::Stripe::PaymentMethodConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PaymentMethodConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Update payment method configuration sig { - params(configuration: String, params: T.any(::Stripe::PaymentMethodConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodConfiguration) + params(configuration: String, params: T.any(::Stripe::PaymentMethodConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodConfiguration) } def self.update(configuration, params = {}, opts = {}); end end @@ -27033,8 +29490,8 @@ module Stripe # # Related guide: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration). class PaymentMethodDomain < APIResource - class AmazonPay < Stripe::StripeObject - class StatusDetails < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject # The error message associated with the status of the payment method on the domain. sig { returns(String) } def error_message; end @@ -27058,8 +29515,8 @@ module Stripe @field_remappings = {} end end - class ApplePay < Stripe::StripeObject - class StatusDetails < Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject # The error message associated with the status of the payment method on the domain. sig { returns(String) } def error_message; end @@ -27083,8 +29540,8 @@ module Stripe @field_remappings = {} end end - class GooglePay < Stripe::StripeObject - class StatusDetails < Stripe::StripeObject + class GooglePay < ::Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject # The error message associated with the status of the payment method on the domain. sig { returns(String) } def error_message; end @@ -27108,8 +29565,8 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject - class StatusDetails < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject # The error message associated with the status of the payment method on the domain. sig { returns(String) } def error_message; end @@ -27133,8 +29590,8 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject - class StatusDetails < Stripe::StripeObject + class Link < ::Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject # The error message associated with the status of the payment method on the domain. sig { returns(String) } def error_message; end @@ -27158,8 +29615,8 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject - class StatusDetails < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject # The error message associated with the status of the payment method on the domain. sig { returns(String) } def error_message; end @@ -27221,19 +29678,19 @@ module Stripe def paypal; end # Creates a payment method domain. sig { - params(params: T.any(::Stripe::PaymentMethodDomainCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodDomain) + params(params: T.any(::Stripe::PaymentMethodDomainCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodDomain) } def self.create(params = {}, opts = {}); end # Lists the details of existing payment method domains. sig { - params(params: T.any(::Stripe::PaymentMethodDomainListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PaymentMethodDomainListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates an existing payment method domain. sig { - params(payment_method_domain: String, params: T.any(::Stripe::PaymentMethodDomainUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodDomain) + params(payment_method_domain: String, params: T.any(::Stripe::PaymentMethodDomainUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodDomain) } def self.update(payment_method_domain, params = {}, opts = {}); end @@ -27244,7 +29701,7 @@ module Stripe # # Related guides: [Payment method domains](https://docs.stripe.com/docs/payments/payment-methods/pmd-registration). sig { - params(params: T.any(::Stripe::PaymentMethodDomainValidateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodDomain) + params(params: T.any(::Stripe::PaymentMethodDomainValidateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodDomain) } def validate(params = {}, opts = {}); end @@ -27255,7 +29712,7 @@ module Stripe # # Related guides: [Payment method domains](https://docs.stripe.com/docs/payments/payment-methods/pmd-registration). sig { - params(payment_method_domain: String, params: T.any(::Stripe::PaymentMethodDomainValidateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodDomain) + params(payment_method_domain: String, params: T.any(::Stripe::PaymentMethodDomainValidateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodDomain) } def self.validate(payment_method_domain, params = {}, opts = {}); end end @@ -27268,7 +29725,7 @@ module Stripe # # Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios). class PaymentMethod < APIResource - class AcssDebit < Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject # Name of the bank associated with the bank account. sig { returns(T.nilable(String)) } def bank_name; end @@ -27291,7 +29748,7 @@ module Stripe @field_remappings = {} end end - class Affirm < Stripe::StripeObject + class Affirm < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -27299,7 +29756,7 @@ module Stripe @field_remappings = {} end end - class AfterpayClearpay < Stripe::StripeObject + class AfterpayClearpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -27307,7 +29764,7 @@ module Stripe @field_remappings = {} end end - class Alipay < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -27315,7 +29772,7 @@ module Stripe @field_remappings = {} end end - class Alma < Stripe::StripeObject + class Alma < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -27323,7 +29780,7 @@ module Stripe @field_remappings = {} end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -27331,7 +29788,7 @@ module Stripe @field_remappings = {} end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject # Six-digit number identifying bank and branch associated with this bank account. sig { returns(T.nilable(String)) } def bsb_number; end @@ -27348,7 +29805,7 @@ module Stripe @field_remappings = {} end end - class BacsDebit < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. sig { returns(T.nilable(String)) } def fingerprint; end @@ -27365,7 +29822,7 @@ module Stripe @field_remappings = {} end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -27373,7 +29830,7 @@ module Stripe @field_remappings = {} end end - class Billie < Stripe::StripeObject + class Billie < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -27381,8 +29838,8 @@ module Stripe @field_remappings = {} end end - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -27430,7 +29887,7 @@ module Stripe @field_remappings = {} end end - class Blik < Stripe::StripeObject + class Blik < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -27438,7 +29895,7 @@ module Stripe @field_remappings = {} end end - class Boleto < Stripe::StripeObject + class Boleto < ::Stripe::StripeObject # Uniquely identifies the customer tax id (CNPJ or CPF) sig { returns(String) } def tax_id; end @@ -27449,8 +29906,8 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject - class Checks < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Checks < ::Stripe::StripeObject # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. sig { returns(T.nilable(String)) } def address_line1_check; end @@ -27467,10 +29924,10 @@ module Stripe @field_remappings = {} end end - class GeneratedFrom < Stripe::StripeObject - class PaymentMethodDetails < Stripe::StripeObject - class CardPresent < Stripe::StripeObject - class Offline < Stripe::StripeObject + class GeneratedFrom < ::Stripe::StripeObject + class PaymentMethodDetails < ::Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject + class Offline < ::Stripe::StripeObject # Time at which the payment was collected while offline sig { returns(T.nilable(Integer)) } def stored_at; end @@ -27484,7 +29941,7 @@ module Stripe @field_remappings = {} end end - class Receipt < Stripe::StripeObject + class Receipt < ::Stripe::StripeObject # The type of account being debited or credited sig { returns(T.nilable(String)) } def account_type; end @@ -27519,7 +29976,7 @@ module Stripe @field_remappings = {} end end - class Wallet < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. sig { returns(String) } def type; end @@ -27634,7 +30091,7 @@ module Stripe sig { returns(T.nilable(PaymentMethodDetails)) } def payment_method_details; end # The ID of the SetupAttempt that generated this PaymentMethod, if any. - sig { returns(T.nilable(T.any(String, Stripe::SetupAttempt))) } + sig { returns(T.nilable(T.any(String, ::Stripe::SetupAttempt))) } def setup_attempt; end def self.inner_class_types @inner_class_types = {payment_method_details: PaymentMethodDetails} @@ -27643,7 +30100,7 @@ module Stripe @field_remappings = {} end end - class Networks < Stripe::StripeObject + class Networks < ::Stripe::StripeObject # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). sig { returns(T::Array[String]) } def available; end @@ -27657,7 +30114,7 @@ module Stripe @field_remappings = {} end end - class ThreeDSecureUsage < Stripe::StripeObject + class ThreeDSecureUsage < ::Stripe::StripeObject # Whether 3D Secure is supported on this card. sig { returns(T::Boolean) } def supported; end @@ -27668,8 +30125,8 @@ module Stripe @field_remappings = {} end end - class Wallet < Stripe::StripeObject - class AmexExpressCheckout < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject + class AmexExpressCheckout < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -27677,7 +30134,7 @@ module Stripe @field_remappings = {} end end - class ApplePay < Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -27685,7 +30142,7 @@ module Stripe @field_remappings = {} end end - class GooglePay < Stripe::StripeObject + class GooglePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -27693,7 +30150,7 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -27701,8 +30158,8 @@ module Stripe @field_remappings = {} end end - class Masterpass < Stripe::StripeObject - class BillingAddress < Stripe::StripeObject + class Masterpass < ::Stripe::StripeObject + class BillingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -27728,7 +30185,7 @@ module Stripe @field_remappings = {} end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -27776,7 +30233,7 @@ module Stripe @field_remappings = {} end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -27784,8 +30241,8 @@ module Stripe @field_remappings = {} end end - class VisaCheckout < Stripe::StripeObject - class BillingAddress < Stripe::StripeObject + class VisaCheckout < ::Stripe::StripeObject + class BillingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -27811,7 +30268,7 @@ module Stripe @field_remappings = {} end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -27967,8 +30424,8 @@ module Stripe @field_remappings = {} end end - class CardPresent < Stripe::StripeObject - class Networks < Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject + class Networks < ::Stripe::StripeObject # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). sig { returns(T::Array[String]) } def available; end @@ -27982,7 +30439,7 @@ module Stripe @field_remappings = {} end end - class Offline < Stripe::StripeObject + class Offline < ::Stripe::StripeObject # Time at which the payment was collected while offline sig { returns(T.nilable(Integer)) } def stored_at; end @@ -27996,7 +30453,7 @@ module Stripe @field_remappings = {} end end - class Wallet < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. sig { returns(String) } def type; end @@ -28067,7 +30524,7 @@ module Stripe @field_remappings = {} end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject # A unique and immutable identifier assigned by Cash App to every buyer. sig { returns(T.nilable(String)) } def buyer_id; end @@ -28081,7 +30538,7 @@ module Stripe @field_remappings = {} end end - class Crypto < Stripe::StripeObject + class Crypto < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28089,7 +30546,38 @@ module Stripe @field_remappings = {} end end - class CustomerBalance < Stripe::StripeObject + class Custom < ::Stripe::StripeObject + class Logo < ::Stripe::StripeObject + # Content type of the Dashboard-only CustomPaymentMethodType logo. + sig { returns(T.nilable(String)) } + def content_type; end + # URL of the Dashboard-only CustomPaymentMethodType logo. + sig { returns(String) } + def url; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Display name of the Dashboard-only CustomPaymentMethodType. + sig { returns(T.nilable(String)) } + def display_name; end + # Contains information about the Dashboard-only CustomPaymentMethodType logo. + sig { returns(T.nilable(Logo)) } + def logo; end + # ID of the Dashboard-only CustomPaymentMethodType. Not expandable. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {logo: Logo} + end + def self.field_remappings + @field_remappings = {} + end + end + class CustomerBalance < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28097,7 +30585,7 @@ module Stripe @field_remappings = {} end end - class Eps < Stripe::StripeObject + class Eps < ::Stripe::StripeObject # The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. sig { returns(T.nilable(String)) } def bank; end @@ -28108,7 +30596,7 @@ module Stripe @field_remappings = {} end end - class Fpx < Stripe::StripeObject + class Fpx < ::Stripe::StripeObject # Account holder type, if provided. Can be one of `individual` or `company`. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -28122,7 +30610,7 @@ module Stripe @field_remappings = {} end end - class Giropay < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28130,7 +30618,7 @@ module Stripe @field_remappings = {} end end - class Grabpay < Stripe::StripeObject + class Grabpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28138,7 +30626,7 @@ module Stripe @field_remappings = {} end end - class Ideal < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject # The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. sig { returns(T.nilable(String)) } def bank; end @@ -28152,8 +30640,8 @@ module Stripe @field_remappings = {} end end - class InteracPresent < Stripe::StripeObject - class Networks < Stripe::StripeObject + class InteracPresent < ::Stripe::StripeObject + class Networks < ::Stripe::StripeObject # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). sig { returns(T::Array[String]) } def available; end @@ -28218,7 +30706,7 @@ module Stripe @field_remappings = {} end end - class KakaoPay < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28226,8 +30714,8 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject - class Dob < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject + class Dob < ::Stripe::StripeObject # The day of birth, between 1 and 31. sig { returns(T.nilable(Integer)) } def day; end @@ -28254,7 +30742,7 @@ module Stripe @field_remappings = {} end end - class Konbini < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28262,7 +30750,7 @@ module Stripe @field_remappings = {} end end - class KrCard < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject # The local credit or debit card brand. sig { returns(T.nilable(String)) } def brand; end @@ -28276,7 +30764,7 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject # Account owner's email address. sig { returns(T.nilable(String)) } def email; end @@ -28290,7 +30778,7 @@ module Stripe @field_remappings = {} end end - class MbWay < Stripe::StripeObject + class MbWay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28298,7 +30786,7 @@ module Stripe @field_remappings = {} end end - class Mobilepay < Stripe::StripeObject + class Mobilepay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28306,7 +30794,7 @@ module Stripe @field_remappings = {} end end - class Multibanco < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28314,7 +30802,7 @@ module Stripe @field_remappings = {} end end - class NaverPay < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject # Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same. sig { returns(T.nilable(String)) } def buyer_id; end @@ -28328,7 +30816,7 @@ module Stripe @field_remappings = {} end end - class NzBankAccount < Stripe::StripeObject + class NzBankAccount < ::Stripe::StripeObject # The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -28354,7 +30842,7 @@ module Stripe @field_remappings = {} end end - class Oxxo < Stripe::StripeObject + class Oxxo < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28362,7 +30850,7 @@ module Stripe @field_remappings = {} end end - class P24 < Stripe::StripeObject + class P24 < ::Stripe::StripeObject # The customer's bank, if provided. sig { returns(T.nilable(String)) } def bank; end @@ -28373,7 +30861,7 @@ module Stripe @field_remappings = {} end end - class PayByBank < Stripe::StripeObject + class PayByBank < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28381,7 +30869,7 @@ module Stripe @field_remappings = {} end end - class Payco < Stripe::StripeObject + class Payco < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28389,7 +30877,7 @@ module Stripe @field_remappings = {} end end - class Paynow < Stripe::StripeObject + class Paynow < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28397,7 +30885,7 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. sig { returns(T.nilable(String)) } def country; end @@ -28415,7 +30903,7 @@ module Stripe @field_remappings = {} end end - class Pix < Stripe::StripeObject + class Pix < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28423,7 +30911,7 @@ module Stripe @field_remappings = {} end end - class Promptpay < Stripe::StripeObject + class Promptpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28431,7 +30919,7 @@ module Stripe @field_remappings = {} end end - class RadarOptions < Stripe::StripeObject + class RadarOptions < ::Stripe::StripeObject # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -28442,7 +30930,7 @@ module Stripe @field_remappings = {} end end - class RevolutPay < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28450,7 +30938,7 @@ module Stripe @field_remappings = {} end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28458,7 +30946,7 @@ module Stripe @field_remappings = {} end end - class Satispay < Stripe::StripeObject + class Satispay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28466,13 +30954,13 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject - class GeneratedFrom < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject + class GeneratedFrom < ::Stripe::StripeObject # The ID of the Charge that generated this PaymentMethod, if any. - sig { returns(T.nilable(T.any(String, Stripe::Charge))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Charge))) } def charge; end # The ID of the SetupAttempt that generated this PaymentMethod, if any. - sig { returns(T.nilable(T.any(String, Stripe::SetupAttempt))) } + sig { returns(T.nilable(T.any(String, ::Stripe::SetupAttempt))) } def setup_attempt; end def self.inner_class_types @inner_class_types = {} @@ -28506,7 +30994,7 @@ module Stripe @field_remappings = {} end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject # Two-letter ISO code representing the country the bank account is located in. sig { returns(T.nilable(String)) } def country; end @@ -28517,7 +31005,7 @@ module Stripe @field_remappings = {} end end - class Swish < Stripe::StripeObject + class Swish < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28525,7 +31013,7 @@ module Stripe @field_remappings = {} end end - class Twint < Stripe::StripeObject + class Twint < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28533,8 +31021,8 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject - class Networks < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject + class Networks < ::Stripe::StripeObject # The preferred network. sig { returns(T.nilable(String)) } def preferred; end @@ -28548,8 +31036,8 @@ module Stripe @field_remappings = {} end end - class StatusDetails < Stripe::StripeObject - class Blocked < Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject + class Blocked < ::Stripe::StripeObject # The ACH network code that resulted in this block. sig { returns(T.nilable(String)) } def network_code; end @@ -28607,7 +31095,7 @@ module Stripe @field_remappings = {} end end - class WechatPay < Stripe::StripeObject + class WechatPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28615,7 +31103,7 @@ module Stripe @field_remappings = {} end end - class Zip < Stripe::StripeObject + class Zip < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -28680,8 +31168,11 @@ module Stripe # Attribute for field crypto sig { returns(T.nilable(Crypto)) } def crypto; end + # Attribute for field custom + sig { returns(T.nilable(Custom)) } + def custom; end # The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # Attribute for field customer_balance sig { returns(T.nilable(CustomerBalance)) } @@ -28820,7 +31311,7 @@ module Stripe # set [invoice_settings.default_payment_method](https://docs.stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method), # on the Customer to the PaymentMethod's ID. sig { - params(params: T.any(::Stripe::PaymentMethodAttachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(params: T.any(::Stripe::PaymentMethodAttachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def attach(params = {}, opts = {}); end @@ -28838,7 +31329,7 @@ module Stripe # set [invoice_settings.default_payment_method](https://docs.stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method), # on the Customer to the PaymentMethod's ID. sig { - params(payment_method: String, params: T.any(::Stripe::PaymentMethodAttachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(payment_method: String, params: T.any(::Stripe::PaymentMethodAttachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def self.attach(payment_method, params = {}, opts = {}); end @@ -28846,36 +31337,2126 @@ module Stripe # # Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the SetupIntent](https://docs.stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment. sig { - params(params: T.any(::Stripe::PaymentMethodCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(params: T.any(::Stripe::PaymentMethodCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def self.create(params = {}, opts = {}); end # Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer. sig { - params(params: T.any(::Stripe::PaymentMethodDetachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(params: T.any(::Stripe::PaymentMethodDetachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def detach(params = {}, opts = {}); end # Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer. sig { - params(payment_method: String, params: T.any(::Stripe::PaymentMethodDetachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(payment_method: String, params: T.any(::Stripe::PaymentMethodDetachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def self.detach(payment_method, params = {}, opts = {}); end # Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://docs.stripe.com/docs/api/payment_methods/customer_list) API instead. sig { - params(params: T.any(::Stripe::PaymentMethodListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PaymentMethodListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated. sig { - params(payment_method: String, params: T.any(::Stripe::PaymentMethodUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(payment_method: String, params: T.any(::Stripe::PaymentMethodUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def self.update(payment_method, params = {}, opts = {}); end end end # typed: true +module Stripe + # A Payment Record is a resource that allows you to represent payments that occur on- or off-Stripe. + # For example, you can create a Payment Record to model a payment made on a different payment processor, + # in order to mark an Invoice as paid and a Subscription as active. Payment Records consist of one or + # more Payment Attempt Records, which represent individual attempts made on a payment network. + class PaymentRecord < APIResource + class Amount < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountAuthorized < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountCanceled < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountFailed < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountGuaranteed < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountRefunded < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountRequested < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class CustomerDetails < ::Stripe::StripeObject + # ID of the Stripe Customer associated with this payment. + sig { returns(T.nilable(String)) } + def customer; end + # The customer's email address. + sig { returns(T.nilable(String)) } + def email; end + # The customer's name. + sig { returns(T.nilable(String)) } + def name; end + # The customer's phone number. + sig { returns(T.nilable(String)) } + def phone; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class PaymentMethodDetails < ::Stripe::StripeObject + class AchCreditTransfer < ::Stripe::StripeObject + # Account number to transfer funds to. + sig { returns(T.nilable(String)) } + def account_number; end + # Name of the bank associated with the routing number. + sig { returns(T.nilable(String)) } + def bank_name; end + # Routing transit number for the bank account to transfer funds to. + sig { returns(T.nilable(String)) } + def routing_number; end + # SWIFT code of the bank associated with the routing number. + sig { returns(T.nilable(String)) } + def swift_code; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AchDebit < ::Stripe::StripeObject + # Type of entity that holds the account. This can be either `individual` or `company`. + sig { returns(T.nilable(String)) } + def account_holder_type; end + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Two-letter ISO code representing the country the bank account is located in. + sig { returns(T.nilable(String)) } + def country; end + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Last four digits of the bank account number. + sig { returns(T.nilable(String)) } + def last4; end + # Routing transit number of the bank account. + sig { returns(T.nilable(String)) } + def routing_number; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AcssDebit < ::Stripe::StripeObject + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Institution number of the bank account + sig { returns(T.nilable(String)) } + def institution_number; end + # Last four digits of the bank account number. + sig { returns(T.nilable(String)) } + def last4; end + # ID of the mandate used to make this payment. + sig { returns(T.nilable(String)) } + def mandate; end + # Transit number of the bank account. + sig { returns(T.nilable(String)) } + def transit_number; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Affirm < ::Stripe::StripeObject + # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. + sig { returns(T.nilable(String)) } + def location; end + # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. + sig { returns(T.nilable(String)) } + def reader; end + # The Affirm transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AfterpayClearpay < ::Stripe::StripeObject + # The Afterpay order ID associated with this payment intent. + sig { returns(T.nilable(String)) } + def order_id; end + # Order identifier shown to the merchant in Afterpay’s online portal. + sig { returns(T.nilable(String)) } + def reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Alipay < ::Stripe::StripeObject + # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same. + sig { returns(T.nilable(String)) } + def buyer_id; end + # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Transaction ID of this particular Alipay transaction. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Alma < ::Stripe::StripeObject + class Installments < ::Stripe::StripeObject + # The number of installments. + sig { returns(Integer) } + def count; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field installments + sig { returns(T.nilable(Installments)) } + def installments; end + # The Alma transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {installments: Installments} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmazonPay < ::Stripe::StripeObject + class Funding < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + sig { returns(T.nilable(String)) } + def brand; end + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + sig { returns(T.nilable(String)) } + def country; end + # Two-digit number representing the card's expiration month. + sig { returns(T.nilable(Integer)) } + def exp_month; end + # Four-digit number representing the card's expiration year. + sig { returns(T.nilable(Integer)) } + def exp_year; end + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + sig { returns(T.nilable(String)) } + def funding; end + # The last four digits of the card. + sig { returns(T.nilable(String)) } + def last4; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field card + sig { returns(T.nilable(Card)) } + def card; end + # funding type of the underlying payment method. + sig { returns(T.nilable(String)) } + def type; end + def self.inner_class_types + @inner_class_types = {card: Card} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field funding + sig { returns(T.nilable(Funding)) } + def funding; end + # The Amazon Pay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {funding: Funding} + end + def self.field_remappings + @field_remappings = {} + end + end + class AuBecsDebit < ::Stripe::StripeObject + # Bank-State-Branch number of the bank account. + sig { returns(T.nilable(String)) } + def bsb_number; end + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Last four digits of the bank account number. + sig { returns(T.nilable(String)) } + def last4; end + # ID of the mandate used to make this payment. + sig { returns(T.nilable(String)) } + def mandate; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class BacsDebit < ::Stripe::StripeObject + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Last four digits of the bank account number. + sig { returns(T.nilable(String)) } + def last4; end + # ID of the mandate used to make this payment. + sig { returns(T.nilable(String)) } + def mandate; end + # Sort code of the bank account. (e.g., `10-20-30`) + sig { returns(T.nilable(String)) } + def sort_code; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Bancontact < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_code; end + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Bank Identifier Code of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bic; end + # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } + def generated_sepa_debit; end + # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } + def generated_sepa_debit_mandate; end + # Last four characters of the IBAN. + sig { returns(T.nilable(String)) } + def iban_last4; end + # Preferred language of the Bancontact authorization page that the customer is redirected to. + # Can be one of `en`, `de`, `fr`, or `nl` + sig { returns(T.nilable(String)) } + def preferred_language; end + # Owner's verified full name. Values are verified or provided by Bancontact directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Billie < ::Stripe::StripeObject + # The Billie transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(T.nilable(String)) } + def line1; end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # A representation of a physical address. + sig { returns(Address) } + def address; end + # The billing email associated with the method of payment. + sig { returns(T.nilable(String)) } + def email; end + # The billing name associated with the method of payment. + sig { returns(T.nilable(String)) } + def name; end + # The billing phone number associated with the method of payment. + sig { returns(T.nilable(String)) } + def phone; end + def self.inner_class_types + @inner_class_types = {address: Address} + end + def self.field_remappings + @field_remappings = {} + end + end + class Blik < ::Stripe::StripeObject + # A unique and immutable identifier assigned by BLIK to every buyer. + sig { returns(T.nilable(String)) } + def buyer_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Boleto < ::Stripe::StripeObject + # The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses consumers) + sig { returns(String) } + def tax_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Card < ::Stripe::StripeObject + class Checks < ::Stripe::StripeObject + # Attribute for field address_line1_check + sig { returns(T.nilable(String)) } + def address_line1_check; end + # Attribute for field address_postal_code_check + sig { returns(T.nilable(String)) } + def address_postal_code_check; end + # Attribute for field cvc_check + sig { returns(T.nilable(String)) } + def cvc_check; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class NetworkToken < ::Stripe::StripeObject + # Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction. + sig { returns(T::Boolean) } + def used; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class ThreeDSecure < ::Stripe::StripeObject + # Attribute for field authentication_flow + sig { returns(T.nilable(String)) } + def authentication_flow; end + # Attribute for field result + sig { returns(T.nilable(String)) } + def result; end + # Attribute for field result_reason + sig { returns(T.nilable(String)) } + def result_reason; end + # Attribute for field version + sig { returns(T.nilable(String)) } + def version; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Wallet < ::Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject + # Type of the apple_pay transaction, one of `apple_pay` or `apple_pay_later`. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class GooglePay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field apple_pay + sig { returns(T.nilable(ApplePay)) } + def apple_pay; end + # (For tokenized numbers only.) The last four digits of the device account number. + sig { returns(T.nilable(String)) } + def dynamic_last4; end + # Attribute for field google_pay + sig { returns(T.nilable(GooglePay)) } + def google_pay; end + # The type of the card wallet, one of `apple_pay` or `google_pay`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {apple_pay: ApplePay, google_pay: GooglePay} + end + def self.field_remappings + @field_remappings = {} + end + end + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + sig { returns(String) } + def brand; end + # When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured. + sig { returns(T.nilable(Integer)) } + def capture_before; end + # Check results by Card networks on Card address and CVC at time of payment. + sig { returns(T.nilable(Checks)) } + def checks; end + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + sig { returns(T.nilable(String)) } + def country; end + # Two-digit number representing the card's expiration month. + sig { returns(Integer) } + def exp_month; end + # Four-digit number representing the card's expiration year. + sig { returns(Integer) } + def exp_year; end + # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + # + # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + sig { returns(T.nilable(String)) } + def fingerprint; end + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + sig { returns(String) } + def funding; end + # The last four digits of the card. + sig { returns(String) } + def last4; end + # True if this payment was marked as MOTO and out of scope for SCA. + sig { returns(T.nilable(T::Boolean)) } + def moto; end + # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + sig { returns(T.nilable(String)) } + def network; end + # If this card has network token credentials, this contains the details of the network token credentials. + sig { returns(T.nilable(NetworkToken)) } + def network_token; end + # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + sig { returns(T.nilable(String)) } + def network_transaction_id; end + # Populated if this transaction used 3D Secure authentication. + sig { returns(T.nilable(ThreeDSecure)) } + def three_d_secure; end + # If this Card is part of a card wallet, this contains the details of the card wallet. + sig { returns(T.nilable(Wallet)) } + def wallet; end + def self.inner_class_types + @inner_class_types = { + checks: Checks, + network_token: NetworkToken, + three_d_secure: ThreeDSecure, + wallet: Wallet, + } + end + def self.field_remappings + @field_remappings = {} + end + end + class CardPresent < ::Stripe::StripeObject + class Offline < ::Stripe::StripeObject + # Time at which the payment was collected while offline + sig { returns(T.nilable(Integer)) } + def stored_at; end + # The method used to process this payment method offline. Only deferred is allowed. + sig { returns(T.nilable(String)) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Receipt < ::Stripe::StripeObject + # The type of account being debited or credited + sig { returns(T.nilable(String)) } + def account_type; end + # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers. + sig { returns(T.nilable(String)) } + def application_cryptogram; end + # The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip. + sig { returns(T.nilable(String)) } + def application_preferred_name; end + # Identifier for this transaction. + sig { returns(T.nilable(String)) } + def authorization_code; end + # EMV tag 8A. A code returned by the card issuer. + sig { returns(T.nilable(String)) } + def authorization_response_code; end + # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`. + sig { returns(T.nilable(String)) } + def cardholder_verification_method; end + # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84. + sig { returns(T.nilable(String)) } + def dedicated_file_name; end + # A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95. + sig { returns(T.nilable(String)) } + def terminal_verification_results; end + # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B. + sig { returns(T.nilable(String)) } + def transaction_status_information; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Wallet < ::Stripe::StripeObject + # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The authorized amount + sig { returns(T.nilable(Integer)) } + def amount_authorized; end + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + sig { returns(T.nilable(String)) } + def brand; end + # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. + sig { returns(T.nilable(String)) } + def brand_product; end + # When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured. + sig { returns(T.nilable(Integer)) } + def capture_before; end + # The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay. + sig { returns(T.nilable(String)) } + def cardholder_name; end + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + sig { returns(T.nilable(String)) } + def country; end + # A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def description; end + # Authorization response cryptogram. + sig { returns(T.nilable(String)) } + def emv_auth_data; end + # Two-digit number representing the card's expiration month. + sig { returns(Integer) } + def exp_month; end + # Four-digit number representing the card's expiration year. + sig { returns(Integer) } + def exp_year; end + # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + # + # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + sig { returns(T.nilable(String)) } + def fingerprint; end + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + sig { returns(T.nilable(String)) } + def funding; end + # ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod. + sig { returns(T.nilable(String)) } + def generated_card; end + # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def iin; end + # Whether this [PaymentIntent](https://stripe.com/docs/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support). + sig { returns(T::Boolean) } + def incremental_authorization_supported; end + # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def issuer; end + # The last four digits of the card. + sig { returns(T.nilable(String)) } + def last4; end + # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + sig { returns(T.nilable(String)) } + def network; end + # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + sig { returns(T.nilable(String)) } + def network_transaction_id; end + # Details about payments collected offline. + sig { returns(T.nilable(Offline)) } + def offline; end + # Defines whether the authorized amount can be over-captured or not + sig { returns(T::Boolean) } + def overcapture_supported; end + # The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip. + sig { returns(T.nilable(T::Array[String])) } + def preferred_locales; end + # How card details were read in this transaction. + sig { returns(T.nilable(String)) } + def read_method; end + # A collection of fields required to be displayed on receipts. Only required for EMV transactions. + sig { returns(T.nilable(Receipt)) } + def receipt; end + # Attribute for field wallet + sig { returns(T.nilable(Wallet)) } + def wallet; end + def self.inner_class_types + @inner_class_types = {offline: Offline, receipt: Receipt, wallet: Wallet} + end + def self.field_remappings + @field_remappings = {} + end + end + class Cashapp < ::Stripe::StripeObject + # A unique and immutable identifier assigned by Cash App to every buyer. + sig { returns(T.nilable(String)) } + def buyer_id; end + # A public identifier for buyers using Cash App. + sig { returns(T.nilable(String)) } + def cashtag; end + # A unique and immutable identifier of payments assigned by Cash App + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Crypto < ::Stripe::StripeObject + # The wallet address of the customer. + sig { returns(T.nilable(String)) } + def buyer_address; end + # The blockchain network that the transaction was sent on. + sig { returns(T.nilable(String)) } + def network; end + # The token currency that the transaction was sent with. + sig { returns(T.nilable(String)) } + def token_currency; end + # The blockchain transaction hash of the crypto payment. + sig { returns(T.nilable(String)) } + def transaction_hash; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Custom < ::Stripe::StripeObject + # Display name for the custom (user-defined) payment method type used to make this payment. + sig { returns(String) } + def display_name; end + # The custom payment method type associated with this payment. + sig { returns(T.nilable(String)) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class CustomerBalance < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Eps < ::Stripe::StripeObject + # The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. + sig { returns(T.nilable(String)) } + def bank; end + # Owner's verified full name. Values are verified or provided by EPS directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + # EPS rarely provides this information so the attribute is usually empty. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Fpx < ::Stripe::StripeObject + # Account holder type, if provided. Can be one of `individual` or `company`. + sig { returns(T.nilable(String)) } + def account_holder_type; end + # The customer's bank. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`. + sig { returns(String) } + def bank; end + # Unique transaction id generated by FPX for every request from the merchant + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Giropay < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_code; end + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Bank Identifier Code of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bic; end + # Owner's verified full name. Values are verified or provided by Giropay directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + # Giropay rarely provides this information so the attribute is usually empty. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Grabpay < ::Stripe::StripeObject + # Unique transaction id generated by GrabPay + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Ideal < ::Stripe::StripeObject + # The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. + sig { returns(T.nilable(String)) } + def bank; end + # The Bank Identifier Code of the customer's bank. + sig { returns(T.nilable(String)) } + def bic; end + # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } + def generated_sepa_debit; end + # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } + def generated_sepa_debit_mandate; end + # Last four characters of the IBAN. + sig { returns(T.nilable(String)) } + def iban_last4; end + # Owner's verified full name. Values are verified or provided by iDEAL directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class InteracPresent < ::Stripe::StripeObject + class Receipt < ::Stripe::StripeObject + # The type of account being debited or credited + sig { returns(T.nilable(String)) } + def account_type; end + # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers. + sig { returns(T.nilable(String)) } + def application_cryptogram; end + # The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip. + sig { returns(T.nilable(String)) } + def application_preferred_name; end + # Identifier for this transaction. + sig { returns(T.nilable(String)) } + def authorization_code; end + # EMV tag 8A. A code returned by the card issuer. + sig { returns(T.nilable(String)) } + def authorization_response_code; end + # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`. + sig { returns(T.nilable(String)) } + def cardholder_verification_method; end + # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84. + sig { returns(T.nilable(String)) } + def dedicated_file_name; end + # A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95. + sig { returns(T.nilable(String)) } + def terminal_verification_results; end + # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B. + sig { returns(T.nilable(String)) } + def transaction_status_information; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Card brand. Can be `interac`, `mastercard` or `visa`. + sig { returns(T.nilable(String)) } + def brand; end + # The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay. + sig { returns(T.nilable(String)) } + def cardholder_name; end + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + sig { returns(T.nilable(String)) } + def country; end + # A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def description; end + # Authorization response cryptogram. + sig { returns(T.nilable(String)) } + def emv_auth_data; end + # Two-digit number representing the card's expiration month. + sig { returns(Integer) } + def exp_month; end + # Four-digit number representing the card's expiration year. + sig { returns(Integer) } + def exp_year; end + # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + # + # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + sig { returns(T.nilable(String)) } + def fingerprint; end + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + sig { returns(T.nilable(String)) } + def funding; end + # ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod. + sig { returns(T.nilable(String)) } + def generated_card; end + # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def iin; end + # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def issuer; end + # The last four digits of the card. + sig { returns(T.nilable(String)) } + def last4; end + # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + sig { returns(T.nilable(String)) } + def network; end + # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + sig { returns(T.nilable(String)) } + def network_transaction_id; end + # The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip. + sig { returns(T.nilable(T::Array[String])) } + def preferred_locales; end + # How card details were read in this transaction. + sig { returns(T.nilable(String)) } + def read_method; end + # A collection of fields required to be displayed on receipts. Only required for EMV transactions. + sig { returns(T.nilable(Receipt)) } + def receipt; end + def self.inner_class_types + @inner_class_types = {receipt: Receipt} + end + def self.field_remappings + @field_remappings = {} + end + end + class KakaoPay < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end + # The Kakao Pay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Klarna < ::Stripe::StripeObject + class PayerDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject + # The payer address country + sig { returns(T.nilable(String)) } + def country; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The payer's address + sig { returns(T.nilable(Address)) } + def address; end + def self.inner_class_types + @inner_class_types = {address: Address} + end + def self.field_remappings + @field_remappings = {} + end + end + # The payer details for this transaction. + sig { returns(T.nilable(PayerDetails)) } + def payer_details; end + # The Klarna payment method used for this transaction. + # Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` + sig { returns(T.nilable(String)) } + def payment_method_category; end + # Preferred language of the Klarna authorization page that the customer is redirected to. + # Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` + sig { returns(T.nilable(String)) } + def preferred_locale; end + def self.inner_class_types + @inner_class_types = {payer_details: PayerDetails} + end + def self.field_remappings + @field_remappings = {} + end + end + class Konbini < ::Stripe::StripeObject + class Store < ::Stripe::StripeObject + # The name of the convenience store chain where the payment was completed. + sig { returns(T.nilable(String)) } + def chain; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # If the payment succeeded, this contains the details of the convenience store where the payment was completed. + sig { returns(T.nilable(Store)) } + def store; end + def self.inner_class_types + @inner_class_types = {store: Store} + end + def self.field_remappings + @field_remappings = {} + end + end + class KrCard < ::Stripe::StripeObject + # The local credit or debit card brand. + sig { returns(T.nilable(String)) } + def brand; end + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end + # The last four digits of the card. This may not be present for American Express cards. + sig { returns(T.nilable(String)) } + def last4; end + # The Korean Card transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Link < ::Stripe::StripeObject + # Two-letter ISO code representing the funding source country beneath the Link payment. + # You could use this attribute to get a sense of international fees. + sig { returns(T.nilable(String)) } + def country; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class MbWay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Mobilepay < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + # Brand of the card used in the transaction + sig { returns(T.nilable(String)) } + def brand; end + # Two-letter ISO code representing the country of the card + sig { returns(T.nilable(String)) } + def country; end + # Two digit number representing the card's expiration month + sig { returns(T.nilable(Integer)) } + def exp_month; end + # Two digit number representing the card's expiration year + sig { returns(T.nilable(Integer)) } + def exp_year; end + # The last 4 digits of the card + sig { returns(T.nilable(String)) } + def last4; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Internal card details + sig { returns(T.nilable(Card)) } + def card; end + def self.inner_class_types + @inner_class_types = {card: Card} + end + def self.field_remappings + @field_remappings = {} + end + end + class Multibanco < ::Stripe::StripeObject + # Entity number associated with this Multibanco payment. + sig { returns(T.nilable(String)) } + def entity; end + # Reference number associated with this Multibanco payment. + sig { returns(T.nilable(String)) } + def reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class NaverPay < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end + # The Naver Pay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class NzBankAccount < ::Stripe::StripeObject + # The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. + sig { returns(T.nilable(String)) } + def account_holder_name; end + # The numeric code for the bank account's bank. + sig { returns(String) } + def bank_code; end + # The name of the bank. + sig { returns(String) } + def bank_name; end + # The numeric code for the bank account's bank branch. + sig { returns(String) } + def branch_code; end + # Last four digits of the bank account number. + sig { returns(String) } + def last4; end + # The suffix of the bank account number. + sig { returns(T.nilable(String)) } + def suffix; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Oxxo < ::Stripe::StripeObject + # OXXO reference number + sig { returns(T.nilable(String)) } + def number; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class P24 < ::Stripe::StripeObject + # The customer's bank. Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `velobank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`. + sig { returns(T.nilable(String)) } + def bank; end + # Unique reference for this Przelewy24 payment. + sig { returns(T.nilable(String)) } + def reference; end + # Owner's verified full name. Values are verified or provided by Przelewy24 directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + # Przelewy24 rarely provides this information so the attribute is usually empty. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class PayByBank < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Payco < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end + # The Payco transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Paynow < ::Stripe::StripeObject + # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. + sig { returns(T.nilable(String)) } + def location; end + # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. + sig { returns(T.nilable(String)) } + def reader; end + # Reference number associated with this PayNow payment + sig { returns(T.nilable(String)) } + def reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Paypal < ::Stripe::StripeObject + class SellerProtection < ::Stripe::StripeObject + # An array of conditions that are covered for the transaction, if applicable. + sig { returns(T.nilable(T::Array[String])) } + def dispute_categories; end + # Indicates whether the transaction is eligible for PayPal's seller protection. + sig { returns(String) } + def status; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def country; end + # Owner's email. Values are provided by PayPal directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def payer_email; end + # PayPal account PayerID. This identifier uniquely identifies the PayPal customer. + sig { returns(T.nilable(String)) } + def payer_id; end + # Owner's full name. Values provided by PayPal directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def payer_name; end + # The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction. + sig { returns(T.nilable(SellerProtection)) } + def seller_protection; end + # A unique ID generated by PayPal for this transaction. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {seller_protection: SellerProtection} + end + def self.field_remappings + @field_remappings = {} + end + end + class Pix < ::Stripe::StripeObject + # Unique transaction id generated by BCB + sig { returns(T.nilable(String)) } + def bank_transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Promptpay < ::Stripe::StripeObject + # Bill reference generated by PromptPay + sig { returns(T.nilable(String)) } + def reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class RevolutPay < ::Stripe::StripeObject + class Funding < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + sig { returns(T.nilable(String)) } + def brand; end + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + sig { returns(T.nilable(String)) } + def country; end + # Two-digit number representing the card's expiration month. + sig { returns(T.nilable(Integer)) } + def exp_month; end + # Four-digit number representing the card's expiration year. + sig { returns(T.nilable(Integer)) } + def exp_year; end + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + sig { returns(T.nilable(String)) } + def funding; end + # The last four digits of the card. + sig { returns(T.nilable(String)) } + def last4; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field card + sig { returns(T.nilable(Card)) } + def card; end + # funding type of the underlying payment method. + sig { returns(T.nilable(String)) } + def type; end + def self.inner_class_types + @inner_class_types = {card: Card} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field funding + sig { returns(T.nilable(Funding)) } + def funding; end + # The Revolut Pay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {funding: Funding} + end + def self.field_remappings + @field_remappings = {} + end + end + class SamsungPay < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end + # The Samsung Pay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Satispay < ::Stripe::StripeObject + # The Satispay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class SepaCreditTransfer < ::Stripe::StripeObject + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Bank Identifier Code of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bic; end + # IBAN of the bank account to transfer funds to. + sig { returns(T.nilable(String)) } + def iban; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class SepaDebit < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_code; end + # Branch code of bank associated with the bank account. + sig { returns(T.nilable(String)) } + def branch_code; end + # Two-letter ISO code representing the country the bank account is located in. + sig { returns(T.nilable(String)) } + def country; end + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Last four characters of the IBAN. + sig { returns(T.nilable(String)) } + def last4; end + # Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://stripe.com/docs/api/mandates/retrieve). + sig { returns(T.nilable(String)) } + def mandate; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Sofort < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_code; end + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Bank Identifier Code of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bic; end + # Two-letter ISO code representing the country the bank account is located in. + sig { returns(T.nilable(String)) } + def country; end + # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } + def generated_sepa_debit; end + # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } + def generated_sepa_debit_mandate; end + # Last four characters of the IBAN. + sig { returns(T.nilable(String)) } + def iban_last4; end + # Preferred language of the SOFORT authorization page that the customer is redirected to. + # Can be one of `de`, `en`, `es`, `fr`, `it`, `nl`, or `pl` + sig { returns(T.nilable(String)) } + def preferred_language; end + # Owner's verified full name. Values are verified or provided by SOFORT directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class StripeAccount < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Swish < ::Stripe::StripeObject + # Uniquely identifies the payer's Swish account. You can use this attribute to check whether two Swish transactions were paid for by the same payer + sig { returns(T.nilable(String)) } + def fingerprint; end + # Payer bank reference number for the payment + sig { returns(T.nilable(String)) } + def payment_reference; end + # The last four digits of the Swish account phone number + sig { returns(T.nilable(String)) } + def verified_phone_last4; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Twint < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class UsBankAccount < ::Stripe::StripeObject + # Attribute for field account_holder_type + sig { returns(T.nilable(String)) } + def account_holder_type; end + # Attribute for field account_type + sig { returns(T.nilable(String)) } + def account_type; end + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Last four digits of the bank account number. + sig { returns(T.nilable(String)) } + def last4; end + # ID of the mandate used to make this payment. + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } + def mandate; end + # Reference number to locate ACH payments with customer’s bank. + sig { returns(T.nilable(String)) } + def payment_reference; end + # Routing number of the bank account. + sig { returns(T.nilable(String)) } + def routing_number; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Wechat < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class WechatPay < ::Stripe::StripeObject + # Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. + sig { returns(T.nilable(String)) } + def location; end + # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. + sig { returns(T.nilable(String)) } + def reader; end + # Transaction ID of this particular WeChat Pay transaction. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Zip < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field ach_credit_transfer + sig { returns(T.nilable(AchCreditTransfer)) } + def ach_credit_transfer; end + # Attribute for field ach_debit + sig { returns(T.nilable(AchDebit)) } + def ach_debit; end + # Attribute for field acss_debit + sig { returns(T.nilable(AcssDebit)) } + def acss_debit; end + # Attribute for field affirm + sig { returns(T.nilable(Affirm)) } + def affirm; end + # Attribute for field afterpay_clearpay + sig { returns(T.nilable(AfterpayClearpay)) } + def afterpay_clearpay; end + # Attribute for field alipay + sig { returns(T.nilable(Alipay)) } + def alipay; end + # Attribute for field alma + sig { returns(T.nilable(Alma)) } + def alma; end + # Attribute for field amazon_pay + sig { returns(T.nilable(AmazonPay)) } + def amazon_pay; end + # Attribute for field au_becs_debit + sig { returns(T.nilable(AuBecsDebit)) } + def au_becs_debit; end + # Attribute for field bacs_debit + sig { returns(T.nilable(BacsDebit)) } + def bacs_debit; end + # Attribute for field bancontact + sig { returns(T.nilable(Bancontact)) } + def bancontact; end + # Attribute for field billie + sig { returns(T.nilable(Billie)) } + def billie; end + # The billing details associated with the method of payment. + sig { returns(T.nilable(BillingDetails)) } + def billing_details; end + # Attribute for field blik + sig { returns(T.nilable(Blik)) } + def blik; end + # Attribute for field boleto + sig { returns(T.nilable(Boleto)) } + def boleto; end + # Details of the card used for this payment attempt. + sig { returns(T.nilable(Card)) } + def card; end + # Attribute for field card_present + sig { returns(T.nilable(CardPresent)) } + def card_present; end + # Attribute for field cashapp + sig { returns(T.nilable(Cashapp)) } + def cashapp; end + # Attribute for field crypto + sig { returns(T.nilable(Crypto)) } + def crypto; end + # Custom Payment Methods represent Payment Method types not modeled directly in + # the Stripe API. This resource consists of details about the custom payment method + # used for this payment attempt. + sig { returns(T.nilable(Custom)) } + def custom; end + # Attribute for field customer_balance + sig { returns(T.nilable(CustomerBalance)) } + def customer_balance; end + # Attribute for field eps + sig { returns(T.nilable(Eps)) } + def eps; end + # Attribute for field fpx + sig { returns(T.nilable(Fpx)) } + def fpx; end + # Attribute for field giropay + sig { returns(T.nilable(Giropay)) } + def giropay; end + # Attribute for field grabpay + sig { returns(T.nilable(Grabpay)) } + def grabpay; end + # Attribute for field ideal + sig { returns(T.nilable(Ideal)) } + def ideal; end + # Attribute for field interac_present + sig { returns(T.nilable(InteracPresent)) } + def interac_present; end + # Attribute for field kakao_pay + sig { returns(T.nilable(KakaoPay)) } + def kakao_pay; end + # Attribute for field klarna + sig { returns(T.nilable(Klarna)) } + def klarna; end + # Attribute for field konbini + sig { returns(T.nilable(Konbini)) } + def konbini; end + # Attribute for field kr_card + sig { returns(T.nilable(KrCard)) } + def kr_card; end + # Attribute for field link + sig { returns(T.nilable(Link)) } + def link; end + # Attribute for field mb_way + sig { returns(T.nilable(MbWay)) } + def mb_way; end + # Attribute for field mobilepay + sig { returns(T.nilable(Mobilepay)) } + def mobilepay; end + # Attribute for field multibanco + sig { returns(T.nilable(Multibanco)) } + def multibanco; end + # Attribute for field naver_pay + sig { returns(T.nilable(NaverPay)) } + def naver_pay; end + # Attribute for field nz_bank_account + sig { returns(T.nilable(NzBankAccount)) } + def nz_bank_account; end + # Attribute for field oxxo + sig { returns(T.nilable(Oxxo)) } + def oxxo; end + # Attribute for field p24 + sig { returns(T.nilable(P24)) } + def p24; end + # Attribute for field pay_by_bank + sig { returns(T.nilable(PayByBank)) } + def pay_by_bank; end + # Attribute for field payco + sig { returns(T.nilable(Payco)) } + def payco; end + # ID of the Stripe PaymentMethod used to make this payment. + sig { returns(T.nilable(String)) } + def payment_method; end + # Attribute for field paynow + sig { returns(T.nilable(Paynow)) } + def paynow; end + # Attribute for field paypal + sig { returns(T.nilable(Paypal)) } + def paypal; end + # Attribute for field pix + sig { returns(T.nilable(Pix)) } + def pix; end + # Attribute for field promptpay + sig { returns(T.nilable(Promptpay)) } + def promptpay; end + # Attribute for field revolut_pay + sig { returns(T.nilable(RevolutPay)) } + def revolut_pay; end + # Attribute for field samsung_pay + sig { returns(T.nilable(SamsungPay)) } + def samsung_pay; end + # Attribute for field satispay + sig { returns(T.nilable(Satispay)) } + def satispay; end + # Attribute for field sepa_credit_transfer + sig { returns(T.nilable(SepaCreditTransfer)) } + def sepa_credit_transfer; end + # Attribute for field sepa_debit + sig { returns(T.nilable(SepaDebit)) } + def sepa_debit; end + # Attribute for field sofort + sig { returns(T.nilable(Sofort)) } + def sofort; end + # Attribute for field stripe_account + sig { returns(T.nilable(StripeAccount)) } + def stripe_account; end + # Attribute for field swish + sig { returns(T.nilable(Swish)) } + def swish; end + # Attribute for field twint + sig { returns(T.nilable(Twint)) } + def twint; end + # The type of transaction-specific details of the payment method used in the payment. See [PaymentMethod.type](https://stripe.com/docs/api/payment_methods/object#payment_method_object-type) for the full list of possible types. + # An additional hash is included on `payment_method_details` with a name matching this value. + # It contains information specific to the payment method. + sig { returns(String) } + def type; end + # Details of the US Bank Account used for this payment attempt. + sig { returns(T.nilable(UsBankAccount)) } + def us_bank_account; end + # Attribute for field wechat + sig { returns(T.nilable(Wechat)) } + def wechat; end + # Attribute for field wechat_pay + sig { returns(T.nilable(WechatPay)) } + def wechat_pay; end + # Attribute for field zip + sig { returns(T.nilable(Zip)) } + def zip; end + def self.inner_class_types + @inner_class_types = { + ach_credit_transfer: AchCreditTransfer, + ach_debit: AchDebit, + acss_debit: AcssDebit, + affirm: Affirm, + afterpay_clearpay: AfterpayClearpay, + alipay: Alipay, + alma: Alma, + amazon_pay: AmazonPay, + au_becs_debit: AuBecsDebit, + bacs_debit: BacsDebit, + bancontact: Bancontact, + billie: Billie, + billing_details: BillingDetails, + blik: Blik, + boleto: Boleto, + card: Card, + card_present: CardPresent, + cashapp: Cashapp, + crypto: Crypto, + custom: Custom, + customer_balance: CustomerBalance, + eps: Eps, + fpx: Fpx, + giropay: Giropay, + grabpay: Grabpay, + ideal: Ideal, + interac_present: InteracPresent, + kakao_pay: KakaoPay, + klarna: Klarna, + konbini: Konbini, + kr_card: KrCard, + link: Link, + mb_way: MbWay, + mobilepay: Mobilepay, + multibanco: Multibanco, + naver_pay: NaverPay, + nz_bank_account: NzBankAccount, + oxxo: Oxxo, + p24: P24, + pay_by_bank: PayByBank, + payco: Payco, + paynow: Paynow, + paypal: Paypal, + pix: Pix, + promptpay: Promptpay, + revolut_pay: RevolutPay, + samsung_pay: SamsungPay, + satispay: Satispay, + sepa_credit_transfer: SepaCreditTransfer, + sepa_debit: SepaDebit, + sofort: Sofort, + stripe_account: StripeAccount, + swish: Swish, + twint: Twint, + us_bank_account: UsBankAccount, + wechat: Wechat, + wechat_pay: WechatPay, + zip: Zip, + } + end + def self.field_remappings + @field_remappings = {} + end + end + class ProcessorDetails < ::Stripe::StripeObject + class Custom < ::Stripe::StripeObject + # An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID. + sig { returns(T.nilable(String)) } + def payment_reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Custom processors represent payment processors not modeled directly in + # the Stripe API. This resource consists of details about the custom processor + # used for this payment attempt. + sig { returns(T.nilable(Custom)) } + def custom; end + # The processor used for this payment attempt. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {custom: Custom} + end + def self.field_remappings + @field_remappings = {} + end + end + class ShippingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(T.nilable(String)) } + def line1; end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # A representation of a physical address. + sig { returns(Address) } + def address; end + # The shipping recipient's name. + sig { returns(T.nilable(String)) } + def name; end + # The shipping recipient's phone number. + sig { returns(T.nilable(String)) } + def phone; end + def self.inner_class_types + @inner_class_types = {address: Address} + end + def self.field_remappings + @field_remappings = {} + end + end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(Amount) } + def amount; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountAuthorized) } + def amount_authorized; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountCanceled) } + def amount_canceled; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountFailed) } + def amount_failed; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountGuaranteed) } + def amount_guaranteed; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountRefunded) } + def amount_refunded; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountRequested) } + def amount_requested; end + # ID of the Connect application that created the PaymentRecord. + sig { returns(T.nilable(String)) } + def application; end + # Time at which the object was created. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def created; end + # Customer information for this payment. + sig { returns(T.nilable(CustomerDetails)) } + def customer_details; end + # Indicates whether the customer was present in your checkout flow during this payment. + sig { returns(T.nilable(String)) } + def customer_presence; end + # An arbitrary string attached to the object. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + # Unique identifier for the object. + sig { returns(String) } + def id; end + # ID of the latest Payment Attempt Record attached to this Payment Record. + sig { returns(T.nilable(String)) } + def latest_payment_attempt_record; end + # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + sig { returns(T::Boolean) } + def livemode; end + # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + sig { returns(T::Hash[String, String]) } + def metadata; end + # String representing the object's type. Objects of the same type share the same value. + sig { returns(String) } + def object; end + # Information about the Payment Method debited for this payment. + sig { returns(T.nilable(PaymentMethodDetails)) } + def payment_method_details; end + # Processor information associated with this payment. + sig { returns(ProcessorDetails) } + def processor_details; end + # Shipping information for this payment. + sig { returns(T.nilable(ShippingDetails)) } + def shipping_details; end + # Report a new Payment Record. You may report a Payment Record as it is + # initialized and later report updates through the other report_* methods, or report Payment + # Records in a terminal state directly, through this method. + sig { + params(params: T.any(::Stripe::PaymentRecordReportPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def self.report_payment(params = {}, opts = {}); end + + # Report a new payment attempt on the specified Payment Record. A new payment + # attempt can only be specified if all other payment attempts are canceled or failed. + sig { + params(params: T.any(::Stripe::PaymentRecordReportPaymentAttemptParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_payment_attempt(params = {}, opts = {}); end + + # Report a new payment attempt on the specified Payment Record. A new payment + # attempt can only be specified if all other payment attempts are canceled or failed. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportPaymentAttemptParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def self.report_payment_attempt(id, params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # was canceled. + sig { + params(params: T.any(::Stripe::PaymentRecordReportPaymentAttemptCanceledParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_payment_attempt_canceled(params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # was canceled. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportPaymentAttemptCanceledParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def self.report_payment_attempt_canceled(id, params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # failed or errored. + sig { + params(params: T.any(::Stripe::PaymentRecordReportPaymentAttemptFailedParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_payment_attempt_failed(params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # failed or errored. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportPaymentAttemptFailedParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def self.report_payment_attempt_failed(id, params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # was guaranteed. + sig { + params(params: T.any(::Stripe::PaymentRecordReportPaymentAttemptGuaranteedParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_payment_attempt_guaranteed(params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # was guaranteed. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportPaymentAttemptGuaranteedParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def self.report_payment_attempt_guaranteed(id, params = {}, opts = {}); end + + # Report informational updates on the specified Payment Record. + sig { + params(params: T.any(::Stripe::PaymentRecordReportPaymentAttemptInformationalParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_payment_attempt_informational(params = {}, opts = {}); end + + # Report informational updates on the specified Payment Record. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportPaymentAttemptInformationalParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def self.report_payment_attempt_informational(id, params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # was refunded. + sig { + params(params: T.any(::Stripe::PaymentRecordReportRefundParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_refund(params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # was refunded. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportRefundParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def self.report_refund(id, params = {}, opts = {}); end + end +end +# typed: true module Stripe # A `Payout` object is created when you receive funds from Stripe, or when you # initiate a payout to either a bank account or debit card of a [connected @@ -28886,7 +33467,7 @@ module Stripe # # Related guide: [Receiving payouts](https://stripe.com/docs/payouts) class Payout < APIResource - class TraceId < Stripe::StripeObject + class TraceId < ::Stripe::StripeObject # Possible values are `pending`, `supported`, and `unsupported`. When `payout.status` is `pending` or `in_transit`, this will be `pending`. When the payout transitions to `paid`, `failed`, or `canceled`, this status will become `supported` or `unsupported` shortly after in most cases. In some cases, this may appear as `pending` for up to 10 days after `arrival_date` until transitioning to `supported` or `unsupported`. sig { returns(String) } def status; end @@ -28904,7 +33485,7 @@ module Stripe sig { returns(Integer) } def amount; end # The application fee (if any) for the payout. [See the Connect documentation](https://stripe.com/docs/connect/instant-payouts#monetization-and-fees) for details. - sig { returns(T.nilable(T.any(String, Stripe::ApplicationFee))) } + sig { returns(T.nilable(T.any(String, ::Stripe::ApplicationFee))) } def application_fee; end # The amount of the application fee (if any) requested for the payout. [See the Connect documentation](https://stripe.com/docs/connect/instant-payouts#monetization-and-fees) for details. sig { returns(T.nilable(Integer)) } @@ -28916,7 +33497,7 @@ module Stripe sig { returns(T::Boolean) } def automatic; end # ID of the balance transaction that describes the impact of this payout on your account balance. - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def balance_transaction; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -28928,10 +33509,10 @@ module Stripe sig { returns(T.nilable(String)) } def description; end # ID of the bank account or card the payout is sent to. - sig { returns(T.nilable(T.any(String, T.any(Stripe::BankAccount, Stripe::Card)))) } + sig { returns(T.nilable(T.any(String, T.any(::Stripe::BankAccount, ::Stripe::Card)))) } def destination; end # If the payout fails or cancels, this is the ID of the balance transaction that reverses the initial balance transaction and returns the funds from the failed payout back in your balance. - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def failure_balance_transaction; end # Error code that provides a reason for a payout failure, if available. View our [list of failure codes](https://stripe.com/docs/api#payout_failures). sig { returns(T.nilable(String)) } @@ -28955,7 +33536,7 @@ module Stripe sig { returns(String) } def object; end # If the payout reverses another, this is the ID of the original payout. - sig { returns(T.nilable(T.any(String, Stripe::Payout))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Payout))) } def original_payout; end # ID of the v2 FinancialAccount the funds are sent to. sig { returns(T.nilable(String)) } @@ -28964,7 +33545,7 @@ module Stripe sig { returns(String) } def reconciliation_status; end # If the payout reverses, this is the ID of the payout that reverses this payout. - sig { returns(T.nilable(T.any(String, Stripe::Payout))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Payout))) } def reversed_by; end # The source balance this payout came from, which can be one of the following: `card`, `fpx`, or `bank_account`. sig { returns(String) } @@ -28983,13 +33564,13 @@ module Stripe def type; end # You can cancel a previously created payout if its status is pending. Stripe refunds the funds to your available balance. You can't cancel automatic Stripe payouts. sig { - params(params: T.any(::Stripe::PayoutCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(params: T.any(::Stripe::PayoutCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Payout) } def cancel(params = {}, opts = {}); end # You can cancel a previously created payout if its status is pending. Stripe refunds the funds to your available balance. You can't cancel automatic Stripe payouts. sig { - params(payout: String, params: T.any(::Stripe::PayoutCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(payout: String, params: T.any(::Stripe::PayoutCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Payout) } def self.cancel(payout, params = {}, opts = {}); end @@ -28999,35 +33580,35 @@ module Stripe # # If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://docs.stripe.com/api#balance_object) details available and pending amounts by source type. sig { - params(params: T.any(::Stripe::PayoutCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(params: T.any(::Stripe::PayoutCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Payout) } def self.create(params = {}, opts = {}); end # Returns a list of existing payouts sent to third-party bank accounts or payouts that Stripe sent to you. The payouts return in sorted order, with the most recently created payouts appearing first. sig { - params(params: T.any(::Stripe::PayoutListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PayoutListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end - # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead. + # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead. # # By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required. sig { - params(params: T.any(::Stripe::PayoutReverseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(params: T.any(::Stripe::PayoutReverseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Payout) } def reverse(params = {}, opts = {}); end - # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead. + # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead. # # By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required. sig { - params(payout: String, params: T.any(::Stripe::PayoutReverseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(payout: String, params: T.any(::Stripe::PayoutReverseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Payout) } def self.reverse(payout, params = {}, opts = {}); end # Updates the specified payout by setting the values of the parameters you pass. We don't change parameters that you don't provide. This request only accepts the metadata as arguments. sig { - params(payout: String, params: T.any(::Stripe::PayoutUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(payout: String, params: T.any(::Stripe::PayoutUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Payout) } def self.update(payout, params = {}, opts = {}); end end @@ -29043,7 +33624,7 @@ module Stripe # # Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription) and more about [products and prices](https://stripe.com/docs/products-prices/overview). class Plan < APIResource - class Tier < Stripe::StripeObject + class Tier < ::Stripe::StripeObject # Price for the entire tier. sig { returns(T.nilable(Integer)) } def flat_amount; end @@ -29066,7 +33647,7 @@ module Stripe @field_remappings = {} end end - class TransformUsage < Stripe::StripeObject + class TransformUsage < ::Stripe::StripeObject # Divide usage by this number. sig { returns(Integer) } def divide_by; end @@ -29123,7 +33704,7 @@ module Stripe sig { returns(String) } def object; end # The product whose pricing this plan determines. - sig { returns(T.nilable(T.any(String, Stripe::Product))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Product))) } def product; end # Each element represents a pricing tier. This parameter requires `billing_scheme` to be set to `tiered`. See also the documentation for `billing_scheme`. sig { returns(T.nilable(T::Array[Tier])) } @@ -29145,31 +33726,31 @@ module Stripe def deleted; end # You can now model subscriptions more flexibly using the [Prices API](https://docs.stripe.com/api#prices). It replaces the Plans API and is backwards compatible to simplify your migration. sig { - params(params: T.any(::Stripe::PlanCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan) + params(params: T.any(::Stripe::PlanCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Plan) } def self.create(params = {}, opts = {}); end # Deleting plans means new subscribers can't be added. Existing subscribers aren't affected. sig { - params(plan: String, params: T.any(::Stripe::PlanDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan) + params(plan: String, params: T.any(::Stripe::PlanDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Plan) } def self.delete(plan, params = {}, opts = {}); end # Deleting plans means new subscribers can't be added. Existing subscribers aren't affected. sig { - params(params: T.any(::Stripe::PlanDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan) + params(params: T.any(::Stripe::PlanDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Plan) } def delete(params = {}, opts = {}); end # Returns a list of your plans. sig { - params(params: T.any(::Stripe::PlanListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PlanListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the specified plan by setting the values of the parameters passed. Any parameters not provided are left unchanged. By design, you cannot change a plan's ID, amount, currency, or billing cycle. sig { - params(plan: String, params: T.any(::Stripe::PlanUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan) + params(plan: String, params: T.any(::Stripe::PlanUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Plan) } def self.update(plan, params = {}, opts = {}); end end @@ -29183,8 +33764,8 @@ module Stripe # # Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription), [create an invoice](https://stripe.com/docs/billing/invoices/create), and more about [products and prices](https://stripe.com/docs/products-prices/overview). class Price < APIResource - class CurrencyOptions < Stripe::StripeObject - class CustomUnitAmount < Stripe::StripeObject + class CurrencyOptions < ::Stripe::StripeObject + class CustomUnitAmount < ::Stripe::StripeObject # The maximum unit amount the customer can specify for this item. sig { returns(T.nilable(Integer)) } def maximum; end @@ -29201,7 +33782,7 @@ module Stripe @field_remappings = {} end end - class Tier < Stripe::StripeObject + class Tier < ::Stripe::StripeObject # Price for the entire tier. sig { returns(T.nilable(Integer)) } def flat_amount; end @@ -29246,7 +33827,7 @@ module Stripe @field_remappings = {} end end - class CustomUnitAmount < Stripe::StripeObject + class CustomUnitAmount < ::Stripe::StripeObject # The maximum unit amount the customer can specify for this item. sig { returns(T.nilable(Integer)) } def maximum; end @@ -29263,7 +33844,7 @@ module Stripe @field_remappings = {} end end - class Recurring < Stripe::StripeObject + class Recurring < ::Stripe::StripeObject # The frequency at which a subscription is billed. One of `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -29286,7 +33867,7 @@ module Stripe @field_remappings = {} end end - class Tier < Stripe::StripeObject + class Tier < ::Stripe::StripeObject # Price for the entire tier. sig { returns(T.nilable(Integer)) } def flat_amount; end @@ -29309,7 +33890,7 @@ module Stripe @field_remappings = {} end end - class TransformQuantity < Stripe::StripeObject + class TransformQuantity < ::Stripe::StripeObject # Divide usage by this number. sig { returns(Integer) } def divide_by; end @@ -29360,7 +33941,7 @@ module Stripe sig { returns(String) } def object; end # The ID of the product this price is associated with. - sig { returns(T.any(String, Stripe::Product)) } + sig { returns(T.any(String, ::Stripe::Product)) } def product; end # The recurring components of a price such as `interval` and `usage_type`. sig { returns(T.nilable(Recurring)) } @@ -29391,29 +33972,29 @@ module Stripe def deleted; end # Creates a new [Price for an existing Product](https://docs.stripe.com/api/prices). The Price can be recurring or one-time. sig { - params(params: T.any(::Stripe::PriceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Price) + params(params: T.any(::Stripe::PriceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Price) } def self.create(params = {}, opts = {}); end # Returns a list of your active prices, excluding [inline prices](https://docs.stripe.com/docs/products-prices/pricing-models#inline-pricing). For the list of inactive prices, set active to false. sig { - params(params: T.any(::Stripe::PriceListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PriceListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::PriceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::PriceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def self.search(params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::PriceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::PriceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(::Stripe::SearchResultObject) } def self.search_auto_paging_each(params = {}, opts = {}, &blk); end # Updates the specified price by setting the values of the parameters passed. Any parameters not provided are left unchanged. sig { - params(price: String, params: T.any(::Stripe::PriceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Price) + params(price: String, params: T.any(::Stripe::PriceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Price) } def self.update(price, params = {}, opts = {}); end end @@ -29429,7 +34010,7 @@ module Stripe # [accept payments with Checkout](https://stripe.com/docs/payments/accept-a-payment#create-product-prices-upfront), # and more about [Products and Prices](https://stripe.com/docs/products-prices/overview) class Product < APIResource - class MarketingFeature < Stripe::StripeObject + class MarketingFeature < ::Stripe::StripeObject # The marketing feature name. Up to 80 characters long. sig { returns(T.nilable(String)) } def name; end @@ -29440,7 +34021,7 @@ module Stripe @field_remappings = {} end end - class PackageDimensions < Stripe::StripeObject + class PackageDimensions < ::Stripe::StripeObject # Height, in inches. sig { returns(Float) } def height; end @@ -29467,7 +34048,7 @@ module Stripe sig { returns(Integer) } def created; end # The ID of the [Price](https://stripe.com/docs/api/prices) object that is the default price for this product. - sig { returns(T.nilable(T.any(String, Stripe::Price))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Price))) } def default_price; end # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. sig { returns(T.nilable(String)) } @@ -29503,7 +34084,7 @@ module Stripe sig { returns(T.nilable(String)) } def statement_descriptor; end # A [tax code](https://stripe.com/docs/tax/tax-categories) ID. - sig { returns(T.nilable(T.any(String, Stripe::TaxCode))) } + sig { returns(T.nilable(T.any(String, ::Stripe::TaxCode))) } def tax_code; end # The type of the product. The product is either of type `good`, which is eligible for use with Orders and SKUs, or `service`, which is eligible for use with Subscriptions and Plans. sig { returns(String) } @@ -29522,41 +34103,41 @@ module Stripe def deleted; end # Creates a new product object. sig { - params(params: T.any(::Stripe::ProductCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Product) + params(params: T.any(::Stripe::ProductCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Product) } def self.create(params = {}, opts = {}); end # Delete a product. Deleting a product is only possible if it has no prices associated with it. Additionally, deleting a product with type=good is only possible if it has no SKUs associated with it. sig { - params(id: String, params: T.any(::Stripe::ProductDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Product) + params(id: String, params: T.any(::Stripe::ProductDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Product) } def self.delete(id, params = {}, opts = {}); end # Delete a product. Deleting a product is only possible if it has no prices associated with it. Additionally, deleting a product with type=good is only possible if it has no SKUs associated with it. sig { - params(params: T.any(::Stripe::ProductDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Product) + params(params: T.any(::Stripe::ProductDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Product) } def delete(params = {}, opts = {}); end # Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first. sig { - params(params: T.any(::Stripe::ProductListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ProductListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::ProductSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::ProductSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def self.search(params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::ProductSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::ProductSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(::Stripe::SearchResultObject) } def self.search_auto_paging_each(params = {}, opts = {}, &blk); end # Updates the specific product by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(id: String, params: T.any(::Stripe::ProductUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Product) + params(id: String, params: T.any(::Stripe::ProductUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Product) } def self.update(id, params = {}, opts = {}); end end @@ -29568,7 +34149,7 @@ module Stripe class ProductFeature < APIResource # A feature represents a monetizable ability or functionality in your system. # Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer. - sig { returns(Stripe::Entitlements::Feature) } + sig { returns(::Stripe::Entitlements::Feature) } def entitlement_feature; end # Unique identifier for the object. sig { returns(String) } @@ -29592,9 +34173,9 @@ module Stripe # If you enable promotion codes in your [customer portal configuration](https://stripe.com/docs/customer-management/configure-portal), then customers can redeem a code themselves when updating a subscription in the portal. # Customers can also view the currently active promotion codes and coupons on each of their subscriptions in the portal. class PromotionCode < APIResource - class Promotion < Stripe::StripeObject + class Promotion < ::Stripe::StripeObject # If promotion `type` is `coupon`, the coupon for this promotion. - sig { returns(T.nilable(T.any(String, Stripe::Coupon))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Coupon))) } def coupon; end # The type of promotion. sig { returns(String) } @@ -29606,8 +34187,8 @@ module Stripe @field_remappings = {} end end - class Restrictions < Stripe::StripeObject - class CurrencyOptions < Stripe::StripeObject + class Restrictions < ::Stripe::StripeObject + class CurrencyOptions < ::Stripe::StripeObject # Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work). sig { returns(Integer) } def minimum_amount; end @@ -29647,7 +34228,7 @@ module Stripe sig { returns(Integer) } def created; end # The customer that this promotion code can be used by. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # Date at which the promotion code can no longer be redeemed. sig { returns(T.nilable(Integer)) } @@ -29678,19 +34259,19 @@ module Stripe def times_redeemed; end # A promotion code points to an underlying promotion. You can optionally restrict the code to a specific customer, redemption limit, and expiration date. sig { - params(params: T.any(::Stripe::PromotionCodeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PromotionCode) + params(params: T.any(::Stripe::PromotionCodeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PromotionCode) } def self.create(params = {}, opts = {}); end # Returns a list of your promotion codes. sig { - params(params: T.any(::Stripe::PromotionCodeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PromotionCodeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the specified promotion code by setting the values of the parameters passed. Most fields are, by design, not editable. sig { - params(promotion_code: String, params: T.any(::Stripe::PromotionCodeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PromotionCode) + params(promotion_code: String, params: T.any(::Stripe::PromotionCodeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PromotionCode) } def self.update(promotion_code, params = {}, opts = {}); end end @@ -29700,10 +34281,10 @@ module Stripe # A Quote is a way to model prices that you'd like to provide to a customer. # Once accepted, it will automatically create an invoice, subscription or subscription schedule. class Quote < APIResource - class AutomaticTax < Stripe::StripeObject - class Liability < Stripe::StripeObject + class AutomaticTax < ::Stripe::StripeObject + class Liability < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -29734,11 +34315,11 @@ module Stripe @field_remappings = {} end end - class Computed < Stripe::StripeObject - class Recurring < Stripe::StripeObject - class TotalDetails < Stripe::StripeObject - class Breakdown < Stripe::StripeObject - class Discount < Stripe::StripeObject + class Computed < ::Stripe::StripeObject + class Recurring < ::Stripe::StripeObject + class TotalDetails < ::Stripe::StripeObject + class Breakdown < ::Stripe::StripeObject + class Discount < ::Stripe::StripeObject # The amount discounted. sig { returns(Integer) } def amount; end @@ -29746,7 +34327,7 @@ module Stripe # It contains information about when the discount began, when it will end, and what it is applied to. # # Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts) - sig { returns(Stripe::Discount) } + sig { returns(::Stripe::Discount) } def discount; end def self.inner_class_types @inner_class_types = {} @@ -29755,14 +34336,14 @@ module Stripe @field_remappings = {} end end - class Tax < Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. sig { returns(Integer) } def amount; end # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # # Related guide: [Tax rates](/billing/taxes/tax-rates) - sig { returns(Stripe::TaxRate) } + sig { returns(::Stripe::TaxRate) } def rate; end # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. sig { returns(T.nilable(String)) } @@ -29831,10 +34412,10 @@ module Stripe @field_remappings = {} end end - class Upfront < Stripe::StripeObject - class TotalDetails < Stripe::StripeObject - class Breakdown < Stripe::StripeObject - class Discount < Stripe::StripeObject + class Upfront < ::Stripe::StripeObject + class TotalDetails < ::Stripe::StripeObject + class Breakdown < ::Stripe::StripeObject + class Discount < ::Stripe::StripeObject # The amount discounted. sig { returns(Integer) } def amount; end @@ -29842,7 +34423,7 @@ module Stripe # It contains information about when the discount began, when it will end, and what it is applied to. # # Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts) - sig { returns(Stripe::Discount) } + sig { returns(::Stripe::Discount) } def discount; end def self.inner_class_types @inner_class_types = {} @@ -29851,14 +34432,14 @@ module Stripe @field_remappings = {} end end - class Tax < Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. sig { returns(Integer) } def amount; end # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # # Related guide: [Tax rates](/billing/taxes/tax-rates) - sig { returns(Stripe::TaxRate) } + sig { returns(::Stripe::TaxRate) } def rate; end # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. sig { returns(T.nilable(String)) } @@ -29912,7 +34493,7 @@ module Stripe sig { returns(Integer) } def amount_total; end # The line items that will appear on the next invoice after this quote is accepted. This does not include pending invoice items that exist on the customer but may still be included in the next invoice. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def line_items; end # Attribute for field total_details sig { returns(TotalDetails) } @@ -29937,12 +34518,12 @@ module Stripe @field_remappings = {} end end - class FromQuote < Stripe::StripeObject + class FromQuote < ::Stripe::StripeObject # Whether this quote is a revision of a different quote. sig { returns(T::Boolean) } def is_revision; end # The quote that was cloned. - sig { returns(T.any(String, Stripe::Quote)) } + sig { returns(T.any(String, ::Stripe::Quote)) } def quote; end def self.inner_class_types @inner_class_types = {} @@ -29951,10 +34532,10 @@ module Stripe @field_remappings = {} end end - class InvoiceSettings < Stripe::StripeObject - class Issuer < Stripe::StripeObject + class InvoiceSettings < ::Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -29979,7 +34560,7 @@ module Stripe @field_remappings = {} end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # The time that the quote was accepted. Measured in seconds since Unix epoch. sig { returns(T.nilable(Integer)) } def accepted_at; end @@ -29996,9 +34577,9 @@ module Stripe @field_remappings = {} end end - class SubscriptionData < Stripe::StripeObject - class BillingMode < Stripe::StripeObject - class Flexible < Stripe::StripeObject + class SubscriptionData < ::Stripe::StripeObject + class BillingMode < ::Stripe::StripeObject + class Flexible < ::Stripe::StripeObject # Controls how invoices and invoice items display proration amounts and discount amounts. sig { returns(T.nilable(String)) } def proration_discounts; end @@ -30044,9 +34625,9 @@ module Stripe @field_remappings = {} end end - class TotalDetails < Stripe::StripeObject - class Breakdown < Stripe::StripeObject - class Discount < Stripe::StripeObject + class TotalDetails < ::Stripe::StripeObject + class Breakdown < ::Stripe::StripeObject + class Discount < ::Stripe::StripeObject # The amount discounted. sig { returns(Integer) } def amount; end @@ -30054,7 +34635,7 @@ module Stripe # It contains information about when the discount began, when it will end, and what it is applied to. # # Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts) - sig { returns(Stripe::Discount) } + sig { returns(::Stripe::Discount) } def discount; end def self.inner_class_types @inner_class_types = {} @@ -30063,14 +34644,14 @@ module Stripe @field_remappings = {} end end - class Tax < Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. sig { returns(Integer) } def amount; end # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # # Related guide: [Tax rates](/billing/taxes/tax-rates) - sig { returns(Stripe::TaxRate) } + sig { returns(::Stripe::TaxRate) } def rate; end # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. sig { returns(T.nilable(String)) } @@ -30117,7 +34698,7 @@ module Stripe @field_remappings = {} end end - class TransferData < Stripe::StripeObject + class TransferData < ::Stripe::StripeObject # The amount in cents (or local equivalent) that will be transferred to the destination account when the invoice is paid. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Integer)) } def amount; end @@ -30125,7 +34706,7 @@ module Stripe sig { returns(T.nilable(Float)) } def amount_percent; end # The account where funds from the payment will be transferred to upon payment success. - sig { returns(T.any(String, Stripe::Account)) } + sig { returns(T.any(String, ::Stripe::Account)) } def destination; end def self.inner_class_types @inner_class_types = {} @@ -30141,7 +34722,7 @@ module Stripe sig { returns(Integer) } def amount_total; end # ID of the Connect Application that created the quote. - sig { returns(T.nilable(T.any(String, Stripe::Application))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Application))) } def application; end # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. Only applicable if there are no line items with recurring prices on the quote. sig { returns(T.nilable(Integer)) } @@ -30165,16 +34746,16 @@ module Stripe sig { returns(T.nilable(String)) } def currency; end # The customer which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # The tax rates applied to this quote. - sig { returns(T.nilable(T::Array[T.any(String, Stripe::TaxRate)])) } + sig { returns(T.nilable(T::Array[T.any(String, ::Stripe::TaxRate)])) } def default_tax_rates; end # A description that will be displayed on the quote PDF. sig { returns(T.nilable(String)) } def description; end # The discounts applied to this quote. - sig { returns(T::Array[T.any(String, Stripe::Discount)]) } + sig { returns(T::Array[T.any(String, ::Stripe::Discount)]) } def discounts; end # The date on which the quote will be canceled if in `open` or `draft` status. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -30192,13 +34773,13 @@ module Stripe sig { returns(String) } def id; end # The invoice that was created from this quote. - sig { returns(T.nilable(T.any(String, Stripe::Invoice))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Invoice))) } def invoice; end # Attribute for field invoice_settings sig { returns(InvoiceSettings) } def invoice_settings; end # A list of items the customer is being quoted for. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def line_items; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -30213,7 +34794,7 @@ module Stripe sig { returns(String) } def object; end # The account on behalf of which to charge. See the [Connect documentation](https://support.stripe.com/questions/sending-invoices-on-behalf-of-connected-accounts) for details. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def on_behalf_of; end # The status of the quote. sig { returns(String) } @@ -30222,16 +34803,16 @@ module Stripe sig { returns(StatusTransitions) } def status_transitions; end # The subscription that was created or updated from this quote. - sig { returns(T.nilable(T.any(String, Stripe::Subscription))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Subscription))) } def subscription; end # Attribute for field subscription_data sig { returns(SubscriptionData) } def subscription_data; end # The subscription schedule that was created or updated from this quote. - sig { returns(T.nilable(T.any(String, Stripe::SubscriptionSchedule))) } + sig { returns(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule))) } def subscription_schedule; end # ID of the test clock this quote belongs to. - sig { returns(T.nilable(T.any(String, Stripe::TestHelpers::TestClock))) } + sig { returns(T.nilable(T.any(String, ::Stripe::TestHelpers::TestClock))) } def test_clock; end # Attribute for field total_details sig { returns(TotalDetails) } @@ -30241,73 +34822,73 @@ module Stripe def transfer_data; end # Accepts the specified quote. sig { - params(params: T.any(::Stripe::QuoteAcceptParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(params: T.any(::Stripe::QuoteAcceptParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def accept(params = {}, opts = {}); end # Accepts the specified quote. sig { - params(quote: String, params: T.any(::Stripe::QuoteAcceptParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(quote: String, params: T.any(::Stripe::QuoteAcceptParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def self.accept(quote, params = {}, opts = {}); end # Cancels the quote. sig { - params(params: T.any(::Stripe::QuoteCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(params: T.any(::Stripe::QuoteCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def cancel(params = {}, opts = {}); end # Cancels the quote. sig { - params(quote: String, params: T.any(::Stripe::QuoteCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(quote: String, params: T.any(::Stripe::QuoteCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def self.cancel(quote, params = {}, opts = {}); end # A quote models prices and services for a customer. Default options for header, description, footer, and expires_at can be set in the dashboard via the [quote template](https://dashboard.stripe.com/settings/billing/quote). sig { - params(params: T.any(::Stripe::QuoteCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(params: T.any(::Stripe::QuoteCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def self.create(params = {}, opts = {}); end # Finalizes the quote. sig { - params(params: T.any(::Stripe::QuoteFinalizeQuoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(params: T.any(::Stripe::QuoteFinalizeQuoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def finalize_quote(params = {}, opts = {}); end # Finalizes the quote. sig { - params(quote: String, params: T.any(::Stripe::QuoteFinalizeQuoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(quote: String, params: T.any(::Stripe::QuoteFinalizeQuoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def self.finalize_quote(quote, params = {}, opts = {}); end # Returns a list of your quotes. sig { - params(params: T.any(::Stripe::QuoteListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::QuoteListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # When retrieving a quote, there is an includable [computed.upfront.line_items](https://stripe.com/docs/api/quotes/object#quote_object-computed-upfront-line_items) property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of upfront line items. sig { - params(params: T.any(::Stripe::QuoteListComputedUpfrontLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::QuoteListComputedUpfrontLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list_computed_upfront_line_items(params = {}, opts = {}); end # When retrieving a quote, there is an includable [computed.upfront.line_items](https://stripe.com/docs/api/quotes/object#quote_object-computed-upfront-line_items) property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of upfront line items. sig { - params(quote: String, params: T.any(::Stripe::QuoteListComputedUpfrontLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(quote: String, params: T.any(::Stripe::QuoteListComputedUpfrontLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list_computed_upfront_line_items(quote, params = {}, opts = {}); end # When retrieving a quote, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. sig { - params(params: T.any(::Stripe::QuoteListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::QuoteListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list_line_items(params = {}, opts = {}); end # When retrieving a quote, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. sig { - params(quote: String, params: T.any(::Stripe::QuoteListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(quote: String, params: T.any(::Stripe::QuoteListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list_line_items(quote, params = {}, opts = {}); end @@ -30325,7 +34906,7 @@ module Stripe # A quote models prices and services for a customer. sig { - params(quote: String, params: T.any(::Stripe::QuoteUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(quote: String, params: T.any(::Stripe::QuoteUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def self.update(quote, params = {}, opts = {}); end end @@ -30342,7 +34923,7 @@ module Stripe sig { returns(T::Boolean) } def actionable; end # ID of the charge this early fraud warning is for, optionally expanded. - sig { returns(T.any(String, Stripe::Charge)) } + sig { returns(T.any(String, ::Stripe::Charge)) } def charge; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -30360,11 +34941,11 @@ module Stripe sig { returns(String) } def object; end # ID of the Payment Intent this early fraud warning is for, optionally expanded. - sig { returns(T.nilable(T.any(String, Stripe::PaymentIntent))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntent))) } def payment_intent; end # Returns a list of early fraud warnings. sig { - params(params: T.any(::Stripe::Radar::EarlyFraudWarningListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Radar::EarlyFraudWarningListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -30403,25 +34984,25 @@ module Stripe def deleted; end # Creates a new ValueListItem object, which is added to the specified parent value list. sig { - params(params: T.any(::Stripe::Radar::ValueListItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueListItem) + params(params: T.any(::Stripe::Radar::ValueListItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueListItem) } def self.create(params = {}, opts = {}); end # Deletes a ValueListItem object, removing it from its parent value list. sig { - params(item: String, params: T.any(::Stripe::Radar::ValueListItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueListItem) + params(item: String, params: T.any(::Stripe::Radar::ValueListItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueListItem) } def self.delete(item, params = {}, opts = {}); end # Deletes a ValueListItem object, removing it from its parent value list. sig { - params(params: T.any(::Stripe::Radar::ValueListItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueListItem) + params(params: T.any(::Stripe::Radar::ValueListItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueListItem) } def delete(params = {}, opts = {}); end # Returns a list of ValueListItem objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Radar::ValueListItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Radar::ValueListItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -30450,7 +35031,7 @@ module Stripe sig { returns(String) } def item_type; end # List of items contained within this value list. - sig { returns(Stripe::ListObject) } + sig { returns(::Stripe::ListObject) } def list_items; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -30469,31 +35050,31 @@ module Stripe def deleted; end # Creates a new ValueList object, which can then be referenced in rules. sig { - params(params: T.any(::Stripe::Radar::ValueListCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueList) + params(params: T.any(::Stripe::Radar::ValueListCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueList) } def self.create(params = {}, opts = {}); end # Deletes a ValueList object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules. sig { - params(value_list: String, params: T.any(::Stripe::Radar::ValueListDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueList) + params(value_list: String, params: T.any(::Stripe::Radar::ValueListDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueList) } def self.delete(value_list, params = {}, opts = {}); end # Deletes a ValueList object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules. sig { - params(params: T.any(::Stripe::Radar::ValueListDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueList) + params(params: T.any(::Stripe::Radar::ValueListDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueList) } def delete(params = {}, opts = {}); end # Returns a list of ValueList objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Radar::ValueListListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Radar::ValueListListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates a ValueList object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note that item_type is immutable. sig { - params(value_list: String, params: T.any(::Stripe::Radar::ValueListUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueList) + params(value_list: String, params: T.any(::Stripe::Radar::ValueListUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueList) } def self.update(value_list, params = {}, opts = {}); end end @@ -30507,8 +35088,8 @@ module Stripe # # Related guide: [Refunds](https://stripe.com/docs/refunds) class Refund < APIResource - class DestinationDetails < Stripe::StripeObject - class Affirm < Stripe::StripeObject + class DestinationDetails < ::Stripe::StripeObject + class Affirm < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -30516,7 +35097,7 @@ module Stripe @field_remappings = {} end end - class AfterpayClearpay < Stripe::StripeObject + class AfterpayClearpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -30524,7 +35105,7 @@ module Stripe @field_remappings = {} end end - class Alipay < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -30532,7 +35113,7 @@ module Stripe @field_remappings = {} end end - class Alma < Stripe::StripeObject + class Alma < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -30540,7 +35121,7 @@ module Stripe @field_remappings = {} end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -30548,7 +35129,7 @@ module Stripe @field_remappings = {} end end - class AuBankTransfer < Stripe::StripeObject + class AuBankTransfer < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -30556,7 +35137,7 @@ module Stripe @field_remappings = {} end end - class Blik < Stripe::StripeObject + class Blik < ::Stripe::StripeObject # For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed. sig { returns(T.nilable(String)) } def network_decline_code; end @@ -30573,7 +35154,7 @@ module Stripe @field_remappings = {} end end - class BrBankTransfer < Stripe::StripeObject + class BrBankTransfer < ::Stripe::StripeObject # The reference assigned to the refund. sig { returns(T.nilable(String)) } def reference; end @@ -30587,7 +35168,7 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject + class Card < ::Stripe::StripeObject # Value of the reference number assigned to the refund. sig { returns(T.nilable(String)) } def reference; end @@ -30607,7 +35188,7 @@ module Stripe @field_remappings = {} end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -30615,7 +35196,10 @@ module Stripe @field_remappings = {} end end - class CustomerCashBalance < Stripe::StripeObject + class Crypto < ::Stripe::StripeObject + # The transaction hash of the refund. + sig { returns(T.nilable(String)) } + def reference; end def self.inner_class_types @inner_class_types = {} end @@ -30623,7 +35207,7 @@ module Stripe @field_remappings = {} end end - class Eps < Stripe::StripeObject + class CustomerCashBalance < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -30631,7 +35215,15 @@ module Stripe @field_remappings = {} end end - class EuBankTransfer < Stripe::StripeObject + class Eps < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class EuBankTransfer < ::Stripe::StripeObject # The reference assigned to the refund. sig { returns(T.nilable(String)) } def reference; end @@ -30645,7 +35237,7 @@ module Stripe @field_remappings = {} end end - class GbBankTransfer < Stripe::StripeObject + class GbBankTransfer < ::Stripe::StripeObject # The reference assigned to the refund. sig { returns(T.nilable(String)) } def reference; end @@ -30659,7 +35251,7 @@ module Stripe @field_remappings = {} end end - class Giropay < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -30667,7 +35259,7 @@ module Stripe @field_remappings = {} end end - class Grabpay < Stripe::StripeObject + class Grabpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -30675,7 +35267,7 @@ module Stripe @field_remappings = {} end end - class JpBankTransfer < Stripe::StripeObject + class JpBankTransfer < ::Stripe::StripeObject # The reference assigned to the refund. sig { returns(T.nilable(String)) } def reference; end @@ -30689,7 +35281,7 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -30697,7 +35289,7 @@ module Stripe @field_remappings = {} end end - class Multibanco < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject # The reference assigned to the refund. sig { returns(T.nilable(String)) } def reference; end @@ -30711,7 +35303,7 @@ module Stripe @field_remappings = {} end end - class MxBankTransfer < Stripe::StripeObject + class MxBankTransfer < ::Stripe::StripeObject # The reference assigned to the refund. sig { returns(T.nilable(String)) } def reference; end @@ -30725,7 +35317,7 @@ module Stripe @field_remappings = {} end end - class NzBankTransfer < Stripe::StripeObject + class NzBankTransfer < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -30733,7 +35325,7 @@ module Stripe @field_remappings = {} end end - class P24 < Stripe::StripeObject + class P24 < ::Stripe::StripeObject # The reference assigned to the refund. sig { returns(T.nilable(String)) } def reference; end @@ -30747,7 +35339,7 @@ module Stripe @field_remappings = {} end end - class Paynow < Stripe::StripeObject + class Paynow < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -30755,7 +35347,7 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed. sig { returns(T.nilable(String)) } def network_decline_code; end @@ -30766,7 +35358,7 @@ module Stripe @field_remappings = {} end end - class Pix < Stripe::StripeObject + class Pix < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -30774,7 +35366,7 @@ module Stripe @field_remappings = {} end end - class Revolut < Stripe::StripeObject + class Revolut < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -30782,7 +35374,7 @@ module Stripe @field_remappings = {} end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -30790,7 +35382,7 @@ module Stripe @field_remappings = {} end end - class Swish < Stripe::StripeObject + class Swish < ::Stripe::StripeObject # For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed. sig { returns(T.nilable(String)) } def network_decline_code; end @@ -30807,7 +35399,7 @@ module Stripe @field_remappings = {} end end - class ThBankTransfer < Stripe::StripeObject + class ThBankTransfer < ::Stripe::StripeObject # The reference assigned to the refund. sig { returns(T.nilable(String)) } def reference; end @@ -30821,7 +35413,7 @@ module Stripe @field_remappings = {} end end - class UsBankTransfer < Stripe::StripeObject + class UsBankTransfer < ::Stripe::StripeObject # The reference assigned to the refund. sig { returns(T.nilable(String)) } def reference; end @@ -30835,7 +35427,7 @@ module Stripe @field_remappings = {} end end - class WechatPay < Stripe::StripeObject + class WechatPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -30843,7 +35435,7 @@ module Stripe @field_remappings = {} end end - class Zip < Stripe::StripeObject + class Zip < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -30881,6 +35473,9 @@ module Stripe # Attribute for field cashapp sig { returns(T.nilable(Cashapp)) } def cashapp; end + # Attribute for field crypto + sig { returns(T.nilable(Crypto)) } + def crypto; end # Attribute for field customer_cash_balance sig { returns(T.nilable(CustomerCashBalance)) } def customer_cash_balance; end @@ -30962,6 +35557,7 @@ module Stripe br_bank_transfer: BrBankTransfer, card: Card, cashapp: Cashapp, + crypto: Crypto, customer_cash_balance: CustomerCashBalance, eps: Eps, eu_bank_transfer: EuBankTransfer, @@ -30990,9 +35586,9 @@ module Stripe @field_remappings = {} end end - class NextAction < Stripe::StripeObject - class DisplayDetails < Stripe::StripeObject - class EmailSent < Stripe::StripeObject + class NextAction < ::Stripe::StripeObject + class DisplayDetails < ::Stripe::StripeObject + class EmailSent < ::Stripe::StripeObject # The timestamp when the email was sent. sig { returns(Integer) } def email_sent_at; end @@ -31032,7 +35628,7 @@ module Stripe @field_remappings = {} end end - class PresentmentDetails < Stripe::StripeObject + class PresentmentDetails < ::Stripe::StripeObject # Amount intended to be collected by this payment, denominated in `presentment_currency`. sig { returns(Integer) } def presentment_amount; end @@ -31050,10 +35646,10 @@ module Stripe sig { returns(Integer) } def amount; end # Balance transaction that describes the impact on your account balance. - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def balance_transaction; end # ID of the charge that's refunded. - sig { returns(T.nilable(T.any(String, Stripe::Charge))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Charge))) } def charge; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -31068,7 +35664,7 @@ module Stripe sig { returns(T.nilable(DestinationDetails)) } def destination_details; end # After the refund fails, this balance transaction describes the adjustment made on your account balance that reverses the initial balance transaction. - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def failure_balance_transaction; end # Provides the reason for the refund failure. Possible values are: `lost_or_stolen_card`, `expired_or_canceled_card`, `charge_for_pending_refund_disputed`, `insufficient_funds`, `declined`, `merchant_request`, or `unknown`. sig { returns(T.nilable(String)) } @@ -31089,7 +35685,7 @@ module Stripe sig { returns(String) } def object; end # ID of the PaymentIntent that's refunded. - sig { returns(T.nilable(T.any(String, Stripe::PaymentIntent))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntent))) } def payment_intent; end # Provides the reason for why the refund is pending. Possible values are: `processing`, `insufficient_funds`, or `charge_pending`. sig { returns(T.nilable(String)) } @@ -31104,19 +35700,19 @@ module Stripe sig { returns(T.nilable(String)) } def receipt_number; end # The transfer reversal that's associated with the refund. Only present if the charge came from another Stripe account. - sig { returns(T.nilable(T.any(String, Stripe::Reversal))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Reversal))) } def source_transfer_reversal; end # Status of the refund. This can be `pending`, `requires_action`, `succeeded`, `failed`, or `canceled`. Learn more about [failed refunds](https://stripe.com/docs/refunds#failed-refunds). sig { returns(T.nilable(String)) } def status; end # This refers to the transfer reversal object if the accompanying transfer reverses. This is only applicable if the charge was created using the destination parameter. - sig { returns(T.nilable(T.any(String, Stripe::Reversal))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Reversal))) } def transfer_reversal; end # Cancels a refund with a status of requires_action. # # You can't cancel refunds in other states. Only refunds for payment methods that require customer action can enter the requires_action state. sig { - params(params: T.any(::Stripe::RefundCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Refund) + params(params: T.any(::Stripe::RefundCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Refund) } def cancel(params = {}, opts = {}); end @@ -31124,7 +35720,7 @@ module Stripe # # You can't cancel refunds in other states. Only refunds for payment methods that require customer action can enter the requires_action state. sig { - params(refund: String, params: T.any(::Stripe::RefundCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Refund) + params(refund: String, params: T.any(::Stripe::RefundCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Refund) } def self.cancel(refund, params = {}, opts = {}); end @@ -31140,13 +35736,13 @@ module Stripe # This method will raise an error when called on an already-refunded charge, # or when trying to refund more money than is left on a charge. sig { - params(params: T.any(::Stripe::RefundCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Refund) + params(params: T.any(::Stripe::RefundCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Refund) } def self.create(params = {}, opts = {}); end # Returns a list of all refunds you created. We return the refunds in sorted order, with the most recent refunds appearing first. The 10 most recent refunds are always available by default on the Charge object. sig { - params(params: T.any(::Stripe::RefundListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::RefundListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end @@ -31154,7 +35750,7 @@ module Stripe # # This request only accepts metadata as an argument. sig { - params(refund: String, params: T.any(::Stripe::RefundUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Refund) + params(refund: String, params: T.any(::Stripe::RefundUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Refund) } def self.update(refund, params = {}, opts = {}); end end @@ -31171,7 +35767,7 @@ module Stripe # Note that certain report types can only be run based on your live-mode data (not test-mode # data), and will error when queried without a [live-mode API key](https://stripe.com/docs/keys#test-live-modes). class ReportRun < APIResource - class Parameters < Stripe::StripeObject + class Parameters < ::Stripe::StripeObject # The set of output columns requested for inclusion in the report run. sig { returns(T.nilable(T::Array[String])) } def columns; end @@ -31227,7 +35823,7 @@ module Stripe def report_type; end # The file object representing the result of the report run (populated when # `status=succeeded`). - sig { returns(T.nilable(Stripe::File)) } + sig { returns(T.nilable(::Stripe::File)) } def result; end # Status of this report run. This will be `pending` when the run is initially created. # When the run finishes, this will be set to `succeeded` and the `result` field will be populated. @@ -31240,13 +35836,13 @@ module Stripe def succeeded_at; end # Creates a new object and begin running the report. (Certain report types require a [live-mode API key](https://stripe.com/docs/keys#test-live-modes).) sig { - params(params: T.any(::Stripe::Reporting::ReportRunCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Reporting::ReportRun) + params(params: T.any(::Stripe::Reporting::ReportRunCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Reporting::ReportRun) } def self.create(params = {}, opts = {}); end # Returns a list of Report Runs, with the most recent appearing first. sig { - params(params: T.any(::Stripe::Reporting::ReportRunListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Reporting::ReportRunListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -31293,7 +35889,7 @@ module Stripe def version; end # Returns a full list of Report Types. sig { - params(params: T.any(::Stripe::Reporting::ReportTypeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Reporting::ReportTypeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -31306,7 +35902,7 @@ module Stripe # Learn more about [Radar](https://docs.stripe.com/radar) and reviewing payments # [here](https://stripe.com/docs/radar/reviews). class Review < APIResource - class IpAddressLocation < Stripe::StripeObject + class IpAddressLocation < ::Stripe::StripeObject # The city where the payment originated. sig { returns(T.nilable(String)) } def city; end @@ -31329,7 +35925,7 @@ module Stripe @field_remappings = {} end end - class Session < Stripe::StripeObject + class Session < ::Stripe::StripeObject # The browser used in this browser session (e.g., `Chrome`). sig { returns(T.nilable(String)) } def browser; end @@ -31353,7 +35949,7 @@ module Stripe sig { returns(T.nilable(String)) } def billing_zip; end # The charge associated with this review. - sig { returns(T.nilable(T.any(String, Stripe::Charge))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Charge))) } def charge; end # The reason the review was closed, or null if it has not yet been closed. One of `approved`, `refunded`, `refunded_as_fraud`, `disputed`, `redacted`, `canceled`, `payment_never_settled`, or `acknowledged`. sig { returns(T.nilable(String)) } @@ -31383,7 +35979,7 @@ module Stripe sig { returns(String) } def opened_reason; end # The PaymentIntent ID associated with this review, if one exists. - sig { returns(T.nilable(T.any(String, Stripe::PaymentIntent))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntent))) } def payment_intent; end # The reason the review is currently open or closed. One of `rule`, `manual`, `approved`, `refunded`, `refunded_as_fraud`, `disputed`, `redacted`, `canceled`, `payment_never_settled`, or `acknowledged`. sig { returns(String) } @@ -31393,19 +35989,19 @@ module Stripe def session; end # Approves a Review object, closing it and removing it from the list of reviews. sig { - params(params: T.any(::Stripe::ReviewApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Review) + params(params: T.any(::Stripe::ReviewApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Review) } def approve(params = {}, opts = {}); end # Approves a Review object, closing it and removing it from the list of reviews. sig { - params(review: String, params: T.any(::Stripe::ReviewApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Review) + params(review: String, params: T.any(::Stripe::ReviewApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Review) } def self.approve(review, params = {}, opts = {}); end # Returns a list of Review objects that have open set to true. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::ReviewListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ReviewListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -31417,8 +36013,8 @@ module Stripe # SetupAttempts to inspect details of a specific attempt at setting up a # payment method using a SetupIntent. class SetupAttempt < APIResource - class PaymentMethodDetails < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject + class PaymentMethodDetails < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -31426,7 +36022,7 @@ module Stripe @field_remappings = {} end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -31434,7 +36030,7 @@ module Stripe @field_remappings = {} end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -31442,7 +36038,7 @@ module Stripe @field_remappings = {} end end - class BacsDebit < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -31450,7 +36046,7 @@ module Stripe @field_remappings = {} end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject # Bank code of bank associated with the bank account. sig { returns(T.nilable(String)) } def bank_code; end @@ -31461,10 +36057,10 @@ module Stripe sig { returns(T.nilable(String)) } def bic; end # The ID of the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def generated_sepa_debit; end # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def generated_sepa_debit_mandate; end # Last four characters of the IBAN. sig { returns(T.nilable(String)) } @@ -31484,7 +36080,7 @@ module Stripe @field_remappings = {} end end - class Boleto < Stripe::StripeObject + class Boleto < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -31492,8 +36088,8 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject - class Checks < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Checks < ::Stripe::StripeObject # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. sig { returns(T.nilable(String)) } def address_line1_check; end @@ -31510,7 +36106,7 @@ module Stripe @field_remappings = {} end end - class ThreeDSecure < Stripe::StripeObject + class ThreeDSecure < ::Stripe::StripeObject # For authenticated transactions: how the customer was authenticated by # the issuing bank. sig { returns(T.nilable(String)) } @@ -31540,8 +36136,8 @@ module Stripe @field_remappings = {} end end - class Wallet < Stripe::StripeObject - class ApplePay < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -31549,7 +36145,7 @@ module Stripe @field_remappings = {} end end - class GooglePay < Stripe::StripeObject + class GooglePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -31624,8 +36220,8 @@ module Stripe @field_remappings = {} end end - class CardPresent < Stripe::StripeObject - class Offline < Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject + class Offline < ::Stripe::StripeObject # Time at which the payment was collected while offline sig { returns(T.nilable(Integer)) } def stored_at; end @@ -31640,7 +36236,7 @@ module Stripe end end # The ID of the Card PaymentMethod which was generated by this SetupAttempt. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def generated_card; end # Details about payments collected offline. sig { returns(T.nilable(Offline)) } @@ -31652,7 +36248,7 @@ module Stripe @field_remappings = {} end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -31660,7 +36256,7 @@ module Stripe @field_remappings = {} end end - class Ideal < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject # The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. sig { returns(T.nilable(String)) } def bank; end @@ -31668,10 +36264,10 @@ module Stripe sig { returns(T.nilable(String)) } def bic; end # The ID of the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def generated_sepa_debit; end # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def generated_sepa_debit_mandate; end # Last four characters of the IBAN. sig { returns(T.nilable(String)) } @@ -31687,7 +36283,7 @@ module Stripe @field_remappings = {} end end - class KakaoPay < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -31695,7 +36291,7 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -31703,7 +36299,7 @@ module Stripe @field_remappings = {} end end - class KrCard < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -31711,7 +36307,7 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -31719,7 +36315,7 @@ module Stripe @field_remappings = {} end end - class NaverPay < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject # Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same. sig { returns(T.nilable(String)) } def buyer_id; end @@ -31730,7 +36326,7 @@ module Stripe @field_remappings = {} end end - class NzBankAccount < Stripe::StripeObject + class NzBankAccount < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -31738,7 +36334,7 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -31746,7 +36342,7 @@ module Stripe @field_remappings = {} end end - class RevolutPay < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -31754,7 +36350,7 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -31762,7 +36358,7 @@ module Stripe @field_remappings = {} end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject # Bank code of bank associated with the bank account. sig { returns(T.nilable(String)) } def bank_code; end @@ -31773,10 +36369,10 @@ module Stripe sig { returns(T.nilable(String)) } def bic; end # The ID of the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def generated_sepa_debit; end # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def generated_sepa_debit_mandate; end # Last four characters of the IBAN. sig { returns(T.nilable(String)) } @@ -31796,7 +36392,7 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -31899,7 +36495,7 @@ module Stripe @field_remappings = {} end end - class SetupError < Stripe::StripeObject + class SetupError < ::Stripe::StripeObject # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one. sig { returns(T.nilable(String)) } def advice_code; end @@ -31938,14 +36534,14 @@ module Stripe # authentication flows and ultimately creates at most one successful charge. # # Related guide: [Payment Intents API](https://stripe.com/docs/payments/payment-intents) - sig { returns(T.nilable(Stripe::PaymentIntent)) } + sig { returns(T.nilable(::Stripe::PaymentIntent)) } def payment_intent; end # PaymentMethod objects represent your customer's payment instruments. # You can use them with [PaymentIntents](https://stripe.com/docs/payments/payment-intents) to collect payments or save them to # Customer objects to store instrument details for future payments. # # Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios). - sig { returns(T.nilable(Stripe::PaymentMethod)) } + sig { returns(T.nilable(::Stripe::PaymentMethod)) } def payment_method; end # If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors. sig { returns(T.nilable(String)) } @@ -31974,11 +36570,11 @@ module Stripe # By using SetupIntents, you can reduce friction for your customers, even as regulations change over time. # # Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) - sig { returns(T.nilable(Stripe::SetupIntent)) } + sig { returns(T.nilable(::Stripe::SetupIntent)) } def setup_intent; end # Attribute for field source sig { - returns(T.nilable(T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source))) + returns(T.nilable(T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source))) } def source; end # The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error` @@ -31992,7 +36588,7 @@ module Stripe end end # The value of [application](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-application) on the SetupIntent at the time of this confirmation. - sig { returns(T.nilable(T.any(String, Stripe::Application))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Application))) } def application; end # If present, the SetupIntent's payment method will be attached to the in-context Stripe Account. # @@ -32003,7 +36599,7 @@ module Stripe sig { returns(Integer) } def created; end # The value of [customer](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-customer) on the SetupIntent at the time of this confirmation. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # Indicates the directions of money movement for which this payment method is intended to be used. # @@ -32020,10 +36616,10 @@ module Stripe sig { returns(String) } def object; end # The value of [on_behalf_of](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-on_behalf_of) on the SetupIntent at the time of this confirmation. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def on_behalf_of; end # ID of the payment method used with this SetupAttempt. - sig { returns(T.any(String, Stripe::PaymentMethod)) } + sig { returns(T.any(String, ::Stripe::PaymentMethod)) } def payment_method; end # Attribute for field payment_method_details sig { returns(PaymentMethodDetails) } @@ -32032,7 +36628,7 @@ module Stripe sig { returns(T.nilable(SetupError)) } def setup_error; end # ID of the SetupIntent that this attempt belongs to. - sig { returns(T.any(String, Stripe::SetupIntent)) } + sig { returns(T.any(String, ::Stripe::SetupIntent)) } def setup_intent; end # Status of this SetupAttempt, one of `requires_confirmation`, `requires_action`, `processing`, `succeeded`, `failed`, or `abandoned`. sig { returns(String) } @@ -32042,7 +36638,7 @@ module Stripe def usage; end # Returns a list of SetupAttempts that associate with a provided SetupIntent. sig { - params(params: T.any(::Stripe::SetupAttemptListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::SetupAttemptListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -32071,7 +36667,7 @@ module Stripe # # Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) class SetupIntent < APIResource - class AutomaticPaymentMethods < Stripe::StripeObject + class AutomaticPaymentMethods < ::Stripe::StripeObject # Controls whether this SetupIntent will accept redirect-based payment methods. # # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/setup_intents/confirm) this SetupIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the setup. @@ -32087,7 +36683,7 @@ module Stripe @field_remappings = {} end end - class LastSetupError < Stripe::StripeObject + class LastSetupError < ::Stripe::StripeObject # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one. sig { returns(T.nilable(String)) } def advice_code; end @@ -32126,14 +36722,14 @@ module Stripe # authentication flows and ultimately creates at most one successful charge. # # Related guide: [Payment Intents API](https://stripe.com/docs/payments/payment-intents) - sig { returns(T.nilable(Stripe::PaymentIntent)) } + sig { returns(T.nilable(::Stripe::PaymentIntent)) } def payment_intent; end # PaymentMethod objects represent your customer's payment instruments. # You can use them with [PaymentIntents](https://stripe.com/docs/payments/payment-intents) to collect payments or save them to # Customer objects to store instrument details for future payments. # # Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios). - sig { returns(T.nilable(Stripe::PaymentMethod)) } + sig { returns(T.nilable(::Stripe::PaymentMethod)) } def payment_method; end # If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors. sig { returns(T.nilable(String)) } @@ -32162,11 +36758,11 @@ module Stripe # By using SetupIntents, you can reduce friction for your customers, even as regulations change over time. # # Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) - sig { returns(T.nilable(Stripe::SetupIntent)) } + sig { returns(T.nilable(::Stripe::SetupIntent)) } def setup_intent; end # Attribute for field source sig { - returns(T.nilable(T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source))) + returns(T.nilable(T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source))) } def source; end # The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error` @@ -32179,9 +36775,9 @@ module Stripe @field_remappings = {} end end - class NextAction < Stripe::StripeObject - class CashappHandleRedirectOrDisplayQrCode < Stripe::StripeObject - class QrCode < Stripe::StripeObject + class NextAction < ::Stripe::StripeObject + class CashappHandleRedirectOrDisplayQrCode < ::Stripe::StripeObject + class QrCode < ::Stripe::StripeObject # The date (unix timestamp) when the QR code expires. sig { returns(Integer) } def expires_at; end @@ -32214,7 +36810,7 @@ module Stripe @field_remappings = {} end end - class RedirectToUrl < Stripe::StripeObject + class RedirectToUrl < ::Stripe::StripeObject # If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion. sig { returns(T.nilable(String)) } def return_url; end @@ -32228,7 +36824,7 @@ module Stripe @field_remappings = {} end end - class VerifyWithMicrodeposits < Stripe::StripeObject + class VerifyWithMicrodeposits < ::Stripe::StripeObject # The timestamp when the microdeposits are expected to land. sig { returns(Integer) } def arrival_date; end @@ -32271,7 +36867,7 @@ module Stripe @field_remappings = {} end end - class PaymentMethodConfigurationDetails < Stripe::StripeObject + class PaymentMethodConfigurationDetails < ::Stripe::StripeObject # ID of the payment method configuration used. sig { returns(String) } def id; end @@ -32285,9 +36881,9 @@ module Stripe @field_remappings = {} end end - class PaymentMethodOptions < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class PaymentMethodOptions < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # A URL for custom mandate text sig { returns(T.nilable(String)) } def custom_mandate_url; end @@ -32326,7 +36922,7 @@ module Stripe @field_remappings = {} end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -32334,8 +36930,8 @@ module Stripe @field_remappings = {} end end - class BacsDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -32356,8 +36952,8 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Amount to be charged for future payments. sig { returns(Integer) } def amount; end @@ -32411,7 +37007,7 @@ module Stripe @field_remappings = {} end end - class CardPresent < Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -32419,7 +37015,7 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject # The currency of the setup intent. Three letter ISO currency code. sig { returns(T.nilable(String)) } def currency; end @@ -32433,7 +37029,7 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject # [Deprecated] This is a legacy parameter that no longer has any function. sig { returns(T.nilable(String)) } def persistent_token; end @@ -32444,7 +37040,7 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer. sig { returns(T.nilable(String)) } def billing_agreement_id; end @@ -32455,8 +37051,8 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -32477,9 +37073,9 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject - class FinancialConnections < Stripe::StripeObject - class Filters < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject + class FinancialConnections < ::Stripe::StripeObject + class Filters < ::Stripe::StripeObject # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -32509,7 +37105,7 @@ module Stripe @field_remappings = {} end end - class MandateOptions < Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Mandate collection method sig { returns(T.nilable(String)) } def collection_method; end @@ -32588,7 +37184,7 @@ module Stripe end end # ID of the Connect application that created the SetupIntent. - sig { returns(T.nilable(T.any(String, Stripe::Application))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Application))) } def application; end # If present, the SetupIntent's payment method will be attached to the in-context Stripe Account. # @@ -32612,11 +37208,14 @@ module Stripe # ID of the Customer this SetupIntent belongs to, if one exists. # # If present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } def description; end + # Payment method types that are excluded from this SetupIntent. + sig { returns(T.nilable(T::Array[String])) } + def excluded_payment_method_types; end # Indicates the directions of money movement for which this payment method is intended to be used. # # Include `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes. @@ -32629,13 +37228,13 @@ module Stripe sig { returns(T.nilable(LastSetupError)) } def last_setup_error; end # The most recent SetupAttempt for this SetupIntent. - sig { returns(T.nilable(T.any(String, Stripe::SetupAttempt))) } + sig { returns(T.nilable(T.any(String, ::Stripe::SetupAttempt))) } def latest_attempt; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } def livemode; end # ID of the multi use Mandate generated by the SetupIntent. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def mandate; end # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. sig { returns(T.nilable(T::Hash[String, String])) } @@ -32647,10 +37246,10 @@ module Stripe sig { returns(String) } def object; end # The account (if any) for which the setup is intended. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def on_behalf_of; end # ID of the payment method used with this SetupIntent. If the payment method is `card_present` and isn't a digital wallet, then the [generated_card](https://docs.stripe.com/api/setup_attempts/object#setup_attempt_object-payment_method_details-card_present-generated_card) associated with the `latest_attempt` is attached to the Customer instead. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def payment_method; end # Information about the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) used for this Setup Intent. sig { returns(T.nilable(PaymentMethodConfigurationDetails)) } @@ -32662,7 +37261,7 @@ module Stripe sig { returns(T::Array[String]) } def payment_method_types; end # ID of the single_use Mandate generated by the SetupIntent. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def single_use_mandate; end # [Status](https://stripe.com/docs/payments/intents#intent-statuses) of this SetupIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `canceled`, or `succeeded`. sig { returns(String) } @@ -32676,7 +37275,7 @@ module Stripe # # After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can't cancel the SetupIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead. sig { - params(params: T.any(::Stripe::SetupIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(params: T.any(::Stripe::SetupIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def cancel(params = {}, opts = {}); end @@ -32684,7 +37283,7 @@ module Stripe # # After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can't cancel the SetupIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead. sig { - params(intent: String, params: T.any(::Stripe::SetupIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(intent: String, params: T.any(::Stripe::SetupIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def self.cancel(intent, params = {}, opts = {}); end @@ -32703,7 +37302,7 @@ module Stripe # requires_payment_method status or the canceled status if the # confirmation limit is reached. sig { - params(params: T.any(::Stripe::SetupIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(params: T.any(::Stripe::SetupIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def confirm(params = {}, opts = {}); end @@ -32722,7 +37321,7 @@ module Stripe # requires_payment_method status or the canceled status if the # confirmation limit is reached. sig { - params(intent: String, params: T.any(::Stripe::SetupIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(intent: String, params: T.any(::Stripe::SetupIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def self.confirm(intent, params = {}, opts = {}); end @@ -32731,31 +37330,31 @@ module Stripe # After you create the SetupIntent, attach a payment method and [confirm](https://docs.stripe.com/docs/api/setup_intents/confirm) # it to collect any required permissions to charge the payment method later. sig { - params(params: T.any(::Stripe::SetupIntentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(params: T.any(::Stripe::SetupIntentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def self.create(params = {}, opts = {}); end # Returns a list of SetupIntents. sig { - params(params: T.any(::Stripe::SetupIntentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::SetupIntentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates a SetupIntent object. sig { - params(intent: String, params: T.any(::Stripe::SetupIntentUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(intent: String, params: T.any(::Stripe::SetupIntentUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def self.update(intent, params = {}, opts = {}); end # Verifies microdeposits on a SetupIntent object. sig { - params(params: T.any(::Stripe::SetupIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(params: T.any(::Stripe::SetupIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def verify_microdeposits(params = {}, opts = {}); end # Verifies microdeposits on a SetupIntent object. sig { - params(intent: String, params: T.any(::Stripe::SetupIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(intent: String, params: T.any(::Stripe::SetupIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def self.verify_microdeposits(intent, params = {}, opts = {}); end end @@ -32765,8 +37364,8 @@ module Stripe # Shipping rates describe the price of shipping presented to your customers and # applied to a purchase. For more information, see [Charge for shipping](https://stripe.com/docs/payments/during-payment/charge-shipping). class ShippingRate < APIResource - class DeliveryEstimate < Stripe::StripeObject - class Maximum < Stripe::StripeObject + class DeliveryEstimate < ::Stripe::StripeObject + class Maximum < ::Stripe::StripeObject # A unit of time. sig { returns(String) } def unit; end @@ -32780,7 +37379,7 @@ module Stripe @field_remappings = {} end end - class Minimum < Stripe::StripeObject + class Minimum < ::Stripe::StripeObject # A unit of time. sig { returns(String) } def unit; end @@ -32807,8 +37406,8 @@ module Stripe @field_remappings = {} end end - class FixedAmount < Stripe::StripeObject - class CurrencyOptions < Stripe::StripeObject + class FixedAmount < ::Stripe::StripeObject + class CurrencyOptions < ::Stripe::StripeObject # A non-negative integer in cents representing how much to charge. sig { returns(Integer) } def amount; end @@ -32869,26 +37468,26 @@ module Stripe sig { returns(T.nilable(String)) } def tax_behavior; end # A [tax code](https://stripe.com/docs/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`. - sig { returns(T.nilable(T.any(String, Stripe::TaxCode))) } + sig { returns(T.nilable(T.any(String, ::Stripe::TaxCode))) } def tax_code; end # The type of calculation to use on the shipping rate. sig { returns(String) } def type; end # Creates a new shipping rate object. sig { - params(params: T.any(::Stripe::ShippingRateCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ShippingRate) + params(params: T.any(::Stripe::ShippingRateCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ShippingRate) } def self.create(params = {}, opts = {}); end # Returns a list of your shipping rates. sig { - params(params: T.any(::Stripe::ShippingRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ShippingRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates an existing shipping rate object. sig { - params(shipping_rate_token: String, params: T.any(::Stripe::ShippingRateUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ShippingRate) + params(shipping_rate_token: String, params: T.any(::Stripe::ShippingRateUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ShippingRate) } def self.update(shipping_rate_token, params = {}, opts = {}); end end @@ -32901,7 +37500,7 @@ module Stripe # runs. The webhook contains a `ScheduledQueryRun` object, which you can use to # retrieve the query results. class ScheduledQueryRun < APIResource - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # Information about the run failure. sig { returns(String) } def message; end @@ -32922,7 +37521,7 @@ module Stripe sig { returns(T.nilable(Error)) } def error; end # The file object representing the results of the query. - sig { returns(T.nilable(Stripe::File)) } + sig { returns(T.nilable(::Stripe::File)) } def file; end # Unique identifier for the object. sig { returns(String) } @@ -32947,7 +37546,7 @@ module Stripe def title; end # Returns a list of scheduled query runs. sig { - params(params: T.any(::Stripe::Sigma::ScheduledQueryRunListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Sigma::ScheduledQueryRunListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -32960,7 +37559,7 @@ module Stripe # multiple transactions. As such, sources can have multiple associated # transactions. class SourceTransaction < StripeObject - class AchCreditTransfer < Stripe::StripeObject + class AchCreditTransfer < ::Stripe::StripeObject # Customer data associated with the transfer. sig { returns(T.nilable(String)) } def customer_data; end @@ -32980,7 +37579,7 @@ module Stripe @field_remappings = {} end end - class ChfCreditTransfer < Stripe::StripeObject + class ChfCreditTransfer < ::Stripe::StripeObject # Reference associated with the transfer. sig { returns(T.nilable(String)) } def reference; end @@ -33003,7 +37602,7 @@ module Stripe @field_remappings = {} end end - class GbpCreditTransfer < Stripe::StripeObject + class GbpCreditTransfer < ::Stripe::StripeObject # Bank account fingerprint associated with the Stripe owned bank account receiving the transfer. sig { returns(T.nilable(String)) } def fingerprint; end @@ -33032,7 +37631,7 @@ module Stripe @field_remappings = {} end end - class PaperCheck < Stripe::StripeObject + class PaperCheck < ::Stripe::StripeObject # Time at which the deposited funds will be available for use. Measured in seconds since the Unix epoch. sig { returns(T.nilable(String)) } def available_at; end @@ -33046,7 +37645,7 @@ module Stripe @field_remappings = {} end end - class SepaCreditTransfer < Stripe::StripeObject + class SepaCreditTransfer < ::Stripe::StripeObject # Reference associated with the transfer. sig { returns(T.nilable(String)) } def reference; end @@ -33120,7 +37719,7 @@ module Stripe # # Related guides: [Sources API](https://stripe.com/docs/sources) and [Sources & Customers](https://stripe.com/docs/sources/customers). class Source < APIResource - class AchCreditTransfer < Stripe::StripeObject + class AchCreditTransfer < ::Stripe::StripeObject # Attribute for field account_number sig { returns(T.nilable(String)) } def account_number; end @@ -33152,7 +37751,7 @@ module Stripe @field_remappings = {} end end - class AchDebit < Stripe::StripeObject + class AchDebit < ::Stripe::StripeObject # Attribute for field bank_name sig { returns(T.nilable(String)) } def bank_name; end @@ -33178,7 +37777,7 @@ module Stripe @field_remappings = {} end end - class AcssDebit < Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject # Attribute for field bank_address_city sig { returns(T.nilable(String)) } def bank_address_city; end @@ -33216,7 +37815,7 @@ module Stripe @field_remappings = {} end end - class Alipay < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject # Attribute for field data_string sig { returns(T.nilable(String)) } def data_string; end @@ -33233,7 +37832,7 @@ module Stripe @field_remappings = {} end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject # Attribute for field bsb_number sig { returns(T.nilable(String)) } def bsb_number; end @@ -33250,7 +37849,7 @@ module Stripe @field_remappings = {} end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject # Attribute for field bank_code sig { returns(T.nilable(String)) } def bank_code; end @@ -33276,7 +37875,7 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject + class Card < ::Stripe::StripeObject # Attribute for field address_line1_check sig { returns(T.nilable(String)) } def address_line1_check; end @@ -33335,7 +37934,7 @@ module Stripe @field_remappings = {} end end - class CardPresent < Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject # Attribute for field application_cryptogram sig { returns(T.nilable(String)) } def application_cryptogram; end @@ -33421,7 +38020,7 @@ module Stripe @field_remappings = {} end end - class CodeVerification < Stripe::StripeObject + class CodeVerification < ::Stripe::StripeObject # The number of attempts remaining to authenticate the source object with a verification code. sig { returns(Integer) } def attempts_remaining; end @@ -33435,7 +38034,7 @@ module Stripe @field_remappings = {} end end - class Eps < Stripe::StripeObject + class Eps < ::Stripe::StripeObject # Attribute for field reference sig { returns(T.nilable(String)) } def reference; end @@ -33449,7 +38048,7 @@ module Stripe @field_remappings = {} end end - class Giropay < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject # Attribute for field bank_code sig { returns(T.nilable(String)) } def bank_code; end @@ -33469,7 +38068,7 @@ module Stripe @field_remappings = {} end end - class Ideal < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject # Attribute for field bank sig { returns(T.nilable(String)) } def bank; end @@ -33489,7 +38088,7 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject # Attribute for field background_image_url sig { returns(T.nilable(String)) } def background_image_url; end @@ -33575,7 +38174,7 @@ module Stripe @field_remappings = {} end end - class Multibanco < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject # Attribute for field entity sig { returns(T.nilable(String)) } def entity; end @@ -33613,8 +38212,8 @@ module Stripe @field_remappings = {} end end - class Owner < Stripe::StripeObject - class Address < Stripe::StripeObject + class Owner < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -33640,7 +38239,7 @@ module Stripe @field_remappings = {} end end - class VerifiedAddress < Stripe::StripeObject + class VerifiedAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -33697,7 +38296,7 @@ module Stripe @field_remappings = {} end end - class P24 < Stripe::StripeObject + class P24 < ::Stripe::StripeObject # Attribute for field reference sig { returns(T.nilable(String)) } def reference; end @@ -33708,7 +38307,7 @@ module Stripe @field_remappings = {} end end - class Receiver < Stripe::StripeObject + class Receiver < ::Stripe::StripeObject # The address of the receiver source. This is the value that should be communicated to the customer to send their funds to. sig { returns(T.nilable(String)) } def address; end @@ -33734,7 +38333,7 @@ module Stripe @field_remappings = {} end end - class Redirect < Stripe::StripeObject + class Redirect < ::Stripe::StripeObject # The failure reason for the redirect, either `user_abort` (the customer aborted or dropped out of the redirect flow), `declined` (the authentication failed or the transaction was declined), or `processing_error` (the redirect failed due to a technical error). Present only if the redirect status is `failed`. sig { returns(T.nilable(String)) } def failure_reason; end @@ -33754,7 +38353,7 @@ module Stripe @field_remappings = {} end end - class SepaCreditTransfer < Stripe::StripeObject + class SepaCreditTransfer < ::Stripe::StripeObject # Attribute for field bank_name sig { returns(T.nilable(String)) } def bank_name; end @@ -33795,7 +38394,7 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject # Attribute for field bank_code sig { returns(T.nilable(String)) } def bank_code; end @@ -33824,7 +38423,7 @@ module Stripe @field_remappings = {} end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject # Attribute for field bank_code sig { returns(T.nilable(String)) } def bank_code; end @@ -33853,8 +38452,8 @@ module Stripe @field_remappings = {} end end - class SourceOrder < Stripe::StripeObject - class Item < Stripe::StripeObject + class SourceOrder < ::Stripe::StripeObject + class Item < ::Stripe::StripeObject # The amount (price) for this order item. sig { returns(T.nilable(Integer)) } def amount; end @@ -33880,8 +38479,8 @@ module Stripe @field_remappings = {} end end - class Shipping < Stripe::StripeObject - class Address < Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -33951,7 +38550,7 @@ module Stripe @field_remappings = {} end end - class ThreeDSecure < Stripe::StripeObject + class ThreeDSecure < ::Stripe::StripeObject # Attribute for field address_line1_check sig { returns(T.nilable(String)) } def address_line1_check; end @@ -34019,7 +38618,7 @@ module Stripe @field_remappings = {} end end - class Wechat < Stripe::StripeObject + class Wechat < ::Stripe::StripeObject # Attribute for field prepay_id sig { returns(T.nilable(String)) } def prepay_id; end @@ -34155,7 +38754,7 @@ module Stripe def wechat; end # Creates a new source object. sig { - params(params: T.any(::Stripe::SourceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Source) + params(params: T.any(::Stripe::SourceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Source) } def self.create(params = {}, opts = {}); end @@ -34163,19 +38762,19 @@ module Stripe # # This request accepts the metadata and owner as arguments. It is also possible to update type specific information for selected payment methods. Please refer to our [payment method guides](https://docs.stripe.com/docs/sources) for more detail. sig { - params(source: String, params: T.any(::Stripe::SourceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Source) + params(source: String, params: T.any(::Stripe::SourceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Source) } def self.update(source, params = {}, opts = {}); end # Verify a given source. sig { - params(params: T.any(::Stripe::SourceVerifyParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Source) + params(params: T.any(::Stripe::SourceVerifyParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Source) } def verify(params = {}, opts = {}); end # Verify a given source. sig { - params(source: String, params: T.any(::Stripe::SourceVerifyParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Source) + params(source: String, params: T.any(::Stripe::SourceVerifyParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Source) } def self.verify(source, params = {}, opts = {}); end end @@ -34185,7 +38784,7 @@ module Stripe # Subscription items allow you to create customer subscriptions with more than # one plan, making it easy to represent complex billing relationships. class SubscriptionItem < APIResource - class BillingThresholds < Stripe::StripeObject + class BillingThresholds < ::Stripe::StripeObject # Usage threshold that triggers the subscription to create an invoice sig { returns(T.nilable(Integer)) } def usage_gte; end @@ -34209,7 +38808,7 @@ module Stripe sig { returns(Integer) } def current_period_start; end # The discounts applied to the subscription item. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount. - sig { returns(T::Array[T.any(String, Stripe::Discount)]) } + sig { returns(T::Array[T.any(String, ::Stripe::Discount)]) } def discounts; end # Unique identifier for the object. sig { returns(String) } @@ -34228,7 +38827,7 @@ module Stripe # For example, you might have a single "gold" product that has plans for $10/month, $100/year, €9/month, and €90/year. # # Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription) and more about [products and prices](https://stripe.com/docs/products-prices/overview). - sig { returns(Stripe::Plan) } + sig { returns(::Stripe::Plan) } def plan; end # Prices define the unit cost, currency, and (optional) billing cycle for both recurring and one-time purchases of products. # [Products](https://stripe.com/docs/api#products) help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme. @@ -34236,7 +38835,7 @@ module Stripe # For example, you might have a single "gold" product that has prices for $10/month, $100/year, and €9 once. # # Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription), [create an invoice](https://stripe.com/docs/billing/invoices/create), and more about [products and prices](https://stripe.com/docs/products-prices/overview). - sig { returns(Stripe::Price) } + sig { returns(::Stripe::Price) } def price; end # The [quantity](https://stripe.com/docs/subscriptions/quantities) of the plan to which the customer should be subscribed. sig { returns(T.nilable(Integer)) } @@ -34245,38 +38844,38 @@ module Stripe sig { returns(String) } def subscription; end # The tax rates which apply to this `subscription_item`. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`. - sig { returns(T.nilable(T::Array[Stripe::TaxRate])) } + sig { returns(T.nilable(T::Array[::Stripe::TaxRate])) } def tax_rates; end # Always true for a deleted object sig { returns(T.nilable(T::Boolean)) } def deleted; end # Adds a new item to an existing subscription. No existing items will be changed or replaced. sig { - params(params: T.any(::Stripe::SubscriptionItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionItem) + params(params: T.any(::Stripe::SubscriptionItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionItem) } def self.create(params = {}, opts = {}); end # Deletes an item from the subscription. Removing a subscription item from a subscription will not cancel the subscription. sig { - params(item: String, params: T.any(::Stripe::SubscriptionItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionItem) + params(item: String, params: T.any(::Stripe::SubscriptionItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionItem) } def self.delete(item, params = {}, opts = {}); end # Deletes an item from the subscription. Removing a subscription item from a subscription will not cancel the subscription. sig { - params(params: T.any(::Stripe::SubscriptionItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionItem) + params(params: T.any(::Stripe::SubscriptionItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionItem) } def delete(params = {}, opts = {}); end # Returns a list of your subscription items for a given subscription. sig { - params(params: T.any(::Stripe::SubscriptionItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::SubscriptionItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the plan or quantity of an item on a current subscription. sig { - params(item: String, params: T.any(::Stripe::SubscriptionItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionItem) + params(item: String, params: T.any(::Stripe::SubscriptionItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionItem) } def self.update(item, params = {}, opts = {}); end end @@ -34287,8 +38886,8 @@ module Stripe # # Related guide: [Subscription schedules](https://stripe.com/docs/billing/subscriptions/subscription-schedules) class SubscriptionSchedule < APIResource - class BillingMode < Stripe::StripeObject - class Flexible < Stripe::StripeObject + class BillingMode < ::Stripe::StripeObject + class Flexible < ::Stripe::StripeObject # Controls how invoices and invoice items display proration amounts and discount amounts. sig { returns(T.nilable(String)) } def proration_discounts; end @@ -34315,7 +38914,7 @@ module Stripe @field_remappings = {} end end - class CurrentPhase < Stripe::StripeObject + class CurrentPhase < ::Stripe::StripeObject # The end of this phase of the subscription schedule. sig { returns(Integer) } def end_date; end @@ -34329,11 +38928,11 @@ module Stripe @field_remappings = {} end end - class DefaultSettings < Stripe::StripeObject - class AutomaticTax < Stripe::StripeObject - class Liability < Stripe::StripeObject + class DefaultSettings < ::Stripe::StripeObject + class AutomaticTax < ::Stripe::StripeObject + class Liability < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -34361,7 +38960,7 @@ module Stripe @field_remappings = {} end end - class BillingThresholds < Stripe::StripeObject + class BillingThresholds < ::Stripe::StripeObject # Monetary threshold that triggers the subscription to create an invoice sig { returns(T.nilable(Integer)) } def amount_gte; end @@ -34375,10 +38974,10 @@ module Stripe @field_remappings = {} end end - class InvoiceSettings < Stripe::StripeObject - class Issuer < Stripe::StripeObject + class InvoiceSettings < ::Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -34391,7 +38990,7 @@ module Stripe end end # The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule. - sig { returns(T.nilable(T::Array[T.any(String, Stripe::TaxId)])) } + sig { returns(T.nilable(T::Array[T.any(String, ::Stripe::TaxId)])) } def account_tax_ids; end # Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`. sig { returns(T.nilable(Integer)) } @@ -34406,12 +39005,12 @@ module Stripe @field_remappings = {} end end - class TransferData < Stripe::StripeObject + class TransferData < ::Stripe::StripeObject # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Float)) } def amount_percent; end # The account where funds from the payment will be transferred to upon payment success. - sig { returns(T.any(String, Stripe::Account)) } + sig { returns(T.any(String, ::Stripe::Account)) } def destination; end def self.inner_class_types @inner_class_types = {} @@ -34436,7 +39035,7 @@ module Stripe sig { returns(T.nilable(String)) } def collection_method; end # ID of the default payment method for the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def default_payment_method; end # Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. sig { returns(T.nilable(String)) } @@ -34445,7 +39044,7 @@ module Stripe sig { returns(InvoiceSettings) } def invoice_settings; end # The account (if any) the charge was made on behalf of for charges associated with the schedule's subscription. See the Connect documentation for details. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def on_behalf_of; end # The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices. sig { returns(T.nilable(TransferData)) } @@ -34462,17 +39061,17 @@ module Stripe @field_remappings = {} end end - class Phase < Stripe::StripeObject - class AddInvoiceItem < Stripe::StripeObject - class Discount < Stripe::StripeObject + class Phase < ::Stripe::StripeObject + class AddInvoiceItem < ::Stripe::StripeObject + class Discount < ::Stripe::StripeObject # ID of the coupon to create a new discount for. - sig { returns(T.nilable(T.any(String, Stripe::Coupon))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Coupon))) } def coupon; end # ID of an existing discount on the object (or one of its ancestors) to reuse. - sig { returns(T.nilable(T.any(String, Stripe::Discount))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Discount))) } def discount; end # ID of the promotion code to create a new discount for. - sig { returns(T.nilable(T.any(String, Stripe::PromotionCode))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PromotionCode))) } def promotion_code; end def self.inner_class_types @inner_class_types = {} @@ -34481,8 +39080,8 @@ module Stripe @field_remappings = {} end end - class Period < Stripe::StripeObject - class End < Stripe::StripeObject + class Period < ::Stripe::StripeObject + class End < ::Stripe::StripeObject # A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -34496,7 +39095,7 @@ module Stripe @field_remappings = {} end end - class Start < Stripe::StripeObject + class Start < ::Stripe::StripeObject # A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -34533,13 +39132,13 @@ module Stripe sig { returns(Period) } def period; end # ID of the price used to generate the invoice item. - sig { returns(T.any(String, Stripe::Price)) } + sig { returns(T.any(String, ::Stripe::Price)) } def price; end # The quantity of the invoice item. sig { returns(T.nilable(Integer)) } def quantity; end # The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item. - sig { returns(T.nilable(T::Array[Stripe::TaxRate])) } + sig { returns(T.nilable(T::Array[::Stripe::TaxRate])) } def tax_rates; end def self.inner_class_types @inner_class_types = {discounts: Discount, period: Period} @@ -34548,10 +39147,10 @@ module Stripe @field_remappings = {} end end - class AutomaticTax < Stripe::StripeObject - class Liability < Stripe::StripeObject + class AutomaticTax < ::Stripe::StripeObject + class Liability < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -34579,7 +39178,7 @@ module Stripe @field_remappings = {} end end - class BillingThresholds < Stripe::StripeObject + class BillingThresholds < ::Stripe::StripeObject # Monetary threshold that triggers the subscription to create an invoice sig { returns(T.nilable(Integer)) } def amount_gte; end @@ -34593,15 +39192,15 @@ module Stripe @field_remappings = {} end end - class Discount < Stripe::StripeObject + class Discount < ::Stripe::StripeObject # ID of the coupon to create a new discount for. - sig { returns(T.nilable(T.any(String, Stripe::Coupon))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Coupon))) } def coupon; end # ID of an existing discount on the object (or one of its ancestors) to reuse. - sig { returns(T.nilable(T.any(String, Stripe::Discount))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Discount))) } def discount; end # ID of the promotion code to create a new discount for. - sig { returns(T.nilable(T.any(String, Stripe::PromotionCode))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PromotionCode))) } def promotion_code; end def self.inner_class_types @inner_class_types = {} @@ -34610,10 +39209,10 @@ module Stripe @field_remappings = {} end end - class InvoiceSettings < Stripe::StripeObject - class Issuer < Stripe::StripeObject + class InvoiceSettings < ::Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -34626,7 +39225,7 @@ module Stripe end end # The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule. - sig { returns(T.nilable(T::Array[T.any(String, Stripe::TaxId)])) } + sig { returns(T.nilable(T::Array[T.any(String, ::Stripe::TaxId)])) } def account_tax_ids; end # Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`. sig { returns(T.nilable(Integer)) } @@ -34641,8 +39240,8 @@ module Stripe @field_remappings = {} end end - class Item < Stripe::StripeObject - class BillingThresholds < Stripe::StripeObject + class Item < ::Stripe::StripeObject + class BillingThresholds < ::Stripe::StripeObject # Usage threshold that triggers the subscription to create an invoice sig { returns(T.nilable(Integer)) } def usage_gte; end @@ -34653,15 +39252,15 @@ module Stripe @field_remappings = {} end end - class Discount < Stripe::StripeObject + class Discount < ::Stripe::StripeObject # ID of the coupon to create a new discount for. - sig { returns(T.nilable(T.any(String, Stripe::Coupon))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Coupon))) } def coupon; end # ID of an existing discount on the object (or one of its ancestors) to reuse. - sig { returns(T.nilable(T.any(String, Stripe::Discount))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Discount))) } def discount; end # ID of the promotion code to create a new discount for. - sig { returns(T.nilable(T.any(String, Stripe::PromotionCode))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PromotionCode))) } def promotion_code; end def self.inner_class_types @inner_class_types = {} @@ -34680,16 +39279,16 @@ module Stripe sig { returns(T.nilable(T::Hash[String, String])) } def metadata; end # ID of the plan to which the customer should be subscribed. - sig { returns(T.any(String, Stripe::Plan)) } + sig { returns(T.any(String, ::Stripe::Plan)) } def plan; end # ID of the price to which the customer should be subscribed. - sig { returns(T.any(String, Stripe::Price)) } + sig { returns(T.any(String, ::Stripe::Price)) } def price; end # Quantity of the plan to which the customer should be subscribed. sig { returns(T.nilable(Integer)) } def quantity; end # The tax rates which apply to this `phase_item`. When set, the `default_tax_rates` on the phase do not apply to this `phase_item`. - sig { returns(T.nilable(T::Array[Stripe::TaxRate])) } + sig { returns(T.nilable(T::Array[::Stripe::TaxRate])) } def tax_rates; end def self.inner_class_types @inner_class_types = {billing_thresholds: BillingThresholds, discounts: Discount} @@ -34698,12 +39297,12 @@ module Stripe @field_remappings = {} end end - class TransferData < Stripe::StripeObject + class TransferData < ::Stripe::StripeObject # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Float)) } def amount_percent; end # The account where funds from the payment will be transferred to upon payment success. - sig { returns(T.any(String, Stripe::Account)) } + sig { returns(T.any(String, ::Stripe::Account)) } def destination; end def self.inner_class_types @inner_class_types = {} @@ -34734,10 +39333,10 @@ module Stripe sig { returns(String) } def currency; end # ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def default_payment_method; end # The default tax rates to apply to the subscription during this phase of the subscription schedule. - sig { returns(T.nilable(T::Array[Stripe::TaxRate])) } + sig { returns(T.nilable(T::Array[::Stripe::TaxRate])) } def default_tax_rates; end # Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. sig { returns(T.nilable(String)) } @@ -34758,7 +39357,7 @@ module Stripe sig { returns(T.nilable(T::Hash[String, String])) } def metadata; end # The account (if any) the charge was made on behalf of for charges associated with the schedule's subscription. See the Connect documentation for details. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def on_behalf_of; end # When transitioning phases, controls how prorations are handled (if any). Possible values are `create_prorations`, `none`, and `always_invoice`. sig { returns(String) } @@ -34788,7 +39387,7 @@ module Stripe end end # ID of the Connect Application that created the schedule. - sig { returns(T.nilable(T.any(String, Stripe::Application))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Application))) } def application; end # The billing mode of the subscription. sig { returns(BillingMode) } @@ -34806,7 +39405,7 @@ module Stripe sig { returns(T.nilable(CurrentPhase)) } def current_phase; end # ID of the customer who owns the subscription schedule. - sig { returns(T.any(String, Stripe::Customer)) } + sig { returns(T.any(String, ::Stripe::Customer)) } def customer; end # Attribute for field default_settings sig { returns(DefaultSettings) } @@ -34839,50 +39438,50 @@ module Stripe sig { returns(String) } def status; end # ID of the subscription managed by the subscription schedule. - sig { returns(T.nilable(T.any(String, Stripe::Subscription))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Subscription))) } def subscription; end # ID of the test clock this subscription schedule belongs to. - sig { returns(T.nilable(T.any(String, Stripe::TestHelpers::TestClock))) } + sig { returns(T.nilable(T.any(String, ::Stripe::TestHelpers::TestClock))) } def test_clock; end # Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be canceled if its status is not_started or active. sig { - params(params: T.any(::Stripe::SubscriptionScheduleCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(params: T.any(::Stripe::SubscriptionScheduleCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionSchedule) } def cancel(params = {}, opts = {}); end # Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be canceled if its status is not_started or active. sig { - params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionSchedule) } def self.cancel(schedule, params = {}, opts = {}); end # Creates a new subscription schedule object. Each customer can have up to 500 active or scheduled subscriptions. sig { - params(params: T.any(::Stripe::SubscriptionScheduleCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(params: T.any(::Stripe::SubscriptionScheduleCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionSchedule) } def self.create(params = {}, opts = {}); end # Retrieves the list of your subscription schedules. sig { - params(params: T.any(::Stripe::SubscriptionScheduleListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::SubscriptionScheduleListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Releases the subscription schedule immediately, which will stop scheduling of its phases, but leave any existing subscription in place. A schedule can only be released if its status is not_started or active. If the subscription schedule is currently associated with a subscription, releasing it will remove its subscription property and set the subscription's ID to the released_subscription property. sig { - params(params: T.any(::Stripe::SubscriptionScheduleReleaseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(params: T.any(::Stripe::SubscriptionScheduleReleaseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionSchedule) } def release(params = {}, opts = {}); end # Releases the subscription schedule immediately, which will stop scheduling of its phases, but leave any existing subscription in place. A schedule can only be released if its status is not_started or active. If the subscription schedule is currently associated with a subscription, releasing it will remove its subscription property and set the subscription's ID to the released_subscription property. sig { - params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleReleaseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleReleaseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionSchedule) } def self.release(schedule, params = {}, opts = {}); end # Updates an existing subscription schedule. sig { - params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionSchedule) } def self.update(schedule, params = {}, opts = {}); end end @@ -34893,10 +39492,10 @@ module Stripe # # Related guide: [Creating subscriptions](https://stripe.com/docs/billing/subscriptions/creating) class Subscription < APIResource - class AutomaticTax < Stripe::StripeObject - class Liability < Stripe::StripeObject + class AutomaticTax < ::Stripe::StripeObject + class Liability < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -34924,7 +39523,7 @@ module Stripe @field_remappings = {} end end - class BillingCycleAnchorConfig < Stripe::StripeObject + class BillingCycleAnchorConfig < ::Stripe::StripeObject # The day of the month of the billing_cycle_anchor. sig { returns(Integer) } def day_of_month; end @@ -34947,8 +39546,8 @@ module Stripe @field_remappings = {} end end - class BillingMode < Stripe::StripeObject - class Flexible < Stripe::StripeObject + class BillingMode < ::Stripe::StripeObject + class Flexible < ::Stripe::StripeObject # Controls how invoices and invoice items display proration amounts and discount amounts. sig { returns(T.nilable(String)) } def proration_discounts; end @@ -34975,7 +39574,7 @@ module Stripe @field_remappings = {} end end - class BillingThresholds < Stripe::StripeObject + class BillingThresholds < ::Stripe::StripeObject # Monetary threshold that triggers the subscription to create an invoice sig { returns(T.nilable(Integer)) } def amount_gte; end @@ -34989,7 +39588,7 @@ module Stripe @field_remappings = {} end end - class CancellationDetails < Stripe::StripeObject + class CancellationDetails < ::Stripe::StripeObject # Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user. sig { returns(T.nilable(String)) } def comment; end @@ -35006,10 +39605,10 @@ module Stripe @field_remappings = {} end end - class InvoiceSettings < Stripe::StripeObject - class Issuer < Stripe::StripeObject + class InvoiceSettings < ::Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -35022,7 +39621,7 @@ module Stripe end end # The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription. - sig { returns(T.nilable(T::Array[T.any(String, Stripe::TaxId)])) } + sig { returns(T.nilable(T::Array[T.any(String, ::Stripe::TaxId)])) } def account_tax_ids; end # Attribute for field issuer sig { returns(Issuer) } @@ -35034,7 +39633,7 @@ module Stripe @field_remappings = {} end end - class PauseCollection < Stripe::StripeObject + class PauseCollection < ::Stripe::StripeObject # The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`. sig { returns(String) } def behavior; end @@ -35048,10 +39647,10 @@ module Stripe @field_remappings = {} end end - class PaymentSettings < Stripe::StripeObject - class PaymentMethodOptions < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class PaymentSettings < ::Stripe::StripeObject + class PaymentMethodOptions < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Transaction type of the mandate. sig { returns(T.nilable(String)) } def transaction_type; end @@ -35075,7 +39674,7 @@ module Stripe @field_remappings = {} end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject # Preferred language of the Bancontact authorization page that the customer is redirected to. sig { returns(String) } def preferred_language; end @@ -35086,8 +39685,8 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Amount to be charged for future payments. sig { returns(T.nilable(Integer)) } def amount; end @@ -35120,9 +39719,9 @@ module Stripe @field_remappings = {} end end - class CustomerBalance < Stripe::StripeObject - class BankTransfer < Stripe::StripeObject - class EuBankTransfer < Stripe::StripeObject + class CustomerBalance < ::Stripe::StripeObject + class BankTransfer < ::Stripe::StripeObject + class EuBankTransfer < ::Stripe::StripeObject # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -35159,7 +39758,7 @@ module Stripe @field_remappings = {} end end - class Konbini < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -35167,7 +39766,7 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -35175,9 +39774,9 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject - class FinancialConnections < Stripe::StripeObject - class Filters < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject + class FinancialConnections < ::Stripe::StripeObject + class Filters < ::Stripe::StripeObject # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -35269,7 +39868,7 @@ module Stripe @field_remappings = {} end end - class PendingInvoiceItemInterval < Stripe::StripeObject + class PendingInvoiceItemInterval < ::Stripe::StripeObject # Specifies invoicing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -35283,7 +39882,7 @@ module Stripe @field_remappings = {} end end - class PendingUpdate < Stripe::StripeObject + class PendingUpdate < ::Stripe::StripeObject # If the update is applied, determines the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. The timestamp is in UTC format. sig { returns(T.nilable(Integer)) } def billing_cycle_anchor; end @@ -35291,7 +39890,7 @@ module Stripe sig { returns(Integer) } def expires_at; end # List of subscription items, each with an attached plan, that will be set if the update is applied. - sig { returns(T.nilable(T::Array[Stripe::SubscriptionItem])) } + sig { returns(T.nilable(T::Array[::Stripe::SubscriptionItem])) } def subscription_items; end # Unix timestamp representing the end of the trial period the customer will get before being charged for the first time, if the update is applied. sig { returns(T.nilable(Integer)) } @@ -35306,12 +39905,12 @@ module Stripe @field_remappings = {} end end - class TransferData < Stripe::StripeObject + class TransferData < ::Stripe::StripeObject # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Float)) } def amount_percent; end # The account where funds from the payment will be transferred to upon payment success. - sig { returns(T.any(String, Stripe::Account)) } + sig { returns(T.any(String, ::Stripe::Account)) } def destination; end def self.inner_class_types @inner_class_types = {} @@ -35320,8 +39919,8 @@ module Stripe @field_remappings = {} end end - class TrialSettings < Stripe::StripeObject - class EndBehavior < Stripe::StripeObject + class TrialSettings < ::Stripe::StripeObject + class EndBehavior < ::Stripe::StripeObject # Indicates how the subscription should change when the trial ends if the user did not provide a payment method. sig { returns(String) } def missing_payment_method; end @@ -35343,7 +39942,7 @@ module Stripe end end # ID of the Connect Application that created the subscription. - sig { returns(T.nilable(T.any(String, Stripe::Application))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Application))) } def application; end # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. sig { returns(T.nilable(Float)) } @@ -35385,27 +39984,27 @@ module Stripe sig { returns(String) } def currency; end # ID of the customer who owns the subscription. - sig { returns(T.any(String, Stripe::Customer)) } + sig { returns(T.any(String, ::Stripe::Customer)) } def customer; end # Number of days a customer has to pay invoices generated by this subscription. This value will be `null` for subscriptions where `collection_method=charge_automatically`. sig { returns(T.nilable(Integer)) } def days_until_due; end # ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over `default_source`. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://stripe.com/docs/api/customers/object#customer_object-default_source). - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def default_payment_method; end # ID of the default payment source for the subscription. It must belong to the customer associated with the subscription and be in a chargeable state. If `default_payment_method` is also set, `default_payment_method` will take precedence. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://stripe.com/docs/api/customers/object#customer_object-default_source). sig { - returns(T.nilable(T.any(String, T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source)))) + returns(T.nilable(T.any(String, T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source)))) } def default_source; end # The tax rates that will apply to any subscription item that does not have `tax_rates` set. Invoices created will have their `default_tax_rates` populated from the subscription. - sig { returns(T.nilable(T::Array[Stripe::TaxRate])) } + sig { returns(T.nilable(T::Array[::Stripe::TaxRate])) } def default_tax_rates; end # The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. sig { returns(T.nilable(String)) } def description; end # The discounts applied to the subscription. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount. - sig { returns(T::Array[T.any(String, Stripe::Discount)]) } + sig { returns(T::Array[T.any(String, ::Stripe::Discount)]) } def discounts; end # If the subscription has ended, the date the subscription ended. sig { returns(T.nilable(Integer)) } @@ -35417,10 +40016,10 @@ module Stripe sig { returns(InvoiceSettings) } def invoice_settings; end # List of subscription items, each with an attached price. - sig { returns(Stripe::ListObject) } + sig { returns(::Stripe::ListObject) } def items; end # The most recent invoice this subscription has generated. - sig { returns(T.nilable(T.any(String, Stripe::Invoice))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Invoice))) } def latest_invoice; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -35435,7 +40034,7 @@ module Stripe sig { returns(String) } def object; end # The account (if any) the charge was made on behalf of for charges associated with this subscription. See the [Connect documentation](https://stripe.com/docs/connect/subscriptions#on-behalf-of) for details. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def on_behalf_of; end # If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). sig { returns(T.nilable(PauseCollection)) } @@ -35447,13 +40046,13 @@ module Stripe sig { returns(T.nilable(PendingInvoiceItemInterval)) } def pending_invoice_item_interval; end # You can use this [SetupIntent](https://stripe.com/docs/api/setup_intents) to collect user authentication when creating a subscription without immediate payment or updating a subscription's payment method, allowing you to optimize for off-session payments. Learn more in the [SCA Migration Guide](https://stripe.com/docs/billing/migration/strong-customer-authentication#scenario-2). - sig { returns(T.nilable(T.any(String, Stripe::SetupIntent))) } + sig { returns(T.nilable(T.any(String, ::Stripe::SetupIntent))) } def pending_setup_intent; end # If specified, [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates) that will be applied to the subscription once the `latest_invoice` has been paid. sig { returns(T.nilable(PendingUpdate)) } def pending_update; end # The schedule attached to the subscription - sig { returns(T.nilable(T.any(String, Stripe::SubscriptionSchedule))) } + sig { returns(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule))) } def schedule; end # Date when the subscription was first created. The date might differ from the `created` date due to backdating. sig { returns(Integer) } @@ -35472,7 +40071,7 @@ module Stripe sig { returns(String) } def status; end # ID of the test clock this subscription belongs to. - sig { returns(T.nilable(T.any(String, Stripe::TestHelpers::TestClock))) } + sig { returns(T.nilable(T.any(String, ::Stripe::TestHelpers::TestClock))) } def test_clock; end # The account (if any) the subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices. sig { returns(T.nilable(TransferData)) } @@ -35492,7 +40091,7 @@ module Stripe # # By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. sig { - params(params: T.any(::Stripe::SubscriptionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(params: T.any(::Stripe::SubscriptionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def cancel(params = {}, opts = {}); end @@ -35502,7 +40101,7 @@ module Stripe # # By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. sig { - params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def self.cancel(subscription_exposed_id, params = {}, opts = {}); end @@ -35514,59 +40113,59 @@ module Stripe # To start subscriptions where the first invoice always begins in a draft status, use [subscription schedules](https://docs.stripe.com/docs/billing/subscriptions/subscription-schedules#managing) instead. # Schedules provide the flexibility to model more complex billing configurations that change over time. sig { - params(params: T.any(::Stripe::SubscriptionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(params: T.any(::Stripe::SubscriptionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def self.create(params = {}, opts = {}); end # Removes the currently applied discount on a subscription. sig { - params(params: T.any(::Stripe::SubscriptionDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Discount) + params(params: T.any(::Stripe::SubscriptionDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Discount) } def delete_discount(params = {}, opts = {}); end # Removes the currently applied discount on a subscription. sig { - params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Discount) + params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Discount) } def self.delete_discount(subscription_exposed_id, params = {}, opts = {}); end # By default, returns a list of subscriptions that have not been canceled. In order to list canceled subscriptions, specify status=canceled. sig { - params(params: T.any(::Stripe::SubscriptionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::SubscriptionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Upgrade the billing_mode of an existing subscription. sig { - params(params: T.any(::Stripe::SubscriptionMigrateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(params: T.any(::Stripe::SubscriptionMigrateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def migrate(params = {}, opts = {}); end # Upgrade the billing_mode of an existing subscription. sig { - params(subscription: String, params: T.any(::Stripe::SubscriptionMigrateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(subscription: String, params: T.any(::Stripe::SubscriptionMigrateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def self.migrate(subscription, params = {}, opts = {}); end # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. sig { - params(params: T.any(::Stripe::SubscriptionResumeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(params: T.any(::Stripe::SubscriptionResumeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def resume(params = {}, opts = {}); end # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. sig { - params(subscription: String, params: T.any(::Stripe::SubscriptionResumeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(subscription: String, params: T.any(::Stripe::SubscriptionResumeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def self.resume(subscription, params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::SubscriptionSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::SubscriptionSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def self.search(params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::SubscriptionSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::SubscriptionSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(::Stripe::SearchResultObject) } def self.search_auto_paging_each(params = {}, opts = {}, &blk); end @@ -35592,7 +40191,7 @@ module Stripe # # Updating the quantity on a subscription many times in an hour may result in [rate limiting. If you need to bill for a frequently changing quantity, consider integrating usage-based billing](https://docs.stripe.com/docs/rate-limits) instead. sig { - params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def self.update(subscription_exposed_id, params = {}, opts = {}); end end @@ -35604,8 +40203,8 @@ module Stripe # # Related guide: [Calculate tax in your custom payment flow](https://stripe.com/docs/tax/custom) class Calculation < APIResource - class CustomerDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class CustomerDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -35631,7 +40230,7 @@ module Stripe @field_remappings = {} end end - class TaxId < Stripe::StripeObject + class TaxId < ::Stripe::StripeObject # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` sig { returns(String) } def type; end @@ -35667,8 +40266,8 @@ module Stripe @field_remappings = {} end end - class ShipFromDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class ShipFromDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -35704,9 +40303,9 @@ module Stripe @field_remappings = {} end end - class ShippingCost < Stripe::StripeObject - class TaxBreakdown < Stripe::StripeObject - class Jurisdiction < Stripe::StripeObject + class ShippingCost < ::Stripe::StripeObject + class TaxBreakdown < ::Stripe::StripeObject + class Jurisdiction < ::Stripe::StripeObject # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). sig { returns(String) } def country; end @@ -35726,7 +40325,7 @@ module Stripe @field_remappings = {} end end - class TaxRateDetails < Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject # A localized display name for tax type, intended to be human-readable. For example, "Local Sales and Use Tax", "Value-added tax (VAT)", or "Umsatzsteuer (USt.)". sig { returns(String) } def display_name; end @@ -35793,9 +40392,9 @@ module Stripe @field_remappings = {} end end - class TaxBreakdown < Stripe::StripeObject - class TaxRateDetails < Stripe::StripeObject - class FlatAmount < Stripe::StripeObject + class TaxBreakdown < ::Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject + class FlatAmount < ::Stripe::StripeObject # Amount of the tax when the `rate_type` is `flat_amount`. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). sig { returns(Integer) } def amount; end @@ -35875,7 +40474,7 @@ module Stripe sig { returns(T.nilable(String)) } def id; end # The list of items the customer is purchasing. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def line_items; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -35903,19 +40502,19 @@ module Stripe def tax_date; end # Calculates tax based on the input and returns a Tax Calculation object. sig { - params(params: T.any(::Stripe::Tax::CalculationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Calculation) + params(params: T.any(::Stripe::Tax::CalculationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Calculation) } def self.create(params = {}, opts = {}); end # Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired. sig { - params(params: T.any(::Stripe::Tax::CalculationListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Tax::CalculationListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list_line_items(params = {}, opts = {}); end # Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired. sig { - params(calculation: String, params: T.any(::Stripe::Tax::CalculationListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(calculation: String, params: T.any(::Stripe::Tax::CalculationListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list_line_items(calculation, params = {}, opts = {}); end end @@ -35930,9 +40529,9 @@ module Stripe # # Related guide: [Using the Registrations API](https://stripe.com/docs/tax/registrations-api) class Registration < APIResource - class CountryOptions < Stripe::StripeObject - class Ae < Stripe::StripeObject - class Standard < Stripe::StripeObject + class CountryOptions < ::Stripe::StripeObject + class Ae < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -35956,7 +40555,7 @@ module Stripe @field_remappings = {} end end - class Al < Stripe::StripeObject + class Al < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -35967,7 +40566,7 @@ module Stripe @field_remappings = {} end end - class Am < Stripe::StripeObject + class Am < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -35978,7 +40577,7 @@ module Stripe @field_remappings = {} end end - class Ao < Stripe::StripeObject + class Ao < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -35989,8 +40588,8 @@ module Stripe @field_remappings = {} end end - class At < Stripe::StripeObject - class Standard < Stripe::StripeObject + class At < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36014,8 +40613,8 @@ module Stripe @field_remappings = {} end end - class Au < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Au < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36039,7 +40638,7 @@ module Stripe @field_remappings = {} end end - class Aw < Stripe::StripeObject + class Aw < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36050,7 +40649,7 @@ module Stripe @field_remappings = {} end end - class Az < Stripe::StripeObject + class Az < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36061,7 +40660,7 @@ module Stripe @field_remappings = {} end end - class Ba < Stripe::StripeObject + class Ba < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36072,7 +40671,7 @@ module Stripe @field_remappings = {} end end - class Bb < Stripe::StripeObject + class Bb < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36083,7 +40682,7 @@ module Stripe @field_remappings = {} end end - class Bd < Stripe::StripeObject + class Bd < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36094,8 +40693,8 @@ module Stripe @field_remappings = {} end end - class Be < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Be < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36119,7 +40718,7 @@ module Stripe @field_remappings = {} end end - class Bf < Stripe::StripeObject + class Bf < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36130,8 +40729,8 @@ module Stripe @field_remappings = {} end end - class Bg < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Bg < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36155,7 +40754,7 @@ module Stripe @field_remappings = {} end end - class Bh < Stripe::StripeObject + class Bh < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36166,7 +40765,7 @@ module Stripe @field_remappings = {} end end - class Bj < Stripe::StripeObject + class Bj < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36177,7 +40776,7 @@ module Stripe @field_remappings = {} end end - class Bs < Stripe::StripeObject + class Bs < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36188,7 +40787,7 @@ module Stripe @field_remappings = {} end end - class By < Stripe::StripeObject + class By < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36199,8 +40798,8 @@ module Stripe @field_remappings = {} end end - class Ca < Stripe::StripeObject - class ProvinceStandard < Stripe::StripeObject + class Ca < ::Stripe::StripeObject + class ProvinceStandard < ::Stripe::StripeObject # Two-letter CA province code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). sig { returns(String) } def province; end @@ -36224,7 +40823,7 @@ module Stripe @field_remappings = {} end end - class Cd < Stripe::StripeObject + class Cd < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36235,8 +40834,8 @@ module Stripe @field_remappings = {} end end - class Ch < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Ch < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36260,7 +40859,7 @@ module Stripe @field_remappings = {} end end - class Cl < Stripe::StripeObject + class Cl < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36271,7 +40870,7 @@ module Stripe @field_remappings = {} end end - class Cm < Stripe::StripeObject + class Cm < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36282,7 +40881,7 @@ module Stripe @field_remappings = {} end end - class Co < Stripe::StripeObject + class Co < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36293,7 +40892,7 @@ module Stripe @field_remappings = {} end end - class Cr < Stripe::StripeObject + class Cr < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36304,7 +40903,7 @@ module Stripe @field_remappings = {} end end - class Cv < Stripe::StripeObject + class Cv < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36315,8 +40914,8 @@ module Stripe @field_remappings = {} end end - class Cy < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Cy < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36340,8 +40939,8 @@ module Stripe @field_remappings = {} end end - class Cz < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Cz < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36365,8 +40964,8 @@ module Stripe @field_remappings = {} end end - class De < Stripe::StripeObject - class Standard < Stripe::StripeObject + class De < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36390,8 +40989,8 @@ module Stripe @field_remappings = {} end end - class Dk < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Dk < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36415,7 +41014,7 @@ module Stripe @field_remappings = {} end end - class Ec < Stripe::StripeObject + class Ec < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36426,8 +41025,8 @@ module Stripe @field_remappings = {} end end - class Ee < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Ee < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36451,7 +41050,7 @@ module Stripe @field_remappings = {} end end - class Eg < Stripe::StripeObject + class Eg < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36462,8 +41061,8 @@ module Stripe @field_remappings = {} end end - class Es < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Es < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36487,7 +41086,7 @@ module Stripe @field_remappings = {} end end - class Et < Stripe::StripeObject + class Et < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36498,8 +41097,8 @@ module Stripe @field_remappings = {} end end - class Fi < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Fi < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36523,8 +41122,8 @@ module Stripe @field_remappings = {} end end - class Fr < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Fr < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36548,8 +41147,8 @@ module Stripe @field_remappings = {} end end - class Gb < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Gb < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36573,7 +41172,7 @@ module Stripe @field_remappings = {} end end - class Ge < Stripe::StripeObject + class Ge < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36584,7 +41183,7 @@ module Stripe @field_remappings = {} end end - class Gn < Stripe::StripeObject + class Gn < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36595,8 +41194,8 @@ module Stripe @field_remappings = {} end end - class Gr < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Gr < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36620,8 +41219,8 @@ module Stripe @field_remappings = {} end end - class Hr < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Hr < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36645,8 +41244,8 @@ module Stripe @field_remappings = {} end end - class Hu < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Hu < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36670,7 +41269,7 @@ module Stripe @field_remappings = {} end end - class Id < Stripe::StripeObject + class Id < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36681,8 +41280,8 @@ module Stripe @field_remappings = {} end end - class Ie < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Ie < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36706,7 +41305,7 @@ module Stripe @field_remappings = {} end end - class In < Stripe::StripeObject + class In < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36717,7 +41316,7 @@ module Stripe @field_remappings = {} end end - class Is < Stripe::StripeObject + class Is < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36728,8 +41327,8 @@ module Stripe @field_remappings = {} end end - class It < Stripe::StripeObject - class Standard < Stripe::StripeObject + class It < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36753,8 +41352,8 @@ module Stripe @field_remappings = {} end end - class Jp < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Jp < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36778,7 +41377,7 @@ module Stripe @field_remappings = {} end end - class Ke < Stripe::StripeObject + class Ke < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36789,7 +41388,7 @@ module Stripe @field_remappings = {} end end - class Kg < Stripe::StripeObject + class Kg < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36800,7 +41399,7 @@ module Stripe @field_remappings = {} end end - class Kh < Stripe::StripeObject + class Kh < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36811,7 +41410,7 @@ module Stripe @field_remappings = {} end end - class Kr < Stripe::StripeObject + class Kr < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36822,7 +41421,7 @@ module Stripe @field_remappings = {} end end - class Kz < Stripe::StripeObject + class Kz < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36833,7 +41432,7 @@ module Stripe @field_remappings = {} end end - class La < Stripe::StripeObject + class La < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36844,8 +41443,8 @@ module Stripe @field_remappings = {} end end - class Lt < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Lt < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36869,8 +41468,8 @@ module Stripe @field_remappings = {} end end - class Lu < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Lu < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36894,8 +41493,8 @@ module Stripe @field_remappings = {} end end - class Lv < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Lv < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36919,7 +41518,7 @@ module Stripe @field_remappings = {} end end - class Ma < Stripe::StripeObject + class Ma < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36930,7 +41529,7 @@ module Stripe @field_remappings = {} end end - class Md < Stripe::StripeObject + class Md < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36941,7 +41540,7 @@ module Stripe @field_remappings = {} end end - class Me < Stripe::StripeObject + class Me < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36952,7 +41551,7 @@ module Stripe @field_remappings = {} end end - class Mk < Stripe::StripeObject + class Mk < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36963,7 +41562,7 @@ module Stripe @field_remappings = {} end end - class Mr < Stripe::StripeObject + class Mr < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -36974,8 +41573,8 @@ module Stripe @field_remappings = {} end end - class Mt < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Mt < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36999,7 +41598,7 @@ module Stripe @field_remappings = {} end end - class Mx < Stripe::StripeObject + class Mx < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37010,7 +41609,7 @@ module Stripe @field_remappings = {} end end - class My < Stripe::StripeObject + class My < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37021,7 +41620,7 @@ module Stripe @field_remappings = {} end end - class Ng < Stripe::StripeObject + class Ng < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37032,8 +41631,8 @@ module Stripe @field_remappings = {} end end - class Nl < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Nl < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -37057,8 +41656,8 @@ module Stripe @field_remappings = {} end end - class No < Stripe::StripeObject - class Standard < Stripe::StripeObject + class No < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -37082,7 +41681,7 @@ module Stripe @field_remappings = {} end end - class Np < Stripe::StripeObject + class Np < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37093,8 +41692,8 @@ module Stripe @field_remappings = {} end end - class Nz < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Nz < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -37118,7 +41717,7 @@ module Stripe @field_remappings = {} end end - class Om < Stripe::StripeObject + class Om < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37129,7 +41728,7 @@ module Stripe @field_remappings = {} end end - class Pe < Stripe::StripeObject + class Pe < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37140,7 +41739,7 @@ module Stripe @field_remappings = {} end end - class Ph < Stripe::StripeObject + class Ph < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37151,8 +41750,8 @@ module Stripe @field_remappings = {} end end - class Pl < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Pl < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -37176,8 +41775,8 @@ module Stripe @field_remappings = {} end end - class Pt < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Pt < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -37201,8 +41800,8 @@ module Stripe @field_remappings = {} end end - class Ro < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Ro < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -37226,7 +41825,7 @@ module Stripe @field_remappings = {} end end - class Rs < Stripe::StripeObject + class Rs < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37237,7 +41836,7 @@ module Stripe @field_remappings = {} end end - class Ru < Stripe::StripeObject + class Ru < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37248,7 +41847,7 @@ module Stripe @field_remappings = {} end end - class Sa < Stripe::StripeObject + class Sa < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37259,8 +41858,8 @@ module Stripe @field_remappings = {} end end - class Se < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Se < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -37284,8 +41883,8 @@ module Stripe @field_remappings = {} end end - class Sg < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Sg < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -37309,8 +41908,8 @@ module Stripe @field_remappings = {} end end - class Si < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Si < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -37334,8 +41933,8 @@ module Stripe @field_remappings = {} end end - class Sk < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Sk < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -37359,7 +41958,7 @@ module Stripe @field_remappings = {} end end - class Sn < Stripe::StripeObject + class Sn < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37370,7 +41969,7 @@ module Stripe @field_remappings = {} end end - class Sr < Stripe::StripeObject + class Sr < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37381,7 +41980,7 @@ module Stripe @field_remappings = {} end end - class Th < Stripe::StripeObject + class Th < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37392,7 +41991,7 @@ module Stripe @field_remappings = {} end end - class Tj < Stripe::StripeObject + class Tj < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37403,7 +42002,7 @@ module Stripe @field_remappings = {} end end - class Tr < Stripe::StripeObject + class Tr < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37414,7 +42013,7 @@ module Stripe @field_remappings = {} end end - class Tz < Stripe::StripeObject + class Tw < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37425,7 +42024,7 @@ module Stripe @field_remappings = {} end end - class Ua < Stripe::StripeObject + class Tz < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37436,7 +42035,7 @@ module Stripe @field_remappings = {} end end - class Ug < Stripe::StripeObject + class Ua < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37447,8 +42046,19 @@ module Stripe @field_remappings = {} end end - class Us < Stripe::StripeObject - class LocalAmusementTax < Stripe::StripeObject + class Ug < ::Stripe::StripeObject + # Type of registration in `country`. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Us < ::Stripe::StripeObject + class LocalAmusementTax < ::Stripe::StripeObject # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. sig { returns(String) } def jurisdiction; end @@ -37459,7 +42069,7 @@ module Stripe @field_remappings = {} end end - class LocalLeaseTax < Stripe::StripeObject + class LocalLeaseTax < ::Stripe::StripeObject # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. sig { returns(String) } def jurisdiction; end @@ -37470,8 +42080,8 @@ module Stripe @field_remappings = {} end end - class StateSalesTax < Stripe::StripeObject - class Election < Stripe::StripeObject + class StateSalesTax < ::Stripe::StripeObject + class Election < ::Stripe::StripeObject # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. sig { returns(T.nilable(String)) } def jurisdiction; end @@ -37521,7 +42131,7 @@ module Stripe @field_remappings = {} end end - class Uy < Stripe::StripeObject + class Uy < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37532,7 +42142,7 @@ module Stripe @field_remappings = {} end end - class Uz < Stripe::StripeObject + class Uz < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37543,7 +42153,7 @@ module Stripe @field_remappings = {} end end - class Vn < Stripe::StripeObject + class Vn < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37554,7 +42164,7 @@ module Stripe @field_remappings = {} end end - class Za < Stripe::StripeObject + class Za < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37565,7 +42175,7 @@ module Stripe @field_remappings = {} end end - class Zm < Stripe::StripeObject + class Zm < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37576,7 +42186,7 @@ module Stripe @field_remappings = {} end end - class Zw < Stripe::StripeObject + class Zw < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -37854,6 +42464,9 @@ module Stripe # Attribute for field tr sig { returns(T.nilable(Tr)) } def tr; end + # Attribute for field tw + sig { returns(T.nilable(Tw)) } + def tw; end # Attribute for field tz sig { returns(T.nilable(Tz)) } def tz; end @@ -37975,6 +42588,7 @@ module Stripe th: Th, tj: Tj, tr: Tr, + tw: Tw, tz: Tz, ua: Ua, ug: Ug, @@ -38020,13 +42634,13 @@ module Stripe def status; end # Creates a new Tax Registration object. sig { - params(params: T.any(::Stripe::Tax::RegistrationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Registration) + params(params: T.any(::Stripe::Tax::RegistrationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Registration) } def self.create(params = {}, opts = {}); end # Returns a list of Tax Registration objects. sig { - params(params: T.any(::Stripe::Tax::RegistrationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Tax::RegistrationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end @@ -38034,7 +42648,7 @@ module Stripe # # A registration cannot be deleted after it has been created. If you wish to end a registration you may do so by setting expires_at. sig { - params(id: String, params: T.any(::Stripe::Tax::RegistrationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Registration) + params(id: String, params: T.any(::Stripe::Tax::RegistrationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Registration) } def self.update(id, params = {}, opts = {}); end end @@ -38047,7 +42661,7 @@ module Stripe # # Related guide: [Using the Settings API](https://stripe.com/docs/tax/settings-api) class Settings < SingletonAPIResource - class Defaults < Stripe::StripeObject + class Defaults < ::Stripe::StripeObject # The tax calculation provider this account uses. Defaults to `stripe` when not using a [third-party provider](/tax/third-party-apps). sig { returns(String) } def provider; end @@ -38064,8 +42678,8 @@ module Stripe @field_remappings = {} end end - class HeadOffice < Stripe::StripeObject - class Address < Stripe::StripeObject + class HeadOffice < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -38101,8 +42715,8 @@ module Stripe @field_remappings = {} end end - class StatusDetails < Stripe::StripeObject - class Active < Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject + class Active < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -38110,7 +42724,7 @@ module Stripe @field_remappings = {} end end - class Pending < Stripe::StripeObject + class Pending < ::Stripe::StripeObject # The list of missing fields that are required to perform calculations. It includes the entry `head_office` when the status is `pending`. It is recommended to set the optional values even if they aren't listed as required for calculating taxes. Calculations can fail if missing fields aren't explicitly provided on every call. sig { returns(T.nilable(T::Array[String])) } def missing_fields; end @@ -38162,8 +42776,8 @@ module Stripe # # Related guide: [Calculate tax in your custom payment flow](https://stripe.com/docs/tax/custom#tax-transaction) class Transaction < APIResource - class CustomerDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class CustomerDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -38189,7 +42803,7 @@ module Stripe @field_remappings = {} end end - class TaxId < Stripe::StripeObject + class TaxId < ::Stripe::StripeObject # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` sig { returns(String) } def type; end @@ -38225,7 +42839,7 @@ module Stripe @field_remappings = {} end end - class Reversal < Stripe::StripeObject + class Reversal < ::Stripe::StripeObject # The `id` of the reversed `Transaction` object. sig { returns(T.nilable(String)) } def original_transaction; end @@ -38236,8 +42850,8 @@ module Stripe @field_remappings = {} end end - class ShipFromDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class ShipFromDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -38273,9 +42887,9 @@ module Stripe @field_remappings = {} end end - class ShippingCost < Stripe::StripeObject - class TaxBreakdown < Stripe::StripeObject - class Jurisdiction < Stripe::StripeObject + class ShippingCost < ::Stripe::StripeObject + class TaxBreakdown < ::Stripe::StripeObject + class Jurisdiction < ::Stripe::StripeObject # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). sig { returns(String) } def country; end @@ -38295,7 +42909,7 @@ module Stripe @field_remappings = {} end end - class TaxRateDetails < Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject # A localized display name for tax type, intended to be human-readable. For example, "Local Sales and Use Tax", "Value-added tax (VAT)", or "Umsatzsteuer (USt.)". sig { returns(String) } def display_name; end @@ -38378,7 +42992,7 @@ module Stripe sig { returns(String) } def id; end # The tax collected or refunded, by line item. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def line_items; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -38412,25 +43026,25 @@ module Stripe def type; end # Creates a Tax Transaction from a calculation, if that calculation hasn't expired. Calculations expire after 90 days. sig { - params(params: T.any(::Stripe::Tax::TransactionCreateFromCalculationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Transaction) + params(params: T.any(::Stripe::Tax::TransactionCreateFromCalculationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Transaction) } def self.create_from_calculation(params = {}, opts = {}); end # Partially or fully reverses a previously created Transaction. sig { - params(params: T.any(::Stripe::Tax::TransactionCreateReversalParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Transaction) + params(params: T.any(::Stripe::Tax::TransactionCreateReversalParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Transaction) } def self.create_reversal(params = {}, opts = {}); end # Retrieves the line items of a committed standalone transaction as a collection. sig { - params(params: T.any(::Stripe::Tax::TransactionListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Tax::TransactionListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list_line_items(params = {}, opts = {}); end # Retrieves the line items of a committed standalone transaction as a collection. sig { - params(transaction: String, params: T.any(::Stripe::Tax::TransactionListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(transaction: String, params: T.any(::Stripe::Tax::TransactionListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list_line_items(transaction, params = {}, opts = {}); end end @@ -38454,7 +43068,7 @@ module Stripe def object; end # A list of [all tax codes available](https://stripe.com/docs/tax/tax-categories) to add to Products in order to allow specific tax calculations. sig { - params(params: T.any(::Stripe::TaxCodeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TaxCodeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -38466,15 +43080,15 @@ module Stripe # # Related guides: [Customer tax identification numbers](https://stripe.com/docs/billing/taxes/tax-ids), [Account tax IDs](https://stripe.com/docs/invoicing/connect#account-tax-ids) class TaxId < APIResource - class Owner < Stripe::StripeObject + class Owner < ::Stripe::StripeObject # The account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # The Connect Application being referenced when `type` is `application`. - sig { returns(T.nilable(T.any(String, Stripe::Application))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Application))) } def application; end # The customer being referenced when `type` is `customer`. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # Type of owner referenced. sig { returns(String) } @@ -38486,7 +43100,7 @@ module Stripe @field_remappings = {} end end - class Verification < Stripe::StripeObject + class Verification < ::Stripe::StripeObject # Verification status, one of `pending`, `verified`, `unverified`, or `unavailable`. sig { returns(String) } def status; end @@ -38510,7 +43124,7 @@ module Stripe sig { returns(Integer) } def created; end # ID of the customer. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # Unique identifier for the object. sig { returns(String) } @@ -38538,25 +43152,25 @@ module Stripe def deleted; end # Creates a new account or customer tax_id object. sig { - params(params: T.any(::Stripe::TaxIdCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxId) + params(params: T.any(::Stripe::TaxIdCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxId) } def self.create(params = {}, opts = {}); end # Deletes an existing account or customer tax_id object. sig { - params(id: String, params: T.any(::Stripe::TaxIdDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxId) + params(id: String, params: T.any(::Stripe::TaxIdDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxId) } def self.delete(id, params = {}, opts = {}); end # Deletes an existing account or customer tax_id object. sig { - params(params: T.any(::Stripe::TaxIdDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxId) + params(params: T.any(::Stripe::TaxIdDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxId) } def delete(params = {}, opts = {}); end # Returns a list of tax IDs. sig { - params(params: T.any(::Stripe::TaxIdListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TaxIdListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -38567,7 +43181,7 @@ module Stripe # # Related guide: [Tax rates](https://docs.stripe.com/billing/taxes/tax-rates) class TaxRate < APIResource - class FlatAmount < Stripe::StripeObject + class FlatAmount < ::Stripe::StripeObject # Amount of the tax when the `rate_type` is `flat_amount`. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). sig { returns(Integer) } def amount; end @@ -38639,19 +43253,19 @@ module Stripe def tax_type; end # Creates a new tax rate. sig { - params(params: T.any(::Stripe::TaxRateCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxRate) + params(params: T.any(::Stripe::TaxRateCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxRate) } def self.create(params = {}, opts = {}); end # Returns a list of your tax rates. Tax rates are returned sorted by creation date, with the most recently created tax rates appearing first. sig { - params(params: T.any(::Stripe::TaxRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TaxRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates an existing tax rate. sig { - params(tax_rate: String, params: T.any(::Stripe::TaxRateUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxRate) + params(tax_rate: String, params: T.any(::Stripe::TaxRateUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxRate) } def self.update(tax_rate, params = {}, opts = {}); end end @@ -38662,9 +43276,9 @@ module Stripe # A Configurations object represents how features should be configured for terminal readers. # For information about how to use it, see the [Terminal configurations documentation](https://docs.stripe.com/terminal/fleet/configurations-overview). class Configuration < APIResource - class BbposWisepad3 < Stripe::StripeObject + class BbposWisepad3 < ::Stripe::StripeObject # A File ID representing an image to display on the reader - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def splashscreen; end def self.inner_class_types @inner_class_types = {} @@ -38673,9 +43287,9 @@ module Stripe @field_remappings = {} end end - class BbposWiseposE < Stripe::StripeObject + class BbposWiseposE < ::Stripe::StripeObject # A File ID representing an image to display on the reader - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def splashscreen; end def self.inner_class_types @inner_class_types = {} @@ -38684,7 +43298,7 @@ module Stripe @field_remappings = {} end end - class Offline < Stripe::StripeObject + class Offline < ::Stripe::StripeObject # Determines whether to allow transactions to be collected while reader is offline. Defaults to false. sig { returns(T.nilable(T::Boolean)) } def enabled; end @@ -38695,7 +43309,7 @@ module Stripe @field_remappings = {} end end - class RebootWindow < Stripe::StripeObject + class RebootWindow < ::Stripe::StripeObject # Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour. sig { returns(Integer) } def end_hour; end @@ -38709,9 +43323,9 @@ module Stripe @field_remappings = {} end end - class StripeS700 < Stripe::StripeObject + class StripeS700 < ::Stripe::StripeObject # A File ID representing an image to display on the reader - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def splashscreen; end def self.inner_class_types @inner_class_types = {} @@ -38720,8 +43334,8 @@ module Stripe @field_remappings = {} end end - class Tipping < Stripe::StripeObject - class Aed < Stripe::StripeObject + class Tipping < ::Stripe::StripeObject + class Aed < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -38738,7 +43352,7 @@ module Stripe @field_remappings = {} end end - class Aud < Stripe::StripeObject + class Aud < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -38755,7 +43369,7 @@ module Stripe @field_remappings = {} end end - class Bgn < Stripe::StripeObject + class Bgn < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -38772,7 +43386,7 @@ module Stripe @field_remappings = {} end end - class Cad < Stripe::StripeObject + class Cad < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -38789,7 +43403,7 @@ module Stripe @field_remappings = {} end end - class Chf < Stripe::StripeObject + class Chf < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -38806,7 +43420,7 @@ module Stripe @field_remappings = {} end end - class Czk < Stripe::StripeObject + class Czk < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -38823,7 +43437,7 @@ module Stripe @field_remappings = {} end end - class Dkk < Stripe::StripeObject + class Dkk < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -38840,7 +43454,7 @@ module Stripe @field_remappings = {} end end - class Eur < Stripe::StripeObject + class Eur < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -38857,7 +43471,7 @@ module Stripe @field_remappings = {} end end - class Gbp < Stripe::StripeObject + class Gbp < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -38874,7 +43488,7 @@ module Stripe @field_remappings = {} end end - class Hkd < Stripe::StripeObject + class Gip < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -38891,7 +43505,7 @@ module Stripe @field_remappings = {} end end - class Huf < Stripe::StripeObject + class Hkd < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -38908,7 +43522,7 @@ module Stripe @field_remappings = {} end end - class Jpy < Stripe::StripeObject + class Huf < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -38925,7 +43539,7 @@ module Stripe @field_remappings = {} end end - class Mxn < Stripe::StripeObject + class Jpy < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -38942,7 +43556,7 @@ module Stripe @field_remappings = {} end end - class Myr < Stripe::StripeObject + class Mxn < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -38959,7 +43573,7 @@ module Stripe @field_remappings = {} end end - class Nok < Stripe::StripeObject + class Myr < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -38976,7 +43590,7 @@ module Stripe @field_remappings = {} end end - class Nzd < Stripe::StripeObject + class Nok < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -38993,7 +43607,7 @@ module Stripe @field_remappings = {} end end - class Pln < Stripe::StripeObject + class Nzd < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -39010,7 +43624,7 @@ module Stripe @field_remappings = {} end end - class Ron < Stripe::StripeObject + class Pln < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -39027,7 +43641,7 @@ module Stripe @field_remappings = {} end end - class Sek < Stripe::StripeObject + class Ron < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -39044,7 +43658,7 @@ module Stripe @field_remappings = {} end end - class Sgd < Stripe::StripeObject + class Sek < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -39061,7 +43675,24 @@ module Stripe @field_remappings = {} end end - class Usd < Stripe::StripeObject + class Sgd < ::Stripe::StripeObject + # Fixed amounts displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def fixed_amounts; end + # Percentages displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def percentages; end + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + sig { returns(T.nilable(Integer)) } + def smart_tip_threshold; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Usd < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -39105,6 +43736,9 @@ module Stripe # Attribute for field gbp sig { returns(T.nilable(Gbp)) } def gbp; end + # Attribute for field gip + sig { returns(T.nilable(Gip)) } + def gip; end # Attribute for field hkd sig { returns(T.nilable(Hkd)) } def hkd; end @@ -39152,6 +43786,7 @@ module Stripe dkk: Dkk, eur: Eur, gbp: Gbp, + gip: Gip, hkd: Hkd, huf: Huf, jpy: Jpy, @@ -39170,9 +43805,9 @@ module Stripe @field_remappings = {} end end - class VerifoneP400 < Stripe::StripeObject + class VerifoneP400 < ::Stripe::StripeObject # A File ID representing an image to display on the reader - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def splashscreen; end def self.inner_class_types @inner_class_types = {} @@ -39181,8 +43816,8 @@ module Stripe @field_remappings = {} end end - class Wifi < Stripe::StripeObject - class EnterpriseEapPeap < Stripe::StripeObject + class Wifi < ::Stripe::StripeObject + class EnterpriseEapPeap < ::Stripe::StripeObject # A File ID representing a PEM file containing the server certificate sig { returns(T.nilable(String)) } def ca_certificate_file; end @@ -39202,7 +43837,7 @@ module Stripe @field_remappings = {} end end - class EnterpriseEapTls < Stripe::StripeObject + class EnterpriseEapTls < ::Stripe::StripeObject # A File ID representing a PEM file containing the server certificate sig { returns(T.nilable(String)) } def ca_certificate_file; end @@ -39225,7 +43860,7 @@ module Stripe @field_remappings = {} end end - class PersonalPsk < Stripe::StripeObject + class PersonalPsk < ::Stripe::StripeObject # Password for connecting to the WiFi network sig { returns(String) } def password; end @@ -39306,31 +43941,31 @@ module Stripe def deleted; end # Creates a new Configuration object. sig { - params(params: T.any(::Stripe::Terminal::ConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Configuration) + params(params: T.any(::Stripe::Terminal::ConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Configuration) } def self.create(params = {}, opts = {}); end # Deletes a Configuration object. sig { - params(configuration: String, params: T.any(::Stripe::Terminal::ConfigurationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Configuration) + params(configuration: String, params: T.any(::Stripe::Terminal::ConfigurationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Configuration) } def self.delete(configuration, params = {}, opts = {}); end # Deletes a Configuration object. sig { - params(params: T.any(::Stripe::Terminal::ConfigurationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Configuration) + params(params: T.any(::Stripe::Terminal::ConfigurationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Configuration) } def delete(params = {}, opts = {}); end # Returns a list of Configuration objects. sig { - params(params: T.any(::Stripe::Terminal::ConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Terminal::ConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates a new Configuration object. sig { - params(configuration: String, params: T.any(::Stripe::Terminal::ConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Configuration) + params(configuration: String, params: T.any(::Stripe::Terminal::ConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Configuration) } def self.update(configuration, params = {}, opts = {}); end end @@ -39354,7 +43989,7 @@ module Stripe def secret; end # To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server. On your backend, add an endpoint that creates and returns a connection token. sig { - params(params: T.any(::Stripe::Terminal::ConnectionTokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::ConnectionToken) + params(params: T.any(::Stripe::Terminal::ConnectionTokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::ConnectionToken) } def self.create(params = {}, opts = {}); end end @@ -39367,7 +44002,7 @@ module Stripe # # Related guide: [Fleet management](https://stripe.com/docs/terminal/fleet/locations) class Location < APIResource - class Address < Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -39393,7 +44028,7 @@ module Stripe @field_remappings = {} end end - class AddressKana < Stripe::StripeObject + class AddressKana < ::Stripe::StripeObject # City/Ward. sig { returns(T.nilable(String)) } def city; end @@ -39422,7 +44057,7 @@ module Stripe @field_remappings = {} end end - class AddressKanji < Stripe::StripeObject + class AddressKanji < ::Stripe::StripeObject # City/Ward. sig { returns(T.nilable(String)) } def city; end @@ -39493,31 +44128,31 @@ module Stripe # Creates a new Location object. # For further details, including which address fields are required in each country, see the [Manage locations](https://docs.stripe.com/docs/terminal/fleet/locations) guide. sig { - params(params: T.any(::Stripe::Terminal::LocationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Location) + params(params: T.any(::Stripe::Terminal::LocationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Location) } def self.create(params = {}, opts = {}); end # Deletes a Location object. sig { - params(location: String, params: T.any(::Stripe::Terminal::LocationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Location) + params(location: String, params: T.any(::Stripe::Terminal::LocationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Location) } def self.delete(location, params = {}, opts = {}); end # Deletes a Location object. sig { - params(params: T.any(::Stripe::Terminal::LocationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Location) + params(params: T.any(::Stripe::Terminal::LocationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Location) } def delete(params = {}, opts = {}); end # Returns a list of Location objects. sig { - params(params: T.any(::Stripe::Terminal::LocationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Terminal::LocationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates a Location object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(location: String, params: T.any(::Stripe::Terminal::LocationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Location) + params(location: String, params: T.any(::Stripe::Terminal::LocationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Location) } def self.update(location, params = {}, opts = {}); end end @@ -39530,10 +44165,10 @@ module Stripe # # Related guide: [Connecting to a reader](https://stripe.com/docs/terminal/payments/connect-reader) class Reader < APIResource - class Action < Stripe::StripeObject - class CollectInputs < Stripe::StripeObject - class Input < Stripe::StripeObject - class CustomText < Stripe::StripeObject + class Action < ::Stripe::StripeObject + class CollectInputs < ::Stripe::StripeObject + class Input < ::Stripe::StripeObject + class CustomText < ::Stripe::StripeObject # Customize the default description for this input sig { returns(T.nilable(String)) } def description; end @@ -39553,7 +44188,7 @@ module Stripe @field_remappings = {} end end - class Email < Stripe::StripeObject + class Email < ::Stripe::StripeObject # The collected email address sig { returns(T.nilable(String)) } def value; end @@ -39564,7 +44199,7 @@ module Stripe @field_remappings = {} end end - class Numeric < Stripe::StripeObject + class Numeric < ::Stripe::StripeObject # The collected number sig { returns(T.nilable(String)) } def value; end @@ -39575,7 +44210,7 @@ module Stripe @field_remappings = {} end end - class Phone < Stripe::StripeObject + class Phone < ::Stripe::StripeObject # The collected phone number sig { returns(T.nilable(String)) } def value; end @@ -39586,15 +44221,15 @@ module Stripe @field_remappings = {} end end - class Selection < Stripe::StripeObject - class Choice < Stripe::StripeObject - # The id to be selected + class Selection < ::Stripe::StripeObject + class Choice < ::Stripe::StripeObject + # The identifier for the selected choice. Maximum 50 characters. sig { returns(T.nilable(String)) } def id; end - # The button style for the choice + # The button style for the choice. Can be `primary` or `secondary`. sig { returns(T.nilable(String)) } def style; end - # The text to be selected + # The text to be selected. Maximum 30 characters. sig { returns(String) } def text; end def self.inner_class_types @@ -39620,7 +44255,7 @@ module Stripe @field_remappings = {} end end - class Signature < Stripe::StripeObject + class Signature < ::Stripe::StripeObject # The File ID of a collected signature image sig { returns(T.nilable(String)) } def value; end @@ -39631,7 +44266,7 @@ module Stripe @field_remappings = {} end end - class Text < Stripe::StripeObject + class Text < ::Stripe::StripeObject # The collected text value sig { returns(T.nilable(String)) } def value; end @@ -39642,17 +44277,17 @@ module Stripe @field_remappings = {} end end - class Toggle < Stripe::StripeObject - # The toggle's default value + class Toggle < ::Stripe::StripeObject + # The toggle's default value. Can be `enabled` or `disabled`. sig { returns(T.nilable(String)) } def default_value; end - # The toggle's description text + # The toggle's description text. Maximum 50 characters. sig { returns(T.nilable(String)) } def description; end - # The toggle's title text + # The toggle's title text. Maximum 50 characters. sig { returns(T.nilable(String)) } def title; end - # The toggle's collected value + # The toggle's collected value. Can be `enabled` or `disabled`. sig { returns(T.nilable(String)) } def value; end def self.inner_class_types @@ -39724,9 +44359,9 @@ module Stripe @field_remappings = {} end end - class CollectPaymentMethod < Stripe::StripeObject - class CollectConfig < Stripe::StripeObject - class Tipping < Stripe::StripeObject + class CollectPaymentMethod < ::Stripe::StripeObject + class CollectConfig < ::Stripe::StripeObject + class Tipping < ::Stripe::StripeObject # Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency). sig { returns(T.nilable(Integer)) } def amount_eligible; end @@ -39757,14 +44392,14 @@ module Stripe sig { returns(T.nilable(CollectConfig)) } def collect_config; end # Most recent PaymentIntent processed by the reader. - sig { returns(T.any(String, Stripe::PaymentIntent)) } + sig { returns(T.any(String, ::Stripe::PaymentIntent)) } def payment_intent; end # PaymentMethod objects represent your customer's payment instruments. # You can use them with [PaymentIntents](https://stripe.com/docs/payments/payment-intents) to collect payments or save them to # Customer objects to store instrument details for future payments. # # Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios). - sig { returns(T.nilable(Stripe::PaymentMethod)) } + sig { returns(T.nilable(::Stripe::PaymentMethod)) } def payment_method; end def self.inner_class_types @inner_class_types = {collect_config: CollectConfig} @@ -39773,8 +44408,8 @@ module Stripe @field_remappings = {} end end - class ConfirmPaymentIntent < Stripe::StripeObject - class ConfirmConfig < Stripe::StripeObject + class ConfirmPaymentIntent < ::Stripe::StripeObject + class ConfirmConfig < ::Stripe::StripeObject # If the customer doesn't abandon authenticating the payment, they're redirected to this URL after completion. sig { returns(T.nilable(String)) } def return_url; end @@ -39789,7 +44424,7 @@ module Stripe sig { returns(T.nilable(ConfirmConfig)) } def confirm_config; end # Most recent PaymentIntent processed by the reader. - sig { returns(T.any(String, Stripe::PaymentIntent)) } + sig { returns(T.any(String, ::Stripe::PaymentIntent)) } def payment_intent; end def self.inner_class_types @inner_class_types = {confirm_config: ConfirmConfig} @@ -39798,9 +44433,9 @@ module Stripe @field_remappings = {} end end - class ProcessPaymentIntent < Stripe::StripeObject - class ProcessConfig < Stripe::StripeObject - class Tipping < Stripe::StripeObject + class ProcessPaymentIntent < ::Stripe::StripeObject + class ProcessConfig < ::Stripe::StripeObject + class Tipping < ::Stripe::StripeObject # Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency). sig { returns(T.nilable(Integer)) } def amount_eligible; end @@ -39831,7 +44466,7 @@ module Stripe end end # Most recent PaymentIntent processed by the reader. - sig { returns(T.any(String, Stripe::PaymentIntent)) } + sig { returns(T.any(String, ::Stripe::PaymentIntent)) } def payment_intent; end # Represents a per-transaction override of a reader configuration sig { returns(T.nilable(ProcessConfig)) } @@ -39843,8 +44478,8 @@ module Stripe @field_remappings = {} end end - class ProcessSetupIntent < Stripe::StripeObject - class ProcessConfig < Stripe::StripeObject + class ProcessSetupIntent < ::Stripe::StripeObject + class ProcessConfig < ::Stripe::StripeObject # Enable customer-initiated cancellation when processing this SetupIntent. sig { returns(T.nilable(T::Boolean)) } def enable_customer_cancellation; end @@ -39862,7 +44497,7 @@ module Stripe sig { returns(T.nilable(ProcessConfig)) } def process_config; end # Most recent SetupIntent processed by the reader. - sig { returns(T.any(String, Stripe::SetupIntent)) } + sig { returns(T.any(String, ::Stripe::SetupIntent)) } def setup_intent; end def self.inner_class_types @inner_class_types = {process_config: ProcessConfig} @@ -39871,8 +44506,8 @@ module Stripe @field_remappings = {} end end - class RefundPayment < Stripe::StripeObject - class RefundPaymentConfig < Stripe::StripeObject + class RefundPayment < ::Stripe::StripeObject + class RefundPaymentConfig < ::Stripe::StripeObject # Enable customer-initiated cancellation when refunding this payment. sig { returns(T.nilable(T::Boolean)) } def enable_customer_cancellation; end @@ -39887,19 +44522,19 @@ module Stripe sig { returns(T.nilable(Integer)) } def amount; end # Charge that is being refunded. - sig { returns(T.nilable(T.any(String, Stripe::Charge))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Charge))) } def charge; end # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. sig { returns(T.nilable(T::Hash[String, String])) } def metadata; end # Payment intent that is being refunded. - sig { returns(T.nilable(T.any(String, Stripe::PaymentIntent))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntent))) } def payment_intent; end # The reason for the refund. sig { returns(T.nilable(String)) } def reason; end # Unique identifier for the refund object. - sig { returns(T.nilable(T.any(String, Stripe::Refund))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Refund))) } def refund; end # Boolean indicating whether the application fee should be refunded when refunding this charge. If a full charge refund is given, the full application fee will be refunded. Otherwise, the application fee will be refunded in an amount proportional to the amount of the charge refunded. An application fee can be refunded only by the application that created the charge. sig { returns(T.nilable(T::Boolean)) } @@ -39917,9 +44552,9 @@ module Stripe @field_remappings = {} end end - class SetReaderDisplay < Stripe::StripeObject - class Cart < Stripe::StripeObject - class LineItem < Stripe::StripeObject + class SetReaderDisplay < ::Stripe::StripeObject + class Cart < ::Stripe::StripeObject + class LineItem < ::Stripe::StripeObject # The amount of the line item. A positive integer in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). sig { returns(Integer) } def amount; end @@ -39955,10 +44590,10 @@ module Stripe @field_remappings = {} end end - # Cart object to be displayed by the reader. + # Cart object to be displayed by the reader, including line items, amounts, and currency. sig { returns(T.nilable(Cart)) } def cart; end - # Type of information to be displayed by the reader. + # Type of information to be displayed by the reader. Only `cart` is currently supported. sig { returns(String) } def type; end def self.inner_class_types @@ -40034,11 +44669,14 @@ module Stripe # Custom label given to the reader for easier identification. sig { returns(String) } def label; end + # The last time this reader reported to Stripe backend. + sig { returns(T.nilable(Integer)) } + def last_seen_at; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } def livemode; end # The location identifier of the reader. - sig { returns(T.nilable(T.any(String, Stripe::Terminal::Location))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Terminal::Location))) } def location; end # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. sig { returns(T::Hash[String, String]) } @@ -40055,129 +44693,129 @@ module Stripe # Always true for a deleted object sig { returns(T.nilable(T::Boolean)) } def deleted; end - # Cancels the current reader action. + # Cancels the current reader action. See [Programmatic Cancellation](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven#programmatic-cancellation) for more details. sig { - params(params: T.any(::Stripe::Terminal::ReaderCancelActionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(params: T.any(::Stripe::Terminal::ReaderCancelActionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def cancel_action(params = {}, opts = {}); end - # Cancels the current reader action. + # Cancels the current reader action. See [Programmatic Cancellation](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven#programmatic-cancellation) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderCancelActionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderCancelActionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.cancel_action(reader, params = {}, opts = {}); end - # Initiates an input collection flow on a Reader. + # Initiates an [input collection flow](https://docs.stripe.com/docs/terminal/features/collect-inputs) on a Reader to display input forms and collect information from your customers. sig { - params(params: T.any(::Stripe::Terminal::ReaderCollectInputsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(params: T.any(::Stripe::Terminal::ReaderCollectInputsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def collect_inputs(params = {}, opts = {}); end - # Initiates an input collection flow on a Reader. + # Initiates an [input collection flow](https://docs.stripe.com/docs/terminal/features/collect-inputs) on a Reader to display input forms and collect information from your customers. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectInputsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectInputsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.collect_inputs(reader, params = {}, opts = {}); end - # Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. + # Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. See [Collecting a Payment method](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#collect-a-paymentmethod) for more details. sig { - params(params: T.any(::Stripe::Terminal::ReaderCollectPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(params: T.any(::Stripe::Terminal::ReaderCollectPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def collect_payment_method(params = {}, opts = {}); end - # Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. + # Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. See [Collecting a Payment method](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#collect-a-paymentmethod) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.collect_payment_method(reader, params = {}, opts = {}); end - # Finalizes a payment on a Reader. + # Finalizes a payment on a Reader. See [Confirming a Payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#confirm-the-paymentintent) for more details. sig { - params(params: T.any(::Stripe::Terminal::ReaderConfirmPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(params: T.any(::Stripe::Terminal::ReaderConfirmPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def confirm_payment_intent(params = {}, opts = {}); end - # Finalizes a payment on a Reader. + # Finalizes a payment on a Reader. See [Confirming a Payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#confirm-the-paymentintent) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderConfirmPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderConfirmPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.confirm_payment_intent(reader, params = {}, opts = {}); end # Creates a new Reader object. sig { - params(params: T.any(::Stripe::Terminal::ReaderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(params: T.any(::Stripe::Terminal::ReaderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.create(params = {}, opts = {}); end # Deletes a Reader object. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.delete(reader, params = {}, opts = {}); end # Deletes a Reader object. sig { - params(params: T.any(::Stripe::Terminal::ReaderDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(params: T.any(::Stripe::Terminal::ReaderDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def delete(params = {}, opts = {}); end # Returns a list of Reader objects. sig { - params(params: T.any(::Stripe::Terminal::ReaderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Terminal::ReaderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end - # Initiates a payment flow on a Reader. + # Initiates a payment flow on a Reader. See [process the payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=immediately#process-payment) for more details. sig { - params(params: T.any(::Stripe::Terminal::ReaderProcessPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(params: T.any(::Stripe::Terminal::ReaderProcessPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def process_payment_intent(params = {}, opts = {}); end - # Initiates a payment flow on a Reader. + # Initiates a payment flow on a Reader. See [process the payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=immediately#process-payment) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.process_payment_intent(reader, params = {}, opts = {}); end - # Initiates a setup intent flow on a Reader. + # Initiates a SetupIntent flow on a Reader. See [Save directly without charging](https://docs.stripe.com/docs/terminal/features/saving-payment-details/save-directly) for more details. sig { - params(params: T.any(::Stripe::Terminal::ReaderProcessSetupIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(params: T.any(::Stripe::Terminal::ReaderProcessSetupIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def process_setup_intent(params = {}, opts = {}); end - # Initiates a setup intent flow on a Reader. + # Initiates a SetupIntent flow on a Reader. See [Save directly without charging](https://docs.stripe.com/docs/terminal/features/saving-payment-details/save-directly) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessSetupIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessSetupIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.process_setup_intent(reader, params = {}, opts = {}); end - # Initiates a refund on a Reader + # Initiates an in-person refund on a Reader. See [Refund an Interac Payment](https://docs.stripe.com/docs/terminal/payments/regional?integration-country=CA#refund-an-interac-payment) for more details. sig { - params(params: T.any(::Stripe::Terminal::ReaderRefundPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(params: T.any(::Stripe::Terminal::ReaderRefundPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def refund_payment(params = {}, opts = {}); end - # Initiates a refund on a Reader + # Initiates an in-person refund on a Reader. See [Refund an Interac Payment](https://docs.stripe.com/docs/terminal/payments/regional?integration-country=CA#refund-an-interac-payment) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderRefundPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderRefundPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.refund_payment(reader, params = {}, opts = {}); end - # Sets reader display to show cart details. + # Sets the reader display to show [cart details](https://docs.stripe.com/docs/terminal/features/display). sig { - params(params: T.any(::Stripe::Terminal::ReaderSetReaderDisplayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(params: T.any(::Stripe::Terminal::ReaderSetReaderDisplayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def set_reader_display(params = {}, opts = {}); end - # Sets reader display to show cart details. + # Sets the reader display to show [cart details](https://docs.stripe.com/docs/terminal/features/display). sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderSetReaderDisplayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderSetReaderDisplayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.set_reader_display(reader, params = {}, opts = {}); end # Updates a Reader object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.update(reader, params = {}, opts = {}); end end @@ -40190,8 +44828,8 @@ module Stripe # objects at a frozen time in the past or future, and advance to a specific future time to observe webhooks and state changes. After the clock advances, # you can either validate the current state of your scenario (and test your assumptions), change the current state of your scenario (and test more complex scenarios), or keep advancing forward in time. class TestClock < APIResource - class StatusDetails < Stripe::StripeObject - class Advancing < Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject + class Advancing < ::Stripe::StripeObject # The `frozen_time` that the Test Clock is advancing towards. sig { returns(Integer) } def target_frozen_time; end @@ -40244,37 +44882,37 @@ module Stripe def deleted; end # Starts advancing a test clock to a specified time in the future. Advancement is done when status changes to Ready. sig { - params(params: T.any(::Stripe::TestHelpers::TestClockAdvanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TestHelpers::TestClock) + params(params: T.any(::Stripe::TestHelpers::TestClockAdvanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TestHelpers::TestClock) } def advance(params = {}, opts = {}); end # Starts advancing a test clock to a specified time in the future. Advancement is done when status changes to Ready. sig { - params(test_clock: String, params: T.any(::Stripe::TestHelpers::TestClockAdvanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TestHelpers::TestClock) + params(test_clock: String, params: T.any(::Stripe::TestHelpers::TestClockAdvanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TestHelpers::TestClock) } def self.advance(test_clock, params = {}, opts = {}); end # Creates a new test clock that can be attached to new customers and quotes. sig { - params(params: T.any(::Stripe::TestHelpers::TestClockCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TestHelpers::TestClock) + params(params: T.any(::Stripe::TestHelpers::TestClockCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TestHelpers::TestClock) } def self.create(params = {}, opts = {}); end # Deletes a test clock. sig { - params(test_clock: String, params: T.any(::Stripe::TestHelpers::TestClockDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TestHelpers::TestClock) + params(test_clock: String, params: T.any(::Stripe::TestHelpers::TestClockDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TestHelpers::TestClock) } def self.delete(test_clock, params = {}, opts = {}); end # Deletes a test clock. sig { - params(params: T.any(::Stripe::TestHelpers::TestClockDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TestHelpers::TestClock) + params(params: T.any(::Stripe::TestHelpers::TestClockDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TestHelpers::TestClock) } def delete(params = {}, opts = {}); end # Returns a list of your test clocks. sig { - params(params: T.any(::Stripe::TestHelpers::TestClockListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TestHelpers::TestClockListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -40310,14 +44948,14 @@ module Stripe # They can be bank accounts or debit cards as well, and are documented in the links above. # # Related guide: [Bank debits and transfers](/payments/bank-debits-transfers) - sig { returns(T.nilable(Stripe::BankAccount)) } + sig { returns(T.nilable(::Stripe::BankAccount)) } def bank_account; end # You can store multiple cards on a customer in order to charge the customer # later. You can also store multiple debit cards on a recipient in order to # transfer to those cards later. # # Related guide: [Card payments with Sources](https://stripe.com/docs/sources/cards) - sig { returns(T.nilable(Stripe::Card)) } + sig { returns(T.nilable(::Stripe::Card)) } def card; end # IP address of the client that generates the token. sig { returns(T.nilable(String)) } @@ -40343,7 +44981,7 @@ module Stripe # Creates a single-use token that represents a bank account's details. # You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://docs.stripe.com/api#accounts) where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts. sig { - params(params: T.any(::Stripe::TokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Token) + params(params: T.any(::Stripe::TokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Token) } def self.create(params = {}, opts = {}); end end @@ -40360,7 +44998,7 @@ module Stripe sig { returns(Integer) } def amount; end # ID of the balance transaction that describes the impact of this top-up on your account balance. May not be specified depending on status of top-up. - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def balance_transaction; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -40393,7 +45031,7 @@ module Stripe sig { returns(String) } def object; end # The source field is deprecated. It might not always be present in the API response. - sig { returns(T.nilable(Stripe::Source)) } + sig { returns(T.nilable(::Stripe::Source)) } def source; end # Extra information about a top-up. This will appear on your source's bank statement. It must contain at least one letter. sig { returns(T.nilable(String)) } @@ -40406,31 +45044,31 @@ module Stripe def transfer_group; end # Cancels a top-up. Only pending top-ups can be canceled. sig { - params(params: T.any(::Stripe::TopupCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Topup) + params(params: T.any(::Stripe::TopupCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Topup) } def cancel(params = {}, opts = {}); end # Cancels a top-up. Only pending top-ups can be canceled. sig { - params(topup: String, params: T.any(::Stripe::TopupCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Topup) + params(topup: String, params: T.any(::Stripe::TopupCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Topup) } def self.cancel(topup, params = {}, opts = {}); end # Top up the balance of an account sig { - params(params: T.any(::Stripe::TopupCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Topup) + params(params: T.any(::Stripe::TopupCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Topup) } def self.create(params = {}, opts = {}); end # Returns a list of top-ups. sig { - params(params: T.any(::Stripe::TopupListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TopupListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the metadata of a top-up. Other top-up details are not editable by design. sig { - params(topup: String, params: T.any(::Stripe::TopupUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Topup) + params(topup: String, params: T.any(::Stripe::TopupUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Topup) } def self.update(topup, params = {}, opts = {}); end end @@ -40455,7 +45093,7 @@ module Stripe sig { returns(Integer) } def amount_reversed; end # Balance transaction that describes the impact of this transfer on your account balance. - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def balance_transaction; end # Time that this record of the transfer was first created. sig { returns(Integer) } @@ -40467,10 +45105,10 @@ module Stripe sig { returns(T.nilable(String)) } def description; end # ID of the Stripe account the transfer was sent to. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def destination; end # If the destination is a Stripe account, this will be the ID of the payment that the destination account received for the transfer. - sig { returns(T.nilable(T.any(String, Stripe::Charge))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Charge))) } def destination_payment; end # Unique identifier for the object. sig { returns(String) } @@ -40485,13 +45123,13 @@ module Stripe sig { returns(String) } def object; end # A list of reversals that have been applied to the transfer. - sig { returns(Stripe::ListObject) } + sig { returns(::Stripe::ListObject) } def reversals; end # Whether the transfer has been fully reversed. If the transfer is only partially reversed, this attribute will still be false. sig { returns(T::Boolean) } def reversed; end # ID of the charge that was used to fund the transfer. If null, the transfer was funded from the available balance. - sig { returns(T.nilable(T.any(String, Stripe::Charge))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Charge))) } def source_transaction; end # The source balance this transfer came from. One of `card`, `fpx`, or `bank_account`. sig { returns(T.nilable(String)) } @@ -40501,13 +45139,13 @@ module Stripe def transfer_group; end # To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://docs.stripe.com/api#balance) must be able to cover the transfer amount, or you'll receive an “Insufficient Funds” error. sig { - params(params: T.any(::Stripe::TransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Transfer) + params(params: T.any(::Stripe::TransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Transfer) } def self.create(params = {}, opts = {}); end # Returns a list of existing transfers sent to connected accounts. The transfers are returned in sorted order, with the most recently created transfers appearing first. sig { - params(params: T.any(::Stripe::TransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end @@ -40515,7 +45153,7 @@ module Stripe # # This request accepts only metadata as an argument. sig { - params(transfer: String, params: T.any(::Stripe::TransferUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Transfer) + params(transfer: String, params: T.any(::Stripe::TransferUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Transfer) } def self.update(transfer, params = {}, opts = {}); end end @@ -40540,7 +45178,7 @@ module Stripe sig { returns(Integer) } def amount; end # Balance transaction that describes the impact on your account balance. - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def balance_transaction; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -40549,7 +45187,7 @@ module Stripe sig { returns(String) } def currency; end # Linked payment refund for the transfer reversal. - sig { returns(T.nilable(T.any(String, Stripe::Refund))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Refund))) } def destination_payment_refund; end # Unique identifier for the object. sig { returns(String) } @@ -40561,10 +45199,10 @@ module Stripe sig { returns(String) } def object; end # ID of the refund responsible for the transfer reversal. - sig { returns(T.nilable(T.any(String, Stripe::Refund))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Refund))) } def source_refund; end # ID of the transfer that was reversed. - sig { returns(T.any(String, Stripe::Transfer)) } + sig { returns(T.any(String, ::Stripe::Transfer)) } def transfer; end end end @@ -40573,7 +45211,7 @@ module Stripe module Treasury # You can reverse some [ReceivedCredits](https://stripe.com/docs/api#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. class CreditReversal < APIResource - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # Timestamp describing when the CreditReversal changed status to `posted` sig { returns(T.nilable(Integer)) } def posted_at; end @@ -40624,17 +45262,17 @@ module Stripe sig { returns(StatusTransitions) } def status_transitions; end # The Transaction associated with this object. - sig { returns(T.nilable(T.any(String, Stripe::Treasury::Transaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Treasury::Transaction))) } def transaction; end # Reverses a ReceivedCredit and creates a CreditReversal object. sig { - params(params: T.any(::Stripe::Treasury::CreditReversalCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::CreditReversal) + params(params: T.any(::Stripe::Treasury::CreditReversalCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::CreditReversal) } def self.create(params = {}, opts = {}); end # Returns a list of CreditReversals. sig { - params(params: T.any(::Stripe::Treasury::CreditReversalListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::CreditReversalListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -40645,7 +45283,7 @@ module Stripe module Treasury # You can reverse some [ReceivedDebits](https://stripe.com/docs/api#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal. class DebitReversal < APIResource - class LinkedFlows < Stripe::StripeObject + class LinkedFlows < ::Stripe::StripeObject # Set if there is an Issuing dispute associated with the DebitReversal. sig { returns(T.nilable(String)) } def issuing_dispute; end @@ -40656,7 +45294,7 @@ module Stripe @field_remappings = {} end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # Timestamp describing when the DebitReversal changed status to `completed`. sig { returns(T.nilable(Integer)) } def completed_at; end @@ -40710,17 +45348,17 @@ module Stripe sig { returns(StatusTransitions) } def status_transitions; end # The Transaction associated with this object. - sig { returns(T.nilable(T.any(String, Stripe::Treasury::Transaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Treasury::Transaction))) } def transaction; end # Reverses a ReceivedDebit and creates a DebitReversal object. sig { - params(params: T.any(::Stripe::Treasury::DebitReversalCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::DebitReversal) + params(params: T.any(::Stripe::Treasury::DebitReversalCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::DebitReversal) } def self.create(params = {}, opts = {}); end # Returns a list of DebitReversals. sig { - params(params: T.any(::Stripe::Treasury::DebitReversalListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::DebitReversalListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -40732,7 +45370,7 @@ module Stripe # Stripe Treasury provides users with a container for money called a FinancialAccount that is separate from their Payments balance. # FinancialAccounts serve as the source and destination of Treasury's money movement APIs. class FinancialAccount < APIResource - class Balance < Stripe::StripeObject + class Balance < ::Stripe::StripeObject # Funds the user can spend right now. sig { returns(T::Hash[String, Integer]) } def cash; end @@ -40749,8 +45387,8 @@ module Stripe @field_remappings = {} end end - class FinancialAddress < Stripe::StripeObject - class Aba < Stripe::StripeObject + class FinancialAddress < ::Stripe::StripeObject + class Aba < ::Stripe::StripeObject # The name of the person or business that owns the bank account. sig { returns(String) } def account_holder_name; end @@ -40789,7 +45427,7 @@ module Stripe @field_remappings = {} end end - class PlatformRestrictions < Stripe::StripeObject + class PlatformRestrictions < ::Stripe::StripeObject # Restricts all inbound money movement. sig { returns(T.nilable(String)) } def inbound_flows; end @@ -40803,8 +45441,8 @@ module Stripe @field_remappings = {} end end - class StatusDetails < Stripe::StripeObject - class Closed < Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject + class Closed < ::Stripe::StripeObject # The array that contains reasons for a FinancialAccount closure. sig { returns(T::Array[String]) } def reasons; end @@ -40839,7 +45477,7 @@ module Stripe def created; end # Encodes whether a FinancialAccount has access to a particular Feature, with a `status` enum and associated `status_details`. # Stripe or the platform can control Features via the requested field. - sig { returns(T.nilable(Stripe::Treasury::FinancialAccountFeatures)) } + sig { returns(T.nilable(::Stripe::Treasury::FinancialAccountFeatures)) } def features; end # The set of credentials that resolve to a FinancialAccount. sig { returns(T::Array[FinancialAddress]) } @@ -40882,55 +45520,55 @@ module Stripe def supported_currencies; end # Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero balance, has no pending InboundTransfers, and has canceled all attached Issuing cards. sig { - params(params: T.any(::Stripe::Treasury::FinancialAccountCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccount) + params(params: T.any(::Stripe::Treasury::FinancialAccountCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccount) } def close(params = {}, opts = {}); end # Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero balance, has no pending InboundTransfers, and has canceled all attached Issuing cards. sig { - params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccount) + params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccount) } def self.close(financial_account, params = {}, opts = {}); end # Creates a new FinancialAccount. Each connected account can have up to three FinancialAccounts by default. sig { - params(params: T.any(::Stripe::Treasury::FinancialAccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccount) + params(params: T.any(::Stripe::Treasury::FinancialAccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccount) } def self.create(params = {}, opts = {}); end # Returns a list of FinancialAccounts. sig { - params(params: T.any(::Stripe::Treasury::FinancialAccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::FinancialAccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Retrieves Features information associated with the FinancialAccount. sig { - params(params: T.any(::Stripe::Treasury::FinancialAccountRetrieveFeaturesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccountFeatures) + params(params: T.any(::Stripe::Treasury::FinancialAccountRetrieveFeaturesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccountFeatures) } def retrieve_features(params = {}, opts = {}); end # Retrieves Features information associated with the FinancialAccount. sig { - params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountRetrieveFeaturesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccountFeatures) + params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountRetrieveFeaturesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccountFeatures) } def self.retrieve_features(financial_account, params = {}, opts = {}); end # Updates the details of a FinancialAccount. sig { - params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccount) + params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccount) } def self.update(financial_account, params = {}, opts = {}); end # Updates the Features associated with a FinancialAccount. sig { - params(params: T.any(::Stripe::Treasury::FinancialAccountUpdateFeaturesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccountFeatures) + params(params: T.any(::Stripe::Treasury::FinancialAccountUpdateFeaturesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccountFeatures) } def update_features(params = {}, opts = {}); end # Updates the Features associated with a FinancialAccount. sig { - params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountUpdateFeaturesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccountFeatures) + params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountUpdateFeaturesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccountFeatures) } def self.update_features(financial_account, params = {}, opts = {}); end end @@ -40943,7 +45581,7 @@ module Stripe # # Related guide: [Moving money with Treasury using InboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) class InboundTransfer < APIResource - class FailureDetails < Stripe::StripeObject + class FailureDetails < ::Stripe::StripeObject # Reason for the failure. sig { returns(String) } def code; end @@ -40954,7 +45592,7 @@ module Stripe @field_remappings = {} end end - class LinkedFlows < Stripe::StripeObject + class LinkedFlows < ::Stripe::StripeObject # If funds for this flow were returned after the flow went to the `succeeded` state, this field contains a reference to the ReceivedDebit return. sig { returns(T.nilable(String)) } def received_debit; end @@ -40965,9 +45603,9 @@ module Stripe @field_remappings = {} end end - class OriginPaymentMethodDetails < Stripe::StripeObject - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class OriginPaymentMethodDetails < ::Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -41009,7 +45647,7 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -41026,7 +45664,7 @@ module Stripe sig { returns(T.nilable(String)) } def last4; end # ID of the mandate used to make this payment. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def mandate; end # The network rails used. See the [docs](https://stripe.com/docs/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. sig { returns(String) } @@ -41057,7 +45695,7 @@ module Stripe @field_remappings = {} end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # Timestamp describing when an InboundTransfer changed status to `canceled`. sig { returns(T.nilable(Integer)) } def canceled_at; end @@ -41132,29 +45770,29 @@ module Stripe sig { returns(StatusTransitions) } def status_transitions; end # The Transaction associated with this object. - sig { returns(T.nilable(T.any(String, Stripe::Treasury::Transaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Treasury::Transaction))) } def transaction; end # Cancels an InboundTransfer. sig { - params(params: T.any(::Stripe::Treasury::InboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::InboundTransfer) + params(params: T.any(::Stripe::Treasury::InboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::InboundTransfer) } def cancel(params = {}, opts = {}); end # Cancels an InboundTransfer. sig { - params(inbound_transfer: String, params: T.any(::Stripe::Treasury::InboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::InboundTransfer) + params(inbound_transfer: String, params: T.any(::Stripe::Treasury::InboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::InboundTransfer) } def self.cancel(inbound_transfer, params = {}, opts = {}); end # Creates an InboundTransfer. sig { - params(params: T.any(::Stripe::Treasury::InboundTransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::InboundTransfer) + params(params: T.any(::Stripe::Treasury::InboundTransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::InboundTransfer) } def self.create(params = {}, opts = {}); end # Returns a list of InboundTransfers sent from the specified FinancialAccount. sig { - params(params: T.any(::Stripe::Treasury::InboundTransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::InboundTransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -41169,9 +45807,9 @@ module Stripe # # Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) class OutboundPayment < APIResource - class DestinationPaymentMethodDetails < Stripe::StripeObject - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class DestinationPaymentMethodDetails < ::Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -41213,7 +45851,7 @@ module Stripe @field_remappings = {} end end - class FinancialAccount < Stripe::StripeObject + class FinancialAccount < ::Stripe::StripeObject # Token of the FinancialAccount. sig { returns(String) } def id; end @@ -41227,7 +45865,7 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -41244,7 +45882,7 @@ module Stripe sig { returns(T.nilable(String)) } def last4; end # ID of the mandate used to make this payment. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def mandate; end # The network rails used. See the [docs](https://stripe.com/docs/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. sig { returns(String) } @@ -41282,7 +45920,7 @@ module Stripe @field_remappings = {} end end - class EndUserDetails < Stripe::StripeObject + class EndUserDetails < ::Stripe::StripeObject # IP address of the user initiating the OutboundPayment. Set if `present` is set to `true`. IP address collection is required for risk and compliance reasons. This will be used to help determine if the OutboundPayment is authorized or should be blocked. sig { returns(T.nilable(String)) } def ip_address; end @@ -41296,12 +45934,12 @@ module Stripe @field_remappings = {} end end - class ReturnedDetails < Stripe::StripeObject + class ReturnedDetails < ::Stripe::StripeObject # Reason for the return. sig { returns(String) } def code; end # The Transaction associated with this object. - sig { returns(T.any(String, Stripe::Treasury::Transaction)) } + sig { returns(T.any(String, ::Stripe::Treasury::Transaction)) } def transaction; end def self.inner_class_types @inner_class_types = {} @@ -41310,7 +45948,7 @@ module Stripe @field_remappings = {} end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # Timestamp describing when an OutboundPayment changed status to `canceled`. sig { returns(T.nilable(Integer)) } def canceled_at; end @@ -41330,8 +45968,8 @@ module Stripe @field_remappings = {} end end - class TrackingDetails < Stripe::StripeObject - class Ach < Stripe::StripeObject + class TrackingDetails < ::Stripe::StripeObject + class Ach < ::Stripe::StripeObject # ACH trace ID of the OutboundPayment for payments sent over the `ach` network. sig { returns(String) } def trace_id; end @@ -41342,7 +45980,7 @@ module Stripe @field_remappings = {} end end - class UsDomesticWire < Stripe::StripeObject + class UsDomesticWire < ::Stripe::StripeObject # CHIPS System Sequence Number (SSN) of the OutboundPayment for payments sent over the `us_domestic_wire` network. sig { returns(T.nilable(String)) } def chips; end @@ -41439,29 +46077,29 @@ module Stripe sig { returns(T.nilable(TrackingDetails)) } def tracking_details; end # The Transaction associated with this object. - sig { returns(T.any(String, Stripe::Treasury::Transaction)) } + sig { returns(T.any(String, ::Stripe::Treasury::Transaction)) } def transaction; end # Cancel an OutboundPayment. sig { - params(params: T.any(::Stripe::Treasury::OutboundPaymentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundPayment) + params(params: T.any(::Stripe::Treasury::OutboundPaymentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundPayment) } def cancel(params = {}, opts = {}); end # Cancel an OutboundPayment. sig { - params(id: String, params: T.any(::Stripe::Treasury::OutboundPaymentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundPayment) + params(id: String, params: T.any(::Stripe::Treasury::OutboundPaymentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundPayment) } def self.cancel(id, params = {}, opts = {}); end # Creates an OutboundPayment. sig { - params(params: T.any(::Stripe::Treasury::OutboundPaymentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundPayment) + params(params: T.any(::Stripe::Treasury::OutboundPaymentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundPayment) } def self.create(params = {}, opts = {}); end # Returns a list of OutboundPayments sent from the specified FinancialAccount. sig { - params(params: T.any(::Stripe::Treasury::OutboundPaymentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::OutboundPaymentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -41476,9 +46114,9 @@ module Stripe # # Related guide: [Moving money with Treasury using OutboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) class OutboundTransfer < APIResource - class DestinationPaymentMethodDetails < Stripe::StripeObject - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class DestinationPaymentMethodDetails < ::Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -41520,7 +46158,7 @@ module Stripe @field_remappings = {} end end - class FinancialAccount < Stripe::StripeObject + class FinancialAccount < ::Stripe::StripeObject # Token of the FinancialAccount. sig { returns(String) } def id; end @@ -41534,7 +46172,7 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -41551,7 +46189,7 @@ module Stripe sig { returns(T.nilable(String)) } def last4; end # ID of the mandate used to make this payment. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def mandate; end # The network rails used. See the [docs](https://stripe.com/docs/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. sig { returns(String) } @@ -41589,12 +46227,12 @@ module Stripe @field_remappings = {} end end - class ReturnedDetails < Stripe::StripeObject + class ReturnedDetails < ::Stripe::StripeObject # Reason for the return. sig { returns(String) } def code; end # The Transaction associated with this object. - sig { returns(T.any(String, Stripe::Treasury::Transaction)) } + sig { returns(T.any(String, ::Stripe::Treasury::Transaction)) } def transaction; end def self.inner_class_types @inner_class_types = {} @@ -41603,7 +46241,7 @@ module Stripe @field_remappings = {} end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # Timestamp describing when an OutboundTransfer changed status to `canceled` sig { returns(T.nilable(Integer)) } def canceled_at; end @@ -41623,8 +46261,8 @@ module Stripe @field_remappings = {} end end - class TrackingDetails < Stripe::StripeObject - class Ach < Stripe::StripeObject + class TrackingDetails < ::Stripe::StripeObject + class Ach < ::Stripe::StripeObject # ACH trace ID of the OutboundTransfer for transfers sent over the `ach` network. sig { returns(String) } def trace_id; end @@ -41635,7 +46273,7 @@ module Stripe @field_remappings = {} end end - class UsDomesticWire < Stripe::StripeObject + class UsDomesticWire < ::Stripe::StripeObject # CHIPS System Sequence Number (SSN) of the OutboundTransfer for transfers sent over the `us_domestic_wire` network. sig { returns(T.nilable(String)) } def chips; end @@ -41726,29 +46364,29 @@ module Stripe sig { returns(T.nilable(TrackingDetails)) } def tracking_details; end # The Transaction associated with this object. - sig { returns(T.any(String, Stripe::Treasury::Transaction)) } + sig { returns(T.any(String, ::Stripe::Treasury::Transaction)) } def transaction; end # An OutboundTransfer can be canceled if the funds have not yet been paid out. sig { - params(params: T.any(::Stripe::Treasury::OutboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundTransfer) + params(params: T.any(::Stripe::Treasury::OutboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundTransfer) } def cancel(params = {}, opts = {}); end # An OutboundTransfer can be canceled if the funds have not yet been paid out. sig { - params(outbound_transfer: String, params: T.any(::Stripe::Treasury::OutboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundTransfer) + params(outbound_transfer: String, params: T.any(::Stripe::Treasury::OutboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundTransfer) } def self.cancel(outbound_transfer, params = {}, opts = {}); end # Creates an OutboundTransfer. sig { - params(params: T.any(::Stripe::Treasury::OutboundTransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundTransfer) + params(params: T.any(::Stripe::Treasury::OutboundTransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundTransfer) } def self.create(params = {}, opts = {}); end # Returns a list of OutboundTransfers sent from the specified FinancialAccount. sig { - params(params: T.any(::Stripe::Treasury::OutboundTransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::OutboundTransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -41759,9 +46397,9 @@ module Stripe module Treasury # ReceivedCredits represent funds sent to a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) (for example, via ACH or wire). These money movements are not initiated from the FinancialAccount. class ReceivedCredit < APIResource - class InitiatingPaymentMethodDetails < Stripe::StripeObject - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class InitiatingPaymentMethodDetails < ::Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -41803,7 +46441,7 @@ module Stripe @field_remappings = {} end end - class FinancialAccount < Stripe::StripeObject + class FinancialAccount < ::Stripe::StripeObject # The FinancialAccount ID. sig { returns(String) } def id; end @@ -41817,7 +46455,7 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject # Bank name. sig { returns(T.nilable(String)) } def bank_name; end @@ -41863,24 +46501,24 @@ module Stripe @field_remappings = {} end end - class LinkedFlows < Stripe::StripeObject - class SourceFlowDetails < Stripe::StripeObject + class LinkedFlows < ::Stripe::StripeObject + class SourceFlowDetails < ::Stripe::StripeObject # You can reverse some [ReceivedCredits](https://stripe.com/docs/api#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. - sig { returns(T.nilable(Stripe::Treasury::CreditReversal)) } + sig { returns(T.nilable(::Stripe::Treasury::CreditReversal)) } def credit_reversal; end # Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers). # # Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects. # # Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) - sig { returns(T.nilable(Stripe::Treasury::OutboundPayment)) } + sig { returns(T.nilable(::Stripe::Treasury::OutboundPayment)) } def outbound_payment; end # Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account. # # Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects. # # Related guide: [Moving money with Treasury using OutboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) - sig { returns(T.nilable(Stripe::Treasury::OutboundTransfer)) } + sig { returns(T.nilable(::Stripe::Treasury::OutboundTransfer)) } def outbound_transfer; end # A `Payout` object is created when you receive funds from Stripe, or when you # initiate a payout to either a bank account or debit card of a [connected @@ -41890,7 +46528,7 @@ module Stripe # industry. # # Related guide: [Receiving payouts](https://stripe.com/docs/payouts) - sig { returns(T.nilable(Stripe::Payout)) } + sig { returns(T.nilable(::Stripe::Payout)) } def payout; end # The type of the source flow that originated the ReceivedCredit. sig { returns(String) } @@ -41927,7 +46565,7 @@ module Stripe @field_remappings = {} end end - class ReversalDetails < Stripe::StripeObject + class ReversalDetails < ::Stripe::StripeObject # Time before which a ReceivedCredit can be reversed. sig { returns(T.nilable(Integer)) } def deadline; end @@ -41987,11 +46625,11 @@ module Stripe sig { returns(String) } def status; end # The Transaction associated with this object. - sig { returns(T.nilable(T.any(String, Stripe::Treasury::Transaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Treasury::Transaction))) } def transaction; end # Returns a list of ReceivedCredits. sig { - params(params: T.any(::Stripe::Treasury::ReceivedCreditListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::ReceivedCreditListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -42002,9 +46640,9 @@ module Stripe module Treasury # ReceivedDebits represent funds pulled from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts). These are not initiated from the FinancialAccount. class ReceivedDebit < APIResource - class InitiatingPaymentMethodDetails < Stripe::StripeObject - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class InitiatingPaymentMethodDetails < ::Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -42046,7 +46684,7 @@ module Stripe @field_remappings = {} end end - class FinancialAccount < Stripe::StripeObject + class FinancialAccount < ::Stripe::StripeObject # The FinancialAccount ID. sig { returns(String) } def id; end @@ -42060,7 +46698,7 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject # Bank name. sig { returns(T.nilable(String)) } def bank_name; end @@ -42106,7 +46744,7 @@ module Stripe @field_remappings = {} end end - class LinkedFlows < Stripe::StripeObject + class LinkedFlows < ::Stripe::StripeObject # The DebitReversal created as a result of this ReceivedDebit being reversed. sig { returns(T.nilable(String)) } def debit_reversal; end @@ -42129,7 +46767,7 @@ module Stripe @field_remappings = {} end end - class ReversalDetails < Stripe::StripeObject + class ReversalDetails < ::Stripe::StripeObject # Time before which a ReceivedDebit can be reversed. sig { returns(T.nilable(Integer)) } def deadline; end @@ -42189,11 +46827,11 @@ module Stripe sig { returns(String) } def status; end # The Transaction associated with this object. - sig { returns(T.nilable(T.any(String, Stripe::Treasury::Transaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Treasury::Transaction))) } def transaction; end # Returns a list of ReceivedDebits. sig { - params(params: T.any(::Stripe::Treasury::ReceivedDebitListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::ReceivedDebitListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -42204,7 +46842,7 @@ module Stripe module Treasury # TransactionEntries represent individual units of money movements within a single [Transaction](https://stripe.com/docs/api#transactions). class TransactionEntry < APIResource - class BalanceImpact < Stripe::StripeObject + class BalanceImpact < ::Stripe::StripeObject # The change made to funds the user can spend right now. sig { returns(Integer) } def cash; end @@ -42221,44 +46859,44 @@ module Stripe @field_remappings = {} end end - class FlowDetails < Stripe::StripeObject + class FlowDetails < ::Stripe::StripeObject # You can reverse some [ReceivedCredits](https://stripe.com/docs/api#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. - sig { returns(T.nilable(Stripe::Treasury::CreditReversal)) } + sig { returns(T.nilable(::Stripe::Treasury::CreditReversal)) } def credit_reversal; end # You can reverse some [ReceivedDebits](https://stripe.com/docs/api#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal. - sig { returns(T.nilable(Stripe::Treasury::DebitReversal)) } + sig { returns(T.nilable(::Stripe::Treasury::DebitReversal)) } def debit_reversal; end # Use [InboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit. # # Related guide: [Moving money with Treasury using InboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) - sig { returns(T.nilable(Stripe::Treasury::InboundTransfer)) } + sig { returns(T.nilable(::Stripe::Treasury::InboundTransfer)) } def inbound_transfer; end # When an [issued card](https://stripe.com/docs/issuing) is used to make a purchase, an Issuing `Authorization` # object is created. [Authorizations](https://stripe.com/docs/issuing/purchases/authorizations) must be approved for the # purchase to be completed successfully. # # Related guide: [Issued card authorizations](https://stripe.com/docs/issuing/purchases/authorizations) - sig { returns(T.nilable(Stripe::Issuing::Authorization)) } + sig { returns(T.nilable(::Stripe::Issuing::Authorization)) } def issuing_authorization; end # Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers). # # Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects. # # Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) - sig { returns(T.nilable(Stripe::Treasury::OutboundPayment)) } + sig { returns(T.nilable(::Stripe::Treasury::OutboundPayment)) } def outbound_payment; end # Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account. # # Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects. # # Related guide: [Moving money with Treasury using OutboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) - sig { returns(T.nilable(Stripe::Treasury::OutboundTransfer)) } + sig { returns(T.nilable(::Stripe::Treasury::OutboundTransfer)) } def outbound_transfer; end # ReceivedCredits represent funds sent to a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) (for example, via ACH or wire). These money movements are not initiated from the FinancialAccount. - sig { returns(T.nilable(Stripe::Treasury::ReceivedCredit)) } + sig { returns(T.nilable(::Stripe::Treasury::ReceivedCredit)) } def received_credit; end # ReceivedDebits represent funds pulled from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts). These are not initiated from the FinancialAccount. - sig { returns(T.nilable(Stripe::Treasury::ReceivedDebit)) } + sig { returns(T.nilable(::Stripe::Treasury::ReceivedDebit)) } def received_debit; end # Type of the flow that created the Transaction. Set to the same value as `flow_type`. sig { returns(String) } @@ -42304,14 +46942,14 @@ module Stripe sig { returns(String) } def object; end # The Transaction associated with this object. - sig { returns(T.any(String, Stripe::Treasury::Transaction)) } + sig { returns(T.any(String, ::Stripe::Treasury::Transaction)) } def transaction; end # The specific money movement that generated the TransactionEntry. sig { returns(String) } def type; end # Retrieves a list of TransactionEntry objects. sig { - params(params: T.any(::Stripe::Treasury::TransactionEntryListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::TransactionEntryListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -42322,7 +46960,7 @@ module Stripe module Treasury # Transactions represent changes to a [FinancialAccount's](https://stripe.com/docs/api#financial_accounts) balance. class Transaction < APIResource - class BalanceImpact < Stripe::StripeObject + class BalanceImpact < ::Stripe::StripeObject # The change made to funds the user can spend right now. sig { returns(Integer) } def cash; end @@ -42339,44 +46977,44 @@ module Stripe @field_remappings = {} end end - class FlowDetails < Stripe::StripeObject + class FlowDetails < ::Stripe::StripeObject # You can reverse some [ReceivedCredits](https://stripe.com/docs/api#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. - sig { returns(T.nilable(Stripe::Treasury::CreditReversal)) } + sig { returns(T.nilable(::Stripe::Treasury::CreditReversal)) } def credit_reversal; end # You can reverse some [ReceivedDebits](https://stripe.com/docs/api#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal. - sig { returns(T.nilable(Stripe::Treasury::DebitReversal)) } + sig { returns(T.nilable(::Stripe::Treasury::DebitReversal)) } def debit_reversal; end # Use [InboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit. # # Related guide: [Moving money with Treasury using InboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) - sig { returns(T.nilable(Stripe::Treasury::InboundTransfer)) } + sig { returns(T.nilable(::Stripe::Treasury::InboundTransfer)) } def inbound_transfer; end # When an [issued card](https://stripe.com/docs/issuing) is used to make a purchase, an Issuing `Authorization` # object is created. [Authorizations](https://stripe.com/docs/issuing/purchases/authorizations) must be approved for the # purchase to be completed successfully. # # Related guide: [Issued card authorizations](https://stripe.com/docs/issuing/purchases/authorizations) - sig { returns(T.nilable(Stripe::Issuing::Authorization)) } + sig { returns(T.nilable(::Stripe::Issuing::Authorization)) } def issuing_authorization; end # Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers). # # Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects. # # Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) - sig { returns(T.nilable(Stripe::Treasury::OutboundPayment)) } + sig { returns(T.nilable(::Stripe::Treasury::OutboundPayment)) } def outbound_payment; end # Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account. # # Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects. # # Related guide: [Moving money with Treasury using OutboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) - sig { returns(T.nilable(Stripe::Treasury::OutboundTransfer)) } + sig { returns(T.nilable(::Stripe::Treasury::OutboundTransfer)) } def outbound_transfer; end # ReceivedCredits represent funds sent to a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) (for example, via ACH or wire). These money movements are not initiated from the FinancialAccount. - sig { returns(T.nilable(Stripe::Treasury::ReceivedCredit)) } + sig { returns(T.nilable(::Stripe::Treasury::ReceivedCredit)) } def received_credit; end # ReceivedDebits represent funds pulled from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts). These are not initiated from the FinancialAccount. - sig { returns(T.nilable(Stripe::Treasury::ReceivedDebit)) } + sig { returns(T.nilable(::Stripe::Treasury::ReceivedDebit)) } def received_debit; end # Type of the flow that created the Transaction. Set to the same value as `flow_type`. sig { returns(String) } @@ -42388,7 +47026,7 @@ module Stripe @field_remappings = {} end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # Timestamp describing when the Transaction changed status to `posted`. sig { returns(T.nilable(Integer)) } def posted_at; end @@ -42418,7 +47056,7 @@ module Stripe sig { returns(String) } def description; end # A list of TransactionEntries that are part of this Transaction. This cannot be expanded in any list endpoints. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def entries; end # The FinancialAccount associated with this object. sig { returns(String) } @@ -42449,7 +47087,7 @@ module Stripe def status_transitions; end # Retrieves a list of Transaction objects. sig { - params(params: T.any(::Stripe::Treasury::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end @@ -42506,31 +47144,31 @@ module Stripe def deleted; end # A webhook endpoint must have a url and a list of enabled_events. You may optionally specify the Boolean connect parameter. If set to true, then a Connect webhook endpoint that notifies the specified url about events from all connected accounts is created; otherwise an account webhook endpoint that notifies the specified url only about events from your account is created. You can also create webhook endpoints in the [webhooks settings](https://dashboard.stripe.com/account/webhooks) section of the Dashboard. sig { - params(params: T.any(::Stripe::WebhookEndpointCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::WebhookEndpoint) + params(params: T.any(::Stripe::WebhookEndpointCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::WebhookEndpoint) } def self.create(params = {}, opts = {}); end # You can also delete webhook endpoints via the [webhook endpoint management](https://dashboard.stripe.com/account/webhooks) page of the Stripe dashboard. sig { - params(webhook_endpoint: String, params: T.any(::Stripe::WebhookEndpointDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::WebhookEndpoint) + params(webhook_endpoint: String, params: T.any(::Stripe::WebhookEndpointDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::WebhookEndpoint) } def self.delete(webhook_endpoint, params = {}, opts = {}); end # You can also delete webhook endpoints via the [webhook endpoint management](https://dashboard.stripe.com/account/webhooks) page of the Stripe dashboard. sig { - params(params: T.any(::Stripe::WebhookEndpointDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::WebhookEndpoint) + params(params: T.any(::Stripe::WebhookEndpointDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::WebhookEndpoint) } def delete(params = {}, opts = {}); end # Returns a list of your webhook endpoints. sig { - params(params: T.any(::Stripe::WebhookEndpointListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::WebhookEndpointListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the webhook endpoint. You may edit the url, the list of enabled_events, and the status of your endpoint. sig { - params(webhook_endpoint: String, params: T.any(::Stripe::WebhookEndpointUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::WebhookEndpoint) + params(webhook_endpoint: String, params: T.any(::Stripe::WebhookEndpointUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::WebhookEndpoint) } def self.update(webhook_endpoint, params = {}, opts = {}); end end @@ -42540,7 +47178,7 @@ module Stripe module V2 module Billing class MeterEventAdjustment < APIResource - class Cancel < Stripe::StripeObject + class Cancel < ::Stripe::StripeObject # Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them. sig { returns(String) } def identifier; end @@ -42647,8 +47285,8 @@ module Stripe module Core # Set up an event destination to receive events from Stripe across multiple destination types, including [webhook endpoints](https://docs.stripe.com/webhooks) and [Amazon EventBridge](https://docs.stripe.com/event-destinations/eventbridge). Event destinations support receiving [thin events](https://docs.stripe.com/api/v2/events) and [snapshot events](https://docs.stripe.com/api/events). class EventDestination < APIResource - class StatusDetails < Stripe::StripeObject - class Disabled < Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject + class Disabled < ::Stripe::StripeObject # Reason event destination has been disabled. sig { returns(String) } def reason; end @@ -42669,7 +47307,7 @@ module Stripe @field_remappings = {} end end - class AmazonEventbridge < Stripe::StripeObject + class AmazonEventbridge < ::Stripe::StripeObject # The AWS account ID. sig { returns(String) } def aws_account_id; end @@ -42686,7 +47324,7 @@ module Stripe @field_remappings = {} end end - class WebhookEndpoint < Stripe::StripeObject + class WebhookEndpoint < ::Stripe::StripeObject # The signing secret of the webhook endpoint, only includable on creation. sig { returns(T.nilable(String)) } def signing_secret; end @@ -42761,8 +47399,8 @@ module Stripe module Core # Events are generated to keep you informed of activity in your business account. APIs in the /v2 namespace generate [thin events](https://docs.stripe.com/event-destinations#benefits-of-thin-events) which have small, unversioned payloads that include a reference to the ID of the object that has changed. The Events v2 API returns these new thin events. [Retrieve the event object](https://docs.stripe.com/event-destinations#fetch-data) for additional data about the event. Use the related object ID in the event payload to [fetch the API resource](https://docs.stripe.com/event-destinations#retrieve-the-object-associated-with-thin-events) of the object associated with the event. Comparatively, events generated by most API v1 include a versioned snapshot of an API object in their payload. class Event < APIResource - class Reason < Stripe::StripeObject - class Request < Stripe::StripeObject + class Reason < ::Stripe::StripeObject + class Request < ::Stripe::StripeObject # ID of the API request that caused the event. sig { returns(String) } def id; end @@ -42853,11 +47491,13 @@ module Stripe attr_reader :invoice_rendering_templates attr_reader :issuing attr_reader :mandates + attr_reader :payment_attempt_records attr_reader :payment_intents attr_reader :payment_links attr_reader :payment_methods attr_reader :payment_method_configurations attr_reader :payment_method_domains + attr_reader :payment_records attr_reader :payouts attr_reader :plans attr_reader :prices @@ -42903,7 +47543,7 @@ module Stripe # creating the account. Connect Onboarding won't ask for the prefilled information during account onboarding. # You can prefill any information on the account. sig { - params(params: T.any(::Stripe::AccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(params: T.any(::Stripe::AccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def create(params = {}, opts = {}); end @@ -42915,13 +47555,13 @@ module Stripe # # If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead. sig { - params(account: String, params: T.any(::Stripe::AccountDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(account: String, params: T.any(::Stripe::AccountDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def delete(account, params = {}, opts = {}); end # Returns a list of accounts connected to your platform via [Connect](https://docs.stripe.com/docs/connect). If you're not a platform, the list is empty. sig { - params(params: T.any(::Stripe::AccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::AccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end @@ -42929,19 +47569,19 @@ module Stripe # # Only accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time. Live-mode accounts can only be rejected after all balances are zero. sig { - params(account: String, params: T.any(::Stripe::AccountRejectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(account: String, params: T.any(::Stripe::AccountRejectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def reject(account, params = {}, opts = {}); end # Retrieves the details of an account. sig { - params(account: String, params: T.any(::Stripe::AccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(account: String, params: T.any(::Stripe::AccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def retrieve(account, params = {}, opts = {}); end # Retrieves the details of an account. sig { - params(params: T.any(::Stripe::AccountRetrieveCurrentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(params: T.any(::Stripe::AccountRetrieveCurrentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def retrieve_current(params = {}, opts = {}); end @@ -42959,7 +47599,7 @@ module Stripe # To update your own account, use the [Dashboard](https://dashboard.stripe.com/settings/account). Refer to our # [Connect](https://docs.stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts. sig { - params(account: String, params: T.any(::Stripe::AccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(account: String, params: T.any(::Stripe::AccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def update(account, params = {}, opts = {}); end end @@ -42969,19 +47609,19 @@ module Stripe class AccountCapabilityService < StripeService # Returns a list of capabilities associated with the account. The capabilities are returned sorted by creation date, with the most recent capability appearing first. sig { - params(account: String, params: T.any(::Stripe::AccountCapabilityListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(account: String, params: T.any(::Stripe::AccountCapabilityListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(account, params = {}, opts = {}); end # Retrieves information about the specified Account Capability. sig { - params(account: String, capability: String, params: T.any(::Stripe::AccountCapabilityRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Capability) + params(account: String, capability: String, params: T.any(::Stripe::AccountCapabilityRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Capability) } def retrieve(account, capability, params = {}, opts = {}); end # Updates an existing Account Capability. Request or remove a capability by updating its requested parameter. sig { - params(account: String, capability: String, params: T.any(::Stripe::AccountCapabilityUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Capability) + params(account: String, capability: String, params: T.any(::Stripe::AccountCapabilityUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Capability) } def update(account, capability, params = {}, opts = {}); end end @@ -42991,25 +47631,25 @@ module Stripe class AccountExternalAccountService < StripeService # Create an external account for a given account. sig { - params(account: String, params: T.any(::Stripe::AccountExternalAccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(Stripe::BankAccount, Stripe::Card)) + params(account: String, params: T.any(::Stripe::AccountExternalAccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(::Stripe::BankAccount, ::Stripe::Card)) } def create(account, params = {}, opts = {}); end # Delete a specified external account for a given account. sig { - params(account: String, id: String, params: T.any(::Stripe::AccountExternalAccountDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(Stripe::BankAccount, Stripe::Card)) + params(account: String, id: String, params: T.any(::Stripe::AccountExternalAccountDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(::Stripe::BankAccount, ::Stripe::Card)) } def delete(account, id, params = {}, opts = {}); end # List external accounts for an account. sig { - params(account: String, params: T.any(::Stripe::AccountExternalAccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(account: String, params: T.any(::Stripe::AccountExternalAccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(account, params = {}, opts = {}); end # Retrieve a specified external account for a given account. sig { - params(account: String, id: String, params: T.any(::Stripe::AccountExternalAccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(Stripe::BankAccount, Stripe::Card)) + params(account: String, id: String, params: T.any(::Stripe::AccountExternalAccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(::Stripe::BankAccount, ::Stripe::Card)) } def retrieve(account, id, params = {}, opts = {}); end @@ -43022,7 +47662,7 @@ module Stripe # You can re-enable a disabled bank account by performing an update call without providing any # arguments or changes. sig { - params(account: String, id: String, params: T.any(::Stripe::AccountExternalAccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(Stripe::BankAccount, Stripe::Card)) + params(account: String, id: String, params: T.any(::Stripe::AccountExternalAccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(::Stripe::BankAccount, ::Stripe::Card)) } def update(account, id, params = {}, opts = {}); end end @@ -43034,7 +47674,7 @@ module Stripe # # You can only create login links for accounts that use the [Express Dashboard](https://docs.stripe.com/connect/express-dashboard) and are connected to your platform. sig { - params(account: String, params: T.any(::Stripe::AccountLoginLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::LoginLink) + params(account: String, params: T.any(::Stripe::AccountLoginLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::LoginLink) } def create(account, params = {}, opts = {}); end end @@ -43044,31 +47684,31 @@ module Stripe class AccountPersonService < StripeService # Creates a new person. sig { - params(account: String, params: T.any(::Stripe::AccountPersonCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Person) + params(account: String, params: T.any(::Stripe::AccountPersonCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Person) } def create(account, params = {}, opts = {}); end # Deletes an existing person's relationship to the account's legal entity. Any person with a relationship for an account can be deleted through the API, except if the person is the account_opener. If your integration is using the executive parameter, you cannot delete the only verified executive on file. sig { - params(account: String, person: String, params: T.any(::Stripe::AccountPersonDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Person) + params(account: String, person: String, params: T.any(::Stripe::AccountPersonDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Person) } def delete(account, person, params = {}, opts = {}); end # Returns a list of people associated with the account's legal entity. The people are returned sorted by creation date, with the most recent people appearing first. sig { - params(account: String, params: T.any(::Stripe::AccountPersonListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(account: String, params: T.any(::Stripe::AccountPersonListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(account, params = {}, opts = {}); end # Retrieves an existing person. sig { - params(account: String, person: String, params: T.any(::Stripe::AccountPersonRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Person) + params(account: String, person: String, params: T.any(::Stripe::AccountPersonRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Person) } def retrieve(account, person, params = {}, opts = {}); end # Updates an existing person. sig { - params(account: String, person: String, params: T.any(::Stripe::AccountPersonUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Person) + params(account: String, person: String, params: T.any(::Stripe::AccountPersonUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Person) } def update(account, person, params = {}, opts = {}); end end @@ -43078,7 +47718,7 @@ module Stripe class AccountLinkService < StripeService # Creates an AccountLink object that includes a single-use Stripe URL that the platform can redirect their user to in order to take them through the Connect Onboarding flow. sig { - params(params: T.any(::Stripe::AccountLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::AccountLink) + params(params: T.any(::Stripe::AccountLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::AccountLink) } def create(params = {}, opts = {}); end end @@ -43088,7 +47728,7 @@ module Stripe class AccountSessionService < StripeService # Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access. sig { - params(params: T.any(::Stripe::AccountSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::AccountSession) + params(params: T.any(::Stripe::AccountSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::AccountSession) } def create(params = {}, opts = {}); end end @@ -43098,25 +47738,25 @@ module Stripe class ApplePayDomainService < StripeService # Create an apple pay domain. sig { - params(params: T.any(::Stripe::ApplePayDomainCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ApplePayDomain) + params(params: T.any(::Stripe::ApplePayDomainCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ApplePayDomain) } def create(params = {}, opts = {}); end # Delete an apple pay domain. sig { - params(domain: String, params: T.any(::Stripe::ApplePayDomainDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ApplePayDomain) + params(domain: String, params: T.any(::Stripe::ApplePayDomainDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ApplePayDomain) } def delete(domain, params = {}, opts = {}); end # List apple pay domains. sig { - params(params: T.any(::Stripe::ApplePayDomainListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ApplePayDomainListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieve an apple pay domain. sig { - params(domain: String, params: T.any(::Stripe::ApplePayDomainRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ApplePayDomain) + params(domain: String, params: T.any(::Stripe::ApplePayDomainRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ApplePayDomain) } def retrieve(domain, params = {}, opts = {}); end end @@ -43127,13 +47767,13 @@ module Stripe attr_reader :refunds # Returns a list of application fees you've previously collected. The application fees are returned in sorted order, with the most recent fees appearing first. sig { - params(params: T.any(::Stripe::ApplicationFeeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ApplicationFeeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an application fee that your account has collected. The same information is returned when refunding the application fee. sig { - params(id: String, params: T.any(::Stripe::ApplicationFeeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ApplicationFee) + params(id: String, params: T.any(::Stripe::ApplicationFeeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ApplicationFee) } def retrieve(id, params = {}, opts = {}); end end @@ -43151,19 +47791,19 @@ module Stripe # This method will raise an error when called on an already-refunded application fee, # or when trying to refund more money than is left on an application fee. sig { - params(id: String, params: T.any(::Stripe::ApplicationFeeRefundCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ApplicationFeeRefund) + params(id: String, params: T.any(::Stripe::ApplicationFeeRefundCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ApplicationFeeRefund) } def create(id, params = {}, opts = {}); end # You can see a list of the refunds belonging to a specific application fee. Note that the 10 most recent refunds are always available by default on the application fee object. If you need more than those 10, you can use this API method and the limit and starting_after parameters to page through additional refunds. sig { - params(id: String, params: T.any(::Stripe::ApplicationFeeRefundListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(id: String, params: T.any(::Stripe::ApplicationFeeRefundListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(id, params = {}, opts = {}); end # By default, you can see the 10 most recent refunds stored directly on the application fee object, but you can also retrieve details about a specific refund stored on the application fee. sig { - params(fee: String, id: String, params: T.any(::Stripe::ApplicationFeeRefundRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ApplicationFeeRefund) + params(fee: String, id: String, params: T.any(::Stripe::ApplicationFeeRefundRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ApplicationFeeRefund) } def retrieve(fee, id, params = {}, opts = {}); end @@ -43171,7 +47811,7 @@ module Stripe # # This request only accepts metadata as an argument. sig { - params(fee: String, id: String, params: T.any(::Stripe::ApplicationFeeRefundUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ApplicationFeeRefund) + params(fee: String, id: String, params: T.any(::Stripe::ApplicationFeeRefundUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ApplicationFeeRefund) } def update(fee, id, params = {}, opts = {}); end end @@ -43188,25 +47828,25 @@ module Stripe class SecretService < StripeService # Create or replace a secret in the secret store. sig { - params(params: T.any(::Stripe::Apps::SecretCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Apps::Secret) + params(params: T.any(::Stripe::Apps::SecretCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Apps::Secret) } def create(params = {}, opts = {}); end # Deletes a secret from the secret store by name and scope. sig { - params(params: T.any(::Stripe::Apps::SecretDeleteWhereParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Apps::Secret) + params(params: T.any(::Stripe::Apps::SecretDeleteWhereParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Apps::Secret) } def delete_where(params = {}, opts = {}); end # Finds a secret in the secret store by name and scope. sig { - params(params: T.any(::Stripe::Apps::SecretFindParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Apps::Secret) + params(params: T.any(::Stripe::Apps::SecretFindParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Apps::Secret) } def find(params = {}, opts = {}); end # List all secrets stored on the given scope. sig { - params(params: T.any(::Stripe::Apps::SecretListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Apps::SecretListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end end @@ -43218,7 +47858,7 @@ module Stripe # Retrieves the current account balance, based on the authentication that was used to make the request. # For a sample request, see [Accounting for negative balances](https://docs.stripe.com/docs/connect/account-balances#accounting-for-negative-balances). sig { - params(params: T.any(::Stripe::BalanceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Balance) + params(params: T.any(::Stripe::BalanceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Balance) } def retrieve(params = {}, opts = {}); end end @@ -43229,14 +47869,14 @@ module Stripe # Retrieves balance settings for a given connected account. # Related guide: [Making API calls for connected accounts](https://docs.stripe.com/connect/authentication) sig { - params(params: T.any(::Stripe::BalanceSettingsRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BalanceSettings) + params(params: T.any(::Stripe::BalanceSettingsRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::BalanceSettings) } def retrieve(params = {}, opts = {}); end # Updates balance settings for a given connected account. # Related guide: [Making API calls for connected accounts](https://docs.stripe.com/connect/authentication) sig { - params(params: T.any(::Stripe::BalanceSettingsUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BalanceSettings) + params(params: T.any(::Stripe::BalanceSettingsUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::BalanceSettings) } def update(params = {}, opts = {}); end end @@ -43248,7 +47888,7 @@ module Stripe # # Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history. sig { - params(params: T.any(::Stripe::BalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::BalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end @@ -43256,7 +47896,7 @@ module Stripe # # Note that this endpoint previously used the path /v1/balance/history/:id. sig { - params(id: String, params: T.any(::Stripe::BalanceTransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BalanceTransaction) + params(id: String, params: T.any(::Stripe::BalanceTransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::BalanceTransaction) } def retrieve(id, params = {}, opts = {}); end end @@ -43279,37 +47919,37 @@ module Stripe class AlertService < StripeService # Reactivates this alert, allowing it to trigger again. sig { - params(id: String, params: T.any(::Stripe::Billing::AlertActivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(id: String, params: T.any(::Stripe::Billing::AlertActivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def activate(id, params = {}, opts = {}); end # Archives this alert, removing it from the list view and APIs. This is non-reversible. sig { - params(id: String, params: T.any(::Stripe::Billing::AlertArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(id: String, params: T.any(::Stripe::Billing::AlertArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def archive(id, params = {}, opts = {}); end # Creates a billing alert sig { - params(params: T.any(::Stripe::Billing::AlertCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(params: T.any(::Stripe::Billing::AlertCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def create(params = {}, opts = {}); end # Deactivates this alert, preventing it from triggering. sig { - params(id: String, params: T.any(::Stripe::Billing::AlertDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(id: String, params: T.any(::Stripe::Billing::AlertDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def deactivate(id, params = {}, opts = {}); end # Lists billing active and inactive alerts sig { - params(params: T.any(::Stripe::Billing::AlertListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Billing::AlertListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a billing alert given an ID sig { - params(id: String, params: T.any(::Stripe::Billing::AlertRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(id: String, params: T.any(::Stripe::Billing::AlertRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def retrieve(id, params = {}, opts = {}); end end @@ -43321,7 +47961,7 @@ module Stripe class CreditBalanceSummaryService < StripeService # Retrieves the credit balance summary for a customer. sig { - params(params: T.any(::Stripe::Billing::CreditBalanceSummaryRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditBalanceSummary) + params(params: T.any(::Stripe::Billing::CreditBalanceSummaryRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditBalanceSummary) } def retrieve(params = {}, opts = {}); end end @@ -43333,13 +47973,13 @@ module Stripe class CreditBalanceTransactionService < StripeService # Retrieve a list of credit balance transactions. sig { - params(params: T.any(::Stripe::Billing::CreditBalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Billing::CreditBalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a credit balance transaction. sig { - params(id: String, params: T.any(::Stripe::Billing::CreditBalanceTransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditBalanceTransaction) + params(id: String, params: T.any(::Stripe::Billing::CreditBalanceTransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditBalanceTransaction) } def retrieve(id, params = {}, opts = {}); end end @@ -43351,37 +47991,37 @@ module Stripe class CreditGrantService < StripeService # Creates a credit grant. sig { - params(params: T.any(::Stripe::Billing::CreditGrantCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditGrant) + params(params: T.any(::Stripe::Billing::CreditGrantCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditGrant) } def create(params = {}, opts = {}); end # Expires a credit grant. sig { - params(id: String, params: T.any(::Stripe::Billing::CreditGrantExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditGrant) + params(id: String, params: T.any(::Stripe::Billing::CreditGrantExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditGrant) } def expire(id, params = {}, opts = {}); end # Retrieve a list of credit grants. sig { - params(params: T.any(::Stripe::Billing::CreditGrantListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Billing::CreditGrantListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a credit grant. sig { - params(id: String, params: T.any(::Stripe::Billing::CreditGrantRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditGrant) + params(id: String, params: T.any(::Stripe::Billing::CreditGrantRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditGrant) } def retrieve(id, params = {}, opts = {}); end # Updates a credit grant. sig { - params(id: String, params: T.any(::Stripe::Billing::CreditGrantUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditGrant) + params(id: String, params: T.any(::Stripe::Billing::CreditGrantUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditGrant) } def update(id, params = {}, opts = {}); end # Voids a credit grant. sig { - params(id: String, params: T.any(::Stripe::Billing::CreditGrantVoidGrantParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditGrant) + params(id: String, params: T.any(::Stripe::Billing::CreditGrantVoidGrantParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditGrant) } def void_grant(id, params = {}, opts = {}); end end @@ -43394,37 +48034,37 @@ module Stripe attr_reader :event_summaries # Creates a billing meter. sig { - params(params: T.any(::Stripe::Billing::MeterCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Meter) + params(params: T.any(::Stripe::Billing::MeterCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) } def create(params = {}, opts = {}); end # When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price. sig { - params(id: String, params: T.any(::Stripe::Billing::MeterDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Meter) + params(id: String, params: T.any(::Stripe::Billing::MeterDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) } def deactivate(id, params = {}, opts = {}); end # Retrieve a list of billing meters. sig { - params(params: T.any(::Stripe::Billing::MeterListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Billing::MeterListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price. sig { - params(id: String, params: T.any(::Stripe::Billing::MeterReactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Meter) + params(id: String, params: T.any(::Stripe::Billing::MeterReactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) } def reactivate(id, params = {}, opts = {}); end # Retrieves a billing meter given an ID. sig { - params(id: String, params: T.any(::Stripe::Billing::MeterRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Meter) + params(id: String, params: T.any(::Stripe::Billing::MeterRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) } def retrieve(id, params = {}, opts = {}); end # Updates a billing meter. sig { - params(id: String, params: T.any(::Stripe::Billing::MeterUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Meter) + params(id: String, params: T.any(::Stripe::Billing::MeterUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) } def update(id, params = {}, opts = {}); end end @@ -43436,7 +48076,7 @@ module Stripe class MeterEventSummaryService < StripeService # Retrieve a list of billing meter event summaries. sig { - params(id: String, params: T.any(::Stripe::Billing::MeterEventSummaryListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(id: String, params: T.any(::Stripe::Billing::MeterEventSummaryListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(id, params = {}, opts = {}); end end @@ -43448,7 +48088,7 @@ module Stripe class MeterEventService < StripeService # Creates a billing meter event. sig { - params(params: T.any(::Stripe::Billing::MeterEventCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::MeterEvent) + params(params: T.any(::Stripe::Billing::MeterEventCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::MeterEvent) } def create(params = {}, opts = {}); end end @@ -43460,7 +48100,7 @@ module Stripe class MeterEventAdjustmentService < StripeService # Creates a billing meter event adjustment. sig { - params(params: T.any(::Stripe::Billing::MeterEventAdjustmentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::MeterEventAdjustment) + params(params: T.any(::Stripe::Billing::MeterEventAdjustmentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::MeterEventAdjustment) } def create(params = {}, opts = {}); end end @@ -43479,25 +48119,25 @@ module Stripe class ConfigurationService < StripeService # Creates a configuration that describes the functionality and behavior of a PortalSession sig { - params(params: T.any(::Stripe::BillingPortal::ConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BillingPortal::Configuration) + params(params: T.any(::Stripe::BillingPortal::ConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::BillingPortal::Configuration) } def create(params = {}, opts = {}); end # Returns a list of configurations that describe the functionality of the customer portal. sig { - params(params: T.any(::Stripe::BillingPortal::ConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::BillingPortal::ConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a configuration that describes the functionality of the customer portal. sig { - params(configuration: String, params: T.any(::Stripe::BillingPortal::ConfigurationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BillingPortal::Configuration) + params(configuration: String, params: T.any(::Stripe::BillingPortal::ConfigurationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::BillingPortal::Configuration) } def retrieve(configuration, params = {}, opts = {}); end # Updates a configuration that describes the functionality of the customer portal. sig { - params(configuration: String, params: T.any(::Stripe::BillingPortal::ConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BillingPortal::Configuration) + params(configuration: String, params: T.any(::Stripe::BillingPortal::ConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::BillingPortal::Configuration) } def update(configuration, params = {}, opts = {}); end end @@ -43509,7 +48149,7 @@ module Stripe class SessionService < StripeService # Creates a session of the customer portal. sig { - params(params: T.any(::Stripe::BillingPortal::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BillingPortal::Session) + params(params: T.any(::Stripe::BillingPortal::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::BillingPortal::Session) } def create(params = {}, opts = {}); end end @@ -43524,7 +48164,7 @@ module Stripe # # Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture). sig { - params(charge: String, params: T.any(::Stripe::ChargeCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Charge) + params(charge: String, params: T.any(::Stripe::ChargeCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Charge) } def capture(charge, params = {}, opts = {}); end @@ -43532,19 +48172,19 @@ module Stripe # to initiate a new payment instead. Confirmation of the PaymentIntent creates the Charge # object used to request payment. sig { - params(params: T.any(::Stripe::ChargeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Charge) + params(params: T.any(::Stripe::ChargeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Charge) } def create(params = {}, opts = {}); end # Returns a list of charges you've previously created. The charges are returned in sorted order, with the most recent charges appearing first. sig { - params(params: T.any(::Stripe::ChargeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ChargeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of a charge that has previously been created. Supply the unique charge ID that was returned from your previous request, and Stripe will return the corresponding charge information. The same information is returned when creating or refunding the charge. sig { - params(charge: String, params: T.any(::Stripe::ChargeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Charge) + params(charge: String, params: T.any(::Stripe::ChargeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Charge) } def retrieve(charge, params = {}, opts = {}); end @@ -43553,13 +48193,13 @@ module Stripe # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up # to an hour behind during outages. Search functionality is not available to merchants in India. sig { - params(params: T.any(::Stripe::ChargeSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::ChargeSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def search(params = {}, opts = {}); end # Updates the specified charge by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(charge: String, params: T.any(::Stripe::ChargeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Charge) + params(charge: String, params: T.any(::Stripe::ChargeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Charge) } def update(charge, params = {}, opts = {}); end end @@ -43577,7 +48217,7 @@ module Stripe attr_reader :line_items # Creates a Checkout Session object. sig { - params(params: T.any(::Stripe::Checkout::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session) + params(params: T.any(::Stripe::Checkout::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Checkout::Session) } def create(params = {}, opts = {}); end @@ -43585,19 +48225,19 @@ module Stripe # # After it expires, a customer can't complete a Checkout Session and customers loading the Checkout Session see a message saying the Checkout Session is expired. sig { - params(session: String, params: T.any(::Stripe::Checkout::SessionExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session) + params(session: String, params: T.any(::Stripe::Checkout::SessionExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Checkout::Session) } def expire(session, params = {}, opts = {}); end # Returns a list of Checkout Sessions. sig { - params(params: T.any(::Stripe::Checkout::SessionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Checkout::SessionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a Checkout Session object. sig { - params(session: String, params: T.any(::Stripe::Checkout::SessionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session) + params(session: String, params: T.any(::Stripe::Checkout::SessionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Checkout::Session) } def retrieve(session, params = {}, opts = {}); end @@ -43605,7 +48245,7 @@ module Stripe # # Related guide: [Dynamically update Checkout](https://docs.stripe.com/payments/checkout/dynamic-updates) sig { - params(session: String, params: T.any(::Stripe::Checkout::SessionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session) + params(session: String, params: T.any(::Stripe::Checkout::SessionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Checkout::Session) } def update(session, params = {}, opts = {}); end end @@ -43617,7 +48257,7 @@ module Stripe class SessionLineItemService < StripeService # When retrieving a Checkout Session, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. sig { - params(session: String, params: T.any(::Stripe::Checkout::SessionLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(session: String, params: T.any(::Stripe::Checkout::SessionLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(session, params = {}, opts = {}); end end @@ -43640,33 +48280,33 @@ module Stripe # might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe # provides 90 days advance notice and refunds the amount_total. sig { - params(order: String, params: T.any(::Stripe::Climate::OrderCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Climate::Order) + params(order: String, params: T.any(::Stripe::Climate::OrderCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Climate::Order) } def cancel(order, params = {}, opts = {}); end # Creates a Climate order object for a given Climate product. The order will be processed immediately # after creation and payment will be deducted your Stripe balance. sig { - params(params: T.any(::Stripe::Climate::OrderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Climate::Order) + params(params: T.any(::Stripe::Climate::OrderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Climate::Order) } def create(params = {}, opts = {}); end # Lists all Climate order objects. The orders are returned sorted by creation date, with the # most recently created orders appearing first. sig { - params(params: T.any(::Stripe::Climate::OrderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Climate::OrderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of a Climate order object with the given ID. sig { - params(order: String, params: T.any(::Stripe::Climate::OrderRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Climate::Order) + params(order: String, params: T.any(::Stripe::Climate::OrderRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Climate::Order) } def retrieve(order, params = {}, opts = {}); end # Updates the specified order by setting the values of the parameters passed. sig { - params(order: String, params: T.any(::Stripe::Climate::OrderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Climate::Order) + params(order: String, params: T.any(::Stripe::Climate::OrderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Climate::Order) } def update(order, params = {}, opts = {}); end end @@ -43678,13 +48318,13 @@ module Stripe class ProductService < StripeService # Lists all available Climate product objects. sig { - params(params: T.any(::Stripe::Climate::ProductListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Climate::ProductListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of a Climate product with the given ID. sig { - params(product: String, params: T.any(::Stripe::Climate::ProductRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Climate::Product) + params(product: String, params: T.any(::Stripe::Climate::ProductRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Climate::Product) } def retrieve(product, params = {}, opts = {}); end end @@ -43696,13 +48336,13 @@ module Stripe class SupplierService < StripeService # Lists all available Climate supplier objects. sig { - params(params: T.any(::Stripe::Climate::SupplierListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Climate::SupplierListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a Climate supplier object. sig { - params(supplier: String, params: T.any(::Stripe::Climate::SupplierRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Climate::Supplier) + params(supplier: String, params: T.any(::Stripe::Climate::SupplierRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Climate::Supplier) } def retrieve(supplier, params = {}, opts = {}); end end @@ -43713,7 +48353,7 @@ module Stripe class ConfirmationTokenService < StripeService # Retrieves an existing ConfirmationToken object sig { - params(confirmation_token: String, params: T.any(::Stripe::ConfirmationTokenRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ConfirmationToken) + params(confirmation_token: String, params: T.any(::Stripe::ConfirmationTokenRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ConfirmationToken) } def retrieve(confirmation_token, params = {}, opts = {}); end end @@ -43723,13 +48363,13 @@ module Stripe class CountrySpecService < StripeService # Lists all Country Spec objects available in the API. sig { - params(params: T.any(::Stripe::CountrySpecListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::CountrySpecListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Returns a Country Spec for a given Country code. sig { - params(country: String, params: T.any(::Stripe::CountrySpecRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CountrySpec) + params(country: String, params: T.any(::Stripe::CountrySpecRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CountrySpec) } def retrieve(country, params = {}, opts = {}); end end @@ -43741,31 +48381,31 @@ module Stripe # # A coupon has either a percent_off or an amount_off and currency. If you set an amount_off, that amount will be subtracted from any invoice's subtotal. For example, an invoice with a subtotal of 100 will have a final total of 0 if a coupon with an amount_off of 200 is applied to it and an invoice with a subtotal of 300 will have a final total of 100 if a coupon with an amount_off of 200 is applied to it. sig { - params(params: T.any(::Stripe::CouponCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Coupon) + params(params: T.any(::Stripe::CouponCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Coupon) } def create(params = {}, opts = {}); end # You can delete coupons via the [coupon management](https://dashboard.stripe.com/coupons) page of the Stripe dashboard. However, deleting a coupon does not affect any customers who have already applied the coupon; it means that new customers can't redeem the coupon. You can also delete coupons via the API. sig { - params(coupon: String, params: T.any(::Stripe::CouponDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Coupon) + params(coupon: String, params: T.any(::Stripe::CouponDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Coupon) } def delete(coupon, params = {}, opts = {}); end # Returns a list of your coupons. sig { - params(params: T.any(::Stripe::CouponListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::CouponListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the coupon with the given ID. sig { - params(coupon: String, params: T.any(::Stripe::CouponRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Coupon) + params(coupon: String, params: T.any(::Stripe::CouponRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Coupon) } def retrieve(coupon, params = {}, opts = {}); end # Updates the metadata of a coupon. Other coupon details (currency, duration, amount_off) are, by design, not editable. sig { - params(coupon: String, params: T.any(::Stripe::CouponUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Coupon) + params(coupon: String, params: T.any(::Stripe::CouponUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Coupon) } def update(coupon, params = {}, opts = {}); end end @@ -43789,37 +48429,37 @@ module Stripe # You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount, # post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation. sig { - params(params: T.any(::Stripe::CreditNoteCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote) + params(params: T.any(::Stripe::CreditNoteCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } def create(params = {}, opts = {}); end # Returns a list of credit notes. sig { - params(params: T.any(::Stripe::CreditNoteListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::CreditNoteListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Get a preview of a credit note without creating it. sig { - params(params: T.any(::Stripe::CreditNotePreviewParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote) + params(params: T.any(::Stripe::CreditNotePreviewParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } def preview(params = {}, opts = {}); end # Retrieves the credit note object with the given identifier. sig { - params(id: String, params: T.any(::Stripe::CreditNoteRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote) + params(id: String, params: T.any(::Stripe::CreditNoteRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } def retrieve(id, params = {}, opts = {}); end # Updates an existing credit note. sig { - params(id: String, params: T.any(::Stripe::CreditNoteUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote) + params(id: String, params: T.any(::Stripe::CreditNoteUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } def update(id, params = {}, opts = {}); end # Marks a credit note as void. Learn more about [voiding credit notes](https://docs.stripe.com/docs/billing/invoices/credit-notes#voiding). sig { - params(id: String, params: T.any(::Stripe::CreditNoteVoidCreditNoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote) + params(id: String, params: T.any(::Stripe::CreditNoteVoidCreditNoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } def void_credit_note(id, params = {}, opts = {}); end end @@ -43829,7 +48469,7 @@ module Stripe class CreditNoteLineItemService < StripeService # When retrieving a credit note, you'll get a lines property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. sig { - params(credit_note: String, params: T.any(::Stripe::CreditNoteLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(credit_note: String, params: T.any(::Stripe::CreditNoteLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(credit_note, params = {}, opts = {}); end end @@ -43839,7 +48479,7 @@ module Stripe class CreditNotePreviewLinesService < StripeService # When retrieving a credit note preview, you'll get a lines property containing the first handful of those items. This URL you can retrieve the full (paginated) list of line items. sig { - params(params: T.any(::Stripe::CreditNotePreviewLinesListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::CreditNotePreviewLinesListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end end @@ -43856,31 +48496,31 @@ module Stripe attr_reader :tax_ids # Creates a new customer object. sig { - params(params: T.any(::Stripe::CustomerCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer) + params(params: T.any(::Stripe::CustomerCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Customer) } def create(params = {}, opts = {}); end # Permanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer. sig { - params(customer: String, params: T.any(::Stripe::CustomerDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer) + params(customer: String, params: T.any(::Stripe::CustomerDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Customer) } def delete(customer, params = {}, opts = {}); end # Removes the currently applied discount on a customer. sig { - params(customer: String, params: T.any(::Stripe::CustomerDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Discount) + params(customer: String, params: T.any(::Stripe::CustomerDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Discount) } def delete_discount(customer, params = {}, opts = {}); end # Returns a list of your customers. The customers are returned sorted by creation date, with the most recent customers appearing first. sig { - params(params: T.any(::Stripe::CustomerListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::CustomerListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a Customer object. sig { - params(customer: String, params: T.any(::Stripe::CustomerRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer) + params(customer: String, params: T.any(::Stripe::CustomerRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Customer) } def retrieve(customer, params = {}, opts = {}); end @@ -43889,7 +48529,7 @@ module Stripe # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up # to an hour behind during outages. Search functionality is not available to merchants in India. sig { - params(params: T.any(::Stripe::CustomerSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::CustomerSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def search(params = {}, opts = {}); end @@ -43897,7 +48537,7 @@ module Stripe # # This request accepts mostly the same arguments as the customer creation call. sig { - params(customer: String, params: T.any(::Stripe::CustomerUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer) + params(customer: String, params: T.any(::Stripe::CustomerUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Customer) } def update(customer, params = {}, opts = {}); end end @@ -43907,25 +48547,25 @@ module Stripe class CustomerBalanceTransactionService < StripeService # Creates an immutable transaction that updates the customer's credit [balance](https://docs.stripe.com/docs/billing/customer/balance). sig { - params(customer: String, params: T.any(::Stripe::CustomerBalanceTransactionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CustomerBalanceTransaction) + params(customer: String, params: T.any(::Stripe::CustomerBalanceTransactionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CustomerBalanceTransaction) } def create(customer, params = {}, opts = {}); end # Returns a list of transactions that updated the customer's [balances](https://docs.stripe.com/docs/billing/customer/balance). sig { - params(customer: String, params: T.any(::Stripe::CustomerBalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(customer: String, params: T.any(::Stripe::CustomerBalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(customer, params = {}, opts = {}); end # Retrieves a specific customer balance transaction that updated the customer's [balances](https://docs.stripe.com/docs/billing/customer/balance). sig { - params(customer: String, transaction: String, params: T.any(::Stripe::CustomerBalanceTransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CustomerBalanceTransaction) + params(customer: String, transaction: String, params: T.any(::Stripe::CustomerBalanceTransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CustomerBalanceTransaction) } def retrieve(customer, transaction, params = {}, opts = {}); end # Most credit balance transaction fields are immutable, but you may update its description and metadata. sig { - params(customer: String, transaction: String, params: T.any(::Stripe::CustomerBalanceTransactionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CustomerBalanceTransaction) + params(customer: String, transaction: String, params: T.any(::Stripe::CustomerBalanceTransactionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CustomerBalanceTransaction) } def update(customer, transaction, params = {}, opts = {}); end end @@ -43935,13 +48575,13 @@ module Stripe class CustomerCashBalanceService < StripeService # Retrieves a customer's cash balance. sig { - params(customer: String, params: T.any(::Stripe::CustomerCashBalanceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CashBalance) + params(customer: String, params: T.any(::Stripe::CustomerCashBalanceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CashBalance) } def retrieve(customer, params = {}, opts = {}); end # Changes the settings on a customer's cash balance. sig { - params(customer: String, params: T.any(::Stripe::CustomerCashBalanceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CashBalance) + params(customer: String, params: T.any(::Stripe::CustomerCashBalanceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CashBalance) } def update(customer, params = {}, opts = {}); end end @@ -43951,13 +48591,13 @@ module Stripe class CustomerCashBalanceTransactionService < StripeService # Returns a list of transactions that modified the customer's [cash balance](https://docs.stripe.com/docs/payments/customer-balance). sig { - params(customer: String, params: T.any(::Stripe::CustomerCashBalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(customer: String, params: T.any(::Stripe::CustomerCashBalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(customer, params = {}, opts = {}); end # Retrieves a specific cash balance transaction, which updated the customer's [cash balance](https://docs.stripe.com/docs/payments/customer-balance). sig { - params(customer: String, transaction: String, params: T.any(::Stripe::CustomerCashBalanceTransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CustomerCashBalanceTransaction) + params(customer: String, transaction: String, params: T.any(::Stripe::CustomerCashBalanceTransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CustomerCashBalanceTransaction) } def retrieve(customer, transaction, params = {}, opts = {}); end end @@ -43969,7 +48609,7 @@ module Stripe # funding instructions will be created. If funding instructions have already been created for a given customer, the same # funding instructions will be retrieved. In other words, we will return the same funding instructions each time. sig { - params(customer: String, params: T.any(::Stripe::CustomerFundingInstructionsCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FundingInstructions) + params(customer: String, params: T.any(::Stripe::CustomerFundingInstructionsCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FundingInstructions) } def create(customer, params = {}, opts = {}); end end @@ -43979,13 +48619,13 @@ module Stripe class CustomerPaymentMethodService < StripeService # Returns a list of PaymentMethods for a given Customer sig { - params(customer: String, params: T.any(::Stripe::CustomerPaymentMethodListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(customer: String, params: T.any(::Stripe::CustomerPaymentMethodListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(customer, params = {}, opts = {}); end # Retrieves a PaymentMethod object for a given Customer. sig { - params(customer: String, payment_method: String, params: T.any(::Stripe::CustomerPaymentMethodRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(customer: String, payment_method: String, params: T.any(::Stripe::CustomerPaymentMethodRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def retrieve(customer, payment_method, params = {}, opts = {}); end end @@ -43999,37 +48639,37 @@ module Stripe # However, if the owner already has a default, then it will not change. # To change the default, you should [update the customer](https://docs.stripe.com/docs/api#update_customer) to have a new default_source. sig { - params(customer: String, params: T.any(::Stripe::CustomerPaymentSourceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source)) + params(customer: String, params: T.any(::Stripe::CustomerPaymentSourceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source)) } def create(customer, params = {}, opts = {}); end # Delete a specified source for a given customer. sig { - params(customer: String, id: String, params: T.any(::Stripe::CustomerPaymentSourceDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source)) + params(customer: String, id: String, params: T.any(::Stripe::CustomerPaymentSourceDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source)) } def delete(customer, id, params = {}, opts = {}); end # List sources for a specified customer. sig { - params(customer: String, params: T.any(::Stripe::CustomerPaymentSourceListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(customer: String, params: T.any(::Stripe::CustomerPaymentSourceListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(customer, params = {}, opts = {}); end # Retrieve a specified source for a given customer. sig { - params(customer: String, id: String, params: T.any(::Stripe::CustomerPaymentSourceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source)) + params(customer: String, id: String, params: T.any(::Stripe::CustomerPaymentSourceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source)) } def retrieve(customer, id, params = {}, opts = {}); end # Update a specified source for a given customer. sig { - params(customer: String, id: String, params: T.any(::Stripe::CustomerPaymentSourceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source)) + params(customer: String, id: String, params: T.any(::Stripe::CustomerPaymentSourceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source)) } def update(customer, id, params = {}, opts = {}); end # Verify a specified bank account for a given customer. sig { - params(customer: String, id: String, params: T.any(::Stripe::CustomerPaymentSourceVerifyParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BankAccount) + params(customer: String, id: String, params: T.any(::Stripe::CustomerPaymentSourceVerifyParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::BankAccount) } def verify(customer, id, params = {}, opts = {}); end end @@ -44039,25 +48679,25 @@ module Stripe class CustomerTaxIdService < StripeService # Creates a new tax_id object for a customer. sig { - params(customer: String, params: T.any(::Stripe::CustomerTaxIdCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxId) + params(customer: String, params: T.any(::Stripe::CustomerTaxIdCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxId) } def create(customer, params = {}, opts = {}); end # Deletes an existing tax_id object. sig { - params(customer: String, id: String, params: T.any(::Stripe::CustomerTaxIdDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxId) + params(customer: String, id: String, params: T.any(::Stripe::CustomerTaxIdDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxId) } def delete(customer, id, params = {}, opts = {}); end # Returns a list of tax IDs for a customer. sig { - params(customer: String, params: T.any(::Stripe::CustomerTaxIdListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(customer: String, params: T.any(::Stripe::CustomerTaxIdListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(customer, params = {}, opts = {}); end # Retrieves the tax_id object with the given identifier. sig { - params(customer: String, id: String, params: T.any(::Stripe::CustomerTaxIdRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxId) + params(customer: String, id: String, params: T.any(::Stripe::CustomerTaxIdRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxId) } def retrieve(customer, id, params = {}, opts = {}); end end @@ -44067,7 +48707,7 @@ module Stripe class CustomerSessionService < StripeService # Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources. sig { - params(params: T.any(::Stripe::CustomerSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CustomerSession) + params(params: T.any(::Stripe::CustomerSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CustomerSession) } def create(params = {}, opts = {}); end end @@ -44079,19 +48719,19 @@ module Stripe # # The status of the dispute will change from needs_response to lost. Closing a dispute is irreversible. sig { - params(dispute: String, params: T.any(::Stripe::DisputeCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Dispute) + params(dispute: String, params: T.any(::Stripe::DisputeCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Dispute) } def close(dispute, params = {}, opts = {}); end # Returns a list of your disputes. sig { - params(params: T.any(::Stripe::DisputeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::DisputeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the dispute with the given ID. sig { - params(dispute: String, params: T.any(::Stripe::DisputeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Dispute) + params(dispute: String, params: T.any(::Stripe::DisputeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Dispute) } def retrieve(dispute, params = {}, opts = {}); end @@ -44099,7 +48739,7 @@ module Stripe # # Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our [guide to dispute types](https://docs.stripe.com/docs/disputes/categories). sig { - params(dispute: String, params: T.any(::Stripe::DisputeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Dispute) + params(dispute: String, params: T.any(::Stripe::DisputeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Dispute) } def update(dispute, params = {}, opts = {}); end end @@ -44117,13 +48757,13 @@ module Stripe class ActiveEntitlementService < StripeService # Retrieve a list of active entitlements for a customer sig { - params(params: T.any(::Stripe::Entitlements::ActiveEntitlementListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Entitlements::ActiveEntitlementListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieve an active entitlement sig { - params(id: String, params: T.any(::Stripe::Entitlements::ActiveEntitlementRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Entitlements::ActiveEntitlement) + params(id: String, params: T.any(::Stripe::Entitlements::ActiveEntitlementRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Entitlements::ActiveEntitlement) } def retrieve(id, params = {}, opts = {}); end end @@ -44135,25 +48775,25 @@ module Stripe class FeatureService < StripeService # Creates a feature sig { - params(params: T.any(::Stripe::Entitlements::FeatureCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Entitlements::Feature) + params(params: T.any(::Stripe::Entitlements::FeatureCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Entitlements::Feature) } def create(params = {}, opts = {}); end # Retrieve a list of features sig { - params(params: T.any(::Stripe::Entitlements::FeatureListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Entitlements::FeatureListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a feature sig { - params(id: String, params: T.any(::Stripe::Entitlements::FeatureRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Entitlements::Feature) + params(id: String, params: T.any(::Stripe::Entitlements::FeatureRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Entitlements::Feature) } def retrieve(id, params = {}, opts = {}); end # Update a feature's metadata or permanently deactivate it. sig { - params(id: String, params: T.any(::Stripe::Entitlements::FeatureUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Entitlements::Feature) + params(id: String, params: T.any(::Stripe::Entitlements::FeatureUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Entitlements::Feature) } def update(id, params = {}, opts = {}); end end @@ -44164,13 +48804,13 @@ module Stripe class EphemeralKeyService < StripeService # Creates a short-lived API key for a given resource. sig { - params(params: T.any(::Stripe::EphemeralKeyCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::EphemeralKey) + params(params: T.any(::Stripe::EphemeralKeyCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::EphemeralKey) } def create(params = {}, opts = {}); end # Invalidates a short-lived API key for a given resource. sig { - params(key: String, params: T.any(::Stripe::EphemeralKeyDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::EphemeralKey) + params(key: String, params: T.any(::Stripe::EphemeralKeyDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::EphemeralKey) } def delete(key, params = {}, opts = {}); end end @@ -44180,13 +48820,13 @@ module Stripe class EventService < StripeService # List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://docs.stripe.com/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header). sig { - params(params: T.any(::Stripe::EventListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::EventListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an event if it was created in the last 30 days. Supply the unique identifier of the event, which you might have received in a webhook. sig { - params(id: String, params: T.any(::Stripe::EventRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Event) + params(id: String, params: T.any(::Stripe::EventRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Event) } def retrieve(id, params = {}, opts = {}); end end @@ -44198,7 +48838,7 @@ module Stripe # # Returns a list of objects that contain the rates at which foreign currencies are converted to one another. Only shows the currencies for which Stripe supports. sig { - params(params: T.any(::Stripe::ExchangeRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ExchangeRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end @@ -44206,7 +48846,7 @@ module Stripe # # Retrieves the exchange rates from the given currency to every supported currency. sig { - params(rate_id: String, params: T.any(::Stripe::ExchangeRateRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ExchangeRate) + params(rate_id: String, params: T.any(::Stripe::ExchangeRateRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ExchangeRate) } def retrieve(rate_id, params = {}, opts = {}); end end @@ -44218,19 +48858,19 @@ module Stripe # # All of Stripe's officially supported Client libraries support sending multipart/form-data. sig { - params(params: T.any(::Stripe::FileCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::File) + params(params: T.any(::Stripe::FileCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::File) } def create(params = {}, opts = {}); end # Returns a list of the files that your account has access to. Stripe sorts and returns the files by their creation dates, placing the most recently created files at the top. sig { - params(params: T.any(::Stripe::FileListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::FileListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing file object. After you supply a unique file ID, Stripe returns the corresponding file object. Learn how to [access file contents](https://docs.stripe.com/docs/file-upload#download-file-contents). sig { - params(file: String, params: T.any(::Stripe::FileRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::File) + params(file: String, params: T.any(::Stripe::FileRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::File) } def retrieve(file, params = {}, opts = {}); end end @@ -44240,25 +48880,25 @@ module Stripe class FileLinkService < StripeService # Creates a new file link object. sig { - params(params: T.any(::Stripe::FileLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FileLink) + params(params: T.any(::Stripe::FileLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FileLink) } def create(params = {}, opts = {}); end # Returns a list of file links. sig { - params(params: T.any(::Stripe::FileLinkListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::FileLinkListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the file link with the given ID. sig { - params(link: String, params: T.any(::Stripe::FileLinkRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FileLink) + params(link: String, params: T.any(::Stripe::FileLinkRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FileLink) } def retrieve(link, params = {}, opts = {}); end # Updates an existing file link object. Expired links can no longer be updated. sig { - params(link: String, params: T.any(::Stripe::FileLinkUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FileLink) + params(link: String, params: T.any(::Stripe::FileLinkUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FileLink) } def update(link, params = {}, opts = {}); end end @@ -44278,37 +48918,37 @@ module Stripe attr_reader :owners # Disables your access to a Financial Connections Account. You will no longer be able to access data associated with the account (e.g. balances, transactions). sig { - params(account: String, params: T.any(::Stripe::FinancialConnections::AccountDisconnectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(account: String, params: T.any(::Stripe::FinancialConnections::AccountDisconnectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def disconnect(account, params = {}, opts = {}); end # Returns a list of Financial Connections Account objects. sig { - params(params: T.any(::Stripe::FinancialConnections::AccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::FinancialConnections::AccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Refreshes the data associated with a Financial Connections Account. sig { - params(account: String, params: T.any(::Stripe::FinancialConnections::AccountRefreshParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(account: String, params: T.any(::Stripe::FinancialConnections::AccountRefreshParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def refresh(account, params = {}, opts = {}); end # Retrieves the details of an Financial Connections Account. sig { - params(account: String, params: T.any(::Stripe::FinancialConnections::AccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(account: String, params: T.any(::Stripe::FinancialConnections::AccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def retrieve(account, params = {}, opts = {}); end - # Subscribes to periodic refreshes of data associated with a Financial Connections Account. + # Subscribes to periodic refreshes of data associated with a Financial Connections Account. When the account status is active, data is typically refreshed once a day. sig { - params(account: String, params: T.any(::Stripe::FinancialConnections::AccountSubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(account: String, params: T.any(::Stripe::FinancialConnections::AccountSubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def subscribe(account, params = {}, opts = {}); end # Unsubscribes from periodic refreshes of data associated with a Financial Connections Account. sig { - params(account: String, params: T.any(::Stripe::FinancialConnections::AccountUnsubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(account: String, params: T.any(::Stripe::FinancialConnections::AccountUnsubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def unsubscribe(account, params = {}, opts = {}); end end @@ -44320,7 +48960,7 @@ module Stripe class AccountOwnerService < StripeService # Lists all owners for a given Account sig { - params(account: String, params: T.any(::Stripe::FinancialConnections::AccountOwnerListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(account: String, params: T.any(::Stripe::FinancialConnections::AccountOwnerListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(account, params = {}, opts = {}); end end @@ -44332,13 +48972,13 @@ module Stripe class SessionService < StripeService # To launch the Financial Connections authorization flow, create a Session. The session's client_secret can be used to launch the flow using Stripe.js. sig { - params(params: T.any(::Stripe::FinancialConnections::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Session) + params(params: T.any(::Stripe::FinancialConnections::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Session) } def create(params = {}, opts = {}); end # Retrieves the details of a Financial Connections Session sig { - params(session: String, params: T.any(::Stripe::FinancialConnections::SessionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Session) + params(session: String, params: T.any(::Stripe::FinancialConnections::SessionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Session) } def retrieve(session, params = {}, opts = {}); end end @@ -44350,13 +48990,13 @@ module Stripe class TransactionService < StripeService # Returns a list of Financial Connections Transaction objects. sig { - params(params: T.any(::Stripe::FinancialConnections::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::FinancialConnections::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of a Financial Connections Transaction sig { - params(transaction: String, params: T.any(::Stripe::FinancialConnections::TransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Transaction) + params(transaction: String, params: T.any(::Stripe::FinancialConnections::TransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Transaction) } def retrieve(transaction, params = {}, opts = {}); end end @@ -44374,19 +49014,19 @@ module Stripe class RequestService < StripeService # Creates a ForwardingRequest object. sig { - params(params: T.any(::Stripe::Forwarding::RequestCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Forwarding::Request) + params(params: T.any(::Stripe::Forwarding::RequestCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Forwarding::Request) } def create(params = {}, opts = {}); end # Lists all ForwardingRequest objects. sig { - params(params: T.any(::Stripe::Forwarding::RequestListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Forwarding::RequestListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a ForwardingRequest object. sig { - params(id: String, params: T.any(::Stripe::Forwarding::RequestRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Forwarding::Request) + params(id: String, params: T.any(::Stripe::Forwarding::RequestRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Forwarding::Request) } def retrieve(id, params = {}, opts = {}); end end @@ -44405,13 +49045,13 @@ module Stripe class VerificationReportService < StripeService # List all verification reports. sig { - params(params: T.any(::Stripe::Identity::VerificationReportListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Identity::VerificationReportListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves an existing VerificationReport sig { - params(report: String, params: T.any(::Stripe::Identity::VerificationReportRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationReport) + params(report: String, params: T.any(::Stripe::Identity::VerificationReportRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationReport) } def retrieve(report, params = {}, opts = {}); end end @@ -44425,7 +49065,7 @@ module Stripe # # Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#cancel). sig { - params(session: String, params: T.any(::Stripe::Identity::VerificationSessionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(session: String, params: T.any(::Stripe::Identity::VerificationSessionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationSession) } def cancel(session, params = {}, opts = {}); end @@ -44437,13 +49077,13 @@ module Stripe # # Related guide: [Verify your users' identity documents](https://docs.stripe.com/docs/identity/verify-identity-documents) sig { - params(params: T.any(::Stripe::Identity::VerificationSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(params: T.any(::Stripe::Identity::VerificationSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationSession) } def create(params = {}, opts = {}); end # Returns a list of VerificationSessions sig { - params(params: T.any(::Stripe::Identity::VerificationSessionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Identity::VerificationSessionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end @@ -44467,7 +49107,7 @@ module Stripe # # [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#redact). sig { - params(session: String, params: T.any(::Stripe::Identity::VerificationSessionRedactParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(session: String, params: T.any(::Stripe::Identity::VerificationSessionRedactParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationSession) } def redact(session, params = {}, opts = {}); end @@ -44476,7 +49116,7 @@ module Stripe # When the session status is requires_input, you can use this method to retrieve a valid # client_secret or url to allow re-submission. sig { - params(session: String, params: T.any(::Stripe::Identity::VerificationSessionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(session: String, params: T.any(::Stripe::Identity::VerificationSessionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationSession) } def retrieve(session, params = {}, opts = {}); end @@ -44485,7 +49125,7 @@ module Stripe # When the session status is requires_input, you can use this method to update the # verification check and options. sig { - params(session: String, params: T.any(::Stripe::Identity::VerificationSessionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(session: String, params: T.any(::Stripe::Identity::VerificationSessionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationSession) } def update(session, params = {}, opts = {}); end end @@ -44497,7 +49137,7 @@ module Stripe attr_reader :line_items # Adds multiple line items to an invoice. This is only possible when an invoice is still a draft. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceAddLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceAddLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def add_lines(invoice, params = {}, opts = {}); end @@ -44512,13 +49152,13 @@ module Stripe # # See: [Partial payments](https://docs.stripe.com/docs/invoicing/partial-payments) to learn more. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceAttachPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceAttachPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def attach_payment(invoice, params = {}, opts = {}); end # This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](#pay_invoice) or send](https://docs.stripe.com/api#finalize_invoice) the invoice to your customers. sig { - params(params: T.any(::Stripe::InvoiceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def create(params = {}, opts = {}); end @@ -44532,49 +49172,49 @@ module Stripe # # Note: Currency conversion calculations use the latest exchange rates. Exchange rates may vary between the time of the preview and the time of the actual invoice creation. [Learn more](https://docs.stripe.com/currencies/conversions) sig { - params(params: T.any(::Stripe::InvoiceCreatePreviewParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceCreatePreviewParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def create_preview(params = {}, opts = {}); end # Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api#void_invoice). sig { - params(invoice: String, params: T.any(::Stripe::InvoiceDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def delete(invoice, params = {}, opts = {}); end # Stripe automatically finalizes drafts before sending and attempting payment on invoices. However, if you'd like to finalize a draft invoice manually, you can do so using this method. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceFinalizeInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceFinalizeInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def finalize_invoice(invoice, params = {}, opts = {}); end # You can list all invoices, or list the invoices for a specific customer. The invoices are returned sorted by creation date, with the most recently created invoices appearing first. sig { - params(params: T.any(::Stripe::InvoiceListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::InvoiceListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Marking an invoice as uncollectible is useful for keeping track of bad debts that can be written off for accounting purposes. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceMarkUncollectibleParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceMarkUncollectibleParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def mark_uncollectible(invoice, params = {}, opts = {}); end # Stripe automatically creates and then attempts to collect payment on invoices for customers on subscriptions according to your [subscriptions settings](https://dashboard.stripe.com/account/billing/automatic). However, if you'd like to attempt payment on an invoice out of the normal collection schedule or for some other reason, you can do so. sig { - params(invoice: String, params: T.any(::Stripe::InvoicePayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoicePayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def pay(invoice, params = {}, opts = {}); end # Removes multiple line items from an invoice. This is only possible when an invoice is still a draft. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceRemoveLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceRemoveLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def remove_lines(invoice, params = {}, opts = {}); end # Retrieves the invoice with the given ID. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def retrieve(invoice, params = {}, opts = {}); end @@ -44583,7 +49223,7 @@ module Stripe # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up # to an hour behind during outages. Search functionality is not available to merchants in India. sig { - params(params: T.any(::Stripe::InvoiceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::InvoiceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def search(params = {}, opts = {}); end @@ -44591,7 +49231,7 @@ module Stripe # # Requests made in test-mode result in no emails being sent, despite sending an invoice.sent event. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceSendInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceSendInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def send_invoice(invoice, params = {}, opts = {}); end @@ -44602,13 +49242,13 @@ module Stripe # sending reminders for, or [automatically reconciling](https://docs.stripe.com/docs/billing/invoices/reconciliation) invoices, pass # auto_advance=false. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def update(invoice, params = {}, opts = {}); end # Updates multiple line items on an invoice. This is only possible when an invoice is still a draft. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceUpdateLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceUpdateLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def update_lines(invoice, params = {}, opts = {}); end @@ -44616,7 +49256,7 @@ module Stripe # # Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api#create_invoice) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceVoidInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceVoidInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def void_invoice(invoice, params = {}, opts = {}); end end @@ -44626,7 +49266,7 @@ module Stripe class InvoiceLineItemService < StripeService # When retrieving an invoice, you'll get a lines property containing the total count of line items and the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(invoice: String, params: T.any(::Stripe::InvoiceLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(invoice, params = {}, opts = {}); end @@ -44635,7 +49275,7 @@ module Stripe # item and the invoice line item, so updates on this endpoint will propagate to the invoice item as well. # Updating an invoice's line item is only possible before the invoice is finalized. sig { - params(invoice: String, line_item_id: String, params: T.any(::Stripe::InvoiceLineItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceLineItem) + params(invoice: String, line_item_id: String, params: T.any(::Stripe::InvoiceLineItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceLineItem) } def update(invoice, line_item_id, params = {}, opts = {}); end end @@ -44645,31 +49285,31 @@ module Stripe class InvoiceItemService < StripeService # Creates an item to be added to a draft invoice (up to 250 items per invoice). If no invoice is specified, the item will be on the next invoice created for the customer specified. sig { - params(params: T.any(::Stripe::InvoiceItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceItem) + params(params: T.any(::Stripe::InvoiceItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceItem) } def create(params = {}, opts = {}); end # Deletes an invoice item, removing it from an invoice. Deleting invoice items is only possible when they're not attached to invoices, or if it's attached to a draft invoice. sig { - params(invoiceitem: String, params: T.any(::Stripe::InvoiceItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceItem) + params(invoiceitem: String, params: T.any(::Stripe::InvoiceItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceItem) } def delete(invoiceitem, params = {}, opts = {}); end # Returns a list of your invoice items. Invoice items are returned sorted by creation date, with the most recently created invoice items appearing first. sig { - params(params: T.any(::Stripe::InvoiceItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::InvoiceItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the invoice item with the given ID. sig { - params(invoiceitem: String, params: T.any(::Stripe::InvoiceItemRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceItem) + params(invoiceitem: String, params: T.any(::Stripe::InvoiceItemRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceItem) } def retrieve(invoiceitem, params = {}, opts = {}); end # Updates the amount or description of an invoice item on an upcoming invoice. Updating an invoice item is only possible before the invoice it's attached to is closed. sig { - params(invoiceitem: String, params: T.any(::Stripe::InvoiceItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceItem) + params(invoiceitem: String, params: T.any(::Stripe::InvoiceItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceItem) } def update(invoiceitem, params = {}, opts = {}); end end @@ -44679,13 +49319,13 @@ module Stripe class InvoicePaymentService < StripeService # When retrieving an invoice, there is an includable payments property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of payments. sig { - params(params: T.any(::Stripe::InvoicePaymentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::InvoicePaymentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the invoice payment with the given ID. sig { - params(invoice_payment: String, params: T.any(::Stripe::InvoicePaymentRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoicePayment) + params(invoice_payment: String, params: T.any(::Stripe::InvoicePaymentRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoicePayment) } def retrieve(invoice_payment, params = {}, opts = {}); end end @@ -44695,25 +49335,25 @@ module Stripe class InvoiceRenderingTemplateService < StripeService # Updates the status of an invoice rendering template to ‘archived' so no new Stripe objects (customers, invoices, etc.) can reference it. The template can also no longer be updated. However, if the template is already set on a Stripe object, it will continue to be applied on invoices generated by it. sig { - params(template: String, params: T.any(::Stripe::InvoiceRenderingTemplateArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceRenderingTemplate) + params(template: String, params: T.any(::Stripe::InvoiceRenderingTemplateArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceRenderingTemplate) } def archive(template, params = {}, opts = {}); end # List all templates, ordered by creation date, with the most recently created template appearing first. sig { - params(params: T.any(::Stripe::InvoiceRenderingTemplateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::InvoiceRenderingTemplateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves an invoice rendering template with the given ID. It by default returns the latest version of the template. Optionally, specify a version to see previous versions. sig { - params(template: String, params: T.any(::Stripe::InvoiceRenderingTemplateRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceRenderingTemplate) + params(template: String, params: T.any(::Stripe::InvoiceRenderingTemplateRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceRenderingTemplate) } def retrieve(template, params = {}, opts = {}); end # Unarchive an invoice rendering template so it can be used on new Stripe objects again. sig { - params(template: String, params: T.any(::Stripe::InvoiceRenderingTemplateUnarchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceRenderingTemplate) + params(template: String, params: T.any(::Stripe::InvoiceRenderingTemplateUnarchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceRenderingTemplate) } def unarchive(template, params = {}, opts = {}); end end @@ -44738,32 +49378,32 @@ module Stripe # [Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations) flow. # This method is deprecated. Instead, [respond directly to the webhook request to approve an authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). sig { - params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def approve(authorization, params = {}, opts = {}); end # [Deprecated] Declines a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations) flow. # This method is deprecated. Instead, [respond directly to the webhook request to decline an authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). sig { - params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationDeclineParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationDeclineParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def decline(authorization, params = {}, opts = {}); end # Returns a list of Issuing Authorization objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::AuthorizationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::AuthorizationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves an Issuing Authorization object. sig { - params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def retrieve(authorization, params = {}, opts = {}); end # Updates the specified Issuing Authorization object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def update(authorization, params = {}, opts = {}); end end @@ -44775,25 +49415,25 @@ module Stripe class CardService < StripeService # Creates an Issuing Card object. sig { - params(params: T.any(::Stripe::Issuing::CardCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Card) + params(params: T.any(::Stripe::Issuing::CardCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Card) } def create(params = {}, opts = {}); end # Returns a list of Issuing Card objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::CardListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::CardListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves an Issuing Card object. sig { - params(card: String, params: T.any(::Stripe::Issuing::CardRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Card) + params(card: String, params: T.any(::Stripe::Issuing::CardRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Card) } def retrieve(card, params = {}, opts = {}); end # Updates the specified Issuing Card object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(card: String, params: T.any(::Stripe::Issuing::CardUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Card) + params(card: String, params: T.any(::Stripe::Issuing::CardUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Card) } def update(card, params = {}, opts = {}); end end @@ -44805,25 +49445,25 @@ module Stripe class CardholderService < StripeService # Creates a new Issuing Cardholder object that can be issued cards. sig { - params(params: T.any(::Stripe::Issuing::CardholderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Cardholder) + params(params: T.any(::Stripe::Issuing::CardholderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Cardholder) } def create(params = {}, opts = {}); end # Returns a list of Issuing Cardholder objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::CardholderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::CardholderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves an Issuing Cardholder object. sig { - params(cardholder: String, params: T.any(::Stripe::Issuing::CardholderRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Cardholder) + params(cardholder: String, params: T.any(::Stripe::Issuing::CardholderRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Cardholder) } def retrieve(cardholder, params = {}, opts = {}); end # Updates the specified Issuing Cardholder object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(cardholder: String, params: T.any(::Stripe::Issuing::CardholderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Cardholder) + params(cardholder: String, params: T.any(::Stripe::Issuing::CardholderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Cardholder) } def update(cardholder, params = {}, opts = {}); end end @@ -44835,31 +49475,31 @@ module Stripe class DisputeService < StripeService # Creates an Issuing Dispute object. Individual pieces of evidence within the evidence object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to [Dispute reasons and evidence](https://docs.stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence) for more details about evidence requirements. sig { - params(params: T.any(::Stripe::Issuing::DisputeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Dispute) + params(params: T.any(::Stripe::Issuing::DisputeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Dispute) } def create(params = {}, opts = {}); end # Returns a list of Issuing Dispute objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::DisputeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::DisputeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves an Issuing Dispute object. sig { - params(dispute: String, params: T.any(::Stripe::Issuing::DisputeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Dispute) + params(dispute: String, params: T.any(::Stripe::Issuing::DisputeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Dispute) } def retrieve(dispute, params = {}, opts = {}); end # Submits an Issuing Dispute to the card network. Stripe validates that all evidence fields required for the dispute's reason are present. For more details, see [Dispute reasons and evidence](https://docs.stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence). sig { - params(dispute: String, params: T.any(::Stripe::Issuing::DisputeSubmitParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Dispute) + params(dispute: String, params: T.any(::Stripe::Issuing::DisputeSubmitParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Dispute) } def submit(dispute, params = {}, opts = {}); end # Updates the specified Issuing Dispute object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on the evidence object can be unset by passing in an empty string. sig { - params(dispute: String, params: T.any(::Stripe::Issuing::DisputeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Dispute) + params(dispute: String, params: T.any(::Stripe::Issuing::DisputeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Dispute) } def update(dispute, params = {}, opts = {}); end end @@ -44871,25 +49511,25 @@ module Stripe class PersonalizationDesignService < StripeService # Creates a personalization design object. sig { - params(params: T.any(::Stripe::Issuing::PersonalizationDesignCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::PersonalizationDesign) + params(params: T.any(::Stripe::Issuing::PersonalizationDesignCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::PersonalizationDesign) } def create(params = {}, opts = {}); end # Returns a list of personalization design objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::PersonalizationDesignListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::PersonalizationDesignListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a personalization design object. sig { - params(personalization_design: String, params: T.any(::Stripe::Issuing::PersonalizationDesignRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::PersonalizationDesign) + params(personalization_design: String, params: T.any(::Stripe::Issuing::PersonalizationDesignRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::PersonalizationDesign) } def retrieve(personalization_design, params = {}, opts = {}); end # Updates a card personalization object. sig { - params(personalization_design: String, params: T.any(::Stripe::Issuing::PersonalizationDesignUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::PersonalizationDesign) + params(personalization_design: String, params: T.any(::Stripe::Issuing::PersonalizationDesignUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::PersonalizationDesign) } def update(personalization_design, params = {}, opts = {}); end end @@ -44901,13 +49541,13 @@ module Stripe class PhysicalBundleService < StripeService # Returns a list of physical bundle objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::PhysicalBundleListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::PhysicalBundleListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a physical bundle object. sig { - params(physical_bundle: String, params: T.any(::Stripe::Issuing::PhysicalBundleRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::PhysicalBundle) + params(physical_bundle: String, params: T.any(::Stripe::Issuing::PhysicalBundleRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::PhysicalBundle) } def retrieve(physical_bundle, params = {}, opts = {}); end end @@ -44919,19 +49559,19 @@ module Stripe class TokenService < StripeService # Lists all Issuing Token objects for a given card. sig { - params(params: T.any(::Stripe::Issuing::TokenListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::TokenListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves an Issuing Token object. sig { - params(token: String, params: T.any(::Stripe::Issuing::TokenRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Token) + params(token: String, params: T.any(::Stripe::Issuing::TokenRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Token) } def retrieve(token, params = {}, opts = {}); end # Attempts to update the specified Issuing Token object to the status specified. sig { - params(token: String, params: T.any(::Stripe::Issuing::TokenUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Token) + params(token: String, params: T.any(::Stripe::Issuing::TokenUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Token) } def update(token, params = {}, opts = {}); end end @@ -44943,19 +49583,19 @@ module Stripe class TransactionService < StripeService # Returns a list of Issuing Transaction objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves an Issuing Transaction object. sig { - params(transaction: String, params: T.any(::Stripe::Issuing::TransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Transaction) + params(transaction: String, params: T.any(::Stripe::Issuing::TransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Transaction) } def retrieve(transaction, params = {}, opts = {}); end # Updates the specified Issuing Transaction object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(transaction: String, params: T.any(::Stripe::Issuing::TransactionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Transaction) + params(transaction: String, params: T.any(::Stripe::Issuing::TransactionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Transaction) } def update(transaction, params = {}, opts = {}); end end @@ -44966,17 +49606,34 @@ module Stripe class MandateService < StripeService # Retrieves a Mandate object. sig { - params(mandate: String, params: T.any(::Stripe::MandateRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Mandate) + params(mandate: String, params: T.any(::Stripe::MandateRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Mandate) } def retrieve(mandate, params = {}, opts = {}); end end end # typed: true +module Stripe + class PaymentAttemptRecordService < StripeService + # List all the Payment Attempt Records attached to the specified Payment Record. + sig { + params(params: T.any(::Stripe::PaymentAttemptRecordListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) + } + def list(params = {}, opts = {}); end + + # Retrieves a Payment Attempt Record with the given ID + sig { + params(id: String, params: T.any(::Stripe::PaymentAttemptRecordRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentAttemptRecord) + } + def retrieve(id, params = {}, opts = {}); end + end +end +# typed: true module Stripe class PaymentIntentService < StripeService + attr_reader :amount_details_line_items # Manually reconcile the remaining amount for a customer_balance PaymentIntent. sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentApplyCustomerBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentApplyCustomerBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def apply_customer_balance(intent, params = {}, opts = {}); end @@ -44986,7 +49643,7 @@ module Stripe # # You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead. sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def cancel(intent, params = {}, opts = {}); end @@ -44996,7 +49653,7 @@ module Stripe # # Learn more about [separate authorization and capture](https://docs.stripe.com/docs/payments/capture-later). sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def capture(intent, params = {}, opts = {}); end @@ -45031,7 +49688,7 @@ module Stripe # After this limit is reached, any further calls to this endpoint will # transition the PaymentIntent to the canceled state. sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def confirm(intent, params = {}, opts = {}); end @@ -45046,7 +49703,7 @@ module Stripe # available in the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) when you supply # confirm=true. sig { - params(params: T.any(::Stripe::PaymentIntentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(params: T.any(::Stripe::PaymentIntentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def create(params = {}, opts = {}); end @@ -45075,13 +49732,13 @@ module Stripe # # Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentIncrementAuthorizationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentIncrementAuthorizationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def increment_authorization(intent, params = {}, opts = {}); end # Returns a list of PaymentIntents. sig { - params(params: T.any(::Stripe::PaymentIntentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PaymentIntentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end @@ -45091,7 +49748,7 @@ module Stripe # # If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api#payment_intent_object) object reference for more details. sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def retrieve(intent, params = {}, opts = {}); end @@ -45100,7 +49757,7 @@ module Stripe # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up # to an hour behind during outages. Search functionality is not available to merchants in India. sig { - params(params: T.any(::Stripe::PaymentIntentSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::PaymentIntentSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def search(params = {}, opts = {}); end @@ -45112,42 +49769,52 @@ module Stripe # update and confirm at the same time, we recommend updating properties through # the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) instead. sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def update(intent, params = {}, opts = {}); end # Verifies microdeposits on a PaymentIntent object. sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def verify_microdeposits(intent, params = {}, opts = {}); end end end # typed: true +module Stripe + class PaymentIntentAmountDetailsLineItemService < StripeService + # Lists all LineItems of a given PaymentIntent. + sig { + params(intent: String, params: T.any(::Stripe::PaymentIntentAmountDetailsLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) + } + def list(intent, params = {}, opts = {}); end + end +end +# typed: true module Stripe class PaymentLinkService < StripeService attr_reader :line_items # Creates a payment link. sig { - params(params: T.any(::Stripe::PaymentLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentLink) + params(params: T.any(::Stripe::PaymentLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentLink) } def create(params = {}, opts = {}); end # Returns a list of your payment links. sig { - params(params: T.any(::Stripe::PaymentLinkListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PaymentLinkListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieve a payment link. sig { - params(payment_link: String, params: T.any(::Stripe::PaymentLinkRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentLink) + params(payment_link: String, params: T.any(::Stripe::PaymentLinkRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentLink) } def retrieve(payment_link, params = {}, opts = {}); end # Updates a payment link. sig { - params(payment_link: String, params: T.any(::Stripe::PaymentLinkUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentLink) + params(payment_link: String, params: T.any(::Stripe::PaymentLinkUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentLink) } def update(payment_link, params = {}, opts = {}); end end @@ -45157,7 +49824,7 @@ module Stripe class PaymentLinkLineItemService < StripeService # When retrieving a payment link, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. sig { - params(payment_link: String, params: T.any(::Stripe::PaymentLinkLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(payment_link: String, params: T.any(::Stripe::PaymentLinkLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(payment_link, params = {}, opts = {}); end end @@ -45179,7 +49846,7 @@ module Stripe # set [invoice_settings.default_payment_method](https://docs.stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method), # on the Customer to the PaymentMethod's ID. sig { - params(payment_method: String, params: T.any(::Stripe::PaymentMethodAttachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(payment_method: String, params: T.any(::Stripe::PaymentMethodAttachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def attach(payment_method, params = {}, opts = {}); end @@ -45187,31 +49854,31 @@ module Stripe # # Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the SetupIntent](https://docs.stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment. sig { - params(params: T.any(::Stripe::PaymentMethodCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(params: T.any(::Stripe::PaymentMethodCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def create(params = {}, opts = {}); end # Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer. sig { - params(payment_method: String, params: T.any(::Stripe::PaymentMethodDetachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(payment_method: String, params: T.any(::Stripe::PaymentMethodDetachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def detach(payment_method, params = {}, opts = {}); end # Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://docs.stripe.com/docs/api/payment_methods/customer_list) API instead. sig { - params(params: T.any(::Stripe::PaymentMethodListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PaymentMethodListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use [Retrieve a Customer's PaymentMethods](https://docs.stripe.com/docs/api/payment_methods/customer) sig { - params(payment_method: String, params: T.any(::Stripe::PaymentMethodRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(payment_method: String, params: T.any(::Stripe::PaymentMethodRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def retrieve(payment_method, params = {}, opts = {}); end # Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated. sig { - params(payment_method: String, params: T.any(::Stripe::PaymentMethodUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(payment_method: String, params: T.any(::Stripe::PaymentMethodUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def update(payment_method, params = {}, opts = {}); end end @@ -45221,25 +49888,25 @@ module Stripe class PaymentMethodConfigurationService < StripeService # Creates a payment method configuration sig { - params(params: T.any(::Stripe::PaymentMethodConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodConfiguration) + params(params: T.any(::Stripe::PaymentMethodConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodConfiguration) } def create(params = {}, opts = {}); end # List payment method configurations sig { - params(params: T.any(::Stripe::PaymentMethodConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PaymentMethodConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieve payment method configuration sig { - params(configuration: String, params: T.any(::Stripe::PaymentMethodConfigurationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodConfiguration) + params(configuration: String, params: T.any(::Stripe::PaymentMethodConfigurationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodConfiguration) } def retrieve(configuration, params = {}, opts = {}); end # Update payment method configuration sig { - params(configuration: String, params: T.any(::Stripe::PaymentMethodConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodConfiguration) + params(configuration: String, params: T.any(::Stripe::PaymentMethodConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodConfiguration) } def update(configuration, params = {}, opts = {}); end end @@ -45249,25 +49916,25 @@ module Stripe class PaymentMethodDomainService < StripeService # Creates a payment method domain. sig { - params(params: T.any(::Stripe::PaymentMethodDomainCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodDomain) + params(params: T.any(::Stripe::PaymentMethodDomainCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodDomain) } def create(params = {}, opts = {}); end # Lists the details of existing payment method domains. sig { - params(params: T.any(::Stripe::PaymentMethodDomainListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PaymentMethodDomainListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing payment method domain. sig { - params(payment_method_domain: String, params: T.any(::Stripe::PaymentMethodDomainRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodDomain) + params(payment_method_domain: String, params: T.any(::Stripe::PaymentMethodDomainRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodDomain) } def retrieve(payment_method_domain, params = {}, opts = {}); end # Updates an existing payment method domain. sig { - params(payment_method_domain: String, params: T.any(::Stripe::PaymentMethodDomainUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodDomain) + params(payment_method_domain: String, params: T.any(::Stripe::PaymentMethodDomainUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodDomain) } def update(payment_method_domain, params = {}, opts = {}); end @@ -45278,17 +49945,76 @@ module Stripe # # Related guides: [Payment method domains](https://docs.stripe.com/docs/payments/payment-methods/pmd-registration). sig { - params(payment_method_domain: String, params: T.any(::Stripe::PaymentMethodDomainValidateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodDomain) + params(payment_method_domain: String, params: T.any(::Stripe::PaymentMethodDomainValidateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodDomain) } def validate(payment_method_domain, params = {}, opts = {}); end end end # typed: true +module Stripe + class PaymentRecordService < StripeService + # Report a new Payment Record. You may report a Payment Record as it is + # initialized and later report updates through the other report_* methods, or report Payment + # Records in a terminal state directly, through this method. + sig { + params(params: T.any(::Stripe::PaymentRecordReportPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_payment(params = {}, opts = {}); end + + # Report a new payment attempt on the specified Payment Record. A new payment + # attempt can only be specified if all other payment attempts are canceled or failed. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportPaymentAttemptParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_payment_attempt(id, params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # was canceled. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportPaymentAttemptCanceledParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_payment_attempt_canceled(id, params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # failed or errored. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportPaymentAttemptFailedParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_payment_attempt_failed(id, params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # was guaranteed. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportPaymentAttemptGuaranteedParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_payment_attempt_guaranteed(id, params = {}, opts = {}); end + + # Report informational updates on the specified Payment Record. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportPaymentAttemptInformationalParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_payment_attempt_informational(id, params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # was refunded. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportRefundParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_refund(id, params = {}, opts = {}); end + + # Retrieves a Payment Record with the given ID + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def retrieve(id, params = {}, opts = {}); end + end +end +# typed: true module Stripe class PayoutService < StripeService # You can cancel a previously created payout if its status is pending. Stripe refunds the funds to your available balance. You can't cancel automatic Stripe payouts. sig { - params(payout: String, params: T.any(::Stripe::PayoutCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(payout: String, params: T.any(::Stripe::PayoutCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Payout) } def cancel(payout, params = {}, opts = {}); end @@ -45298,33 +50024,33 @@ module Stripe # # If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://docs.stripe.com/api#balance_object) details available and pending amounts by source type. sig { - params(params: T.any(::Stripe::PayoutCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(params: T.any(::Stripe::PayoutCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Payout) } def create(params = {}, opts = {}); end # Returns a list of existing payouts sent to third-party bank accounts or payouts that Stripe sent to you. The payouts return in sorted order, with the most recently created payouts appearing first. sig { - params(params: T.any(::Stripe::PayoutListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PayoutListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing payout. Supply the unique payout ID from either a payout creation request or the payout list. Stripe returns the corresponding payout information. sig { - params(payout: String, params: T.any(::Stripe::PayoutRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(payout: String, params: T.any(::Stripe::PayoutRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Payout) } def retrieve(payout, params = {}, opts = {}); end - # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead. + # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead. # # By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required. sig { - params(payout: String, params: T.any(::Stripe::PayoutReverseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(payout: String, params: T.any(::Stripe::PayoutReverseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Payout) } def reverse(payout, params = {}, opts = {}); end # Updates the specified payout by setting the values of the parameters you pass. We don't change parameters that you don't provide. This request only accepts the metadata as arguments. sig { - params(payout: String, params: T.any(::Stripe::PayoutUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(payout: String, params: T.any(::Stripe::PayoutUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Payout) } def update(payout, params = {}, opts = {}); end end @@ -45334,31 +50060,31 @@ module Stripe class PlanService < StripeService # You can now model subscriptions more flexibly using the [Prices API](https://docs.stripe.com/api#prices). It replaces the Plans API and is backwards compatible to simplify your migration. sig { - params(params: T.any(::Stripe::PlanCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan) + params(params: T.any(::Stripe::PlanCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Plan) } def create(params = {}, opts = {}); end # Deleting plans means new subscribers can't be added. Existing subscribers aren't affected. sig { - params(plan: String, params: T.any(::Stripe::PlanDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan) + params(plan: String, params: T.any(::Stripe::PlanDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Plan) } def delete(plan, params = {}, opts = {}); end # Returns a list of your plans. sig { - params(params: T.any(::Stripe::PlanListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PlanListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the plan with the given ID. sig { - params(plan: String, params: T.any(::Stripe::PlanRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan) + params(plan: String, params: T.any(::Stripe::PlanRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Plan) } def retrieve(plan, params = {}, opts = {}); end # Updates the specified plan by setting the values of the parameters passed. Any parameters not provided are left unchanged. By design, you cannot change a plan's ID, amount, currency, or billing cycle. sig { - params(plan: String, params: T.any(::Stripe::PlanUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan) + params(plan: String, params: T.any(::Stripe::PlanUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Plan) } def update(plan, params = {}, opts = {}); end end @@ -45368,19 +50094,19 @@ module Stripe class PriceService < StripeService # Creates a new [Price for an existing Product](https://docs.stripe.com/api/prices). The Price can be recurring or one-time. sig { - params(params: T.any(::Stripe::PriceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Price) + params(params: T.any(::Stripe::PriceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Price) } def create(params = {}, opts = {}); end # Returns a list of your active prices, excluding [inline prices](https://docs.stripe.com/docs/products-prices/pricing-models#inline-pricing). For the list of inactive prices, set active to false. sig { - params(params: T.any(::Stripe::PriceListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PriceListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the price with the given ID. sig { - params(price: String, params: T.any(::Stripe::PriceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Price) + params(price: String, params: T.any(::Stripe::PriceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Price) } def retrieve(price, params = {}, opts = {}); end @@ -45389,13 +50115,13 @@ module Stripe # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up # to an hour behind during outages. Search functionality is not available to merchants in India. sig { - params(params: T.any(::Stripe::PriceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::PriceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def search(params = {}, opts = {}); end # Updates the specified price by setting the values of the parameters passed. Any parameters not provided are left unchanged. sig { - params(price: String, params: T.any(::Stripe::PriceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Price) + params(price: String, params: T.any(::Stripe::PriceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Price) } def update(price, params = {}, opts = {}); end end @@ -45406,25 +50132,25 @@ module Stripe attr_reader :features # Creates a new product object. sig { - params(params: T.any(::Stripe::ProductCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Product) + params(params: T.any(::Stripe::ProductCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Product) } def create(params = {}, opts = {}); end # Delete a product. Deleting a product is only possible if it has no prices associated with it. Additionally, deleting a product with type=good is only possible if it has no SKUs associated with it. sig { - params(id: String, params: T.any(::Stripe::ProductDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Product) + params(id: String, params: T.any(::Stripe::ProductDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Product) } def delete(id, params = {}, opts = {}); end # Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first. sig { - params(params: T.any(::Stripe::ProductListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ProductListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing product. Supply the unique product ID from either a product creation request or the product list, and Stripe will return the corresponding product information. sig { - params(id: String, params: T.any(::Stripe::ProductRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Product) + params(id: String, params: T.any(::Stripe::ProductRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Product) } def retrieve(id, params = {}, opts = {}); end @@ -45433,13 +50159,13 @@ module Stripe # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up # to an hour behind during outages. Search functionality is not available to merchants in India. sig { - params(params: T.any(::Stripe::ProductSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::ProductSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def search(params = {}, opts = {}); end # Updates the specific product by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(id: String, params: T.any(::Stripe::ProductUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Product) + params(id: String, params: T.any(::Stripe::ProductUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Product) } def update(id, params = {}, opts = {}); end end @@ -45449,25 +50175,25 @@ module Stripe class ProductFeatureService < StripeService # Creates a product_feature, which represents a feature attachment to a product sig { - params(product: String, params: T.any(::Stripe::ProductFeatureCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ProductFeature) + params(product: String, params: T.any(::Stripe::ProductFeatureCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ProductFeature) } def create(product, params = {}, opts = {}); end # Deletes the feature attachment to a product sig { - params(product: String, id: String, params: T.any(::Stripe::ProductFeatureDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ProductFeature) + params(product: String, id: String, params: T.any(::Stripe::ProductFeatureDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ProductFeature) } def delete(product, id, params = {}, opts = {}); end # Retrieve a list of features for a product sig { - params(product: String, params: T.any(::Stripe::ProductFeatureListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(product: String, params: T.any(::Stripe::ProductFeatureListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(product, params = {}, opts = {}); end # Retrieves a product_feature, which represents a feature attachment to a product sig { - params(product: String, id: String, params: T.any(::Stripe::ProductFeatureRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ProductFeature) + params(product: String, id: String, params: T.any(::Stripe::ProductFeatureRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ProductFeature) } def retrieve(product, id, params = {}, opts = {}); end end @@ -45477,25 +50203,25 @@ module Stripe class PromotionCodeService < StripeService # A promotion code points to an underlying promotion. You can optionally restrict the code to a specific customer, redemption limit, and expiration date. sig { - params(params: T.any(::Stripe::PromotionCodeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PromotionCode) + params(params: T.any(::Stripe::PromotionCodeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PromotionCode) } def create(params = {}, opts = {}); end # Returns a list of your promotion codes. sig { - params(params: T.any(::Stripe::PromotionCodeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PromotionCodeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the promotion code with the given ID. In order to retrieve a promotion code by the customer-facing code use [list](https://docs.stripe.com/docs/api/promotion_codes/list) with the desired code. sig { - params(promotion_code: String, params: T.any(::Stripe::PromotionCodeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PromotionCode) + params(promotion_code: String, params: T.any(::Stripe::PromotionCodeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PromotionCode) } def retrieve(promotion_code, params = {}, opts = {}); end # Updates the specified promotion code by setting the values of the parameters passed. Most fields are, by design, not editable. sig { - params(promotion_code: String, params: T.any(::Stripe::PromotionCodeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PromotionCode) + params(promotion_code: String, params: T.any(::Stripe::PromotionCodeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PromotionCode) } def update(promotion_code, params = {}, opts = {}); end end @@ -45507,31 +50233,31 @@ module Stripe attr_reader :line_items # Accepts the specified quote. sig { - params(quote: String, params: T.any(::Stripe::QuoteAcceptParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(quote: String, params: T.any(::Stripe::QuoteAcceptParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def accept(quote, params = {}, opts = {}); end # Cancels the quote. sig { - params(quote: String, params: T.any(::Stripe::QuoteCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(quote: String, params: T.any(::Stripe::QuoteCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def cancel(quote, params = {}, opts = {}); end # A quote models prices and services for a customer. Default options for header, description, footer, and expires_at can be set in the dashboard via the [quote template](https://dashboard.stripe.com/settings/billing/quote). sig { - params(params: T.any(::Stripe::QuoteCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(params: T.any(::Stripe::QuoteCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def create(params = {}, opts = {}); end # Finalizes the quote. sig { - params(quote: String, params: T.any(::Stripe::QuoteFinalizeQuoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(quote: String, params: T.any(::Stripe::QuoteFinalizeQuoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def finalize_quote(quote, params = {}, opts = {}); end # Returns a list of your quotes. sig { - params(params: T.any(::Stripe::QuoteListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::QuoteListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end @@ -45543,13 +50269,13 @@ module Stripe # Retrieves the quote with the given ID. sig { - params(quote: String, params: T.any(::Stripe::QuoteRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(quote: String, params: T.any(::Stripe::QuoteRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def retrieve(quote, params = {}, opts = {}); end # A quote models prices and services for a customer. sig { - params(quote: String, params: T.any(::Stripe::QuoteUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(quote: String, params: T.any(::Stripe::QuoteUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def update(quote, params = {}, opts = {}); end end @@ -45559,7 +50285,7 @@ module Stripe class QuoteComputedUpfrontLineItemsService < StripeService # When retrieving a quote, there is an includable [computed.upfront.line_items](https://stripe.com/docs/api/quotes/object#quote_object-computed-upfront-line_items) property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of upfront line items. sig { - params(quote: String, params: T.any(::Stripe::QuoteComputedUpfrontLineItemsListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(quote: String, params: T.any(::Stripe::QuoteComputedUpfrontLineItemsListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(quote, params = {}, opts = {}); end end @@ -45569,7 +50295,7 @@ module Stripe class QuoteLineItemService < StripeService # When retrieving a quote, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. sig { - params(quote: String, params: T.any(::Stripe::QuoteLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(quote: String, params: T.any(::Stripe::QuoteLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(quote, params = {}, opts = {}); end end @@ -45588,7 +50314,7 @@ module Stripe class EarlyFraudWarningService < StripeService # Returns a list of early fraud warnings. sig { - params(params: T.any(::Stripe::Radar::EarlyFraudWarningListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Radar::EarlyFraudWarningListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end @@ -45596,7 +50322,7 @@ module Stripe # # Please refer to the [early fraud warning](https://docs.stripe.com/api#early_fraud_warning_object) object reference for more details. sig { - params(early_fraud_warning: String, params: T.any(::Stripe::Radar::EarlyFraudWarningRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::EarlyFraudWarning) + params(early_fraud_warning: String, params: T.any(::Stripe::Radar::EarlyFraudWarningRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::EarlyFraudWarning) } def retrieve(early_fraud_warning, params = {}, opts = {}); end end @@ -45608,31 +50334,31 @@ module Stripe class ValueListService < StripeService # Creates a new ValueList object, which can then be referenced in rules. sig { - params(params: T.any(::Stripe::Radar::ValueListCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueList) + params(params: T.any(::Stripe::Radar::ValueListCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueList) } def create(params = {}, opts = {}); end # Deletes a ValueList object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules. sig { - params(value_list: String, params: T.any(::Stripe::Radar::ValueListDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueList) + params(value_list: String, params: T.any(::Stripe::Radar::ValueListDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueList) } def delete(value_list, params = {}, opts = {}); end # Returns a list of ValueList objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Radar::ValueListListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Radar::ValueListListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a ValueList object. sig { - params(value_list: String, params: T.any(::Stripe::Radar::ValueListRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueList) + params(value_list: String, params: T.any(::Stripe::Radar::ValueListRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueList) } def retrieve(value_list, params = {}, opts = {}); end # Updates a ValueList object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note that item_type is immutable. sig { - params(value_list: String, params: T.any(::Stripe::Radar::ValueListUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueList) + params(value_list: String, params: T.any(::Stripe::Radar::ValueListUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueList) } def update(value_list, params = {}, opts = {}); end end @@ -45644,25 +50370,25 @@ module Stripe class ValueListItemService < StripeService # Creates a new ValueListItem object, which is added to the specified parent value list. sig { - params(params: T.any(::Stripe::Radar::ValueListItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueListItem) + params(params: T.any(::Stripe::Radar::ValueListItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueListItem) } def create(params = {}, opts = {}); end # Deletes a ValueListItem object, removing it from its parent value list. sig { - params(item: String, params: T.any(::Stripe::Radar::ValueListItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueListItem) + params(item: String, params: T.any(::Stripe::Radar::ValueListItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueListItem) } def delete(item, params = {}, opts = {}); end # Returns a list of ValueListItem objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Radar::ValueListItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Radar::ValueListItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a ValueListItem object. sig { - params(item: String, params: T.any(::Stripe::Radar::ValueListItemRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueListItem) + params(item: String, params: T.any(::Stripe::Radar::ValueListItemRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueListItem) } def retrieve(item, params = {}, opts = {}); end end @@ -45675,7 +50401,7 @@ module Stripe # # You can't cancel refunds in other states. Only refunds for payment methods that require customer action can enter the requires_action state. sig { - params(refund: String, params: T.any(::Stripe::RefundCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Refund) + params(refund: String, params: T.any(::Stripe::RefundCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Refund) } def cancel(refund, params = {}, opts = {}); end @@ -45691,19 +50417,19 @@ module Stripe # This method will raise an error when called on an already-refunded charge, # or when trying to refund more money than is left on a charge. sig { - params(params: T.any(::Stripe::RefundCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Refund) + params(params: T.any(::Stripe::RefundCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Refund) } def create(params = {}, opts = {}); end # Returns a list of all refunds you created. We return the refunds in sorted order, with the most recent refunds appearing first. The 10 most recent refunds are always available by default on the Charge object. sig { - params(params: T.any(::Stripe::RefundListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::RefundListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing refund. sig { - params(refund: String, params: T.any(::Stripe::RefundRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Refund) + params(refund: String, params: T.any(::Stripe::RefundRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Refund) } def retrieve(refund, params = {}, opts = {}); end @@ -45711,7 +50437,7 @@ module Stripe # # This request only accepts metadata as an argument. sig { - params(refund: String, params: T.any(::Stripe::RefundUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Refund) + params(refund: String, params: T.any(::Stripe::RefundUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Refund) } def update(refund, params = {}, opts = {}); end end @@ -45729,19 +50455,19 @@ module Stripe class ReportRunService < StripeService # Creates a new object and begin running the report. (Certain report types require a [live-mode API key](https://stripe.com/docs/keys#test-live-modes).) sig { - params(params: T.any(::Stripe::Reporting::ReportRunCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Reporting::ReportRun) + params(params: T.any(::Stripe::Reporting::ReportRunCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Reporting::ReportRun) } def create(params = {}, opts = {}); end # Returns a list of Report Runs, with the most recent appearing first. sig { - params(params: T.any(::Stripe::Reporting::ReportRunListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Reporting::ReportRunListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing Report Run. sig { - params(report_run: String, params: T.any(::Stripe::Reporting::ReportRunRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Reporting::ReportRun) + params(report_run: String, params: T.any(::Stripe::Reporting::ReportRunRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Reporting::ReportRun) } def retrieve(report_run, params = {}, opts = {}); end end @@ -45753,13 +50479,13 @@ module Stripe class ReportTypeService < StripeService # Returns a full list of Report Types. sig { - params(params: T.any(::Stripe::Reporting::ReportTypeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Reporting::ReportTypeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of a Report Type. (Certain report types require a [live-mode API key](https://stripe.com/docs/keys#test-live-modes).) sig { - params(report_type: String, params: T.any(::Stripe::Reporting::ReportTypeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Reporting::ReportType) + params(report_type: String, params: T.any(::Stripe::Reporting::ReportTypeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Reporting::ReportType) } def retrieve(report_type, params = {}, opts = {}); end end @@ -45770,19 +50496,19 @@ module Stripe class ReviewService < StripeService # Approves a Review object, closing it and removing it from the list of reviews. sig { - params(review: String, params: T.any(::Stripe::ReviewApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Review) + params(review: String, params: T.any(::Stripe::ReviewApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Review) } def approve(review, params = {}, opts = {}); end # Returns a list of Review objects that have open set to true. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::ReviewListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ReviewListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a Review object. sig { - params(review: String, params: T.any(::Stripe::ReviewRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Review) + params(review: String, params: T.any(::Stripe::ReviewRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Review) } def retrieve(review, params = {}, opts = {}); end end @@ -45792,7 +50518,7 @@ module Stripe class SetupAttemptService < StripeService # Returns a list of SetupAttempts that associate with a provided SetupIntent. sig { - params(params: T.any(::Stripe::SetupAttemptListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::SetupAttemptListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end end @@ -45804,7 +50530,7 @@ module Stripe # # After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can't cancel the SetupIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead. sig { - params(intent: String, params: T.any(::Stripe::SetupIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(intent: String, params: T.any(::Stripe::SetupIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def cancel(intent, params = {}, opts = {}); end @@ -45823,7 +50549,7 @@ module Stripe # requires_payment_method status or the canceled status if the # confirmation limit is reached. sig { - params(intent: String, params: T.any(::Stripe::SetupIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(intent: String, params: T.any(::Stripe::SetupIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def confirm(intent, params = {}, opts = {}); end @@ -45832,13 +50558,13 @@ module Stripe # After you create the SetupIntent, attach a payment method and [confirm](https://docs.stripe.com/docs/api/setup_intents/confirm) # it to collect any required permissions to charge the payment method later. sig { - params(params: T.any(::Stripe::SetupIntentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(params: T.any(::Stripe::SetupIntentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def create(params = {}, opts = {}); end # Returns a list of SetupIntents. sig { - params(params: T.any(::Stripe::SetupIntentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::SetupIntentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end @@ -45848,19 +50574,19 @@ module Stripe # # When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the [SetupIntent](https://docs.stripe.com/api#setup_intent_object) object reference for more details. sig { - params(intent: String, params: T.any(::Stripe::SetupIntentRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(intent: String, params: T.any(::Stripe::SetupIntentRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def retrieve(intent, params = {}, opts = {}); end # Updates a SetupIntent object. sig { - params(intent: String, params: T.any(::Stripe::SetupIntentUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(intent: String, params: T.any(::Stripe::SetupIntentUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def update(intent, params = {}, opts = {}); end # Verifies microdeposits on a SetupIntent object. sig { - params(intent: String, params: T.any(::Stripe::SetupIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(intent: String, params: T.any(::Stripe::SetupIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def verify_microdeposits(intent, params = {}, opts = {}); end end @@ -45870,25 +50596,25 @@ module Stripe class ShippingRateService < StripeService # Creates a new shipping rate object. sig { - params(params: T.any(::Stripe::ShippingRateCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ShippingRate) + params(params: T.any(::Stripe::ShippingRateCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ShippingRate) } def create(params = {}, opts = {}); end # Returns a list of your shipping rates. sig { - params(params: T.any(::Stripe::ShippingRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ShippingRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Returns the shipping rate object with the given ID. sig { - params(shipping_rate_token: String, params: T.any(::Stripe::ShippingRateRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ShippingRate) + params(shipping_rate_token: String, params: T.any(::Stripe::ShippingRateRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ShippingRate) } def retrieve(shipping_rate_token, params = {}, opts = {}); end # Updates an existing shipping rate object. sig { - params(shipping_rate_token: String, params: T.any(::Stripe::ShippingRateUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ShippingRate) + params(shipping_rate_token: String, params: T.any(::Stripe::ShippingRateUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ShippingRate) } def update(shipping_rate_token, params = {}, opts = {}); end end @@ -45905,13 +50631,13 @@ module Stripe class ScheduledQueryRunService < StripeService # Returns a list of scheduled query runs. sig { - params(params: T.any(::Stripe::Sigma::ScheduledQueryRunListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Sigma::ScheduledQueryRunListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an scheduled query run. sig { - params(scheduled_query_run: String, params: T.any(::Stripe::Sigma::ScheduledQueryRunRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Sigma::ScheduledQueryRun) + params(scheduled_query_run: String, params: T.any(::Stripe::Sigma::ScheduledQueryRunRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Sigma::ScheduledQueryRun) } def retrieve(scheduled_query_run, params = {}, opts = {}); end end @@ -45923,19 +50649,19 @@ module Stripe attr_reader :transactions # Creates a new source object. sig { - params(params: T.any(::Stripe::SourceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Source) + params(params: T.any(::Stripe::SourceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Source) } def create(params = {}, opts = {}); end # Delete a specified source for a given customer. sig { - params(customer: String, id: String, params: T.any(::Stripe::SourceDetachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source)) + params(customer: String, id: String, params: T.any(::Stripe::SourceDetachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source)) } def detach(customer, id, params = {}, opts = {}); end # Retrieves an existing source object. Supply the unique source ID from a source creation request and Stripe will return the corresponding up-to-date source object information. sig { - params(source: String, params: T.any(::Stripe::SourceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Source) + params(source: String, params: T.any(::Stripe::SourceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Source) } def retrieve(source, params = {}, opts = {}); end @@ -45943,13 +50669,13 @@ module Stripe # # This request accepts the metadata and owner as arguments. It is also possible to update type specific information for selected payment methods. Please refer to our [payment method guides](https://docs.stripe.com/docs/sources) for more detail. sig { - params(source: String, params: T.any(::Stripe::SourceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Source) + params(source: String, params: T.any(::Stripe::SourceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Source) } def update(source, params = {}, opts = {}); end # Verify a given source. sig { - params(source: String, params: T.any(::Stripe::SourceVerifyParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Source) + params(source: String, params: T.any(::Stripe::SourceVerifyParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Source) } def verify(source, params = {}, opts = {}); end end @@ -45959,7 +50685,7 @@ module Stripe class SourceTransactionService < StripeService # List source transactions for a given source. sig { - params(source: String, params: T.any(::Stripe::SourceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(source: String, params: T.any(::Stripe::SourceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(source, params = {}, opts = {}); end end @@ -45973,7 +50699,7 @@ module Stripe # # By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. sig { - params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def cancel(subscription_exposed_id, params = {}, opts = {}); end @@ -45985,37 +50711,37 @@ module Stripe # To start subscriptions where the first invoice always begins in a draft status, use [subscription schedules](https://docs.stripe.com/docs/billing/subscriptions/subscription-schedules#managing) instead. # Schedules provide the flexibility to model more complex billing configurations that change over time. sig { - params(params: T.any(::Stripe::SubscriptionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(params: T.any(::Stripe::SubscriptionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def create(params = {}, opts = {}); end # Removes the currently applied discount on a subscription. sig { - params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Discount) + params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Discount) } def delete_discount(subscription_exposed_id, params = {}, opts = {}); end # By default, returns a list of subscriptions that have not been canceled. In order to list canceled subscriptions, specify status=canceled. sig { - params(params: T.any(::Stripe::SubscriptionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::SubscriptionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Upgrade the billing_mode of an existing subscription. sig { - params(subscription: String, params: T.any(::Stripe::SubscriptionMigrateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(subscription: String, params: T.any(::Stripe::SubscriptionMigrateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def migrate(subscription, params = {}, opts = {}); end # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. sig { - params(subscription: String, params: T.any(::Stripe::SubscriptionResumeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(subscription: String, params: T.any(::Stripe::SubscriptionResumeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def resume(subscription, params = {}, opts = {}); end # Retrieves the subscription with the given ID. sig { - params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def retrieve(subscription_exposed_id, params = {}, opts = {}); end @@ -46024,7 +50750,7 @@ module Stripe # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up # to an hour behind during outages. Search functionality is not available to merchants in India. sig { - params(params: T.any(::Stripe::SubscriptionSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::SubscriptionSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def search(params = {}, opts = {}); end @@ -46050,7 +50776,7 @@ module Stripe # # Updating the quantity on a subscription many times in an hour may result in [rate limiting. If you need to bill for a frequently changing quantity, consider integrating usage-based billing](https://docs.stripe.com/docs/rate-limits) instead. sig { - params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def update(subscription_exposed_id, params = {}, opts = {}); end end @@ -46060,31 +50786,31 @@ module Stripe class SubscriptionItemService < StripeService # Adds a new item to an existing subscription. No existing items will be changed or replaced. sig { - params(params: T.any(::Stripe::SubscriptionItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionItem) + params(params: T.any(::Stripe::SubscriptionItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionItem) } def create(params = {}, opts = {}); end # Deletes an item from the subscription. Removing a subscription item from a subscription will not cancel the subscription. sig { - params(item: String, params: T.any(::Stripe::SubscriptionItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionItem) + params(item: String, params: T.any(::Stripe::SubscriptionItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionItem) } def delete(item, params = {}, opts = {}); end # Returns a list of your subscription items for a given subscription. sig { - params(params: T.any(::Stripe::SubscriptionItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::SubscriptionItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the subscription item with the given ID. sig { - params(item: String, params: T.any(::Stripe::SubscriptionItemRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionItem) + params(item: String, params: T.any(::Stripe::SubscriptionItemRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionItem) } def retrieve(item, params = {}, opts = {}); end # Updates the plan or quantity of an item on a current subscription. sig { - params(item: String, params: T.any(::Stripe::SubscriptionItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionItem) + params(item: String, params: T.any(::Stripe::SubscriptionItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionItem) } def update(item, params = {}, opts = {}); end end @@ -46094,37 +50820,37 @@ module Stripe class SubscriptionScheduleService < StripeService # Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be canceled if its status is not_started or active. sig { - params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionSchedule) } def cancel(schedule, params = {}, opts = {}); end # Creates a new subscription schedule object. Each customer can have up to 500 active or scheduled subscriptions. sig { - params(params: T.any(::Stripe::SubscriptionScheduleCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(params: T.any(::Stripe::SubscriptionScheduleCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionSchedule) } def create(params = {}, opts = {}); end # Retrieves the list of your subscription schedules. sig { - params(params: T.any(::Stripe::SubscriptionScheduleListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::SubscriptionScheduleListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Releases the subscription schedule immediately, which will stop scheduling of its phases, but leave any existing subscription in place. A schedule can only be released if its status is not_started or active. If the subscription schedule is currently associated with a subscription, releasing it will remove its subscription property and set the subscription's ID to the released_subscription property. sig { - params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleReleaseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleReleaseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionSchedule) } def release(schedule, params = {}, opts = {}); end # Retrieves the details of an existing subscription schedule. You only need to supply the unique subscription schedule identifier that was returned upon subscription schedule creation. sig { - params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionSchedule) } def retrieve(schedule, params = {}, opts = {}); end # Updates an existing subscription schedule. sig { - params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionSchedule) } def update(schedule, params = {}, opts = {}); end end @@ -46145,13 +50871,13 @@ module Stripe attr_reader :line_items # Calculates tax based on the input and returns a Tax Calculation object. sig { - params(params: T.any(::Stripe::Tax::CalculationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Calculation) + params(params: T.any(::Stripe::Tax::CalculationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Calculation) } def create(params = {}, opts = {}); end # Retrieves a Tax Calculation object, if the calculation hasn't expired. sig { - params(calculation: String, params: T.any(::Stripe::Tax::CalculationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Calculation) + params(calculation: String, params: T.any(::Stripe::Tax::CalculationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Calculation) } def retrieve(calculation, params = {}, opts = {}); end end @@ -46163,7 +50889,7 @@ module Stripe class CalculationLineItemService < StripeService # Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired. sig { - params(calculation: String, params: T.any(::Stripe::Tax::CalculationLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(calculation: String, params: T.any(::Stripe::Tax::CalculationLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(calculation, params = {}, opts = {}); end end @@ -46175,19 +50901,19 @@ module Stripe class RegistrationService < StripeService # Creates a new Tax Registration object. sig { - params(params: T.any(::Stripe::Tax::RegistrationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Registration) + params(params: T.any(::Stripe::Tax::RegistrationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Registration) } def create(params = {}, opts = {}); end # Returns a list of Tax Registration objects. sig { - params(params: T.any(::Stripe::Tax::RegistrationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Tax::RegistrationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Returns a Tax Registration object. sig { - params(id: String, params: T.any(::Stripe::Tax::RegistrationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Registration) + params(id: String, params: T.any(::Stripe::Tax::RegistrationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Registration) } def retrieve(id, params = {}, opts = {}); end @@ -46195,7 +50921,7 @@ module Stripe # # A registration cannot be deleted after it has been created. If you wish to end a registration you may do so by setting expires_at. sig { - params(id: String, params: T.any(::Stripe::Tax::RegistrationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Registration) + params(id: String, params: T.any(::Stripe::Tax::RegistrationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Registration) } def update(id, params = {}, opts = {}); end end @@ -46207,13 +50933,13 @@ module Stripe class SettingsService < StripeService # Retrieves Tax Settings for a merchant. sig { - params(params: T.any(::Stripe::Tax::SettingsRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Settings) + params(params: T.any(::Stripe::Tax::SettingsRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Settings) } def retrieve(params = {}, opts = {}); end # Updates Tax Settings parameters used in tax calculations. All parameters are editable but none can be removed once set. sig { - params(params: T.any(::Stripe::Tax::SettingsUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Settings) + params(params: T.any(::Stripe::Tax::SettingsUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Settings) } def update(params = {}, opts = {}); end end @@ -46226,19 +50952,19 @@ module Stripe attr_reader :line_items # Creates a Tax Transaction from a calculation, if that calculation hasn't expired. Calculations expire after 90 days. sig { - params(params: T.any(::Stripe::Tax::TransactionCreateFromCalculationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Transaction) + params(params: T.any(::Stripe::Tax::TransactionCreateFromCalculationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Transaction) } def create_from_calculation(params = {}, opts = {}); end # Partially or fully reverses a previously created Transaction. sig { - params(params: T.any(::Stripe::Tax::TransactionCreateReversalParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Transaction) + params(params: T.any(::Stripe::Tax::TransactionCreateReversalParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Transaction) } def create_reversal(params = {}, opts = {}); end # Retrieves a Tax Transaction object. sig { - params(transaction: String, params: T.any(::Stripe::Tax::TransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Transaction) + params(transaction: String, params: T.any(::Stripe::Tax::TransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Transaction) } def retrieve(transaction, params = {}, opts = {}); end end @@ -46250,7 +50976,7 @@ module Stripe class TransactionLineItemService < StripeService # Retrieves the line items of a committed standalone transaction as a collection. sig { - params(transaction: String, params: T.any(::Stripe::Tax::TransactionLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(transaction: String, params: T.any(::Stripe::Tax::TransactionLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(transaction, params = {}, opts = {}); end end @@ -46261,13 +50987,13 @@ module Stripe class TaxCodeService < StripeService # A list of [all tax codes available](https://stripe.com/docs/tax/tax-categories) to add to Products in order to allow specific tax calculations. sig { - params(params: T.any(::Stripe::TaxCodeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TaxCodeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing tax code. Supply the unique tax code ID and Stripe will return the corresponding tax code information. sig { - params(id: String, params: T.any(::Stripe::TaxCodeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxCode) + params(id: String, params: T.any(::Stripe::TaxCodeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxCode) } def retrieve(id, params = {}, opts = {}); end end @@ -46277,25 +51003,25 @@ module Stripe class TaxIdService < StripeService # Creates a new account or customer tax_id object. sig { - params(params: T.any(::Stripe::TaxIdCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxId) + params(params: T.any(::Stripe::TaxIdCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxId) } def create(params = {}, opts = {}); end # Deletes an existing account or customer tax_id object. sig { - params(id: String, params: T.any(::Stripe::TaxIdDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxId) + params(id: String, params: T.any(::Stripe::TaxIdDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxId) } def delete(id, params = {}, opts = {}); end # Returns a list of tax IDs. sig { - params(params: T.any(::Stripe::TaxIdListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TaxIdListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves an account or customer tax_id object. sig { - params(id: String, params: T.any(::Stripe::TaxIdRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxId) + params(id: String, params: T.any(::Stripe::TaxIdRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxId) } def retrieve(id, params = {}, opts = {}); end end @@ -46305,25 +51031,25 @@ module Stripe class TaxRateService < StripeService # Creates a new tax rate. sig { - params(params: T.any(::Stripe::TaxRateCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxRate) + params(params: T.any(::Stripe::TaxRateCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxRate) } def create(params = {}, opts = {}); end # Returns a list of your tax rates. Tax rates are returned sorted by creation date, with the most recently created tax rates appearing first. sig { - params(params: T.any(::Stripe::TaxRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TaxRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a tax rate with the given ID sig { - params(tax_rate: String, params: T.any(::Stripe::TaxRateRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxRate) + params(tax_rate: String, params: T.any(::Stripe::TaxRateRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxRate) } def retrieve(tax_rate, params = {}, opts = {}); end # Updates an existing tax rate. sig { - params(tax_rate: String, params: T.any(::Stripe::TaxRateUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxRate) + params(tax_rate: String, params: T.any(::Stripe::TaxRateUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxRate) } def update(tax_rate, params = {}, opts = {}); end end @@ -46343,31 +51069,31 @@ module Stripe class ConfigurationService < StripeService # Creates a new Configuration object. sig { - params(params: T.any(::Stripe::Terminal::ConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Configuration) + params(params: T.any(::Stripe::Terminal::ConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Configuration) } def create(params = {}, opts = {}); end # Deletes a Configuration object. sig { - params(configuration: String, params: T.any(::Stripe::Terminal::ConfigurationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Configuration) + params(configuration: String, params: T.any(::Stripe::Terminal::ConfigurationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Configuration) } def delete(configuration, params = {}, opts = {}); end # Returns a list of Configuration objects. sig { - params(params: T.any(::Stripe::Terminal::ConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Terminal::ConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a Configuration object. sig { - params(configuration: String, params: T.any(::Stripe::Terminal::ConfigurationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Configuration) + params(configuration: String, params: T.any(::Stripe::Terminal::ConfigurationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Configuration) } def retrieve(configuration, params = {}, opts = {}); end # Updates a new Configuration object. sig { - params(configuration: String, params: T.any(::Stripe::Terminal::ConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Configuration) + params(configuration: String, params: T.any(::Stripe::Terminal::ConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Configuration) } def update(configuration, params = {}, opts = {}); end end @@ -46379,7 +51105,7 @@ module Stripe class ConnectionTokenService < StripeService # To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server. On your backend, add an endpoint that creates and returns a connection token. sig { - params(params: T.any(::Stripe::Terminal::ConnectionTokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::ConnectionToken) + params(params: T.any(::Stripe::Terminal::ConnectionTokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::ConnectionToken) } def create(params = {}, opts = {}); end end @@ -46392,31 +51118,31 @@ module Stripe # Creates a new Location object. # For further details, including which address fields are required in each country, see the [Manage locations](https://docs.stripe.com/docs/terminal/fleet/locations) guide. sig { - params(params: T.any(::Stripe::Terminal::LocationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Location) + params(params: T.any(::Stripe::Terminal::LocationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Location) } def create(params = {}, opts = {}); end # Deletes a Location object. sig { - params(location: String, params: T.any(::Stripe::Terminal::LocationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Location) + params(location: String, params: T.any(::Stripe::Terminal::LocationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Location) } def delete(location, params = {}, opts = {}); end # Returns a list of Location objects. sig { - params(params: T.any(::Stripe::Terminal::LocationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Terminal::LocationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a Location object. sig { - params(location: String, params: T.any(::Stripe::Terminal::LocationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Location) + params(location: String, params: T.any(::Stripe::Terminal::LocationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Location) } def retrieve(location, params = {}, opts = {}); end # Updates a Location object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(location: String, params: T.any(::Stripe::Terminal::LocationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Location) + params(location: String, params: T.any(::Stripe::Terminal::LocationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Location) } def update(location, params = {}, opts = {}); end end @@ -46426,81 +51152,81 @@ end module Stripe module Terminal class ReaderService < StripeService - # Cancels the current reader action. + # Cancels the current reader action. See [Programmatic Cancellation](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven#programmatic-cancellation) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderCancelActionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderCancelActionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def cancel_action(reader, params = {}, opts = {}); end - # Initiates an input collection flow on a Reader. + # Initiates an [input collection flow](https://docs.stripe.com/docs/terminal/features/collect-inputs) on a Reader to display input forms and collect information from your customers. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectInputsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectInputsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def collect_inputs(reader, params = {}, opts = {}); end - # Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. + # Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. See [Collecting a Payment method](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#collect-a-paymentmethod) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def collect_payment_method(reader, params = {}, opts = {}); end - # Finalizes a payment on a Reader. + # Finalizes a payment on a Reader. See [Confirming a Payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#confirm-the-paymentintent) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderConfirmPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderConfirmPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def confirm_payment_intent(reader, params = {}, opts = {}); end # Creates a new Reader object. sig { - params(params: T.any(::Stripe::Terminal::ReaderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(params: T.any(::Stripe::Terminal::ReaderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def create(params = {}, opts = {}); end # Deletes a Reader object. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def delete(reader, params = {}, opts = {}); end # Returns a list of Reader objects. sig { - params(params: T.any(::Stripe::Terminal::ReaderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Terminal::ReaderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end - # Initiates a payment flow on a Reader. + # Initiates a payment flow on a Reader. See [process the payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=immediately#process-payment) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def process_payment_intent(reader, params = {}, opts = {}); end - # Initiates a setup intent flow on a Reader. + # Initiates a SetupIntent flow on a Reader. See [Save directly without charging](https://docs.stripe.com/docs/terminal/features/saving-payment-details/save-directly) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessSetupIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessSetupIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def process_setup_intent(reader, params = {}, opts = {}); end - # Initiates a refund on a Reader + # Initiates an in-person refund on a Reader. See [Refund an Interac Payment](https://docs.stripe.com/docs/terminal/payments/regional?integration-country=CA#refund-an-interac-payment) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderRefundPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderRefundPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def refund_payment(reader, params = {}, opts = {}); end # Retrieves a Reader object. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def retrieve(reader, params = {}, opts = {}); end - # Sets reader display to show cart details. + # Sets the reader display to show [cart details](https://docs.stripe.com/docs/terminal/features/display). sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderSetReaderDisplayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderSetReaderDisplayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def set_reader_display(reader, params = {}, opts = {}); end # Updates a Reader object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def update(reader, params = {}, opts = {}); end end @@ -46524,7 +51250,7 @@ module Stripe class ConfirmationTokenService < StripeService # Creates a test mode Confirmation Token server side for your integration tests. sig { - params(params: T.any(::Stripe::TestHelpers::ConfirmationTokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ConfirmationToken) + params(params: T.any(::Stripe::TestHelpers::ConfirmationTokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ConfirmationToken) } def create(params = {}, opts = {}); end end @@ -46536,7 +51262,7 @@ module Stripe class CustomerService < StripeService # Create an incoming testmode bank transfer sig { - params(customer: String, params: T.any(::Stripe::TestHelpers::CustomerFundCashBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CustomerCashBalanceTransaction) + params(customer: String, params: T.any(::Stripe::TestHelpers::CustomerFundCashBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CustomerCashBalanceTransaction) } def fund_cash_balance(customer, params = {}, opts = {}); end end @@ -46560,43 +51286,43 @@ module Stripe class AuthorizationService < StripeService # Capture a test-mode authorization. sig { - params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def capture(authorization, params = {}, opts = {}); end # Create a test-mode authorization. sig { - params(params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def create(params = {}, opts = {}); end # Expire a test-mode Authorization. sig { - params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def expire(authorization, params = {}, opts = {}); end # Finalize the amount on an Authorization prior to capture, when the initial authorization was for an estimated amount. sig { - params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationFinalizeAmountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationFinalizeAmountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def finalize_amount(authorization, params = {}, opts = {}); end # Increment a test-mode Authorization. sig { - params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationIncrementParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationIncrementParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def increment(authorization, params = {}, opts = {}); end # Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy. sig { - params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationRespondParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationRespondParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def respond(authorization, params = {}, opts = {}); end # Reverse a test-mode Authorization. sig { - params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationReverseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationReverseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def reverse(authorization, params = {}, opts = {}); end end @@ -46610,31 +51336,31 @@ module Stripe class CardService < StripeService # Updates the shipping status of the specified Issuing Card object to delivered. sig { - params(card: String, params: T.any(::Stripe::TestHelpers::Issuing::CardDeliverCardParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Card) + params(card: String, params: T.any(::Stripe::TestHelpers::Issuing::CardDeliverCardParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Card) } def deliver_card(card, params = {}, opts = {}); end # Updates the shipping status of the specified Issuing Card object to failure. sig { - params(card: String, params: T.any(::Stripe::TestHelpers::Issuing::CardFailCardParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Card) + params(card: String, params: T.any(::Stripe::TestHelpers::Issuing::CardFailCardParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Card) } def fail_card(card, params = {}, opts = {}); end # Updates the shipping status of the specified Issuing Card object to returned. sig { - params(card: String, params: T.any(::Stripe::TestHelpers::Issuing::CardReturnCardParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Card) + params(card: String, params: T.any(::Stripe::TestHelpers::Issuing::CardReturnCardParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Card) } def return_card(card, params = {}, opts = {}); end # Updates the shipping status of the specified Issuing Card object to shipped. sig { - params(card: String, params: T.any(::Stripe::TestHelpers::Issuing::CardShipCardParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Card) + params(card: String, params: T.any(::Stripe::TestHelpers::Issuing::CardShipCardParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Card) } def ship_card(card, params = {}, opts = {}); end # Updates the shipping status of the specified Issuing Card object to submitted. This method requires Stripe Version ‘2024-09-30.acacia' or later. sig { - params(card: String, params: T.any(::Stripe::TestHelpers::Issuing::CardSubmitCardParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Card) + params(card: String, params: T.any(::Stripe::TestHelpers::Issuing::CardSubmitCardParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Card) } def submit_card(card, params = {}, opts = {}); end end @@ -46648,19 +51374,19 @@ module Stripe class PersonalizationDesignService < StripeService # Updates the status of the specified testmode personalization design object to active. sig { - params(personalization_design: String, params: T.any(::Stripe::TestHelpers::Issuing::PersonalizationDesignActivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::PersonalizationDesign) + params(personalization_design: String, params: T.any(::Stripe::TestHelpers::Issuing::PersonalizationDesignActivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::PersonalizationDesign) } def activate(personalization_design, params = {}, opts = {}); end # Updates the status of the specified testmode personalization design object to inactive. sig { - params(personalization_design: String, params: T.any(::Stripe::TestHelpers::Issuing::PersonalizationDesignDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::PersonalizationDesign) + params(personalization_design: String, params: T.any(::Stripe::TestHelpers::Issuing::PersonalizationDesignDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::PersonalizationDesign) } def deactivate(personalization_design, params = {}, opts = {}); end # Updates the status of the specified testmode personalization design object to rejected. sig { - params(personalization_design: String, params: T.any(::Stripe::TestHelpers::Issuing::PersonalizationDesignRejectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::PersonalizationDesign) + params(personalization_design: String, params: T.any(::Stripe::TestHelpers::Issuing::PersonalizationDesignRejectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::PersonalizationDesign) } def reject(personalization_design, params = {}, opts = {}); end end @@ -46674,19 +51400,19 @@ module Stripe class TransactionService < StripeService # Allows the user to capture an arbitrary amount, also known as a forced capture. sig { - params(params: T.any(::Stripe::TestHelpers::Issuing::TransactionCreateForceCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Transaction) + params(params: T.any(::Stripe::TestHelpers::Issuing::TransactionCreateForceCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Transaction) } def create_force_capture(params = {}, opts = {}); end # Allows the user to refund an arbitrary amount, also known as a unlinked refund. sig { - params(params: T.any(::Stripe::TestHelpers::Issuing::TransactionCreateUnlinkedRefundParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Transaction) + params(params: T.any(::Stripe::TestHelpers::Issuing::TransactionCreateUnlinkedRefundParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Transaction) } def create_unlinked_refund(params = {}, opts = {}); end # Refund a test-mode Transaction. sig { - params(transaction: String, params: T.any(::Stripe::TestHelpers::Issuing::TransactionRefundParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Transaction) + params(transaction: String, params: T.any(::Stripe::TestHelpers::Issuing::TransactionRefundParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Transaction) } def refund(transaction, params = {}, opts = {}); end end @@ -46699,7 +51425,7 @@ module Stripe class RefundService < StripeService # Expire a refund with a status of requires_action. sig { - params(refund: String, params: T.any(::Stripe::TestHelpers::RefundExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Refund) + params(refund: String, params: T.any(::Stripe::TestHelpers::RefundExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Refund) } def expire(refund, params = {}, opts = {}); end end @@ -46720,19 +51446,19 @@ module Stripe class ReaderService < StripeService # Presents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction. sig { - params(reader: String, params: T.any(::Stripe::TestHelpers::Terminal::ReaderPresentPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::TestHelpers::Terminal::ReaderPresentPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def present_payment_method(reader, params = {}, opts = {}); end # Use this endpoint to trigger a successful input collection on a simulated reader. sig { - params(reader: String, params: T.any(::Stripe::TestHelpers::Terminal::ReaderSucceedInputCollectionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::TestHelpers::Terminal::ReaderSucceedInputCollectionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def succeed_input_collection(reader, params = {}, opts = {}); end # Use this endpoint to complete an input collection with a timeout error on a simulated reader. sig { - params(reader: String, params: T.any(::Stripe::TestHelpers::Terminal::ReaderTimeoutInputCollectionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::TestHelpers::Terminal::ReaderTimeoutInputCollectionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def timeout_input_collection(reader, params = {}, opts = {}); end end @@ -46745,31 +51471,31 @@ module Stripe class TestClockService < StripeService # Starts advancing a test clock to a specified time in the future. Advancement is done when status changes to Ready. sig { - params(test_clock: String, params: T.any(::Stripe::TestHelpers::TestClockAdvanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TestHelpers::TestClock) + params(test_clock: String, params: T.any(::Stripe::TestHelpers::TestClockAdvanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TestHelpers::TestClock) } def advance(test_clock, params = {}, opts = {}); end # Creates a new test clock that can be attached to new customers and quotes. sig { - params(params: T.any(::Stripe::TestHelpers::TestClockCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TestHelpers::TestClock) + params(params: T.any(::Stripe::TestHelpers::TestClockCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TestHelpers::TestClock) } def create(params = {}, opts = {}); end # Deletes a test clock. sig { - params(test_clock: String, params: T.any(::Stripe::TestHelpers::TestClockDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TestHelpers::TestClock) + params(test_clock: String, params: T.any(::Stripe::TestHelpers::TestClockDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TestHelpers::TestClock) } def delete(test_clock, params = {}, opts = {}); end # Returns a list of your test clocks. sig { - params(params: T.any(::Stripe::TestHelpers::TestClockListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TestHelpers::TestClockListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a test clock. sig { - params(test_clock: String, params: T.any(::Stripe::TestHelpers::TestClockRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TestHelpers::TestClock) + params(test_clock: String, params: T.any(::Stripe::TestHelpers::TestClockRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TestHelpers::TestClock) } def retrieve(test_clock, params = {}, opts = {}); end end @@ -46794,19 +51520,19 @@ module Stripe class InboundTransferService < StripeService # Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state. sig { - params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::InboundTransferFailParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::InboundTransfer) + params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::InboundTransferFailParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::InboundTransfer) } def fail(id, params = {}, opts = {}); end # Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state. sig { - params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::InboundTransferReturnInboundTransferParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::InboundTransfer) + params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::InboundTransferReturnInboundTransferParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::InboundTransfer) } def return_inbound_transfer(id, params = {}, opts = {}); end # Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state. sig { - params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::InboundTransferSucceedParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::InboundTransfer) + params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::InboundTransferSucceedParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::InboundTransfer) } def succeed(id, params = {}, opts = {}); end end @@ -46820,25 +51546,25 @@ module Stripe class OutboundPaymentService < StripeService # Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state. sig { - params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundPaymentFailParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundPayment) + params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundPaymentFailParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundPayment) } def fail(id, params = {}, opts = {}); end # Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state. sig { - params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundPaymentPostParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundPayment) + params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundPaymentPostParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundPayment) } def post(id, params = {}, opts = {}); end # Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state. sig { - params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundPaymentReturnOutboundPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundPayment) + params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundPaymentReturnOutboundPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundPayment) } def return_outbound_payment(id, params = {}, opts = {}); end # Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the canceled or failed states. sig { - params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundPaymentUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundPayment) + params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundPaymentUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundPayment) } def update(id, params = {}, opts = {}); end end @@ -46852,25 +51578,25 @@ module Stripe class OutboundTransferService < StripeService # Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state. sig { - params(outbound_transfer: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundTransferFailParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundTransfer) + params(outbound_transfer: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundTransferFailParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundTransfer) } def fail(outbound_transfer, params = {}, opts = {}); end # Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state. sig { - params(outbound_transfer: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundTransferPostParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundTransfer) + params(outbound_transfer: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundTransferPostParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundTransfer) } def post(outbound_transfer, params = {}, opts = {}); end # Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state. sig { - params(outbound_transfer: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundTransferReturnOutboundTransferParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundTransfer) + params(outbound_transfer: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundTransferReturnOutboundTransferParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundTransfer) } def return_outbound_transfer(outbound_transfer, params = {}, opts = {}); end # Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states. sig { - params(outbound_transfer: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundTransferUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundTransfer) + params(outbound_transfer: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundTransferUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundTransfer) } def update(outbound_transfer, params = {}, opts = {}); end end @@ -46884,7 +51610,7 @@ module Stripe class ReceivedCreditService < StripeService # Use this endpoint to simulate a test mode ReceivedCredit initiated by a third party. In live mode, you can't directly create ReceivedCredits initiated by third parties. sig { - params(params: T.any(::Stripe::TestHelpers::Treasury::ReceivedCreditCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::ReceivedCredit) + params(params: T.any(::Stripe::TestHelpers::Treasury::ReceivedCreditCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::ReceivedCredit) } def create(params = {}, opts = {}); end end @@ -46898,7 +51624,7 @@ module Stripe class ReceivedDebitService < StripeService # Use this endpoint to simulate a test mode ReceivedDebit initiated by a third party. In live mode, you can't directly create ReceivedDebits initiated by third parties. sig { - params(params: T.any(::Stripe::TestHelpers::Treasury::ReceivedDebitCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::ReceivedDebit) + params(params: T.any(::Stripe::TestHelpers::Treasury::ReceivedDebitCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::ReceivedDebit) } def create(params = {}, opts = {}); end end @@ -46911,13 +51637,13 @@ module Stripe # Creates a single-use token that represents a bank account's details. # You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://docs.stripe.com/api#accounts) where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts. sig { - params(params: T.any(::Stripe::TokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Token) + params(params: T.any(::Stripe::TokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Token) } def create(params = {}, opts = {}); end # Retrieves the token with the given ID. sig { - params(token: String, params: T.any(::Stripe::TokenRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Token) + params(token: String, params: T.any(::Stripe::TokenRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Token) } def retrieve(token, params = {}, opts = {}); end end @@ -46927,31 +51653,31 @@ module Stripe class TopupService < StripeService # Cancels a top-up. Only pending top-ups can be canceled. sig { - params(topup: String, params: T.any(::Stripe::TopupCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Topup) + params(topup: String, params: T.any(::Stripe::TopupCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Topup) } def cancel(topup, params = {}, opts = {}); end # Top up the balance of an account sig { - params(params: T.any(::Stripe::TopupCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Topup) + params(params: T.any(::Stripe::TopupCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Topup) } def create(params = {}, opts = {}); end # Returns a list of top-ups. sig { - params(params: T.any(::Stripe::TopupListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TopupListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of a top-up that has previously been created. Supply the unique top-up ID that was returned from your previous request, and Stripe will return the corresponding top-up information. sig { - params(topup: String, params: T.any(::Stripe::TopupRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Topup) + params(topup: String, params: T.any(::Stripe::TopupRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Topup) } def retrieve(topup, params = {}, opts = {}); end # Updates the metadata of a top-up. Other top-up details are not editable by design. sig { - params(topup: String, params: T.any(::Stripe::TopupUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Topup) + params(topup: String, params: T.any(::Stripe::TopupUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Topup) } def update(topup, params = {}, opts = {}); end end @@ -46962,19 +51688,19 @@ module Stripe attr_reader :reversals # To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://docs.stripe.com/api#balance) must be able to cover the transfer amount, or you'll receive an “Insufficient Funds” error. sig { - params(params: T.any(::Stripe::TransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Transfer) + params(params: T.any(::Stripe::TransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Transfer) } def create(params = {}, opts = {}); end # Returns a list of existing transfers sent to connected accounts. The transfers are returned in sorted order, with the most recently created transfers appearing first. sig { - params(params: T.any(::Stripe::TransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing transfer. Supply the unique transfer ID from either a transfer creation request or the transfer list, and Stripe will return the corresponding transfer information. sig { - params(transfer: String, params: T.any(::Stripe::TransferRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Transfer) + params(transfer: String, params: T.any(::Stripe::TransferRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Transfer) } def retrieve(transfer, params = {}, opts = {}); end @@ -46982,7 +51708,7 @@ module Stripe # # This request accepts only metadata as an argument. sig { - params(transfer: String, params: T.any(::Stripe::TransferUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Transfer) + params(transfer: String, params: T.any(::Stripe::TransferUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Transfer) } def update(transfer, params = {}, opts = {}); end end @@ -46996,19 +51722,19 @@ module Stripe # # Once entirely reversed, a transfer can't be reversed again. This method will return an error when called on an already-reversed transfer, or when trying to reverse more money than is left on a transfer. sig { - params(id: String, params: T.any(::Stripe::TransferReversalCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Reversal) + params(id: String, params: T.any(::Stripe::TransferReversalCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Reversal) } def create(id, params = {}, opts = {}); end # You can see a list of the reversals belonging to a specific transfer. Note that the 10 most recent reversals are always available by default on the transfer object. If you need more than those 10, you can use this API method and the limit and starting_after parameters to page through additional reversals. sig { - params(id: String, params: T.any(::Stripe::TransferReversalListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(id: String, params: T.any(::Stripe::TransferReversalListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(id, params = {}, opts = {}); end # By default, you can see the 10 most recent reversals stored directly on the transfer object, but you can also retrieve details about a specific reversal stored on the transfer. sig { - params(transfer: String, id: String, params: T.any(::Stripe::TransferReversalRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Reversal) + params(transfer: String, id: String, params: T.any(::Stripe::TransferReversalRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Reversal) } def retrieve(transfer, id, params = {}, opts = {}); end @@ -47016,7 +51742,7 @@ module Stripe # # This request only accepts metadata and description as arguments. sig { - params(transfer: String, id: String, params: T.any(::Stripe::TransferReversalUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Reversal) + params(transfer: String, id: String, params: T.any(::Stripe::TransferReversalUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Reversal) } def update(transfer, id, params = {}, opts = {}); end end @@ -47042,19 +51768,19 @@ module Stripe class CreditReversalService < StripeService # Reverses a ReceivedCredit and creates a CreditReversal object. sig { - params(params: T.any(::Stripe::Treasury::CreditReversalCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::CreditReversal) + params(params: T.any(::Stripe::Treasury::CreditReversalCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::CreditReversal) } def create(params = {}, opts = {}); end # Returns a list of CreditReversals. sig { - params(params: T.any(::Stripe::Treasury::CreditReversalListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::CreditReversalListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing CreditReversal by passing the unique CreditReversal ID from either the CreditReversal creation request or CreditReversal list sig { - params(credit_reversal: String, params: T.any(::Stripe::Treasury::CreditReversalRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::CreditReversal) + params(credit_reversal: String, params: T.any(::Stripe::Treasury::CreditReversalRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::CreditReversal) } def retrieve(credit_reversal, params = {}, opts = {}); end end @@ -47066,19 +51792,19 @@ module Stripe class DebitReversalService < StripeService # Reverses a ReceivedDebit and creates a DebitReversal object. sig { - params(params: T.any(::Stripe::Treasury::DebitReversalCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::DebitReversal) + params(params: T.any(::Stripe::Treasury::DebitReversalCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::DebitReversal) } def create(params = {}, opts = {}); end # Returns a list of DebitReversals. sig { - params(params: T.any(::Stripe::Treasury::DebitReversalListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::DebitReversalListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a DebitReversal object. sig { - params(debit_reversal: String, params: T.any(::Stripe::Treasury::DebitReversalRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::DebitReversal) + params(debit_reversal: String, params: T.any(::Stripe::Treasury::DebitReversalRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::DebitReversal) } def retrieve(debit_reversal, params = {}, opts = {}); end end @@ -47091,31 +51817,31 @@ module Stripe attr_reader :features # Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero balance, has no pending InboundTransfers, and has canceled all attached Issuing cards. sig { - params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccount) + params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccount) } def close(financial_account, params = {}, opts = {}); end # Creates a new FinancialAccount. Each connected account can have up to three FinancialAccounts by default. sig { - params(params: T.any(::Stripe::Treasury::FinancialAccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccount) + params(params: T.any(::Stripe::Treasury::FinancialAccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccount) } def create(params = {}, opts = {}); end # Returns a list of FinancialAccounts. sig { - params(params: T.any(::Stripe::Treasury::FinancialAccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::FinancialAccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of a FinancialAccount. sig { - params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccount) + params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccount) } def retrieve(financial_account, params = {}, opts = {}); end # Updates the details of a FinancialAccount. sig { - params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccount) + params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccount) } def update(financial_account, params = {}, opts = {}); end end @@ -47127,13 +51853,13 @@ module Stripe class FinancialAccountFeaturesService < StripeService # Retrieves Features information associated with the FinancialAccount. sig { - params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountFeaturesRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccountFeatures) + params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountFeaturesRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccountFeatures) } def retrieve(financial_account, params = {}, opts = {}); end # Updates the Features associated with a FinancialAccount. sig { - params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountFeaturesUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccountFeatures) + params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountFeaturesUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccountFeatures) } def update(financial_account, params = {}, opts = {}); end end @@ -47145,25 +51871,25 @@ module Stripe class InboundTransferService < StripeService # Cancels an InboundTransfer. sig { - params(inbound_transfer: String, params: T.any(::Stripe::Treasury::InboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::InboundTransfer) + params(inbound_transfer: String, params: T.any(::Stripe::Treasury::InboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::InboundTransfer) } def cancel(inbound_transfer, params = {}, opts = {}); end # Creates an InboundTransfer. sig { - params(params: T.any(::Stripe::Treasury::InboundTransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::InboundTransfer) + params(params: T.any(::Stripe::Treasury::InboundTransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::InboundTransfer) } def create(params = {}, opts = {}); end # Returns a list of InboundTransfers sent from the specified FinancialAccount. sig { - params(params: T.any(::Stripe::Treasury::InboundTransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::InboundTransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing InboundTransfer. sig { - params(id: String, params: T.any(::Stripe::Treasury::InboundTransferRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::InboundTransfer) + params(id: String, params: T.any(::Stripe::Treasury::InboundTransferRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::InboundTransfer) } def retrieve(id, params = {}, opts = {}); end end @@ -47175,25 +51901,25 @@ module Stripe class OutboundPaymentService < StripeService # Cancel an OutboundPayment. sig { - params(id: String, params: T.any(::Stripe::Treasury::OutboundPaymentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundPayment) + params(id: String, params: T.any(::Stripe::Treasury::OutboundPaymentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundPayment) } def cancel(id, params = {}, opts = {}); end # Creates an OutboundPayment. sig { - params(params: T.any(::Stripe::Treasury::OutboundPaymentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundPayment) + params(params: T.any(::Stripe::Treasury::OutboundPaymentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundPayment) } def create(params = {}, opts = {}); end # Returns a list of OutboundPayments sent from the specified FinancialAccount. sig { - params(params: T.any(::Stripe::Treasury::OutboundPaymentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::OutboundPaymentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing OutboundPayment by passing the unique OutboundPayment ID from either the OutboundPayment creation request or OutboundPayment list. sig { - params(id: String, params: T.any(::Stripe::Treasury::OutboundPaymentRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundPayment) + params(id: String, params: T.any(::Stripe::Treasury::OutboundPaymentRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundPayment) } def retrieve(id, params = {}, opts = {}); end end @@ -47205,25 +51931,25 @@ module Stripe class OutboundTransferService < StripeService # An OutboundTransfer can be canceled if the funds have not yet been paid out. sig { - params(outbound_transfer: String, params: T.any(::Stripe::Treasury::OutboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundTransfer) + params(outbound_transfer: String, params: T.any(::Stripe::Treasury::OutboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundTransfer) } def cancel(outbound_transfer, params = {}, opts = {}); end # Creates an OutboundTransfer. sig { - params(params: T.any(::Stripe::Treasury::OutboundTransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundTransfer) + params(params: T.any(::Stripe::Treasury::OutboundTransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundTransfer) } def create(params = {}, opts = {}); end # Returns a list of OutboundTransfers sent from the specified FinancialAccount. sig { - params(params: T.any(::Stripe::Treasury::OutboundTransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::OutboundTransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing OutboundTransfer by passing the unique OutboundTransfer ID from either the OutboundTransfer creation request or OutboundTransfer list. sig { - params(outbound_transfer: String, params: T.any(::Stripe::Treasury::OutboundTransferRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundTransfer) + params(outbound_transfer: String, params: T.any(::Stripe::Treasury::OutboundTransferRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundTransfer) } def retrieve(outbound_transfer, params = {}, opts = {}); end end @@ -47235,13 +51961,13 @@ module Stripe class ReceivedCreditService < StripeService # Returns a list of ReceivedCredits. sig { - params(params: T.any(::Stripe::Treasury::ReceivedCreditListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::ReceivedCreditListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing ReceivedCredit by passing the unique ReceivedCredit ID from the ReceivedCredit list. sig { - params(id: String, params: T.any(::Stripe::Treasury::ReceivedCreditRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::ReceivedCredit) + params(id: String, params: T.any(::Stripe::Treasury::ReceivedCreditRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::ReceivedCredit) } def retrieve(id, params = {}, opts = {}); end end @@ -47253,13 +51979,13 @@ module Stripe class ReceivedDebitService < StripeService # Returns a list of ReceivedDebits. sig { - params(params: T.any(::Stripe::Treasury::ReceivedDebitListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::ReceivedDebitListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing ReceivedDebit by passing the unique ReceivedDebit ID from the ReceivedDebit list sig { - params(id: String, params: T.any(::Stripe::Treasury::ReceivedDebitRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::ReceivedDebit) + params(id: String, params: T.any(::Stripe::Treasury::ReceivedDebitRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::ReceivedDebit) } def retrieve(id, params = {}, opts = {}); end end @@ -47271,13 +51997,13 @@ module Stripe class TransactionService < StripeService # Retrieves a list of Transaction objects. sig { - params(params: T.any(::Stripe::Treasury::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing Transaction. sig { - params(id: String, params: T.any(::Stripe::Treasury::TransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::Transaction) + params(id: String, params: T.any(::Stripe::Treasury::TransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::Transaction) } def retrieve(id, params = {}, opts = {}); end end @@ -47289,13 +52015,13 @@ module Stripe class TransactionEntryService < StripeService # Retrieves a list of TransactionEntry objects. sig { - params(params: T.any(::Stripe::Treasury::TransactionEntryListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::TransactionEntryListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a TransactionEntry object. sig { - params(id: String, params: T.any(::Stripe::Treasury::TransactionEntryRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::TransactionEntry) + params(id: String, params: T.any(::Stripe::Treasury::TransactionEntryRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::TransactionEntry) } def retrieve(id, params = {}, opts = {}); end end @@ -47306,31 +52032,31 @@ module Stripe class WebhookEndpointService < StripeService # A webhook endpoint must have a url and a list of enabled_events. You may optionally specify the Boolean connect parameter. If set to true, then a Connect webhook endpoint that notifies the specified url about events from all connected accounts is created; otherwise an account webhook endpoint that notifies the specified url only about events from your account is created. You can also create webhook endpoints in the [webhooks settings](https://dashboard.stripe.com/account/webhooks) section of the Dashboard. sig { - params(params: T.any(::Stripe::WebhookEndpointCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::WebhookEndpoint) + params(params: T.any(::Stripe::WebhookEndpointCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::WebhookEndpoint) } def create(params = {}, opts = {}); end # You can also delete webhook endpoints via the [webhook endpoint management](https://dashboard.stripe.com/account/webhooks) page of the Stripe dashboard. sig { - params(webhook_endpoint: String, params: T.any(::Stripe::WebhookEndpointDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::WebhookEndpoint) + params(webhook_endpoint: String, params: T.any(::Stripe::WebhookEndpointDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::WebhookEndpoint) } def delete(webhook_endpoint, params = {}, opts = {}); end # Returns a list of your webhook endpoints. sig { - params(params: T.any(::Stripe::WebhookEndpointListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::WebhookEndpointListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the webhook endpoint with the given ID. sig { - params(webhook_endpoint: String, params: T.any(::Stripe::WebhookEndpointRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::WebhookEndpoint) + params(webhook_endpoint: String, params: T.any(::Stripe::WebhookEndpointRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::WebhookEndpoint) } def retrieve(webhook_endpoint, params = {}, opts = {}); end # Updates the webhook endpoint. You may edit the url, the list of enabled_events, and the status of your endpoint. sig { - params(webhook_endpoint: String, params: T.any(::Stripe::WebhookEndpointUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::WebhookEndpoint) + params(webhook_endpoint: String, params: T.any(::Stripe::WebhookEndpointUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::WebhookEndpoint) } def update(webhook_endpoint, params = {}, opts = {}); end end @@ -47360,7 +52086,7 @@ module Stripe class MeterEventService < StripeService # Creates a meter event. Events are validated synchronously, but are processed asynchronously. Supports up to 1,000 events per second in livemode. For higher rate-limits, please use meter event streams instead. sig { - params(params: T.any(::Stripe::V2::Billing::MeterEventCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Billing::MeterEvent) + params(params: T.any(::Stripe::V2::Billing::MeterEventCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Billing::MeterEvent) } def create(params = {}, opts = {}); end end @@ -47374,7 +52100,7 @@ module Stripe class MeterEventAdjustmentService < StripeService # Creates a meter event adjustment to cancel a previously sent meter event. sig { - params(params: T.any(::Stripe::V2::Billing::MeterEventAdjustmentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Billing::MeterEventAdjustment) + params(params: T.any(::Stripe::V2::Billing::MeterEventAdjustmentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Billing::MeterEventAdjustment) } def create(params = {}, opts = {}); end end @@ -47388,7 +52114,7 @@ module Stripe class MeterEventSessionService < StripeService # Creates a meter event session to send usage on the high-throughput meter event stream. Authentication tokens are only valid for 15 minutes, so you will need to create a new meter event session when your token expires. sig { - params(params: T.any(::Stripe::V2::Billing::MeterEventSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Billing::MeterEventSession) + params(params: T.any(::Stripe::V2::Billing::MeterEventSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Billing::MeterEventSession) } def create(params = {}, opts = {}); end end @@ -47427,13 +52153,13 @@ module Stripe class EventService < StripeService # List events, going back up to 30 days. sig { - params(params: T.any(::Stripe::V2::Core::EventListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::ListObject) + params(params: T.any(::Stripe::V2::Core::EventListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an event. sig { - params(id: String, params: T.any(::Stripe::V2::Core::EventRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Core::Event) + params(id: String, params: T.any(::Stripe::V2::Core::EventRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Event) } def retrieve(id, params = {}, opts = {}); end end @@ -47447,49 +52173,49 @@ module Stripe class EventDestinationService < StripeService # Create a new event destination. sig { - params(params: T.any(::Stripe::V2::Core::EventDestinationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Core::EventDestination) + params(params: T.any(::Stripe::V2::Core::EventDestinationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::EventDestination) } def create(params = {}, opts = {}); end # Delete an event destination. sig { - params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::DeletedObject) + params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::DeletedObject) } def delete(id, params = {}, opts = {}); end # Disable an event destination. sig { - params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationDisableParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Core::EventDestination) + params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationDisableParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::EventDestination) } def disable(id, params = {}, opts = {}); end # Enable an event destination. sig { - params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationEnableParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Core::EventDestination) + params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationEnableParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::EventDestination) } def enable(id, params = {}, opts = {}); end # Lists all event destinations. sig { - params(params: T.any(::Stripe::V2::Core::EventDestinationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::ListObject) + params(params: T.any(::Stripe::V2::Core::EventDestinationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::ListObject) } def list(params = {}, opts = {}); end # Send a `ping` event to an event destination. sig { - params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationPingParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Core::Event) + params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationPingParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Event) } def ping(id, params = {}, opts = {}); end # Retrieves the details of an event destination. sig { - params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Core::EventDestination) + params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::EventDestination) } def retrieve(id, params = {}, opts = {}); end # Update the details of an event destination. sig { - params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Core::EventDestination) + params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::EventDestination) } def update(id, params = {}, opts = {}); end end @@ -47498,8 +52224,8 @@ module Stripe end # typed: true module Stripe - class AccountLinkCreateParams < Stripe::RequestParams - class CollectionOptions < Stripe::RequestParams + class AccountLinkCreateParams < ::Stripe::RequestParams + class CollectionOptions < ::Stripe::RequestParams # Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). If you don't specify `collection_options`, the default value is `currently_due`. sig { returns(T.nilable(String)) } def fields; end @@ -47568,10 +52294,10 @@ module Stripe end # typed: true module Stripe - class AccountSessionCreateParams < Stripe::RequestParams - class Components < Stripe::RequestParams - class AccountManagement < Stripe::RequestParams - class Features < Stripe::RequestParams + class AccountSessionCreateParams < ::Stripe::RequestParams + class Components < ::Stripe::RequestParams + class AccountManagement < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T.nilable(T::Boolean)) } def disable_stripe_user_authentication; end @@ -47613,8 +52339,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class AccountOnboarding < Stripe::RequestParams - class Features < Stripe::RequestParams + class AccountOnboarding < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T.nilable(T::Boolean)) } def disable_stripe_user_authentication; end @@ -47656,8 +52382,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class Balances < Stripe::RequestParams - class Features < Stripe::RequestParams + class Balances < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T.nilable(T::Boolean)) } def disable_stripe_user_authentication; end @@ -47717,8 +52443,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class DisputesList < Stripe::RequestParams - class Features < Stripe::RequestParams + class DisputesList < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether to allow capturing and cancelling payment intents. This is `true` by default. sig { returns(T.nilable(T::Boolean)) } def capture_payments; end @@ -47770,8 +52496,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class Documents < Stripe::RequestParams - class Features < Stripe::RequestParams; end + class Documents < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams; end # Whether the embedded component is enabled. sig { returns(T::Boolean) } def enabled; end @@ -47789,8 +52515,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class FinancialAccount < Stripe::RequestParams - class Features < Stripe::RequestParams + class FinancialAccount < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T.nilable(T::Boolean)) } def disable_stripe_user_authentication; end @@ -47844,8 +52570,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class FinancialAccountTransactions < Stripe::RequestParams - class Features < Stripe::RequestParams + class FinancialAccountTransactions < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether to allow card spend dispute management features. sig { returns(T.nilable(T::Boolean)) } def card_spend_dispute_management; end @@ -47875,8 +52601,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class InstantPayoutsPromotion < Stripe::RequestParams - class Features < Stripe::RequestParams + class InstantPayoutsPromotion < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T.nilable(T::Boolean)) } def disable_stripe_user_authentication; end @@ -47924,8 +52650,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class IssuingCard < Stripe::RequestParams - class Features < Stripe::RequestParams + class IssuingCard < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether to allow card management features. sig { returns(T.nilable(T::Boolean)) } def card_management; end @@ -47979,8 +52705,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class IssuingCardsList < Stripe::RequestParams - class Features < Stripe::RequestParams + class IssuingCardsList < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether to allow card management features. sig { returns(T.nilable(T::Boolean)) } def card_management; end @@ -48044,8 +52770,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class NotificationBanner < Stripe::RequestParams - class Features < Stripe::RequestParams + class NotificationBanner < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T.nilable(T::Boolean)) } def disable_stripe_user_authentication; end @@ -48087,8 +52813,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class PaymentDetails < Stripe::RequestParams - class Features < Stripe::RequestParams + class PaymentDetails < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether to allow capturing and cancelling payment intents. This is `true` by default. sig { returns(T.nilable(T::Boolean)) } def capture_payments; end @@ -48140,8 +52866,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class PaymentDisputes < Stripe::RequestParams - class Features < Stripe::RequestParams + class PaymentDisputes < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default. sig { returns(T.nilable(T::Boolean)) } def destination_on_behalf_of_charge_management; end @@ -48189,8 +52915,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class Payments < Stripe::RequestParams - class Features < Stripe::RequestParams + class Payments < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether to allow capturing and cancelling payment intents. This is `true` by default. sig { returns(T.nilable(T::Boolean)) } def capture_payments; end @@ -48242,8 +52968,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class PayoutDetails < Stripe::RequestParams - class Features < Stripe::RequestParams; end + class PayoutDetails < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams; end # Whether the embedded component is enabled. sig { returns(T::Boolean) } def enabled; end @@ -48261,8 +52987,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class Payouts < Stripe::RequestParams - class Features < Stripe::RequestParams + class Payouts < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T.nilable(T::Boolean)) } def disable_stripe_user_authentication; end @@ -48322,8 +53048,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class PayoutsList < Stripe::RequestParams - class Features < Stripe::RequestParams; end + class PayoutsList < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams; end # Whether the embedded component is enabled. sig { returns(T::Boolean) } def enabled; end @@ -48341,8 +53067,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class TaxRegistrations < Stripe::RequestParams - class Features < Stripe::RequestParams; end + class TaxRegistrations < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams; end # Whether the embedded component is enabled. sig { returns(T::Boolean) } def enabled; end @@ -48362,8 +53088,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class TaxSettings < Stripe::RequestParams - class Features < Stripe::RequestParams; end + class TaxSettings < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams; end # Whether the embedded component is enabled. sig { returns(T::Boolean) } def enabled; end @@ -48566,12 +53292,12 @@ module Stripe end # typed: true module Stripe - class AccountDeleteParams < Stripe::RequestParams; end + class AccountDeleteParams < ::Stripe::RequestParams; end end # typed: true module Stripe - class AccountUpdateParams < Stripe::RequestParams - class BankAccount < Stripe::RequestParams + class AccountUpdateParams < ::Stripe::RequestParams + class BankAccount < ::Stripe::RequestParams # Attribute for param field object sig { returns(String) } def object; end @@ -48620,8 +53346,8 @@ module Stripe routing_number: nil ); end end - class BusinessProfile < Stripe::RequestParams - class AnnualRevenue < Stripe::RequestParams + class BusinessProfile < ::Stripe::RequestParams + class AnnualRevenue < ::Stripe::RequestParams # A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal). sig { returns(Integer) } def amount; end @@ -48640,7 +53366,7 @@ module Stripe sig { params(amount: Integer, currency: String, fiscal_year_end: String).void } def initialize(amount: nil, currency: nil, fiscal_year_end: nil); end end - class MonthlyEstimatedRevenue < Stripe::RequestParams + class MonthlyEstimatedRevenue < ::Stripe::RequestParams # A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal). sig { returns(Integer) } def amount; end @@ -48654,7 +53380,7 @@ module Stripe sig { params(amount: Integer, currency: String).void } def initialize(amount: nil, currency: nil); end end - class SupportAddress < Stripe::RequestParams + class SupportAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -48783,8 +53509,8 @@ module Stripe url: nil ); end end - class Capabilities < Stripe::RequestParams - class AcssDebitPayments < Stripe::RequestParams + class Capabilities < ::Stripe::RequestParams + class AcssDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48793,7 +53519,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class AffirmPayments < Stripe::RequestParams + class AffirmPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48802,7 +53528,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class AfterpayClearpayPayments < Stripe::RequestParams + class AfterpayClearpayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48811,7 +53537,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class AlmaPayments < Stripe::RequestParams + class AlmaPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48820,7 +53546,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class AmazonPayPayments < Stripe::RequestParams + class AmazonPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48829,7 +53555,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class AuBecsDebitPayments < Stripe::RequestParams + class AuBecsDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48838,7 +53564,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BacsDebitPayments < Stripe::RequestParams + class BacsDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48847,7 +53573,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BancontactPayments < Stripe::RequestParams + class BancontactPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48856,7 +53582,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BankTransferPayments < Stripe::RequestParams + class BankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48865,7 +53591,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BilliePayments < Stripe::RequestParams + class BilliePayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48874,7 +53600,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BlikPayments < Stripe::RequestParams + class BlikPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48883,7 +53609,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BoletoPayments < Stripe::RequestParams + class BoletoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48892,7 +53618,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class CardIssuing < Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48901,7 +53627,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class CardPayments < Stripe::RequestParams + class CardPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48910,7 +53636,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class CartesBancairesPayments < Stripe::RequestParams + class CartesBancairesPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48919,7 +53645,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class CashappPayments < Stripe::RequestParams + class CashappPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48928,7 +53654,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class CryptoPayments < Stripe::RequestParams + class CryptoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48937,7 +53663,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class EpsPayments < Stripe::RequestParams + class EpsPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48946,7 +53672,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class FpxPayments < Stripe::RequestParams + class FpxPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48955,7 +53681,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class GbBankTransferPayments < Stripe::RequestParams + class GbBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48964,7 +53690,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class GiropayPayments < Stripe::RequestParams + class GiropayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48973,7 +53699,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class GrabpayPayments < Stripe::RequestParams + class GrabpayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48982,7 +53708,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class IdealPayments < Stripe::RequestParams + class IdealPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -48991,7 +53717,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class IndiaInternationalPayments < Stripe::RequestParams + class IndiaInternationalPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49000,7 +53726,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class JcbPayments < Stripe::RequestParams + class JcbPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49009,7 +53735,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class JpBankTransferPayments < Stripe::RequestParams + class JpBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49018,7 +53744,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class KakaoPayPayments < Stripe::RequestParams + class KakaoPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49027,7 +53753,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class KlarnaPayments < Stripe::RequestParams + class KlarnaPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49036,7 +53762,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class KonbiniPayments < Stripe::RequestParams + class KonbiniPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49045,7 +53771,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class KrCardPayments < Stripe::RequestParams + class KrCardPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49054,7 +53780,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class LegacyPayments < Stripe::RequestParams + class LegacyPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49063,7 +53789,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class LinkPayments < Stripe::RequestParams + class LinkPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49072,7 +53798,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class MbWayPayments < Stripe::RequestParams + class MbWayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49081,7 +53807,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class MobilepayPayments < Stripe::RequestParams + class MobilepayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49090,7 +53816,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class MultibancoPayments < Stripe::RequestParams + class MultibancoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49099,7 +53825,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class MxBankTransferPayments < Stripe::RequestParams + class MxBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49108,7 +53834,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class NaverPayPayments < Stripe::RequestParams + class NaverPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49117,7 +53843,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class NzBankAccountBecsDebitPayments < Stripe::RequestParams + class NzBankAccountBecsDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49126,7 +53852,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class OxxoPayments < Stripe::RequestParams + class OxxoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49135,7 +53861,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class P24Payments < Stripe::RequestParams + class P24Payments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49144,7 +53870,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class PayByBankPayments < Stripe::RequestParams + class PayByBankPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49153,7 +53879,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class PaycoPayments < Stripe::RequestParams + class PaycoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49162,7 +53888,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class PaynowPayments < Stripe::RequestParams + class PaynowPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49171,7 +53897,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class PixPayments < Stripe::RequestParams + class PixPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49180,7 +53906,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class PromptpayPayments < Stripe::RequestParams + class PromptpayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49189,7 +53915,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class RevolutPayPayments < Stripe::RequestParams + class RevolutPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49198,7 +53924,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SamsungPayPayments < Stripe::RequestParams + class SamsungPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49207,7 +53933,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SatispayPayments < Stripe::RequestParams + class SatispayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49216,7 +53942,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SepaBankTransferPayments < Stripe::RequestParams + class SepaBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49225,7 +53951,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SepaDebitPayments < Stripe::RequestParams + class SepaDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49234,7 +53960,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SofortPayments < Stripe::RequestParams + class SofortPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49243,7 +53969,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SwishPayments < Stripe::RequestParams + class SwishPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49252,7 +53978,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class TaxReportingUs1099K < Stripe::RequestParams + class TaxReportingUs1099K < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49261,7 +53987,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class TaxReportingUs1099Misc < Stripe::RequestParams + class TaxReportingUs1099Misc < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49270,7 +53996,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class Transfers < Stripe::RequestParams + class Transfers < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49279,7 +54005,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class Treasury < Stripe::RequestParams + class Treasury < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49288,7 +54014,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class TwintPayments < Stripe::RequestParams + class TwintPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49297,7 +54023,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class UsBankAccountAchPayments < Stripe::RequestParams + class UsBankAccountAchPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49306,7 +54032,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class UsBankTransferPayments < Stripe::RequestParams + class UsBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49315,7 +54041,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class ZipPayments < Stripe::RequestParams + class ZipPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -49810,7 +54536,7 @@ module Stripe zip_payments: nil ); end end - class Card < Stripe::RequestParams + class Card < ::Stripe::RequestParams # Attribute for param field object sig { returns(String) } def object; end @@ -49909,7 +54635,7 @@ module Stripe default_for_currency: nil ); end end - class CardToken < Stripe::RequestParams + class CardToken < ::Stripe::RequestParams # Attribute for param field object sig { returns(String) } def object; end @@ -49928,8 +54654,8 @@ module Stripe sig { params(object: String, currency: T.nilable(String), token: String).void } def initialize(object: nil, currency: nil, token: nil); end end - class Company < Stripe::RequestParams - class Address < Stripe::RequestParams + class Company < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -49972,7 +54698,7 @@ module Stripe state: nil ); end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -50021,7 +54747,7 @@ module Stripe town: nil ); end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -50070,7 +54796,7 @@ module Stripe town: nil ); end end - class DirectorshipDeclaration < Stripe::RequestParams + class DirectorshipDeclaration < ::Stripe::RequestParams # The Unix timestamp marking when the directorship declaration attestation was made. sig { returns(T.nilable(Integer)) } def date; end @@ -50091,7 +54817,7 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end - class OwnershipDeclaration < Stripe::RequestParams + class OwnershipDeclaration < ::Stripe::RequestParams # The Unix timestamp marking when the beneficial owner attestation was made. sig { returns(T.nilable(Integer)) } def date; end @@ -50112,7 +54838,7 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end - class RegistrationDate < Stripe::RequestParams + class RegistrationDate < ::Stripe::RequestParams # The day of registration, between 1 and 31. sig { returns(Integer) } def day; end @@ -50131,8 +54857,29 @@ module Stripe sig { params(day: Integer, month: Integer, year: Integer).void } def initialize(day: nil, month: nil, year: nil); end end - class Verification < Stripe::RequestParams - class Document < Stripe::RequestParams + class RepresentativeDeclaration < ::Stripe::RequestParams + # The Unix timestamp marking when the representative declaration attestation was made. + sig { returns(T.nilable(Integer)) } + def date; end + sig { params(_date: T.nilable(Integer)).returns(T.nilable(Integer)) } + def date=(_date); end + # The IP address from which the representative declaration attestation was made. + sig { returns(T.nilable(String)) } + def ip; end + sig { params(_ip: T.nilable(String)).returns(T.nilable(String)) } + def ip=(_ip); end + # The user agent of the browser from which the representative declaration attestation was made. + sig { returns(T.nilable(String)) } + def user_agent; end + sig { params(_user_agent: T.nilable(String)).returns(T.nilable(String)) } + def user_agent=(_user_agent); end + sig { + params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void + } + def initialize(date: nil, ip: nil, user_agent: nil); end + end + class Verification < ::Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -50257,6 +55004,13 @@ module Stripe def registration_number; end sig { params(_registration_number: T.nilable(String)).returns(T.nilable(String)) } def registration_number=(_registration_number); end + # This hash is used to attest that the representative is authorized to act as the representative of their legal entity. + sig { returns(T.nilable(AccountUpdateParams::Company::RepresentativeDeclaration)) } + def representative_declaration; end + sig { + params(_representative_declaration: T.nilable(AccountUpdateParams::Company::RepresentativeDeclaration)).returns(T.nilable(AccountUpdateParams::Company::RepresentativeDeclaration)) + } + def representative_declaration=(_representative_declaration); end # The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value. sig { returns(T.nilable(T.any(String, String))) } def structure; end @@ -50287,7 +55041,7 @@ module Stripe } def verification=(_verification); end sig { - params(address: T.nilable(AccountUpdateParams::Company::Address), address_kana: T.nilable(AccountUpdateParams::Company::AddressKana), address_kanji: T.nilable(AccountUpdateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(AccountUpdateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(AccountUpdateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, AccountUpdateParams::Company::RegistrationDate)), registration_number: T.nilable(String), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(AccountUpdateParams::Company::Verification)).void + params(address: T.nilable(AccountUpdateParams::Company::Address), address_kana: T.nilable(AccountUpdateParams::Company::AddressKana), address_kanji: T.nilable(AccountUpdateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(AccountUpdateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(AccountUpdateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, AccountUpdateParams::Company::RegistrationDate)), registration_number: T.nilable(String), representative_declaration: T.nilable(AccountUpdateParams::Company::RepresentativeDeclaration), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(AccountUpdateParams::Company::Verification)).void } def initialize( address: nil, @@ -50307,6 +55061,7 @@ module Stripe phone: nil, registration_date: nil, registration_number: nil, + representative_declaration: nil, structure: nil, tax_id: nil, tax_id_registrar: nil, @@ -50314,8 +55069,8 @@ module Stripe verification: nil ); end end - class Documents < Stripe::RequestParams - class BankAccountOwnershipVerification < Stripe::RequestParams + class Documents < ::Stripe::RequestParams + class BankAccountOwnershipVerification < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -50324,7 +55079,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class CompanyLicense < Stripe::RequestParams + class CompanyLicense < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -50333,7 +55088,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class CompanyMemorandumOfAssociation < Stripe::RequestParams + class CompanyMemorandumOfAssociation < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -50342,7 +55097,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class CompanyMinisterialDecree < Stripe::RequestParams + class CompanyMinisterialDecree < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -50351,7 +55106,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class CompanyRegistrationVerification < Stripe::RequestParams + class CompanyRegistrationVerification < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -50360,7 +55115,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class CompanyTaxIdVerification < Stripe::RequestParams + class CompanyTaxIdVerification < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -50369,7 +55124,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class ProofOfAddress < Stripe::RequestParams + class ProofOfAddress < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -50378,7 +55133,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class ProofOfRegistration < Stripe::RequestParams + class ProofOfRegistration < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -50387,7 +55142,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams + class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -50474,7 +55229,7 @@ module Stripe proof_of_ultimate_beneficial_ownership: nil ); end end - class Groups < Stripe::RequestParams + class Groups < ::Stripe::RequestParams # The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details. sig { returns(T.nilable(String)) } def payments_pricing; end @@ -50483,8 +55238,8 @@ module Stripe sig { params(payments_pricing: T.nilable(String)).void } def initialize(payments_pricing: nil); end end - class Individual < Stripe::RequestParams - class Address < Stripe::RequestParams + class Individual < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -50527,7 +55282,7 @@ module Stripe state: nil ); end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -50576,7 +55331,7 @@ module Stripe town: nil ); end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -50625,7 +55380,7 @@ module Stripe town: nil ); end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -50644,7 +55399,7 @@ module Stripe sig { params(day: Integer, month: Integer, year: Integer).void } def initialize(day: nil, month: nil, year: nil); end end - class RegisteredAddress < Stripe::RequestParams + class RegisteredAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -50687,7 +55442,7 @@ module Stripe state: nil ); end end - class Relationship < Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. sig { returns(T.nilable(T::Boolean)) } def director; end @@ -50726,8 +55481,8 @@ module Stripe title: nil ); end end - class Verification < Stripe::RequestParams - class AdditionalDocument < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class AdditionalDocument < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -50741,7 +55496,7 @@ module Stripe sig { params(back: T.nilable(String), front: T.nilable(String)).void } def initialize(back: nil, front: nil); end end - class Document < Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -50938,8 +55693,8 @@ module Stripe verification: nil ); end end - class Settings < Stripe::RequestParams - class BacsDebitPayments < Stripe::RequestParams + class Settings < ::Stripe::RequestParams + class BacsDebitPayments < ::Stripe::RequestParams # The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free. sig { returns(T.nilable(String)) } def display_name; end @@ -50948,7 +55703,7 @@ module Stripe sig { params(display_name: T.nilable(String)).void } def initialize(display_name: nil); end end - class Branding < Stripe::RequestParams + class Branding < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px. sig { returns(T.nilable(String)) } def icon; end @@ -50974,8 +55729,8 @@ module Stripe } def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil); end end - class CardIssuing < Stripe::RequestParams - class TosAcceptance < Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams + class TosAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted the service agreement. sig { returns(T.nilable(Integer)) } def date; end @@ -51008,8 +55763,8 @@ module Stripe } def initialize(tos_acceptance: nil); end end - class CardPayments < Stripe::RequestParams - class DeclineOn < Stripe::RequestParams + class CardPayments < ::Stripe::RequestParams + class DeclineOn < ::Stripe::RequestParams # Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification. sig { returns(T.nilable(T::Boolean)) } def avs_failure; end @@ -51061,7 +55816,7 @@ module Stripe statement_descriptor_prefix_kanji: nil ); end end - class Invoices < Stripe::RequestParams + class Invoices < ::Stripe::RequestParams # The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized. sig { returns(T.nilable(T.any(String, T::Array[String]))) } def default_account_tax_ids; end @@ -51079,7 +55834,7 @@ module Stripe } def initialize(default_account_tax_ids: nil, hosted_payment_method_save: nil); end end - class Payments < Stripe::RequestParams + class Payments < ::Stripe::RequestParams # The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors). sig { returns(T.nilable(String)) } def statement_descriptor; end @@ -51104,8 +55859,8 @@ module Stripe statement_descriptor_kanji: nil ); end end - class Payouts < Stripe::RequestParams - class Schedule < Stripe::RequestParams + class Payouts < ::Stripe::RequestParams + class Schedule < ::Stripe::RequestParams # The number of days charge funds are held before being paid out. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `interval` is `manual`. [Learn more about controlling payout delay days](/connect/manage-payout-schedule). sig { returns(T.nilable(T.any(String, Integer))) } def delay_days; end @@ -51178,8 +55933,8 @@ module Stripe } def initialize(debit_negative_balances: nil, schedule: nil, statement_descriptor: nil); end end - class Treasury < Stripe::RequestParams - class TosAcceptance < Stripe::RequestParams + class Treasury < ::Stripe::RequestParams + class TosAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted the service agreement. sig { returns(T.nilable(Integer)) } def date; end @@ -51282,7 +56037,7 @@ module Stripe treasury: nil ); end end - class TosAcceptance < Stripe::RequestParams + class TosAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted their service agreement. sig { returns(T.nilable(Integer)) } def date; end @@ -51436,8 +56191,8 @@ module Stripe end # typed: true module Stripe - class AccountListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class AccountListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -51504,8 +56259,8 @@ module Stripe end # typed: true module Stripe - class AccountCreateParams < Stripe::RequestParams - class BankAccount < Stripe::RequestParams + class AccountCreateParams < ::Stripe::RequestParams + class BankAccount < ::Stripe::RequestParams # Attribute for param field object sig { returns(String) } def object; end @@ -51554,8 +56309,8 @@ module Stripe routing_number: nil ); end end - class BusinessProfile < Stripe::RequestParams - class AnnualRevenue < Stripe::RequestParams + class BusinessProfile < ::Stripe::RequestParams + class AnnualRevenue < ::Stripe::RequestParams # A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal). sig { returns(Integer) } def amount; end @@ -51574,7 +56329,7 @@ module Stripe sig { params(amount: Integer, currency: String, fiscal_year_end: String).void } def initialize(amount: nil, currency: nil, fiscal_year_end: nil); end end - class MonthlyEstimatedRevenue < Stripe::RequestParams + class MonthlyEstimatedRevenue < ::Stripe::RequestParams # A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal). sig { returns(Integer) } def amount; end @@ -51588,7 +56343,7 @@ module Stripe sig { params(amount: Integer, currency: String).void } def initialize(amount: nil, currency: nil); end end - class SupportAddress < Stripe::RequestParams + class SupportAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -51717,8 +56472,8 @@ module Stripe url: nil ); end end - class Capabilities < Stripe::RequestParams - class AcssDebitPayments < Stripe::RequestParams + class Capabilities < ::Stripe::RequestParams + class AcssDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51727,7 +56482,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class AffirmPayments < Stripe::RequestParams + class AffirmPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51736,7 +56491,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class AfterpayClearpayPayments < Stripe::RequestParams + class AfterpayClearpayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51745,7 +56500,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class AlmaPayments < Stripe::RequestParams + class AlmaPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51754,7 +56509,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class AmazonPayPayments < Stripe::RequestParams + class AmazonPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51763,7 +56518,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class AuBecsDebitPayments < Stripe::RequestParams + class AuBecsDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51772,7 +56527,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BacsDebitPayments < Stripe::RequestParams + class BacsDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51781,7 +56536,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BancontactPayments < Stripe::RequestParams + class BancontactPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51790,7 +56545,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BankTransferPayments < Stripe::RequestParams + class BankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51799,7 +56554,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BilliePayments < Stripe::RequestParams + class BilliePayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51808,7 +56563,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BlikPayments < Stripe::RequestParams + class BlikPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51817,7 +56572,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BoletoPayments < Stripe::RequestParams + class BoletoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51826,7 +56581,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class CardIssuing < Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51835,7 +56590,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class CardPayments < Stripe::RequestParams + class CardPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51844,7 +56599,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class CartesBancairesPayments < Stripe::RequestParams + class CartesBancairesPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51853,7 +56608,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class CashappPayments < Stripe::RequestParams + class CashappPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51862,7 +56617,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class CryptoPayments < Stripe::RequestParams + class CryptoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51871,7 +56626,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class EpsPayments < Stripe::RequestParams + class EpsPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51880,7 +56635,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class FpxPayments < Stripe::RequestParams + class FpxPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51889,7 +56644,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class GbBankTransferPayments < Stripe::RequestParams + class GbBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51898,7 +56653,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class GiropayPayments < Stripe::RequestParams + class GiropayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51907,7 +56662,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class GrabpayPayments < Stripe::RequestParams + class GrabpayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51916,7 +56671,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class IdealPayments < Stripe::RequestParams + class IdealPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51925,7 +56680,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class IndiaInternationalPayments < Stripe::RequestParams + class IndiaInternationalPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51934,7 +56689,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class JcbPayments < Stripe::RequestParams + class JcbPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51943,7 +56698,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class JpBankTransferPayments < Stripe::RequestParams + class JpBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51952,7 +56707,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class KakaoPayPayments < Stripe::RequestParams + class KakaoPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51961,7 +56716,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class KlarnaPayments < Stripe::RequestParams + class KlarnaPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51970,7 +56725,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class KonbiniPayments < Stripe::RequestParams + class KonbiniPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51979,7 +56734,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class KrCardPayments < Stripe::RequestParams + class KrCardPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51988,7 +56743,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class LegacyPayments < Stripe::RequestParams + class LegacyPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -51997,7 +56752,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class LinkPayments < Stripe::RequestParams + class LinkPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52006,7 +56761,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class MbWayPayments < Stripe::RequestParams + class MbWayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52015,7 +56770,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class MobilepayPayments < Stripe::RequestParams + class MobilepayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52024,7 +56779,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class MultibancoPayments < Stripe::RequestParams + class MultibancoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52033,7 +56788,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class MxBankTransferPayments < Stripe::RequestParams + class MxBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52042,7 +56797,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class NaverPayPayments < Stripe::RequestParams + class NaverPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52051,7 +56806,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class NzBankAccountBecsDebitPayments < Stripe::RequestParams + class NzBankAccountBecsDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52060,7 +56815,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class OxxoPayments < Stripe::RequestParams + class OxxoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52069,7 +56824,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class P24Payments < Stripe::RequestParams + class P24Payments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52078,7 +56833,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class PayByBankPayments < Stripe::RequestParams + class PayByBankPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52087,7 +56842,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class PaycoPayments < Stripe::RequestParams + class PaycoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52096,7 +56851,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class PaynowPayments < Stripe::RequestParams + class PaynowPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52105,7 +56860,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class PixPayments < Stripe::RequestParams + class PixPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52114,7 +56869,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class PromptpayPayments < Stripe::RequestParams + class PromptpayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52123,7 +56878,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class RevolutPayPayments < Stripe::RequestParams + class RevolutPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52132,7 +56887,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SamsungPayPayments < Stripe::RequestParams + class SamsungPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52141,7 +56896,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SatispayPayments < Stripe::RequestParams + class SatispayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52150,7 +56905,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SepaBankTransferPayments < Stripe::RequestParams + class SepaBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52159,7 +56914,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SepaDebitPayments < Stripe::RequestParams + class SepaDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52168,7 +56923,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SofortPayments < Stripe::RequestParams + class SofortPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52177,7 +56932,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SwishPayments < Stripe::RequestParams + class SwishPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52186,7 +56941,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class TaxReportingUs1099K < Stripe::RequestParams + class TaxReportingUs1099K < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52195,7 +56950,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class TaxReportingUs1099Misc < Stripe::RequestParams + class TaxReportingUs1099Misc < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52204,7 +56959,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class Transfers < Stripe::RequestParams + class Transfers < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52213,7 +56968,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class Treasury < Stripe::RequestParams + class Treasury < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52222,7 +56977,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class TwintPayments < Stripe::RequestParams + class TwintPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52231,7 +56986,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class UsBankAccountAchPayments < Stripe::RequestParams + class UsBankAccountAchPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52240,7 +56995,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class UsBankTransferPayments < Stripe::RequestParams + class UsBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52249,7 +57004,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class ZipPayments < Stripe::RequestParams + class ZipPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -52744,7 +57499,7 @@ module Stripe zip_payments: nil ); end end - class Card < Stripe::RequestParams + class Card < ::Stripe::RequestParams # Attribute for param field object sig { returns(String) } def object; end @@ -52843,7 +57598,7 @@ module Stripe default_for_currency: nil ); end end - class CardToken < Stripe::RequestParams + class CardToken < ::Stripe::RequestParams # Attribute for param field object sig { returns(String) } def object; end @@ -52862,8 +57617,8 @@ module Stripe sig { params(object: String, currency: T.nilable(String), token: String).void } def initialize(object: nil, currency: nil, token: nil); end end - class Company < Stripe::RequestParams - class Address < Stripe::RequestParams + class Company < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -52906,7 +57661,7 @@ module Stripe state: nil ); end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -52955,7 +57710,7 @@ module Stripe town: nil ); end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -53004,7 +57759,7 @@ module Stripe town: nil ); end end - class DirectorshipDeclaration < Stripe::RequestParams + class DirectorshipDeclaration < ::Stripe::RequestParams # The Unix timestamp marking when the directorship declaration attestation was made. sig { returns(T.nilable(Integer)) } def date; end @@ -53025,7 +57780,7 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end - class OwnershipDeclaration < Stripe::RequestParams + class OwnershipDeclaration < ::Stripe::RequestParams # The Unix timestamp marking when the beneficial owner attestation was made. sig { returns(T.nilable(Integer)) } def date; end @@ -53046,7 +57801,7 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end - class RegistrationDate < Stripe::RequestParams + class RegistrationDate < ::Stripe::RequestParams # The day of registration, between 1 and 31. sig { returns(Integer) } def day; end @@ -53065,8 +57820,29 @@ module Stripe sig { params(day: Integer, month: Integer, year: Integer).void } def initialize(day: nil, month: nil, year: nil); end end - class Verification < Stripe::RequestParams - class Document < Stripe::RequestParams + class RepresentativeDeclaration < ::Stripe::RequestParams + # The Unix timestamp marking when the representative declaration attestation was made. + sig { returns(T.nilable(Integer)) } + def date; end + sig { params(_date: T.nilable(Integer)).returns(T.nilable(Integer)) } + def date=(_date); end + # The IP address from which the representative declaration attestation was made. + sig { returns(T.nilable(String)) } + def ip; end + sig { params(_ip: T.nilable(String)).returns(T.nilable(String)) } + def ip=(_ip); end + # The user agent of the browser from which the representative declaration attestation was made. + sig { returns(T.nilable(String)) } + def user_agent; end + sig { params(_user_agent: T.nilable(String)).returns(T.nilable(String)) } + def user_agent=(_user_agent); end + sig { + params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void + } + def initialize(date: nil, ip: nil, user_agent: nil); end + end + class Verification < ::Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -53191,6 +57967,13 @@ module Stripe def registration_number; end sig { params(_registration_number: T.nilable(String)).returns(T.nilable(String)) } def registration_number=(_registration_number); end + # This hash is used to attest that the representative is authorized to act as the representative of their legal entity. + sig { returns(T.nilable(AccountCreateParams::Company::RepresentativeDeclaration)) } + def representative_declaration; end + sig { + params(_representative_declaration: T.nilable(AccountCreateParams::Company::RepresentativeDeclaration)).returns(T.nilable(AccountCreateParams::Company::RepresentativeDeclaration)) + } + def representative_declaration=(_representative_declaration); end # The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value. sig { returns(T.nilable(T.any(String, String))) } def structure; end @@ -53221,7 +58004,7 @@ module Stripe } def verification=(_verification); end sig { - params(address: T.nilable(AccountCreateParams::Company::Address), address_kana: T.nilable(AccountCreateParams::Company::AddressKana), address_kanji: T.nilable(AccountCreateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(AccountCreateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(AccountCreateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, AccountCreateParams::Company::RegistrationDate)), registration_number: T.nilable(String), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(AccountCreateParams::Company::Verification)).void + params(address: T.nilable(AccountCreateParams::Company::Address), address_kana: T.nilable(AccountCreateParams::Company::AddressKana), address_kanji: T.nilable(AccountCreateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(AccountCreateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(AccountCreateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, AccountCreateParams::Company::RegistrationDate)), registration_number: T.nilable(String), representative_declaration: T.nilable(AccountCreateParams::Company::RepresentativeDeclaration), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(AccountCreateParams::Company::Verification)).void } def initialize( address: nil, @@ -53241,6 +58024,7 @@ module Stripe phone: nil, registration_date: nil, registration_number: nil, + representative_declaration: nil, structure: nil, tax_id: nil, tax_id_registrar: nil, @@ -53248,8 +58032,8 @@ module Stripe verification: nil ); end end - class Controller < Stripe::RequestParams - class Fees < Stripe::RequestParams + class Controller < ::Stripe::RequestParams + class Fees < ::Stripe::RequestParams # A value indicating the responsible payer of Stripe fees on this account. Defaults to `account`. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior). sig { returns(T.nilable(String)) } def payer; end @@ -53258,7 +58042,7 @@ module Stripe sig { params(payer: T.nilable(String)).void } def initialize(payer: nil); end end - class Losses < Stripe::RequestParams + class Losses < ::Stripe::RequestParams # A value indicating who is liable when this account can't pay back negative balances resulting from payments. Defaults to `stripe`. sig { returns(T.nilable(String)) } def payments; end @@ -53267,7 +58051,7 @@ module Stripe sig { params(payments: T.nilable(String)).void } def initialize(payments: nil); end end - class StripeDashboard < Stripe::RequestParams + class StripeDashboard < ::Stripe::RequestParams # Whether this account should have access to the full Stripe Dashboard (`full`), to the Express Dashboard (`express`), or to no Stripe-hosted dashboard (`none`). Defaults to `full`. sig { returns(T.nilable(String)) } def type; end @@ -53312,8 +58096,8 @@ module Stripe stripe_dashboard: nil ); end end - class Documents < Stripe::RequestParams - class BankAccountOwnershipVerification < Stripe::RequestParams + class Documents < ::Stripe::RequestParams + class BankAccountOwnershipVerification < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -53322,7 +58106,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class CompanyLicense < Stripe::RequestParams + class CompanyLicense < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -53331,7 +58115,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class CompanyMemorandumOfAssociation < Stripe::RequestParams + class CompanyMemorandumOfAssociation < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -53340,7 +58124,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class CompanyMinisterialDecree < Stripe::RequestParams + class CompanyMinisterialDecree < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -53349,7 +58133,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class CompanyRegistrationVerification < Stripe::RequestParams + class CompanyRegistrationVerification < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -53358,7 +58142,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class CompanyTaxIdVerification < Stripe::RequestParams + class CompanyTaxIdVerification < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -53367,7 +58151,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class ProofOfAddress < Stripe::RequestParams + class ProofOfAddress < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -53376,7 +58160,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class ProofOfRegistration < Stripe::RequestParams + class ProofOfRegistration < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -53385,7 +58169,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams + class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -53472,7 +58256,7 @@ module Stripe proof_of_ultimate_beneficial_ownership: nil ); end end - class Groups < Stripe::RequestParams + class Groups < ::Stripe::RequestParams # The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details. sig { returns(T.nilable(String)) } def payments_pricing; end @@ -53481,8 +58265,8 @@ module Stripe sig { params(payments_pricing: T.nilable(String)).void } def initialize(payments_pricing: nil); end end - class Individual < Stripe::RequestParams - class Address < Stripe::RequestParams + class Individual < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -53525,7 +58309,7 @@ module Stripe state: nil ); end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -53574,7 +58358,7 @@ module Stripe town: nil ); end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -53623,7 +58407,7 @@ module Stripe town: nil ); end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -53642,7 +58426,7 @@ module Stripe sig { params(day: Integer, month: Integer, year: Integer).void } def initialize(day: nil, month: nil, year: nil); end end - class RegisteredAddress < Stripe::RequestParams + class RegisteredAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -53685,7 +58469,7 @@ module Stripe state: nil ); end end - class Relationship < Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. sig { returns(T.nilable(T::Boolean)) } def director; end @@ -53724,8 +58508,8 @@ module Stripe title: nil ); end end - class Verification < Stripe::RequestParams - class AdditionalDocument < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class AdditionalDocument < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -53739,7 +58523,7 @@ module Stripe sig { params(back: T.nilable(String), front: T.nilable(String)).void } def initialize(back: nil, front: nil); end end - class Document < Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -53936,8 +58720,8 @@ module Stripe verification: nil ); end end - class Settings < Stripe::RequestParams - class BacsDebitPayments < Stripe::RequestParams + class Settings < ::Stripe::RequestParams + class BacsDebitPayments < ::Stripe::RequestParams # The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free. sig { returns(T.nilable(String)) } def display_name; end @@ -53946,7 +58730,7 @@ module Stripe sig { params(display_name: T.nilable(String)).void } def initialize(display_name: nil); end end - class Branding < Stripe::RequestParams + class Branding < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px. sig { returns(T.nilable(String)) } def icon; end @@ -53972,8 +58756,8 @@ module Stripe } def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil); end end - class CardIssuing < Stripe::RequestParams - class TosAcceptance < Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams + class TosAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted the service agreement. sig { returns(T.nilable(Integer)) } def date; end @@ -54006,8 +58790,8 @@ module Stripe } def initialize(tos_acceptance: nil); end end - class CardPayments < Stripe::RequestParams - class DeclineOn < Stripe::RequestParams + class CardPayments < ::Stripe::RequestParams + class DeclineOn < ::Stripe::RequestParams # Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification. sig { returns(T.nilable(T::Boolean)) } def avs_failure; end @@ -54059,7 +58843,7 @@ module Stripe statement_descriptor_prefix_kanji: nil ); end end - class Invoices < Stripe::RequestParams + class Invoices < ::Stripe::RequestParams # Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page. sig { returns(T.nilable(String)) } def hosted_payment_method_save; end @@ -54068,7 +58852,7 @@ module Stripe sig { params(hosted_payment_method_save: T.nilable(String)).void } def initialize(hosted_payment_method_save: nil); end end - class Payments < Stripe::RequestParams + class Payments < ::Stripe::RequestParams # The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors). sig { returns(T.nilable(String)) } def statement_descriptor; end @@ -54093,8 +58877,8 @@ module Stripe statement_descriptor_kanji: nil ); end end - class Payouts < Stripe::RequestParams - class Schedule < Stripe::RequestParams + class Payouts < ::Stripe::RequestParams + class Schedule < ::Stripe::RequestParams # The number of days charge funds are held before being paid out. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `interval` is `manual`. [Learn more about controlling payout delay days](/connect/manage-payout-schedule). sig { returns(T.nilable(T.any(String, Integer))) } def delay_days; end @@ -54167,8 +58951,8 @@ module Stripe } def initialize(debit_negative_balances: nil, schedule: nil, statement_descriptor: nil); end end - class Treasury < Stripe::RequestParams - class TosAcceptance < Stripe::RequestParams + class Treasury < ::Stripe::RequestParams + class TosAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted the service agreement. sig { returns(T.nilable(Integer)) } def date; end @@ -54271,7 +59055,7 @@ module Stripe treasury: nil ); end end - class TosAcceptance < Stripe::RequestParams + class TosAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted their service agreement. sig { returns(T.nilable(Integer)) } def date; end @@ -54445,8 +59229,8 @@ module Stripe end # typed: true module Stripe - class AccountPersonsParams < Stripe::RequestParams - class Relationship < Stripe::RequestParams + class AccountPersonsParams < ::Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # A filter on the list of people returned based on whether these people are authorizers of the account's representative. sig { returns(T.nilable(T::Boolean)) } def authorizer; end @@ -54530,7 +59314,7 @@ module Stripe end # typed: true module Stripe - class AccountRejectParams < Stripe::RequestParams + class AccountRejectParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -54547,11 +59331,11 @@ module Stripe end # typed: true module Stripe - class ApplePayDomainDeleteParams < Stripe::RequestParams; end + class ApplePayDomainDeleteParams < ::Stripe::RequestParams; end end # typed: true module Stripe - class ApplePayDomainListParams < Stripe::RequestParams + class ApplePayDomainListParams < ::Stripe::RequestParams # Attribute for param field domain_name sig { returns(T.nilable(String)) } def domain_name; end @@ -54591,7 +59375,7 @@ module Stripe end # typed: true module Stripe - class ApplePayDomainCreateParams < Stripe::RequestParams + class ApplePayDomainCreateParams < ::Stripe::RequestParams # Attribute for param field domain_name sig { returns(String) } def domain_name; end @@ -54608,8 +59392,8 @@ module Stripe end # typed: true module Stripe - class ApplicationFeeListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ApplicationFeeListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -54683,8 +59467,8 @@ end # typed: true module Stripe module Apps - class SecretListParams < Stripe::RequestParams - class Scope < Stripe::RequestParams + class SecretListParams < ::Stripe::RequestParams + class Scope < ::Stripe::RequestParams # The secret scope type. sig { returns(String) } def type; end @@ -54739,8 +59523,8 @@ end # typed: true module Stripe module Apps - class SecretCreateParams < Stripe::RequestParams - class Scope < Stripe::RequestParams + class SecretCreateParams < ::Stripe::RequestParams + class Scope < ::Stripe::RequestParams # The secret scope type. sig { returns(String) } def type; end @@ -54791,8 +59575,8 @@ end # typed: true module Stripe module Apps - class SecretFindParams < Stripe::RequestParams - class Scope < Stripe::RequestParams + class SecretFindParams < ::Stripe::RequestParams + class Scope < ::Stripe::RequestParams # The secret scope type. sig { returns(String) } def type; end @@ -54831,8 +59615,8 @@ end # typed: true module Stripe module Apps - class SecretDeleteWhereParams < Stripe::RequestParams - class Scope < Stripe::RequestParams + class SecretDeleteWhereParams < ::Stripe::RequestParams + class Scope < ::Stripe::RequestParams # The secret scope type. sig { returns(String) } def type; end @@ -54872,10 +59656,10 @@ module Stripe end # typed: true module Stripe - class BalanceSettingsUpdateParams < Stripe::RequestParams - class Payments < Stripe::RequestParams - class Payouts < Stripe::RequestParams - class Schedule < Stripe::RequestParams + class BalanceSettingsUpdateParams < ::Stripe::RequestParams + class Payments < ::Stripe::RequestParams + class Payouts < ::Stripe::RequestParams + class Schedule < ::Stripe::RequestParams # How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`. sig { returns(T.nilable(String)) } def interval; end @@ -54928,7 +59712,7 @@ module Stripe statement_descriptor: nil ); end end - class SettlementTiming < Stripe::RequestParams + class SettlementTiming < ::Stripe::RequestParams # Change `delay_days` for this account, which determines the number of days charge funds are held before becoming available. The maximum value is 31. Passing an empty string to `delay_days_override` will return `delay_days` to the default, which is the lowest available value for the account. [Learn more about controlling delay days](/connect/manage-payout-schedule). sig { returns(T.nilable(T.any(String, Integer))) } def delay_days_override; end @@ -54983,8 +59767,8 @@ module Stripe end # typed: true module Stripe - class BalanceTransactionListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class BalanceTransactionListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -55076,7 +59860,7 @@ end # typed: true module Stripe module Billing - class AlertListParams < Stripe::RequestParams + class AlertListParams < ::Stripe::RequestParams # Filter results to only include this type of alert. sig { returns(T.nilable(String)) } def alert_type; end @@ -55124,9 +59908,9 @@ end # typed: true module Stripe module Billing - class AlertCreateParams < Stripe::RequestParams - class UsageThreshold < Stripe::RequestParams - class Filter < Stripe::RequestParams + class AlertCreateParams < ::Stripe::RequestParams + class UsageThreshold < ::Stripe::RequestParams + class Filter < ::Stripe::RequestParams # Limit the scope to this usage alert only to this customer. sig { returns(T.nilable(String)) } def customer; end @@ -55199,7 +59983,7 @@ end # typed: true module Stripe module Billing - class AlertActivateParams < Stripe::RequestParams + class AlertActivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -55213,7 +59997,7 @@ end # typed: true module Stripe module Billing - class AlertArchiveParams < Stripe::RequestParams + class AlertArchiveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -55227,7 +60011,7 @@ end # typed: true module Stripe module Billing - class AlertDeactivateParams < Stripe::RequestParams + class AlertDeactivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -55241,7 +60025,7 @@ end # typed: true module Stripe module Billing - class CreditBalanceTransactionListParams < Stripe::RequestParams + class CreditBalanceTransactionListParams < ::Stripe::RequestParams # The credit grant for which to fetch credit balance transactions. sig { returns(T.nilable(String)) } def credit_grant; end @@ -55289,7 +60073,7 @@ end # typed: true module Stripe module Billing - class CreditGrantListParams < Stripe::RequestParams + class CreditGrantListParams < ::Stripe::RequestParams # Only return credit grants for this customer. sig { returns(T.nilable(String)) } def customer; end @@ -55331,9 +60115,9 @@ end # typed: true module Stripe module Billing - class CreditGrantCreateParams < Stripe::RequestParams - class Amount < Stripe::RequestParams - class Monetary < Stripe::RequestParams + class CreditGrantCreateParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + class Monetary < ::Stripe::RequestParams # Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `value` parameter. sig { returns(String) } def currency; end @@ -55364,9 +60148,9 @@ module Stripe } def initialize(monetary: nil, type: nil); end end - class ApplicabilityConfig < Stripe::RequestParams - class Scope < Stripe::RequestParams - class Price < Stripe::RequestParams + class ApplicabilityConfig < ::Stripe::RequestParams + class Scope < ::Stripe::RequestParams + class Price < ::Stripe::RequestParams # The price ID this credit grant should apply to. sig { returns(String) } def id; end @@ -55418,10 +60202,10 @@ module Stripe params(_applicability_config: Billing::CreditGrantCreateParams::ApplicabilityConfig).returns(Billing::CreditGrantCreateParams::ApplicabilityConfig) } def applicability_config=(_applicability_config); end - # The category of this credit grant. - sig { returns(String) } + # The category of this credit grant. It defaults to `paid` if not specified. + sig { returns(T.nilable(String)) } def category; end - sig { params(_category: String).returns(String) } + sig { params(_category: T.nilable(String)).returns(T.nilable(String)) } def category=(_category); end # ID of the customer to receive the billing credits. sig { returns(String) } @@ -55461,7 +60245,7 @@ module Stripe sig { params(_priority: T.nilable(Integer)).returns(T.nilable(Integer)) } def priority=(_priority); end sig { - params(amount: Billing::CreditGrantCreateParams::Amount, applicability_config: Billing::CreditGrantCreateParams::ApplicabilityConfig, category: String, customer: String, effective_at: T.nilable(Integer), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), metadata: T.nilable(T::Hash[String, String]), name: T.nilable(String), priority: T.nilable(Integer)).void + params(amount: Billing::CreditGrantCreateParams::Amount, applicability_config: Billing::CreditGrantCreateParams::ApplicabilityConfig, category: T.nilable(String), customer: String, effective_at: T.nilable(Integer), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), metadata: T.nilable(T::Hash[String, String]), name: T.nilable(String), priority: T.nilable(Integer)).void } def initialize( amount: nil, @@ -55481,7 +60265,7 @@ end # typed: true module Stripe module Billing - class CreditGrantUpdateParams < Stripe::RequestParams + class CreditGrantUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -55511,7 +60295,7 @@ end # typed: true module Stripe module Billing - class CreditGrantExpireParams < Stripe::RequestParams + class CreditGrantExpireParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -55525,7 +60309,7 @@ end # typed: true module Stripe module Billing - class CreditGrantVoidGrantParams < Stripe::RequestParams + class CreditGrantVoidGrantParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -55539,8 +60323,8 @@ end # typed: true module Stripe module Billing - class MeterEventAdjustmentCreateParams < Stripe::RequestParams - class Cancel < Stripe::RequestParams + class MeterEventAdjustmentCreateParams < ::Stripe::RequestParams + class Cancel < ::Stripe::RequestParams # Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them. sig { returns(T.nilable(String)) } def identifier; end @@ -55581,7 +60365,7 @@ end # typed: true module Stripe module Billing - class MeterEventCreateParams < Stripe::RequestParams + class MeterEventCreateParams < ::Stripe::RequestParams # The name of the meter event. Corresponds with the `event_name` field on a meter. sig { returns(String) } def event_name; end @@ -55623,7 +60407,7 @@ end # typed: true module Stripe module Billing - class MeterListParams < Stripe::RequestParams + class MeterListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -55665,8 +60449,8 @@ end # typed: true module Stripe module Billing - class MeterCreateParams < Stripe::RequestParams - class CustomerMapping < Stripe::RequestParams + class MeterCreateParams < ::Stripe::RequestParams + class CustomerMapping < ::Stripe::RequestParams # The key in the meter event payload to use for mapping the event to a customer. sig { returns(String) } def event_payload_key; end @@ -55680,7 +60464,7 @@ module Stripe sig { params(event_payload_key: String, type: String).void } def initialize(event_payload_key: nil, type: nil); end end - class DefaultAggregation < Stripe::RequestParams + class DefaultAggregation < ::Stripe::RequestParams # Specifies how events are aggregated. Allowed values are `count` to count the number of events, `sum` to sum each event's value and `last` to take the last event's value in the window. sig { returns(String) } def formula; end @@ -55689,7 +60473,7 @@ module Stripe sig { params(formula: String).void } def initialize(formula: nil); end end - class ValueSettings < Stripe::RequestParams + class ValueSettings < ::Stripe::RequestParams # The key in the usage event payload to use as the value for this meter. For example, if the event payload contains usage on a `bytes_used` field, then set the event_payload_key to "bytes_used". sig { returns(String) } def event_payload_key; end @@ -55757,7 +60541,7 @@ end # typed: true module Stripe module Billing - class MeterUpdateParams < Stripe::RequestParams + class MeterUpdateParams < ::Stripe::RequestParams # The meter’s name. Not visible to the customer. sig { returns(T.nilable(String)) } def display_name; end @@ -55776,7 +60560,7 @@ end # typed: true module Stripe module Billing - class MeterDeactivateParams < Stripe::RequestParams + class MeterDeactivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -55790,7 +60574,7 @@ end # typed: true module Stripe module Billing - class MeterReactivateParams < Stripe::RequestParams + class MeterReactivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -55804,7 +60588,7 @@ end # typed: true module Stripe module BillingPortal - class ConfigurationListParams < Stripe::RequestParams + class ConfigurationListParams < ::Stripe::RequestParams # Only return configurations that are active or inactive (e.g., pass `true` to only list active configurations). sig { returns(T.nilable(T::Boolean)) } def active; end @@ -55852,8 +60636,8 @@ end # typed: true module Stripe module BillingPortal - class ConfigurationCreateParams < Stripe::RequestParams - class BusinessProfile < Stripe::RequestParams + class ConfigurationCreateParams < ::Stripe::RequestParams + class BusinessProfile < ::Stripe::RequestParams # The messaging shown to customers in the portal. sig { returns(T.nilable(String)) } def headline; end @@ -55874,8 +60658,8 @@ module Stripe } def initialize(headline: nil, privacy_policy_url: nil, terms_of_service_url: nil); end end - class Features < Stripe::RequestParams - class CustomerUpdate < Stripe::RequestParams + class Features < ::Stripe::RequestParams + class CustomerUpdate < ::Stripe::RequestParams # The types of customer updates that are supported. When empty, customers are not updateable. sig { returns(T.nilable(T.any(String, T::Array[String]))) } def allowed_updates; end @@ -55893,7 +60677,7 @@ module Stripe } def initialize(allowed_updates: nil, enabled: nil); end end - class InvoiceHistory < Stripe::RequestParams + class InvoiceHistory < ::Stripe::RequestParams # Whether the feature is enabled. sig { returns(T::Boolean) } def enabled; end @@ -55902,17 +60686,24 @@ module Stripe sig { params(enabled: T::Boolean).void } def initialize(enabled: nil); end end - class PaymentMethodUpdate < Stripe::RequestParams + class PaymentMethodUpdate < ::Stripe::RequestParams # Whether the feature is enabled. sig { returns(T::Boolean) } def enabled; end sig { params(_enabled: T::Boolean).returns(T::Boolean) } def enabled=(_enabled); end - sig { params(enabled: T::Boolean).void } - def initialize(enabled: nil); end + # The [Payment Method Configuration](/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set or set to an empty string, the default payment method configuration is used. + sig { returns(T.nilable(String)) } + def payment_method_configuration; end + sig { + params(_payment_method_configuration: T.nilable(String)).returns(T.nilable(String)) + } + def payment_method_configuration=(_payment_method_configuration); end + sig { params(enabled: T::Boolean, payment_method_configuration: T.nilable(String)).void } + def initialize(enabled: nil, payment_method_configuration: nil); end end - class SubscriptionCancel < Stripe::RequestParams - class CancellationReason < Stripe::RequestParams + class SubscriptionCancel < ::Stripe::RequestParams + class CancellationReason < ::Stripe::RequestParams # Whether the feature is enabled. sig { returns(T::Boolean) } def enabled; end @@ -55962,9 +60753,9 @@ module Stripe proration_behavior: nil ); end end - class SubscriptionUpdate < Stripe::RequestParams - class Product < Stripe::RequestParams - class AdjustableQuantity < Stripe::RequestParams + class SubscriptionUpdate < ::Stripe::RequestParams + class Product < ::Stripe::RequestParams + class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative integer. sig { returns(T::Boolean) } def enabled; end @@ -56009,8 +60800,8 @@ module Stripe } def initialize(adjustable_quantity: nil, prices: nil, product: nil); end end - class ScheduleAtPeriodEnd < Stripe::RequestParams - class Condition < Stripe::RequestParams + class ScheduleAtPeriodEnd < ::Stripe::RequestParams + class Condition < ::Stripe::RequestParams # The type of condition. sig { returns(String) } def type; end @@ -56141,7 +60932,7 @@ module Stripe subscription_update: nil ); end end - class LoginPage < Stripe::RequestParams + class LoginPage < ::Stripe::RequestParams # Set to `true` to generate a shareable URL [`login_page.url`](https://stripe.com/docs/api/customer_portal/configuration#portal_configuration_object-login_page-url) that will take your customers to a hosted login page for the customer portal. sig { returns(T::Boolean) } def enabled; end @@ -56211,8 +61002,8 @@ end # typed: true module Stripe module BillingPortal - class ConfigurationUpdateParams < Stripe::RequestParams - class BusinessProfile < Stripe::RequestParams + class ConfigurationUpdateParams < ::Stripe::RequestParams + class BusinessProfile < ::Stripe::RequestParams # The messaging shown to customers in the portal. sig { returns(T.nilable(String)) } def headline; end @@ -56233,8 +61024,8 @@ module Stripe } def initialize(headline: nil, privacy_policy_url: nil, terms_of_service_url: nil); end end - class Features < Stripe::RequestParams - class CustomerUpdate < Stripe::RequestParams + class Features < ::Stripe::RequestParams + class CustomerUpdate < ::Stripe::RequestParams # The types of customer updates that are supported. When empty, customers are not updateable. sig { returns(T.nilable(T.any(String, T::Array[String]))) } def allowed_updates; end @@ -56252,7 +61043,7 @@ module Stripe } def initialize(allowed_updates: nil, enabled: nil); end end - class InvoiceHistory < Stripe::RequestParams + class InvoiceHistory < ::Stripe::RequestParams # Whether the feature is enabled. sig { returns(T::Boolean) } def enabled; end @@ -56261,17 +61052,24 @@ module Stripe sig { params(enabled: T::Boolean).void } def initialize(enabled: nil); end end - class PaymentMethodUpdate < Stripe::RequestParams + class PaymentMethodUpdate < ::Stripe::RequestParams # Whether the feature is enabled. sig { returns(T::Boolean) } def enabled; end sig { params(_enabled: T::Boolean).returns(T::Boolean) } def enabled=(_enabled); end - sig { params(enabled: T::Boolean).void } - def initialize(enabled: nil); end + # The [Payment Method Configuration](/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set or set to an empty string, the default payment method configuration is used. + sig { returns(T.nilable(String)) } + def payment_method_configuration; end + sig { + params(_payment_method_configuration: T.nilable(String)).returns(T.nilable(String)) + } + def payment_method_configuration=(_payment_method_configuration); end + sig { params(enabled: T::Boolean, payment_method_configuration: T.nilable(String)).void } + def initialize(enabled: nil, payment_method_configuration: nil); end end - class SubscriptionCancel < Stripe::RequestParams - class CancellationReason < Stripe::RequestParams + class SubscriptionCancel < ::Stripe::RequestParams + class CancellationReason < ::Stripe::RequestParams # Whether the feature is enabled. sig { returns(T::Boolean) } def enabled; end @@ -56323,9 +61121,9 @@ module Stripe proration_behavior: nil ); end end - class SubscriptionUpdate < Stripe::RequestParams - class Product < Stripe::RequestParams - class AdjustableQuantity < Stripe::RequestParams + class SubscriptionUpdate < ::Stripe::RequestParams + class Product < ::Stripe::RequestParams + class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative integer. sig { returns(T::Boolean) } def enabled; end @@ -56370,8 +61168,8 @@ module Stripe } def initialize(adjustable_quantity: nil, prices: nil, product: nil); end end - class ScheduleAtPeriodEnd < Stripe::RequestParams - class Condition < Stripe::RequestParams + class ScheduleAtPeriodEnd < ::Stripe::RequestParams + class Condition < ::Stripe::RequestParams # The type of condition. sig { returns(String) } def type; end @@ -56502,7 +61300,7 @@ module Stripe subscription_update: nil ); end end - class LoginPage < Stripe::RequestParams + class LoginPage < ::Stripe::RequestParams # Set to `true` to generate a shareable URL [`login_page.url`](https://stripe.com/docs/api/customer_portal/configuration#portal_configuration_object-login_page-url) that will take your customers to a hosted login page for the customer portal. # # Set to `false` to deactivate the `login_page.url`. @@ -56580,10 +61378,10 @@ end # typed: true module Stripe module BillingPortal - class SessionCreateParams < Stripe::RequestParams - class FlowData < Stripe::RequestParams - class AfterCompletion < Stripe::RequestParams - class HostedConfirmation < Stripe::RequestParams + class SessionCreateParams < ::Stripe::RequestParams + class FlowData < ::Stripe::RequestParams + class AfterCompletion < ::Stripe::RequestParams + class HostedConfirmation < ::Stripe::RequestParams # A custom message to display to the customer after the flow is completed. sig { returns(T.nilable(String)) } def custom_message; end @@ -56592,7 +61390,7 @@ module Stripe sig { params(custom_message: T.nilable(String)).void } def initialize(custom_message: nil); end end - class Redirect < Stripe::RequestParams + class Redirect < ::Stripe::RequestParams # The URL the customer will be redirected to after the flow is completed. sig { returns(String) } def return_url; end @@ -56629,9 +61427,9 @@ module Stripe } def initialize(hosted_confirmation: nil, redirect: nil, type: nil); end end - class SubscriptionCancel < Stripe::RequestParams - class Retention < Stripe::RequestParams - class CouponOffer < Stripe::RequestParams + class SubscriptionCancel < ::Stripe::RequestParams + class Retention < ::Stripe::RequestParams + class CouponOffer < ::Stripe::RequestParams # The ID of the coupon to be offered. sig { returns(String) } def coupon; end @@ -56678,7 +61476,7 @@ module Stripe } def initialize(retention: nil, subscription: nil); end end - class SubscriptionUpdate < Stripe::RequestParams + class SubscriptionUpdate < ::Stripe::RequestParams # The ID of the subscription to be updated. sig { returns(String) } def subscription; end @@ -56687,8 +61485,8 @@ module Stripe sig { params(subscription: String).void } def initialize(subscription: nil); end end - class SubscriptionUpdateConfirm < Stripe::RequestParams - class Discount < Stripe::RequestParams + class SubscriptionUpdateConfirm < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # The ID of the coupon to apply to this subscription update. sig { returns(T.nilable(String)) } def coupon; end @@ -56702,7 +61500,7 @@ module Stripe sig { params(coupon: T.nilable(String), promotion_code: T.nilable(String)).void } def initialize(coupon: nil, promotion_code: nil); end end - class Item < Stripe::RequestParams + class Item < ::Stripe::RequestParams # The ID of the [subscription item](https://stripe.com/docs/api/subscriptions/object#subscription_object-items-data-id) to be updated. sig { returns(String) } def id; end @@ -56849,8 +61647,8 @@ module Stripe end # typed: true module Stripe - class ChargeListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ChargeListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -56935,8 +61733,8 @@ module Stripe end # typed: true module Stripe - class ChargeCreateParams < Stripe::RequestParams - class Destination < Stripe::RequestParams + class ChargeCreateParams < ::Stripe::RequestParams + class Destination < ::Stripe::RequestParams # ID of an existing, connected Stripe account. sig { returns(String) } def account; end @@ -56950,7 +61748,7 @@ module Stripe sig { params(account: String, amount: T.nilable(Integer)).void } def initialize(account: nil, amount: nil); end end - class RadarOptions < Stripe::RequestParams + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -56959,8 +61757,8 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -57035,7 +61833,7 @@ module Stripe } def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account. sig { returns(T.nilable(Integer)) } def amount; end @@ -57184,8 +61982,8 @@ module Stripe end # typed: true module Stripe - class ChargeUpdateParams < Stripe::RequestParams - class FraudDetails < Stripe::RequestParams + class ChargeUpdateParams < ::Stripe::RequestParams + class FraudDetails < ::Stripe::RequestParams # Either `safe` or `fraudulent`. sig { returns(T.any(String, String)) } def user_report; end @@ -57194,8 +61992,8 @@ module Stripe sig { params(user_report: T.any(String, String)).void } def initialize(user_report: nil); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -57333,7 +62131,7 @@ module Stripe end # typed: true module Stripe - class ChargeSearchParams < Stripe::RequestParams + class ChargeSearchParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -57362,8 +62160,8 @@ module Stripe end # typed: true module Stripe - class ChargeCaptureParams < Stripe::RequestParams - class TransferData < Stripe::RequestParams + class ChargeCaptureParams < ::Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account. sig { returns(T.nilable(Integer)) } def amount; end @@ -57440,8 +62238,8 @@ end # typed: true module Stripe module Checkout - class SessionListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class SessionListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -57467,7 +62265,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class CustomerDetails < Stripe::RequestParams + class CustomerDetails < ::Stripe::RequestParams # Customer's email address. sig { returns(String) } def email; end @@ -57557,8 +62355,8 @@ end # typed: true module Stripe module Checkout - class SessionCreateParams < Stripe::RequestParams - class AdaptivePricing < Stripe::RequestParams + class SessionCreateParams < ::Stripe::RequestParams + class AdaptivePricing < ::Stripe::RequestParams # If set to `true`, Adaptive Pricing is available on [eligible sessions](https://docs.stripe.com/payments/currencies/localize-prices/adaptive-pricing?payment-ui=stripe-hosted#restrictions). Defaults to your [dashboard setting](https://dashboard.stripe.com/settings/adaptive-pricing). sig { returns(T.nilable(T::Boolean)) } def enabled; end @@ -57567,8 +62365,8 @@ module Stripe sig { params(enabled: T.nilable(T::Boolean)).void } def initialize(enabled: nil); end end - class AfterExpiration < Stripe::RequestParams - class Recovery < Stripe::RequestParams + class AfterExpiration < ::Stripe::RequestParams + class Recovery < ::Stripe::RequestParams # Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults to `false` sig { returns(T.nilable(T::Boolean)) } def allow_promotion_codes; end @@ -57598,8 +62396,8 @@ module Stripe } def initialize(recovery: nil); end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -57632,8 +62430,8 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class BrandingSettings < Stripe::RequestParams - class Icon < Stripe::RequestParams + class BrandingSettings < ::Stripe::RequestParams + class Icon < ::Stripe::RequestParams # The ID of a [File upload](https://stripe.com/docs/api/files) representing the icon. Purpose must be `business_icon`. Required if `type` is `file` and disallowed otherwise. sig { returns(T.nilable(String)) } def file; end @@ -57652,7 +62450,7 @@ module Stripe sig { params(file: T.nilable(String), type: String, url: T.nilable(String)).void } def initialize(file: nil, type: nil, url: nil); end end - class Logo < Stripe::RequestParams + class Logo < ::Stripe::RequestParams # The ID of a [File upload](https://stripe.com/docs/api/files) representing the logo. Purpose must be `business_logo`. Required if `type` is `file` and disallowed otherwise. sig { returns(T.nilable(String)) } def file; end @@ -57688,7 +62486,7 @@ module Stripe def button_color; end sig { params(_button_color: T.nilable(String)).returns(T.nilable(String)) } def button_color=(_button_color); end - # A string to override the business name shown on the Checkout Session. + # A string to override the business name shown on the Checkout Session. This only shows at the top of the Checkout page, and your business name still appears in terms, receipts, and other places. sig { returns(T.nilable(String)) } def display_name; end sig { params(_display_name: T.nilable(String)).returns(T.nilable(String)) } @@ -57700,14 +62498,14 @@ module Stripe params(_font_family: T.nilable(T.any(String, String))).returns(T.nilable(T.any(String, String))) } def font_family=(_font_family); end - # The icon for the Checkout Session. You cannot set both `logo` and `icon`. + # The icon for the Checkout Session. For best results, use a square image. sig { returns(T.nilable(Checkout::SessionCreateParams::BrandingSettings::Icon)) } def icon; end sig { params(_icon: T.nilable(Checkout::SessionCreateParams::BrandingSettings::Icon)).returns(T.nilable(Checkout::SessionCreateParams::BrandingSettings::Icon)) } def icon=(_icon); end - # The logo for the Checkout Session. You cannot set both `logo` and `icon`. + # The logo for the Checkout Session. sig { returns(T.nilable(Checkout::SessionCreateParams::BrandingSettings::Logo)) } def logo; end sig { @@ -57727,8 +62525,8 @@ module Stripe logo: nil ); end end - class ConsentCollection < Stripe::RequestParams - class PaymentMethodReuseAgreement < Stripe::RequestParams + class ConsentCollection < ::Stripe::RequestParams + class PaymentMethodReuseAgreement < ::Stripe::RequestParams # Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's # defaults will be used. When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI. sig { returns(String) } @@ -57769,9 +62567,9 @@ module Stripe terms_of_service: nil ); end end - class CustomField < Stripe::RequestParams - class Dropdown < Stripe::RequestParams - class Option < Stripe::RequestParams + class CustomField < ::Stripe::RequestParams + class Dropdown < ::Stripe::RequestParams + class Option < ::Stripe::RequestParams # The label for the option, displayed to the customer. Up to 100 characters. sig { returns(String) } def label; end @@ -57802,7 +62600,7 @@ module Stripe } def initialize(default_value: nil, options: nil); end end - class Label < Stripe::RequestParams + class Label < ::Stripe::RequestParams # Custom text for the label, displayed to the customer. Up to 50 characters. sig { returns(String) } def custom; end @@ -57816,7 +62614,7 @@ module Stripe sig { params(custom: String, type: String).void } def initialize(custom: nil, type: nil); end end - class Numeric < Stripe::RequestParams + class Numeric < ::Stripe::RequestParams # The value that will pre-fill the field on the payment page. sig { returns(T.nilable(String)) } def default_value; end @@ -57837,7 +62635,7 @@ module Stripe } def initialize(default_value: nil, maximum_length: nil, minimum_length: nil); end end - class Text < Stripe::RequestParams + class Text < ::Stripe::RequestParams # The value that will pre-fill the field on the payment page. sig { returns(T.nilable(String)) } def default_value; end @@ -57914,8 +62712,8 @@ module Stripe type: nil ); end end - class CustomText < Stripe::RequestParams - class AfterSubmit < Stripe::RequestParams + class CustomText < ::Stripe::RequestParams + class AfterSubmit < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -57924,7 +62722,7 @@ module Stripe sig { params(message: String).void } def initialize(message: nil); end end - class ShippingAddress < Stripe::RequestParams + class ShippingAddress < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -57933,7 +62731,7 @@ module Stripe sig { params(message: String).void } def initialize(message: nil); end end - class Submit < Stripe::RequestParams + class Submit < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -57942,7 +62740,7 @@ module Stripe sig { params(message: String).void } def initialize(message: nil); end end - class TermsOfServiceAcceptance < Stripe::RequestParams + class TermsOfServiceAcceptance < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -57995,7 +62793,7 @@ module Stripe terms_of_service_acceptance: nil ); end end - class CustomerUpdate < Stripe::RequestParams + class CustomerUpdate < ::Stripe::RequestParams # Describes whether Checkout saves the billing address onto `customer.address`. # To always collect a full billing address, use `billing_address_collection`. Defaults to `never`. sig { returns(T.nilable(String)) } @@ -58018,7 +62816,7 @@ module Stripe } def initialize(address: nil, name: nil, shipping: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # The ID of the coupon to apply to this Session. sig { returns(T.nilable(String)) } def coupon; end @@ -58032,9 +62830,9 @@ module Stripe sig { params(coupon: T.nilable(String), promotion_code: T.nilable(String)).void } def initialize(coupon: nil, promotion_code: nil); end end - class InvoiceCreation < Stripe::RequestParams - class InvoiceData < Stripe::RequestParams - class CustomField < Stripe::RequestParams + class InvoiceCreation < ::Stripe::RequestParams + class InvoiceData < ::Stripe::RequestParams + class CustomField < ::Stripe::RequestParams # The name of the custom field. This may be up to 40 characters. sig { returns(String) } def name; end @@ -58048,7 +62846,7 @@ module Stripe sig { params(name: String, value: String).void } def initialize(name: nil, value: nil); end end - class Issuer < Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -58062,7 +62860,7 @@ module Stripe sig { params(account: T.nilable(String), type: String).void } def initialize(account: nil, type: nil); end end - class RenderingOptions < Stripe::RequestParams + class RenderingOptions < ::Stripe::RequestParams # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. sig { returns(T.nilable(T.any(String, String))) } def amount_tax_display; end @@ -58161,8 +62959,8 @@ module Stripe } def initialize(enabled: nil, invoice_data: nil); end end - class LineItem < Stripe::RequestParams - class AdjustableQuantity < Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative integer. sig { returns(T::Boolean) } def enabled; end @@ -58183,8 +62981,8 @@ module Stripe } def initialize(enabled: nil, maximum: nil, minimum: nil); end end - class PriceData < Stripe::RequestParams - class ProductData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class ProductData < ::Stripe::RequestParams # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. sig { returns(T.nilable(String)) } def description; end @@ -58231,7 +63029,7 @@ module Stripe unit_label: nil ); end end - class Recurring < Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -58347,8 +63145,8 @@ module Stripe tax_rates: nil ); end end - class NameCollection < Stripe::RequestParams - class Business < Stripe::RequestParams + class NameCollection < ::Stripe::RequestParams + class Business < ::Stripe::RequestParams # Enable business name collection on the Checkout Session. Defaults to `false`. sig { returns(T::Boolean) } def enabled; end @@ -58362,7 +63160,7 @@ module Stripe sig { params(enabled: T::Boolean, optional: T.nilable(T::Boolean)).void } def initialize(enabled: nil, optional: nil); end end - class Individual < Stripe::RequestParams + class Individual < ::Stripe::RequestParams # Enable individual name collection on the Checkout Session. Defaults to `false`. sig { returns(T::Boolean) } def enabled; end @@ -58395,8 +63193,8 @@ module Stripe } def initialize(business: nil, individual: nil); end end - class OptionalItem < Stripe::RequestParams - class AdjustableQuantity < Stripe::RequestParams + class OptionalItem < ::Stripe::RequestParams + class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative integer. sig { returns(T::Boolean) } def enabled; end @@ -58439,9 +63237,9 @@ module Stripe } def initialize(adjustable_quantity: nil, price: nil, quantity: nil); end end - class PaymentIntentData < Stripe::RequestParams - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class PaymentIntentData < ::Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -58522,7 +63320,7 @@ module Stripe tracking_number: nil ); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when a charge succeeds. sig { returns(T.nilable(Integer)) } def amount; end @@ -58647,7 +63445,7 @@ module Stripe transfer_group: nil ); end end - class PaymentMethodData < Stripe::RequestParams + class PaymentMethodData < ::Stripe::RequestParams # Allow redisplay will be set on the payment method on confirmation and indicates whether this payment method can be shown again to the customer in a checkout flow. Only set this field if you wish to override the allow_redisplay value determined by Checkout. sig { returns(T.nilable(String)) } def allow_redisplay; end @@ -58656,9 +63454,9 @@ module Stripe sig { params(allow_redisplay: T.nilable(String)).void } def initialize(allow_redisplay: nil); end end - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # A URL for custom mandate text to render during confirmation step. # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. @@ -58745,7 +63543,7 @@ module Stripe verification_method: nil ); end end - class Affirm < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -58767,7 +63565,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class AfterpayClearpay < Stripe::RequestParams + class AfterpayClearpay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -58789,7 +63587,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Alipay < Stripe::RequestParams + class Alipay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -58804,7 +63602,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Alma < Stripe::RequestParams + class Alma < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -58813,7 +63611,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class AmazonPay < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -58835,7 +63633,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class AuBecsDebit < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -58855,8 +63653,8 @@ module Stripe sig { params(setup_future_usage: T.nilable(String), target_date: T.nilable(String)).void } def initialize(setup_future_usage: nil, target_date: nil); end end - class BacsDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -58895,7 +63693,7 @@ module Stripe } def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -58910,7 +63708,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Billie < Stripe::RequestParams + class Billie < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -58919,7 +63717,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Boleto < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. sig { returns(T.nilable(Integer)) } def expires_after_days; end @@ -58941,8 +63739,8 @@ module Stripe } def initialize(expires_after_days: nil, setup_future_usage: nil); end end - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams # Setting to true enables installments for this Checkout Session. # Setting to false will prevent any installment plan from applying to a payment. sig { returns(T.nilable(T::Boolean)) } @@ -58952,7 +63750,7 @@ module Stripe sig { params(enabled: T.nilable(T::Boolean)).void } def initialize(enabled: nil); end end - class Restrictions < Stripe::RequestParams + class Restrictions < ::Stripe::RequestParams # Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. sig { returns(T.nilable(T::Array[String])) } def brands_blocked; end @@ -59057,7 +63855,7 @@ module Stripe statement_descriptor_suffix_kanji: nil ); end end - class Cashapp < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -59079,9 +63877,9 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -59148,7 +63946,7 @@ module Stripe } def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil); end end - class DemoPay < Stripe::RequestParams + class DemoPay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -59163,7 +63961,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Eps < Stripe::RequestParams + class Eps < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -59178,7 +63976,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -59193,7 +63991,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Giropay < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -59208,7 +64006,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Grabpay < Stripe::RequestParams + class Grabpay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -59223,7 +64021,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Ideal < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -59238,7 +64036,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class KakaoPay < Stripe::RequestParams + class KakaoPay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -59260,9 +64058,9 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Klarna < Stripe::RequestParams - class Subscription < Stripe::RequestParams - class NextBilling < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class Subscription < ::Stripe::RequestParams + class NextBilling < ::Stripe::RequestParams # The amount of the next charge for the subscription. sig { returns(Integer) } def amount; end @@ -59346,7 +64144,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil, subscriptions: nil); end end - class Konbini < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams # The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days. sig { returns(T.nilable(Integer)) } def expires_after_days; end @@ -59368,7 +64166,7 @@ module Stripe } def initialize(expires_after_days: nil, setup_future_usage: nil); end end - class KrCard < Stripe::RequestParams + class KrCard < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -59390,7 +64188,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Link < Stripe::RequestParams + class Link < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -59412,7 +64210,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Mobilepay < Stripe::RequestParams + class Mobilepay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -59434,7 +64232,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Multibanco < Stripe::RequestParams + class Multibanco < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -59449,7 +64247,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class NaverPay < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -59471,7 +64269,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Oxxo < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams # The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. sig { returns(T.nilable(Integer)) } def expires_after_days; end @@ -59493,7 +64291,7 @@ module Stripe } def initialize(expires_after_days: nil, setup_future_usage: nil); end end - class P24 < Stripe::RequestParams + class P24 < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -59517,8 +64315,8 @@ module Stripe } def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -59527,7 +64325,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Paynow < Stripe::RequestParams + class Paynow < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -59542,7 +64340,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Paypal < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -59589,7 +64387,7 @@ module Stripe setup_future_usage: nil ); end end - class Pix < Stripe::RequestParams + class Pix < ::Stripe::RequestParams # Determines if the amount includes the IOF tax. Defaults to `never`. sig { returns(T.nilable(String)) } def amount_includes_iof; end @@ -59620,7 +64418,7 @@ module Stripe setup_future_usage: nil ); end end - class RevolutPay < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -59642,7 +64440,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class SamsungPay < Stripe::RequestParams + class SamsungPay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -59651,7 +64449,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Satispay < Stripe::RequestParams + class Satispay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -59660,8 +64458,8 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class SepaDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -59700,7 +64498,7 @@ module Stripe } def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -59715,7 +64513,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Swish < Stripe::RequestParams + class Swish < ::Stripe::RequestParams # The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent. sig { returns(T.nilable(String)) } def reference; end @@ -59724,8 +64522,23 @@ module Stripe sig { params(reference: T.nilable(String)).void } def initialize(reference: nil); end end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams + class Twint < ::Stripe::RequestParams + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(String)) } + def setup_future_usage; end + sig { params(_setup_future_usage: T.nilable(String)).returns(T.nilable(String)) } + def setup_future_usage=(_setup_future_usage); end + sig { params(setup_future_usage: T.nilable(String)).void } + def initialize(setup_future_usage: nil); end + end + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams # The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`. sig { returns(T.nilable(T::Array[String])) } def permissions; end @@ -59785,7 +64598,7 @@ module Stripe verification_method: nil ); end end - class WechatPay < Stripe::RequestParams + class WechatPay < ::Stripe::RequestParams # The app ID registered with WeChat Pay. Only required when client is ios or android. sig { returns(T.nilable(String)) } def app_id; end @@ -60103,6 +64916,13 @@ module Stripe params(_swish: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Swish)).returns(T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Swish)) } def swish=(_swish); end + # contains details about the TWINT payment method options. + sig { returns(T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Twint)) } + def twint; end + sig { + params(_twint: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Twint)).returns(T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Twint)) + } + def twint=(_twint); end # contains details about the Us Bank Account payment method options. sig { returns(T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::UsBankAccount)) @@ -60120,7 +64940,7 @@ module Stripe } def wechat_pay=(_wechat_pay); end sig { - params(acss_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Alipay), alma: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Alma), amazon_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Bancontact), billie: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Billie), boleto: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Boleto), card: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Card), cashapp: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Cashapp), customer_balance: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::CustomerBalance), demo_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::DemoPay), eps: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Eps), fpx: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Fpx), giropay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Giropay), grabpay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Grabpay), ideal: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Ideal), kakao_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Klarna), konbini: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::KrCard), link: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Link), mobilepay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Oxxo), p24: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::P24), pay_by_bank: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::PayByBank), payco: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Payco), paynow: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Paynow), paypal: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Paypal), pix: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Pix), revolut_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::SamsungPay), satispay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Satispay), sepa_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::SepaDebit), sofort: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Sofort), swish: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Swish), us_bank_account: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::WechatPay)).void + params(acss_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Alipay), alma: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Alma), amazon_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Bancontact), billie: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Billie), boleto: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Boleto), card: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Card), cashapp: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Cashapp), customer_balance: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::CustomerBalance), demo_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::DemoPay), eps: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Eps), fpx: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Fpx), giropay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Giropay), grabpay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Grabpay), ideal: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Ideal), kakao_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Klarna), konbini: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::KrCard), link: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Link), mobilepay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Oxxo), p24: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::P24), pay_by_bank: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::PayByBank), payco: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Payco), paynow: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Paynow), paypal: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Paypal), pix: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Pix), revolut_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::SamsungPay), satispay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Satispay), sepa_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::SepaDebit), sofort: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Sofort), swish: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Swish), twint: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Twint), us_bank_account: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::WechatPay)).void } def initialize( acss_debit: nil, @@ -60164,11 +64984,12 @@ module Stripe sepa_debit: nil, sofort: nil, swish: nil, + twint: nil, us_bank_account: nil, wechat_pay: nil ); end end - class Permissions < Stripe::RequestParams + class Permissions < ::Stripe::RequestParams # Determines which entity is allowed to update the shipping details. # # Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details. @@ -60181,7 +65002,7 @@ module Stripe sig { params(update_shipping_details: T.nilable(String)).void } def initialize(update_shipping_details: nil); end end - class PhoneNumberCollection < Stripe::RequestParams + class PhoneNumberCollection < ::Stripe::RequestParams # Set to `true` to enable phone number collection. # # Can only be set in `payment` and `subscription` mode. @@ -60192,7 +65013,7 @@ module Stripe sig { params(enabled: T::Boolean).void } def initialize(enabled: nil); end end - class SavedPaymentMethodOptions < Stripe::RequestParams + class SavedPaymentMethodOptions < ::Stripe::RequestParams # Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with ’allow_redisplay: ‘always’ are shown in Checkout. sig { returns(T.nilable(T::Array[String])) } def allow_redisplay_filters; end @@ -60219,7 +65040,7 @@ module Stripe payment_method_save: nil ); end end - class SetupIntentData < Stripe::RequestParams + class SetupIntentData < ::Stripe::RequestParams # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } def description; end @@ -60242,7 +65063,7 @@ module Stripe } def initialize(description: nil, metadata: nil, on_behalf_of: nil); end end - class ShippingAddressCollection < Stripe::RequestParams + class ShippingAddressCollection < ::Stripe::RequestParams # An array of two-letter ISO country codes representing which countries Checkout should provide as options for # shipping locations. sig { returns(T::Array[String]) } @@ -60252,10 +65073,10 @@ module Stripe sig { params(allowed_countries: T::Array[String]).void } def initialize(allowed_countries: nil); end end - class ShippingOption < Stripe::RequestParams - class ShippingRateData < Stripe::RequestParams - class DeliveryEstimate < Stripe::RequestParams - class Maximum < Stripe::RequestParams + class ShippingOption < ::Stripe::RequestParams + class ShippingRateData < ::Stripe::RequestParams + class DeliveryEstimate < ::Stripe::RequestParams + class Maximum < ::Stripe::RequestParams # A unit of time. sig { returns(String) } def unit; end @@ -60269,7 +65090,7 @@ module Stripe sig { params(unit: String, value: Integer).void } def initialize(unit: nil, value: nil); end end - class Minimum < Stripe::RequestParams + class Minimum < ::Stripe::RequestParams # A unit of time. sig { returns(String) } def unit; end @@ -60306,8 +65127,8 @@ module Stripe } def initialize(maximum: nil, minimum: nil); end end - class FixedAmount < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class FixedAmount < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A non-negative integer in cents representing how much to charge. sig { returns(Integer) } def amount; end @@ -60420,9 +65241,9 @@ module Stripe } def initialize(shipping_rate: nil, shipping_rate_data: nil); end end - class SubscriptionData < Stripe::RequestParams - class BillingMode < Stripe::RequestParams - class Flexible < Stripe::RequestParams + class SubscriptionData < ::Stripe::RequestParams + class BillingMode < ::Stripe::RequestParams + class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. sig { returns(T.nilable(String)) } def proration_discounts; end @@ -60450,8 +65271,8 @@ module Stripe } def initialize(flexible: nil, type: nil); end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -60479,7 +65300,7 @@ module Stripe } def initialize(issuer: nil); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Float)) } def amount_percent; end @@ -60493,8 +65314,8 @@ module Stripe sig { params(amount_percent: T.nilable(Float), destination: String).void } def initialize(amount_percent: nil, destination: nil); end end - class TrialSettings < Stripe::RequestParams - class EndBehavior < Stripe::RequestParams + class TrialSettings < ::Stripe::RequestParams + class EndBehavior < ::Stripe::RequestParams # Indicates how the subscription should change when the trial ends if the user did not provide a payment method. sig { returns(String) } def missing_payment_method; end @@ -60617,7 +65438,7 @@ module Stripe trial_settings: nil ); end end - class TaxIdCollection < Stripe::RequestParams + class TaxIdCollection < ::Stripe::RequestParams # Enable tax ID collection during checkout. Defaults to `false`. sig { returns(T::Boolean) } def enabled; end @@ -60631,8 +65452,8 @@ module Stripe sig { params(enabled: T::Boolean, required: T.nilable(String)).void } def initialize(enabled: nil, required: nil); end end - class WalletOptions < Stripe::RequestParams - class Link < Stripe::RequestParams + class WalletOptions < ::Stripe::RequestParams + class Link < ::Stripe::RequestParams # Specifies whether Checkout should display Link as a payment option. By default, Checkout will display all the supported wallets that the Checkout Session was created with. This is the `auto` behavior, and it is the default choice. sig { returns(T.nilable(String)) } def display; end @@ -61073,10 +65894,10 @@ end # typed: true module Stripe module Checkout - class SessionUpdateParams < Stripe::RequestParams - class CollectedInformation < Stripe::RequestParams - class ShippingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class SessionUpdateParams < ::Stripe::RequestParams + class CollectedInformation < ::Stripe::RequestParams + class ShippingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -61152,10 +65973,10 @@ module Stripe } def initialize(shipping_details: nil); end end - class ShippingOption < Stripe::RequestParams - class ShippingRateData < Stripe::RequestParams - class DeliveryEstimate < Stripe::RequestParams - class Maximum < Stripe::RequestParams + class ShippingOption < ::Stripe::RequestParams + class ShippingRateData < ::Stripe::RequestParams + class DeliveryEstimate < ::Stripe::RequestParams + class Maximum < ::Stripe::RequestParams # A unit of time. sig { returns(String) } def unit; end @@ -61169,7 +65990,7 @@ module Stripe sig { params(unit: String, value: Integer).void } def initialize(unit: nil, value: nil); end end - class Minimum < Stripe::RequestParams + class Minimum < ::Stripe::RequestParams # A unit of time. sig { returns(String) } def unit; end @@ -61206,8 +66027,8 @@ module Stripe } def initialize(maximum: nil, minimum: nil); end end - class FixedAmount < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class FixedAmount < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A non-negative integer in cents representing how much to charge. sig { returns(Integer) } def amount; end @@ -61363,7 +66184,7 @@ end # typed: true module Stripe module Checkout - class SessionListLineItemsParams < Stripe::RequestParams + class SessionListLineItemsParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -61394,7 +66215,7 @@ end # typed: true module Stripe module Checkout - class SessionExpireParams < Stripe::RequestParams + class SessionExpireParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -61408,7 +66229,7 @@ end # typed: true module Stripe module Climate - class OrderListParams < Stripe::RequestParams + class OrderListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -61439,8 +66260,8 @@ end # typed: true module Stripe module Climate - class OrderCreateParams < Stripe::RequestParams - class Beneficiary < Stripe::RequestParams + class OrderCreateParams < ::Stripe::RequestParams + class Beneficiary < ::Stripe::RequestParams # Publicly displayable name for the end beneficiary of carbon removal. sig { returns(String) } def public_name; end @@ -61506,8 +66327,8 @@ end # typed: true module Stripe module Climate - class OrderUpdateParams < Stripe::RequestParams - class Beneficiary < Stripe::RequestParams + class OrderUpdateParams < ::Stripe::RequestParams + class Beneficiary < ::Stripe::RequestParams # Publicly displayable name for the end beneficiary of carbon removal. sig { returns(String) } def public_name; end @@ -61545,7 +66366,7 @@ end # typed: true module Stripe module Climate - class OrderCancelParams < Stripe::RequestParams + class OrderCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -61559,7 +66380,7 @@ end # typed: true module Stripe module Climate - class ProductListParams < Stripe::RequestParams + class ProductListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -61590,7 +66411,7 @@ end # typed: true module Stripe module Climate - class SupplierListParams < Stripe::RequestParams + class SupplierListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -61620,9 +66441,9 @@ module Stripe end # typed: true module Stripe - class ConfirmationTokenCreateParams < Stripe::RequestParams - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class ConfirmationTokenCreateParams < ::Stripe::RequestParams + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. sig { returns(String) } def account_number; end @@ -61643,12 +66464,12 @@ module Stripe } def initialize(account_number: nil, institution_number: nil, transit_number: nil); end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. sig { returns(String) } def account_number; end @@ -61662,7 +66483,7 @@ module Stripe sig { params(account_number: String, bsb_number: String).void } def initialize(account_number: nil, bsb_number: nil); end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. sig { returns(T.nilable(String)) } def account_number; end @@ -61676,10 +66497,10 @@ module Stripe sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void } def initialize(account_number: nil, sort_code: nil); end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -61756,8 +66577,8 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end - class Blik < Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Blik < ::Stripe::RequestParams; end + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) sig { returns(String) } def tax_id; end @@ -61766,10 +66587,10 @@ module Stripe sig { params(tax_id: String).void } def initialize(tax_id: nil); end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end + class Eps < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -61778,7 +66599,7 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction sig { returns(T.nilable(String)) } def account_holder_type; end @@ -61792,9 +66613,9 @@ module Stripe sig { params(account_holder_type: T.nilable(String), bank: String).void } def initialize(account_holder_type: nil, bank: nil); end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. sig { returns(T.nilable(String)) } def bank; end @@ -61803,10 +66624,10 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -61837,13 +66658,13 @@ module Stripe } def initialize(dob: nil); end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. sig { returns(T.nilable(String)) } def funding; end @@ -61852,7 +66673,7 @@ module Stripe sig { params(funding: T.nilable(String)).void } def initialize(funding: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -61895,8 +66716,8 @@ module Stripe suffix: nil ); end end - class Oxxo < Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams; end + class P24 < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -61905,13 +66726,13 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -61920,10 +66741,10 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } def iban; end @@ -61932,7 +66753,7 @@ module Stripe sig { params(iban: String).void } def initialize(iban: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. sig { returns(String) } def country; end @@ -61941,9 +66762,9 @@ module Stripe sig { params(country: String).void } def initialize(country: nil); end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -61980,8 +66801,8 @@ module Stripe routing_number: nil ); end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. sig { returns(T.nilable(ConfirmationTokenCreateParams::PaymentMethodData::AcssDebit)) } def acss_debit; end @@ -62416,10 +67237,10 @@ module Stripe zip: nil ); end end - class PaymentMethodOptions < Stripe::RequestParams - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams - class Plan < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams + class Plan < ::Stripe::RequestParams # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. sig { returns(T.nilable(Integer)) } def count; end @@ -62482,8 +67303,8 @@ module Stripe } def initialize(card: nil); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -62607,7 +67428,7 @@ module Stripe end # typed: true module Stripe - class CountrySpecListParams < Stripe::RequestParams + class CountrySpecListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -62636,12 +67457,12 @@ module Stripe end # typed: true module Stripe - class CouponDeleteParams < Stripe::RequestParams; end + class CouponDeleteParams < ::Stripe::RequestParams; end end # typed: true module Stripe - class CouponUpdateParams < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class CouponUpdateParams < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A positive integer representing the amount to subtract from an invoice total. sig { returns(Integer) } def amount_off; end @@ -62682,8 +67503,8 @@ module Stripe end # typed: true module Stripe - class CouponListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class CouponListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -62750,8 +67571,8 @@ module Stripe end # typed: true module Stripe - class CouponCreateParams < Stripe::RequestParams - class AppliesTo < Stripe::RequestParams + class CouponCreateParams < ::Stripe::RequestParams + class AppliesTo < ::Stripe::RequestParams # An array of Product IDs that this Coupon will apply to. sig { returns(T.nilable(T::Array[String])) } def products; end @@ -62760,7 +67581,7 @@ module Stripe sig { params(products: T.nilable(T::Array[String])).void } def initialize(products: nil); end end - class CurrencyOptions < Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A positive integer representing the amount to subtract from an invoice total. sig { returns(Integer) } def amount_off; end @@ -62862,8 +67683,8 @@ module Stripe end # typed: true module Stripe - class CreditNoteListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class CreditNoteListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -62942,9 +67763,9 @@ module Stripe end # typed: true module Stripe - class CreditNoteCreateParams < Stripe::RequestParams - class Line < Stripe::RequestParams - class TaxAmount < Stripe::RequestParams + class CreditNoteCreateParams < ::Stripe::RequestParams + class Line < ::Stripe::RequestParams + class TaxAmount < ::Stripe::RequestParams # The amount, in cents (or local equivalent), of the tax. sig { returns(Integer) } def amount; end @@ -63027,21 +67848,49 @@ module Stripe unit_amount_decimal: nil ); end end - class Refund < Stripe::RequestParams + class Refund < ::Stripe::RequestParams + class PaymentRecordRefund < ::Stripe::RequestParams + # The ID of the PaymentRecord with the refund to link to this credit note. + sig { returns(String) } + def payment_record; end + sig { params(_payment_record: String).returns(String) } + def payment_record=(_payment_record); end + # The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord. + sig { returns(String) } + def refund_group; end + sig { params(_refund_group: String).returns(String) } + def refund_group=(_refund_group); end + sig { params(payment_record: String, refund_group: String).void } + def initialize(payment_record: nil, refund_group: nil); end + end # Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount. sig { returns(T.nilable(Integer)) } def amount_refunded; end sig { params(_amount_refunded: T.nilable(Integer)).returns(T.nilable(Integer)) } def amount_refunded=(_amount_refunded); end + # The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`. + sig { returns(T.nilable(CreditNoteCreateParams::Refund::PaymentRecordRefund)) } + def payment_record_refund; end + sig { + params(_payment_record_refund: T.nilable(CreditNoteCreateParams::Refund::PaymentRecordRefund)).returns(T.nilable(CreditNoteCreateParams::Refund::PaymentRecordRefund)) + } + def payment_record_refund=(_payment_record_refund); end # ID of an existing refund to link this credit note to. Required when `type` is `refund`. sig { returns(T.nilable(String)) } def refund; end sig { params(_refund: T.nilable(String)).returns(T.nilable(String)) } def refund=(_refund); end - sig { params(amount_refunded: T.nilable(Integer), refund: T.nilable(String)).void } - def initialize(amount_refunded: nil, refund: nil); end + # Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`. + sig { returns(T.nilable(String)) } + def type; end + sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } + def type=(_type); end + sig { + params(amount_refunded: T.nilable(Integer), payment_record_refund: T.nilable(CreditNoteCreateParams::Refund::PaymentRecordRefund), refund: T.nilable(String), type: T.nilable(String)).void + } + def initialize(amount_refunded: nil, payment_record_refund: nil, refund: nil, type: nil); end end - class ShippingCost < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams # The ID of the shipping rate to use for this order. sig { returns(T.nilable(String)) } def shipping_rate; end @@ -63151,7 +68000,7 @@ module Stripe end # typed: true module Stripe - class CreditNoteUpdateParams < Stripe::RequestParams + class CreditNoteUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -63177,9 +68026,9 @@ module Stripe end # typed: true module Stripe - class CreditNotePreviewParams < Stripe::RequestParams - class Line < Stripe::RequestParams - class TaxAmount < Stripe::RequestParams + class CreditNotePreviewParams < ::Stripe::RequestParams + class Line < ::Stripe::RequestParams + class TaxAmount < ::Stripe::RequestParams # The amount, in cents (or local equivalent), of the tax. sig { returns(Integer) } def amount; end @@ -63262,21 +68111,49 @@ module Stripe unit_amount_decimal: nil ); end end - class Refund < Stripe::RequestParams + class Refund < ::Stripe::RequestParams + class PaymentRecordRefund < ::Stripe::RequestParams + # The ID of the PaymentRecord with the refund to link to this credit note. + sig { returns(String) } + def payment_record; end + sig { params(_payment_record: String).returns(String) } + def payment_record=(_payment_record); end + # The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord. + sig { returns(String) } + def refund_group; end + sig { params(_refund_group: String).returns(String) } + def refund_group=(_refund_group); end + sig { params(payment_record: String, refund_group: String).void } + def initialize(payment_record: nil, refund_group: nil); end + end # Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount. sig { returns(T.nilable(Integer)) } def amount_refunded; end sig { params(_amount_refunded: T.nilable(Integer)).returns(T.nilable(Integer)) } def amount_refunded=(_amount_refunded); end + # The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`. + sig { returns(T.nilable(CreditNotePreviewParams::Refund::PaymentRecordRefund)) } + def payment_record_refund; end + sig { + params(_payment_record_refund: T.nilable(CreditNotePreviewParams::Refund::PaymentRecordRefund)).returns(T.nilable(CreditNotePreviewParams::Refund::PaymentRecordRefund)) + } + def payment_record_refund=(_payment_record_refund); end # ID of an existing refund to link this credit note to. Required when `type` is `refund`. sig { returns(T.nilable(String)) } def refund; end sig { params(_refund: T.nilable(String)).returns(T.nilable(String)) } def refund=(_refund); end - sig { params(amount_refunded: T.nilable(Integer), refund: T.nilable(String)).void } - def initialize(amount_refunded: nil, refund: nil); end + # Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`. + sig { returns(T.nilable(String)) } + def type; end + sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } + def type=(_type); end + sig { + params(amount_refunded: T.nilable(Integer), payment_record_refund: T.nilable(CreditNotePreviewParams::Refund::PaymentRecordRefund), refund: T.nilable(String), type: T.nilable(String)).void + } + def initialize(amount_refunded: nil, payment_record_refund: nil, refund: nil, type: nil); end end - class ShippingCost < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams # The ID of the shipping rate to use for this order. sig { returns(T.nilable(String)) } def shipping_rate; end @@ -63386,9 +68263,9 @@ module Stripe end # typed: true module Stripe - class CreditNoteListPreviewLineItemsParams < Stripe::RequestParams - class Line < Stripe::RequestParams - class TaxAmount < Stripe::RequestParams + class CreditNoteListPreviewLineItemsParams < ::Stripe::RequestParams + class Line < ::Stripe::RequestParams + class TaxAmount < ::Stripe::RequestParams # The amount, in cents (or local equivalent), of the tax. sig { returns(Integer) } def amount; end @@ -63473,21 +68350,49 @@ module Stripe unit_amount_decimal: nil ); end end - class Refund < Stripe::RequestParams + class Refund < ::Stripe::RequestParams + class PaymentRecordRefund < ::Stripe::RequestParams + # The ID of the PaymentRecord with the refund to link to this credit note. + sig { returns(String) } + def payment_record; end + sig { params(_payment_record: String).returns(String) } + def payment_record=(_payment_record); end + # The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord. + sig { returns(String) } + def refund_group; end + sig { params(_refund_group: String).returns(String) } + def refund_group=(_refund_group); end + sig { params(payment_record: String, refund_group: String).void } + def initialize(payment_record: nil, refund_group: nil); end + end # Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount. sig { returns(T.nilable(Integer)) } def amount_refunded; end sig { params(_amount_refunded: T.nilable(Integer)).returns(T.nilable(Integer)) } def amount_refunded=(_amount_refunded); end + # The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`. + sig { returns(T.nilable(CreditNoteListPreviewLineItemsParams::Refund::PaymentRecordRefund)) } + def payment_record_refund; end + sig { + params(_payment_record_refund: T.nilable(CreditNoteListPreviewLineItemsParams::Refund::PaymentRecordRefund)).returns(T.nilable(CreditNoteListPreviewLineItemsParams::Refund::PaymentRecordRefund)) + } + def payment_record_refund=(_payment_record_refund); end # ID of an existing refund to link this credit note to. Required when `type` is `refund`. sig { returns(T.nilable(String)) } def refund; end sig { params(_refund: T.nilable(String)).returns(T.nilable(String)) } def refund=(_refund); end - sig { params(amount_refunded: T.nilable(Integer), refund: T.nilable(String)).void } - def initialize(amount_refunded: nil, refund: nil); end + # Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`. + sig { returns(T.nilable(String)) } + def type; end + sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } + def type=(_type); end + sig { + params(amount_refunded: T.nilable(Integer), payment_record_refund: T.nilable(CreditNoteListPreviewLineItemsParams::Refund::PaymentRecordRefund), refund: T.nilable(String), type: T.nilable(String)).void + } + def initialize(amount_refunded: nil, payment_record_refund: nil, refund: nil, type: nil); end end - class ShippingCost < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams # The ID of the shipping rate to use for this order. sig { returns(T.nilable(String)) } def shipping_rate; end @@ -63615,7 +68520,7 @@ module Stripe end # typed: true module Stripe - class CreditNoteVoidCreditNoteParams < Stripe::RequestParams + class CreditNoteVoidCreditNoteParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -63627,9 +68532,9 @@ module Stripe end # typed: true module Stripe - class CustomerSessionCreateParams < Stripe::RequestParams - class Components < Stripe::RequestParams - class BuyButton < Stripe::RequestParams + class CustomerSessionCreateParams < ::Stripe::RequestParams + class Components < ::Stripe::RequestParams + class BuyButton < ::Stripe::RequestParams # Whether the buy button is enabled. sig { returns(T::Boolean) } def enabled; end @@ -63638,8 +68543,122 @@ module Stripe sig { params(enabled: T::Boolean).void } def initialize(enabled: nil); end end - class PaymentElement < Stripe::RequestParams - class Features < Stripe::RequestParams + class CustomerSheet < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams + # A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the customer sheet displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list. + # + # If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"]. + sig { returns(T.nilable(T::Array[String])) } + def payment_method_allow_redisplay_filters; end + sig { + params(_payment_method_allow_redisplay_filters: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) + } + def payment_method_allow_redisplay_filters=(_payment_method_allow_redisplay_filters); end + # Controls whether the customer sheet displays the option to remove a saved payment method." + # + # Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods). + sig { returns(T.nilable(String)) } + def payment_method_remove; end + sig { params(_payment_method_remove: T.nilable(String)).returns(T.nilable(String)) } + def payment_method_remove=(_payment_method_remove); end + sig { + params(payment_method_allow_redisplay_filters: T.nilable(T::Array[String]), payment_method_remove: T.nilable(String)).void + } + def initialize( + payment_method_allow_redisplay_filters: nil, + payment_method_remove: nil + ); end + end + # Whether the customer sheet is enabled. + sig { returns(T::Boolean) } + def enabled; end + sig { params(_enabled: T::Boolean).returns(T::Boolean) } + def enabled=(_enabled); end + # This hash defines whether the customer sheet supports certain features. + sig { returns(T.nilable(CustomerSessionCreateParams::Components::CustomerSheet::Features)) } + def features; end + sig { + params(_features: T.nilable(CustomerSessionCreateParams::Components::CustomerSheet::Features)).returns(T.nilable(CustomerSessionCreateParams::Components::CustomerSheet::Features)) + } + def features=(_features); end + sig { + params(enabled: T::Boolean, features: T.nilable(CustomerSessionCreateParams::Components::CustomerSheet::Features)).void + } + def initialize(enabled: nil, features: nil); end + end + class MobilePaymentElement < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams + # A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the mobile payment element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list. + # + # If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"]. + sig { returns(T.nilable(T::Array[String])) } + def payment_method_allow_redisplay_filters; end + sig { + params(_payment_method_allow_redisplay_filters: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) + } + def payment_method_allow_redisplay_filters=(_payment_method_allow_redisplay_filters); end + # Controls whether or not the mobile payment element shows saved payment methods. + sig { returns(T.nilable(String)) } + def payment_method_redisplay; end + sig { params(_payment_method_redisplay: T.nilable(String)).returns(T.nilable(String)) } + def payment_method_redisplay=(_payment_method_redisplay); end + # Controls whether the mobile payment element displays the option to remove a saved payment method." + # + # Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods). + sig { returns(T.nilable(String)) } + def payment_method_remove; end + sig { params(_payment_method_remove: T.nilable(String)).returns(T.nilable(String)) } + def payment_method_remove=(_payment_method_remove); end + # Controls whether the mobile payment element displays a checkbox offering to save a new payment method. + # + # If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`. + sig { returns(T.nilable(String)) } + def payment_method_save; end + sig { params(_payment_method_save: T.nilable(String)).returns(T.nilable(String)) } + def payment_method_save=(_payment_method_save); end + # Allows overriding the value of allow_override when saving a new payment method when payment_method_save is set to disabled. Use values: "always", "limited", or "unspecified". + # + # If not specified, defaults to `nil` (no override value). + sig { returns(T.nilable(String)) } + def payment_method_save_allow_redisplay_override; end + sig { + params(_payment_method_save_allow_redisplay_override: T.nilable(String)).returns(T.nilable(String)) + } + def payment_method_save_allow_redisplay_override=( + _payment_method_save_allow_redisplay_override + ); end + sig { + params(payment_method_allow_redisplay_filters: T.nilable(T::Array[String]), payment_method_redisplay: T.nilable(String), payment_method_remove: T.nilable(String), payment_method_save: T.nilable(String), payment_method_save_allow_redisplay_override: T.nilable(String)).void + } + def initialize( + payment_method_allow_redisplay_filters: nil, + payment_method_redisplay: nil, + payment_method_remove: nil, + payment_method_save: nil, + payment_method_save_allow_redisplay_override: nil + ); end + end + # Whether the mobile payment element is enabled. + sig { returns(T::Boolean) } + def enabled; end + sig { params(_enabled: T::Boolean).returns(T::Boolean) } + def enabled=(_enabled); end + # This hash defines whether the mobile payment element supports certain features. + sig { + returns(T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement::Features)) + } + def features; end + sig { + params(_features: T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement::Features)).returns(T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement::Features)) + } + def features=(_features); end + sig { + params(enabled: T::Boolean, features: T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement::Features)).void + } + def initialize(enabled: nil, features: nil); end + end + class PaymentElement < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the Payment Element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list. # # If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"]. @@ -63713,7 +68732,7 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class PricingTable < Stripe::RequestParams + class PricingTable < ::Stripe::RequestParams # Whether the pricing table is enabled. sig { returns(T::Boolean) } def enabled; end @@ -63729,6 +68748,20 @@ module Stripe params(_buy_button: T.nilable(CustomerSessionCreateParams::Components::BuyButton)).returns(T.nilable(CustomerSessionCreateParams::Components::BuyButton)) } def buy_button=(_buy_button); end + # Configuration for the customer sheet. + sig { returns(T.nilable(CustomerSessionCreateParams::Components::CustomerSheet)) } + def customer_sheet; end + sig { + params(_customer_sheet: T.nilable(CustomerSessionCreateParams::Components::CustomerSheet)).returns(T.nilable(CustomerSessionCreateParams::Components::CustomerSheet)) + } + def customer_sheet=(_customer_sheet); end + # Configuration for the mobile payment element. + sig { returns(T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement)) } + def mobile_payment_element; end + sig { + params(_mobile_payment_element: T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement)).returns(T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement)) + } + def mobile_payment_element=(_mobile_payment_element); end # Configuration for the Payment Element. sig { returns(T.nilable(CustomerSessionCreateParams::Components::PaymentElement)) } def payment_element; end @@ -63744,9 +68777,15 @@ module Stripe } def pricing_table=(_pricing_table); end sig { - params(buy_button: T.nilable(CustomerSessionCreateParams::Components::BuyButton), payment_element: T.nilable(CustomerSessionCreateParams::Components::PaymentElement), pricing_table: T.nilable(CustomerSessionCreateParams::Components::PricingTable)).void + params(buy_button: T.nilable(CustomerSessionCreateParams::Components::BuyButton), customer_sheet: T.nilable(CustomerSessionCreateParams::Components::CustomerSheet), mobile_payment_element: T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement), payment_element: T.nilable(CustomerSessionCreateParams::Components::PaymentElement), pricing_table: T.nilable(CustomerSessionCreateParams::Components::PricingTable)).void } - def initialize(buy_button: nil, payment_element: nil, pricing_table: nil); end + def initialize( + buy_button: nil, + customer_sheet: nil, + mobile_payment_element: nil, + payment_element: nil, + pricing_table: nil + ); end end # Configuration for each component. Exactly 1 component must be enabled. sig { returns(CustomerSessionCreateParams::Components) } @@ -63773,12 +68812,12 @@ module Stripe end # typed: true module Stripe - class CustomerDeleteParams < Stripe::RequestParams; end + class CustomerDeleteParams < ::Stripe::RequestParams; end end # typed: true module Stripe - class CustomerUpdateParams < Stripe::RequestParams - class Address < Stripe::RequestParams + class CustomerUpdateParams < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -63821,8 +68860,8 @@ module Stripe state: nil ); end end - class CashBalance < Stripe::RequestParams - class Settings < Stripe::RequestParams + class CashBalance < ::Stripe::RequestParams + class Settings < ::Stripe::RequestParams # Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://stripe.com/docs/payments/customer-balance/reconciliation). sig { returns(T.nilable(String)) } def reconciliation_mode; end @@ -63842,8 +68881,8 @@ module Stripe sig { params(settings: T.nilable(CustomerUpdateParams::CashBalance::Settings)).void } def initialize(settings: nil); end end - class InvoiceSettings < Stripe::RequestParams - class CustomField < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class CustomField < ::Stripe::RequestParams # The name of the custom field. This may be up to 40 characters. sig { returns(String) } def name; end @@ -63857,7 +68896,7 @@ module Stripe sig { params(name: String, value: String).void } def initialize(name: nil, value: nil); end end - class RenderingOptions < Stripe::RequestParams + class RenderingOptions < ::Stripe::RequestParams # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. sig { returns(T.nilable(T.any(String, String))) } def amount_tax_display; end @@ -63913,8 +68952,8 @@ module Stripe rendering_options: nil ); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -63979,7 +69018,7 @@ module Stripe } def initialize(address: nil, name: nil, phone: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes. sig { returns(T.nilable(String)) } def ip_address; end @@ -64148,12 +69187,12 @@ module Stripe end # typed: true module Stripe - class CustomerDeleteDiscountParams < Stripe::RequestParams; end + class CustomerDeleteDiscountParams < ::Stripe::RequestParams; end end # typed: true module Stripe - class CustomerListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class CustomerListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -64232,8 +69271,8 @@ module Stripe end # typed: true module Stripe - class CustomerCreateParams < Stripe::RequestParams - class Address < Stripe::RequestParams + class CustomerCreateParams < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -64276,8 +69315,8 @@ module Stripe state: nil ); end end - class CashBalance < Stripe::RequestParams - class Settings < Stripe::RequestParams + class CashBalance < ::Stripe::RequestParams + class Settings < ::Stripe::RequestParams # Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://stripe.com/docs/payments/customer-balance/reconciliation). sig { returns(T.nilable(String)) } def reconciliation_mode; end @@ -64297,8 +69336,8 @@ module Stripe sig { params(settings: T.nilable(CustomerCreateParams::CashBalance::Settings)).void } def initialize(settings: nil); end end - class InvoiceSettings < Stripe::RequestParams - class CustomField < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class CustomField < ::Stripe::RequestParams # The name of the custom field. This may be up to 40 characters. sig { returns(String) } def name; end @@ -64312,7 +69351,7 @@ module Stripe sig { params(name: String, value: String).void } def initialize(name: nil, value: nil); end end - class RenderingOptions < Stripe::RequestParams + class RenderingOptions < ::Stripe::RequestParams # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. sig { returns(T.nilable(T.any(String, String))) } def amount_tax_display; end @@ -64368,8 +69407,8 @@ module Stripe rendering_options: nil ); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -64434,7 +69473,7 @@ module Stripe } def initialize(address: nil, name: nil, phone: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes. sig { returns(T.nilable(String)) } def ip_address; end @@ -64448,7 +69487,7 @@ module Stripe sig { params(ip_address: T.nilable(String), validate_location: T.nilable(String)).void } def initialize(ip_address: nil, validate_location: nil); end end - class TaxIdDatum < Stripe::RequestParams + class TaxIdDatum < ::Stripe::RequestParams # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` sig { returns(String) } def type; end @@ -64627,7 +69666,7 @@ module Stripe end # typed: true module Stripe - class CustomerListPaymentMethodsParams < Stripe::RequestParams + class CustomerListPaymentMethodsParams < ::Stripe::RequestParams # This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. sig { returns(T.nilable(String)) } def allow_redisplay; end @@ -64673,7 +69712,7 @@ module Stripe end # typed: true module Stripe - class CustomerRetrievePaymentMethodParams < Stripe::RequestParams + class CustomerRetrievePaymentMethodParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -64685,7 +69724,7 @@ module Stripe end # typed: true module Stripe - class CustomerSearchParams < Stripe::RequestParams + class CustomerSearchParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -64714,9 +69753,9 @@ module Stripe end # typed: true module Stripe - class CustomerCreateFundingInstructionsParams < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerCreateFundingInstructionsParams < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -64783,7 +69822,7 @@ module Stripe end # typed: true module Stripe - class CustomerRetrieveParams < Stripe::RequestParams + class CustomerRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -64795,7 +69834,7 @@ module Stripe end # typed: true module Stripe - class CustomerFundCashBalanceParams < Stripe::RequestParams + class CustomerFundCashBalanceParams < ::Stripe::RequestParams # Amount to be used for this test cash balance transaction. A positive integer representing how much to fund in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to fund $1.00 or 100 to fund ¥100, a zero-decimal currency). sig { returns(Integer) } def amount; end @@ -64824,8 +69863,8 @@ module Stripe end # typed: true module Stripe - class DisputeListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class DisputeListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -64904,12 +69943,12 @@ module Stripe end # typed: true module Stripe - class DisputeUpdateParams < Stripe::RequestParams - class Evidence < Stripe::RequestParams - class EnhancedEvidence < Stripe::RequestParams - class VisaCompellingEvidence3 < Stripe::RequestParams - class DisputedTransaction < Stripe::RequestParams - class ShippingAddress < Stripe::RequestParams + class DisputeUpdateParams < ::Stripe::RequestParams + class Evidence < ::Stripe::RequestParams + class EnhancedEvidence < ::Stripe::RequestParams + class VisaCompellingEvidence3 < ::Stripe::RequestParams + class DisputedTransaction < ::Stripe::RequestParams + class ShippingAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -65012,8 +70051,8 @@ module Stripe shipping_address: nil ); end end - class PriorUndisputedTransaction < Stripe::RequestParams - class ShippingAddress < Stripe::RequestParams + class PriorUndisputedTransaction < ::Stripe::RequestParams + class ShippingAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -65139,7 +70178,7 @@ module Stripe } def initialize(disputed_transaction: nil, prior_undisputed_transactions: nil); end end - class VisaCompliance < Stripe::RequestParams + class VisaCompliance < ::Stripe::RequestParams # A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute. sig { returns(T.nilable(T::Boolean)) } def fee_acknowledged; end @@ -65377,7 +70416,7 @@ module Stripe end # typed: true module Stripe - class DisputeCloseParams < Stripe::RequestParams + class DisputeCloseParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -65390,7 +70429,7 @@ end # typed: true module Stripe module Entitlements - class ActiveEntitlementListParams < Stripe::RequestParams + class ActiveEntitlementListParams < ::Stripe::RequestParams # The ID of the customer. sig { returns(String) } def customer; end @@ -65432,7 +70471,7 @@ end # typed: true module Stripe module Entitlements - class FeatureListParams < Stripe::RequestParams + class FeatureListParams < ::Stripe::RequestParams # If set, filter results to only include features with the given archive status. sig { returns(T.nilable(T::Boolean)) } def archived; end @@ -65480,7 +70519,7 @@ end # typed: true module Stripe module Entitlements - class FeatureCreateParams < Stripe::RequestParams + class FeatureCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -65513,7 +70552,7 @@ end # typed: true module Stripe module Entitlements - class FeatureUpdateParams < Stripe::RequestParams + class FeatureUpdateParams < ::Stripe::RequestParams # Inactive features cannot be attached to new products and will not be returned from the features list endpoint. sig { returns(T.nilable(T::Boolean)) } def active; end @@ -65545,7 +70584,7 @@ module Stripe end # typed: true module Stripe - class EphemeralKeyDeleteParams < Stripe::RequestParams + class EphemeralKeyDeleteParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -65557,8 +70596,8 @@ module Stripe end # typed: true module Stripe - class EventListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class EventListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -65643,7 +70682,7 @@ module Stripe end # typed: true module Stripe - class ExchangeRateListParams < Stripe::RequestParams + class ExchangeRateListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is the currency that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with the exchange rate for currency X your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -65672,8 +70711,8 @@ module Stripe end # typed: true module Stripe - class FileLinkListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class FileLinkListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -65752,7 +70791,7 @@ module Stripe end # typed: true module Stripe - class FileLinkCreateParams < Stripe::RequestParams + class FileLinkCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -65783,7 +70822,7 @@ module Stripe end # typed: true module Stripe - class FileLinkUpdateParams < Stripe::RequestParams + class FileLinkUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -65811,8 +70850,8 @@ module Stripe end # typed: true module Stripe - class FileListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class FileListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -65885,8 +70924,8 @@ module Stripe end # typed: true module Stripe - class FileCreateParams < Stripe::RequestParams - class FileLinkData < Stripe::RequestParams + class FileCreateParams < ::Stripe::RequestParams + class FileLinkData < ::Stripe::RequestParams # Set this to `true` to create a file link for the newly created file. Creating a link is only possible when the file's `purpose` is one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `issuing_regulatory_reporting`, `pci_document`, `tax_document_user_upload`, `terminal_android_apk`, or `terminal_reader_splashscreen`. sig { returns(T::Boolean) } def create; end @@ -65940,8 +70979,8 @@ end # typed: true module Stripe module FinancialConnections - class AccountListParams < Stripe::RequestParams - class AccountHolder < Stripe::RequestParams + class AccountListParams < ::Stripe::RequestParams + class AccountHolder < ::Stripe::RequestParams # The ID of the Stripe account whose accounts will be retrieved. sig { returns(T.nilable(String)) } def account; end @@ -66004,7 +71043,7 @@ end # typed: true module Stripe module FinancialConnections - class AccountListOwnersParams < Stripe::RequestParams + class AccountListOwnersParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -66046,7 +71085,7 @@ end # typed: true module Stripe module FinancialConnections - class AccountDisconnectParams < Stripe::RequestParams + class AccountDisconnectParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -66060,7 +71099,7 @@ end # typed: true module Stripe module FinancialConnections - class AccountRefreshAccountParams < Stripe::RequestParams + class AccountRefreshAccountParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -66079,7 +71118,7 @@ end # typed: true module Stripe module FinancialConnections - class AccountSubscribeParams < Stripe::RequestParams + class AccountSubscribeParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -66098,7 +71137,7 @@ end # typed: true module Stripe module FinancialConnections - class AccountUnsubscribeParams < Stripe::RequestParams + class AccountUnsubscribeParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -66117,8 +71156,8 @@ end # typed: true module Stripe module FinancialConnections - class SessionCreateParams < Stripe::RequestParams - class AccountHolder < Stripe::RequestParams + class SessionCreateParams < ::Stripe::RequestParams + class AccountHolder < ::Stripe::RequestParams # The ID of the Stripe account whose accounts will be retrieved. Should only be present if `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -66137,7 +71176,7 @@ module Stripe sig { params(account: T.nilable(String), customer: T.nilable(String), type: String).void } def initialize(account: nil, customer: nil, type: nil); end end - class Filters < Stripe::RequestParams + class Filters < ::Stripe::RequestParams # Restricts the Session to subcategories of accounts that can be linked. Valid subcategories are: `checking`, `savings`, `mortgage`, `line_of_credit`, `credit_card`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -66208,8 +71247,8 @@ end # typed: true module Stripe module FinancialConnections - class TransactionListParams < Stripe::RequestParams - class TransactedAt < Stripe::RequestParams + class TransactionListParams < ::Stripe::RequestParams + class TransactedAt < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -66235,7 +71274,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class TransactionRefresh < Stripe::RequestParams + class TransactionRefresh < ::Stripe::RequestParams # Return results where the transactions were created or updated by a refresh that took place after this refresh (non-inclusive). sig { returns(String) } def after; end @@ -66303,8 +71342,8 @@ end # typed: true module Stripe module Forwarding - class RequestListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class RequestListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Return results where the `created` field is greater than this value. sig { returns(T.nilable(Integer)) } def gt; end @@ -66373,9 +71412,9 @@ end # typed: true module Stripe module Forwarding - class RequestCreateParams < Stripe::RequestParams - class Request < Stripe::RequestParams - class Header < Stripe::RequestParams + class RequestCreateParams < ::Stripe::RequestParams + class Request < ::Stripe::RequestParams + class Header < ::Stripe::RequestParams # The header name. sig { returns(String) } def name; end @@ -66457,8 +71496,8 @@ end # typed: true module Stripe module Identity - class VerificationReportListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class VerificationReportListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -66545,8 +71584,8 @@ end # typed: true module Stripe module Identity - class VerificationSessionListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class VerificationSessionListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -66633,9 +71672,9 @@ end # typed: true module Stripe module Identity - class VerificationSessionCreateParams < Stripe::RequestParams - class Options < Stripe::RequestParams - class Document < Stripe::RequestParams + class VerificationSessionCreateParams < ::Stripe::RequestParams + class Options < ::Stripe::RequestParams + class Document < ::Stripe::RequestParams # Array of strings of allowed identity document types. If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code. sig { returns(T.nilable(T::Array[String])) } def allowed_types; end @@ -66686,7 +71725,7 @@ module Stripe } def initialize(document: nil); end end - class ProvidedDetails < Stripe::RequestParams + class ProvidedDetails < ::Stripe::RequestParams # Email of user being verified sig { returns(T.nilable(String)) } def email; end @@ -66700,7 +71739,7 @@ module Stripe sig { params(email: T.nilable(String), phone: T.nilable(String)).void } def initialize(email: nil, phone: nil); end end - class RelatedPerson < Stripe::RequestParams + class RelatedPerson < ::Stripe::RequestParams # A token representing a connected account. If provided, the person parameter is also required and must be associated with the account. sig { returns(String) } def account; end @@ -66793,9 +71832,9 @@ end # typed: true module Stripe module Identity - class VerificationSessionUpdateParams < Stripe::RequestParams - class Options < Stripe::RequestParams - class Document < Stripe::RequestParams + class VerificationSessionUpdateParams < ::Stripe::RequestParams + class Options < ::Stripe::RequestParams + class Document < ::Stripe::RequestParams # Array of strings of allowed identity document types. If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code. sig { returns(T.nilable(T::Array[String])) } def allowed_types; end @@ -66846,7 +71885,7 @@ module Stripe } def initialize(document: nil); end end - class ProvidedDetails < Stripe::RequestParams + class ProvidedDetails < ::Stripe::RequestParams # Email of user being verified sig { returns(T.nilable(String)) } def email; end @@ -66907,7 +71946,7 @@ end # typed: true module Stripe module Identity - class VerificationSessionCancelParams < Stripe::RequestParams + class VerificationSessionCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -66921,7 +71960,7 @@ end # typed: true module Stripe module Identity - class VerificationSessionRedactParams < Stripe::RequestParams + class VerificationSessionRedactParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -66934,20 +71973,27 @@ module Stripe end # typed: true module Stripe - class InvoicePaymentListParams < Stripe::RequestParams - class Payment < Stripe::RequestParams + class InvoicePaymentListParams < ::Stripe::RequestParams + class Payment < ::Stripe::RequestParams # Only return invoice payments associated by this payment intent ID. sig { returns(T.nilable(String)) } def payment_intent; end sig { params(_payment_intent: T.nilable(String)).returns(T.nilable(String)) } def payment_intent=(_payment_intent); end + # Only return invoice payments associated by this payment record ID. + sig { returns(T.nilable(String)) } + def payment_record; end + sig { params(_payment_record: T.nilable(String)).returns(T.nilable(String)) } + def payment_record=(_payment_record); end # Only return invoice payments associated by this payment type. sig { returns(String) } def type; end sig { params(_type: String).returns(String) } def type=(_type); end - sig { params(payment_intent: T.nilable(String), type: String).void } - def initialize(payment_intent: nil, type: nil); end + sig { + params(payment_intent: T.nilable(String), payment_record: T.nilable(String), type: String).void + } + def initialize(payment_intent: nil, payment_record: nil, type: nil); end end # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } @@ -67002,7 +72048,7 @@ module Stripe end # typed: true module Stripe - class InvoiceRenderingTemplateListParams < Stripe::RequestParams + class InvoiceRenderingTemplateListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -67042,7 +72088,7 @@ module Stripe end # typed: true module Stripe - class InvoiceRenderingTemplateArchiveParams < Stripe::RequestParams + class InvoiceRenderingTemplateArchiveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -67054,7 +72100,7 @@ module Stripe end # typed: true module Stripe - class InvoiceRenderingTemplateUnarchiveParams < Stripe::RequestParams + class InvoiceRenderingTemplateUnarchiveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -67066,12 +72112,12 @@ module Stripe end # typed: true module Stripe - class InvoiceItemDeleteParams < Stripe::RequestParams; end + class InvoiceItemDeleteParams < ::Stripe::RequestParams; end end # typed: true module Stripe - class InvoiceItemUpdateParams < Stripe::RequestParams - class Discount < Stripe::RequestParams + class InvoiceItemUpdateParams < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -67092,7 +72138,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Period < Stripe::RequestParams + class Period < ::Stripe::RequestParams # The end of the period, which must be greater than or equal to the start. This value is inclusive. sig { returns(Integer) } def end; end @@ -67106,7 +72152,7 @@ module Stripe sig { params(end_: Integer, start: Integer).void } def initialize(end_: nil, start: nil); end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -67143,7 +72189,7 @@ module Stripe unit_amount_decimal: nil ); end end - class Pricing < Stripe::RequestParams + class Pricing < ::Stripe::RequestParams # The ID of the price object. sig { returns(T.nilable(String)) } def price; end @@ -67257,8 +72303,8 @@ module Stripe end # typed: true module Stripe - class InvoiceItemListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class InvoiceItemListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -67343,8 +72389,8 @@ module Stripe end # typed: true module Stripe - class InvoiceItemCreateParams < Stripe::RequestParams - class Discount < Stripe::RequestParams + class InvoiceItemCreateParams < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -67365,7 +72411,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Period < Stripe::RequestParams + class Period < ::Stripe::RequestParams # The end of the period, which must be greater than or equal to the start. This value is inclusive. sig { returns(Integer) } def end; end @@ -67379,7 +72425,7 @@ module Stripe sig { params(end_: Integer, start: Integer).void } def initialize(end_: nil, start: nil); end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -67416,7 +72462,7 @@ module Stripe unit_amount_decimal: nil ); end end - class Pricing < Stripe::RequestParams + class Pricing < ::Stripe::RequestParams # The ID of the price object. sig { returns(T.nilable(String)) } def price; end @@ -67552,13 +72598,13 @@ module Stripe end # typed: true module Stripe - class InvoiceDeleteParams < Stripe::RequestParams; end + class InvoiceDeleteParams < ::Stripe::RequestParams; end end # typed: true module Stripe - class InvoiceUpdateParams < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class InvoiceUpdateParams < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -67589,7 +72635,7 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class CustomField < Stripe::RequestParams + class CustomField < ::Stripe::RequestParams # The name of the custom field. This may be up to 40 characters. sig { returns(String) } def name; end @@ -67603,7 +72649,7 @@ module Stripe sig { params(name: String, value: String).void } def initialize(name: nil, value: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -67624,7 +72670,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Issuer < Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -67638,10 +72684,10 @@ module Stripe sig { params(account: T.nilable(String), type: String).void } def initialize(account: nil, type: nil); end end - class PaymentSettings < Stripe::RequestParams - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentSettings < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Transaction type of the mandate. sig { returns(T.nilable(String)) } def transaction_type; end @@ -67669,7 +72715,7 @@ module Stripe } def initialize(mandate_options: nil, verification_method: nil); end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Preferred language of the Bancontact authorization page that the customer is redirected to. sig { returns(T.nilable(String)) } def preferred_language; end @@ -67678,9 +72724,9 @@ module Stripe sig { params(preferred_language: T.nilable(String)).void } def initialize(preferred_language: nil); end end - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams - class Plan < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams + class Plan < ::Stripe::RequestParams # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. sig { returns(T.nilable(Integer)) } def count; end @@ -67743,9 +72789,9 @@ module Stripe } def initialize(installments: nil, request_three_d_secure: nil); end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -67792,11 +72838,11 @@ module Stripe } def initialize(bank_transfer: nil, funding_type: nil); end end - class Konbini < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -67958,8 +73004,8 @@ module Stripe payment_method_types: nil ); end end - class Rendering < Stripe::RequestParams - class Pdf < Stripe::RequestParams + class Rendering < ::Stripe::RequestParams + class Pdf < ::Stripe::RequestParams # Page size for invoice PDF. Can be set to `a4`, `letter`, or `auto`. # If set to `auto`, invoice PDF page size defaults to `a4` for customers with # Japanese locale and `letter` for customers with other locales. @@ -68001,10 +73047,10 @@ module Stripe } def initialize(amount_tax_display: nil, pdf: nil, template: nil, template_version: nil); end end - class ShippingCost < Stripe::RequestParams - class ShippingRateData < Stripe::RequestParams - class DeliveryEstimate < Stripe::RequestParams - class Maximum < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams + class ShippingRateData < ::Stripe::RequestParams + class DeliveryEstimate < ::Stripe::RequestParams + class Maximum < ::Stripe::RequestParams # A unit of time. sig { returns(String) } def unit; end @@ -68018,7 +73064,7 @@ module Stripe sig { params(unit: String, value: Integer).void } def initialize(unit: nil, value: nil); end end - class Minimum < Stripe::RequestParams + class Minimum < ::Stripe::RequestParams # A unit of time. sig { returns(String) } def unit; end @@ -68055,8 +73101,8 @@ module Stripe } def initialize(maximum: nil, minimum: nil); end end - class FixedAmount < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class FixedAmount < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A non-negative integer in cents representing how much to charge. sig { returns(Integer) } def amount; end @@ -68167,8 +73213,8 @@ module Stripe } def initialize(shipping_rate: nil, shipping_rate_data: nil); end end - class ShippingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class ShippingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -68233,7 +73279,7 @@ module Stripe } def initialize(address: nil, name: nil, phone: nil); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when the invoice is paid. If no amount is set, the full amount is transferred. sig { returns(T.nilable(Integer)) } def amount; end @@ -68444,8 +73490,8 @@ module Stripe end # typed: true module Stripe - class InvoiceListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class InvoiceListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -68471,7 +73517,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class DueDate < Stripe::RequestParams + class DueDate < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -68570,9 +73616,9 @@ module Stripe end # typed: true module Stripe - class InvoiceCreateParams < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class InvoiceCreateParams < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -68603,7 +73649,7 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class CustomField < Stripe::RequestParams + class CustomField < ::Stripe::RequestParams # The name of the custom field. This may be up to 40 characters. sig { returns(String) } def name; end @@ -68617,7 +73663,7 @@ module Stripe sig { params(name: String, value: String).void } def initialize(name: nil, value: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -68638,7 +73684,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class FromInvoice < Stripe::RequestParams + class FromInvoice < ::Stripe::RequestParams # The relation between the new invoice and the original invoice. Currently, only 'revision' is permitted sig { returns(String) } def action; end @@ -68652,7 +73698,7 @@ module Stripe sig { params(action: String, invoice: String).void } def initialize(action: nil, invoice: nil); end end - class Issuer < Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -68666,10 +73712,10 @@ module Stripe sig { params(account: T.nilable(String), type: String).void } def initialize(account: nil, type: nil); end end - class PaymentSettings < Stripe::RequestParams - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentSettings < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Transaction type of the mandate. sig { returns(T.nilable(String)) } def transaction_type; end @@ -68697,7 +73743,7 @@ module Stripe } def initialize(mandate_options: nil, verification_method: nil); end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Preferred language of the Bancontact authorization page that the customer is redirected to. sig { returns(T.nilable(String)) } def preferred_language; end @@ -68706,9 +73752,9 @@ module Stripe sig { params(preferred_language: T.nilable(String)).void } def initialize(preferred_language: nil); end end - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams - class Plan < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams + class Plan < ::Stripe::RequestParams # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. sig { returns(T.nilable(Integer)) } def count; end @@ -68771,9 +73817,9 @@ module Stripe } def initialize(installments: nil, request_three_d_secure: nil); end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -68820,11 +73866,11 @@ module Stripe } def initialize(bank_transfer: nil, funding_type: nil); end end - class Konbini < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -68986,8 +74032,8 @@ module Stripe payment_method_types: nil ); end end - class Rendering < Stripe::RequestParams - class Pdf < Stripe::RequestParams + class Rendering < ::Stripe::RequestParams + class Pdf < ::Stripe::RequestParams # Page size for invoice PDF. Can be set to `a4`, `letter`, or `auto`. # If set to `auto`, invoice PDF page size defaults to `a4` for customers with # Japanese locale and `letter` for customers with other locales. @@ -69029,10 +74075,10 @@ module Stripe } def initialize(amount_tax_display: nil, pdf: nil, template: nil, template_version: nil); end end - class ShippingCost < Stripe::RequestParams - class ShippingRateData < Stripe::RequestParams - class DeliveryEstimate < Stripe::RequestParams - class Maximum < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams + class ShippingRateData < ::Stripe::RequestParams + class DeliveryEstimate < ::Stripe::RequestParams + class Maximum < ::Stripe::RequestParams # A unit of time. sig { returns(String) } def unit; end @@ -69046,7 +74092,7 @@ module Stripe sig { params(unit: String, value: Integer).void } def initialize(unit: nil, value: nil); end end - class Minimum < Stripe::RequestParams + class Minimum < ::Stripe::RequestParams # A unit of time. sig { returns(String) } def unit; end @@ -69083,8 +74129,8 @@ module Stripe } def initialize(maximum: nil, minimum: nil); end end - class FixedAmount < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class FixedAmount < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A non-negative integer in cents representing how much to charge. sig { returns(Integer) } def amount; end @@ -69195,8 +74241,8 @@ module Stripe } def initialize(shipping_rate: nil, shipping_rate_data: nil); end end - class ShippingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class ShippingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -69261,7 +74307,7 @@ module Stripe } def initialize(address: nil, name: nil, phone: nil); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when the invoice is paid. If no amount is set, the full amount is transferred. sig { returns(T.nilable(Integer)) } def amount; end @@ -69502,7 +74548,7 @@ module Stripe end # typed: true module Stripe - class InvoiceSearchParams < Stripe::RequestParams + class InvoiceSearchParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -69531,9 +74577,9 @@ module Stripe end # typed: true module Stripe - class InvoiceAddLinesParams < Stripe::RequestParams - class Line < Stripe::RequestParams - class Discount < Stripe::RequestParams + class InvoiceAddLinesParams < ::Stripe::RequestParams + class Line < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -69554,7 +74600,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Period < Stripe::RequestParams + class Period < ::Stripe::RequestParams # The end of the period, which must be greater than or equal to the start. This value is inclusive. sig { returns(Integer) } def end; end @@ -69568,8 +74614,8 @@ module Stripe sig { params(end_: Integer, start: Integer).void } def initialize(end_: nil, start: nil); end end - class PriceData < Stripe::RequestParams - class ProductData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class ProductData < ::Stripe::RequestParams # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. sig { returns(T.nilable(String)) } def description; end @@ -69658,7 +74704,7 @@ module Stripe unit_amount_decimal: nil ); end end - class Pricing < Stripe::RequestParams + class Pricing < ::Stripe::RequestParams # The ID of the price object. sig { returns(T.nilable(String)) } def price; end @@ -69667,8 +74713,8 @@ module Stripe sig { params(price: T.nilable(String)).void } def initialize(price: nil); end end - class TaxAmount < Stripe::RequestParams - class TaxRateData < Stripe::RequestParams + class TaxAmount < ::Stripe::RequestParams + class TaxRateData < ::Stripe::RequestParams # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). sig { returns(T.nilable(String)) } def country; end @@ -69882,7 +74928,7 @@ module Stripe end # typed: true module Stripe - class InvoiceAttachPaymentParams < Stripe::RequestParams + class InvoiceAttachPaymentParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -69893,13 +74939,20 @@ module Stripe def payment_intent; end sig { params(_payment_intent: T.nilable(String)).returns(T.nilable(String)) } def payment_intent=(_payment_intent); end - sig { params(expand: T.nilable(T::Array[String]), payment_intent: T.nilable(String)).void } - def initialize(expand: nil, payment_intent: nil); end + # The ID of the PaymentRecord to attach to the invoice. + sig { returns(T.nilable(String)) } + def payment_record; end + sig { params(_payment_record: T.nilable(String)).returns(T.nilable(String)) } + def payment_record=(_payment_record); end + sig { + params(expand: T.nilable(T::Array[String]), payment_intent: T.nilable(String), payment_record: T.nilable(String)).void + } + def initialize(expand: nil, payment_intent: nil, payment_record: nil); end end end # typed: true module Stripe - class InvoiceFinalizeInvoiceParams < Stripe::RequestParams + class InvoiceFinalizeInvoiceParams < ::Stripe::RequestParams # Controls whether Stripe performs [automatic collection](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action. sig { returns(T.nilable(T::Boolean)) } def auto_advance; end @@ -69916,7 +74969,7 @@ module Stripe end # typed: true module Stripe - class InvoiceMarkUncollectibleParams < Stripe::RequestParams + class InvoiceMarkUncollectibleParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -69928,7 +74981,7 @@ module Stripe end # typed: true module Stripe - class InvoicePayParams < Stripe::RequestParams + class InvoicePayParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -69982,8 +75035,8 @@ module Stripe end # typed: true module Stripe - class InvoiceRemoveLinesParams < Stripe::RequestParams - class Line < Stripe::RequestParams + class InvoiceRemoveLinesParams < ::Stripe::RequestParams + class Line < ::Stripe::RequestParams # Either `delete` or `unassign`. Deleted line items are permanently deleted. Unassigned line items can be reassigned to an invoice. sig { returns(String) } def behavior; end @@ -70024,7 +75077,7 @@ module Stripe end # typed: true module Stripe - class InvoiceSendInvoiceParams < Stripe::RequestParams + class InvoiceSendInvoiceParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -70036,9 +75089,9 @@ module Stripe end # typed: true module Stripe - class InvoiceUpdateLinesParams < Stripe::RequestParams - class Line < Stripe::RequestParams - class Discount < Stripe::RequestParams + class InvoiceUpdateLinesParams < ::Stripe::RequestParams + class Line < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -70059,7 +75112,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Period < Stripe::RequestParams + class Period < ::Stripe::RequestParams # The end of the period, which must be greater than or equal to the start. This value is inclusive. sig { returns(Integer) } def end; end @@ -70073,8 +75126,8 @@ module Stripe sig { params(end_: Integer, start: Integer).void } def initialize(end_: nil, start: nil); end end - class PriceData < Stripe::RequestParams - class ProductData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class ProductData < ::Stripe::RequestParams # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. sig { returns(T.nilable(String)) } def description; end @@ -70163,7 +75216,7 @@ module Stripe unit_amount_decimal: nil ); end end - class Pricing < Stripe::RequestParams + class Pricing < ::Stripe::RequestParams # The ID of the price object. sig { returns(T.nilable(String)) } def price; end @@ -70172,8 +75225,8 @@ module Stripe sig { params(price: T.nilable(String)).void } def initialize(price: nil); end end - class TaxAmount < Stripe::RequestParams - class TaxRateData < Stripe::RequestParams + class TaxAmount < ::Stripe::RequestParams + class TaxRateData < ::Stripe::RequestParams # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). sig { returns(T.nilable(String)) } def country; end @@ -70387,7 +75440,7 @@ module Stripe end # typed: true module Stripe - class InvoiceVoidInvoiceParams < Stripe::RequestParams + class InvoiceVoidInvoiceParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -70399,9 +75452,9 @@ module Stripe end # typed: true module Stripe - class InvoiceCreatePreviewParams < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class InvoiceCreatePreviewParams < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -70432,8 +75485,8 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class CustomerDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class CustomerDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -70476,8 +75529,8 @@ module Stripe state: nil ); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -70542,7 +75595,7 @@ module Stripe } def initialize(address: nil, name: nil, phone: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes. sig { returns(T.nilable(String)) } def ip_address; end @@ -70551,7 +75604,7 @@ module Stripe sig { params(ip_address: T.nilable(String)).void } def initialize(ip_address: nil); end end - class TaxId < Stripe::RequestParams + class TaxId < ::Stripe::RequestParams # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` sig { returns(String) } def type; end @@ -70609,7 +75662,7 @@ module Stripe } def initialize(address: nil, shipping: nil, tax: nil, tax_exempt: nil, tax_ids: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -70630,8 +75683,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class InvoiceItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class InvoiceItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -70652,7 +75705,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Period < Stripe::RequestParams + class Period < ::Stripe::RequestParams # The end of the period, which must be greater than or equal to the start. This value is inclusive. sig { returns(Integer) } def end; end @@ -70666,7 +75719,7 @@ module Stripe sig { params(end_: Integer, start: Integer).void } def initialize(end_: nil, start: nil); end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -70817,7 +75870,7 @@ module Stripe unit_amount_decimal: nil ); end end - class Issuer < Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -70831,9 +75884,9 @@ module Stripe sig { params(account: T.nilable(String), type: String).void } def initialize(account: nil, type: nil); end end - class ScheduleDetails < Stripe::RequestParams - class BillingMode < Stripe::RequestParams - class Flexible < Stripe::RequestParams + class ScheduleDetails < ::Stripe::RequestParams + class BillingMode < ::Stripe::RequestParams + class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. sig { returns(T.nilable(String)) } def proration_discounts; end @@ -70861,9 +75914,9 @@ module Stripe } def initialize(flexible: nil, type: nil); end end - class Phase < Stripe::RequestParams - class AddInvoiceItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class Phase < ::Stripe::RequestParams + class AddInvoiceItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -70884,8 +75937,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Period < Stripe::RequestParams - class End < Stripe::RequestParams + class Period < ::Stripe::RequestParams + class End < ::Stripe::RequestParams # A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -70899,7 +75952,7 @@ module Stripe sig { params(timestamp: T.nilable(Integer), type: String).void } def initialize(timestamp: nil, type: nil); end end - class Start < Stripe::RequestParams + class Start < ::Stripe::RequestParams # A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -70936,7 +75989,7 @@ module Stripe } def initialize(end_: nil, start: nil); end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -71037,8 +76090,8 @@ module Stripe tax_rates: nil ); end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -71071,7 +76124,7 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class BillingThresholds < Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period sig { returns(T.nilable(Integer)) } def amount_gte; end @@ -71089,7 +76142,7 @@ module Stripe } def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -71110,7 +76163,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Duration < Stripe::RequestParams + class Duration < ::Stripe::RequestParams # Specifies phase duration. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -71124,8 +76177,8 @@ module Stripe sig { params(interval: String, interval_count: T.nilable(Integer)).void } def initialize(interval: nil, interval_count: nil); end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -71165,8 +76218,8 @@ module Stripe } def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil); end end - class Item < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class Item < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) sig { returns(Integer) } def usage_gte; end @@ -71175,7 +76228,7 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -71196,8 +76249,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -71327,7 +76380,7 @@ module Stripe tax_rates: nil ); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Float)) } def amount_percent; end @@ -71547,9 +76600,9 @@ module Stripe proration_behavior: nil ); end end - class SubscriptionDetails < Stripe::RequestParams - class BillingMode < Stripe::RequestParams - class Flexible < Stripe::RequestParams + class SubscriptionDetails < ::Stripe::RequestParams + class BillingMode < ::Stripe::RequestParams + class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. sig { returns(T.nilable(String)) } def proration_discounts; end @@ -71577,8 +76630,8 @@ module Stripe } def initialize(flexible: nil, type: nil); end end - class Item < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class Item < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) sig { returns(Integer) } def usage_gte; end @@ -71587,7 +76640,7 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -71608,8 +76661,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -71952,8 +77005,8 @@ module Stripe end # typed: true module Stripe - class InvoiceLineItemUpdateParams < Stripe::RequestParams - class Discount < Stripe::RequestParams + class InvoiceLineItemUpdateParams < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -71974,7 +77027,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Period < Stripe::RequestParams + class Period < ::Stripe::RequestParams # The end of the period, which must be greater than or equal to the start. This value is inclusive. sig { returns(Integer) } def end; end @@ -71988,8 +77041,8 @@ module Stripe sig { params(end_: Integer, start: Integer).void } def initialize(end_: nil, start: nil); end end - class PriceData < Stripe::RequestParams - class ProductData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class ProductData < ::Stripe::RequestParams # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. sig { returns(T.nilable(String)) } def description; end @@ -72078,7 +77131,7 @@ module Stripe unit_amount_decimal: nil ); end end - class Pricing < Stripe::RequestParams + class Pricing < ::Stripe::RequestParams # The ID of the price object. sig { returns(T.nilable(String)) } def price; end @@ -72087,8 +77140,8 @@ module Stripe sig { params(price: T.nilable(String)).void } def initialize(price: nil); end end - class TaxAmount < Stripe::RequestParams - class TaxRateData < Stripe::RequestParams + class TaxAmount < ::Stripe::RequestParams + class TaxRateData < ::Stripe::RequestParams # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). sig { returns(T.nilable(String)) } def country; end @@ -72279,8 +77332,8 @@ end # typed: true module Stripe module Issuing - class AuthorizationListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class AuthorizationListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -72367,7 +77420,7 @@ end # typed: true module Stripe module Issuing - class AuthorizationUpdateParams < Stripe::RequestParams + class AuthorizationUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -72390,7 +77443,7 @@ end # typed: true module Stripe module Issuing - class AuthorizationApproveParams < Stripe::RequestParams + class AuthorizationApproveParams < ::Stripe::RequestParams # If the authorization's `pending_request.is_amount_controllable` property is `true`, you may provide this value to control how much to hold for the authorization. Must be positive (use [`decline`](https://stripe.com/docs/api/issuing/authorizations/decline) to decline an authorization request). sig { returns(T.nilable(Integer)) } def amount; end @@ -72418,7 +77471,7 @@ end # typed: true module Stripe module Issuing - class AuthorizationDeclineParams < Stripe::RequestParams + class AuthorizationDeclineParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -72441,8 +77494,8 @@ end # typed: true module Stripe module Issuing - class AuthorizationCreateParams < Stripe::RequestParams - class AmountDetails < Stripe::RequestParams + class AuthorizationCreateParams < ::Stripe::RequestParams + class AmountDetails < ::Stripe::RequestParams # The ATM withdrawal fee. sig { returns(T.nilable(Integer)) } def atm_fee; end @@ -72456,8 +77509,8 @@ module Stripe sig { params(atm_fee: T.nilable(Integer), cashback_amount: T.nilable(Integer)).void } def initialize(atm_fee: nil, cashback_amount: nil); end end - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. sig { returns(T.nilable(String)) } def driver_id; end @@ -72494,8 +77547,8 @@ module Stripe vehicle_number: nil ); end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -72504,7 +77557,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -72513,7 +77566,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -72595,7 +77648,7 @@ module Stripe service_type: nil ); end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end @@ -72632,7 +77685,7 @@ module Stripe unit_cost_decimal: nil ); end end - class MerchantData < Stripe::RequestParams + class MerchantData < ::Stripe::RequestParams # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. sig { returns(T.nilable(String)) } def category; end @@ -72693,7 +77746,7 @@ module Stripe url: nil ); end end - class NetworkData < Stripe::RequestParams + class NetworkData < ::Stripe::RequestParams # Identifier assigned to the acquirer by the card network. sig { returns(T.nilable(String)) } def acquiring_institution_id; end @@ -72702,8 +77755,8 @@ module Stripe sig { params(acquiring_institution_id: T.nilable(String)).void } def initialize(acquiring_institution_id: nil); end end - class RiskAssessment < Stripe::RequestParams - class CardTestingRisk < Stripe::RequestParams + class RiskAssessment < ::Stripe::RequestParams + class CardTestingRisk < ::Stripe::RequestParams # The % of declines due to a card number not existing in the past hour, taking place at the same merchant. Higher rates correspond to a greater probability of card testing activity, meaning bad actors may be attempting different card number combinations to guess a correct one. Takes on values between 0 and 100. sig { returns(T.nilable(Integer)) } def invalid_account_number_decline_rate_past_hour; end @@ -72736,7 +77789,7 @@ module Stripe risk_level: nil ); end end - class MerchantDisputeRisk < Stripe::RequestParams + class MerchantDisputeRisk < ::Stripe::RequestParams # The dispute rate observed across all Stripe Issuing authorizations for this merchant. For example, a value of 50 means 50% of authorizations from this merchant on Stripe Issuing have resulted in a dispute. Higher values mean a higher likelihood the authorization is disputed. Takes on values between 0 and 100. sig { returns(T.nilable(Integer)) } def dispute_rate; end @@ -72773,8 +77826,8 @@ module Stripe } def initialize(card_testing_risk: nil, merchant_dispute_risk: nil); end end - class VerificationData < Stripe::RequestParams - class AuthenticationExemption < Stripe::RequestParams + class VerificationData < ::Stripe::RequestParams + class AuthenticationExemption < ::Stripe::RequestParams # The entity that requested the exemption, either the acquiring merchant or the Issuing user. sig { returns(String) } def claimed_by; end @@ -72788,7 +77841,7 @@ module Stripe sig { params(claimed_by: String, type: String).void } def initialize(claimed_by: nil, type: nil); end end - class ThreeDSecure < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams # The outcome of the 3D Secure authentication request. sig { returns(String) } def result; end @@ -72974,10 +78027,10 @@ end # typed: true module Stripe module Issuing - class AuthorizationCaptureParams < Stripe::RequestParams - class PurchaseDetails < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class AuthorizationCaptureParams < ::Stripe::RequestParams + class PurchaseDetails < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. sig { returns(T.nilable(String)) } def driver_id; end @@ -73014,8 +78067,8 @@ module Stripe vehicle_number: nil ); end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -73024,7 +78077,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -73033,7 +78086,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -73119,8 +78172,8 @@ module Stripe service_type: nil ); end end - class Flight < Stripe::RequestParams - class Segment < Stripe::RequestParams + class Flight < ::Stripe::RequestParams + class Segment < ::Stripe::RequestParams # The three-letter IATA airport code of the flight's destination. sig { returns(T.nilable(String)) } def arrival_airport_code; end @@ -73203,7 +78256,7 @@ module Stripe travel_agency: nil ); end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end @@ -73240,7 +78293,7 @@ module Stripe unit_cost_decimal: nil ); end end - class Lodging < Stripe::RequestParams + class Lodging < ::Stripe::RequestParams # The time of checking into the lodging. sig { returns(T.nilable(Integer)) } def check_in_at; end @@ -73254,7 +78307,7 @@ module Stripe sig { params(check_in_at: T.nilable(Integer), nights: T.nilable(Integer)).void } def initialize(check_in_at: nil, nights: nil); end end - class Receipt < Stripe::RequestParams + class Receipt < ::Stripe::RequestParams # Attribute for param field description sig { returns(T.nilable(String)) } def description; end @@ -73371,7 +78424,7 @@ end # typed: true module Stripe module Issuing - class AuthorizationExpireParams < Stripe::RequestParams + class AuthorizationExpireParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -73385,9 +78438,9 @@ end # typed: true module Stripe module Issuing - class AuthorizationFinalizeAmountParams < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class AuthorizationFinalizeAmountParams < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. sig { returns(T.nilable(String)) } def driver_id; end @@ -73424,8 +78477,8 @@ module Stripe vehicle_number: nil ); end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -73434,7 +78487,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -73443,7 +78496,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -73529,7 +78582,7 @@ module Stripe service_type: nil ); end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end @@ -73600,7 +78653,7 @@ end # typed: true module Stripe module Issuing - class AuthorizationRespondParams < Stripe::RequestParams + class AuthorizationRespondParams < ::Stripe::RequestParams # Whether to simulate the user confirming that the transaction was legitimate (true) or telling Stripe that it was fraudulent (false). sig { returns(T::Boolean) } def confirmed; end @@ -73619,7 +78672,7 @@ end # typed: true module Stripe module Issuing - class AuthorizationIncrementParams < Stripe::RequestParams + class AuthorizationIncrementParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -73645,7 +78698,7 @@ end # typed: true module Stripe module Issuing - class AuthorizationReverseParams < Stripe::RequestParams + class AuthorizationReverseParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -73664,8 +78717,8 @@ end # typed: true module Stripe module Issuing - class CardholderListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class CardholderListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -73758,9 +78811,9 @@ end # typed: true module Stripe module Issuing - class CardholderCreateParams < Stripe::RequestParams - class Billing < Stripe::RequestParams - class Address < Stripe::RequestParams + class CardholderCreateParams < ::Stripe::RequestParams + class Billing < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(String) } def city; end @@ -73813,7 +78866,7 @@ module Stripe sig { params(address: Issuing::CardholderCreateParams::Billing::Address).void } def initialize(address: nil); end end - class Company < Stripe::RequestParams + class Company < ::Stripe::RequestParams # The entity's business ID number. sig { returns(T.nilable(String)) } def tax_id; end @@ -73822,9 +78875,9 @@ module Stripe sig { params(tax_id: T.nilable(String)).void } def initialize(tax_id: nil); end end - class Individual < Stripe::RequestParams - class CardIssuing < Stripe::RequestParams - class UserTermsAcceptance < Stripe::RequestParams + class Individual < ::Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams + class UserTermsAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the cardholder accepted the Authorized User Terms. Required for Celtic Spend Card users. sig { returns(T.nilable(Integer)) } def date; end @@ -73859,7 +78912,7 @@ module Stripe } def initialize(user_terms_acceptance: nil); end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -73878,8 +78931,8 @@ module Stripe sig { params(day: Integer, month: Integer, year: Integer).void } def initialize(day: nil, month: nil, year: nil); end end - class Verification < Stripe::RequestParams - class Document < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. sig { returns(T.nilable(String)) } def back; end @@ -73949,8 +79002,8 @@ module Stripe verification: nil ); end end - class SpendingControls < Stripe::RequestParams - class SpendingLimit < Stripe::RequestParams + class SpendingControls < ::Stripe::RequestParams + class SpendingLimit < ::Stripe::RequestParams # Maximum amount allowed to spend per interval. sig { returns(Integer) } def amount; end @@ -74123,9 +79176,9 @@ end # typed: true module Stripe module Issuing - class CardholderUpdateParams < Stripe::RequestParams - class Billing < Stripe::RequestParams - class Address < Stripe::RequestParams + class CardholderUpdateParams < ::Stripe::RequestParams + class Billing < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(String) } def city; end @@ -74178,7 +79231,7 @@ module Stripe sig { params(address: Issuing::CardholderUpdateParams::Billing::Address).void } def initialize(address: nil); end end - class Company < Stripe::RequestParams + class Company < ::Stripe::RequestParams # The entity's business ID number. sig { returns(T.nilable(String)) } def tax_id; end @@ -74187,9 +79240,9 @@ module Stripe sig { params(tax_id: T.nilable(String)).void } def initialize(tax_id: nil); end end - class Individual < Stripe::RequestParams - class CardIssuing < Stripe::RequestParams - class UserTermsAcceptance < Stripe::RequestParams + class Individual < ::Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams + class UserTermsAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the cardholder accepted the Authorized User Terms. Required for Celtic Spend Card users. sig { returns(T.nilable(Integer)) } def date; end @@ -74224,7 +79277,7 @@ module Stripe } def initialize(user_terms_acceptance: nil); end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -74243,8 +79296,8 @@ module Stripe sig { params(day: Integer, month: Integer, year: Integer).void } def initialize(day: nil, month: nil, year: nil); end end - class Verification < Stripe::RequestParams - class Document < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. sig { returns(T.nilable(String)) } def back; end @@ -74314,8 +79367,8 @@ module Stripe verification: nil ); end end - class SpendingControls < Stripe::RequestParams - class SpendingLimit < Stripe::RequestParams + class SpendingControls < ::Stripe::RequestParams + class SpendingLimit < ::Stripe::RequestParams # Maximum amount allowed to spend per interval. sig { returns(Integer) } def amount; end @@ -74476,8 +79529,8 @@ end # typed: true module Stripe module Issuing - class CardListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class CardListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -74588,8 +79641,8 @@ end # typed: true module Stripe module Issuing - class CardCreateParams < Stripe::RequestParams - class Pin < Stripe::RequestParams + class CardCreateParams < ::Stripe::RequestParams + class Pin < ::Stripe::RequestParams # The card's desired new PIN, encrypted under Stripe's public key. sig { returns(T.nilable(String)) } def encrypted_number; end @@ -74598,8 +79651,8 @@ module Stripe sig { params(encrypted_number: T.nilable(String)).void } def initialize(encrypted_number: nil); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(String) } def city; end @@ -74642,7 +79695,7 @@ module Stripe state: nil ); end end - class AddressValidation < Stripe::RequestParams + class AddressValidation < ::Stripe::RequestParams # The address validation capabilities to use. sig { returns(String) } def mode; end @@ -74651,7 +79704,7 @@ module Stripe sig { params(mode: String).void } def initialize(mode: nil); end end - class Customs < Stripe::RequestParams + class Customs < ::Stripe::RequestParams # The Economic Operators Registration and Identification (EORI) number to use for Customs. Required for bulk shipments to Europe. sig { returns(T.nilable(String)) } def eori_number; end @@ -74720,8 +79773,8 @@ module Stripe type: nil ); end end - class SpendingControls < Stripe::RequestParams - class SpendingLimit < Stripe::RequestParams + class SpendingControls < ::Stripe::RequestParams + class SpendingLimit < ::Stripe::RequestParams # Maximum amount allowed to spend per interval. sig { returns(Integer) } def amount; end @@ -74907,8 +79960,8 @@ end # typed: true module Stripe module Issuing - class CardUpdateParams < Stripe::RequestParams - class Pin < Stripe::RequestParams + class CardUpdateParams < ::Stripe::RequestParams + class Pin < ::Stripe::RequestParams # The card's desired new PIN, encrypted under Stripe's public key. sig { returns(T.nilable(String)) } def encrypted_number; end @@ -74917,8 +79970,8 @@ module Stripe sig { params(encrypted_number: T.nilable(String)).void } def initialize(encrypted_number: nil); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(String) } def city; end @@ -74961,7 +80014,7 @@ module Stripe state: nil ); end end - class AddressValidation < Stripe::RequestParams + class AddressValidation < ::Stripe::RequestParams # The address validation capabilities to use. sig { returns(String) } def mode; end @@ -74970,7 +80023,7 @@ module Stripe sig { params(mode: String).void } def initialize(mode: nil); end end - class Customs < Stripe::RequestParams + class Customs < ::Stripe::RequestParams # The Economic Operators Registration and Identification (EORI) number to use for Customs. Required for bulk shipments to Europe. sig { returns(T.nilable(String)) } def eori_number; end @@ -75039,8 +80092,8 @@ module Stripe type: nil ); end end - class SpendingControls < Stripe::RequestParams - class SpendingLimit < Stripe::RequestParams + class SpendingControls < ::Stripe::RequestParams + class SpendingLimit < ::Stripe::RequestParams # Maximum amount allowed to spend per interval. sig { returns(Integer) } def amount; end @@ -75178,7 +80231,7 @@ end # typed: true module Stripe module Issuing - class CardDeliverCardParams < Stripe::RequestParams + class CardDeliverCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -75192,7 +80245,7 @@ end # typed: true module Stripe module Issuing - class CardFailCardParams < Stripe::RequestParams + class CardFailCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -75206,7 +80259,7 @@ end # typed: true module Stripe module Issuing - class CardReturnCardParams < Stripe::RequestParams + class CardReturnCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -75220,7 +80273,7 @@ end # typed: true module Stripe module Issuing - class CardShipCardParams < Stripe::RequestParams + class CardShipCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -75234,7 +80287,7 @@ end # typed: true module Stripe module Issuing - class CardSubmitCardParams < Stripe::RequestParams + class CardSubmitCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -75248,8 +80301,8 @@ end # typed: true module Stripe module Issuing - class DisputeListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class DisputeListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -75330,9 +80383,9 @@ end # typed: true module Stripe module Issuing - class DisputeCreateParams < Stripe::RequestParams - class Evidence < Stripe::RequestParams - class Canceled < Stripe::RequestParams + class DisputeCreateParams < ::Stripe::RequestParams + class Evidence < ::Stripe::RequestParams + class Canceled < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -75411,7 +80464,7 @@ module Stripe returned_at: nil ); end end - class Duplicate < Stripe::RequestParams + class Duplicate < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -75454,7 +80507,7 @@ module Stripe original_transaction: nil ); end end - class Fraudulent < Stripe::RequestParams + class Fraudulent < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -75470,7 +80523,7 @@ module Stripe } def initialize(additional_documentation: nil, explanation: nil); end end - class MerchandiseNotAsDescribed < Stripe::RequestParams + class MerchandiseNotAsDescribed < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -75519,7 +80572,7 @@ module Stripe returned_at: nil ); end end - class NoValidAuthorization < Stripe::RequestParams + class NoValidAuthorization < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -75535,7 +80588,7 @@ module Stripe } def initialize(additional_documentation: nil, explanation: nil); end end - class NotReceived < Stripe::RequestParams + class NotReceived < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -75576,7 +80629,7 @@ module Stripe product_type: nil ); end end - class Other < Stripe::RequestParams + class Other < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -75609,7 +80662,7 @@ module Stripe product_type: nil ); end end - class ServiceNotAsDescribed < Stripe::RequestParams + class ServiceNotAsDescribed < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -75736,7 +80789,7 @@ module Stripe service_not_as_described: nil ); end end - class Treasury < Stripe::RequestParams + class Treasury < ::Stripe::RequestParams # The ID of the ReceivedDebit to initiate an Issuings dispute for. sig { returns(String) } def received_debit; end @@ -75798,9 +80851,9 @@ end # typed: true module Stripe module Issuing - class DisputeUpdateParams < Stripe::RequestParams - class Evidence < Stripe::RequestParams - class Canceled < Stripe::RequestParams + class DisputeUpdateParams < ::Stripe::RequestParams + class Evidence < ::Stripe::RequestParams + class Canceled < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -75879,7 +80932,7 @@ module Stripe returned_at: nil ); end end - class Duplicate < Stripe::RequestParams + class Duplicate < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -75922,7 +80975,7 @@ module Stripe original_transaction: nil ); end end - class Fraudulent < Stripe::RequestParams + class Fraudulent < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -75938,7 +80991,7 @@ module Stripe } def initialize(additional_documentation: nil, explanation: nil); end end - class MerchandiseNotAsDescribed < Stripe::RequestParams + class MerchandiseNotAsDescribed < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -75987,7 +81040,7 @@ module Stripe returned_at: nil ); end end - class NoValidAuthorization < Stripe::RequestParams + class NoValidAuthorization < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -76003,7 +81056,7 @@ module Stripe } def initialize(additional_documentation: nil, explanation: nil); end end - class NotReceived < Stripe::RequestParams + class NotReceived < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -76044,7 +81097,7 @@ module Stripe product_type: nil ); end end - class Other < Stripe::RequestParams + class Other < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -76077,7 +81130,7 @@ module Stripe product_type: nil ); end end - class ServiceNotAsDescribed < Stripe::RequestParams + class ServiceNotAsDescribed < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -76238,7 +81291,7 @@ end # typed: true module Stripe module Issuing - class DisputeSubmitParams < Stripe::RequestParams + class DisputeSubmitParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -76261,8 +81314,8 @@ end # typed: true module Stripe module Issuing - class PersonalizationDesignListParams < Stripe::RequestParams - class Preferences < Stripe::RequestParams + class PersonalizationDesignListParams < ::Stripe::RequestParams + class Preferences < ::Stripe::RequestParams # Only return the personalization design that's set as the default. A connected account uses the Connect platform's default design if no personalization design is set as the default. sig { returns(T.nilable(T::Boolean)) } def is_default; end @@ -76333,8 +81386,8 @@ end # typed: true module Stripe module Issuing - class PersonalizationDesignCreateParams < Stripe::RequestParams - class CarrierText < Stripe::RequestParams + class PersonalizationDesignCreateParams < ::Stripe::RequestParams + class CarrierText < ::Stripe::RequestParams # The footer body text of the carrier letter. sig { returns(T.nilable(String)) } def footer_body; end @@ -76365,7 +81418,7 @@ module Stripe header_title: nil ); end end - class Preferences < Stripe::RequestParams + class Preferences < ::Stripe::RequestParams # Whether we use this personalization design to create cards when one isn't specified. A connected account uses the Connect platform's default design if no personalization design is set as the default design. sig { returns(T::Boolean) } def is_default; end @@ -76445,8 +81498,8 @@ end # typed: true module Stripe module Issuing - class PersonalizationDesignUpdateParams < Stripe::RequestParams - class CarrierText < Stripe::RequestParams + class PersonalizationDesignUpdateParams < ::Stripe::RequestParams + class CarrierText < ::Stripe::RequestParams # The footer body text of the carrier letter. sig { returns(T.nilable(String)) } def footer_body; end @@ -76477,7 +81530,7 @@ module Stripe header_title: nil ); end end - class Preferences < Stripe::RequestParams + class Preferences < ::Stripe::RequestParams # Whether we use this personalization design to create cards when one isn't specified. A connected account uses the Connect platform's default design if no personalization design is set as the default design. sig { returns(T::Boolean) } def is_default; end @@ -76559,7 +81612,7 @@ end # typed: true module Stripe module Issuing - class PersonalizationDesignActivateParams < Stripe::RequestParams + class PersonalizationDesignActivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -76573,7 +81626,7 @@ end # typed: true module Stripe module Issuing - class PersonalizationDesignDeactivateParams < Stripe::RequestParams + class PersonalizationDesignDeactivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -76587,8 +81640,8 @@ end # typed: true module Stripe module Issuing - class PersonalizationDesignRejectParams < Stripe::RequestParams - class RejectionReasons < Stripe::RequestParams + class PersonalizationDesignRejectParams < ::Stripe::RequestParams + class RejectionReasons < ::Stripe::RequestParams # The reason(s) the card logo was rejected. sig { returns(T.nilable(T::Array[String])) } def card_logo; end @@ -76628,7 +81681,7 @@ end # typed: true module Stripe module Issuing - class PhysicalBundleListParams < Stripe::RequestParams + class PhysicalBundleListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -76676,8 +81729,8 @@ end # typed: true module Stripe module Issuing - class TokenListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class TokenListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -76758,7 +81811,7 @@ end # typed: true module Stripe module Issuing - class TokenUpdateParams < Stripe::RequestParams + class TokenUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -76777,8 +81830,8 @@ end # typed: true module Stripe module Issuing - class TransactionListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class TransactionListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -76865,7 +81918,7 @@ end # typed: true module Stripe module Issuing - class TransactionUpdateParams < Stripe::RequestParams + class TransactionUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -76888,7 +81941,7 @@ end # typed: true module Stripe module Issuing - class TransactionRefundParams < Stripe::RequestParams + class TransactionRefundParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -76907,8 +81960,8 @@ end # typed: true module Stripe module Issuing - class TransactionCreateForceCaptureParams < Stripe::RequestParams - class MerchantData < Stripe::RequestParams + class TransactionCreateForceCaptureParams < ::Stripe::RequestParams + class MerchantData < ::Stripe::RequestParams # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. sig { returns(T.nilable(String)) } def category; end @@ -76969,9 +82022,9 @@ module Stripe url: nil ); end end - class PurchaseDetails < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class PurchaseDetails < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. sig { returns(T.nilable(String)) } def driver_id; end @@ -77008,8 +82061,8 @@ module Stripe vehicle_number: nil ); end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -77018,7 +82071,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -77027,7 +82080,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -77113,8 +82166,8 @@ module Stripe service_type: nil ); end end - class Flight < Stripe::RequestParams - class Segment < Stripe::RequestParams + class Flight < ::Stripe::RequestParams + class Segment < ::Stripe::RequestParams # The three-letter IATA airport code of the flight's destination. sig { returns(T.nilable(String)) } def arrival_airport_code; end @@ -77197,7 +82250,7 @@ module Stripe travel_agency: nil ); end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end @@ -77234,7 +82287,7 @@ module Stripe unit_cost_decimal: nil ); end end - class Lodging < Stripe::RequestParams + class Lodging < ::Stripe::RequestParams # The time of checking into the lodging. sig { returns(T.nilable(Integer)) } def check_in_at; end @@ -77248,7 +82301,7 @@ module Stripe sig { params(check_in_at: T.nilable(Integer), nights: T.nilable(Integer)).void } def initialize(check_in_at: nil, nights: nil); end end - class Receipt < Stripe::RequestParams + class Receipt < ::Stripe::RequestParams # Attribute for param field description sig { returns(T.nilable(String)) } def description; end @@ -77387,8 +82440,8 @@ end # typed: true module Stripe module Issuing - class TransactionCreateUnlinkedRefundParams < Stripe::RequestParams - class MerchantData < Stripe::RequestParams + class TransactionCreateUnlinkedRefundParams < ::Stripe::RequestParams + class MerchantData < ::Stripe::RequestParams # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. sig { returns(T.nilable(String)) } def category; end @@ -77449,9 +82502,9 @@ module Stripe url: nil ); end end - class PurchaseDetails < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class PurchaseDetails < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. sig { returns(T.nilable(String)) } def driver_id; end @@ -77488,8 +82541,8 @@ module Stripe vehicle_number: nil ); end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -77498,7 +82551,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -77507,7 +82560,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -77593,8 +82646,8 @@ module Stripe service_type: nil ); end end - class Flight < Stripe::RequestParams - class Segment < Stripe::RequestParams + class Flight < ::Stripe::RequestParams + class Segment < ::Stripe::RequestParams # The three-letter IATA airport code of the flight's destination. sig { returns(T.nilable(String)) } def arrival_airport_code; end @@ -77677,7 +82730,7 @@ module Stripe travel_agency: nil ); end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end @@ -77714,7 +82767,7 @@ module Stripe unit_cost_decimal: nil ); end end - class Lodging < Stripe::RequestParams + class Lodging < ::Stripe::RequestParams # The time of checking into the lodging. sig { returns(T.nilable(Integer)) } def check_in_at; end @@ -77728,7 +82781,7 @@ module Stripe sig { params(check_in_at: T.nilable(Integer), nights: T.nilable(Integer)).void } def initialize(check_in_at: nil, nights: nil); end end - class Receipt < Stripe::RequestParams + class Receipt < ::Stripe::RequestParams # Attribute for param field description sig { returns(T.nilable(String)) } def description; end @@ -77866,8 +82919,37 @@ module Stripe end # typed: true module Stripe - class PaymentIntentListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class PaymentAttemptRecordListParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. + sig { returns(T.nilable(Integer)) } + def limit; end + sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) } + def limit=(_limit); end + # The ID of the Payment Record. + sig { returns(String) } + def payment_record; end + sig { params(_payment_record: String).returns(String) } + def payment_record=(_payment_record); end + # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. + sig { returns(T.nilable(String)) } + def starting_after; end + sig { params(_starting_after: T.nilable(String)).returns(T.nilable(String)) } + def starting_after=(_starting_after); end + sig { + params(expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), payment_record: String, starting_after: T.nilable(String)).void + } + def initialize(expand: nil, limit: nil, payment_record: nil, starting_after: nil); end + end +end +# typed: true +module Stripe + class PaymentIntentListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -77940,8 +83022,258 @@ module Stripe end # typed: true module Stripe - class PaymentIntentCreateParams < Stripe::RequestParams - class AutomaticPaymentMethods < Stripe::RequestParams + class PaymentIntentCreateParams < ::Stripe::RequestParams + class AmountDetails < ::Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + sig { returns(T.nilable(String)) } + def commodity_code; end + sig { params(_commodity_code: T.nilable(String)).returns(T.nilable(String)) } + def commodity_code=(_commodity_code); end + sig { params(commodity_code: T.nilable(String)).void } + def initialize(commodity_code: nil); end + end + class CardPresent < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + sig { returns(T.nilable(String)) } + def commodity_code; end + sig { params(_commodity_code: T.nilable(String)).returns(T.nilable(String)) } + def commodity_code=(_commodity_code); end + sig { params(commodity_code: T.nilable(String)).void } + def initialize(commodity_code: nil); end + end + class Klarna < ::Stripe::RequestParams + # URL to an image for the product. Max length, 4096 characters. + sig { returns(T.nilable(String)) } + def image_url; end + sig { params(_image_url: T.nilable(String)).returns(T.nilable(String)) } + def image_url=(_image_url); end + # URL to the product page. Max length, 4096 characters. + sig { returns(T.nilable(String)) } + def product_url; end + sig { params(_product_url: T.nilable(String)).returns(T.nilable(String)) } + def product_url=(_product_url); end + # Unique reference for this line item to correlate it with your system’s internal records. The field is displayed in the Klarna Consumer App if passed. + sig { returns(T.nilable(String)) } + def reference; end + sig { params(_reference: T.nilable(String)).returns(T.nilable(String)) } + def reference=(_reference); end + # Reference for the subscription this line item is for. + sig { returns(T.nilable(String)) } + def subscription_reference; end + sig { params(_subscription_reference: T.nilable(String)).returns(T.nilable(String)) } + def subscription_reference=(_subscription_reference); end + sig { + params(image_url: T.nilable(String), product_url: T.nilable(String), reference: T.nilable(String), subscription_reference: T.nilable(String)).void + } + def initialize( + image_url: nil, + product_url: nil, + reference: nil, + subscription_reference: nil + ); end + end + class Paypal < ::Stripe::RequestParams + # Type of the line item. + sig { returns(T.nilable(String)) } + def category; end + sig { params(_category: T.nilable(String)).returns(T.nilable(String)) } + def category=(_category); end + # Description of the line item. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # The Stripe account ID of the connected account that sells the item. + sig { returns(T.nilable(String)) } + def sold_by; end + sig { params(_sold_by: T.nilable(String)).returns(T.nilable(String)) } + def sold_by=(_sold_by); end + sig { + params(category: T.nilable(String), description: T.nilable(String), sold_by: T.nilable(String)).void + } + def initialize(category: nil, description: nil, sold_by: nil); end + end + # This sub-hash contains line item details that are specific to `card` payment method." + sig { + returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Card)) + } + def card; end + sig { + params(_card: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Card)).returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Card)) + } + def card=(_card); end + # This sub-hash contains line item details that are specific to `card_present` payment method." + sig { + returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)) + } + def card_present; end + sig { + params(_card_present: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)).returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)) + } + def card_present=(_card_present); end + # This sub-hash contains line item details that are specific to `klarna` payment method." + sig { + returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)) + } + def klarna; end + sig { + params(_klarna: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)).returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)) + } + def klarna=(_klarna); end + # This sub-hash contains line item details that are specific to `paypal` payment method." + sig { + returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)) + } + def paypal; end + sig { + params(_paypal: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)) + } + def paypal=(_paypal); end + sig { + params(card: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Card), card_present: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent), klarna: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna), paypal: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).void + } + def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end + end + class Tax < ::Stripe::RequestParams + # The total tax on an item. Non-negative integer. + sig { returns(Integer) } + def total_tax_amount; end + sig { params(_total_tax_amount: Integer).returns(Integer) } + def total_tax_amount=(_total_tax_amount); end + sig { params(total_tax_amount: Integer).void } + def initialize(total_tax_amount: nil); end + end + # The amount an item was discounted for. Positive integer. + sig { returns(T.nilable(Integer)) } + def discount_amount; end + sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } + def discount_amount=(_discount_amount); end + # Payment method-specific information for line items. + sig { + returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions)) + } + def payment_method_options; end + sig { + params(_payment_method_options: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions)).returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions)) + } + def payment_method_options=(_payment_method_options); end + # Unique identifier of the product. At most 12 characters long. + sig { returns(T.nilable(String)) } + def product_code; end + sig { params(_product_code: T.nilable(String)).returns(T.nilable(String)) } + def product_code=(_product_code); end + # Name of the product. At most 100 characters long. + sig { returns(String) } + def product_name; end + sig { params(_product_name: String).returns(String) } + def product_name=(_product_name); end + # Number of items of the product. Positive integer. + sig { returns(Integer) } + def quantity; end + sig { params(_quantity: Integer).returns(Integer) } + def quantity=(_quantity); end + # Contains information about the tax on the item. + sig { returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::Tax)) } + def tax; end + sig { + params(_tax: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::Tax)).returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::Tax)) + } + def tax=(_tax); end + # Cost of the product. Non-negative integer. + sig { returns(Integer) } + def unit_cost; end + sig { params(_unit_cost: Integer).returns(Integer) } + def unit_cost=(_unit_cost); end + # A unit of measure for the line item, such as gallons, feet, meters, etc. + sig { returns(T.nilable(String)) } + def unit_of_measure; end + sig { params(_unit_of_measure: T.nilable(String)).returns(T.nilable(String)) } + def unit_of_measure=(_unit_of_measure); end + sig { + params(discount_amount: T.nilable(Integer), payment_method_options: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions), product_code: T.nilable(String), product_name: String, quantity: Integer, tax: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::Tax), unit_cost: Integer, unit_of_measure: T.nilable(String)).void + } + def initialize( + discount_amount: nil, + payment_method_options: nil, + product_code: nil, + product_name: nil, + quantity: nil, + tax: nil, + unit_cost: nil, + unit_of_measure: nil + ); end + end + class Shipping < ::Stripe::RequestParams + # Portion of the amount that is for shipping. + sig { returns(T.nilable(T.any(String, Integer))) } + def amount; end + sig { + params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) + } + def amount=(_amount); end + # The postal code that represents the shipping source. + sig { returns(T.nilable(String)) } + def from_postal_code; end + sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def from_postal_code=(_from_postal_code); end + # The postal code that represents the shipping destination. + sig { returns(T.nilable(String)) } + def to_postal_code; end + sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def to_postal_code=(_to_postal_code); end + sig { + params(amount: T.nilable(T.any(String, Integer)), from_postal_code: T.nilable(String), to_postal_code: T.nilable(String)).void + } + def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end + end + class Tax < ::Stripe::RequestParams + # Total portion of the amount that is for tax. + sig { returns(Integer) } + def total_tax_amount; end + sig { params(_total_tax_amount: Integer).returns(Integer) } + def total_tax_amount=(_total_tax_amount); end + sig { params(total_tax_amount: Integer).void } + def initialize(total_tax_amount: nil); end + end + # The total discount applied on the transaction. + sig { returns(T.nilable(T.any(String, Integer))) } + def discount_amount; end + sig { + params(_discount_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) + } + def discount_amount=(_discount_amount); end + # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. + sig { + returns(T.nilable(T.any(String, T::Array[PaymentIntentCreateParams::AmountDetails::LineItem]))) + } + def line_items; end + sig { + params(_line_items: T.nilable(T.any(String, T::Array[PaymentIntentCreateParams::AmountDetails::LineItem]))).returns(T.nilable(T.any(String, T::Array[PaymentIntentCreateParams::AmountDetails::LineItem]))) + } + def line_items=(_line_items); end + # Contains information about the shipping portion of the amount. + sig { returns(T.nilable(T.any(String, PaymentIntentCreateParams::AmountDetails::Shipping))) } + def shipping; end + sig { + params(_shipping: T.nilable(T.any(String, PaymentIntentCreateParams::AmountDetails::Shipping))).returns(T.nilable(T.any(String, PaymentIntentCreateParams::AmountDetails::Shipping))) + } + def shipping=(_shipping); end + # Contains information about the tax portion of the amount. + sig { returns(T.nilable(T.any(String, PaymentIntentCreateParams::AmountDetails::Tax))) } + def tax; end + sig { + params(_tax: T.nilable(T.any(String, PaymentIntentCreateParams::AmountDetails::Tax))).returns(T.nilable(T.any(String, PaymentIntentCreateParams::AmountDetails::Tax))) + } + def tax=(_tax); end + sig { + params(discount_amount: T.nilable(T.any(String, Integer)), line_items: T.nilable(T.any(String, T::Array[PaymentIntentCreateParams::AmountDetails::LineItem])), shipping: T.nilable(T.any(String, PaymentIntentCreateParams::AmountDetails::Shipping)), tax: T.nilable(T.any(String, PaymentIntentCreateParams::AmountDetails::Tax))).void + } + def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil); end + end + class AutomaticPaymentMethods < ::Stripe::RequestParams # Controls whether this PaymentIntent will accept redirect-based payment methods. # # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment. @@ -77957,10 +83289,10 @@ module Stripe sig { params(allow_redirects: T.nilable(String), enabled: T::Boolean).void } def initialize(allow_redirects: nil, enabled: nil); end end - class MandateData < Stripe::RequestParams - class CustomerAcceptance < Stripe::RequestParams - class Offline < Stripe::RequestParams; end - class Online < Stripe::RequestParams + class MandateData < ::Stripe::RequestParams + class CustomerAcceptance < ::Stripe::RequestParams + class Offline < ::Stripe::RequestParams; end + class Online < ::Stripe::RequestParams # The IP address from which the Mandate was accepted by the customer. sig { returns(String) } def ip_address; end @@ -78019,8 +83351,22 @@ module Stripe } def initialize(customer_acceptance: nil); end end - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class PaymentDetails < ::Stripe::RequestParams + # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + sig { returns(T.nilable(String)) } + def customer_reference; end + sig { params(_customer_reference: T.nilable(String)).returns(T.nilable(String)) } + def customer_reference=(_customer_reference); end + # A unique value assigned by the business to identify the transaction. + sig { returns(T.nilable(String)) } + def order_reference; end + sig { params(_order_reference: T.nilable(String)).returns(T.nilable(String)) } + def order_reference=(_order_reference); end + sig { params(customer_reference: T.nilable(String), order_reference: T.nilable(String)).void } + def initialize(customer_reference: nil, order_reference: nil); end + end + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. sig { returns(String) } def account_number; end @@ -78041,12 +83387,12 @@ module Stripe } def initialize(account_number: nil, institution_number: nil, transit_number: nil); end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. sig { returns(String) } def account_number; end @@ -78060,7 +83406,7 @@ module Stripe sig { params(account_number: String, bsb_number: String).void } def initialize(account_number: nil, bsb_number: nil); end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. sig { returns(T.nilable(String)) } def account_number; end @@ -78074,10 +83420,10 @@ module Stripe sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void } def initialize(account_number: nil, sort_code: nil); end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -78154,8 +83500,8 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end - class Blik < Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Blik < ::Stripe::RequestParams; end + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) sig { returns(String) } def tax_id; end @@ -78164,10 +83510,10 @@ module Stripe sig { params(tax_id: String).void } def initialize(tax_id: nil); end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end + class Eps < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -78176,7 +83522,7 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction sig { returns(T.nilable(String)) } def account_holder_type; end @@ -78190,9 +83536,9 @@ module Stripe sig { params(account_holder_type: T.nilable(String), bank: String).void } def initialize(account_holder_type: nil, bank: nil); end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. sig { returns(T.nilable(String)) } def bank; end @@ -78201,10 +83547,10 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -78235,13 +83581,13 @@ module Stripe } def initialize(dob: nil); end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. sig { returns(T.nilable(String)) } def funding; end @@ -78250,7 +83596,7 @@ module Stripe sig { params(funding: T.nilable(String)).void } def initialize(funding: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -78293,8 +83639,8 @@ module Stripe suffix: nil ); end end - class Oxxo < Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams; end + class P24 < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -78303,13 +83649,13 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -78318,10 +83664,10 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } def iban; end @@ -78330,7 +83676,7 @@ module Stripe sig { params(iban: String).void } def initialize(iban: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. sig { returns(String) } def country; end @@ -78339,9 +83685,9 @@ module Stripe sig { params(country: String).void } def initialize(country: nil); end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -78378,8 +83724,8 @@ module Stripe routing_number: nil ); end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. sig { returns(T.nilable(PaymentIntentCreateParams::PaymentMethodData::AcssDebit)) } def acss_debit; end @@ -78814,9 +84160,9 @@ module Stripe zip: nil ); end end - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # A URL for custom mandate text to render during confirmation step. # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. @@ -78893,7 +84239,7 @@ module Stripe verification_method: nil ); end end - class Affirm < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -78926,7 +84272,7 @@ module Stripe } def initialize(capture_method: nil, preferred_locale: nil, setup_future_usage: nil); end end - class AfterpayClearpay < Stripe::RequestParams + class AfterpayClearpay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -78960,7 +84306,7 @@ module Stripe } def initialize(capture_method: nil, reference: nil, setup_future_usage: nil); end end - class Alipay < Stripe::RequestParams + class Alipay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -78979,7 +84325,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(T.any(String, String))).void } def initialize(setup_future_usage: nil); end end - class Alma < Stripe::RequestParams + class Alma < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -78992,7 +84338,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class AmazonPay < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -79020,7 +84366,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class AuBecsDebit < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -79046,8 +84392,8 @@ module Stripe } def initialize(setup_future_usage: nil, target_date: nil); end end - class BacsDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -79090,7 +84436,7 @@ module Stripe } def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Preferred language of the Bancontact authorization page that the customer is redirected to. sig { returns(T.nilable(String)) } def preferred_language; end @@ -79116,7 +84462,7 @@ module Stripe } def initialize(preferred_language: nil, setup_future_usage: nil); end end - class Billie < Stripe::RequestParams + class Billie < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -79129,7 +84475,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Blik < Stripe::RequestParams + class Blik < ::Stripe::RequestParams # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. sig { returns(T.nilable(String)) } def code; end @@ -79151,7 +84497,7 @@ module Stripe sig { params(code: T.nilable(String), setup_future_usage: T.nilable(String)).void } def initialize(code: nil, setup_future_usage: nil); end end - class Boleto < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. sig { returns(T.nilable(Integer)) } def expires_after_days; end @@ -79177,9 +84523,9 @@ module Stripe } def initialize(expires_after_days: nil, setup_future_usage: nil); end end - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams - class Plan < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams + class Plan < ::Stripe::RequestParams # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. sig { returns(T.nilable(Integer)) } def count; end @@ -79223,7 +84569,7 @@ module Stripe } def initialize(enabled: nil, plan: nil); end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. sig { returns(Integer) } def amount; end @@ -79286,9 +84632,9 @@ module Stripe supported_types: nil ); end end - class ThreeDSecure < Stripe::RequestParams - class NetworkOptions < Stripe::RequestParams - class CartesBancaires < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams + class NetworkOptions < ::Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams # The cryptogram calculation algorithm used by the card Issuer's ACS # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. # messageExtension: CB-AVALGO @@ -79542,8 +84888,8 @@ module Stripe three_d_secure: nil ); end end - class CardPresent < Stripe::RequestParams - class Routing < Stripe::RequestParams + class CardPresent < ::Stripe::RequestParams + class Routing < ::Stripe::RequestParams # Routing requested priority sig { returns(T.nilable(String)) } def requested_priority; end @@ -79586,7 +84932,7 @@ module Stripe routing: nil ); end end - class Cashapp < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -79616,7 +84962,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Crypto < Stripe::RequestParams + class Crypto < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -79633,9 +84979,9 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -79704,7 +85050,7 @@ module Stripe } def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil); end end - class Eps < Stripe::RequestParams + class Eps < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -79721,7 +85067,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -79738,7 +85084,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Giropay < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -79755,7 +85101,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Grabpay < Stripe::RequestParams + class Grabpay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -79772,7 +85118,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Ideal < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -79791,8 +85137,8 @@ module Stripe sig { params(setup_future_usage: T.nilable(T.any(String, String))).void } def initialize(setup_future_usage: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -79820,8 +85166,8 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Klarna < Stripe::RequestParams - class OnDemand < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class OnDemand < ::Stripe::RequestParams # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. sig { returns(T.nilable(Integer)) } def average_amount; end @@ -79858,8 +85204,8 @@ module Stripe purchase_interval_count: nil ); end end - class Subscription < Stripe::RequestParams - class NextBilling < Stripe::RequestParams + class Subscription < ::Stripe::RequestParams + class NextBilling < ::Stripe::RequestParams # The amount of the next charge for the subscription. sig { returns(Integer) } def amount; end @@ -79969,7 +85315,7 @@ module Stripe subscriptions: nil ); end end - class Konbini < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams # An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number. sig { returns(T.nilable(String)) } def confirmation_number; end @@ -80018,7 +85364,7 @@ module Stripe setup_future_usage: nil ); end end - class KrCard < Stripe::RequestParams + class KrCard < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -80046,7 +85392,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Link < Stripe::RequestParams + class Link < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -80081,7 +85427,7 @@ module Stripe } def initialize(capture_method: nil, persistent_token: nil, setup_future_usage: nil); end end - class MbWay < Stripe::RequestParams + class MbWay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -80098,7 +85444,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Mobilepay < Stripe::RequestParams + class Mobilepay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -80126,7 +85472,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Multibanco < Stripe::RequestParams + class Multibanco < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -80143,7 +85489,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class NaverPay < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -80171,7 +85517,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -80197,7 +85543,7 @@ module Stripe } def initialize(setup_future_usage: nil, target_date: nil); end end - class Oxxo < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams # The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. sig { returns(T.nilable(Integer)) } def expires_after_days; end @@ -80221,7 +85567,7 @@ module Stripe } def initialize(expires_after_days: nil, setup_future_usage: nil); end end - class P24 < Stripe::RequestParams + class P24 < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -80247,8 +85593,8 @@ module Stripe } def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -80261,7 +85607,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Paynow < Stripe::RequestParams + class Paynow < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -80278,7 +85624,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Paypal < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -80325,7 +85671,7 @@ module Stripe setup_future_usage: nil ); end end - class Pix < Stripe::RequestParams + class Pix < ::Stripe::RequestParams # Determines if the amount includes the IOF tax. Defaults to `never`. sig { returns(T.nilable(String)) } def amount_includes_iof; end @@ -80364,7 +85710,7 @@ module Stripe setup_future_usage: nil ); end end - class Promptpay < Stripe::RequestParams + class Promptpay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -80381,7 +85727,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class RevolutPay < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -80409,7 +85755,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class SamsungPay < Stripe::RequestParams + class SamsungPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -80422,7 +85768,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Satispay < Stripe::RequestParams + class Satispay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -80435,8 +85781,8 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class SepaDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -80479,7 +85825,7 @@ module Stripe } def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Language shown to the payer on redirect. sig { returns(T.nilable(T.any(String, String))) } def preferred_language; end @@ -80507,7 +85853,7 @@ module Stripe } def initialize(preferred_language: nil, setup_future_usage: nil); end end - class Swish < Stripe::RequestParams + class Swish < ::Stripe::RequestParams # A reference for this payment to be displayed in the Swish app. sig { returns(T.nilable(String)) } def reference; end @@ -80529,7 +85875,7 @@ module Stripe sig { params(reference: T.nilable(String), setup_future_usage: T.nilable(String)).void } def initialize(reference: nil, setup_future_usage: nil); end end - class Twint < Stripe::RequestParams + class Twint < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -80546,9 +85892,9 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -80592,7 +85938,7 @@ module Stripe } def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil); end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # The method used to collect offline mandate customer acceptance. sig { returns(T.nilable(String)) } def collection_method; end @@ -80601,7 +85947,7 @@ module Stripe sig { params(collection_method: T.nilable(String)).void } def initialize(collection_method: nil); end end - class Networks < Stripe::RequestParams + class Networks < ::Stripe::RequestParams # Triggers validations to run across the selected networks sig { returns(T.nilable(T::Array[String])) } def requested; end @@ -80684,7 +86030,7 @@ module Stripe verification_method: nil ); end end - class WechatPay < Stripe::RequestParams + class WechatPay < ::Stripe::RequestParams # The app ID registered with WeChat Pay. Only required when client is ios or android. sig { returns(T.nilable(String)) } def app_id; end @@ -80713,7 +86059,7 @@ module Stripe } def initialize(app_id: nil, client: nil, setup_future_usage: nil); end end - class Zip < Stripe::RequestParams + class Zip < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -81246,7 +86592,7 @@ module Stripe zip: nil ); end end - class RadarOptions < Stripe::RequestParams + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -81255,8 +86601,8 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -81331,7 +86677,7 @@ module Stripe } def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when a charge succeeds. # The amount is capped at the total transaction amount and if no amount is set, # the full amount is transferred. @@ -81359,6 +86705,13 @@ module Stripe def amount; end sig { params(_amount: Integer).returns(Integer) } def amount=(_amount); end + # Provides industry-specific information about the amount. + sig { returns(T.nilable(PaymentIntentCreateParams::AmountDetails)) } + def amount_details; end + sig { + params(_amount_details: T.nilable(PaymentIntentCreateParams::AmountDetails)).returns(T.nilable(PaymentIntentCreateParams::AmountDetails)) + } + def amount_details=(_amount_details); end # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } def application_fee_amount; end @@ -81460,6 +86813,13 @@ module Stripe def on_behalf_of; end sig { params(_on_behalf_of: T.nilable(String)).returns(T.nilable(String)) } def on_behalf_of=(_on_behalf_of); end + # Provides industry-specific information about the charge. + sig { returns(T.nilable(PaymentIntentCreateParams::PaymentDetails)) } + def payment_details; end + sig { + params(_payment_details: T.nilable(PaymentIntentCreateParams::PaymentDetails)).returns(T.nilable(PaymentIntentCreateParams::PaymentDetails)) + } + def payment_details=(_payment_details); end # ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods#compatibility) object) to attach to this PaymentIntent. # # If you don't provide the `payment_method` parameter or the `source` parameter with `confirm=true`, `source` automatically populates with `customer.default_source` to improve migration for users of the Charges API. We recommend that you explicitly provide the `payment_method` moving forward. @@ -81563,10 +86923,11 @@ module Stripe sig { params(_use_stripe_sdk: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } def use_stripe_sdk=(_use_stripe_sdk); end sig { - params(amount: Integer, application_fee_amount: T.nilable(Integer), automatic_payment_methods: T.nilable(PaymentIntentCreateParams::AutomaticPaymentMethods), capture_method: T.nilable(String), confirm: T.nilable(T::Boolean), confirmation_method: T.nilable(String), confirmation_token: T.nilable(String), currency: String, customer: T.nilable(String), description: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), excluded_payment_method_types: T.nilable(T::Array[String]), expand: T.nilable(T::Array[String]), mandate: T.nilable(String), mandate_data: T.nilable(T.any(String, PaymentIntentCreateParams::MandateData)), metadata: T.nilable(T::Hash[String, String]), off_session: T.nilable(T.any(T::Boolean, String)), on_behalf_of: T.nilable(String), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(PaymentIntentCreateParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentCreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(PaymentIntentCreateParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), setup_future_usage: T.nilable(String), shipping: T.nilable(PaymentIntentCreateParams::Shipping), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(PaymentIntentCreateParams::TransferData), transfer_group: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void + params(amount: Integer, amount_details: T.nilable(PaymentIntentCreateParams::AmountDetails), application_fee_amount: T.nilable(Integer), automatic_payment_methods: T.nilable(PaymentIntentCreateParams::AutomaticPaymentMethods), capture_method: T.nilable(String), confirm: T.nilable(T::Boolean), confirmation_method: T.nilable(String), confirmation_token: T.nilable(String), currency: String, customer: T.nilable(String), description: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), excluded_payment_method_types: T.nilable(T::Array[String]), expand: T.nilable(T::Array[String]), mandate: T.nilable(String), mandate_data: T.nilable(T.any(String, PaymentIntentCreateParams::MandateData)), metadata: T.nilable(T::Hash[String, String]), off_session: T.nilable(T.any(T::Boolean, String)), on_behalf_of: T.nilable(String), payment_details: T.nilable(PaymentIntentCreateParams::PaymentDetails), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(PaymentIntentCreateParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentCreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(PaymentIntentCreateParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), setup_future_usage: T.nilable(String), shipping: T.nilable(PaymentIntentCreateParams::Shipping), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(PaymentIntentCreateParams::TransferData), transfer_group: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void } def initialize( amount: nil, + amount_details: nil, application_fee_amount: nil, automatic_payment_methods: nil, capture_method: nil, @@ -81584,6 +86945,7 @@ module Stripe metadata: nil, off_session: nil, on_behalf_of: nil, + payment_details: nil, payment_method: nil, payment_method_configuration: nil, payment_method_data: nil, @@ -81604,9 +86966,273 @@ module Stripe end # typed: true module Stripe - class PaymentIntentUpdateParams < Stripe::RequestParams - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class PaymentIntentUpdateParams < ::Stripe::RequestParams + class AmountDetails < ::Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + sig { returns(T.nilable(String)) } + def commodity_code; end + sig { params(_commodity_code: T.nilable(String)).returns(T.nilable(String)) } + def commodity_code=(_commodity_code); end + sig { params(commodity_code: T.nilable(String)).void } + def initialize(commodity_code: nil); end + end + class CardPresent < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + sig { returns(T.nilable(String)) } + def commodity_code; end + sig { params(_commodity_code: T.nilable(String)).returns(T.nilable(String)) } + def commodity_code=(_commodity_code); end + sig { params(commodity_code: T.nilable(String)).void } + def initialize(commodity_code: nil); end + end + class Klarna < ::Stripe::RequestParams + # URL to an image for the product. Max length, 4096 characters. + sig { returns(T.nilable(String)) } + def image_url; end + sig { params(_image_url: T.nilable(String)).returns(T.nilable(String)) } + def image_url=(_image_url); end + # URL to the product page. Max length, 4096 characters. + sig { returns(T.nilable(String)) } + def product_url; end + sig { params(_product_url: T.nilable(String)).returns(T.nilable(String)) } + def product_url=(_product_url); end + # Unique reference for this line item to correlate it with your system’s internal records. The field is displayed in the Klarna Consumer App if passed. + sig { returns(T.nilable(String)) } + def reference; end + sig { params(_reference: T.nilable(String)).returns(T.nilable(String)) } + def reference=(_reference); end + # Reference for the subscription this line item is for. + sig { returns(T.nilable(String)) } + def subscription_reference; end + sig { params(_subscription_reference: T.nilable(String)).returns(T.nilable(String)) } + def subscription_reference=(_subscription_reference); end + sig { + params(image_url: T.nilable(String), product_url: T.nilable(String), reference: T.nilable(String), subscription_reference: T.nilable(String)).void + } + def initialize( + image_url: nil, + product_url: nil, + reference: nil, + subscription_reference: nil + ); end + end + class Paypal < ::Stripe::RequestParams + # Type of the line item. + sig { returns(T.nilable(String)) } + def category; end + sig { params(_category: T.nilable(String)).returns(T.nilable(String)) } + def category=(_category); end + # Description of the line item. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # The Stripe account ID of the connected account that sells the item. + sig { returns(T.nilable(String)) } + def sold_by; end + sig { params(_sold_by: T.nilable(String)).returns(T.nilable(String)) } + def sold_by=(_sold_by); end + sig { + params(category: T.nilable(String), description: T.nilable(String), sold_by: T.nilable(String)).void + } + def initialize(category: nil, description: nil, sold_by: nil); end + end + # This sub-hash contains line item details that are specific to `card` payment method." + sig { + returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Card)) + } + def card; end + sig { + params(_card: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Card)).returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Card)) + } + def card=(_card); end + # This sub-hash contains line item details that are specific to `card_present` payment method." + sig { + returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)) + } + def card_present; end + sig { + params(_card_present: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)).returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)) + } + def card_present=(_card_present); end + # This sub-hash contains line item details that are specific to `klarna` payment method." + sig { + returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)) + } + def klarna; end + sig { + params(_klarna: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)).returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)) + } + def klarna=(_klarna); end + # This sub-hash contains line item details that are specific to `paypal` payment method." + sig { + returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)) + } + def paypal; end + sig { + params(_paypal: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)) + } + def paypal=(_paypal); end + sig { + params(card: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Card), card_present: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent), klarna: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna), paypal: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).void + } + def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end + end + class Tax < ::Stripe::RequestParams + # The total tax on an item. Non-negative integer. + sig { returns(Integer) } + def total_tax_amount; end + sig { params(_total_tax_amount: Integer).returns(Integer) } + def total_tax_amount=(_total_tax_amount); end + sig { params(total_tax_amount: Integer).void } + def initialize(total_tax_amount: nil); end + end + # The amount an item was discounted for. Positive integer. + sig { returns(T.nilable(Integer)) } + def discount_amount; end + sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } + def discount_amount=(_discount_amount); end + # Payment method-specific information for line items. + sig { + returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions)) + } + def payment_method_options; end + sig { + params(_payment_method_options: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions)).returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions)) + } + def payment_method_options=(_payment_method_options); end + # Unique identifier of the product. At most 12 characters long. + sig { returns(T.nilable(String)) } + def product_code; end + sig { params(_product_code: T.nilable(String)).returns(T.nilable(String)) } + def product_code=(_product_code); end + # Name of the product. At most 100 characters long. + sig { returns(String) } + def product_name; end + sig { params(_product_name: String).returns(String) } + def product_name=(_product_name); end + # Number of items of the product. Positive integer. + sig { returns(Integer) } + def quantity; end + sig { params(_quantity: Integer).returns(Integer) } + def quantity=(_quantity); end + # Contains information about the tax on the item. + sig { returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::Tax)) } + def tax; end + sig { + params(_tax: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::Tax)).returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::Tax)) + } + def tax=(_tax); end + # Cost of the product. Non-negative integer. + sig { returns(Integer) } + def unit_cost; end + sig { params(_unit_cost: Integer).returns(Integer) } + def unit_cost=(_unit_cost); end + # A unit of measure for the line item, such as gallons, feet, meters, etc. + sig { returns(T.nilable(String)) } + def unit_of_measure; end + sig { params(_unit_of_measure: T.nilable(String)).returns(T.nilable(String)) } + def unit_of_measure=(_unit_of_measure); end + sig { + params(discount_amount: T.nilable(Integer), payment_method_options: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions), product_code: T.nilable(String), product_name: String, quantity: Integer, tax: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::Tax), unit_cost: Integer, unit_of_measure: T.nilable(String)).void + } + def initialize( + discount_amount: nil, + payment_method_options: nil, + product_code: nil, + product_name: nil, + quantity: nil, + tax: nil, + unit_cost: nil, + unit_of_measure: nil + ); end + end + class Shipping < ::Stripe::RequestParams + # Portion of the amount that is for shipping. + sig { returns(T.nilable(T.any(String, Integer))) } + def amount; end + sig { + params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) + } + def amount=(_amount); end + # The postal code that represents the shipping source. + sig { returns(T.nilable(String)) } + def from_postal_code; end + sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def from_postal_code=(_from_postal_code); end + # The postal code that represents the shipping destination. + sig { returns(T.nilable(String)) } + def to_postal_code; end + sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def to_postal_code=(_to_postal_code); end + sig { + params(amount: T.nilable(T.any(String, Integer)), from_postal_code: T.nilable(String), to_postal_code: T.nilable(String)).void + } + def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end + end + class Tax < ::Stripe::RequestParams + # Total portion of the amount that is for tax. + sig { returns(Integer) } + def total_tax_amount; end + sig { params(_total_tax_amount: Integer).returns(Integer) } + def total_tax_amount=(_total_tax_amount); end + sig { params(total_tax_amount: Integer).void } + def initialize(total_tax_amount: nil); end + end + # The total discount applied on the transaction. + sig { returns(T.nilable(T.any(String, Integer))) } + def discount_amount; end + sig { + params(_discount_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) + } + def discount_amount=(_discount_amount); end + # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. + sig { + returns(T.nilable(T.any(String, T::Array[PaymentIntentUpdateParams::AmountDetails::LineItem]))) + } + def line_items; end + sig { + params(_line_items: T.nilable(T.any(String, T::Array[PaymentIntentUpdateParams::AmountDetails::LineItem]))).returns(T.nilable(T.any(String, T::Array[PaymentIntentUpdateParams::AmountDetails::LineItem]))) + } + def line_items=(_line_items); end + # Contains information about the shipping portion of the amount. + sig { returns(T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails::Shipping))) } + def shipping; end + sig { + params(_shipping: T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails::Shipping))).returns(T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails::Shipping))) + } + def shipping=(_shipping); end + # Contains information about the tax portion of the amount. + sig { returns(T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails::Tax))) } + def tax; end + sig { + params(_tax: T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails::Tax))).returns(T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails::Tax))) + } + def tax=(_tax); end + sig { + params(discount_amount: T.nilable(T.any(String, Integer)), line_items: T.nilable(T.any(String, T::Array[PaymentIntentUpdateParams::AmountDetails::LineItem])), shipping: T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails::Shipping)), tax: T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails::Tax))).void + } + def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil); end + end + class PaymentDetails < ::Stripe::RequestParams + # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + sig { returns(T.nilable(String)) } + def customer_reference; end + sig { params(_customer_reference: T.nilable(String)).returns(T.nilable(String)) } + def customer_reference=(_customer_reference); end + # A unique value assigned by the business to identify the transaction. + sig { returns(T.nilable(String)) } + def order_reference; end + sig { params(_order_reference: T.nilable(String)).returns(T.nilable(String)) } + def order_reference=(_order_reference); end + sig { params(customer_reference: T.nilable(String), order_reference: T.nilable(String)).void } + def initialize(customer_reference: nil, order_reference: nil); end + end + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. sig { returns(String) } def account_number; end @@ -81627,12 +87253,12 @@ module Stripe } def initialize(account_number: nil, institution_number: nil, transit_number: nil); end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. sig { returns(String) } def account_number; end @@ -81646,7 +87272,7 @@ module Stripe sig { params(account_number: String, bsb_number: String).void } def initialize(account_number: nil, bsb_number: nil); end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. sig { returns(T.nilable(String)) } def account_number; end @@ -81660,10 +87286,10 @@ module Stripe sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void } def initialize(account_number: nil, sort_code: nil); end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -81740,8 +87366,8 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end - class Blik < Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Blik < ::Stripe::RequestParams; end + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) sig { returns(String) } def tax_id; end @@ -81750,10 +87376,10 @@ module Stripe sig { params(tax_id: String).void } def initialize(tax_id: nil); end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end + class Eps < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -81762,7 +87388,7 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction sig { returns(T.nilable(String)) } def account_holder_type; end @@ -81776,9 +87402,9 @@ module Stripe sig { params(account_holder_type: T.nilable(String), bank: String).void } def initialize(account_holder_type: nil, bank: nil); end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. sig { returns(T.nilable(String)) } def bank; end @@ -81787,10 +87413,10 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -81821,13 +87447,13 @@ module Stripe } def initialize(dob: nil); end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. sig { returns(T.nilable(String)) } def funding; end @@ -81836,7 +87462,7 @@ module Stripe sig { params(funding: T.nilable(String)).void } def initialize(funding: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -81879,8 +87505,8 @@ module Stripe suffix: nil ); end end - class Oxxo < Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams; end + class P24 < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -81889,13 +87515,13 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -81904,10 +87530,10 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } def iban; end @@ -81916,7 +87542,7 @@ module Stripe sig { params(iban: String).void } def initialize(iban: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. sig { returns(String) } def country; end @@ -81925,9 +87551,9 @@ module Stripe sig { params(country: String).void } def initialize(country: nil); end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -81964,8 +87590,8 @@ module Stripe routing_number: nil ); end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. sig { returns(T.nilable(PaymentIntentUpdateParams::PaymentMethodData::AcssDebit)) } def acss_debit; end @@ -82400,9 +88026,9 @@ module Stripe zip: nil ); end end - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # A URL for custom mandate text to render during confirmation step. # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. @@ -82479,7 +88105,7 @@ module Stripe verification_method: nil ); end end - class Affirm < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -82512,7 +88138,7 @@ module Stripe } def initialize(capture_method: nil, preferred_locale: nil, setup_future_usage: nil); end end - class AfterpayClearpay < Stripe::RequestParams + class AfterpayClearpay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -82546,7 +88172,7 @@ module Stripe } def initialize(capture_method: nil, reference: nil, setup_future_usage: nil); end end - class Alipay < Stripe::RequestParams + class Alipay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -82565,7 +88191,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(T.any(String, String))).void } def initialize(setup_future_usage: nil); end end - class Alma < Stripe::RequestParams + class Alma < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -82578,7 +88204,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class AmazonPay < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -82606,7 +88232,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class AuBecsDebit < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -82632,8 +88258,8 @@ module Stripe } def initialize(setup_future_usage: nil, target_date: nil); end end - class BacsDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -82676,7 +88302,7 @@ module Stripe } def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Preferred language of the Bancontact authorization page that the customer is redirected to. sig { returns(T.nilable(String)) } def preferred_language; end @@ -82702,7 +88328,7 @@ module Stripe } def initialize(preferred_language: nil, setup_future_usage: nil); end end - class Billie < Stripe::RequestParams + class Billie < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -82715,7 +88341,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Blik < Stripe::RequestParams + class Blik < ::Stripe::RequestParams # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. sig { returns(T.nilable(String)) } def code; end @@ -82737,7 +88363,7 @@ module Stripe sig { params(code: T.nilable(String), setup_future_usage: T.nilable(String)).void } def initialize(code: nil, setup_future_usage: nil); end end - class Boleto < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. sig { returns(T.nilable(Integer)) } def expires_after_days; end @@ -82763,9 +88389,9 @@ module Stripe } def initialize(expires_after_days: nil, setup_future_usage: nil); end end - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams - class Plan < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams + class Plan < ::Stripe::RequestParams # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. sig { returns(T.nilable(Integer)) } def count; end @@ -82809,7 +88435,7 @@ module Stripe } def initialize(enabled: nil, plan: nil); end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. sig { returns(Integer) } def amount; end @@ -82872,9 +88498,9 @@ module Stripe supported_types: nil ); end end - class ThreeDSecure < Stripe::RequestParams - class NetworkOptions < Stripe::RequestParams - class CartesBancaires < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams + class NetworkOptions < ::Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams # The cryptogram calculation algorithm used by the card Issuer's ACS # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. # messageExtension: CB-AVALGO @@ -83128,8 +88754,8 @@ module Stripe three_d_secure: nil ); end end - class CardPresent < Stripe::RequestParams - class Routing < Stripe::RequestParams + class CardPresent < ::Stripe::RequestParams + class Routing < ::Stripe::RequestParams # Routing requested priority sig { returns(T.nilable(String)) } def requested_priority; end @@ -83172,7 +88798,7 @@ module Stripe routing: nil ); end end - class Cashapp < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -83202,7 +88828,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Crypto < Stripe::RequestParams + class Crypto < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -83219,9 +88845,9 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -83290,7 +88916,7 @@ module Stripe } def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil); end end - class Eps < Stripe::RequestParams + class Eps < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -83307,7 +88933,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -83324,7 +88950,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Giropay < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -83341,7 +88967,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Grabpay < Stripe::RequestParams + class Grabpay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -83358,7 +88984,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Ideal < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -83377,8 +89003,8 @@ module Stripe sig { params(setup_future_usage: T.nilable(T.any(String, String))).void } def initialize(setup_future_usage: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -83406,8 +89032,8 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Klarna < Stripe::RequestParams - class OnDemand < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class OnDemand < ::Stripe::RequestParams # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. sig { returns(T.nilable(Integer)) } def average_amount; end @@ -83444,8 +89070,8 @@ module Stripe purchase_interval_count: nil ); end end - class Subscription < Stripe::RequestParams - class NextBilling < Stripe::RequestParams + class Subscription < ::Stripe::RequestParams + class NextBilling < ::Stripe::RequestParams # The amount of the next charge for the subscription. sig { returns(Integer) } def amount; end @@ -83555,7 +89181,7 @@ module Stripe subscriptions: nil ); end end - class Konbini < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams # An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number. sig { returns(T.nilable(String)) } def confirmation_number; end @@ -83604,7 +89230,7 @@ module Stripe setup_future_usage: nil ); end end - class KrCard < Stripe::RequestParams + class KrCard < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -83632,7 +89258,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Link < Stripe::RequestParams + class Link < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -83667,7 +89293,7 @@ module Stripe } def initialize(capture_method: nil, persistent_token: nil, setup_future_usage: nil); end end - class MbWay < Stripe::RequestParams + class MbWay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -83684,7 +89310,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Mobilepay < Stripe::RequestParams + class Mobilepay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -83712,7 +89338,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Multibanco < Stripe::RequestParams + class Multibanco < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -83729,7 +89355,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class NaverPay < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -83757,7 +89383,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -83783,7 +89409,7 @@ module Stripe } def initialize(setup_future_usage: nil, target_date: nil); end end - class Oxxo < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams # The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. sig { returns(T.nilable(Integer)) } def expires_after_days; end @@ -83807,7 +89433,7 @@ module Stripe } def initialize(expires_after_days: nil, setup_future_usage: nil); end end - class P24 < Stripe::RequestParams + class P24 < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -83833,8 +89459,8 @@ module Stripe } def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -83847,7 +89473,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Paynow < Stripe::RequestParams + class Paynow < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -83864,7 +89490,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Paypal < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -83911,7 +89537,7 @@ module Stripe setup_future_usage: nil ); end end - class Pix < Stripe::RequestParams + class Pix < ::Stripe::RequestParams # Determines if the amount includes the IOF tax. Defaults to `never`. sig { returns(T.nilable(String)) } def amount_includes_iof; end @@ -83950,7 +89576,7 @@ module Stripe setup_future_usage: nil ); end end - class Promptpay < Stripe::RequestParams + class Promptpay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -83967,7 +89593,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class RevolutPay < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -83995,7 +89621,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class SamsungPay < Stripe::RequestParams + class SamsungPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -84008,7 +89634,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Satispay < Stripe::RequestParams + class Satispay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -84021,8 +89647,8 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class SepaDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -84065,7 +89691,7 @@ module Stripe } def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Language shown to the payer on redirect. sig { returns(T.nilable(T.any(String, String))) } def preferred_language; end @@ -84093,7 +89719,7 @@ module Stripe } def initialize(preferred_language: nil, setup_future_usage: nil); end end - class Swish < Stripe::RequestParams + class Swish < ::Stripe::RequestParams # A reference for this payment to be displayed in the Swish app. sig { returns(T.nilable(String)) } def reference; end @@ -84115,7 +89741,7 @@ module Stripe sig { params(reference: T.nilable(String), setup_future_usage: T.nilable(String)).void } def initialize(reference: nil, setup_future_usage: nil); end end - class Twint < Stripe::RequestParams + class Twint < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -84132,9 +89758,9 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -84178,7 +89804,7 @@ module Stripe } def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil); end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # The method used to collect offline mandate customer acceptance. sig { returns(T.nilable(String)) } def collection_method; end @@ -84187,7 +89813,7 @@ module Stripe sig { params(collection_method: T.nilable(String)).void } def initialize(collection_method: nil); end end - class Networks < Stripe::RequestParams + class Networks < ::Stripe::RequestParams # Triggers validations to run across the selected networks sig { returns(T.nilable(T::Array[String])) } def requested; end @@ -84270,7 +89896,7 @@ module Stripe verification_method: nil ); end end - class WechatPay < Stripe::RequestParams + class WechatPay < ::Stripe::RequestParams # The app ID registered with WeChat Pay. Only required when client is ios or android. sig { returns(T.nilable(String)) } def app_id; end @@ -84299,7 +89925,7 @@ module Stripe } def initialize(app_id: nil, client: nil, setup_future_usage: nil); end end - class Zip < Stripe::RequestParams + class Zip < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -84832,8 +90458,8 @@ module Stripe zip: nil ); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -84908,7 +90534,7 @@ module Stripe } def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when a charge succeeds. sig { returns(T.nilable(Integer)) } def amount; end @@ -84922,6 +90548,13 @@ module Stripe def amount; end sig { params(_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } def amount=(_amount); end + # Provides industry-specific information about the amount. + sig { returns(T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails))) } + def amount_details; end + sig { + params(_amount_details: T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails))).returns(T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails))) + } + def amount_details=(_amount_details); end # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(T.any(String, Integer))) } def application_fee_amount; end @@ -84972,6 +90605,13 @@ module Stripe params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) } def metadata=(_metadata); end + # Provides industry-specific information about the charge. + sig { returns(T.nilable(T.any(String, PaymentIntentUpdateParams::PaymentDetails))) } + def payment_details; end + sig { + params(_payment_details: T.nilable(T.any(String, PaymentIntentUpdateParams::PaymentDetails))).returns(T.nilable(T.any(String, PaymentIntentUpdateParams::PaymentDetails))) + } + def payment_details=(_payment_details); end # ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent. To unset this field to null, pass in an empty string. sig { returns(T.nilable(String)) } def payment_method; end @@ -85057,10 +90697,11 @@ module Stripe sig { params(_transfer_group: T.nilable(String)).returns(T.nilable(String)) } def transfer_group=(_transfer_group); end sig { - params(amount: T.nilable(Integer), application_fee_amount: T.nilable(T.any(String, Integer)), capture_method: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), description: T.nilable(String), excluded_payment_method_types: T.nilable(T.any(String, T::Array[String])), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(PaymentIntentUpdateParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentUpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), receipt_email: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String)), shipping: T.nilable(T.any(String, PaymentIntentUpdateParams::Shipping)), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(PaymentIntentUpdateParams::TransferData), transfer_group: T.nilable(String)).void + params(amount: T.nilable(Integer), amount_details: T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails)), application_fee_amount: T.nilable(T.any(String, Integer)), capture_method: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), description: T.nilable(String), excluded_payment_method_types: T.nilable(T.any(String, T::Array[String])), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_details: T.nilable(T.any(String, PaymentIntentUpdateParams::PaymentDetails)), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(PaymentIntentUpdateParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentUpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), receipt_email: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String)), shipping: T.nilable(T.any(String, PaymentIntentUpdateParams::Shipping)), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(PaymentIntentUpdateParams::TransferData), transfer_group: T.nilable(String)).void } def initialize( amount: nil, + amount_details: nil, application_fee_amount: nil, capture_method: nil, currency: nil, @@ -85069,6 +90710,7 @@ module Stripe excluded_payment_method_types: nil, expand: nil, metadata: nil, + payment_details: nil, payment_method: nil, payment_method_configuration: nil, payment_method_data: nil, @@ -85086,7 +90728,7 @@ module Stripe end # typed: true module Stripe - class PaymentIntentSearchParams < Stripe::RequestParams + class PaymentIntentSearchParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -85115,7 +90757,7 @@ module Stripe end # typed: true module Stripe - class PaymentIntentApplyCustomerBalanceParams < Stripe::RequestParams + class PaymentIntentApplyCustomerBalanceParams < ::Stripe::RequestParams # Amount that you intend to apply to this PaymentIntent from the customer’s cash balance. If the PaymentIntent was created by an Invoice, the full amount of the PaymentIntent is applied regardless of this parameter. # # A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (for example, 100 cents to charge 1 USD or 100 to charge 100 JPY, a zero-decimal currency). The maximum amount is the amount of the PaymentIntent. @@ -85143,7 +90785,7 @@ module Stripe end # typed: true module Stripe - class PaymentIntentCancelParams < Stripe::RequestParams + class PaymentIntentCancelParams < ::Stripe::RequestParams # Reason for canceling this PaymentIntent. Possible values are: `duplicate`, `fraudulent`, `requested_by_customer`, or `abandoned` sig { returns(T.nilable(String)) } def cancellation_reason; end @@ -85160,8 +90802,272 @@ module Stripe end # typed: true module Stripe - class PaymentIntentCaptureParams < Stripe::RequestParams - class TransferData < Stripe::RequestParams + class PaymentIntentCaptureParams < ::Stripe::RequestParams + class AmountDetails < ::Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + sig { returns(T.nilable(String)) } + def commodity_code; end + sig { params(_commodity_code: T.nilable(String)).returns(T.nilable(String)) } + def commodity_code=(_commodity_code); end + sig { params(commodity_code: T.nilable(String)).void } + def initialize(commodity_code: nil); end + end + class CardPresent < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + sig { returns(T.nilable(String)) } + def commodity_code; end + sig { params(_commodity_code: T.nilable(String)).returns(T.nilable(String)) } + def commodity_code=(_commodity_code); end + sig { params(commodity_code: T.nilable(String)).void } + def initialize(commodity_code: nil); end + end + class Klarna < ::Stripe::RequestParams + # URL to an image for the product. Max length, 4096 characters. + sig { returns(T.nilable(String)) } + def image_url; end + sig { params(_image_url: T.nilable(String)).returns(T.nilable(String)) } + def image_url=(_image_url); end + # URL to the product page. Max length, 4096 characters. + sig { returns(T.nilable(String)) } + def product_url; end + sig { params(_product_url: T.nilable(String)).returns(T.nilable(String)) } + def product_url=(_product_url); end + # Unique reference for this line item to correlate it with your system’s internal records. The field is displayed in the Klarna Consumer App if passed. + sig { returns(T.nilable(String)) } + def reference; end + sig { params(_reference: T.nilable(String)).returns(T.nilable(String)) } + def reference=(_reference); end + # Reference for the subscription this line item is for. + sig { returns(T.nilable(String)) } + def subscription_reference; end + sig { params(_subscription_reference: T.nilable(String)).returns(T.nilable(String)) } + def subscription_reference=(_subscription_reference); end + sig { + params(image_url: T.nilable(String), product_url: T.nilable(String), reference: T.nilable(String), subscription_reference: T.nilable(String)).void + } + def initialize( + image_url: nil, + product_url: nil, + reference: nil, + subscription_reference: nil + ); end + end + class Paypal < ::Stripe::RequestParams + # Type of the line item. + sig { returns(T.nilable(String)) } + def category; end + sig { params(_category: T.nilable(String)).returns(T.nilable(String)) } + def category=(_category); end + # Description of the line item. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # The Stripe account ID of the connected account that sells the item. + sig { returns(T.nilable(String)) } + def sold_by; end + sig { params(_sold_by: T.nilable(String)).returns(T.nilable(String)) } + def sold_by=(_sold_by); end + sig { + params(category: T.nilable(String), description: T.nilable(String), sold_by: T.nilable(String)).void + } + def initialize(category: nil, description: nil, sold_by: nil); end + end + # This sub-hash contains line item details that are specific to `card` payment method." + sig { + returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Card)) + } + def card; end + sig { + params(_card: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Card)).returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Card)) + } + def card=(_card); end + # This sub-hash contains line item details that are specific to `card_present` payment method." + sig { + returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)) + } + def card_present; end + sig { + params(_card_present: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)).returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)) + } + def card_present=(_card_present); end + # This sub-hash contains line item details that are specific to `klarna` payment method." + sig { + returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)) + } + def klarna; end + sig { + params(_klarna: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)).returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)) + } + def klarna=(_klarna); end + # This sub-hash contains line item details that are specific to `paypal` payment method." + sig { + returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)) + } + def paypal; end + sig { + params(_paypal: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)) + } + def paypal=(_paypal); end + sig { + params(card: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Card), card_present: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent), klarna: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna), paypal: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).void + } + def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end + end + class Tax < ::Stripe::RequestParams + # The total tax on an item. Non-negative integer. + sig { returns(Integer) } + def total_tax_amount; end + sig { params(_total_tax_amount: Integer).returns(Integer) } + def total_tax_amount=(_total_tax_amount); end + sig { params(total_tax_amount: Integer).void } + def initialize(total_tax_amount: nil); end + end + # The amount an item was discounted for. Positive integer. + sig { returns(T.nilable(Integer)) } + def discount_amount; end + sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } + def discount_amount=(_discount_amount); end + # Payment method-specific information for line items. + sig { + returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions)) + } + def payment_method_options; end + sig { + params(_payment_method_options: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions)).returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions)) + } + def payment_method_options=(_payment_method_options); end + # Unique identifier of the product. At most 12 characters long. + sig { returns(T.nilable(String)) } + def product_code; end + sig { params(_product_code: T.nilable(String)).returns(T.nilable(String)) } + def product_code=(_product_code); end + # Name of the product. At most 100 characters long. + sig { returns(String) } + def product_name; end + sig { params(_product_name: String).returns(String) } + def product_name=(_product_name); end + # Number of items of the product. Positive integer. + sig { returns(Integer) } + def quantity; end + sig { params(_quantity: Integer).returns(Integer) } + def quantity=(_quantity); end + # Contains information about the tax on the item. + sig { returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::Tax)) } + def tax; end + sig { + params(_tax: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::Tax)).returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::Tax)) + } + def tax=(_tax); end + # Cost of the product. Non-negative integer. + sig { returns(Integer) } + def unit_cost; end + sig { params(_unit_cost: Integer).returns(Integer) } + def unit_cost=(_unit_cost); end + # A unit of measure for the line item, such as gallons, feet, meters, etc. + sig { returns(T.nilable(String)) } + def unit_of_measure; end + sig { params(_unit_of_measure: T.nilable(String)).returns(T.nilable(String)) } + def unit_of_measure=(_unit_of_measure); end + sig { + params(discount_amount: T.nilable(Integer), payment_method_options: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions), product_code: T.nilable(String), product_name: String, quantity: Integer, tax: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::Tax), unit_cost: Integer, unit_of_measure: T.nilable(String)).void + } + def initialize( + discount_amount: nil, + payment_method_options: nil, + product_code: nil, + product_name: nil, + quantity: nil, + tax: nil, + unit_cost: nil, + unit_of_measure: nil + ); end + end + class Shipping < ::Stripe::RequestParams + # Portion of the amount that is for shipping. + sig { returns(T.nilable(T.any(String, Integer))) } + def amount; end + sig { + params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) + } + def amount=(_amount); end + # The postal code that represents the shipping source. + sig { returns(T.nilable(String)) } + def from_postal_code; end + sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def from_postal_code=(_from_postal_code); end + # The postal code that represents the shipping destination. + sig { returns(T.nilable(String)) } + def to_postal_code; end + sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def to_postal_code=(_to_postal_code); end + sig { + params(amount: T.nilable(T.any(String, Integer)), from_postal_code: T.nilable(String), to_postal_code: T.nilable(String)).void + } + def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end + end + class Tax < ::Stripe::RequestParams + # Total portion of the amount that is for tax. + sig { returns(Integer) } + def total_tax_amount; end + sig { params(_total_tax_amount: Integer).returns(Integer) } + def total_tax_amount=(_total_tax_amount); end + sig { params(total_tax_amount: Integer).void } + def initialize(total_tax_amount: nil); end + end + # The total discount applied on the transaction. + sig { returns(T.nilable(T.any(String, Integer))) } + def discount_amount; end + sig { + params(_discount_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) + } + def discount_amount=(_discount_amount); end + # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. + sig { + returns(T.nilable(T.any(String, T::Array[PaymentIntentCaptureParams::AmountDetails::LineItem]))) + } + def line_items; end + sig { + params(_line_items: T.nilable(T.any(String, T::Array[PaymentIntentCaptureParams::AmountDetails::LineItem]))).returns(T.nilable(T.any(String, T::Array[PaymentIntentCaptureParams::AmountDetails::LineItem]))) + } + def line_items=(_line_items); end + # Contains information about the shipping portion of the amount. + sig { returns(T.nilable(T.any(String, PaymentIntentCaptureParams::AmountDetails::Shipping))) } + def shipping; end + sig { + params(_shipping: T.nilable(T.any(String, PaymentIntentCaptureParams::AmountDetails::Shipping))).returns(T.nilable(T.any(String, PaymentIntentCaptureParams::AmountDetails::Shipping))) + } + def shipping=(_shipping); end + # Contains information about the tax portion of the amount. + sig { returns(T.nilable(T.any(String, PaymentIntentCaptureParams::AmountDetails::Tax))) } + def tax; end + sig { + params(_tax: T.nilable(T.any(String, PaymentIntentCaptureParams::AmountDetails::Tax))).returns(T.nilable(T.any(String, PaymentIntentCaptureParams::AmountDetails::Tax))) + } + def tax=(_tax); end + sig { + params(discount_amount: T.nilable(T.any(String, Integer)), line_items: T.nilable(T.any(String, T::Array[PaymentIntentCaptureParams::AmountDetails::LineItem])), shipping: T.nilable(T.any(String, PaymentIntentCaptureParams::AmountDetails::Shipping)), tax: T.nilable(T.any(String, PaymentIntentCaptureParams::AmountDetails::Tax))).void + } + def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil); end + end + class PaymentDetails < ::Stripe::RequestParams + # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + sig { returns(T.nilable(String)) } + def customer_reference; end + sig { params(_customer_reference: T.nilable(String)).returns(T.nilable(String)) } + def customer_reference=(_customer_reference); end + # A unique value assigned by the business to identify the transaction. + sig { returns(T.nilable(String)) } + def order_reference; end + sig { params(_order_reference: T.nilable(String)).returns(T.nilable(String)) } + def order_reference=(_order_reference); end + sig { params(customer_reference: T.nilable(String), order_reference: T.nilable(String)).void } + def initialize(customer_reference: nil, order_reference: nil); end + end + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when a charge succeeds. sig { returns(T.nilable(Integer)) } def amount; end @@ -85170,6 +91076,13 @@ module Stripe sig { params(amount: T.nilable(Integer)).void } def initialize(amount: nil); end end + # Provides industry-specific information about the amount. + sig { returns(T.nilable(PaymentIntentCaptureParams::AmountDetails)) } + def amount_details; end + sig { + params(_amount_details: T.nilable(PaymentIntentCaptureParams::AmountDetails)).returns(T.nilable(PaymentIntentCaptureParams::AmountDetails)) + } + def amount_details=(_amount_details); end # The amount to capture from the PaymentIntent, which must be less than or equal to the original amount. Defaults to the full `amount_capturable` if it's not provided. sig { returns(T.nilable(Integer)) } def amount_to_capture; end @@ -85197,6 +91110,13 @@ module Stripe params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) } def metadata=(_metadata); end + # Provides industry-specific information about the charge. + sig { returns(T.nilable(T.any(String, PaymentIntentCaptureParams::PaymentDetails))) } + def payment_details; end + sig { + params(_payment_details: T.nilable(T.any(String, PaymentIntentCaptureParams::PaymentDetails))).returns(T.nilable(T.any(String, PaymentIntentCaptureParams::PaymentDetails))) + } + def payment_details=(_payment_details); end # Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). # # Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead. @@ -85218,14 +91138,16 @@ module Stripe } def transfer_data=(_transfer_data); end sig { - params(amount_to_capture: T.nilable(Integer), application_fee_amount: T.nilable(Integer), expand: T.nilable(T::Array[String]), final_capture: T.nilable(T::Boolean), metadata: T.nilable(T.any(String, T::Hash[String, String])), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(PaymentIntentCaptureParams::TransferData)).void + params(amount_details: T.nilable(PaymentIntentCaptureParams::AmountDetails), amount_to_capture: T.nilable(Integer), application_fee_amount: T.nilable(Integer), expand: T.nilable(T::Array[String]), final_capture: T.nilable(T::Boolean), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_details: T.nilable(T.any(String, PaymentIntentCaptureParams::PaymentDetails)), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(PaymentIntentCaptureParams::TransferData)).void } def initialize( + amount_details: nil, amount_to_capture: nil, application_fee_amount: nil, expand: nil, final_capture: nil, metadata: nil, + payment_details: nil, statement_descriptor: nil, statement_descriptor_suffix: nil, transfer_data: nil @@ -85234,11 +91156,261 @@ module Stripe end # typed: true module Stripe - class PaymentIntentConfirmParams < Stripe::RequestParams - class MandateData < Stripe::RequestParams - class CustomerAcceptance < Stripe::RequestParams - class Offline < Stripe::RequestParams; end - class Online < Stripe::RequestParams + class PaymentIntentConfirmParams < ::Stripe::RequestParams + class AmountDetails < ::Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + sig { returns(T.nilable(String)) } + def commodity_code; end + sig { params(_commodity_code: T.nilable(String)).returns(T.nilable(String)) } + def commodity_code=(_commodity_code); end + sig { params(commodity_code: T.nilable(String)).void } + def initialize(commodity_code: nil); end + end + class CardPresent < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + sig { returns(T.nilable(String)) } + def commodity_code; end + sig { params(_commodity_code: T.nilable(String)).returns(T.nilable(String)) } + def commodity_code=(_commodity_code); end + sig { params(commodity_code: T.nilable(String)).void } + def initialize(commodity_code: nil); end + end + class Klarna < ::Stripe::RequestParams + # URL to an image for the product. Max length, 4096 characters. + sig { returns(T.nilable(String)) } + def image_url; end + sig { params(_image_url: T.nilable(String)).returns(T.nilable(String)) } + def image_url=(_image_url); end + # URL to the product page. Max length, 4096 characters. + sig { returns(T.nilable(String)) } + def product_url; end + sig { params(_product_url: T.nilable(String)).returns(T.nilable(String)) } + def product_url=(_product_url); end + # Unique reference for this line item to correlate it with your system’s internal records. The field is displayed in the Klarna Consumer App if passed. + sig { returns(T.nilable(String)) } + def reference; end + sig { params(_reference: T.nilable(String)).returns(T.nilable(String)) } + def reference=(_reference); end + # Reference for the subscription this line item is for. + sig { returns(T.nilable(String)) } + def subscription_reference; end + sig { params(_subscription_reference: T.nilable(String)).returns(T.nilable(String)) } + def subscription_reference=(_subscription_reference); end + sig { + params(image_url: T.nilable(String), product_url: T.nilable(String), reference: T.nilable(String), subscription_reference: T.nilable(String)).void + } + def initialize( + image_url: nil, + product_url: nil, + reference: nil, + subscription_reference: nil + ); end + end + class Paypal < ::Stripe::RequestParams + # Type of the line item. + sig { returns(T.nilable(String)) } + def category; end + sig { params(_category: T.nilable(String)).returns(T.nilable(String)) } + def category=(_category); end + # Description of the line item. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # The Stripe account ID of the connected account that sells the item. + sig { returns(T.nilable(String)) } + def sold_by; end + sig { params(_sold_by: T.nilable(String)).returns(T.nilable(String)) } + def sold_by=(_sold_by); end + sig { + params(category: T.nilable(String), description: T.nilable(String), sold_by: T.nilable(String)).void + } + def initialize(category: nil, description: nil, sold_by: nil); end + end + # This sub-hash contains line item details that are specific to `card` payment method." + sig { + returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Card)) + } + def card; end + sig { + params(_card: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Card)).returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Card)) + } + def card=(_card); end + # This sub-hash contains line item details that are specific to `card_present` payment method." + sig { + returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)) + } + def card_present; end + sig { + params(_card_present: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)).returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)) + } + def card_present=(_card_present); end + # This sub-hash contains line item details that are specific to `klarna` payment method." + sig { + returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)) + } + def klarna; end + sig { + params(_klarna: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)).returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)) + } + def klarna=(_klarna); end + # This sub-hash contains line item details that are specific to `paypal` payment method." + sig { + returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)) + } + def paypal; end + sig { + params(_paypal: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)) + } + def paypal=(_paypal); end + sig { + params(card: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Card), card_present: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent), klarna: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna), paypal: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).void + } + def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end + end + class Tax < ::Stripe::RequestParams + # The total tax on an item. Non-negative integer. + sig { returns(Integer) } + def total_tax_amount; end + sig { params(_total_tax_amount: Integer).returns(Integer) } + def total_tax_amount=(_total_tax_amount); end + sig { params(total_tax_amount: Integer).void } + def initialize(total_tax_amount: nil); end + end + # The amount an item was discounted for. Positive integer. + sig { returns(T.nilable(Integer)) } + def discount_amount; end + sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } + def discount_amount=(_discount_amount); end + # Payment method-specific information for line items. + sig { + returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions)) + } + def payment_method_options; end + sig { + params(_payment_method_options: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions)).returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions)) + } + def payment_method_options=(_payment_method_options); end + # Unique identifier of the product. At most 12 characters long. + sig { returns(T.nilable(String)) } + def product_code; end + sig { params(_product_code: T.nilable(String)).returns(T.nilable(String)) } + def product_code=(_product_code); end + # Name of the product. At most 100 characters long. + sig { returns(String) } + def product_name; end + sig { params(_product_name: String).returns(String) } + def product_name=(_product_name); end + # Number of items of the product. Positive integer. + sig { returns(Integer) } + def quantity; end + sig { params(_quantity: Integer).returns(Integer) } + def quantity=(_quantity); end + # Contains information about the tax on the item. + sig { returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::Tax)) } + def tax; end + sig { + params(_tax: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::Tax)).returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::Tax)) + } + def tax=(_tax); end + # Cost of the product. Non-negative integer. + sig { returns(Integer) } + def unit_cost; end + sig { params(_unit_cost: Integer).returns(Integer) } + def unit_cost=(_unit_cost); end + # A unit of measure for the line item, such as gallons, feet, meters, etc. + sig { returns(T.nilable(String)) } + def unit_of_measure; end + sig { params(_unit_of_measure: T.nilable(String)).returns(T.nilable(String)) } + def unit_of_measure=(_unit_of_measure); end + sig { + params(discount_amount: T.nilable(Integer), payment_method_options: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions), product_code: T.nilable(String), product_name: String, quantity: Integer, tax: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::Tax), unit_cost: Integer, unit_of_measure: T.nilable(String)).void + } + def initialize( + discount_amount: nil, + payment_method_options: nil, + product_code: nil, + product_name: nil, + quantity: nil, + tax: nil, + unit_cost: nil, + unit_of_measure: nil + ); end + end + class Shipping < ::Stripe::RequestParams + # Portion of the amount that is for shipping. + sig { returns(T.nilable(T.any(String, Integer))) } + def amount; end + sig { + params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) + } + def amount=(_amount); end + # The postal code that represents the shipping source. + sig { returns(T.nilable(String)) } + def from_postal_code; end + sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def from_postal_code=(_from_postal_code); end + # The postal code that represents the shipping destination. + sig { returns(T.nilable(String)) } + def to_postal_code; end + sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def to_postal_code=(_to_postal_code); end + sig { + params(amount: T.nilable(T.any(String, Integer)), from_postal_code: T.nilable(String), to_postal_code: T.nilable(String)).void + } + def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end + end + class Tax < ::Stripe::RequestParams + # Total portion of the amount that is for tax. + sig { returns(Integer) } + def total_tax_amount; end + sig { params(_total_tax_amount: Integer).returns(Integer) } + def total_tax_amount=(_total_tax_amount); end + sig { params(total_tax_amount: Integer).void } + def initialize(total_tax_amount: nil); end + end + # The total discount applied on the transaction. + sig { returns(T.nilable(T.any(String, Integer))) } + def discount_amount; end + sig { + params(_discount_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) + } + def discount_amount=(_discount_amount); end + # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. + sig { + returns(T.nilable(T.any(String, T::Array[PaymentIntentConfirmParams::AmountDetails::LineItem]))) + } + def line_items; end + sig { + params(_line_items: T.nilable(T.any(String, T::Array[PaymentIntentConfirmParams::AmountDetails::LineItem]))).returns(T.nilable(T.any(String, T::Array[PaymentIntentConfirmParams::AmountDetails::LineItem]))) + } + def line_items=(_line_items); end + # Contains information about the shipping portion of the amount. + sig { returns(T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails::Shipping))) } + def shipping; end + sig { + params(_shipping: T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails::Shipping))).returns(T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails::Shipping))) + } + def shipping=(_shipping); end + # Contains information about the tax portion of the amount. + sig { returns(T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails::Tax))) } + def tax; end + sig { + params(_tax: T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails::Tax))).returns(T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails::Tax))) + } + def tax=(_tax); end + sig { + params(discount_amount: T.nilable(T.any(String, Integer)), line_items: T.nilable(T.any(String, T::Array[PaymentIntentConfirmParams::AmountDetails::LineItem])), shipping: T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails::Shipping)), tax: T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails::Tax))).void + } + def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil); end + end + class MandateData < ::Stripe::RequestParams + class CustomerAcceptance < ::Stripe::RequestParams + class Offline < ::Stripe::RequestParams; end + class Online < ::Stripe::RequestParams # The IP address from which the Mandate was accepted by the customer. sig { returns(T.nilable(String)) } def ip_address; end @@ -85297,8 +91469,22 @@ module Stripe } def initialize(customer_acceptance: nil); end end - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class PaymentDetails < ::Stripe::RequestParams + # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + sig { returns(T.nilable(String)) } + def customer_reference; end + sig { params(_customer_reference: T.nilable(String)).returns(T.nilable(String)) } + def customer_reference=(_customer_reference); end + # A unique value assigned by the business to identify the transaction. + sig { returns(T.nilable(String)) } + def order_reference; end + sig { params(_order_reference: T.nilable(String)).returns(T.nilable(String)) } + def order_reference=(_order_reference); end + sig { params(customer_reference: T.nilable(String), order_reference: T.nilable(String)).void } + def initialize(customer_reference: nil, order_reference: nil); end + end + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. sig { returns(String) } def account_number; end @@ -85319,12 +91505,12 @@ module Stripe } def initialize(account_number: nil, institution_number: nil, transit_number: nil); end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. sig { returns(String) } def account_number; end @@ -85338,7 +91524,7 @@ module Stripe sig { params(account_number: String, bsb_number: String).void } def initialize(account_number: nil, bsb_number: nil); end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. sig { returns(T.nilable(String)) } def account_number; end @@ -85352,10 +91538,10 @@ module Stripe sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void } def initialize(account_number: nil, sort_code: nil); end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -85432,8 +91618,8 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end - class Blik < Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Blik < ::Stripe::RequestParams; end + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) sig { returns(String) } def tax_id; end @@ -85442,10 +91628,10 @@ module Stripe sig { params(tax_id: String).void } def initialize(tax_id: nil); end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end + class Eps < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -85454,7 +91640,7 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction sig { returns(T.nilable(String)) } def account_holder_type; end @@ -85468,9 +91654,9 @@ module Stripe sig { params(account_holder_type: T.nilable(String), bank: String).void } def initialize(account_holder_type: nil, bank: nil); end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. sig { returns(T.nilable(String)) } def bank; end @@ -85479,10 +91665,10 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -85513,13 +91699,13 @@ module Stripe } def initialize(dob: nil); end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. sig { returns(T.nilable(String)) } def funding; end @@ -85528,7 +91714,7 @@ module Stripe sig { params(funding: T.nilable(String)).void } def initialize(funding: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -85571,8 +91757,8 @@ module Stripe suffix: nil ); end end - class Oxxo < Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams; end + class P24 < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -85581,13 +91767,13 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -85596,10 +91782,10 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } def iban; end @@ -85608,7 +91794,7 @@ module Stripe sig { params(iban: String).void } def initialize(iban: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. sig { returns(String) } def country; end @@ -85617,9 +91803,9 @@ module Stripe sig { params(country: String).void } def initialize(country: nil); end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -85656,8 +91842,8 @@ module Stripe routing_number: nil ); end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. sig { returns(T.nilable(PaymentIntentConfirmParams::PaymentMethodData::AcssDebit)) } def acss_debit; end @@ -86092,9 +92278,9 @@ module Stripe zip: nil ); end end - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # A URL for custom mandate text to render during confirmation step. # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. @@ -86171,7 +92357,7 @@ module Stripe verification_method: nil ); end end - class Affirm < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -86204,7 +92390,7 @@ module Stripe } def initialize(capture_method: nil, preferred_locale: nil, setup_future_usage: nil); end end - class AfterpayClearpay < Stripe::RequestParams + class AfterpayClearpay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -86238,7 +92424,7 @@ module Stripe } def initialize(capture_method: nil, reference: nil, setup_future_usage: nil); end end - class Alipay < Stripe::RequestParams + class Alipay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -86257,7 +92443,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(T.any(String, String))).void } def initialize(setup_future_usage: nil); end end - class Alma < Stripe::RequestParams + class Alma < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -86270,7 +92456,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class AmazonPay < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -86298,7 +92484,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class AuBecsDebit < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -86324,8 +92510,8 @@ module Stripe } def initialize(setup_future_usage: nil, target_date: nil); end end - class BacsDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -86368,7 +92554,7 @@ module Stripe } def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Preferred language of the Bancontact authorization page that the customer is redirected to. sig { returns(T.nilable(String)) } def preferred_language; end @@ -86394,7 +92580,7 @@ module Stripe } def initialize(preferred_language: nil, setup_future_usage: nil); end end - class Billie < Stripe::RequestParams + class Billie < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -86407,7 +92593,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Blik < Stripe::RequestParams + class Blik < ::Stripe::RequestParams # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. sig { returns(T.nilable(String)) } def code; end @@ -86429,7 +92615,7 @@ module Stripe sig { params(code: T.nilable(String), setup_future_usage: T.nilable(String)).void } def initialize(code: nil, setup_future_usage: nil); end end - class Boleto < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. sig { returns(T.nilable(Integer)) } def expires_after_days; end @@ -86455,9 +92641,9 @@ module Stripe } def initialize(expires_after_days: nil, setup_future_usage: nil); end end - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams - class Plan < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams + class Plan < ::Stripe::RequestParams # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. sig { returns(T.nilable(Integer)) } def count; end @@ -86501,7 +92687,7 @@ module Stripe } def initialize(enabled: nil, plan: nil); end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. sig { returns(Integer) } def amount; end @@ -86564,9 +92750,9 @@ module Stripe supported_types: nil ); end end - class ThreeDSecure < Stripe::RequestParams - class NetworkOptions < Stripe::RequestParams - class CartesBancaires < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams + class NetworkOptions < ::Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams # The cryptogram calculation algorithm used by the card Issuer's ACS # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. # messageExtension: CB-AVALGO @@ -86820,8 +93006,8 @@ module Stripe three_d_secure: nil ); end end - class CardPresent < Stripe::RequestParams - class Routing < Stripe::RequestParams + class CardPresent < ::Stripe::RequestParams + class Routing < ::Stripe::RequestParams # Routing requested priority sig { returns(T.nilable(String)) } def requested_priority; end @@ -86864,7 +93050,7 @@ module Stripe routing: nil ); end end - class Cashapp < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -86894,7 +93080,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Crypto < Stripe::RequestParams + class Crypto < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -86911,9 +93097,9 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -86982,7 +93168,7 @@ module Stripe } def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil); end end - class Eps < Stripe::RequestParams + class Eps < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -86999,7 +93185,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -87016,7 +93202,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Giropay < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -87033,7 +93219,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Grabpay < Stripe::RequestParams + class Grabpay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -87050,7 +93236,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Ideal < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -87069,8 +93255,8 @@ module Stripe sig { params(setup_future_usage: T.nilable(T.any(String, String))).void } def initialize(setup_future_usage: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -87098,8 +93284,8 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Klarna < Stripe::RequestParams - class OnDemand < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class OnDemand < ::Stripe::RequestParams # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. sig { returns(T.nilable(Integer)) } def average_amount; end @@ -87136,8 +93322,8 @@ module Stripe purchase_interval_count: nil ); end end - class Subscription < Stripe::RequestParams - class NextBilling < Stripe::RequestParams + class Subscription < ::Stripe::RequestParams + class NextBilling < ::Stripe::RequestParams # The amount of the next charge for the subscription. sig { returns(Integer) } def amount; end @@ -87247,7 +93433,7 @@ module Stripe subscriptions: nil ); end end - class Konbini < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams # An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number. sig { returns(T.nilable(String)) } def confirmation_number; end @@ -87296,7 +93482,7 @@ module Stripe setup_future_usage: nil ); end end - class KrCard < Stripe::RequestParams + class KrCard < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -87324,7 +93510,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Link < Stripe::RequestParams + class Link < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -87359,7 +93545,7 @@ module Stripe } def initialize(capture_method: nil, persistent_token: nil, setup_future_usage: nil); end end - class MbWay < Stripe::RequestParams + class MbWay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -87376,7 +93562,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Mobilepay < Stripe::RequestParams + class Mobilepay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -87404,7 +93590,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Multibanco < Stripe::RequestParams + class Multibanco < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -87421,7 +93607,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class NaverPay < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -87449,7 +93635,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -87475,7 +93661,7 @@ module Stripe } def initialize(setup_future_usage: nil, target_date: nil); end end - class Oxxo < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams # The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. sig { returns(T.nilable(Integer)) } def expires_after_days; end @@ -87499,7 +93685,7 @@ module Stripe } def initialize(expires_after_days: nil, setup_future_usage: nil); end end - class P24 < Stripe::RequestParams + class P24 < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -87525,8 +93711,8 @@ module Stripe } def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -87539,7 +93725,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Paynow < Stripe::RequestParams + class Paynow < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -87556,7 +93742,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Paypal < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -87603,7 +93789,7 @@ module Stripe setup_future_usage: nil ); end end - class Pix < Stripe::RequestParams + class Pix < ::Stripe::RequestParams # Determines if the amount includes the IOF tax. Defaults to `never`. sig { returns(T.nilable(String)) } def amount_includes_iof; end @@ -87642,7 +93828,7 @@ module Stripe setup_future_usage: nil ); end end - class Promptpay < Stripe::RequestParams + class Promptpay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -87659,7 +93845,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class RevolutPay < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -87687,7 +93873,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class SamsungPay < Stripe::RequestParams + class SamsungPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -87700,7 +93886,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Satispay < Stripe::RequestParams + class Satispay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -87713,8 +93899,8 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class SepaDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -87757,7 +93943,7 @@ module Stripe } def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Language shown to the payer on redirect. sig { returns(T.nilable(T.any(String, String))) } def preferred_language; end @@ -87785,7 +93971,7 @@ module Stripe } def initialize(preferred_language: nil, setup_future_usage: nil); end end - class Swish < Stripe::RequestParams + class Swish < ::Stripe::RequestParams # A reference for this payment to be displayed in the Swish app. sig { returns(T.nilable(String)) } def reference; end @@ -87807,7 +93993,7 @@ module Stripe sig { params(reference: T.nilable(String), setup_future_usage: T.nilable(String)).void } def initialize(reference: nil, setup_future_usage: nil); end end - class Twint < Stripe::RequestParams + class Twint < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -87824,9 +94010,9 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -87870,7 +94056,7 @@ module Stripe } def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil); end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # The method used to collect offline mandate customer acceptance. sig { returns(T.nilable(String)) } def collection_method; end @@ -87879,7 +94065,7 @@ module Stripe sig { params(collection_method: T.nilable(String)).void } def initialize(collection_method: nil); end end - class Networks < Stripe::RequestParams + class Networks < ::Stripe::RequestParams # Triggers validations to run across the selected networks sig { returns(T.nilable(T::Array[String])) } def requested; end @@ -87962,7 +94148,7 @@ module Stripe verification_method: nil ); end end - class WechatPay < Stripe::RequestParams + class WechatPay < ::Stripe::RequestParams # The app ID registered with WeChat Pay. Only required when client is ios or android. sig { returns(T.nilable(String)) } def app_id; end @@ -87991,7 +94177,7 @@ module Stripe } def initialize(app_id: nil, client: nil, setup_future_usage: nil); end end - class Zip < Stripe::RequestParams + class Zip < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -88524,7 +94710,7 @@ module Stripe zip: nil ); end end - class RadarOptions < Stripe::RequestParams + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -88533,8 +94719,8 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -88609,6 +94795,13 @@ module Stripe } def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil); end end + # Provides industry-specific information about the amount. + sig { returns(T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails))) } + def amount_details; end + sig { + params(_amount_details: T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails))).returns(T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails))) + } + def amount_details=(_amount_details); end # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -88657,6 +94850,13 @@ module Stripe params(_off_session: T.nilable(T.any(T::Boolean, String))).returns(T.nilable(T.any(T::Boolean, String))) } def off_session=(_off_session); end + # Provides industry-specific information about the charge. + sig { returns(T.nilable(T.any(String, PaymentIntentConfirmParams::PaymentDetails))) } + def payment_details; end + sig { + params(_payment_details: T.nilable(T.any(String, PaymentIntentConfirmParams::PaymentDetails))).returns(T.nilable(T.any(String, PaymentIntentConfirmParams::PaymentDetails))) + } + def payment_details=(_payment_details); end # ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent. # If the payment method is attached to a Customer, it must match the [customer](https://stripe.com/docs/api#create_payment_intent-customer) that is set on this PaymentIntent. sig { returns(T.nilable(String)) } @@ -88733,9 +94933,10 @@ module Stripe sig { params(_use_stripe_sdk: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } def use_stripe_sdk=(_use_stripe_sdk); end sig { - params(capture_method: T.nilable(String), confirmation_token: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), excluded_payment_method_types: T.nilable(T.any(String, T::Array[String])), expand: T.nilable(T::Array[String]), mandate: T.nilable(String), mandate_data: T.nilable(T.any(String, PaymentIntentConfirmParams::MandateData)), off_session: T.nilable(T.any(T::Boolean, String)), payment_method: T.nilable(String), payment_method_data: T.nilable(PaymentIntentConfirmParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentConfirmParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(PaymentIntentConfirmParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String)), shipping: T.nilable(T.any(String, PaymentIntentConfirmParams::Shipping)), use_stripe_sdk: T.nilable(T::Boolean)).void + params(amount_details: T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails)), capture_method: T.nilable(String), confirmation_token: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), excluded_payment_method_types: T.nilable(T.any(String, T::Array[String])), expand: T.nilable(T::Array[String]), mandate: T.nilable(String), mandate_data: T.nilable(T.any(String, PaymentIntentConfirmParams::MandateData)), off_session: T.nilable(T.any(T::Boolean, String)), payment_details: T.nilable(T.any(String, PaymentIntentConfirmParams::PaymentDetails)), payment_method: T.nilable(String), payment_method_data: T.nilable(PaymentIntentConfirmParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentConfirmParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(PaymentIntentConfirmParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String)), shipping: T.nilable(T.any(String, PaymentIntentConfirmParams::Shipping)), use_stripe_sdk: T.nilable(T::Boolean)).void } def initialize( + amount_details: nil, capture_method: nil, confirmation_token: nil, error_on_requires_action: nil, @@ -88744,6 +94945,7 @@ module Stripe mandate: nil, mandate_data: nil, off_session: nil, + payment_details: nil, payment_method: nil, payment_method_data: nil, payment_method_options: nil, @@ -88759,8 +94961,278 @@ module Stripe end # typed: true module Stripe - class PaymentIntentIncrementAuthorizationParams < Stripe::RequestParams - class TransferData < Stripe::RequestParams + class PaymentIntentIncrementAuthorizationParams < ::Stripe::RequestParams + class AmountDetails < ::Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + sig { returns(T.nilable(String)) } + def commodity_code; end + sig { params(_commodity_code: T.nilable(String)).returns(T.nilable(String)) } + def commodity_code=(_commodity_code); end + sig { params(commodity_code: T.nilable(String)).void } + def initialize(commodity_code: nil); end + end + class CardPresent < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + sig { returns(T.nilable(String)) } + def commodity_code; end + sig { params(_commodity_code: T.nilable(String)).returns(T.nilable(String)) } + def commodity_code=(_commodity_code); end + sig { params(commodity_code: T.nilable(String)).void } + def initialize(commodity_code: nil); end + end + class Klarna < ::Stripe::RequestParams + # URL to an image for the product. Max length, 4096 characters. + sig { returns(T.nilable(String)) } + def image_url; end + sig { params(_image_url: T.nilable(String)).returns(T.nilable(String)) } + def image_url=(_image_url); end + # URL to the product page. Max length, 4096 characters. + sig { returns(T.nilable(String)) } + def product_url; end + sig { params(_product_url: T.nilable(String)).returns(T.nilable(String)) } + def product_url=(_product_url); end + # Unique reference for this line item to correlate it with your system’s internal records. The field is displayed in the Klarna Consumer App if passed. + sig { returns(T.nilable(String)) } + def reference; end + sig { params(_reference: T.nilable(String)).returns(T.nilable(String)) } + def reference=(_reference); end + # Reference for the subscription this line item is for. + sig { returns(T.nilable(String)) } + def subscription_reference; end + sig { params(_subscription_reference: T.nilable(String)).returns(T.nilable(String)) } + def subscription_reference=(_subscription_reference); end + sig { + params(image_url: T.nilable(String), product_url: T.nilable(String), reference: T.nilable(String), subscription_reference: T.nilable(String)).void + } + def initialize( + image_url: nil, + product_url: nil, + reference: nil, + subscription_reference: nil + ); end + end + class Paypal < ::Stripe::RequestParams + # Type of the line item. + sig { returns(T.nilable(String)) } + def category; end + sig { params(_category: T.nilable(String)).returns(T.nilable(String)) } + def category=(_category); end + # Description of the line item. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # The Stripe account ID of the connected account that sells the item. + sig { returns(T.nilable(String)) } + def sold_by; end + sig { params(_sold_by: T.nilable(String)).returns(T.nilable(String)) } + def sold_by=(_sold_by); end + sig { + params(category: T.nilable(String), description: T.nilable(String), sold_by: T.nilable(String)).void + } + def initialize(category: nil, description: nil, sold_by: nil); end + end + # This sub-hash contains line item details that are specific to `card` payment method." + sig { + returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Card)) + } + def card; end + sig { + params(_card: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Card)).returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Card)) + } + def card=(_card); end + # This sub-hash contains line item details that are specific to `card_present` payment method." + sig { + returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)) + } + def card_present; end + sig { + params(_card_present: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)).returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)) + } + def card_present=(_card_present); end + # This sub-hash contains line item details that are specific to `klarna` payment method." + sig { + returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)) + } + def klarna; end + sig { + params(_klarna: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)).returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)) + } + def klarna=(_klarna); end + # This sub-hash contains line item details that are specific to `paypal` payment method." + sig { + returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)) + } + def paypal; end + sig { + params(_paypal: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)) + } + def paypal=(_paypal); end + sig { + params(card: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Card), card_present: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent), klarna: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna), paypal: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).void + } + def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end + end + class Tax < ::Stripe::RequestParams + # The total tax on an item. Non-negative integer. + sig { returns(Integer) } + def total_tax_amount; end + sig { params(_total_tax_amount: Integer).returns(Integer) } + def total_tax_amount=(_total_tax_amount); end + sig { params(total_tax_amount: Integer).void } + def initialize(total_tax_amount: nil); end + end + # The amount an item was discounted for. Positive integer. + sig { returns(T.nilable(Integer)) } + def discount_amount; end + sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } + def discount_amount=(_discount_amount); end + # Payment method-specific information for line items. + sig { + returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions)) + } + def payment_method_options; end + sig { + params(_payment_method_options: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions)).returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions)) + } + def payment_method_options=(_payment_method_options); end + # Unique identifier of the product. At most 12 characters long. + sig { returns(T.nilable(String)) } + def product_code; end + sig { params(_product_code: T.nilable(String)).returns(T.nilable(String)) } + def product_code=(_product_code); end + # Name of the product. At most 100 characters long. + sig { returns(String) } + def product_name; end + sig { params(_product_name: String).returns(String) } + def product_name=(_product_name); end + # Number of items of the product. Positive integer. + sig { returns(Integer) } + def quantity; end + sig { params(_quantity: Integer).returns(Integer) } + def quantity=(_quantity); end + # Contains information about the tax on the item. + sig { + returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::Tax)) + } + def tax; end + sig { + params(_tax: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::Tax)).returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::Tax)) + } + def tax=(_tax); end + # Cost of the product. Non-negative integer. + sig { returns(Integer) } + def unit_cost; end + sig { params(_unit_cost: Integer).returns(Integer) } + def unit_cost=(_unit_cost); end + # A unit of measure for the line item, such as gallons, feet, meters, etc. + sig { returns(T.nilable(String)) } + def unit_of_measure; end + sig { params(_unit_of_measure: T.nilable(String)).returns(T.nilable(String)) } + def unit_of_measure=(_unit_of_measure); end + sig { + params(discount_amount: T.nilable(Integer), payment_method_options: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions), product_code: T.nilable(String), product_name: String, quantity: Integer, tax: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::Tax), unit_cost: Integer, unit_of_measure: T.nilable(String)).void + } + def initialize( + discount_amount: nil, + payment_method_options: nil, + product_code: nil, + product_name: nil, + quantity: nil, + tax: nil, + unit_cost: nil, + unit_of_measure: nil + ); end + end + class Shipping < ::Stripe::RequestParams + # Portion of the amount that is for shipping. + sig { returns(T.nilable(T.any(String, Integer))) } + def amount; end + sig { + params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) + } + def amount=(_amount); end + # The postal code that represents the shipping source. + sig { returns(T.nilable(String)) } + def from_postal_code; end + sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def from_postal_code=(_from_postal_code); end + # The postal code that represents the shipping destination. + sig { returns(T.nilable(String)) } + def to_postal_code; end + sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def to_postal_code=(_to_postal_code); end + sig { + params(amount: T.nilable(T.any(String, Integer)), from_postal_code: T.nilable(String), to_postal_code: T.nilable(String)).void + } + def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end + end + class Tax < ::Stripe::RequestParams + # Total portion of the amount that is for tax. + sig { returns(Integer) } + def total_tax_amount; end + sig { params(_total_tax_amount: Integer).returns(Integer) } + def total_tax_amount=(_total_tax_amount); end + sig { params(total_tax_amount: Integer).void } + def initialize(total_tax_amount: nil); end + end + # The total discount applied on the transaction. + sig { returns(T.nilable(T.any(String, Integer))) } + def discount_amount; end + sig { + params(_discount_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) + } + def discount_amount=(_discount_amount); end + # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. + sig { + returns(T.nilable(T.any(String, T::Array[PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem]))) + } + def line_items; end + sig { + params(_line_items: T.nilable(T.any(String, T::Array[PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem]))).returns(T.nilable(T.any(String, T::Array[PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem]))) + } + def line_items=(_line_items); end + # Contains information about the shipping portion of the amount. + sig { + returns(T.nilable(T.any(String, PaymentIntentIncrementAuthorizationParams::AmountDetails::Shipping))) + } + def shipping; end + sig { + params(_shipping: T.nilable(T.any(String, PaymentIntentIncrementAuthorizationParams::AmountDetails::Shipping))).returns(T.nilable(T.any(String, PaymentIntentIncrementAuthorizationParams::AmountDetails::Shipping))) + } + def shipping=(_shipping); end + # Contains information about the tax portion of the amount. + sig { + returns(T.nilable(T.any(String, PaymentIntentIncrementAuthorizationParams::AmountDetails::Tax))) + } + def tax; end + sig { + params(_tax: T.nilable(T.any(String, PaymentIntentIncrementAuthorizationParams::AmountDetails::Tax))).returns(T.nilable(T.any(String, PaymentIntentIncrementAuthorizationParams::AmountDetails::Tax))) + } + def tax=(_tax); end + sig { + params(discount_amount: T.nilable(T.any(String, Integer)), line_items: T.nilable(T.any(String, T::Array[PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem])), shipping: T.nilable(T.any(String, PaymentIntentIncrementAuthorizationParams::AmountDetails::Shipping)), tax: T.nilable(T.any(String, PaymentIntentIncrementAuthorizationParams::AmountDetails::Tax))).void + } + def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil); end + end + class PaymentDetails < ::Stripe::RequestParams + # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + sig { returns(T.nilable(String)) } + def customer_reference; end + sig { params(_customer_reference: T.nilable(String)).returns(T.nilable(String)) } + def customer_reference=(_customer_reference); end + # A unique value assigned by the business to identify the transaction. + sig { returns(T.nilable(String)) } + def order_reference; end + sig { params(_order_reference: T.nilable(String)).returns(T.nilable(String)) } + def order_reference=(_order_reference); end + sig { params(customer_reference: T.nilable(String), order_reference: T.nilable(String)).void } + def initialize(customer_reference: nil, order_reference: nil); end + end + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when a charge succeeds. sig { returns(T.nilable(Integer)) } def amount; end @@ -88774,6 +95246,13 @@ module Stripe def amount; end sig { params(_amount: Integer).returns(Integer) } def amount=(_amount); end + # Provides industry-specific information about the amount. + sig { returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails)) } + def amount_details; end + sig { + params(_amount_details: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails)).returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails)) + } + def amount_details=(_amount_details); end # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } def application_fee_amount; end @@ -88796,6 +95275,13 @@ module Stripe params(_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) } def metadata=(_metadata); end + # Provides industry-specific information about the charge. + sig { returns(T.nilable(PaymentIntentIncrementAuthorizationParams::PaymentDetails)) } + def payment_details; end + sig { + params(_payment_details: T.nilable(PaymentIntentIncrementAuthorizationParams::PaymentDetails)).returns(T.nilable(PaymentIntentIncrementAuthorizationParams::PaymentDetails)) + } + def payment_details=(_payment_details); end # Text that appears on the customer's statement as the statement descriptor for a non-card or card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). sig { returns(T.nilable(String)) } def statement_descriptor; end @@ -88810,14 +95296,16 @@ module Stripe } def transfer_data=(_transfer_data); end sig { - params(amount: Integer, application_fee_amount: T.nilable(Integer), description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), statement_descriptor: T.nilable(String), transfer_data: T.nilable(PaymentIntentIncrementAuthorizationParams::TransferData)).void + params(amount: Integer, amount_details: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails), application_fee_amount: T.nilable(Integer), description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), payment_details: T.nilable(PaymentIntentIncrementAuthorizationParams::PaymentDetails), statement_descriptor: T.nilable(String), transfer_data: T.nilable(PaymentIntentIncrementAuthorizationParams::TransferData)).void } def initialize( amount: nil, + amount_details: nil, application_fee_amount: nil, description: nil, expand: nil, metadata: nil, + payment_details: nil, statement_descriptor: nil, transfer_data: nil ); end @@ -88825,7 +95313,7 @@ module Stripe end # typed: true module Stripe - class PaymentIntentVerifyMicrodepositsParams < Stripe::RequestParams + class PaymentIntentVerifyMicrodepositsParams < ::Stripe::RequestParams # Two positive integers, in *cents*, equal to the values of the microdeposits sent to the bank account. sig { returns(T.nilable(T::Array[Integer])) } def amounts; end @@ -88849,7 +95337,7 @@ module Stripe end # typed: true module Stripe - class PaymentLinkListParams < Stripe::RequestParams + class PaymentLinkListParams < ::Stripe::RequestParams # Only return payment links that are active or inactive (e.g., pass `false` to list all inactive payment links). sig { returns(T.nilable(T::Boolean)) } def active; end @@ -88889,9 +95377,9 @@ module Stripe end # typed: true module Stripe - class PaymentLinkCreateParams < Stripe::RequestParams - class AfterCompletion < Stripe::RequestParams - class HostedConfirmation < Stripe::RequestParams + class PaymentLinkCreateParams < ::Stripe::RequestParams + class AfterCompletion < ::Stripe::RequestParams + class HostedConfirmation < ::Stripe::RequestParams # A custom message to display to the customer after the purchase is complete. sig { returns(T.nilable(String)) } def custom_message; end @@ -88900,7 +95388,7 @@ module Stripe sig { params(custom_message: T.nilable(String)).void } def initialize(custom_message: nil); end end - class Redirect < Stripe::RequestParams + class Redirect < ::Stripe::RequestParams # The URL the customer will be redirected to after the purchase is complete. You can embed `{CHECKOUT_SESSION_ID}` into the URL to have the `id` of the completed [checkout session](https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-id) included. sig { returns(String) } def url; end @@ -88933,8 +95421,8 @@ module Stripe } def initialize(hosted_confirmation: nil, redirect: nil, type: nil); end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -88967,8 +95455,8 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class ConsentCollection < Stripe::RequestParams - class PaymentMethodReuseAgreement < Stripe::RequestParams + class ConsentCollection < ::Stripe::RequestParams + class PaymentMethodReuseAgreement < ::Stripe::RequestParams # Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's # defaults will be used. When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI. sig { returns(String) } @@ -89009,9 +95497,9 @@ module Stripe terms_of_service: nil ); end end - class CustomField < Stripe::RequestParams - class Dropdown < Stripe::RequestParams - class Option < Stripe::RequestParams + class CustomField < ::Stripe::RequestParams + class Dropdown < ::Stripe::RequestParams + class Option < ::Stripe::RequestParams # The label for the option, displayed to the customer. Up to 100 characters. sig { returns(String) } def label; end @@ -89042,7 +95530,7 @@ module Stripe } def initialize(default_value: nil, options: nil); end end - class Label < Stripe::RequestParams + class Label < ::Stripe::RequestParams # Custom text for the label, displayed to the customer. Up to 50 characters. sig { returns(String) } def custom; end @@ -89056,7 +95544,7 @@ module Stripe sig { params(custom: String, type: String).void } def initialize(custom: nil, type: nil); end end - class Numeric < Stripe::RequestParams + class Numeric < ::Stripe::RequestParams # The value that will pre-fill the field on the payment page. sig { returns(T.nilable(String)) } def default_value; end @@ -89077,7 +95565,7 @@ module Stripe } def initialize(default_value: nil, maximum_length: nil, minimum_length: nil); end end - class Text < Stripe::RequestParams + class Text < ::Stripe::RequestParams # The value that will pre-fill the field on the payment page. sig { returns(T.nilable(String)) } def default_value; end @@ -89154,8 +95642,8 @@ module Stripe type: nil ); end end - class CustomText < Stripe::RequestParams - class AfterSubmit < Stripe::RequestParams + class CustomText < ::Stripe::RequestParams + class AfterSubmit < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -89164,7 +95652,7 @@ module Stripe sig { params(message: String).void } def initialize(message: nil); end end - class ShippingAddress < Stripe::RequestParams + class ShippingAddress < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -89173,7 +95661,7 @@ module Stripe sig { params(message: String).void } def initialize(message: nil); end end - class Submit < Stripe::RequestParams + class Submit < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -89182,7 +95670,7 @@ module Stripe sig { params(message: String).void } def initialize(message: nil); end end - class TermsOfServiceAcceptance < Stripe::RequestParams + class TermsOfServiceAcceptance < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -89233,9 +95721,9 @@ module Stripe terms_of_service_acceptance: nil ); end end - class InvoiceCreation < Stripe::RequestParams - class InvoiceData < Stripe::RequestParams - class CustomField < Stripe::RequestParams + class InvoiceCreation < ::Stripe::RequestParams + class InvoiceData < ::Stripe::RequestParams + class CustomField < ::Stripe::RequestParams # The name of the custom field. This may be up to 40 characters. sig { returns(String) } def name; end @@ -89249,7 +95737,7 @@ module Stripe sig { params(name: String, value: String).void } def initialize(name: nil, value: nil); end end - class Issuer < Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -89263,7 +95751,7 @@ module Stripe sig { params(account: T.nilable(String), type: String).void } def initialize(account: nil, type: nil); end end - class RenderingOptions < Stripe::RequestParams + class RenderingOptions < ::Stripe::RequestParams # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. sig { returns(T.nilable(T.any(String, String))) } def amount_tax_display; end @@ -89360,8 +95848,8 @@ module Stripe } def initialize(enabled: nil, invoice_data: nil); end end - class LineItem < Stripe::RequestParams - class AdjustableQuantity < Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative Integer. sig { returns(T::Boolean) } def enabled; end @@ -89382,8 +95870,8 @@ module Stripe } def initialize(enabled: nil, maximum: nil, minimum: nil); end end - class PriceData < Stripe::RequestParams - class ProductData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class ProductData < ::Stripe::RequestParams # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. sig { returns(T.nilable(String)) } def description; end @@ -89428,7 +95916,7 @@ module Stripe unit_label: nil ); end end - class Recurring < Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -89523,8 +96011,56 @@ module Stripe } def initialize(adjustable_quantity: nil, price: nil, price_data: nil, quantity: nil); end end - class OptionalItem < Stripe::RequestParams - class AdjustableQuantity < Stripe::RequestParams + class NameCollection < ::Stripe::RequestParams + class Business < ::Stripe::RequestParams + # Enable business name collection on the payment link. Defaults to `false`. + sig { returns(T::Boolean) } + def enabled; end + sig { params(_enabled: T::Boolean).returns(T::Boolean) } + def enabled=(_enabled); end + # Whether the customer is required to provide their business name before checking out. Defaults to `false`. + sig { returns(T.nilable(T::Boolean)) } + def optional; end + sig { params(_optional: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def optional=(_optional); end + sig { params(enabled: T::Boolean, optional: T.nilable(T::Boolean)).void } + def initialize(enabled: nil, optional: nil); end + end + class Individual < ::Stripe::RequestParams + # Enable individual name collection on the payment link. Defaults to `false`. + sig { returns(T::Boolean) } + def enabled; end + sig { params(_enabled: T::Boolean).returns(T::Boolean) } + def enabled=(_enabled); end + # Whether the customer is required to provide their full name before checking out. Defaults to `false`. + sig { returns(T.nilable(T::Boolean)) } + def optional; end + sig { params(_optional: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def optional=(_optional); end + sig { params(enabled: T::Boolean, optional: T.nilable(T::Boolean)).void } + def initialize(enabled: nil, optional: nil); end + end + # Controls settings applied for collecting the customer's business name. + sig { returns(T.nilable(PaymentLinkCreateParams::NameCollection::Business)) } + def business; end + sig { + params(_business: T.nilable(PaymentLinkCreateParams::NameCollection::Business)).returns(T.nilable(PaymentLinkCreateParams::NameCollection::Business)) + } + def business=(_business); end + # Controls settings applied for collecting the customer's individual name. + sig { returns(T.nilable(PaymentLinkCreateParams::NameCollection::Individual)) } + def individual; end + sig { + params(_individual: T.nilable(PaymentLinkCreateParams::NameCollection::Individual)).returns(T.nilable(PaymentLinkCreateParams::NameCollection::Individual)) + } + def individual=(_individual); end + sig { + params(business: T.nilable(PaymentLinkCreateParams::NameCollection::Business), individual: T.nilable(PaymentLinkCreateParams::NameCollection::Individual)).void + } + def initialize(business: nil, individual: nil); end + end + class OptionalItem < ::Stripe::RequestParams + class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative integer. sig { returns(T::Boolean) } def enabled; end @@ -89567,7 +96103,7 @@ module Stripe } def initialize(adjustable_quantity: nil, price: nil, quantity: nil); end end - class PaymentIntentData < Stripe::RequestParams + class PaymentIntentData < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -89630,7 +96166,7 @@ module Stripe transfer_group: nil ); end end - class PhoneNumberCollection < Stripe::RequestParams + class PhoneNumberCollection < ::Stripe::RequestParams # Set to `true` to enable phone number collection. sig { returns(T::Boolean) } def enabled; end @@ -89639,8 +96175,8 @@ module Stripe sig { params(enabled: T::Boolean).void } def initialize(enabled: nil); end end - class Restrictions < Stripe::RequestParams - class CompletedSessions < Stripe::RequestParams + class Restrictions < ::Stripe::RequestParams + class CompletedSessions < ::Stripe::RequestParams # The maximum number of checkout sessions that can be completed for the `completed_sessions` restriction to be met. sig { returns(Integer) } def limit; end @@ -89661,7 +96197,7 @@ module Stripe } def initialize(completed_sessions: nil); end end - class ShippingAddressCollection < Stripe::RequestParams + class ShippingAddressCollection < ::Stripe::RequestParams # An array of two-letter ISO country codes representing which countries Checkout should provide as options for # shipping locations. sig { returns(T::Array[String]) } @@ -89671,7 +96207,7 @@ module Stripe sig { params(allowed_countries: T::Array[String]).void } def initialize(allowed_countries: nil); end end - class ShippingOption < Stripe::RequestParams + class ShippingOption < ::Stripe::RequestParams # The ID of the Shipping Rate to use for this shipping option. sig { returns(T.nilable(String)) } def shipping_rate; end @@ -89680,9 +96216,9 @@ module Stripe sig { params(shipping_rate: T.nilable(String)).void } def initialize(shipping_rate: nil); end end - class SubscriptionData < Stripe::RequestParams - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class SubscriptionData < ::Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -89710,8 +96246,8 @@ module Stripe } def initialize(issuer: nil); end end - class TrialSettings < Stripe::RequestParams - class EndBehavior < Stripe::RequestParams + class TrialSettings < ::Stripe::RequestParams + class EndBehavior < ::Stripe::RequestParams # Indicates how the subscription should change when the trial ends if the user did not provide a payment method. sig { returns(String) } def missing_payment_method; end @@ -89774,7 +96310,7 @@ module Stripe trial_settings: nil ); end end - class TaxIdCollection < Stripe::RequestParams + class TaxIdCollection < ::Stripe::RequestParams # Enable tax ID collection during checkout. Defaults to `false`. sig { returns(T::Boolean) } def enabled; end @@ -89788,7 +96324,7 @@ module Stripe sig { params(enabled: T::Boolean, required: T.nilable(String)).void } def initialize(enabled: nil, required: nil); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when a charge succeeds. sig { returns(T.nilable(Integer)) } def amount; end @@ -89901,6 +96437,13 @@ module Stripe params(_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) } def metadata=(_metadata); end + # Controls settings applied for collecting the customer's name. + sig { returns(T.nilable(PaymentLinkCreateParams::NameCollection)) } + def name_collection; end + sig { + params(_name_collection: T.nilable(PaymentLinkCreateParams::NameCollection)).returns(T.nilable(PaymentLinkCreateParams::NameCollection)) + } + def name_collection=(_name_collection); end # The account on behalf of which to charge. sig { returns(T.nilable(String)) } def on_behalf_of; end @@ -89995,7 +96538,7 @@ module Stripe } def transfer_data=(_transfer_data); end sig { - params(after_completion: T.nilable(PaymentLinkCreateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), application_fee_amount: T.nilable(Integer), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(PaymentLinkCreateParams::AutomaticTax), billing_address_collection: T.nilable(String), consent_collection: T.nilable(PaymentLinkCreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[PaymentLinkCreateParams::CustomField]), custom_text: T.nilable(PaymentLinkCreateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(PaymentLinkCreateParams::InvoiceCreation), line_items: T::Array[PaymentLinkCreateParams::LineItem], metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), optional_items: T.nilable(T::Array[PaymentLinkCreateParams::OptionalItem]), payment_intent_data: T.nilable(PaymentLinkCreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T::Array[String]), phone_number_collection: T.nilable(PaymentLinkCreateParams::PhoneNumberCollection), restrictions: T.nilable(PaymentLinkCreateParams::Restrictions), shipping_address_collection: T.nilable(PaymentLinkCreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[PaymentLinkCreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(PaymentLinkCreateParams::SubscriptionData), tax_id_collection: T.nilable(PaymentLinkCreateParams::TaxIdCollection), transfer_data: T.nilable(PaymentLinkCreateParams::TransferData)).void + params(after_completion: T.nilable(PaymentLinkCreateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), application_fee_amount: T.nilable(Integer), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(PaymentLinkCreateParams::AutomaticTax), billing_address_collection: T.nilable(String), consent_collection: T.nilable(PaymentLinkCreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[PaymentLinkCreateParams::CustomField]), custom_text: T.nilable(PaymentLinkCreateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(PaymentLinkCreateParams::InvoiceCreation), line_items: T::Array[PaymentLinkCreateParams::LineItem], metadata: T.nilable(T::Hash[String, String]), name_collection: T.nilable(PaymentLinkCreateParams::NameCollection), on_behalf_of: T.nilable(String), optional_items: T.nilable(T::Array[PaymentLinkCreateParams::OptionalItem]), payment_intent_data: T.nilable(PaymentLinkCreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T::Array[String]), phone_number_collection: T.nilable(PaymentLinkCreateParams::PhoneNumberCollection), restrictions: T.nilable(PaymentLinkCreateParams::Restrictions), shipping_address_collection: T.nilable(PaymentLinkCreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[PaymentLinkCreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(PaymentLinkCreateParams::SubscriptionData), tax_id_collection: T.nilable(PaymentLinkCreateParams::TaxIdCollection), transfer_data: T.nilable(PaymentLinkCreateParams::TransferData)).void } def initialize( after_completion: nil, @@ -90014,6 +96557,7 @@ module Stripe invoice_creation: nil, line_items: nil, metadata: nil, + name_collection: nil, on_behalf_of: nil, optional_items: nil, payment_intent_data: nil, @@ -90032,9 +96576,9 @@ module Stripe end # typed: true module Stripe - class PaymentLinkUpdateParams < Stripe::RequestParams - class AfterCompletion < Stripe::RequestParams - class HostedConfirmation < Stripe::RequestParams + class PaymentLinkUpdateParams < ::Stripe::RequestParams + class AfterCompletion < ::Stripe::RequestParams + class HostedConfirmation < ::Stripe::RequestParams # A custom message to display to the customer after the purchase is complete. sig { returns(T.nilable(String)) } def custom_message; end @@ -90043,7 +96587,7 @@ module Stripe sig { params(custom_message: T.nilable(String)).void } def initialize(custom_message: nil); end end - class Redirect < Stripe::RequestParams + class Redirect < ::Stripe::RequestParams # The URL the customer will be redirected to after the purchase is complete. You can embed `{CHECKOUT_SESSION_ID}` into the URL to have the `id` of the completed [checkout session](https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-id) included. sig { returns(String) } def url; end @@ -90076,8 +96620,8 @@ module Stripe } def initialize(hosted_confirmation: nil, redirect: nil, type: nil); end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -90110,9 +96654,9 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class CustomField < Stripe::RequestParams - class Dropdown < Stripe::RequestParams - class Option < Stripe::RequestParams + class CustomField < ::Stripe::RequestParams + class Dropdown < ::Stripe::RequestParams + class Option < ::Stripe::RequestParams # The label for the option, displayed to the customer. Up to 100 characters. sig { returns(String) } def label; end @@ -90143,7 +96687,7 @@ module Stripe } def initialize(default_value: nil, options: nil); end end - class Label < Stripe::RequestParams + class Label < ::Stripe::RequestParams # Custom text for the label, displayed to the customer. Up to 50 characters. sig { returns(String) } def custom; end @@ -90157,7 +96701,7 @@ module Stripe sig { params(custom: String, type: String).void } def initialize(custom: nil, type: nil); end end - class Numeric < Stripe::RequestParams + class Numeric < ::Stripe::RequestParams # The value that will pre-fill the field on the payment page. sig { returns(T.nilable(String)) } def default_value; end @@ -90178,7 +96722,7 @@ module Stripe } def initialize(default_value: nil, maximum_length: nil, minimum_length: nil); end end - class Text < Stripe::RequestParams + class Text < ::Stripe::RequestParams # The value that will pre-fill the field on the payment page. sig { returns(T.nilable(String)) } def default_value; end @@ -90255,8 +96799,8 @@ module Stripe type: nil ); end end - class CustomText < Stripe::RequestParams - class AfterSubmit < Stripe::RequestParams + class CustomText < ::Stripe::RequestParams + class AfterSubmit < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -90265,7 +96809,7 @@ module Stripe sig { params(message: String).void } def initialize(message: nil); end end - class ShippingAddress < Stripe::RequestParams + class ShippingAddress < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -90274,7 +96818,7 @@ module Stripe sig { params(message: String).void } def initialize(message: nil); end end - class Submit < Stripe::RequestParams + class Submit < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -90283,7 +96827,7 @@ module Stripe sig { params(message: String).void } def initialize(message: nil); end end - class TermsOfServiceAcceptance < Stripe::RequestParams + class TermsOfServiceAcceptance < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -90334,9 +96878,9 @@ module Stripe terms_of_service_acceptance: nil ); end end - class InvoiceCreation < Stripe::RequestParams - class InvoiceData < Stripe::RequestParams - class CustomField < Stripe::RequestParams + class InvoiceCreation < ::Stripe::RequestParams + class InvoiceData < ::Stripe::RequestParams + class CustomField < ::Stripe::RequestParams # The name of the custom field. This may be up to 40 characters. sig { returns(String) } def name; end @@ -90350,7 +96894,7 @@ module Stripe sig { params(name: String, value: String).void } def initialize(name: nil, value: nil); end end - class Issuer < Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -90364,7 +96908,7 @@ module Stripe sig { params(account: T.nilable(String), type: String).void } def initialize(account: nil, type: nil); end end - class RenderingOptions < Stripe::RequestParams + class RenderingOptions < ::Stripe::RequestParams # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. sig { returns(T.nilable(T.any(String, String))) } def amount_tax_display; end @@ -90461,8 +97005,8 @@ module Stripe } def initialize(enabled: nil, invoice_data: nil); end end - class LineItem < Stripe::RequestParams - class AdjustableQuantity < Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative Integer. sig { returns(T::Boolean) } def enabled; end @@ -90505,7 +97049,55 @@ module Stripe } def initialize(adjustable_quantity: nil, id: nil, quantity: nil); end end - class PaymentIntentData < Stripe::RequestParams + class NameCollection < ::Stripe::RequestParams + class Business < ::Stripe::RequestParams + # Enable business name collection on the payment link. Defaults to `false`. + sig { returns(T::Boolean) } + def enabled; end + sig { params(_enabled: T::Boolean).returns(T::Boolean) } + def enabled=(_enabled); end + # Whether the customer is required to provide their business name before checking out. Defaults to `false`. + sig { returns(T.nilable(T::Boolean)) } + def optional; end + sig { params(_optional: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def optional=(_optional); end + sig { params(enabled: T::Boolean, optional: T.nilable(T::Boolean)).void } + def initialize(enabled: nil, optional: nil); end + end + class Individual < ::Stripe::RequestParams + # Enable individual name collection on the payment link. Defaults to `false`. + sig { returns(T::Boolean) } + def enabled; end + sig { params(_enabled: T::Boolean).returns(T::Boolean) } + def enabled=(_enabled); end + # Whether the customer is required to provide their full name before checking out. Defaults to `false`. + sig { returns(T.nilable(T::Boolean)) } + def optional; end + sig { params(_optional: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def optional=(_optional); end + sig { params(enabled: T::Boolean, optional: T.nilable(T::Boolean)).void } + def initialize(enabled: nil, optional: nil); end + end + # Controls settings applied for collecting the customer's business name. + sig { returns(T.nilable(PaymentLinkUpdateParams::NameCollection::Business)) } + def business; end + sig { + params(_business: T.nilable(PaymentLinkUpdateParams::NameCollection::Business)).returns(T.nilable(PaymentLinkUpdateParams::NameCollection::Business)) + } + def business=(_business); end + # Controls settings applied for collecting the customer's individual name. + sig { returns(T.nilable(PaymentLinkUpdateParams::NameCollection::Individual)) } + def individual; end + sig { + params(_individual: T.nilable(PaymentLinkUpdateParams::NameCollection::Individual)).returns(T.nilable(PaymentLinkUpdateParams::NameCollection::Individual)) + } + def individual=(_individual); end + sig { + params(business: T.nilable(PaymentLinkUpdateParams::NameCollection::Business), individual: T.nilable(PaymentLinkUpdateParams::NameCollection::Individual)).void + } + def initialize(business: nil, individual: nil); end + end + class PaymentIntentData < ::Stripe::RequestParams # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } def description; end @@ -90546,7 +97138,7 @@ module Stripe transfer_group: nil ); end end - class PhoneNumberCollection < Stripe::RequestParams + class PhoneNumberCollection < ::Stripe::RequestParams # Set to `true` to enable phone number collection. sig { returns(T::Boolean) } def enabled; end @@ -90555,8 +97147,8 @@ module Stripe sig { params(enabled: T::Boolean).void } def initialize(enabled: nil); end end - class Restrictions < Stripe::RequestParams - class CompletedSessions < Stripe::RequestParams + class Restrictions < ::Stripe::RequestParams + class CompletedSessions < ::Stripe::RequestParams # The maximum number of checkout sessions that can be completed for the `completed_sessions` restriction to be met. sig { returns(Integer) } def limit; end @@ -90577,7 +97169,7 @@ module Stripe } def initialize(completed_sessions: nil); end end - class ShippingAddressCollection < Stripe::RequestParams + class ShippingAddressCollection < ::Stripe::RequestParams # An array of two-letter ISO country codes representing which countries Checkout should provide as options for # shipping locations. sig { returns(T::Array[String]) } @@ -90587,9 +97179,9 @@ module Stripe sig { params(allowed_countries: T::Array[String]).void } def initialize(allowed_countries: nil); end end - class SubscriptionData < Stripe::RequestParams - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class SubscriptionData < ::Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -90617,8 +97209,8 @@ module Stripe } def initialize(issuer: nil); end end - class TrialSettings < Stripe::RequestParams - class EndBehavior < Stripe::RequestParams + class TrialSettings < ::Stripe::RequestParams + class EndBehavior < ::Stripe::RequestParams # Indicates how the subscription should change when the trial ends if the user did not provide a payment method. sig { returns(String) } def missing_payment_method; end @@ -90679,7 +97271,7 @@ module Stripe trial_settings: nil ); end end - class TaxIdCollection < Stripe::RequestParams + class TaxIdCollection < ::Stripe::RequestParams # Enable tax ID collection during checkout. Defaults to `false`. sig { returns(T::Boolean) } def enabled; end @@ -90772,6 +97364,13 @@ module Stripe params(_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) } def metadata=(_metadata); end + # Controls settings applied for collecting the customer's name. + sig { returns(T.nilable(T.any(String, PaymentLinkUpdateParams::NameCollection))) } + def name_collection; end + sig { + params(_name_collection: T.nilable(T.any(String, PaymentLinkUpdateParams::NameCollection))).returns(T.nilable(T.any(String, PaymentLinkUpdateParams::NameCollection))) + } + def name_collection=(_name_collection); end # A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode. sig { returns(T.nilable(PaymentLinkUpdateParams::PaymentIntentData)) } def payment_intent_data; end @@ -90838,7 +97437,7 @@ module Stripe } def tax_id_collection=(_tax_id_collection); end sig { - params(active: T.nilable(T::Boolean), after_completion: T.nilable(PaymentLinkUpdateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(PaymentLinkUpdateParams::AutomaticTax), billing_address_collection: T.nilable(String), custom_fields: T.nilable(T.any(String, T::Array[PaymentLinkUpdateParams::CustomField])), custom_text: T.nilable(PaymentLinkUpdateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(PaymentLinkUpdateParams::InvoiceCreation), line_items: T.nilable(T::Array[PaymentLinkUpdateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), payment_intent_data: T.nilable(PaymentLinkUpdateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T.any(String, T::Array[String])), phone_number_collection: T.nilable(PaymentLinkUpdateParams::PhoneNumberCollection), restrictions: T.nilable(T.any(String, PaymentLinkUpdateParams::Restrictions)), shipping_address_collection: T.nilable(T.any(String, PaymentLinkUpdateParams::ShippingAddressCollection)), submit_type: T.nilable(String), subscription_data: T.nilable(PaymentLinkUpdateParams::SubscriptionData), tax_id_collection: T.nilable(PaymentLinkUpdateParams::TaxIdCollection)).void + params(active: T.nilable(T::Boolean), after_completion: T.nilable(PaymentLinkUpdateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(PaymentLinkUpdateParams::AutomaticTax), billing_address_collection: T.nilable(String), custom_fields: T.nilable(T.any(String, T::Array[PaymentLinkUpdateParams::CustomField])), custom_text: T.nilable(PaymentLinkUpdateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(PaymentLinkUpdateParams::InvoiceCreation), line_items: T.nilable(T::Array[PaymentLinkUpdateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), name_collection: T.nilable(T.any(String, PaymentLinkUpdateParams::NameCollection)), payment_intent_data: T.nilable(PaymentLinkUpdateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T.any(String, T::Array[String])), phone_number_collection: T.nilable(PaymentLinkUpdateParams::PhoneNumberCollection), restrictions: T.nilable(T.any(String, PaymentLinkUpdateParams::Restrictions)), shipping_address_collection: T.nilable(T.any(String, PaymentLinkUpdateParams::ShippingAddressCollection)), submit_type: T.nilable(String), subscription_data: T.nilable(PaymentLinkUpdateParams::SubscriptionData), tax_id_collection: T.nilable(PaymentLinkUpdateParams::TaxIdCollection)).void } def initialize( active: nil, @@ -90854,6 +97453,7 @@ module Stripe invoice_creation: nil, line_items: nil, metadata: nil, + name_collection: nil, payment_intent_data: nil, payment_method_collection: nil, payment_method_types: nil, @@ -90868,7 +97468,7 @@ module Stripe end # typed: true module Stripe - class PaymentLinkListLineItemsParams < Stripe::RequestParams + class PaymentLinkListLineItemsParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -90897,7 +97497,7 @@ module Stripe end # typed: true module Stripe - class PaymentMethodConfigurationListParams < Stripe::RequestParams + class PaymentMethodConfigurationListParams < ::Stripe::RequestParams # The Connect application to filter by. sig { returns(T.nilable(String)) } def application; end @@ -90937,9 +97537,9 @@ module Stripe end # typed: true module Stripe - class PaymentMethodConfigurationCreateParams < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class PaymentMethodConfigurationCreateParams < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -90962,8 +97562,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Affirm < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -90984,8 +97584,8 @@ module Stripe } def initialize(display_preference: nil); end end - class AfterpayClearpay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class AfterpayClearpay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91008,8 +97608,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Alipay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Alipay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91030,8 +97630,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Alma < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Alma < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91052,8 +97652,8 @@ module Stripe } def initialize(display_preference: nil); end end - class AmazonPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91076,8 +97676,8 @@ module Stripe } def initialize(display_preference: nil); end end - class ApplePay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class ApplePay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91100,8 +97700,8 @@ module Stripe } def initialize(display_preference: nil); end end - class ApplePayLater < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class ApplePayLater < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91124,8 +97724,8 @@ module Stripe } def initialize(display_preference: nil); end end - class AuBecsDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91148,8 +97748,8 @@ module Stripe } def initialize(display_preference: nil); end end - class BacsDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91172,8 +97772,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Bancontact < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91196,8 +97796,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Billie < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Billie < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91218,8 +97818,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Blik < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Blik < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91240,8 +97840,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Boleto < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91262,8 +97862,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Card < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91284,8 +97884,8 @@ module Stripe } def initialize(display_preference: nil); end end - class CartesBancaires < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91308,8 +97908,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Cashapp < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91330,8 +97930,30 @@ module Stripe } def initialize(display_preference: nil); end end - class CustomerBalance < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Crypto < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::Crypto::DisplayPreference)) } + def display_preference; end + sig { + params(_display_preference: T.nilable(PaymentMethodConfigurationCreateParams::Crypto::DisplayPreference)).returns(T.nilable(PaymentMethodConfigurationCreateParams::Crypto::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(PaymentMethodConfigurationCreateParams::Crypto::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end + class CustomerBalance < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91354,8 +97976,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Eps < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Eps < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91376,8 +97998,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Fpx < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91398,8 +98020,8 @@ module Stripe } def initialize(display_preference: nil); end end - class FrMealVoucherConecs < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class FrMealVoucherConecs < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91422,8 +98044,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Giropay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91444,8 +98066,8 @@ module Stripe } def initialize(display_preference: nil); end end - class GooglePay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class GooglePay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91468,8 +98090,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Grabpay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Grabpay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91490,8 +98112,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Ideal < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91512,8 +98134,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Jcb < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Jcb < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91534,8 +98156,8 @@ module Stripe } def initialize(display_preference: nil); end end - class KakaoPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class KakaoPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91558,8 +98180,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Klarna < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91580,8 +98202,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Konbini < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91602,8 +98224,8 @@ module Stripe } def initialize(display_preference: nil); end end - class KrCard < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class KrCard < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91624,8 +98246,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Link < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Link < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91646,8 +98268,30 @@ module Stripe } def initialize(display_preference: nil); end end - class Mobilepay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class MbWay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::MbWay::DisplayPreference)) } + def display_preference; end + sig { + params(_display_preference: T.nilable(PaymentMethodConfigurationCreateParams::MbWay::DisplayPreference)).returns(T.nilable(PaymentMethodConfigurationCreateParams::MbWay::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(PaymentMethodConfigurationCreateParams::MbWay::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end + class Mobilepay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91670,8 +98314,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Multibanco < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Multibanco < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91694,8 +98338,8 @@ module Stripe } def initialize(display_preference: nil); end end - class NaverPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91718,8 +98362,8 @@ module Stripe } def initialize(display_preference: nil); end end - class NzBankAccount < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91742,8 +98386,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Oxxo < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91764,8 +98408,8 @@ module Stripe } def initialize(display_preference: nil); end end - class P24 < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class P24 < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91786,8 +98430,8 @@ module Stripe } def initialize(display_preference: nil); end end - class PayByBank < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91810,8 +98454,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Payco < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Payco < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91832,8 +98476,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Paynow < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Paynow < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91854,8 +98498,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Paypal < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91876,8 +98520,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Pix < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Pix < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91898,8 +98542,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Promptpay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Promptpay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91922,8 +98566,8 @@ module Stripe } def initialize(display_preference: nil); end end - class RevolutPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91946,8 +98590,8 @@ module Stripe } def initialize(display_preference: nil); end end - class SamsungPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class SamsungPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91970,8 +98614,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Satispay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Satispay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -91994,8 +98638,8 @@ module Stripe } def initialize(display_preference: nil); end end - class SepaDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92018,8 +98662,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Sofort < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92040,8 +98684,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Swish < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Swish < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92062,8 +98706,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Twint < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Twint < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92084,8 +98728,8 @@ module Stripe } def initialize(display_preference: nil); end end - class UsBankAccount < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92108,8 +98752,8 @@ module Stripe } def initialize(display_preference: nil); end end - class WechatPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class WechatPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92132,8 +98776,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Zip < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Zip < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92273,6 +98917,13 @@ module Stripe params(_cashapp: T.nilable(PaymentMethodConfigurationCreateParams::Cashapp)).returns(T.nilable(PaymentMethodConfigurationCreateParams::Cashapp)) } def cashapp=(_cashapp); end + # [Stablecoin payments](https://stripe.com/docs/payments/stablecoin-payments) enable customers to pay in stablecoins like USDC from 100s of wallets including Phantom and Metamask. + sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::Crypto)) } + def crypto; end + sig { + params(_crypto: T.nilable(PaymentMethodConfigurationCreateParams::Crypto)).returns(T.nilable(PaymentMethodConfigurationCreateParams::Crypto)) + } + def crypto=(_crypto); end # Uses a customer’s [cash balance](https://stripe.com/docs/payments/customer-balance) for the payment. The cash balance can be funded via a bank transfer. Check this [page](https://stripe.com/docs/payments/bank-transfers) for more details. sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::CustomerBalance)) } def customer_balance; end @@ -92376,6 +99027,13 @@ module Stripe params(_link: T.nilable(PaymentMethodConfigurationCreateParams::Link)).returns(T.nilable(PaymentMethodConfigurationCreateParams::Link)) } def link=(_link); end + # MB WAY is the most popular wallet in Portugal. After entering their phone number in your checkout, customers approve the payment directly in their MB WAY app. Check this [page](https://stripe.com/docs/payments/mb-way) for more details. + sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::MbWay)) } + def mb_way; end + sig { + params(_mb_way: T.nilable(PaymentMethodConfigurationCreateParams::MbWay)).returns(T.nilable(PaymentMethodConfigurationCreateParams::MbWay)) + } + def mb_way=(_mb_way); end # MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details. sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::Mobilepay)) } def mobilepay; end @@ -92541,7 +99199,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(PaymentMethodConfigurationCreateParams::AcssDebit), affirm: T.nilable(PaymentMethodConfigurationCreateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodConfigurationCreateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodConfigurationCreateParams::Alipay), alma: T.nilable(PaymentMethodConfigurationCreateParams::Alma), amazon_pay: T.nilable(PaymentMethodConfigurationCreateParams::AmazonPay), apple_pay: T.nilable(PaymentMethodConfigurationCreateParams::ApplePay), apple_pay_later: T.nilable(PaymentMethodConfigurationCreateParams::ApplePayLater), au_becs_debit: T.nilable(PaymentMethodConfigurationCreateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodConfigurationCreateParams::BacsDebit), bancontact: T.nilable(PaymentMethodConfigurationCreateParams::Bancontact), billie: T.nilable(PaymentMethodConfigurationCreateParams::Billie), blik: T.nilable(PaymentMethodConfigurationCreateParams::Blik), boleto: T.nilable(PaymentMethodConfigurationCreateParams::Boleto), card: T.nilable(PaymentMethodConfigurationCreateParams::Card), cartes_bancaires: T.nilable(PaymentMethodConfigurationCreateParams::CartesBancaires), cashapp: T.nilable(PaymentMethodConfigurationCreateParams::Cashapp), customer_balance: T.nilable(PaymentMethodConfigurationCreateParams::CustomerBalance), eps: T.nilable(PaymentMethodConfigurationCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodConfigurationCreateParams::Fpx), fr_meal_voucher_conecs: T.nilable(PaymentMethodConfigurationCreateParams::FrMealVoucherConecs), giropay: T.nilable(PaymentMethodConfigurationCreateParams::Giropay), google_pay: T.nilable(PaymentMethodConfigurationCreateParams::GooglePay), grabpay: T.nilable(PaymentMethodConfigurationCreateParams::Grabpay), ideal: T.nilable(PaymentMethodConfigurationCreateParams::Ideal), jcb: T.nilable(PaymentMethodConfigurationCreateParams::Jcb), kakao_pay: T.nilable(PaymentMethodConfigurationCreateParams::KakaoPay), klarna: T.nilable(PaymentMethodConfigurationCreateParams::Klarna), konbini: T.nilable(PaymentMethodConfigurationCreateParams::Konbini), kr_card: T.nilable(PaymentMethodConfigurationCreateParams::KrCard), link: T.nilable(PaymentMethodConfigurationCreateParams::Link), mobilepay: T.nilable(PaymentMethodConfigurationCreateParams::Mobilepay), multibanco: T.nilable(PaymentMethodConfigurationCreateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(PaymentMethodConfigurationCreateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodConfigurationCreateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodConfigurationCreateParams::Oxxo), p24: T.nilable(PaymentMethodConfigurationCreateParams::P24), parent: T.nilable(String), pay_by_bank: T.nilable(PaymentMethodConfigurationCreateParams::PayByBank), payco: T.nilable(PaymentMethodConfigurationCreateParams::Payco), paynow: T.nilable(PaymentMethodConfigurationCreateParams::Paynow), paypal: T.nilable(PaymentMethodConfigurationCreateParams::Paypal), pix: T.nilable(PaymentMethodConfigurationCreateParams::Pix), promptpay: T.nilable(PaymentMethodConfigurationCreateParams::Promptpay), revolut_pay: T.nilable(PaymentMethodConfigurationCreateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodConfigurationCreateParams::SamsungPay), satispay: T.nilable(PaymentMethodConfigurationCreateParams::Satispay), sepa_debit: T.nilable(PaymentMethodConfigurationCreateParams::SepaDebit), sofort: T.nilable(PaymentMethodConfigurationCreateParams::Sofort), swish: T.nilable(PaymentMethodConfigurationCreateParams::Swish), twint: T.nilable(PaymentMethodConfigurationCreateParams::Twint), us_bank_account: T.nilable(PaymentMethodConfigurationCreateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodConfigurationCreateParams::WechatPay), zip: T.nilable(PaymentMethodConfigurationCreateParams::Zip)).void + params(acss_debit: T.nilable(PaymentMethodConfigurationCreateParams::AcssDebit), affirm: T.nilable(PaymentMethodConfigurationCreateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodConfigurationCreateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodConfigurationCreateParams::Alipay), alma: T.nilable(PaymentMethodConfigurationCreateParams::Alma), amazon_pay: T.nilable(PaymentMethodConfigurationCreateParams::AmazonPay), apple_pay: T.nilable(PaymentMethodConfigurationCreateParams::ApplePay), apple_pay_later: T.nilable(PaymentMethodConfigurationCreateParams::ApplePayLater), au_becs_debit: T.nilable(PaymentMethodConfigurationCreateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodConfigurationCreateParams::BacsDebit), bancontact: T.nilable(PaymentMethodConfigurationCreateParams::Bancontact), billie: T.nilable(PaymentMethodConfigurationCreateParams::Billie), blik: T.nilable(PaymentMethodConfigurationCreateParams::Blik), boleto: T.nilable(PaymentMethodConfigurationCreateParams::Boleto), card: T.nilable(PaymentMethodConfigurationCreateParams::Card), cartes_bancaires: T.nilable(PaymentMethodConfigurationCreateParams::CartesBancaires), cashapp: T.nilable(PaymentMethodConfigurationCreateParams::Cashapp), crypto: T.nilable(PaymentMethodConfigurationCreateParams::Crypto), customer_balance: T.nilable(PaymentMethodConfigurationCreateParams::CustomerBalance), eps: T.nilable(PaymentMethodConfigurationCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodConfigurationCreateParams::Fpx), fr_meal_voucher_conecs: T.nilable(PaymentMethodConfigurationCreateParams::FrMealVoucherConecs), giropay: T.nilable(PaymentMethodConfigurationCreateParams::Giropay), google_pay: T.nilable(PaymentMethodConfigurationCreateParams::GooglePay), grabpay: T.nilable(PaymentMethodConfigurationCreateParams::Grabpay), ideal: T.nilable(PaymentMethodConfigurationCreateParams::Ideal), jcb: T.nilable(PaymentMethodConfigurationCreateParams::Jcb), kakao_pay: T.nilable(PaymentMethodConfigurationCreateParams::KakaoPay), klarna: T.nilable(PaymentMethodConfigurationCreateParams::Klarna), konbini: T.nilable(PaymentMethodConfigurationCreateParams::Konbini), kr_card: T.nilable(PaymentMethodConfigurationCreateParams::KrCard), link: T.nilable(PaymentMethodConfigurationCreateParams::Link), mb_way: T.nilable(PaymentMethodConfigurationCreateParams::MbWay), mobilepay: T.nilable(PaymentMethodConfigurationCreateParams::Mobilepay), multibanco: T.nilable(PaymentMethodConfigurationCreateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(PaymentMethodConfigurationCreateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodConfigurationCreateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodConfigurationCreateParams::Oxxo), p24: T.nilable(PaymentMethodConfigurationCreateParams::P24), parent: T.nilable(String), pay_by_bank: T.nilable(PaymentMethodConfigurationCreateParams::PayByBank), payco: T.nilable(PaymentMethodConfigurationCreateParams::Payco), paynow: T.nilable(PaymentMethodConfigurationCreateParams::Paynow), paypal: T.nilable(PaymentMethodConfigurationCreateParams::Paypal), pix: T.nilable(PaymentMethodConfigurationCreateParams::Pix), promptpay: T.nilable(PaymentMethodConfigurationCreateParams::Promptpay), revolut_pay: T.nilable(PaymentMethodConfigurationCreateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodConfigurationCreateParams::SamsungPay), satispay: T.nilable(PaymentMethodConfigurationCreateParams::Satispay), sepa_debit: T.nilable(PaymentMethodConfigurationCreateParams::SepaDebit), sofort: T.nilable(PaymentMethodConfigurationCreateParams::Sofort), swish: T.nilable(PaymentMethodConfigurationCreateParams::Swish), twint: T.nilable(PaymentMethodConfigurationCreateParams::Twint), us_bank_account: T.nilable(PaymentMethodConfigurationCreateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodConfigurationCreateParams::WechatPay), zip: T.nilable(PaymentMethodConfigurationCreateParams::Zip)).void } def initialize( acss_debit: nil, @@ -92561,6 +99219,7 @@ module Stripe card: nil, cartes_bancaires: nil, cashapp: nil, + crypto: nil, customer_balance: nil, eps: nil, expand: nil, @@ -92576,6 +99235,7 @@ module Stripe konbini: nil, kr_card: nil, link: nil, + mb_way: nil, mobilepay: nil, multibanco: nil, name: nil, @@ -92605,9 +99265,9 @@ module Stripe end # typed: true module Stripe - class PaymentMethodConfigurationUpdateParams < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class PaymentMethodConfigurationUpdateParams < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92630,8 +99290,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Affirm < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92652,8 +99312,8 @@ module Stripe } def initialize(display_preference: nil); end end - class AfterpayClearpay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class AfterpayClearpay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92676,8 +99336,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Alipay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Alipay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92698,8 +99358,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Alma < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Alma < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92720,8 +99380,8 @@ module Stripe } def initialize(display_preference: nil); end end - class AmazonPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92744,8 +99404,8 @@ module Stripe } def initialize(display_preference: nil); end end - class ApplePay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class ApplePay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92768,8 +99428,8 @@ module Stripe } def initialize(display_preference: nil); end end - class ApplePayLater < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class ApplePayLater < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92792,8 +99452,8 @@ module Stripe } def initialize(display_preference: nil); end end - class AuBecsDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92816,8 +99476,8 @@ module Stripe } def initialize(display_preference: nil); end end - class BacsDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92840,8 +99500,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Bancontact < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92864,8 +99524,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Billie < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Billie < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92886,8 +99546,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Blik < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Blik < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92908,8 +99568,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Boleto < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92930,8 +99590,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Card < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92952,8 +99612,8 @@ module Stripe } def initialize(display_preference: nil); end end - class CartesBancaires < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92976,8 +99636,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Cashapp < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -92998,8 +99658,30 @@ module Stripe } def initialize(display_preference: nil); end end - class CustomerBalance < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Crypto < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::Crypto::DisplayPreference)) } + def display_preference; end + sig { + params(_display_preference: T.nilable(PaymentMethodConfigurationUpdateParams::Crypto::DisplayPreference)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::Crypto::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(PaymentMethodConfigurationUpdateParams::Crypto::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end + class CustomerBalance < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93022,8 +99704,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Eps < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Eps < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93044,8 +99726,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Fpx < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93066,8 +99748,8 @@ module Stripe } def initialize(display_preference: nil); end end - class FrMealVoucherConecs < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class FrMealVoucherConecs < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93090,8 +99772,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Giropay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93112,8 +99794,8 @@ module Stripe } def initialize(display_preference: nil); end end - class GooglePay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class GooglePay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93136,8 +99818,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Grabpay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Grabpay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93158,8 +99840,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Ideal < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93180,8 +99862,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Jcb < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Jcb < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93202,8 +99884,8 @@ module Stripe } def initialize(display_preference: nil); end end - class KakaoPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class KakaoPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93226,8 +99908,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Klarna < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93248,8 +99930,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Konbini < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93270,8 +99952,8 @@ module Stripe } def initialize(display_preference: nil); end end - class KrCard < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class KrCard < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93292,8 +99974,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Link < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Link < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93314,8 +99996,30 @@ module Stripe } def initialize(display_preference: nil); end end - class Mobilepay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class MbWay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::MbWay::DisplayPreference)) } + def display_preference; end + sig { + params(_display_preference: T.nilable(PaymentMethodConfigurationUpdateParams::MbWay::DisplayPreference)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::MbWay::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(PaymentMethodConfigurationUpdateParams::MbWay::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end + class Mobilepay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93338,8 +100042,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Multibanco < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Multibanco < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93362,8 +100066,8 @@ module Stripe } def initialize(display_preference: nil); end end - class NaverPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93386,8 +100090,8 @@ module Stripe } def initialize(display_preference: nil); end end - class NzBankAccount < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93410,8 +100114,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Oxxo < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93432,8 +100136,8 @@ module Stripe } def initialize(display_preference: nil); end end - class P24 < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class P24 < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93454,8 +100158,8 @@ module Stripe } def initialize(display_preference: nil); end end - class PayByBank < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93478,8 +100182,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Payco < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Payco < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93500,8 +100204,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Paynow < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Paynow < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93522,8 +100226,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Paypal < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93544,8 +100248,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Pix < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Pix < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93566,8 +100270,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Promptpay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Promptpay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93590,8 +100294,8 @@ module Stripe } def initialize(display_preference: nil); end end - class RevolutPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93614,8 +100318,8 @@ module Stripe } def initialize(display_preference: nil); end end - class SamsungPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class SamsungPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93638,8 +100342,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Satispay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Satispay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93662,8 +100366,8 @@ module Stripe } def initialize(display_preference: nil); end end - class SepaDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93686,8 +100390,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Sofort < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93708,8 +100412,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Swish < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Swish < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93730,8 +100434,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Twint < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Twint < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93752,8 +100456,8 @@ module Stripe } def initialize(display_preference: nil); end end - class UsBankAccount < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93776,8 +100480,8 @@ module Stripe } def initialize(display_preference: nil); end end - class WechatPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class WechatPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93800,8 +100504,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Zip < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Zip < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -93946,6 +100650,13 @@ module Stripe params(_cashapp: T.nilable(PaymentMethodConfigurationUpdateParams::Cashapp)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::Cashapp)) } def cashapp=(_cashapp); end + # [Stablecoin payments](https://stripe.com/docs/payments/stablecoin-payments) enable customers to pay in stablecoins like USDC from 100s of wallets including Phantom and Metamask. + sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::Crypto)) } + def crypto; end + sig { + params(_crypto: T.nilable(PaymentMethodConfigurationUpdateParams::Crypto)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::Crypto)) + } + def crypto=(_crypto); end # Uses a customer’s [cash balance](https://stripe.com/docs/payments/customer-balance) for the payment. The cash balance can be funded via a bank transfer. Check this [page](https://stripe.com/docs/payments/bank-transfers) for more details. sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::CustomerBalance)) } def customer_balance; end @@ -94049,6 +100760,13 @@ module Stripe params(_link: T.nilable(PaymentMethodConfigurationUpdateParams::Link)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::Link)) } def link=(_link); end + # MB WAY is the most popular wallet in Portugal. After entering their phone number in your checkout, customers approve the payment directly in their MB WAY app. Check this [page](https://stripe.com/docs/payments/mb-way) for more details. + sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::MbWay)) } + def mb_way; end + sig { + params(_mb_way: T.nilable(PaymentMethodConfigurationUpdateParams::MbWay)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::MbWay)) + } + def mb_way=(_mb_way); end # MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details. sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::Mobilepay)) } def mobilepay; end @@ -94209,7 +100927,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(PaymentMethodConfigurationUpdateParams::AcssDebit), active: T.nilable(T::Boolean), affirm: T.nilable(PaymentMethodConfigurationUpdateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodConfigurationUpdateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodConfigurationUpdateParams::Alipay), alma: T.nilable(PaymentMethodConfigurationUpdateParams::Alma), amazon_pay: T.nilable(PaymentMethodConfigurationUpdateParams::AmazonPay), apple_pay: T.nilable(PaymentMethodConfigurationUpdateParams::ApplePay), apple_pay_later: T.nilable(PaymentMethodConfigurationUpdateParams::ApplePayLater), au_becs_debit: T.nilable(PaymentMethodConfigurationUpdateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodConfigurationUpdateParams::BacsDebit), bancontact: T.nilable(PaymentMethodConfigurationUpdateParams::Bancontact), billie: T.nilable(PaymentMethodConfigurationUpdateParams::Billie), blik: T.nilable(PaymentMethodConfigurationUpdateParams::Blik), boleto: T.nilable(PaymentMethodConfigurationUpdateParams::Boleto), card: T.nilable(PaymentMethodConfigurationUpdateParams::Card), cartes_bancaires: T.nilable(PaymentMethodConfigurationUpdateParams::CartesBancaires), cashapp: T.nilable(PaymentMethodConfigurationUpdateParams::Cashapp), customer_balance: T.nilable(PaymentMethodConfigurationUpdateParams::CustomerBalance), eps: T.nilable(PaymentMethodConfigurationUpdateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodConfigurationUpdateParams::Fpx), fr_meal_voucher_conecs: T.nilable(PaymentMethodConfigurationUpdateParams::FrMealVoucherConecs), giropay: T.nilable(PaymentMethodConfigurationUpdateParams::Giropay), google_pay: T.nilable(PaymentMethodConfigurationUpdateParams::GooglePay), grabpay: T.nilable(PaymentMethodConfigurationUpdateParams::Grabpay), ideal: T.nilable(PaymentMethodConfigurationUpdateParams::Ideal), jcb: T.nilable(PaymentMethodConfigurationUpdateParams::Jcb), kakao_pay: T.nilable(PaymentMethodConfigurationUpdateParams::KakaoPay), klarna: T.nilable(PaymentMethodConfigurationUpdateParams::Klarna), konbini: T.nilable(PaymentMethodConfigurationUpdateParams::Konbini), kr_card: T.nilable(PaymentMethodConfigurationUpdateParams::KrCard), link: T.nilable(PaymentMethodConfigurationUpdateParams::Link), mobilepay: T.nilable(PaymentMethodConfigurationUpdateParams::Mobilepay), multibanco: T.nilable(PaymentMethodConfigurationUpdateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(PaymentMethodConfigurationUpdateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodConfigurationUpdateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodConfigurationUpdateParams::Oxxo), p24: T.nilable(PaymentMethodConfigurationUpdateParams::P24), pay_by_bank: T.nilable(PaymentMethodConfigurationUpdateParams::PayByBank), payco: T.nilable(PaymentMethodConfigurationUpdateParams::Payco), paynow: T.nilable(PaymentMethodConfigurationUpdateParams::Paynow), paypal: T.nilable(PaymentMethodConfigurationUpdateParams::Paypal), pix: T.nilable(PaymentMethodConfigurationUpdateParams::Pix), promptpay: T.nilable(PaymentMethodConfigurationUpdateParams::Promptpay), revolut_pay: T.nilable(PaymentMethodConfigurationUpdateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodConfigurationUpdateParams::SamsungPay), satispay: T.nilable(PaymentMethodConfigurationUpdateParams::Satispay), sepa_debit: T.nilable(PaymentMethodConfigurationUpdateParams::SepaDebit), sofort: T.nilable(PaymentMethodConfigurationUpdateParams::Sofort), swish: T.nilable(PaymentMethodConfigurationUpdateParams::Swish), twint: T.nilable(PaymentMethodConfigurationUpdateParams::Twint), us_bank_account: T.nilable(PaymentMethodConfigurationUpdateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodConfigurationUpdateParams::WechatPay), zip: T.nilable(PaymentMethodConfigurationUpdateParams::Zip)).void + params(acss_debit: T.nilable(PaymentMethodConfigurationUpdateParams::AcssDebit), active: T.nilable(T::Boolean), affirm: T.nilable(PaymentMethodConfigurationUpdateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodConfigurationUpdateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodConfigurationUpdateParams::Alipay), alma: T.nilable(PaymentMethodConfigurationUpdateParams::Alma), amazon_pay: T.nilable(PaymentMethodConfigurationUpdateParams::AmazonPay), apple_pay: T.nilable(PaymentMethodConfigurationUpdateParams::ApplePay), apple_pay_later: T.nilable(PaymentMethodConfigurationUpdateParams::ApplePayLater), au_becs_debit: T.nilable(PaymentMethodConfigurationUpdateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodConfigurationUpdateParams::BacsDebit), bancontact: T.nilable(PaymentMethodConfigurationUpdateParams::Bancontact), billie: T.nilable(PaymentMethodConfigurationUpdateParams::Billie), blik: T.nilable(PaymentMethodConfigurationUpdateParams::Blik), boleto: T.nilable(PaymentMethodConfigurationUpdateParams::Boleto), card: T.nilable(PaymentMethodConfigurationUpdateParams::Card), cartes_bancaires: T.nilable(PaymentMethodConfigurationUpdateParams::CartesBancaires), cashapp: T.nilable(PaymentMethodConfigurationUpdateParams::Cashapp), crypto: T.nilable(PaymentMethodConfigurationUpdateParams::Crypto), customer_balance: T.nilable(PaymentMethodConfigurationUpdateParams::CustomerBalance), eps: T.nilable(PaymentMethodConfigurationUpdateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodConfigurationUpdateParams::Fpx), fr_meal_voucher_conecs: T.nilable(PaymentMethodConfigurationUpdateParams::FrMealVoucherConecs), giropay: T.nilable(PaymentMethodConfigurationUpdateParams::Giropay), google_pay: T.nilable(PaymentMethodConfigurationUpdateParams::GooglePay), grabpay: T.nilable(PaymentMethodConfigurationUpdateParams::Grabpay), ideal: T.nilable(PaymentMethodConfigurationUpdateParams::Ideal), jcb: T.nilable(PaymentMethodConfigurationUpdateParams::Jcb), kakao_pay: T.nilable(PaymentMethodConfigurationUpdateParams::KakaoPay), klarna: T.nilable(PaymentMethodConfigurationUpdateParams::Klarna), konbini: T.nilable(PaymentMethodConfigurationUpdateParams::Konbini), kr_card: T.nilable(PaymentMethodConfigurationUpdateParams::KrCard), link: T.nilable(PaymentMethodConfigurationUpdateParams::Link), mb_way: T.nilable(PaymentMethodConfigurationUpdateParams::MbWay), mobilepay: T.nilable(PaymentMethodConfigurationUpdateParams::Mobilepay), multibanco: T.nilable(PaymentMethodConfigurationUpdateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(PaymentMethodConfigurationUpdateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodConfigurationUpdateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodConfigurationUpdateParams::Oxxo), p24: T.nilable(PaymentMethodConfigurationUpdateParams::P24), pay_by_bank: T.nilable(PaymentMethodConfigurationUpdateParams::PayByBank), payco: T.nilable(PaymentMethodConfigurationUpdateParams::Payco), paynow: T.nilable(PaymentMethodConfigurationUpdateParams::Paynow), paypal: T.nilable(PaymentMethodConfigurationUpdateParams::Paypal), pix: T.nilable(PaymentMethodConfigurationUpdateParams::Pix), promptpay: T.nilable(PaymentMethodConfigurationUpdateParams::Promptpay), revolut_pay: T.nilable(PaymentMethodConfigurationUpdateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodConfigurationUpdateParams::SamsungPay), satispay: T.nilable(PaymentMethodConfigurationUpdateParams::Satispay), sepa_debit: T.nilable(PaymentMethodConfigurationUpdateParams::SepaDebit), sofort: T.nilable(PaymentMethodConfigurationUpdateParams::Sofort), swish: T.nilable(PaymentMethodConfigurationUpdateParams::Swish), twint: T.nilable(PaymentMethodConfigurationUpdateParams::Twint), us_bank_account: T.nilable(PaymentMethodConfigurationUpdateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodConfigurationUpdateParams::WechatPay), zip: T.nilable(PaymentMethodConfigurationUpdateParams::Zip)).void } def initialize( acss_debit: nil, @@ -94230,6 +100948,7 @@ module Stripe card: nil, cartes_bancaires: nil, cashapp: nil, + crypto: nil, customer_balance: nil, eps: nil, expand: nil, @@ -94245,6 +100964,7 @@ module Stripe konbini: nil, kr_card: nil, link: nil, + mb_way: nil, mobilepay: nil, multibanco: nil, name: nil, @@ -94273,7 +100993,7 @@ module Stripe end # typed: true module Stripe - class PaymentMethodDomainListParams < Stripe::RequestParams + class PaymentMethodDomainListParams < ::Stripe::RequestParams # The domain name that this payment method domain object represents. sig { returns(T.nilable(String)) } def domain_name; end @@ -94319,7 +101039,7 @@ module Stripe end # typed: true module Stripe - class PaymentMethodDomainCreateParams < Stripe::RequestParams + class PaymentMethodDomainCreateParams < ::Stripe::RequestParams # The domain name that this payment method domain object represents. sig { returns(String) } def domain_name; end @@ -94343,7 +101063,7 @@ module Stripe end # typed: true module Stripe - class PaymentMethodDomainUpdateParams < Stripe::RequestParams + class PaymentMethodDomainUpdateParams < ::Stripe::RequestParams # Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements or Embedded Checkout. sig { returns(T.nilable(T::Boolean)) } def enabled; end @@ -94360,7 +101080,7 @@ module Stripe end # typed: true module Stripe - class PaymentMethodDomainValidateParams < Stripe::RequestParams + class PaymentMethodDomainValidateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -94372,7 +101092,7 @@ module Stripe end # typed: true module Stripe - class PaymentMethodListParams < Stripe::RequestParams + class PaymentMethodListParams < ::Stripe::RequestParams # The ID of the customer whose PaymentMethods will be retrieved. sig { returns(T.nilable(String)) } def customer; end @@ -94398,7 +101118,7 @@ module Stripe def starting_after; end sig { params(_starting_after: T.nilable(String)).returns(T.nilable(String)) } def starting_after=(_starting_after); end - # An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request. + # Filters the list by the object `type` field. Unfiltered, the list returns all payment method types except `custom`. If your integration expects only one type of payment method in the response, specify that type value in the request to reduce your payload. sig { returns(T.nilable(String)) } def type; end sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } @@ -94418,8 +101138,8 @@ module Stripe end # typed: true module Stripe - class PaymentMethodCreateParams < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class PaymentMethodCreateParams < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. sig { returns(String) } def account_number; end @@ -94440,12 +101160,12 @@ module Stripe } def initialize(account_number: nil, institution_number: nil, transit_number: nil); end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. sig { returns(String) } def account_number; end @@ -94459,7 +101179,7 @@ module Stripe sig { params(account_number: String, bsb_number: String).void } def initialize(account_number: nil, bsb_number: nil); end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. sig { returns(T.nilable(String)) } def account_number; end @@ -94473,10 +101193,10 @@ module Stripe sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void } def initialize(account_number: nil, sort_code: nil); end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -94551,8 +101271,8 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end - class Blik < Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Blik < ::Stripe::RequestParams; end + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) sig { returns(String) } def tax_id; end @@ -94561,8 +101281,8 @@ module Stripe sig { params(tax_id: String).void } def initialize(tax_id: nil); end end - class Card < Stripe::RequestParams - class Networks < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Networks < ::Stripe::RequestParams # The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card. sig { returns(T.nilable(String)) } def preferred; end @@ -94615,10 +101335,19 @@ module Stripe token: nil ); end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class Custom < ::Stripe::RequestParams + # ID of the Dashboard-only CustomPaymentMethodType. This field is used by Stripe products' internal code to support CPMs. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(type: String).void } + def initialize(type: nil); end + end + class CustomerBalance < ::Stripe::RequestParams; end + class Eps < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -94627,7 +101356,7 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction sig { returns(T.nilable(String)) } def account_holder_type; end @@ -94641,9 +101370,9 @@ module Stripe sig { params(account_holder_type: T.nilable(String), bank: String).void } def initialize(account_holder_type: nil, bank: nil); end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. sig { returns(T.nilable(String)) } def bank; end @@ -94652,10 +101381,10 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -94684,13 +101413,13 @@ module Stripe sig { params(dob: T.nilable(PaymentMethodCreateParams::Klarna::Dob)).void } def initialize(dob: nil); end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. sig { returns(T.nilable(String)) } def funding; end @@ -94699,7 +101428,7 @@ module Stripe sig { params(funding: T.nilable(String)).void } def initialize(funding: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -94742,8 +101471,8 @@ module Stripe suffix: nil ); end end - class Oxxo < Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams; end + class P24 < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -94752,13 +101481,13 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -94767,10 +101496,10 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } def iban; end @@ -94779,7 +101508,7 @@ module Stripe sig { params(iban: String).void } def initialize(iban: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. sig { returns(String) } def country; end @@ -94788,9 +101517,9 @@ module Stripe sig { params(country: String).void } def initialize(country: nil); end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -94827,8 +101556,8 @@ module Stripe routing_number: nil ); end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. sig { returns(T.nilable(PaymentMethodCreateParams::AcssDebit)) } def acss_debit; end @@ -94946,6 +101675,13 @@ module Stripe params(_crypto: T.nilable(PaymentMethodCreateParams::Crypto)).returns(T.nilable(PaymentMethodCreateParams::Crypto)) } def crypto=(_crypto); end + # If this is a `custom` PaymentMethod, this hash contains details about the Custom payment method. + sig { returns(T.nilable(PaymentMethodCreateParams::Custom)) } + def custom; end + sig { + params(_custom: T.nilable(PaymentMethodCreateParams::Custom)).returns(T.nilable(PaymentMethodCreateParams::Custom)) + } + def custom=(_custom); end # The `Customer` to whom the original PaymentMethod is attached. sig { returns(T.nilable(String)) } def customer; end @@ -95226,7 +101962,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(PaymentMethodCreateParams::AcssDebit), affirm: T.nilable(PaymentMethodCreateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodCreateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodCreateParams::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(PaymentMethodCreateParams::Alma), amazon_pay: T.nilable(PaymentMethodCreateParams::AmazonPay), au_becs_debit: T.nilable(PaymentMethodCreateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodCreateParams::BacsDebit), bancontact: T.nilable(PaymentMethodCreateParams::Bancontact), billie: T.nilable(PaymentMethodCreateParams::Billie), billing_details: T.nilable(PaymentMethodCreateParams::BillingDetails), blik: T.nilable(PaymentMethodCreateParams::Blik), boleto: T.nilable(PaymentMethodCreateParams::Boleto), card: T.nilable(PaymentMethodCreateParams::Card), cashapp: T.nilable(PaymentMethodCreateParams::Cashapp), crypto: T.nilable(PaymentMethodCreateParams::Crypto), customer: T.nilable(String), customer_balance: T.nilable(PaymentMethodCreateParams::CustomerBalance), eps: T.nilable(PaymentMethodCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodCreateParams::Fpx), giropay: T.nilable(PaymentMethodCreateParams::Giropay), grabpay: T.nilable(PaymentMethodCreateParams::Grabpay), ideal: T.nilable(PaymentMethodCreateParams::Ideal), interac_present: T.nilable(PaymentMethodCreateParams::InteracPresent), kakao_pay: T.nilable(PaymentMethodCreateParams::KakaoPay), klarna: T.nilable(PaymentMethodCreateParams::Klarna), konbini: T.nilable(PaymentMethodCreateParams::Konbini), kr_card: T.nilable(PaymentMethodCreateParams::KrCard), link: T.nilable(PaymentMethodCreateParams::Link), mb_way: T.nilable(PaymentMethodCreateParams::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(PaymentMethodCreateParams::Mobilepay), multibanco: T.nilable(PaymentMethodCreateParams::Multibanco), naver_pay: T.nilable(PaymentMethodCreateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodCreateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodCreateParams::Oxxo), p24: T.nilable(PaymentMethodCreateParams::P24), pay_by_bank: T.nilable(PaymentMethodCreateParams::PayByBank), payco: T.nilable(PaymentMethodCreateParams::Payco), payment_method: T.nilable(String), paynow: T.nilable(PaymentMethodCreateParams::Paynow), paypal: T.nilable(PaymentMethodCreateParams::Paypal), pix: T.nilable(PaymentMethodCreateParams::Pix), promptpay: T.nilable(PaymentMethodCreateParams::Promptpay), radar_options: T.nilable(PaymentMethodCreateParams::RadarOptions), revolut_pay: T.nilable(PaymentMethodCreateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodCreateParams::SamsungPay), satispay: T.nilable(PaymentMethodCreateParams::Satispay), sepa_debit: T.nilable(PaymentMethodCreateParams::SepaDebit), sofort: T.nilable(PaymentMethodCreateParams::Sofort), swish: T.nilable(PaymentMethodCreateParams::Swish), twint: T.nilable(PaymentMethodCreateParams::Twint), type: T.nilable(String), us_bank_account: T.nilable(PaymentMethodCreateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodCreateParams::WechatPay), zip: T.nilable(PaymentMethodCreateParams::Zip)).void + params(acss_debit: T.nilable(PaymentMethodCreateParams::AcssDebit), affirm: T.nilable(PaymentMethodCreateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodCreateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodCreateParams::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(PaymentMethodCreateParams::Alma), amazon_pay: T.nilable(PaymentMethodCreateParams::AmazonPay), au_becs_debit: T.nilable(PaymentMethodCreateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodCreateParams::BacsDebit), bancontact: T.nilable(PaymentMethodCreateParams::Bancontact), billie: T.nilable(PaymentMethodCreateParams::Billie), billing_details: T.nilable(PaymentMethodCreateParams::BillingDetails), blik: T.nilable(PaymentMethodCreateParams::Blik), boleto: T.nilable(PaymentMethodCreateParams::Boleto), card: T.nilable(PaymentMethodCreateParams::Card), cashapp: T.nilable(PaymentMethodCreateParams::Cashapp), crypto: T.nilable(PaymentMethodCreateParams::Crypto), custom: T.nilable(PaymentMethodCreateParams::Custom), customer: T.nilable(String), customer_balance: T.nilable(PaymentMethodCreateParams::CustomerBalance), eps: T.nilable(PaymentMethodCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodCreateParams::Fpx), giropay: T.nilable(PaymentMethodCreateParams::Giropay), grabpay: T.nilable(PaymentMethodCreateParams::Grabpay), ideal: T.nilable(PaymentMethodCreateParams::Ideal), interac_present: T.nilable(PaymentMethodCreateParams::InteracPresent), kakao_pay: T.nilable(PaymentMethodCreateParams::KakaoPay), klarna: T.nilable(PaymentMethodCreateParams::Klarna), konbini: T.nilable(PaymentMethodCreateParams::Konbini), kr_card: T.nilable(PaymentMethodCreateParams::KrCard), link: T.nilable(PaymentMethodCreateParams::Link), mb_way: T.nilable(PaymentMethodCreateParams::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(PaymentMethodCreateParams::Mobilepay), multibanco: T.nilable(PaymentMethodCreateParams::Multibanco), naver_pay: T.nilable(PaymentMethodCreateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodCreateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodCreateParams::Oxxo), p24: T.nilable(PaymentMethodCreateParams::P24), pay_by_bank: T.nilable(PaymentMethodCreateParams::PayByBank), payco: T.nilable(PaymentMethodCreateParams::Payco), payment_method: T.nilable(String), paynow: T.nilable(PaymentMethodCreateParams::Paynow), paypal: T.nilable(PaymentMethodCreateParams::Paypal), pix: T.nilable(PaymentMethodCreateParams::Pix), promptpay: T.nilable(PaymentMethodCreateParams::Promptpay), radar_options: T.nilable(PaymentMethodCreateParams::RadarOptions), revolut_pay: T.nilable(PaymentMethodCreateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodCreateParams::SamsungPay), satispay: T.nilable(PaymentMethodCreateParams::Satispay), sepa_debit: T.nilable(PaymentMethodCreateParams::SepaDebit), sofort: T.nilable(PaymentMethodCreateParams::Sofort), swish: T.nilable(PaymentMethodCreateParams::Swish), twint: T.nilable(PaymentMethodCreateParams::Twint), type: T.nilable(String), us_bank_account: T.nilable(PaymentMethodCreateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodCreateParams::WechatPay), zip: T.nilable(PaymentMethodCreateParams::Zip)).void } def initialize( acss_debit: nil, @@ -95246,6 +101982,7 @@ module Stripe card: nil, cashapp: nil, crypto: nil, + custom: nil, customer: nil, customer_balance: nil, eps: nil, @@ -95292,9 +102029,9 @@ module Stripe end # typed: true module Stripe - class PaymentMethodUpdateParams < Stripe::RequestParams - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class PaymentMethodUpdateParams < ::Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -95369,8 +102106,8 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end - class Card < Stripe::RequestParams - class Networks < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Networks < ::Stripe::RequestParams # The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card. sig { returns(T.nilable(T.any(String, String))) } def preferred; end @@ -95403,7 +102140,7 @@ module Stripe } def initialize(exp_month: nil, exp_year: nil, networks: nil); end end - class UsBankAccount < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # Bank account holder type. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -95470,7 +102207,7 @@ module Stripe end # typed: true module Stripe - class PaymentMethodAttachParams < Stripe::RequestParams + class PaymentMethodAttachParams < ::Stripe::RequestParams # The ID of the customer to which to attach the PaymentMethod. sig { returns(String) } def customer; end @@ -95487,7 +102224,7 @@ module Stripe end # typed: true module Stripe - class PaymentMethodDetachParams < Stripe::RequestParams + class PaymentMethodDetachParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -95499,8 +102236,993 @@ module Stripe end # typed: true module Stripe - class PayoutListParams < Stripe::RequestParams - class ArrivalDate < Stripe::RequestParams + class PaymentRecordReportPaymentAttemptParams < ::Stripe::RequestParams + class Failed < ::Stripe::RequestParams + # When the reported payment failed. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def failed_at; end + sig { params(_failed_at: Integer).returns(Integer) } + def failed_at=(_failed_at); end + sig { params(failed_at: Integer).void } + def initialize(failed_at: nil); end + end + class Guaranteed < ::Stripe::RequestParams + # When the reported payment was guaranteed. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def guaranteed_at; end + sig { params(_guaranteed_at: Integer).returns(Integer) } + def guaranteed_at=(_guaranteed_at); end + sig { params(guaranteed_at: Integer).void } + def initialize(guaranteed_at: nil); end + end + class PaymentMethodDetails < ::Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ); end + end + # The billing address associated with the method of payment. + sig { + returns(T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::BillingDetails::Address)) + } + def address; end + sig { + params(_address: T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::BillingDetails::Address)).returns(T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::BillingDetails::Address)) + } + def address=(_address); end + # The billing email associated with the method of payment. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # The billing name associated with the method of payment. + sig { returns(T.nilable(String)) } + def name; end + sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } + def name=(_name); end + # The billing phone number associated with the method of payment. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(address: T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::BillingDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void + } + def initialize(address: nil, email: nil, name: nil, phone: nil); end + end + class Custom < ::Stripe::RequestParams + # Display name for the custom (user-defined) payment method type used to make this payment. + sig { returns(T.nilable(String)) } + def display_name; end + sig { params(_display_name: T.nilable(String)).returns(T.nilable(String)) } + def display_name=(_display_name); end + # The custom payment method type associated with this payment. + sig { returns(T.nilable(String)) } + def type; end + sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } + def type=(_type); end + sig { params(display_name: T.nilable(String), type: T.nilable(String)).void } + def initialize(display_name: nil, type: nil); end + end + # The billing details associated with the method of payment. + sig { + returns(T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::BillingDetails)) + } + def billing_details; end + sig { + params(_billing_details: T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::BillingDetails)).returns(T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::BillingDetails)) + } + def billing_details=(_billing_details); end + # Information about the custom (user-defined) payment method used to make this payment. + sig { + returns(T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::Custom)) + } + def custom; end + sig { + params(_custom: T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::Custom)).returns(T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::Custom)) + } + def custom=(_custom); end + # ID of the Stripe Payment Method used to make this payment. + sig { returns(T.nilable(String)) } + def payment_method; end + sig { params(_payment_method: T.nilable(String)).returns(T.nilable(String)) } + def payment_method=(_payment_method); end + # The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type. + sig { returns(T.nilable(String)) } + def type; end + sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } + def type=(_type); end + sig { + params(billing_details: T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::BillingDetails), custom: T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::Custom), payment_method: T.nilable(String), type: T.nilable(String)).void + } + def initialize(billing_details: nil, custom: nil, payment_method: nil, type: nil); end + end + class ShippingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ); end + end + # The physical shipping address. + sig { returns(T.nilable(PaymentRecordReportPaymentAttemptParams::ShippingDetails::Address)) } + def address; end + sig { + params(_address: T.nilable(PaymentRecordReportPaymentAttemptParams::ShippingDetails::Address)).returns(T.nilable(PaymentRecordReportPaymentAttemptParams::ShippingDetails::Address)) + } + def address=(_address); end + # The shipping recipient's name. + sig { returns(T.nilable(String)) } + def name; end + sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } + def name=(_name); end + # The shipping recipient's phone number. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(address: T.nilable(PaymentRecordReportPaymentAttemptParams::ShippingDetails::Address), name: T.nilable(String), phone: T.nilable(String)).void + } + def initialize(address: nil, name: nil, phone: nil); end + end + # An arbitrary string attached to the object. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # Information about the payment attempt failure. + sig { returns(T.nilable(PaymentRecordReportPaymentAttemptParams::Failed)) } + def failed; end + sig { + params(_failed: T.nilable(PaymentRecordReportPaymentAttemptParams::Failed)).returns(T.nilable(PaymentRecordReportPaymentAttemptParams::Failed)) + } + def failed=(_failed); end + # Information about the payment attempt guarantee. + sig { returns(T.nilable(PaymentRecordReportPaymentAttemptParams::Guaranteed)) } + def guaranteed; end + sig { + params(_guaranteed: T.nilable(PaymentRecordReportPaymentAttemptParams::Guaranteed)).returns(T.nilable(PaymentRecordReportPaymentAttemptParams::Guaranteed)) + } + def guaranteed=(_guaranteed); end + # When the reported payment was initiated. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def initiated_at; end + sig { params(_initiated_at: Integer).returns(Integer) } + def initiated_at=(_initiated_at); end + # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + # The outcome of the reported payment. + sig { returns(T.nilable(String)) } + def outcome; end + sig { params(_outcome: T.nilable(String)).returns(T.nilable(String)) } + def outcome=(_outcome); end + # Information about the Payment Method debited for this payment. + sig { returns(T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails)) } + def payment_method_details; end + sig { + params(_payment_method_details: T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails)).returns(T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails)) + } + def payment_method_details=(_payment_method_details); end + # Shipping information for this payment. + sig { returns(T.nilable(PaymentRecordReportPaymentAttemptParams::ShippingDetails)) } + def shipping_details; end + sig { + params(_shipping_details: T.nilable(PaymentRecordReportPaymentAttemptParams::ShippingDetails)).returns(T.nilable(PaymentRecordReportPaymentAttemptParams::ShippingDetails)) + } + def shipping_details=(_shipping_details); end + sig { + params(description: T.nilable(String), expand: T.nilable(T::Array[String]), failed: T.nilable(PaymentRecordReportPaymentAttemptParams::Failed), guaranteed: T.nilable(PaymentRecordReportPaymentAttemptParams::Guaranteed), initiated_at: Integer, metadata: T.nilable(T.any(String, T::Hash[String, String])), outcome: T.nilable(String), payment_method_details: T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails), shipping_details: T.nilable(PaymentRecordReportPaymentAttemptParams::ShippingDetails)).void + } + def initialize( + description: nil, + expand: nil, + failed: nil, + guaranteed: nil, + initiated_at: nil, + metadata: nil, + outcome: nil, + payment_method_details: nil, + shipping_details: nil + ); end + end +end +# typed: true +module Stripe + class PaymentRecordReportPaymentAttemptCanceledParams < ::Stripe::RequestParams + # When the reported payment was canceled. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def canceled_at; end + sig { params(_canceled_at: Integer).returns(Integer) } + def canceled_at=(_canceled_at); end + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # Attribute for param field metadata + sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + sig { + params(canceled_at: Integer, expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void + } + def initialize(canceled_at: nil, expand: nil, metadata: nil); end + end +end +# typed: true +module Stripe + class PaymentRecordReportPaymentAttemptFailedParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # When the reported payment failed. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def failed_at; end + sig { params(_failed_at: Integer).returns(Integer) } + def failed_at=(_failed_at); end + # Attribute for param field metadata + sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + sig { + params(expand: T.nilable(T::Array[String]), failed_at: Integer, metadata: T.nilable(T.any(String, T::Hash[String, String]))).void + } + def initialize(expand: nil, failed_at: nil, metadata: nil); end + end +end +# typed: true +module Stripe + class PaymentRecordReportPaymentAttemptGuaranteedParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # When the reported payment was guaranteed. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def guaranteed_at; end + sig { params(_guaranteed_at: Integer).returns(Integer) } + def guaranteed_at=(_guaranteed_at); end + # Attribute for param field metadata + sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + sig { + params(expand: T.nilable(T::Array[String]), guaranteed_at: Integer, metadata: T.nilable(T.any(String, T::Hash[String, String]))).void + } + def initialize(expand: nil, guaranteed_at: nil, metadata: nil); end + end +end +# typed: true +module Stripe + class PaymentRecordReportPaymentAttemptInformationalParams < ::Stripe::RequestParams + class CustomerDetails < ::Stripe::RequestParams + # The customer who made the payment. + sig { returns(T.nilable(String)) } + def customer; end + sig { params(_customer: T.nilable(String)).returns(T.nilable(String)) } + def customer=(_customer); end + # The customer's phone number. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # The customer's name. + sig { returns(T.nilable(String)) } + def name; end + sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } + def name=(_name); end + # The customer's phone number. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(customer: T.nilable(String), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void + } + def initialize(customer: nil, email: nil, name: nil, phone: nil); end + end + class ShippingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ); end + end + # The physical shipping address. + sig { + returns(T.nilable(PaymentRecordReportPaymentAttemptInformationalParams::ShippingDetails::Address)) + } + def address; end + sig { + params(_address: T.nilable(PaymentRecordReportPaymentAttemptInformationalParams::ShippingDetails::Address)).returns(T.nilable(PaymentRecordReportPaymentAttemptInformationalParams::ShippingDetails::Address)) + } + def address=(_address); end + # The shipping recipient's name. + sig { returns(T.nilable(String)) } + def name; end + sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } + def name=(_name); end + # The shipping recipient's phone number. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(address: T.nilable(PaymentRecordReportPaymentAttemptInformationalParams::ShippingDetails::Address), name: T.nilable(String), phone: T.nilable(String)).void + } + def initialize(address: nil, name: nil, phone: nil); end + end + # Customer information for this payment. + sig { + returns(T.nilable(PaymentRecordReportPaymentAttemptInformationalParams::CustomerDetails)) + } + def customer_details; end + sig { + params(_customer_details: T.nilable(PaymentRecordReportPaymentAttemptInformationalParams::CustomerDetails)).returns(T.nilable(PaymentRecordReportPaymentAttemptInformationalParams::CustomerDetails)) + } + def customer_details=(_customer_details); end + # An arbitrary string attached to the object. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + # Shipping information for this payment. + sig { + returns(T.nilable(T.any(String, PaymentRecordReportPaymentAttemptInformationalParams::ShippingDetails))) + } + def shipping_details; end + sig { + params(_shipping_details: T.nilable(T.any(String, PaymentRecordReportPaymentAttemptInformationalParams::ShippingDetails))).returns(T.nilable(T.any(String, PaymentRecordReportPaymentAttemptInformationalParams::ShippingDetails))) + } + def shipping_details=(_shipping_details); end + sig { + params(customer_details: T.nilable(PaymentRecordReportPaymentAttemptInformationalParams::CustomerDetails), description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), shipping_details: T.nilable(T.any(String, PaymentRecordReportPaymentAttemptInformationalParams::ShippingDetails))).void + } + def initialize( + customer_details: nil, + description: nil, + expand: nil, + metadata: nil, + shipping_details: nil + ); end + end +end +# typed: true +module Stripe + class PaymentRecordReportRefundParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + sig { params(_currency: String).returns(String) } + def currency=(_currency); end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + sig { params(_value: Integer).returns(Integer) } + def value=(_value); end + sig { params(currency: String, value: Integer).void } + def initialize(currency: nil, value: nil); end + end + class ProcessorDetails < ::Stripe::RequestParams + class Custom < ::Stripe::RequestParams + # A reference to the external refund. This field must be unique across all refunds. + sig { returns(String) } + def refund_reference; end + sig { params(_refund_reference: String).returns(String) } + def refund_reference=(_refund_reference); end + sig { params(refund_reference: String).void } + def initialize(refund_reference: nil); end + end + # Information about the custom processor used to make this refund. + sig { returns(T.nilable(PaymentRecordReportRefundParams::ProcessorDetails::Custom)) } + def custom; end + sig { + params(_custom: T.nilable(PaymentRecordReportRefundParams::ProcessorDetails::Custom)).returns(T.nilable(PaymentRecordReportRefundParams::ProcessorDetails::Custom)) + } + def custom=(_custom); end + # The type of the processor details. An additional hash is included on processor_details with a name matching this value. It contains additional information specific to the processor. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(custom: T.nilable(PaymentRecordReportRefundParams::ProcessorDetails::Custom), type: String).void + } + def initialize(custom: nil, type: nil); end + end + class Refunded < ::Stripe::RequestParams + # When the reported refund completed. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def refunded_at; end + sig { params(_refunded_at: Integer).returns(Integer) } + def refunded_at=(_refunded_at); end + sig { params(refunded_at: Integer).void } + def initialize(refunded_at: nil); end + end + # A positive integer in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) representing how much of this payment to refund. Can refund only up to the remaining, unrefunded amount of the payment. + sig { returns(T.nilable(PaymentRecordReportRefundParams::Amount)) } + def amount; end + sig { + params(_amount: T.nilable(PaymentRecordReportRefundParams::Amount)).returns(T.nilable(PaymentRecordReportRefundParams::Amount)) + } + def amount=(_amount); end + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # When the reported refund was initiated. Measured in seconds since the Unix epoch. + sig { returns(T.nilable(Integer)) } + def initiated_at; end + sig { params(_initiated_at: T.nilable(Integer)).returns(T.nilable(Integer)) } + def initiated_at=(_initiated_at); end + # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + # The outcome of the reported refund. + sig { returns(String) } + def outcome; end + sig { params(_outcome: String).returns(String) } + def outcome=(_outcome); end + # Processor information for this refund. + sig { returns(PaymentRecordReportRefundParams::ProcessorDetails) } + def processor_details; end + sig { + params(_processor_details: PaymentRecordReportRefundParams::ProcessorDetails).returns(PaymentRecordReportRefundParams::ProcessorDetails) + } + def processor_details=(_processor_details); end + # Information about the payment attempt refund. + sig { returns(PaymentRecordReportRefundParams::Refunded) } + def refunded; end + sig { + params(_refunded: PaymentRecordReportRefundParams::Refunded).returns(PaymentRecordReportRefundParams::Refunded) + } + def refunded=(_refunded); end + sig { + params(amount: T.nilable(PaymentRecordReportRefundParams::Amount), expand: T.nilable(T::Array[String]), initiated_at: T.nilable(Integer), metadata: T.nilable(T.any(String, T::Hash[String, String])), outcome: String, processor_details: PaymentRecordReportRefundParams::ProcessorDetails, refunded: PaymentRecordReportRefundParams::Refunded).void + } + def initialize( + amount: nil, + expand: nil, + initiated_at: nil, + metadata: nil, + outcome: nil, + processor_details: nil, + refunded: nil + ); end + end +end +# typed: true +module Stripe + class PaymentRecordReportPaymentParams < ::Stripe::RequestParams + class AmountRequested < ::Stripe::RequestParams + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + sig { params(_currency: String).returns(String) } + def currency=(_currency); end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + sig { params(_value: Integer).returns(Integer) } + def value=(_value); end + sig { params(currency: String, value: Integer).void } + def initialize(currency: nil, value: nil); end + end + class CustomerDetails < ::Stripe::RequestParams + # The customer who made the payment. + sig { returns(T.nilable(String)) } + def customer; end + sig { params(_customer: T.nilable(String)).returns(T.nilable(String)) } + def customer=(_customer); end + # The customer's phone number. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # The customer's name. + sig { returns(T.nilable(String)) } + def name; end + sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } + def name=(_name); end + # The customer's phone number. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(customer: T.nilable(String), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void + } + def initialize(customer: nil, email: nil, name: nil, phone: nil); end + end + class Failed < ::Stripe::RequestParams + # When the reported payment failed. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def failed_at; end + sig { params(_failed_at: Integer).returns(Integer) } + def failed_at=(_failed_at); end + sig { params(failed_at: Integer).void } + def initialize(failed_at: nil); end + end + class Guaranteed < ::Stripe::RequestParams + # When the reported payment was guaranteed. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def guaranteed_at; end + sig { params(_guaranteed_at: Integer).returns(Integer) } + def guaranteed_at=(_guaranteed_at); end + sig { params(guaranteed_at: Integer).void } + def initialize(guaranteed_at: nil); end + end + class PaymentMethodDetails < ::Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ); end + end + # The billing address associated with the method of payment. + sig { + returns(T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::BillingDetails::Address)) + } + def address; end + sig { + params(_address: T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::BillingDetails::Address)).returns(T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::BillingDetails::Address)) + } + def address=(_address); end + # The billing email associated with the method of payment. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # The billing name associated with the method of payment. + sig { returns(T.nilable(String)) } + def name; end + sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } + def name=(_name); end + # The billing phone number associated with the method of payment. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(address: T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::BillingDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void + } + def initialize(address: nil, email: nil, name: nil, phone: nil); end + end + class Custom < ::Stripe::RequestParams + # Display name for the custom (user-defined) payment method type used to make this payment. + sig { returns(T.nilable(String)) } + def display_name; end + sig { params(_display_name: T.nilable(String)).returns(T.nilable(String)) } + def display_name=(_display_name); end + # The custom payment method type associated with this payment. + sig { returns(T.nilable(String)) } + def type; end + sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } + def type=(_type); end + sig { params(display_name: T.nilable(String), type: T.nilable(String)).void } + def initialize(display_name: nil, type: nil); end + end + # The billing details associated with the method of payment. + sig { + returns(T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::BillingDetails)) + } + def billing_details; end + sig { + params(_billing_details: T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::BillingDetails)).returns(T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::BillingDetails)) + } + def billing_details=(_billing_details); end + # Information about the custom (user-defined) payment method used to make this payment. + sig { returns(T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::Custom)) } + def custom; end + sig { + params(_custom: T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::Custom)).returns(T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::Custom)) + } + def custom=(_custom); end + # ID of the Stripe Payment Method used to make this payment. + sig { returns(T.nilable(String)) } + def payment_method; end + sig { params(_payment_method: T.nilable(String)).returns(T.nilable(String)) } + def payment_method=(_payment_method); end + # The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type. + sig { returns(T.nilable(String)) } + def type; end + sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } + def type=(_type); end + sig { + params(billing_details: T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::BillingDetails), custom: T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::Custom), payment_method: T.nilable(String), type: T.nilable(String)).void + } + def initialize(billing_details: nil, custom: nil, payment_method: nil, type: nil); end + end + class ProcessorDetails < ::Stripe::RequestParams + class Custom < ::Stripe::RequestParams + # An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID. + sig { returns(String) } + def payment_reference; end + sig { params(_payment_reference: String).returns(String) } + def payment_reference=(_payment_reference); end + sig { params(payment_reference: String).void } + def initialize(payment_reference: nil); end + end + # Information about the custom processor used to make this payment. + sig { returns(T.nilable(PaymentRecordReportPaymentParams::ProcessorDetails::Custom)) } + def custom; end + sig { + params(_custom: T.nilable(PaymentRecordReportPaymentParams::ProcessorDetails::Custom)).returns(T.nilable(PaymentRecordReportPaymentParams::ProcessorDetails::Custom)) + } + def custom=(_custom); end + # The type of the processor details. An additional hash is included on processor_details with a name matching this value. It contains additional information specific to the processor. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(custom: T.nilable(PaymentRecordReportPaymentParams::ProcessorDetails::Custom), type: String).void + } + def initialize(custom: nil, type: nil); end + end + class ShippingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ); end + end + # The physical shipping address. + sig { returns(T.nilable(PaymentRecordReportPaymentParams::ShippingDetails::Address)) } + def address; end + sig { + params(_address: T.nilable(PaymentRecordReportPaymentParams::ShippingDetails::Address)).returns(T.nilable(PaymentRecordReportPaymentParams::ShippingDetails::Address)) + } + def address=(_address); end + # The shipping recipient's name. + sig { returns(T.nilable(String)) } + def name; end + sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } + def name=(_name); end + # The shipping recipient's phone number. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(address: T.nilable(PaymentRecordReportPaymentParams::ShippingDetails::Address), name: T.nilable(String), phone: T.nilable(String)).void + } + def initialize(address: nil, name: nil, phone: nil); end + end + # The amount you initially requested for this payment. + sig { returns(PaymentRecordReportPaymentParams::AmountRequested) } + def amount_requested; end + sig { + params(_amount_requested: PaymentRecordReportPaymentParams::AmountRequested).returns(PaymentRecordReportPaymentParams::AmountRequested) + } + def amount_requested=(_amount_requested); end + # Customer information for this payment. + sig { returns(T.nilable(PaymentRecordReportPaymentParams::CustomerDetails)) } + def customer_details; end + sig { + params(_customer_details: T.nilable(PaymentRecordReportPaymentParams::CustomerDetails)).returns(T.nilable(PaymentRecordReportPaymentParams::CustomerDetails)) + } + def customer_details=(_customer_details); end + # Indicates whether the customer was present in your checkout flow during this payment. + sig { returns(T.nilable(String)) } + def customer_presence; end + sig { params(_customer_presence: T.nilable(String)).returns(T.nilable(String)) } + def customer_presence=(_customer_presence); end + # An arbitrary string attached to the object. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # Information about the payment attempt failure. + sig { returns(T.nilable(PaymentRecordReportPaymentParams::Failed)) } + def failed; end + sig { + params(_failed: T.nilable(PaymentRecordReportPaymentParams::Failed)).returns(T.nilable(PaymentRecordReportPaymentParams::Failed)) + } + def failed=(_failed); end + # Information about the payment attempt guarantee. + sig { returns(T.nilable(PaymentRecordReportPaymentParams::Guaranteed)) } + def guaranteed; end + sig { + params(_guaranteed: T.nilable(PaymentRecordReportPaymentParams::Guaranteed)).returns(T.nilable(PaymentRecordReportPaymentParams::Guaranteed)) + } + def guaranteed=(_guaranteed); end + # When the reported payment was initiated. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def initiated_at; end + sig { params(_initiated_at: Integer).returns(Integer) } + def initiated_at=(_initiated_at); end + # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + # The outcome of the reported payment. + sig { returns(T.nilable(String)) } + def outcome; end + sig { params(_outcome: T.nilable(String)).returns(T.nilable(String)) } + def outcome=(_outcome); end + # Information about the Payment Method debited for this payment. + sig { returns(PaymentRecordReportPaymentParams::PaymentMethodDetails) } + def payment_method_details; end + sig { + params(_payment_method_details: PaymentRecordReportPaymentParams::PaymentMethodDetails).returns(PaymentRecordReportPaymentParams::PaymentMethodDetails) + } + def payment_method_details=(_payment_method_details); end + # Processor information for this payment. + sig { returns(T.nilable(PaymentRecordReportPaymentParams::ProcessorDetails)) } + def processor_details; end + sig { + params(_processor_details: T.nilable(PaymentRecordReportPaymentParams::ProcessorDetails)).returns(T.nilable(PaymentRecordReportPaymentParams::ProcessorDetails)) + } + def processor_details=(_processor_details); end + # Shipping information for this payment. + sig { returns(T.nilable(PaymentRecordReportPaymentParams::ShippingDetails)) } + def shipping_details; end + sig { + params(_shipping_details: T.nilable(PaymentRecordReportPaymentParams::ShippingDetails)).returns(T.nilable(PaymentRecordReportPaymentParams::ShippingDetails)) + } + def shipping_details=(_shipping_details); end + sig { + params(amount_requested: PaymentRecordReportPaymentParams::AmountRequested, customer_details: T.nilable(PaymentRecordReportPaymentParams::CustomerDetails), customer_presence: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), failed: T.nilable(PaymentRecordReportPaymentParams::Failed), guaranteed: T.nilable(PaymentRecordReportPaymentParams::Guaranteed), initiated_at: Integer, metadata: T.nilable(T.any(String, T::Hash[String, String])), outcome: T.nilable(String), payment_method_details: PaymentRecordReportPaymentParams::PaymentMethodDetails, processor_details: T.nilable(PaymentRecordReportPaymentParams::ProcessorDetails), shipping_details: T.nilable(PaymentRecordReportPaymentParams::ShippingDetails)).void + } + def initialize( + amount_requested: nil, + customer_details: nil, + customer_presence: nil, + description: nil, + expand: nil, + failed: nil, + guaranteed: nil, + initiated_at: nil, + metadata: nil, + outcome: nil, + payment_method_details: nil, + processor_details: nil, + shipping_details: nil + ); end + end +end +# typed: true +module Stripe + class PayoutListParams < ::Stripe::RequestParams + class ArrivalDate < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -95526,7 +103248,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class Created < Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -95613,7 +103335,7 @@ module Stripe end # typed: true module Stripe - class PayoutCreateParams < Stripe::RequestParams + class PayoutCreateParams < ::Stripe::RequestParams # A positive integer in cents representing how much to payout. sig { returns(Integer) } def amount; end @@ -95685,7 +103407,7 @@ module Stripe end # typed: true module Stripe - class PayoutUpdateParams < Stripe::RequestParams + class PayoutUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -95706,7 +103428,7 @@ module Stripe end # typed: true module Stripe - class PayoutCancelParams < Stripe::RequestParams + class PayoutCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -95718,7 +103440,7 @@ module Stripe end # typed: true module Stripe - class PayoutReverseParams < Stripe::RequestParams + class PayoutReverseParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -95739,11 +103461,11 @@ module Stripe end # typed: true module Stripe - class PlanDeleteParams < Stripe::RequestParams; end + class PlanDeleteParams < ::Stripe::RequestParams; end end # typed: true module Stripe - class PlanUpdateParams < Stripe::RequestParams + class PlanUpdateParams < ::Stripe::RequestParams # Whether the plan is currently available for new subscriptions. sig { returns(T.nilable(T::Boolean)) } def active; end @@ -95791,8 +103513,8 @@ module Stripe end # typed: true module Stripe - class PlanListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class PlanListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -95871,8 +103593,8 @@ module Stripe end # typed: true module Stripe - class PlanCreateParams < Stripe::RequestParams - class Product < Stripe::RequestParams + class PlanCreateParams < ::Stripe::RequestParams + class Product < ::Stripe::RequestParams # Whether the product is currently available for purchase. Defaults to `true`. sig { returns(T.nilable(T::Boolean)) } def active; end @@ -95925,7 +103647,7 @@ module Stripe unit_label: nil ); end end - class Tier < Stripe::RequestParams + class Tier < ::Stripe::RequestParams # The flat billing amount for an entire tier, regardless of the number of units in the tier. sig { returns(T.nilable(Integer)) } def flat_amount; end @@ -95962,7 +103684,7 @@ module Stripe up_to: nil ); end end - class TransformUsage < Stripe::RequestParams + class TransformUsage < ::Stripe::RequestParams # Divide usage by this number. sig { returns(Integer) } def divide_by; end @@ -96101,8 +103823,8 @@ module Stripe end # typed: true module Stripe - class PriceListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class PriceListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -96128,7 +103850,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class Recurring < Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Filter by billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(T.nilable(String)) } def interval; end @@ -96228,9 +103950,9 @@ module Stripe end # typed: true module Stripe - class PriceCreateParams < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams - class CustomUnitAmount < Stripe::RequestParams + class PriceCreateParams < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams + class CustomUnitAmount < ::Stripe::RequestParams # Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`. sig { returns(T::Boolean) } def enabled; end @@ -96256,7 +103978,7 @@ module Stripe } def initialize(enabled: nil, maximum: nil, minimum: nil, preset: nil); end end - class Tier < Stripe::RequestParams + class Tier < ::Stripe::RequestParams # The flat billing amount for an entire tier, regardless of the number of units in the tier. sig { returns(T.nilable(Integer)) } def flat_amount; end @@ -96333,7 +104055,7 @@ module Stripe unit_amount_decimal: nil ); end end - class CustomUnitAmount < Stripe::RequestParams + class CustomUnitAmount < ::Stripe::RequestParams # Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`. sig { returns(T::Boolean) } def enabled; end @@ -96359,7 +104081,7 @@ module Stripe } def initialize(enabled: nil, maximum: nil, minimum: nil, preset: nil); end end - class ProductData < Stripe::RequestParams + class ProductData < ::Stripe::RequestParams # Whether the product is currently available for purchase. Defaults to `true`. sig { returns(T.nilable(T::Boolean)) } def active; end @@ -96412,7 +104134,7 @@ module Stripe unit_label: nil ); end end - class Recurring < Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -96449,7 +104171,7 @@ module Stripe usage_type: nil ); end end - class Tier < Stripe::RequestParams + class Tier < ::Stripe::RequestParams # The flat billing amount for an entire tier, regardless of the number of units in the tier. sig { returns(T.nilable(Integer)) } def flat_amount; end @@ -96486,7 +104208,7 @@ module Stripe up_to: nil ); end end - class TransformQuantity < Stripe::RequestParams + class TransformQuantity < ::Stripe::RequestParams # Divide usage by this number. sig { returns(Integer) } def divide_by; end @@ -96637,9 +104359,9 @@ module Stripe end # typed: true module Stripe - class PriceUpdateParams < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams - class CustomUnitAmount < Stripe::RequestParams + class PriceUpdateParams < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams + class CustomUnitAmount < ::Stripe::RequestParams # Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`. sig { returns(T::Boolean) } def enabled; end @@ -96665,7 +104387,7 @@ module Stripe } def initialize(enabled: nil, maximum: nil, minimum: nil, preset: nil); end end - class Tier < Stripe::RequestParams + class Tier < ::Stripe::RequestParams # The flat billing amount for an entire tier, regardless of the number of units in the tier. sig { returns(T.nilable(Integer)) } def flat_amount; end @@ -96803,7 +104525,7 @@ module Stripe end # typed: true module Stripe - class PriceSearchParams < Stripe::RequestParams + class PriceSearchParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -96832,12 +104554,12 @@ module Stripe end # typed: true module Stripe - class ProductDeleteParams < Stripe::RequestParams; end + class ProductDeleteParams < ::Stripe::RequestParams; end end # typed: true module Stripe - class ProductUpdateParams < Stripe::RequestParams - class MarketingFeature < Stripe::RequestParams + class ProductUpdateParams < ::Stripe::RequestParams + class MarketingFeature < ::Stripe::RequestParams # The marketing feature name. Up to 80 characters long. sig { returns(String) } def name; end @@ -96846,7 +104568,7 @@ module Stripe sig { params(name: String).void } def initialize(name: nil); end end - class PackageDimensions < Stripe::RequestParams + class PackageDimensions < ::Stripe::RequestParams # Height, in inches. Maximum precision is 2 decimal places. sig { returns(Float) } def height; end @@ -96974,8 +104696,8 @@ module Stripe end # typed: true module Stripe - class ProductListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ProductListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -97072,10 +104794,10 @@ module Stripe end # typed: true module Stripe - class ProductCreateParams < Stripe::RequestParams - class DefaultPriceData < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams - class CustomUnitAmount < Stripe::RequestParams + class ProductCreateParams < ::Stripe::RequestParams + class DefaultPriceData < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams + class CustomUnitAmount < ::Stripe::RequestParams # Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`. sig { returns(T::Boolean) } def enabled; end @@ -97101,7 +104823,7 @@ module Stripe } def initialize(enabled: nil, maximum: nil, minimum: nil, preset: nil); end end - class Tier < Stripe::RequestParams + class Tier < ::Stripe::RequestParams # The flat billing amount for an entire tier, regardless of the number of units in the tier. sig { returns(T.nilable(Integer)) } def flat_amount; end @@ -97182,7 +104904,7 @@ module Stripe unit_amount_decimal: nil ); end end - class CustomUnitAmount < Stripe::RequestParams + class CustomUnitAmount < ::Stripe::RequestParams # Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`. sig { returns(T::Boolean) } def enabled; end @@ -97208,7 +104930,7 @@ module Stripe } def initialize(enabled: nil, maximum: nil, minimum: nil, preset: nil); end end - class Recurring < Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -97286,7 +105008,7 @@ module Stripe unit_amount_decimal: nil ); end end - class MarketingFeature < Stripe::RequestParams + class MarketingFeature < ::Stripe::RequestParams # The marketing feature name. Up to 80 characters long. sig { returns(String) } def name; end @@ -97295,7 +105017,7 @@ module Stripe sig { params(name: String).void } def initialize(name: nil); end end - class PackageDimensions < Stripe::RequestParams + class PackageDimensions < ::Stripe::RequestParams # Height, in inches. Maximum precision is 2 decimal places. sig { returns(Float) } def height; end @@ -97435,7 +105157,7 @@ module Stripe end # typed: true module Stripe - class ProductSearchParams < Stripe::RequestParams + class ProductSearchParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -97464,8 +105186,8 @@ module Stripe end # typed: true module Stripe - class PromotionCodeListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class PromotionCodeListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -97556,8 +105278,8 @@ module Stripe end # typed: true module Stripe - class PromotionCodeCreateParams < Stripe::RequestParams - class Promotion < Stripe::RequestParams + class PromotionCodeCreateParams < ::Stripe::RequestParams + class Promotion < ::Stripe::RequestParams # If promotion `type` is `coupon`, the coupon for this promotion code. sig { returns(T.nilable(String)) } def coupon; end @@ -97571,8 +105293,8 @@ module Stripe sig { params(coupon: T.nilable(String), type: String).void } def initialize(coupon: nil, type: nil); end end - class Restrictions < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class Restrictions < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work). sig { returns(T.nilable(Integer)) } def minimum_amount; end @@ -97686,9 +105408,9 @@ module Stripe end # typed: true module Stripe - class PromotionCodeUpdateParams < Stripe::RequestParams - class Restrictions < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class PromotionCodeUpdateParams < ::Stripe::RequestParams + class Restrictions < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work). sig { returns(T.nilable(Integer)) } def minimum_amount; end @@ -97743,7 +105465,7 @@ module Stripe end # typed: true module Stripe - class QuoteListParams < Stripe::RequestParams + class QuoteListParams < ::Stripe::RequestParams # The ID of the customer whose quotes will be retrieved. sig { returns(T.nilable(String)) } def customer; end @@ -97795,9 +105517,9 @@ module Stripe end # typed: true module Stripe - class QuoteCreateParams < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class QuoteCreateParams < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -97828,7 +105550,7 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -97849,7 +105571,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class FromQuote < Stripe::RequestParams + class FromQuote < ::Stripe::RequestParams # Whether this quote is a revision of the previous quote. sig { returns(T.nilable(T::Boolean)) } def is_revision; end @@ -97863,8 +105585,8 @@ module Stripe sig { params(is_revision: T.nilable(T::Boolean), quote: String).void } def initialize(is_revision: nil, quote: nil); end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -97895,8 +105617,8 @@ module Stripe } def initialize(days_until_due: nil, issuer: nil); end end - class LineItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -97917,8 +105639,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -98018,9 +105740,9 @@ module Stripe tax_rates: nil ); end end - class SubscriptionData < Stripe::RequestParams - class BillingMode < Stripe::RequestParams - class Flexible < Stripe::RequestParams + class SubscriptionData < ::Stripe::RequestParams + class BillingMode < ::Stripe::RequestParams + class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. sig { returns(T.nilable(String)) } def proration_discounts; end @@ -98090,7 +105812,7 @@ module Stripe trial_period_days: nil ); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when the invoice is paid. If no amount is set, the full amount is transferred. There cannot be any line items with recurring prices when using this field. sig { returns(T.nilable(Integer)) } def amount; end @@ -98262,9 +105984,9 @@ module Stripe end # typed: true module Stripe - class QuoteUpdateParams < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class QuoteUpdateParams < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -98295,7 +106017,7 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -98316,8 +106038,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -98348,8 +106070,8 @@ module Stripe } def initialize(days_until_due: nil, issuer: nil); end end - class LineItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -98370,8 +106092,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -98477,7 +106199,7 @@ module Stripe tax_rates: nil ); end end - class SubscriptionData < Stripe::RequestParams + class SubscriptionData < ::Stripe::RequestParams # The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. sig { returns(T.nilable(String)) } def description; end @@ -98514,7 +106236,7 @@ module Stripe trial_period_days: nil ); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when the invoice is paid. If no amount is set, the full amount is transferred. There cannot be any line items with recurring prices when using this field. sig { returns(T.nilable(Integer)) } def amount; end @@ -98672,7 +106394,7 @@ module Stripe end # typed: true module Stripe - class QuoteListComputedUpfrontLineItemsParams < Stripe::RequestParams + class QuoteListComputedUpfrontLineItemsParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -98701,7 +106423,7 @@ module Stripe end # typed: true module Stripe - class QuoteListLineItemsParams < Stripe::RequestParams + class QuoteListLineItemsParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -98730,7 +106452,7 @@ module Stripe end # typed: true module Stripe - class QuoteAcceptParams < Stripe::RequestParams + class QuoteAcceptParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -98742,7 +106464,7 @@ module Stripe end # typed: true module Stripe - class QuoteCancelParams < Stripe::RequestParams + class QuoteCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -98754,7 +106476,7 @@ module Stripe end # typed: true module Stripe - class QuoteFinalizeQuoteParams < Stripe::RequestParams + class QuoteFinalizeQuoteParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -98771,7 +106493,7 @@ module Stripe end # typed: true module Stripe - class QuotePdfParams < Stripe::RequestParams + class QuotePdfParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -98784,8 +106506,8 @@ end # typed: true module Stripe module Radar - class EarlyFraudWarningListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class EarlyFraudWarningListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -98866,14 +106588,14 @@ end # typed: true module Stripe module Radar - class ValueListItemDeleteParams < Stripe::RequestParams; end + class ValueListItemDeleteParams < ::Stripe::RequestParams; end end end # typed: true module Stripe module Radar - class ValueListItemListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ValueListItemListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -98954,7 +106676,7 @@ end # typed: true module Stripe module Radar - class ValueListItemCreateParams < Stripe::RequestParams + class ValueListItemCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -98978,13 +106700,13 @@ end # typed: true module Stripe module Radar - class ValueListDeleteParams < Stripe::RequestParams; end + class ValueListDeleteParams < ::Stripe::RequestParams; end end end # typed: true module Stripe module Radar - class ValueListUpdateParams < Stripe::RequestParams + class ValueListUpdateParams < ::Stripe::RequestParams # The name of the value list for use in rules. sig { returns(T.nilable(String)) } def alias; end @@ -99017,8 +106739,8 @@ end # typed: true module Stripe module Radar - class ValueListListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ValueListListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -99099,7 +106821,7 @@ end # typed: true module Stripe module Radar - class ValueListCreateParams < Stripe::RequestParams + class ValueListCreateParams < ::Stripe::RequestParams # The name of the value list for use in rules. sig { returns(String) } def alias; end @@ -99136,8 +106858,8 @@ module Stripe end # typed: true module Stripe - class RefundListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class RefundListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -99216,7 +106938,7 @@ module Stripe end # typed: true module Stripe - class RefundCreateParams < Stripe::RequestParams + class RefundCreateParams < ::Stripe::RequestParams # Attribute for param field amount sig { returns(T.nilable(Integer)) } def amount; end @@ -99300,7 +107022,7 @@ module Stripe end # typed: true module Stripe - class RefundUpdateParams < Stripe::RequestParams + class RefundUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -99321,7 +107043,7 @@ module Stripe end # typed: true module Stripe - class RefundCancelParams < Stripe::RequestParams + class RefundCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -99333,7 +107055,7 @@ module Stripe end # typed: true module Stripe - class RefundExpireParams < Stripe::RequestParams + class RefundExpireParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -99346,8 +107068,8 @@ end # typed: true module Stripe module Reporting - class ReportRunListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ReportRunListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -99416,8 +107138,8 @@ end # typed: true module Stripe module Reporting - class ReportRunCreateParams < Stripe::RequestParams - class Parameters < Stripe::RequestParams + class ReportRunCreateParams < ::Stripe::RequestParams + class Parameters < ::Stripe::RequestParams # The set of report columns to include in the report output. If omitted, the Report Type is run with its default column set. sig { returns(T.nilable(T::Array[String])) } def columns; end @@ -99499,7 +107221,7 @@ end # typed: true module Stripe module Reporting - class ReportTypeListParams < Stripe::RequestParams + class ReportTypeListParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -99512,8 +107234,8 @@ module Stripe end # typed: true module Stripe - class ReviewListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ReviewListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -99580,7 +107302,7 @@ module Stripe end # typed: true module Stripe - class ReviewApproveParams < Stripe::RequestParams + class ReviewApproveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -99592,8 +107314,8 @@ module Stripe end # typed: true module Stripe - class SetupAttemptListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class SetupAttemptListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -99669,8 +107391,8 @@ module Stripe end # typed: true module Stripe - class SetupIntentListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class SetupIntentListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -99757,8 +107479,8 @@ module Stripe end # typed: true module Stripe - class SetupIntentCreateParams < Stripe::RequestParams - class AutomaticPaymentMethods < Stripe::RequestParams + class SetupIntentCreateParams < ::Stripe::RequestParams + class AutomaticPaymentMethods < ::Stripe::RequestParams # Controls whether this SetupIntent will accept redirect-based payment methods. # # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/setup_intents/confirm) this SetupIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the setup. @@ -99774,10 +107496,10 @@ module Stripe sig { params(allow_redirects: T.nilable(String), enabled: T::Boolean).void } def initialize(allow_redirects: nil, enabled: nil); end end - class MandateData < Stripe::RequestParams - class CustomerAcceptance < Stripe::RequestParams - class Offline < Stripe::RequestParams; end - class Online < Stripe::RequestParams + class MandateData < ::Stripe::RequestParams + class CustomerAcceptance < ::Stripe::RequestParams + class Offline < ::Stripe::RequestParams; end + class Online < ::Stripe::RequestParams # The IP address from which the Mandate was accepted by the customer. sig { returns(String) } def ip_address; end @@ -99834,8 +107556,8 @@ module Stripe } def initialize(customer_acceptance: nil); end end - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. sig { returns(String) } def account_number; end @@ -99856,12 +107578,12 @@ module Stripe } def initialize(account_number: nil, institution_number: nil, transit_number: nil); end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. sig { returns(String) } def account_number; end @@ -99875,7 +107597,7 @@ module Stripe sig { params(account_number: String, bsb_number: String).void } def initialize(account_number: nil, bsb_number: nil); end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. sig { returns(T.nilable(String)) } def account_number; end @@ -99889,10 +107611,10 @@ module Stripe sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void } def initialize(account_number: nil, sort_code: nil); end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -99969,8 +107691,8 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end - class Blik < Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Blik < ::Stripe::RequestParams; end + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) sig { returns(String) } def tax_id; end @@ -99979,10 +107701,10 @@ module Stripe sig { params(tax_id: String).void } def initialize(tax_id: nil); end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end + class Eps < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -99991,7 +107713,7 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction sig { returns(T.nilable(String)) } def account_holder_type; end @@ -100005,9 +107727,9 @@ module Stripe sig { params(account_holder_type: T.nilable(String), bank: String).void } def initialize(account_holder_type: nil, bank: nil); end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. sig { returns(T.nilable(String)) } def bank; end @@ -100016,10 +107738,10 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -100048,13 +107770,13 @@ module Stripe sig { params(dob: T.nilable(SetupIntentCreateParams::PaymentMethodData::Klarna::Dob)).void } def initialize(dob: nil); end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. sig { returns(T.nilable(String)) } def funding; end @@ -100063,7 +107785,7 @@ module Stripe sig { params(funding: T.nilable(String)).void } def initialize(funding: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -100106,8 +107828,8 @@ module Stripe suffix: nil ); end end - class Oxxo < Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams; end + class P24 < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -100116,13 +107838,13 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -100131,10 +107853,10 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } def iban; end @@ -100143,7 +107865,7 @@ module Stripe sig { params(iban: String).void } def initialize(iban: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. sig { returns(String) } def country; end @@ -100152,9 +107874,9 @@ module Stripe sig { params(country: String).void } def initialize(country: nil); end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -100191,8 +107913,8 @@ module Stripe routing_number: nil ); end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. sig { returns(T.nilable(SetupIntentCreateParams::PaymentMethodData::AcssDebit)) } def acss_debit; end @@ -100627,9 +108349,9 @@ module Stripe zip: nil ); end end - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # A URL for custom mandate text to render during confirmation step. # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. @@ -100694,9 +108416,9 @@ module Stripe } def initialize(currency: nil, mandate_options: nil, verification_method: nil); end end - class AmazonPay < Stripe::RequestParams; end - class BacsDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams; end + class BacsDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -100719,8 +108441,8 @@ module Stripe } def initialize(mandate_options: nil); end end - class Card < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. sig { returns(Integer) } def amount; end @@ -100789,9 +108511,9 @@ module Stripe supported_types: nil ); end end - class ThreeDSecure < Stripe::RequestParams - class NetworkOptions < Stripe::RequestParams - class CartesBancaires < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams + class NetworkOptions < ::Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams # The cryptogram calculation algorithm used by the card Issuer's ACS # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. # messageExtension: CB-AVALGO @@ -100943,9 +108665,9 @@ module Stripe three_d_secure: nil ); end end - class CardPresent < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class OnDemand < Stripe::RequestParams + class CardPresent < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class OnDemand < ::Stripe::RequestParams # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. sig { returns(T.nilable(Integer)) } def average_amount; end @@ -100982,8 +108704,8 @@ module Stripe purchase_interval_count: nil ); end end - class Subscription < Stripe::RequestParams - class NextBilling < Stripe::RequestParams + class Subscription < ::Stripe::RequestParams + class NextBilling < ::Stripe::RequestParams # The amount of the next charge for the subscription. sig { returns(Integer) } def amount; end @@ -101073,7 +108795,7 @@ module Stripe subscriptions: nil ); end end - class Link < Stripe::RequestParams + class Link < ::Stripe::RequestParams # [Deprecated] This is a legacy parameter that no longer has any function. sig { returns(T.nilable(String)) } def persistent_token; end @@ -101082,7 +108804,7 @@ module Stripe sig { params(persistent_token: T.nilable(String)).void } def initialize(persistent_token: nil); end end - class Paypal < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer. sig { returns(T.nilable(String)) } def billing_agreement_id; end @@ -101091,8 +108813,8 @@ module Stripe sig { params(billing_agreement_id: T.nilable(String)).void } def initialize(billing_agreement_id: nil); end end - class SepaDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -101115,9 +108837,9 @@ module Stripe } def initialize(mandate_options: nil); end end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -101161,7 +108883,7 @@ module Stripe } def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil); end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # The method used to collect offline mandate customer acceptance. sig { returns(T.nilable(String)) } def collection_method; end @@ -101170,7 +108892,7 @@ module Stripe sig { params(collection_method: T.nilable(String)).void } def initialize(collection_method: nil); end end - class Networks < Stripe::RequestParams + class Networks < ::Stripe::RequestParams # Triggers validations to run across the selected networks sig { returns(T.nilable(T::Array[String])) } def requested; end @@ -101309,7 +109031,7 @@ module Stripe us_bank_account: nil ); end end - class SingleUse < Stripe::RequestParams + class SingleUse < ::Stripe::RequestParams # Amount the customer is granting permission to collect later. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). sig { returns(Integer) } def amount; end @@ -101361,6 +109083,13 @@ module Stripe def description; end sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } def description=(_description); end + # The list of payment method types to exclude from use with this SetupIntent. + sig { returns(T.nilable(T::Array[String])) } + def excluded_payment_method_types; end + sig { + params(_excluded_payment_method_types: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) + } + def excluded_payment_method_types=(_excluded_payment_method_types); end # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -101451,7 +109180,7 @@ module Stripe sig { params(_use_stripe_sdk: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } def use_stripe_sdk=(_use_stripe_sdk); end sig { - params(attach_to_self: T.nilable(T::Boolean), automatic_payment_methods: T.nilable(SetupIntentCreateParams::AutomaticPaymentMethods), confirm: T.nilable(T::Boolean), confirmation_token: T.nilable(String), customer: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), mandate_data: T.nilable(T.any(String, SetupIntentCreateParams::MandateData)), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(SetupIntentCreateParams::PaymentMethodData), payment_method_options: T.nilable(SetupIntentCreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), return_url: T.nilable(String), single_use: T.nilable(SetupIntentCreateParams::SingleUse), usage: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void + params(attach_to_self: T.nilable(T::Boolean), automatic_payment_methods: T.nilable(SetupIntentCreateParams::AutomaticPaymentMethods), confirm: T.nilable(T::Boolean), confirmation_token: T.nilable(String), customer: T.nilable(String), description: T.nilable(String), excluded_payment_method_types: T.nilable(T::Array[String]), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), mandate_data: T.nilable(T.any(String, SetupIntentCreateParams::MandateData)), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(SetupIntentCreateParams::PaymentMethodData), payment_method_options: T.nilable(SetupIntentCreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), return_url: T.nilable(String), single_use: T.nilable(SetupIntentCreateParams::SingleUse), usage: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void } def initialize( attach_to_self: nil, @@ -101460,6 +109189,7 @@ module Stripe confirmation_token: nil, customer: nil, description: nil, + excluded_payment_method_types: nil, expand: nil, flow_directions: nil, mandate_data: nil, @@ -101479,9 +109209,9 @@ module Stripe end # typed: true module Stripe - class SetupIntentUpdateParams < Stripe::RequestParams - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class SetupIntentUpdateParams < ::Stripe::RequestParams + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. sig { returns(String) } def account_number; end @@ -101502,12 +109232,12 @@ module Stripe } def initialize(account_number: nil, institution_number: nil, transit_number: nil); end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. sig { returns(String) } def account_number; end @@ -101521,7 +109251,7 @@ module Stripe sig { params(account_number: String, bsb_number: String).void } def initialize(account_number: nil, bsb_number: nil); end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. sig { returns(T.nilable(String)) } def account_number; end @@ -101535,10 +109265,10 @@ module Stripe sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void } def initialize(account_number: nil, sort_code: nil); end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -101615,8 +109345,8 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end - class Blik < Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Blik < ::Stripe::RequestParams; end + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) sig { returns(String) } def tax_id; end @@ -101625,10 +109355,10 @@ module Stripe sig { params(tax_id: String).void } def initialize(tax_id: nil); end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end + class Eps < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -101637,7 +109367,7 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction sig { returns(T.nilable(String)) } def account_holder_type; end @@ -101651,9 +109381,9 @@ module Stripe sig { params(account_holder_type: T.nilable(String), bank: String).void } def initialize(account_holder_type: nil, bank: nil); end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. sig { returns(T.nilable(String)) } def bank; end @@ -101662,10 +109392,10 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -101694,13 +109424,13 @@ module Stripe sig { params(dob: T.nilable(SetupIntentUpdateParams::PaymentMethodData::Klarna::Dob)).void } def initialize(dob: nil); end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. sig { returns(T.nilable(String)) } def funding; end @@ -101709,7 +109439,7 @@ module Stripe sig { params(funding: T.nilable(String)).void } def initialize(funding: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -101752,8 +109482,8 @@ module Stripe suffix: nil ); end end - class Oxxo < Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams; end + class P24 < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -101762,13 +109492,13 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -101777,10 +109507,10 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } def iban; end @@ -101789,7 +109519,7 @@ module Stripe sig { params(iban: String).void } def initialize(iban: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. sig { returns(String) } def country; end @@ -101798,9 +109528,9 @@ module Stripe sig { params(country: String).void } def initialize(country: nil); end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -101837,8 +109567,8 @@ module Stripe routing_number: nil ); end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. sig { returns(T.nilable(SetupIntentUpdateParams::PaymentMethodData::AcssDebit)) } def acss_debit; end @@ -102273,9 +110003,9 @@ module Stripe zip: nil ); end end - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # A URL for custom mandate text to render during confirmation step. # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. @@ -102340,9 +110070,9 @@ module Stripe } def initialize(currency: nil, mandate_options: nil, verification_method: nil); end end - class AmazonPay < Stripe::RequestParams; end - class BacsDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams; end + class BacsDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -102365,8 +110095,8 @@ module Stripe } def initialize(mandate_options: nil); end end - class Card < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. sig { returns(Integer) } def amount; end @@ -102435,9 +110165,9 @@ module Stripe supported_types: nil ); end end - class ThreeDSecure < Stripe::RequestParams - class NetworkOptions < Stripe::RequestParams - class CartesBancaires < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams + class NetworkOptions < ::Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams # The cryptogram calculation algorithm used by the card Issuer's ACS # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. # messageExtension: CB-AVALGO @@ -102589,9 +110319,9 @@ module Stripe three_d_secure: nil ); end end - class CardPresent < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class OnDemand < Stripe::RequestParams + class CardPresent < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class OnDemand < ::Stripe::RequestParams # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. sig { returns(T.nilable(Integer)) } def average_amount; end @@ -102628,8 +110358,8 @@ module Stripe purchase_interval_count: nil ); end end - class Subscription < Stripe::RequestParams - class NextBilling < Stripe::RequestParams + class Subscription < ::Stripe::RequestParams + class NextBilling < ::Stripe::RequestParams # The amount of the next charge for the subscription. sig { returns(Integer) } def amount; end @@ -102719,7 +110449,7 @@ module Stripe subscriptions: nil ); end end - class Link < Stripe::RequestParams + class Link < ::Stripe::RequestParams # [Deprecated] This is a legacy parameter that no longer has any function. sig { returns(T.nilable(String)) } def persistent_token; end @@ -102728,7 +110458,7 @@ module Stripe sig { params(persistent_token: T.nilable(String)).void } def initialize(persistent_token: nil); end end - class Paypal < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer. sig { returns(T.nilable(String)) } def billing_agreement_id; end @@ -102737,8 +110467,8 @@ module Stripe sig { params(billing_agreement_id: T.nilable(String)).void } def initialize(billing_agreement_id: nil); end end - class SepaDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -102761,9 +110491,9 @@ module Stripe } def initialize(mandate_options: nil); end end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -102807,7 +110537,7 @@ module Stripe } def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil); end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # The method used to collect offline mandate customer acceptance. sig { returns(T.nilable(String)) } def collection_method; end @@ -102816,7 +110546,7 @@ module Stripe sig { params(collection_method: T.nilable(String)).void } def initialize(collection_method: nil); end end - class Networks < Stripe::RequestParams + class Networks < ::Stripe::RequestParams # Triggers validations to run across the selected networks sig { returns(T.nilable(T::Array[String])) } def requested; end @@ -102974,6 +110704,13 @@ module Stripe def description; end sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } def description=(_description); end + # The list of payment method types to exclude from use with this SetupIntent. + sig { returns(T.nilable(T.any(String, T::Array[String]))) } + def excluded_payment_method_types; end + sig { + params(_excluded_payment_method_types: T.nilable(T.any(String, T::Array[String]))).returns(T.nilable(T.any(String, T::Array[String]))) + } + def excluded_payment_method_types=(_excluded_payment_method_types); end # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -103028,12 +110765,13 @@ module Stripe } def payment_method_types=(_payment_method_types); end sig { - params(attach_to_self: T.nilable(T::Boolean), customer: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(SetupIntentUpdateParams::PaymentMethodData), payment_method_options: T.nilable(SetupIntentUpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String])).void + params(attach_to_self: T.nilable(T::Boolean), customer: T.nilable(String), description: T.nilable(String), excluded_payment_method_types: T.nilable(T.any(String, T::Array[String])), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(SetupIntentUpdateParams::PaymentMethodData), payment_method_options: T.nilable(SetupIntentUpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String])).void } def initialize( attach_to_self: nil, customer: nil, description: nil, + excluded_payment_method_types: nil, expand: nil, flow_directions: nil, metadata: nil, @@ -103047,7 +110785,7 @@ module Stripe end # typed: true module Stripe - class SetupIntentCancelParams < Stripe::RequestParams + class SetupIntentCancelParams < ::Stripe::RequestParams # Reason for canceling this SetupIntent. Possible values are: `abandoned`, `requested_by_customer`, or `duplicate` sig { returns(T.nilable(String)) } def cancellation_reason; end @@ -103064,11 +110802,11 @@ module Stripe end # typed: true module Stripe - class SetupIntentConfirmParams < Stripe::RequestParams - class MandateData < Stripe::RequestParams - class CustomerAcceptance < Stripe::RequestParams - class Offline < Stripe::RequestParams; end - class Online < Stripe::RequestParams + class SetupIntentConfirmParams < ::Stripe::RequestParams + class MandateData < ::Stripe::RequestParams + class CustomerAcceptance < ::Stripe::RequestParams + class Offline < ::Stripe::RequestParams; end + class Online < ::Stripe::RequestParams # The IP address from which the Mandate was accepted by the customer. sig { returns(T.nilable(String)) } def ip_address; end @@ -103127,8 +110865,8 @@ module Stripe } def initialize(customer_acceptance: nil); end end - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. sig { returns(String) } def account_number; end @@ -103149,12 +110887,12 @@ module Stripe } def initialize(account_number: nil, institution_number: nil, transit_number: nil); end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. sig { returns(String) } def account_number; end @@ -103168,7 +110906,7 @@ module Stripe sig { params(account_number: String, bsb_number: String).void } def initialize(account_number: nil, bsb_number: nil); end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. sig { returns(T.nilable(String)) } def account_number; end @@ -103182,10 +110920,10 @@ module Stripe sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void } def initialize(account_number: nil, sort_code: nil); end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -103262,8 +111000,8 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end - class Blik < Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Blik < ::Stripe::RequestParams; end + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) sig { returns(String) } def tax_id; end @@ -103272,10 +111010,10 @@ module Stripe sig { params(tax_id: String).void } def initialize(tax_id: nil); end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end + class Eps < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -103284,7 +111022,7 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction sig { returns(T.nilable(String)) } def account_holder_type; end @@ -103298,9 +111036,9 @@ module Stripe sig { params(account_holder_type: T.nilable(String), bank: String).void } def initialize(account_holder_type: nil, bank: nil); end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. sig { returns(T.nilable(String)) } def bank; end @@ -103309,10 +111047,10 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -103343,13 +111081,13 @@ module Stripe } def initialize(dob: nil); end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. sig { returns(T.nilable(String)) } def funding; end @@ -103358,7 +111096,7 @@ module Stripe sig { params(funding: T.nilable(String)).void } def initialize(funding: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -103401,8 +111139,8 @@ module Stripe suffix: nil ); end end - class Oxxo < Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams; end + class P24 < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -103411,13 +111149,13 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -103426,10 +111164,10 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } def iban; end @@ -103438,7 +111176,7 @@ module Stripe sig { params(iban: String).void } def initialize(iban: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. sig { returns(String) } def country; end @@ -103447,9 +111185,9 @@ module Stripe sig { params(country: String).void } def initialize(country: nil); end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -103486,8 +111224,8 @@ module Stripe routing_number: nil ); end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. sig { returns(T.nilable(SetupIntentConfirmParams::PaymentMethodData::AcssDebit)) } def acss_debit; end @@ -103922,9 +111660,9 @@ module Stripe zip: nil ); end end - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # A URL for custom mandate text to render during confirmation step. # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. @@ -103989,9 +111727,9 @@ module Stripe } def initialize(currency: nil, mandate_options: nil, verification_method: nil); end end - class AmazonPay < Stripe::RequestParams; end - class BacsDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams; end + class BacsDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -104014,8 +111752,8 @@ module Stripe } def initialize(mandate_options: nil); end end - class Card < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. sig { returns(Integer) } def amount; end @@ -104084,9 +111822,9 @@ module Stripe supported_types: nil ); end end - class ThreeDSecure < Stripe::RequestParams - class NetworkOptions < Stripe::RequestParams - class CartesBancaires < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams + class NetworkOptions < ::Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams # The cryptogram calculation algorithm used by the card Issuer's ACS # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. # messageExtension: CB-AVALGO @@ -104238,9 +111976,9 @@ module Stripe three_d_secure: nil ); end end - class CardPresent < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class OnDemand < Stripe::RequestParams + class CardPresent < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class OnDemand < ::Stripe::RequestParams # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. sig { returns(T.nilable(Integer)) } def average_amount; end @@ -104277,8 +112015,8 @@ module Stripe purchase_interval_count: nil ); end end - class Subscription < Stripe::RequestParams - class NextBilling < Stripe::RequestParams + class Subscription < ::Stripe::RequestParams + class NextBilling < ::Stripe::RequestParams # The amount of the next charge for the subscription. sig { returns(Integer) } def amount; end @@ -104368,7 +112106,7 @@ module Stripe subscriptions: nil ); end end - class Link < Stripe::RequestParams + class Link < ::Stripe::RequestParams # [Deprecated] This is a legacy parameter that no longer has any function. sig { returns(T.nilable(String)) } def persistent_token; end @@ -104377,7 +112115,7 @@ module Stripe sig { params(persistent_token: T.nilable(String)).void } def initialize(persistent_token: nil); end end - class Paypal < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer. sig { returns(T.nilable(String)) } def billing_agreement_id; end @@ -104386,8 +112124,8 @@ module Stripe sig { params(billing_agreement_id: T.nilable(String)).void } def initialize(billing_agreement_id: nil); end end - class SepaDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -104410,9 +112148,9 @@ module Stripe } def initialize(mandate_options: nil); end end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -104456,7 +112194,7 @@ module Stripe } def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil); end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # The method used to collect offline mandate customer acceptance. sig { returns(T.nilable(String)) } def collection_method; end @@ -104465,7 +112203,7 @@ module Stripe sig { params(collection_method: T.nilable(String)).void } def initialize(collection_method: nil); end end - class Networks < Stripe::RequestParams + class Networks < ::Stripe::RequestParams # Triggers validations to run across the selected networks sig { returns(T.nilable(T::Array[String])) } def requested; end @@ -104672,7 +112410,7 @@ module Stripe end # typed: true module Stripe - class SetupIntentVerifyMicrodepositsParams < Stripe::RequestParams + class SetupIntentVerifyMicrodepositsParams < ::Stripe::RequestParams # Two positive integers, in *cents*, equal to the values of the microdeposits sent to the bank account. sig { returns(T.nilable(T::Array[Integer])) } def amounts; end @@ -104696,8 +112434,8 @@ module Stripe end # typed: true module Stripe - class ShippingRateListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ShippingRateListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -104776,9 +112514,9 @@ module Stripe end # typed: true module Stripe - class ShippingRateCreateParams < Stripe::RequestParams - class DeliveryEstimate < Stripe::RequestParams - class Maximum < Stripe::RequestParams + class ShippingRateCreateParams < ::Stripe::RequestParams + class DeliveryEstimate < ::Stripe::RequestParams + class Maximum < ::Stripe::RequestParams # A unit of time. sig { returns(String) } def unit; end @@ -104792,7 +112530,7 @@ module Stripe sig { params(unit: String, value: Integer).void } def initialize(unit: nil, value: nil); end end - class Minimum < Stripe::RequestParams + class Minimum < ::Stripe::RequestParams # A unit of time. sig { returns(String) } def unit; end @@ -104825,8 +112563,8 @@ module Stripe } def initialize(maximum: nil, minimum: nil); end end - class FixedAmount < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class FixedAmount < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A non-negative integer in cents representing how much to charge. sig { returns(Integer) } def amount; end @@ -104927,9 +112665,9 @@ module Stripe end # typed: true module Stripe - class ShippingRateUpdateParams < Stripe::RequestParams - class FixedAmount < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class ShippingRateUpdateParams < ::Stripe::RequestParams + class FixedAmount < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A non-negative integer in cents representing how much to charge. sig { returns(T.nilable(Integer)) } def amount; end @@ -105001,7 +112739,7 @@ end # typed: true module Stripe module Sigma - class ScheduledQueryRunListParams < Stripe::RequestParams + class ScheduledQueryRunListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -105031,10 +112769,10 @@ module Stripe end # typed: true module Stripe - class SourceUpdateParams < Stripe::RequestParams - class Mandate < Stripe::RequestParams - class Acceptance < Stripe::RequestParams - class Offline < Stripe::RequestParams + class SourceUpdateParams < ::Stripe::RequestParams + class Mandate < ::Stripe::RequestParams + class Acceptance < ::Stripe::RequestParams + class Offline < ::Stripe::RequestParams # An email to contact you with if a copy of the mandate is requested, required if `type` is `offline`. sig { returns(String) } def contact_email; end @@ -105043,7 +112781,7 @@ module Stripe sig { params(contact_email: String).void } def initialize(contact_email: nil); end end - class Online < Stripe::RequestParams + class Online < ::Stripe::RequestParams # The Unix timestamp (in seconds) when the mandate was accepted or refused by the customer. sig { returns(T.nilable(Integer)) } def date; end @@ -105156,8 +112894,8 @@ module Stripe notification_method: nil ); end end - class Owner < Stripe::RequestParams - class Address < Stripe::RequestParams + class Owner < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -105227,8 +112965,8 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil); end end - class SourceOrder < Stripe::RequestParams - class Item < Stripe::RequestParams + class SourceOrder < ::Stripe::RequestParams + class Item < ::Stripe::RequestParams # Attribute for param field amount sig { returns(T.nilable(Integer)) } def amount; end @@ -105271,8 +113009,8 @@ module Stripe type: nil ); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -105419,10 +113157,10 @@ module Stripe end # typed: true module Stripe - class SourceCreateParams < Stripe::RequestParams - class Mandate < Stripe::RequestParams - class Acceptance < Stripe::RequestParams - class Offline < Stripe::RequestParams + class SourceCreateParams < ::Stripe::RequestParams + class Mandate < ::Stripe::RequestParams + class Acceptance < ::Stripe::RequestParams + class Offline < ::Stripe::RequestParams # An email to contact you with if a copy of the mandate is requested, required if `type` is `offline`. sig { returns(String) } def contact_email; end @@ -105431,7 +113169,7 @@ module Stripe sig { params(contact_email: String).void } def initialize(contact_email: nil); end end - class Online < Stripe::RequestParams + class Online < ::Stripe::RequestParams # The Unix timestamp (in seconds) when the mandate was accepted or refused by the customer. sig { returns(T.nilable(Integer)) } def date; end @@ -105544,8 +113282,8 @@ module Stripe notification_method: nil ); end end - class Owner < Stripe::RequestParams - class Address < Stripe::RequestParams + class Owner < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -105615,7 +113353,7 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil); end end - class Receiver < Stripe::RequestParams + class Receiver < ::Stripe::RequestParams # The method Stripe should use to request information needed to process a refund or mispayment. Either `email` (an email is sent directly to the customer) or `manual` (a `source.refund_attributes_required` event is sent to your webhooks endpoint). Refer to each payment method's documentation to learn which refund attributes may be required. sig { returns(T.nilable(String)) } def refund_attributes_method; end @@ -105624,7 +113362,7 @@ module Stripe sig { params(refund_attributes_method: T.nilable(String)).void } def initialize(refund_attributes_method: nil); end end - class Redirect < Stripe::RequestParams + class Redirect < ::Stripe::RequestParams # The URL you provide to redirect the customer back to you after they authenticated their payment. It can use your application URI scheme in the context of a mobile application. sig { returns(String) } def return_url; end @@ -105633,8 +113371,8 @@ module Stripe sig { params(return_url: String).void } def initialize(return_url: nil); end end - class SourceOrder < Stripe::RequestParams - class Item < Stripe::RequestParams + class SourceOrder < ::Stripe::RequestParams + class Item < ::Stripe::RequestParams # Attribute for param field amount sig { returns(T.nilable(Integer)) } def amount; end @@ -105677,8 +113415,8 @@ module Stripe type: nil ); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -105889,7 +113627,7 @@ module Stripe end # typed: true module Stripe - class SourceVerifyParams < Stripe::RequestParams + class SourceVerifyParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -105906,7 +113644,7 @@ module Stripe end # typed: true module Stripe - class SubscriptionItemDeleteParams < Stripe::RequestParams + class SubscriptionItemDeleteParams < ::Stripe::RequestParams # Delete all usage for the given subscription item. Allowed only when the current plan's `usage_type` is `metered`. sig { returns(T.nilable(T::Boolean)) } def clear_usage; end @@ -105930,8 +113668,8 @@ module Stripe end # typed: true module Stripe - class SubscriptionItemUpdateParams < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class SubscriptionItemUpdateParams < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) sig { returns(Integer) } def usage_gte; end @@ -105940,7 +113678,7 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -105961,8 +113699,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -106123,7 +113861,7 @@ module Stripe end # typed: true module Stripe - class SubscriptionItemListParams < Stripe::RequestParams + class SubscriptionItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -106163,8 +113901,8 @@ module Stripe end # typed: true module Stripe - class SubscriptionItemCreateParams < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class SubscriptionItemCreateParams < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) sig { returns(Integer) } def usage_gte; end @@ -106173,7 +113911,7 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -106194,8 +113932,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -106356,8 +114094,8 @@ module Stripe end # typed: true module Stripe - class SubscriptionScheduleListParams < Stripe::RequestParams - class CanceledAt < Stripe::RequestParams + class SubscriptionScheduleListParams < ::Stripe::RequestParams + class CanceledAt < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -106383,7 +114121,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class CompletedAt < Stripe::RequestParams + class CompletedAt < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -106409,7 +114147,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class Created < Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -106435,7 +114173,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class ReleasedAt < Stripe::RequestParams + class ReleasedAt < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -106538,9 +114276,9 @@ module Stripe end # typed: true module Stripe - class SubscriptionScheduleCreateParams < Stripe::RequestParams - class BillingMode < Stripe::RequestParams - class Flexible < Stripe::RequestParams + class SubscriptionScheduleCreateParams < ::Stripe::RequestParams + class BillingMode < ::Stripe::RequestParams + class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. sig { returns(T.nilable(String)) } def proration_discounts; end @@ -106566,9 +114304,9 @@ module Stripe } def initialize(flexible: nil, type: nil); end end - class DefaultSettings < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class DefaultSettings < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -106601,7 +114339,7 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class BillingThresholds < Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period sig { returns(T.nilable(Integer)) } def amount_gte; end @@ -106619,8 +114357,8 @@ module Stripe } def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil); end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -106660,7 +114398,7 @@ module Stripe } def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Float)) } def amount_percent; end @@ -106752,9 +114490,9 @@ module Stripe transfer_data: nil ); end end - class Phase < Stripe::RequestParams - class AddInvoiceItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class Phase < ::Stripe::RequestParams + class AddInvoiceItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -106775,8 +114513,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Period < Stripe::RequestParams - class End < Stripe::RequestParams + class Period < ::Stripe::RequestParams + class End < ::Stripe::RequestParams # A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -106790,7 +114528,7 @@ module Stripe sig { params(timestamp: T.nilable(Integer), type: String).void } def initialize(timestamp: nil, type: nil); end end - class Start < Stripe::RequestParams + class Start < ::Stripe::RequestParams # A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -106823,7 +114561,7 @@ module Stripe } def initialize(end_: nil, start: nil); end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -106922,8 +114660,8 @@ module Stripe tax_rates: nil ); end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -106954,7 +114692,7 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class BillingThresholds < Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period sig { returns(T.nilable(Integer)) } def amount_gte; end @@ -106972,7 +114710,7 @@ module Stripe } def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -106993,7 +114731,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Duration < Stripe::RequestParams + class Duration < ::Stripe::RequestParams # Specifies phase duration. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -107007,8 +114745,8 @@ module Stripe sig { params(interval: String, interval_count: T.nilable(Integer)).void } def initialize(interval: nil, interval_count: nil); end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -107046,8 +114784,8 @@ module Stripe } def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil); end end - class Item < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class Item < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) sig { returns(Integer) } def usage_gte; end @@ -107056,7 +114794,7 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -107077,8 +114815,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -107204,7 +114942,7 @@ module Stripe tax_rates: nil ); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Float)) } def amount_percent; end @@ -107447,10 +115185,10 @@ module Stripe end # typed: true module Stripe - class SubscriptionScheduleUpdateParams < Stripe::RequestParams - class DefaultSettings < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class SubscriptionScheduleUpdateParams < ::Stripe::RequestParams + class DefaultSettings < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -107483,7 +115221,7 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class BillingThresholds < Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period sig { returns(T.nilable(Integer)) } def amount_gte; end @@ -107501,8 +115239,8 @@ module Stripe } def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil); end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -107542,7 +115280,7 @@ module Stripe } def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Float)) } def amount_percent; end @@ -107634,9 +115372,9 @@ module Stripe transfer_data: nil ); end end - class Phase < Stripe::RequestParams - class AddInvoiceItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class Phase < ::Stripe::RequestParams + class AddInvoiceItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -107657,8 +115395,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Period < Stripe::RequestParams - class End < Stripe::RequestParams + class Period < ::Stripe::RequestParams + class End < ::Stripe::RequestParams # A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -107672,7 +115410,7 @@ module Stripe sig { params(timestamp: T.nilable(Integer), type: String).void } def initialize(timestamp: nil, type: nil); end end - class Start < Stripe::RequestParams + class Start < ::Stripe::RequestParams # A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -107705,7 +115443,7 @@ module Stripe } def initialize(end_: nil, start: nil); end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -107804,8 +115542,8 @@ module Stripe tax_rates: nil ); end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -107836,7 +115574,7 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class BillingThresholds < Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period sig { returns(T.nilable(Integer)) } def amount_gte; end @@ -107854,7 +115592,7 @@ module Stripe } def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -107875,7 +115613,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Duration < Stripe::RequestParams + class Duration < ::Stripe::RequestParams # Specifies phase duration. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -107889,8 +115627,8 @@ module Stripe sig { params(interval: String, interval_count: T.nilable(Integer)).void } def initialize(interval: nil, interval_count: nil); end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -107928,8 +115666,8 @@ module Stripe } def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil); end end - class Item < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class Item < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) sig { returns(Integer) } def usage_gte; end @@ -107938,7 +115676,7 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -107959,8 +115697,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -108086,7 +115824,7 @@ module Stripe tax_rates: nil ); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Float)) } def amount_percent; end @@ -108319,7 +116057,7 @@ module Stripe end # typed: true module Stripe - class SubscriptionScheduleCancelParams < Stripe::RequestParams + class SubscriptionScheduleCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -108343,7 +116081,7 @@ module Stripe end # typed: true module Stripe - class SubscriptionScheduleReleaseParams < Stripe::RequestParams + class SubscriptionScheduleReleaseParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -108362,8 +116100,8 @@ module Stripe end # typed: true module Stripe - class SubscriptionCancelParams < Stripe::RequestParams - class CancellationDetails < Stripe::RequestParams + class SubscriptionCancelParams < ::Stripe::RequestParams + class CancellationDetails < ::Stripe::RequestParams # Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user. sig { returns(T.nilable(String)) } def comment; end @@ -108409,9 +116147,9 @@ module Stripe end # typed: true module Stripe - class SubscriptionUpdateParams < Stripe::RequestParams - class AddInvoiceItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class SubscriptionUpdateParams < ::Stripe::RequestParams + class AddInvoiceItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -108432,8 +116170,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Period < Stripe::RequestParams - class End < Stripe::RequestParams + class Period < ::Stripe::RequestParams + class End < ::Stripe::RequestParams # A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -108447,7 +116185,7 @@ module Stripe sig { params(timestamp: T.nilable(Integer), type: String).void } def initialize(timestamp: nil, type: nil); end end - class Start < Stripe::RequestParams + class Start < ::Stripe::RequestParams # A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -108480,7 +116218,7 @@ module Stripe } def initialize(end_: nil, start: nil); end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -108575,8 +116313,8 @@ module Stripe tax_rates: nil ); end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -108607,7 +116345,7 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class BillingThresholds < Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period sig { returns(T.nilable(Integer)) } def amount_gte; end @@ -108625,7 +116363,7 @@ module Stripe } def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil); end end - class CancellationDetails < Stripe::RequestParams + class CancellationDetails < ::Stripe::RequestParams # Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user. sig { returns(T.nilable(String)) } def comment; end @@ -108641,7 +116379,7 @@ module Stripe sig { params(comment: T.nilable(String), feedback: T.nilable(T.any(String, String))).void } def initialize(comment: nil, feedback: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -108662,8 +116400,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -108696,8 +116434,8 @@ module Stripe } def initialize(account_tax_ids: nil, issuer: nil); end end - class Item < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class Item < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) sig { returns(Integer) } def usage_gte; end @@ -108706,7 +116444,7 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -108727,8 +116465,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -108868,7 +116606,7 @@ module Stripe tax_rates: nil ); end end - class PauseCollection < Stripe::RequestParams + class PauseCollection < ::Stripe::RequestParams # The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`. sig { returns(String) } def behavior; end @@ -108882,10 +116620,10 @@ module Stripe sig { params(behavior: String, resumes_at: T.nilable(Integer)).void } def initialize(behavior: nil, resumes_at: nil); end end - class PaymentSettings < Stripe::RequestParams - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentSettings < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Transaction type of the mandate. sig { returns(T.nilable(String)) } def transaction_type; end @@ -108913,7 +116651,7 @@ module Stripe } def initialize(mandate_options: nil, verification_method: nil); end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Preferred language of the Bancontact authorization page that the customer is redirected to. sig { returns(T.nilable(String)) } def preferred_language; end @@ -108922,8 +116660,8 @@ module Stripe sig { params(preferred_language: T.nilable(String)).void } def initialize(preferred_language: nil); end end - class Card < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. sig { returns(T.nilable(Integer)) } def amount; end @@ -108968,9 +116706,9 @@ module Stripe } def initialize(mandate_options: nil, network: nil, request_three_d_secure: nil); end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -109017,11 +116755,11 @@ module Stripe } def initialize(bank_transfer: nil, funding_type: nil); end end - class Konbini < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -109183,7 +116921,7 @@ module Stripe save_default_payment_method: nil ); end end - class PendingInvoiceItemInterval < Stripe::RequestParams + class PendingInvoiceItemInterval < ::Stripe::RequestParams # Specifies invoicing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -109197,7 +116935,7 @@ module Stripe sig { params(interval: String, interval_count: T.nilable(Integer)).void } def initialize(interval: nil, interval_count: nil); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Float)) } def amount_percent; end @@ -109211,8 +116949,8 @@ module Stripe sig { params(amount_percent: T.nilable(Float), destination: String).void } def initialize(amount_percent: nil, destination: nil); end end - class TrialSettings < Stripe::RequestParams - class EndBehavior < Stripe::RequestParams + class TrialSettings < ::Stripe::RequestParams + class EndBehavior < ::Stripe::RequestParams # Indicates how the subscription should change when the trial ends if the user did not provide a payment method. sig { returns(String) } def missing_payment_method; end @@ -109466,12 +117204,12 @@ module Stripe end # typed: true module Stripe - class SubscriptionDeleteDiscountParams < Stripe::RequestParams; end + class SubscriptionDeleteDiscountParams < ::Stripe::RequestParams; end end # typed: true module Stripe - class SubscriptionListParams < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams + class SubscriptionListParams < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams # Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription. sig { returns(T::Boolean) } def enabled; end @@ -109480,7 +117218,7 @@ module Stripe sig { params(enabled: T::Boolean).void } def initialize(enabled: nil); end end - class Created < Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -109506,7 +117244,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class CurrentPeriodEnd < Stripe::RequestParams + class CurrentPeriodEnd < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -109532,7 +117270,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class CurrentPeriodStart < Stripe::RequestParams + class CurrentPeriodStart < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -109659,9 +117397,9 @@ module Stripe end # typed: true module Stripe - class SubscriptionCreateParams < Stripe::RequestParams - class AddInvoiceItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class SubscriptionCreateParams < ::Stripe::RequestParams + class AddInvoiceItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -109682,8 +117420,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Period < Stripe::RequestParams - class End < Stripe::RequestParams + class Period < ::Stripe::RequestParams + class End < ::Stripe::RequestParams # A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -109697,7 +117435,7 @@ module Stripe sig { params(timestamp: T.nilable(Integer), type: String).void } def initialize(timestamp: nil, type: nil); end end - class Start < Stripe::RequestParams + class Start < ::Stripe::RequestParams # A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -109730,7 +117468,7 @@ module Stripe } def initialize(end_: nil, start: nil); end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -109825,8 +117563,8 @@ module Stripe tax_rates: nil ); end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -109857,7 +117595,7 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class BillingCycleAnchorConfig < Stripe::RequestParams + class BillingCycleAnchorConfig < ::Stripe::RequestParams # The day of the month the anchor should be. Ranges from 1 to 31. sig { returns(Integer) } def day_of_month; end @@ -109888,8 +117626,8 @@ module Stripe } def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil); end end - class BillingMode < Stripe::RequestParams - class Flexible < Stripe::RequestParams + class BillingMode < ::Stripe::RequestParams + class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. sig { returns(T.nilable(String)) } def proration_discounts; end @@ -109915,7 +117653,7 @@ module Stripe } def initialize(flexible: nil, type: nil); end end - class BillingThresholds < Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period sig { returns(T.nilable(Integer)) } def amount_gte; end @@ -109933,7 +117671,7 @@ module Stripe } def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -109954,8 +117692,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -109988,8 +117726,8 @@ module Stripe } def initialize(account_tax_ids: nil, issuer: nil); end end - class Item < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class Item < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) sig { returns(Integer) } def usage_gte; end @@ -109998,7 +117736,7 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -110019,8 +117757,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -110142,10 +117880,10 @@ module Stripe tax_rates: nil ); end end - class PaymentSettings < Stripe::RequestParams - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentSettings < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Transaction type of the mandate. sig { returns(T.nilable(String)) } def transaction_type; end @@ -110173,7 +117911,7 @@ module Stripe } def initialize(mandate_options: nil, verification_method: nil); end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Preferred language of the Bancontact authorization page that the customer is redirected to. sig { returns(T.nilable(String)) } def preferred_language; end @@ -110182,8 +117920,8 @@ module Stripe sig { params(preferred_language: T.nilable(String)).void } def initialize(preferred_language: nil); end end - class Card < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. sig { returns(T.nilable(Integer)) } def amount; end @@ -110228,9 +117966,9 @@ module Stripe } def initialize(mandate_options: nil, network: nil, request_three_d_secure: nil); end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -110277,11 +118015,11 @@ module Stripe } def initialize(bank_transfer: nil, funding_type: nil); end end - class Konbini < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -110443,7 +118181,7 @@ module Stripe save_default_payment_method: nil ); end end - class PendingInvoiceItemInterval < Stripe::RequestParams + class PendingInvoiceItemInterval < ::Stripe::RequestParams # Specifies invoicing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -110457,7 +118195,7 @@ module Stripe sig { params(interval: String, interval_count: T.nilable(Integer)).void } def initialize(interval: nil, interval_count: nil); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Float)) } def amount_percent; end @@ -110471,8 +118209,8 @@ module Stripe sig { params(amount_percent: T.nilable(Float), destination: String).void } def initialize(amount_percent: nil, destination: nil); end end - class TrialSettings < Stripe::RequestParams - class EndBehavior < Stripe::RequestParams + class TrialSettings < ::Stripe::RequestParams + class EndBehavior < ::Stripe::RequestParams # Indicates how the subscription should change when the trial ends if the user did not provide a payment method. sig { returns(String) } def missing_payment_method; end @@ -110748,7 +118486,7 @@ module Stripe end # typed: true module Stripe - class SubscriptionSearchParams < Stripe::RequestParams + class SubscriptionSearchParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -110777,9 +118515,9 @@ module Stripe end # typed: true module Stripe - class SubscriptionMigrateParams < Stripe::RequestParams - class BillingMode < Stripe::RequestParams - class Flexible < Stripe::RequestParams + class SubscriptionMigrateParams < ::Stripe::RequestParams + class BillingMode < ::Stripe::RequestParams + class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. sig { returns(T.nilable(String)) } def proration_discounts; end @@ -110825,7 +118563,7 @@ module Stripe end # typed: true module Stripe - class SubscriptionResumeParams < Stripe::RequestParams + class SubscriptionResumeParams < ::Stripe::RequestParams # The billing cycle anchor that applies when the subscription is resumed. Either `now` or `unchanged`. The default is `now`. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle). sig { returns(T.nilable(String)) } def billing_cycle_anchor; end @@ -110860,7 +118598,7 @@ end # typed: true module Stripe module Tax - class CalculationListLineItemsParams < Stripe::RequestParams + class CalculationListLineItemsParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -110891,9 +118629,9 @@ end # typed: true module Stripe module Tax - class CalculationCreateParams < Stripe::RequestParams - class CustomerDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class CalculationCreateParams < ::Stripe::RequestParams + class CustomerDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -110936,7 +118674,7 @@ module Stripe state: nil ); end end - class TaxId < Stripe::RequestParams + class TaxId < ::Stripe::RequestParams # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` sig { returns(String) } def type; end @@ -110990,7 +118728,7 @@ module Stripe taxability_override: nil ); end end - class LineItem < Stripe::RequestParams + class LineItem < ::Stripe::RequestParams # A positive integer representing the line item's total price in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). # If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes are calculated on top of this amount. sig { returns(Integer) } @@ -111042,8 +118780,8 @@ module Stripe tax_code: nil ); end end - class ShipFromDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class ShipFromDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -111096,7 +118834,7 @@ module Stripe sig { params(address: Tax::CalculationCreateParams::ShipFromDetails::Address).void } def initialize(address: nil); end end - class ShippingCost < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams # A positive integer in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) representing the shipping charge. If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes are calculated on top of this amount. sig { returns(T.nilable(Integer)) } def amount; end @@ -111189,7 +118927,7 @@ end # typed: true module Stripe module Tax - class RegistrationListParams < Stripe::RequestParams + class RegistrationListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -111231,10 +118969,10 @@ end # typed: true module Stripe module Tax - class RegistrationCreateParams < Stripe::RequestParams - class CountryOptions < Stripe::RequestParams - class Ae < Stripe::RequestParams - class Standard < Stripe::RequestParams + class RegistrationCreateParams < ::Stripe::RequestParams + class CountryOptions < ::Stripe::RequestParams + class Ae < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -111260,8 +118998,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Al < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Al < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -111287,7 +119025,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Am < Stripe::RequestParams + class Am < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -111296,8 +119034,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Ao < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Ao < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -111323,8 +119061,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class At < Stripe::RequestParams - class Standard < Stripe::RequestParams + class At < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -111350,8 +119088,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Au < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Au < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -111377,8 +119115,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Aw < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Aw < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -111404,7 +119142,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Az < Stripe::RequestParams + class Az < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -111413,8 +119151,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Ba < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Ba < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -111440,8 +119178,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Bb < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Bb < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -111467,8 +119205,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Bd < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Bd < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -111494,8 +119232,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Be < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Be < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -111521,8 +119259,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Bf < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Bf < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -111548,8 +119286,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Bg < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Bg < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -111575,8 +119313,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Bh < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Bh < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -111602,7 +119340,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Bj < Stripe::RequestParams + class Bj < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -111611,8 +119349,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Bs < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Bs < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -111638,7 +119376,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class By < Stripe::RequestParams + class By < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -111647,8 +119385,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Ca < Stripe::RequestParams - class ProvinceStandard < Stripe::RequestParams + class Ca < ::Stripe::RequestParams + class ProvinceStandard < ::Stripe::RequestParams # Two-letter CA province code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). sig { returns(String) } def province; end @@ -111676,8 +119414,8 @@ module Stripe } def initialize(province_standard: nil, type: nil); end end - class Cd < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Cd < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -111703,8 +119441,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Ch < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Ch < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -111730,7 +119468,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Cl < Stripe::RequestParams + class Cl < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -111739,7 +119477,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Cm < Stripe::RequestParams + class Cm < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -111748,7 +119486,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Co < Stripe::RequestParams + class Co < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -111757,7 +119495,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Cr < Stripe::RequestParams + class Cr < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -111766,7 +119504,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Cv < Stripe::RequestParams + class Cv < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -111775,8 +119513,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Cy < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Cy < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -111802,8 +119540,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Cz < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Cz < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -111829,8 +119567,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class De < Stripe::RequestParams - class Standard < Stripe::RequestParams + class De < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -111856,8 +119594,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Dk < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Dk < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -111883,7 +119621,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Ec < Stripe::RequestParams + class Ec < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -111892,8 +119630,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Ee < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Ee < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -111919,7 +119657,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Eg < Stripe::RequestParams + class Eg < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -111928,8 +119666,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Es < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Es < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -111955,8 +119693,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Et < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Et < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -111982,8 +119720,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Fi < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Fi < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -112009,8 +119747,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Fr < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Fr < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -112036,8 +119774,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Gb < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Gb < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -112063,7 +119801,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Ge < Stripe::RequestParams + class Ge < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -112072,8 +119810,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Gn < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Gn < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -112099,8 +119837,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Gr < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Gr < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -112126,8 +119864,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Hr < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Hr < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -112153,8 +119891,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Hu < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Hu < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -112180,7 +119918,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Id < Stripe::RequestParams + class Id < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -112189,8 +119927,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Ie < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Ie < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -112216,7 +119954,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class In < Stripe::RequestParams + class In < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -112225,8 +119963,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Is < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Is < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -112252,8 +119990,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class It < Stripe::RequestParams - class Standard < Stripe::RequestParams + class It < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -112279,8 +120017,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Jp < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Jp < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -112306,7 +120044,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Ke < Stripe::RequestParams + class Ke < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -112315,7 +120053,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Kg < Stripe::RequestParams + class Kg < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -112324,7 +120062,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Kh < Stripe::RequestParams + class Kh < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -112333,7 +120071,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Kr < Stripe::RequestParams + class Kr < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -112342,7 +120080,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Kz < Stripe::RequestParams + class Kz < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -112351,7 +120089,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class La < Stripe::RequestParams + class La < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -112360,8 +120098,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Lt < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Lt < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -112387,8 +120125,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Lu < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Lu < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -112414,8 +120152,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Lv < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Lv < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -112441,7 +120179,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Ma < Stripe::RequestParams + class Ma < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -112450,7 +120188,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Md < Stripe::RequestParams + class Md < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -112459,8 +120197,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Me < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Me < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -112486,8 +120224,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Mk < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Mk < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -112513,8 +120251,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Mr < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Mr < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -112540,8 +120278,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Mt < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Mt < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -112567,7 +120305,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Mx < Stripe::RequestParams + class Mx < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -112576,7 +120314,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class My < Stripe::RequestParams + class My < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -112585,7 +120323,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Ng < Stripe::RequestParams + class Ng < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -112594,8 +120332,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Nl < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Nl < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -112621,8 +120359,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class No < Stripe::RequestParams - class Standard < Stripe::RequestParams + class No < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -112648,7 +120386,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Np < Stripe::RequestParams + class Np < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -112657,8 +120395,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Nz < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Nz < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -112684,8 +120422,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Om < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Om < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -112711,7 +120449,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Pe < Stripe::RequestParams + class Pe < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -112720,7 +120458,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Ph < Stripe::RequestParams + class Ph < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -112729,8 +120467,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Pl < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Pl < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -112756,8 +120494,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Pt < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Pt < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -112783,8 +120521,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Ro < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Ro < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -112810,8 +120548,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Rs < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Rs < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -112837,7 +120575,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Ru < Stripe::RequestParams + class Ru < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -112846,7 +120584,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Sa < Stripe::RequestParams + class Sa < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -112855,8 +120593,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Se < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Se < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -112882,8 +120620,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Sg < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Sg < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -112909,8 +120647,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Si < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Si < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -112936,8 +120674,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Sk < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Sk < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -112963,7 +120701,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Sn < Stripe::RequestParams + class Sn < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -112972,8 +120710,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Sr < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Sr < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -112999,7 +120737,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Th < Stripe::RequestParams + class Th < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -113008,7 +120746,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Tj < Stripe::RequestParams + class Tj < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -113017,7 +120755,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Tr < Stripe::RequestParams + class Tr < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -113026,7 +120764,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Tz < Stripe::RequestParams + class Tw < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -113035,7 +120773,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Ua < Stripe::RequestParams + class Tz < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -113044,7 +120782,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Ug < Stripe::RequestParams + class Ua < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -113053,8 +120791,17 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Us < Stripe::RequestParams - class LocalAmusementTax < Stripe::RequestParams + class Ug < ::Stripe::RequestParams + # Type of registration to be created in `country`. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(type: String).void } + def initialize(type: nil); end + end + class Us < ::Stripe::RequestParams + class LocalAmusementTax < ::Stripe::RequestParams # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `14000` (Chicago), `06613` (Bloomington), `21696` (East Dundee), `24582` (Evanston), `45421` (Lynwood), `48892` (Midlothian), `64343` (River Grove), and `68081` (Schiller Park). sig { returns(String) } def jurisdiction; end @@ -113063,7 +120810,7 @@ module Stripe sig { params(jurisdiction: String).void } def initialize(jurisdiction: nil); end end - class LocalLeaseTax < Stripe::RequestParams + class LocalLeaseTax < ::Stripe::RequestParams # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `14000` (Chicago). sig { returns(String) } def jurisdiction; end @@ -113072,8 +120819,8 @@ module Stripe sig { params(jurisdiction: String).void } def initialize(jurisdiction: nil); end end - class StateSalesTax < Stripe::RequestParams - class Election < Stripe::RequestParams + class StateSalesTax < ::Stripe::RequestParams + class Election < ::Stripe::RequestParams # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `003` (Allegheny County) and `60000` (Philadelphia City). sig { returns(T.nilable(String)) } def jurisdiction; end @@ -113149,8 +120896,8 @@ module Stripe type: nil ); end end - class Uy < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Uy < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -113176,7 +120923,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Uz < Stripe::RequestParams + class Uz < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -113185,7 +120932,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Vn < Stripe::RequestParams + class Vn < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -113194,8 +120941,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Za < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Za < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -113221,7 +120968,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Zm < Stripe::RequestParams + class Zm < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -113230,8 +120977,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Zw < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Zw < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -113880,6 +121627,13 @@ module Stripe params(_tr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tr)).returns(T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tr)) } def tr=(_tr); end + # Options for the registration in TW. + sig { returns(T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tw)) } + def tw; end + sig { + params(_tw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tw)).returns(T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tw)) + } + def tw=(_tw); end # Options for the registration in TZ. sig { returns(T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tz)) } def tz; end @@ -113951,7 +121705,7 @@ module Stripe } def zw=(_zw); end sig { - params(ae: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ae), al: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Al), am: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Am), ao: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ao), at: T.nilable(Tax::RegistrationCreateParams::CountryOptions::At), au: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Au), aw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Aw), az: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Az), ba: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ba), bb: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bb), bd: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bd), be: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Be), bf: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bf), bg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bg), bh: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bh), bj: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bj), bs: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bs), by: T.nilable(Tax::RegistrationCreateParams::CountryOptions::By), ca: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ca), cd: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cd), ch: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ch), cl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cl), cm: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cm), co: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Co), cr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cr), cv: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cv), cy: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cy), cz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cz), de: T.nilable(Tax::RegistrationCreateParams::CountryOptions::De), dk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Dk), ec: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ec), ee: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ee), eg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Eg), es: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Es), et: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Et), fi: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Fi), fr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Fr), gb: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gb), ge: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ge), gn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gn), gr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gr), hr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Hr), hu: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Hu), id: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Id), ie: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ie), in_: T.nilable(Tax::RegistrationCreateParams::CountryOptions::In), is: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Is), it: T.nilable(Tax::RegistrationCreateParams::CountryOptions::It), jp: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Jp), ke: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ke), kg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kg), kh: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kh), kr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kr), kz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kz), la: T.nilable(Tax::RegistrationCreateParams::CountryOptions::La), lt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lt), lu: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lu), lv: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lv), ma: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ma), md: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Md), me: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Me), mk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mk), mr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mr), mt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mt), mx: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mx), my: T.nilable(Tax::RegistrationCreateParams::CountryOptions::My), ng: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ng), nl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Nl), no: T.nilable(Tax::RegistrationCreateParams::CountryOptions::No), np: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Np), nz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Nz), om: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Om), pe: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pe), ph: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ph), pl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pl), pt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pt), ro: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ro), rs: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Rs), ru: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ru), sa: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sa), se: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Se), sg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sg), si: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Si), sk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sk), sn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sn), sr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sr), th: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Th), tj: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tj), tr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tr), tz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tz), ua: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ua), ug: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ug), us: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Us), uy: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Uy), uz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Uz), vn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Vn), za: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Za), zm: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Zm), zw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Zw)).void + params(ae: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ae), al: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Al), am: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Am), ao: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ao), at: T.nilable(Tax::RegistrationCreateParams::CountryOptions::At), au: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Au), aw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Aw), az: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Az), ba: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ba), bb: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bb), bd: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bd), be: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Be), bf: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bf), bg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bg), bh: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bh), bj: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bj), bs: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bs), by: T.nilable(Tax::RegistrationCreateParams::CountryOptions::By), ca: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ca), cd: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cd), ch: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ch), cl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cl), cm: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cm), co: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Co), cr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cr), cv: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cv), cy: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cy), cz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cz), de: T.nilable(Tax::RegistrationCreateParams::CountryOptions::De), dk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Dk), ec: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ec), ee: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ee), eg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Eg), es: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Es), et: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Et), fi: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Fi), fr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Fr), gb: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gb), ge: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ge), gn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gn), gr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gr), hr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Hr), hu: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Hu), id: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Id), ie: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ie), in_: T.nilable(Tax::RegistrationCreateParams::CountryOptions::In), is: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Is), it: T.nilable(Tax::RegistrationCreateParams::CountryOptions::It), jp: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Jp), ke: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ke), kg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kg), kh: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kh), kr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kr), kz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kz), la: T.nilable(Tax::RegistrationCreateParams::CountryOptions::La), lt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lt), lu: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lu), lv: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lv), ma: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ma), md: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Md), me: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Me), mk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mk), mr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mr), mt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mt), mx: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mx), my: T.nilable(Tax::RegistrationCreateParams::CountryOptions::My), ng: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ng), nl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Nl), no: T.nilable(Tax::RegistrationCreateParams::CountryOptions::No), np: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Np), nz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Nz), om: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Om), pe: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pe), ph: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ph), pl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pl), pt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pt), ro: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ro), rs: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Rs), ru: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ru), sa: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sa), se: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Se), sg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sg), si: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Si), sk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sk), sn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sn), sr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sr), th: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Th), tj: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tj), tr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tr), tw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tw), tz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tz), ua: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ua), ug: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ug), us: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Us), uy: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Uy), uz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Uz), vn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Vn), za: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Za), zm: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Zm), zw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Zw)).void } def initialize( ae: nil, @@ -114043,6 +121797,7 @@ module Stripe th: nil, tj: nil, tr: nil, + tw: nil, tz: nil, ua: nil, ug: nil, @@ -114098,7 +121853,7 @@ end # typed: true module Stripe module Tax - class RegistrationUpdateParams < Stripe::RequestParams + class RegistrationUpdateParams < ::Stripe::RequestParams # Time at which the registration becomes active. It can be either `now` to indicate the current time, or a timestamp measured in seconds since the Unix epoch. sig { returns(T.nilable(T.any(String, Integer))) } def active_from; end @@ -114128,8 +121883,8 @@ end # typed: true module Stripe module Tax - class SettingsUpdateParams < Stripe::RequestParams - class Defaults < Stripe::RequestParams + class SettingsUpdateParams < ::Stripe::RequestParams + class Defaults < ::Stripe::RequestParams # Specifies the default [tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#tax-behavior) to be used when the item's price has unspecified tax behavior. One of inclusive, exclusive, or inferred_by_currency. Once specified, it cannot be changed back to null. sig { returns(T.nilable(String)) } def tax_behavior; end @@ -114143,8 +121898,8 @@ module Stripe sig { params(tax_behavior: T.nilable(String), tax_code: T.nilable(String)).void } def initialize(tax_behavior: nil, tax_code: nil); end end - class HeadOffice < Stripe::RequestParams - class Address < Stripe::RequestParams + class HeadOffice < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -114226,7 +121981,7 @@ end # typed: true module Stripe module Tax - class TransactionListLineItemsParams < Stripe::RequestParams + class TransactionListLineItemsParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -114257,7 +122012,7 @@ end # typed: true module Stripe module Tax - class TransactionCreateFromCalculationParams < Stripe::RequestParams + class TransactionCreateFromCalculationParams < ::Stripe::RequestParams # Tax Calculation ID to be used as input when creating the transaction. sig { returns(String) } def calculation; end @@ -114301,8 +122056,8 @@ end # typed: true module Stripe module Tax - class TransactionCreateReversalParams < Stripe::RequestParams - class LineItem < Stripe::RequestParams + class TransactionCreateReversalParams < ::Stripe::RequestParams + class LineItem < ::Stripe::RequestParams # The amount to reverse, in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) in negative. sig { returns(Integer) } def amount; end @@ -114347,7 +122102,7 @@ module Stripe reference: nil ); end end - class ShippingCost < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams # The amount to reverse, in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) in negative. sig { returns(Integer) } def amount; end @@ -114425,7 +122180,7 @@ module Stripe end # typed: true module Stripe - class TaxCodeListParams < Stripe::RequestParams + class TaxCodeListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -114454,12 +122209,12 @@ module Stripe end # typed: true module Stripe - class TaxIdDeleteParams < Stripe::RequestParams; end + class TaxIdDeleteParams < ::Stripe::RequestParams; end end # typed: true module Stripe - class TaxIdListParams < Stripe::RequestParams - class Owner < Stripe::RequestParams + class TaxIdListParams < ::Stripe::RequestParams + class Owner < ::Stripe::RequestParams # Account the tax ID belongs to. Required when `type=account` sig { returns(T.nilable(String)) } def account; end @@ -114519,8 +122274,8 @@ module Stripe end # typed: true module Stripe - class TaxIdCreateParams < Stripe::RequestParams - class Owner < Stripe::RequestParams + class TaxIdCreateParams < ::Stripe::RequestParams + class Owner < ::Stripe::RequestParams # Account the tax ID belongs to. Required when `type=account` sig { returns(T.nilable(String)) } def account; end @@ -114569,8 +122324,8 @@ module Stripe end # typed: true module Stripe - class TaxRateListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class TaxRateListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -114649,7 +122404,7 @@ module Stripe end # typed: true module Stripe - class TaxRateCreateParams < Stripe::RequestParams + class TaxRateCreateParams < ::Stripe::RequestParams # Flag determining whether the tax rate is active or inactive (archived). Inactive tax rates cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set. sig { returns(T.nilable(T::Boolean)) } def active; end @@ -114727,7 +122482,7 @@ module Stripe end # typed: true module Stripe - class TaxRateUpdateParams < Stripe::RequestParams + class TaxRateUpdateParams < ::Stripe::RequestParams # Flag determining whether the tax rate is active or inactive (archived). Inactive tax rates cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set. sig { returns(T.nilable(T::Boolean)) } def active; end @@ -114794,14 +122549,14 @@ end # typed: true module Stripe module Terminal - class ConfigurationDeleteParams < Stripe::RequestParams; end + class ConfigurationDeleteParams < ::Stripe::RequestParams; end end end # typed: true module Stripe module Terminal - class ConfigurationUpdateParams < Stripe::RequestParams - class BbposWisepad3 < Stripe::RequestParams + class ConfigurationUpdateParams < ::Stripe::RequestParams + class BbposWisepad3 < ::Stripe::RequestParams # A File ID representing an image you would like displayed on the reader. sig { returns(T.nilable(String)) } def splashscreen; end @@ -114810,7 +122565,7 @@ module Stripe sig { params(splashscreen: T.nilable(String)).void } def initialize(splashscreen: nil); end end - class BbposWiseposE < Stripe::RequestParams + class BbposWiseposE < ::Stripe::RequestParams # A File ID representing an image to display on the reader sig { returns(T.nilable(String)) } def splashscreen; end @@ -114819,7 +122574,7 @@ module Stripe sig { params(splashscreen: T.nilable(String)).void } def initialize(splashscreen: nil); end end - class Offline < Stripe::RequestParams + class Offline < ::Stripe::RequestParams # Determines whether to allow transactions to be collected while reader is offline. Defaults to false. sig { returns(T::Boolean) } def enabled; end @@ -114828,7 +122583,7 @@ module Stripe sig { params(enabled: T::Boolean).void } def initialize(enabled: nil); end end - class RebootWindow < Stripe::RequestParams + class RebootWindow < ::Stripe::RequestParams # Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour. sig { returns(Integer) } def end_hour; end @@ -114842,7 +122597,7 @@ module Stripe sig { params(end_hour: Integer, start_hour: Integer).void } def initialize(end_hour: nil, start_hour: nil); end end - class StripeS700 < Stripe::RequestParams + class StripeS700 < ::Stripe::RequestParams # A File ID representing an image you would like displayed on the reader. sig { returns(T.nilable(String)) } def splashscreen; end @@ -114851,8 +122606,8 @@ module Stripe sig { params(splashscreen: T.nilable(String)).void } def initialize(splashscreen: nil); end end - class Tipping < Stripe::RequestParams - class Aed < Stripe::RequestParams + class Tipping < ::Stripe::RequestParams + class Aed < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -114877,7 +122632,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Aud < Stripe::RequestParams + class Aud < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -114902,7 +122657,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Bgn < Stripe::RequestParams + class Bgn < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -114927,7 +122682,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Cad < Stripe::RequestParams + class Cad < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -114952,7 +122707,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Chf < Stripe::RequestParams + class Chf < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -114977,7 +122732,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Czk < Stripe::RequestParams + class Czk < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -115002,7 +122757,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Dkk < Stripe::RequestParams + class Dkk < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -115027,7 +122782,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Eur < Stripe::RequestParams + class Eur < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -115052,7 +122807,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Gbp < Stripe::RequestParams + class Gbp < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -115077,7 +122832,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Hkd < Stripe::RequestParams + class Gip < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -115102,7 +122857,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Huf < Stripe::RequestParams + class Hkd < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -115127,7 +122882,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Jpy < Stripe::RequestParams + class Huf < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -115152,7 +122907,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Mxn < Stripe::RequestParams + class Jpy < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -115177,7 +122932,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Myr < Stripe::RequestParams + class Mxn < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -115202,7 +122957,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Nok < Stripe::RequestParams + class Myr < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -115227,7 +122982,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Nzd < Stripe::RequestParams + class Nok < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -115252,7 +123007,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Pln < Stripe::RequestParams + class Nzd < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -115277,7 +123032,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Ron < Stripe::RequestParams + class Pln < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -115302,7 +123057,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Sek < Stripe::RequestParams + class Ron < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -115327,7 +123082,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Sgd < Stripe::RequestParams + class Sek < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -115352,7 +123107,32 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Usd < Stripe::RequestParams + class Sgd < ::Stripe::RequestParams + # Fixed amounts displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def fixed_amounts; end + sig { + params(_fixed_amounts: T.nilable(T::Array[Integer])).returns(T.nilable(T::Array[Integer])) + } + def fixed_amounts=(_fixed_amounts); end + # Percentages displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def percentages; end + sig { + params(_percentages: T.nilable(T::Array[Integer])).returns(T.nilable(T::Array[Integer])) + } + def percentages=(_percentages); end + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + sig { returns(T.nilable(Integer)) } + def smart_tip_threshold; end + sig { params(_smart_tip_threshold: T.nilable(Integer)).returns(T.nilable(Integer)) } + def smart_tip_threshold=(_smart_tip_threshold); end + sig { + params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void + } + def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end + end + class Usd < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -115440,6 +123220,13 @@ module Stripe params(_gbp: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gbp)).returns(T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gbp)) } def gbp=(_gbp); end + # Tipping configuration for GIP + sig { returns(T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gip)) } + def gip; end + sig { + params(_gip: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gip)).returns(T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gip)) + } + def gip=(_gip); end # Tipping configuration for HKD sig { returns(T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Hkd)) } def hkd; end @@ -115525,7 +123312,7 @@ module Stripe } def usd=(_usd); end sig { - params(aed: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Aed), aud: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Aud), bgn: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Bgn), cad: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Cad), chf: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Chf), czk: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Czk), dkk: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Dkk), eur: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Eur), gbp: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gbp), hkd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Hkd), huf: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Huf), jpy: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Jpy), mxn: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Mxn), myr: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Myr), nok: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Nok), nzd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Nzd), pln: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Pln), ron: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Ron), sek: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Sek), sgd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Sgd), usd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Usd)).void + params(aed: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Aed), aud: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Aud), bgn: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Bgn), cad: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Cad), chf: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Chf), czk: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Czk), dkk: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Dkk), eur: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Eur), gbp: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gbp), gip: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gip), hkd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Hkd), huf: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Huf), jpy: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Jpy), mxn: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Mxn), myr: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Myr), nok: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Nok), nzd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Nzd), pln: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Pln), ron: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Ron), sek: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Sek), sgd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Sgd), usd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Usd)).void } def initialize( aed: nil, @@ -115537,6 +123324,7 @@ module Stripe dkk: nil, eur: nil, gbp: nil, + gip: nil, hkd: nil, huf: nil, jpy: nil, @@ -115551,7 +123339,7 @@ module Stripe usd: nil ); end end - class VerifoneP400 < Stripe::RequestParams + class VerifoneP400 < ::Stripe::RequestParams # A File ID representing an image you would like displayed on the reader. sig { returns(T.nilable(String)) } def splashscreen; end @@ -115560,8 +123348,8 @@ module Stripe sig { params(splashscreen: T.nilable(String)).void } def initialize(splashscreen: nil); end end - class Wifi < Stripe::RequestParams - class EnterpriseEapPeap < Stripe::RequestParams + class Wifi < ::Stripe::RequestParams + class EnterpriseEapPeap < ::Stripe::RequestParams # A File ID representing a PEM file containing the server certificate sig { returns(T.nilable(String)) } def ca_certificate_file; end @@ -115587,7 +123375,7 @@ module Stripe } def initialize(ca_certificate_file: nil, password: nil, ssid: nil, username: nil); end end - class EnterpriseEapTls < Stripe::RequestParams + class EnterpriseEapTls < ::Stripe::RequestParams # A File ID representing a PEM file containing the server certificate sig { returns(T.nilable(String)) } def ca_certificate_file; end @@ -115624,7 +123412,7 @@ module Stripe ssid: nil ); end end - class PersonalPsk < Stripe::RequestParams + class PersonalPsk < ::Stripe::RequestParams # Password for connecting to the WiFi network sig { returns(String) } def password; end @@ -115761,7 +123549,7 @@ end # typed: true module Stripe module Terminal - class ConfigurationListParams < Stripe::RequestParams + class ConfigurationListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -115803,8 +123591,8 @@ end # typed: true module Stripe module Terminal - class ConfigurationCreateParams < Stripe::RequestParams - class BbposWisepad3 < Stripe::RequestParams + class ConfigurationCreateParams < ::Stripe::RequestParams + class BbposWisepad3 < ::Stripe::RequestParams # A File ID representing an image you would like displayed on the reader. sig { returns(T.nilable(String)) } def splashscreen; end @@ -115813,7 +123601,7 @@ module Stripe sig { params(splashscreen: T.nilable(String)).void } def initialize(splashscreen: nil); end end - class BbposWiseposE < Stripe::RequestParams + class BbposWiseposE < ::Stripe::RequestParams # A File ID representing an image to display on the reader sig { returns(T.nilable(String)) } def splashscreen; end @@ -115822,7 +123610,7 @@ module Stripe sig { params(splashscreen: T.nilable(String)).void } def initialize(splashscreen: nil); end end - class Offline < Stripe::RequestParams + class Offline < ::Stripe::RequestParams # Determines whether to allow transactions to be collected while reader is offline. Defaults to false. sig { returns(T::Boolean) } def enabled; end @@ -115831,7 +123619,7 @@ module Stripe sig { params(enabled: T::Boolean).void } def initialize(enabled: nil); end end - class RebootWindow < Stripe::RequestParams + class RebootWindow < ::Stripe::RequestParams # Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour. sig { returns(Integer) } def end_hour; end @@ -115845,7 +123633,7 @@ module Stripe sig { params(end_hour: Integer, start_hour: Integer).void } def initialize(end_hour: nil, start_hour: nil); end end - class StripeS700 < Stripe::RequestParams + class StripeS700 < ::Stripe::RequestParams # A File ID representing an image you would like displayed on the reader. sig { returns(T.nilable(String)) } def splashscreen; end @@ -115854,8 +123642,8 @@ module Stripe sig { params(splashscreen: T.nilable(String)).void } def initialize(splashscreen: nil); end end - class Tipping < Stripe::RequestParams - class Aed < Stripe::RequestParams + class Tipping < ::Stripe::RequestParams + class Aed < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -115880,7 +123668,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Aud < Stripe::RequestParams + class Aud < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -115905,7 +123693,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Bgn < Stripe::RequestParams + class Bgn < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -115930,7 +123718,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Cad < Stripe::RequestParams + class Cad < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -115955,7 +123743,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Chf < Stripe::RequestParams + class Chf < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -115980,7 +123768,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Czk < Stripe::RequestParams + class Czk < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -116005,7 +123793,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Dkk < Stripe::RequestParams + class Dkk < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -116030,7 +123818,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Eur < Stripe::RequestParams + class Eur < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -116055,7 +123843,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Gbp < Stripe::RequestParams + class Gbp < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -116080,7 +123868,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Hkd < Stripe::RequestParams + class Gip < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -116105,7 +123893,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Huf < Stripe::RequestParams + class Hkd < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -116130,7 +123918,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Jpy < Stripe::RequestParams + class Huf < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -116155,7 +123943,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Mxn < Stripe::RequestParams + class Jpy < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -116180,7 +123968,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Myr < Stripe::RequestParams + class Mxn < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -116205,7 +123993,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Nok < Stripe::RequestParams + class Myr < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -116230,7 +124018,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Nzd < Stripe::RequestParams + class Nok < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -116255,7 +124043,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Pln < Stripe::RequestParams + class Nzd < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -116280,7 +124068,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Ron < Stripe::RequestParams + class Pln < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -116305,7 +124093,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Sek < Stripe::RequestParams + class Ron < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -116330,7 +124118,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Sgd < Stripe::RequestParams + class Sek < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -116355,7 +124143,32 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Usd < Stripe::RequestParams + class Sgd < ::Stripe::RequestParams + # Fixed amounts displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def fixed_amounts; end + sig { + params(_fixed_amounts: T.nilable(T::Array[Integer])).returns(T.nilable(T::Array[Integer])) + } + def fixed_amounts=(_fixed_amounts); end + # Percentages displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def percentages; end + sig { + params(_percentages: T.nilable(T::Array[Integer])).returns(T.nilable(T::Array[Integer])) + } + def percentages=(_percentages); end + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + sig { returns(T.nilable(Integer)) } + def smart_tip_threshold; end + sig { params(_smart_tip_threshold: T.nilable(Integer)).returns(T.nilable(Integer)) } + def smart_tip_threshold=(_smart_tip_threshold); end + sig { + params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void + } + def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end + end + class Usd < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -116443,6 +124256,13 @@ module Stripe params(_gbp: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gbp)).returns(T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gbp)) } def gbp=(_gbp); end + # Tipping configuration for GIP + sig { returns(T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gip)) } + def gip; end + sig { + params(_gip: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gip)).returns(T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gip)) + } + def gip=(_gip); end # Tipping configuration for HKD sig { returns(T.nilable(Terminal::ConfigurationCreateParams::Tipping::Hkd)) } def hkd; end @@ -116528,7 +124348,7 @@ module Stripe } def usd=(_usd); end sig { - params(aed: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Aed), aud: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Aud), bgn: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Bgn), cad: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Cad), chf: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Chf), czk: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Czk), dkk: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Dkk), eur: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Eur), gbp: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gbp), hkd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Hkd), huf: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Huf), jpy: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Jpy), mxn: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Mxn), myr: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Myr), nok: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Nok), nzd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Nzd), pln: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Pln), ron: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Ron), sek: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Sek), sgd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Sgd), usd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Usd)).void + params(aed: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Aed), aud: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Aud), bgn: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Bgn), cad: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Cad), chf: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Chf), czk: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Czk), dkk: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Dkk), eur: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Eur), gbp: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gbp), gip: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gip), hkd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Hkd), huf: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Huf), jpy: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Jpy), mxn: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Mxn), myr: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Myr), nok: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Nok), nzd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Nzd), pln: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Pln), ron: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Ron), sek: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Sek), sgd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Sgd), usd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Usd)).void } def initialize( aed: nil, @@ -116540,6 +124360,7 @@ module Stripe dkk: nil, eur: nil, gbp: nil, + gip: nil, hkd: nil, huf: nil, jpy: nil, @@ -116554,7 +124375,7 @@ module Stripe usd: nil ); end end - class VerifoneP400 < Stripe::RequestParams + class VerifoneP400 < ::Stripe::RequestParams # A File ID representing an image you would like displayed on the reader. sig { returns(T.nilable(String)) } def splashscreen; end @@ -116563,8 +124384,8 @@ module Stripe sig { params(splashscreen: T.nilable(String)).void } def initialize(splashscreen: nil); end end - class Wifi < Stripe::RequestParams - class EnterpriseEapPeap < Stripe::RequestParams + class Wifi < ::Stripe::RequestParams + class EnterpriseEapPeap < ::Stripe::RequestParams # A File ID representing a PEM file containing the server certificate sig { returns(T.nilable(String)) } def ca_certificate_file; end @@ -116590,7 +124411,7 @@ module Stripe } def initialize(ca_certificate_file: nil, password: nil, ssid: nil, username: nil); end end - class EnterpriseEapTls < Stripe::RequestParams + class EnterpriseEapTls < ::Stripe::RequestParams # A File ID representing a PEM file containing the server certificate sig { returns(T.nilable(String)) } def ca_certificate_file; end @@ -116627,7 +124448,7 @@ module Stripe ssid: nil ); end end - class PersonalPsk < Stripe::RequestParams + class PersonalPsk < ::Stripe::RequestParams # Password for connecting to the WiFi network sig { returns(String) } def password; end @@ -116764,7 +124585,7 @@ end # typed: true module Stripe module Terminal - class ConnectionTokenCreateParams < Stripe::RequestParams + class ConnectionTokenCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -116783,14 +124604,14 @@ end # typed: true module Stripe module Terminal - class LocationDeleteParams < Stripe::RequestParams; end + class LocationDeleteParams < ::Stripe::RequestParams; end end end # typed: true module Stripe module Terminal - class LocationUpdateParams < Stripe::RequestParams - class Address < Stripe::RequestParams + class LocationUpdateParams < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -116833,7 +124654,7 @@ module Stripe state: nil ); end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -116882,7 +124703,7 @@ module Stripe town: nil ); end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -117010,7 +124831,7 @@ end # typed: true module Stripe module Terminal - class LocationListParams < Stripe::RequestParams + class LocationListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -117041,8 +124862,8 @@ end # typed: true module Stripe module Terminal - class LocationCreateParams < Stripe::RequestParams - class Address < Stripe::RequestParams + class LocationCreateParams < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -117085,7 +124906,7 @@ module Stripe state: nil ); end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -117134,7 +124955,7 @@ module Stripe town: nil ); end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -117262,13 +125083,13 @@ end # typed: true module Stripe module Terminal - class ReaderDeleteParams < Stripe::RequestParams; end + class ReaderDeleteParams < ::Stripe::RequestParams; end end end # typed: true module Stripe module Terminal - class ReaderUpdateParams < Stripe::RequestParams + class ReaderUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -117296,7 +125117,7 @@ end # typed: true module Stripe module Terminal - class ReaderListParams < Stripe::RequestParams + class ReaderListParams < ::Stripe::RequestParams # Filters readers by device type sig { returns(T.nilable(String)) } def device_type; end @@ -117356,7 +125177,7 @@ end # typed: true module Stripe module Terminal - class ReaderCreateParams < Stripe::RequestParams + class ReaderCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -117400,7 +125221,7 @@ end # typed: true module Stripe module Terminal - class ReaderCancelActionParams < Stripe::RequestParams + class ReaderCancelActionParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -117414,20 +125235,20 @@ end # typed: true module Stripe module Terminal - class ReaderCollectInputsParams < Stripe::RequestParams - class Input < Stripe::RequestParams - class CustomText < Stripe::RequestParams + class ReaderCollectInputsParams < ::Stripe::RequestParams + class Input < ::Stripe::RequestParams + class CustomText < ::Stripe::RequestParams # The description which will be displayed when collecting this input sig { returns(T.nilable(String)) } def description; end sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } def description=(_description); end - # The skip button text + # Custom text for the skip button. Maximum 14 characters. sig { returns(T.nilable(String)) } def skip_button; end sig { params(_skip_button: T.nilable(String)).returns(T.nilable(String)) } def skip_button=(_skip_button); end - # The submit button text + # Custom text for the submit button. Maximum 30 characters. sig { returns(T.nilable(String)) } def submit_button; end sig { params(_submit_button: T.nilable(String)).returns(T.nilable(String)) } @@ -117442,14 +125263,14 @@ module Stripe } def initialize(description: nil, skip_button: nil, submit_button: nil, title: nil); end end - class Selection < Stripe::RequestParams - class Choice < Stripe::RequestParams + class Selection < ::Stripe::RequestParams + class Choice < ::Stripe::RequestParams # The unique identifier for this choice sig { returns(String) } def id; end sig { params(_id: String).returns(String) } def id=(_id); end - # The style of the button which will be shown for this choice + # The style of the button which will be shown for this choice. Can be `primary` or `secondary`. sig { returns(T.nilable(String)) } def style; end sig { params(_style: T.nilable(String)).returns(T.nilable(String)) } @@ -117474,18 +125295,18 @@ module Stripe } def initialize(choices: nil); end end - class Toggle < Stripe::RequestParams - # The default value of the toggle + class Toggle < ::Stripe::RequestParams + # The default value of the toggle. Can be `enabled` or `disabled`. sig { returns(T.nilable(String)) } def default_value; end sig { params(_default_value: T.nilable(String)).returns(T.nilable(String)) } def default_value=(_default_value); end - # The description which will be displayed for the toggle + # The description which will be displayed for the toggle. Maximum 50 characters. At least one of title or description must be provided. sig { returns(T.nilable(String)) } def description; end sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } def description=(_description); end - # The title which will be displayed for the toggle + # The title which will be displayed for the toggle. Maximum 50 characters. At least one of title or description must be provided. sig { returns(T.nilable(String)) } def title; end sig { params(_title: T.nilable(String)).returns(T.nilable(String)) } @@ -117542,7 +125363,7 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # List of inputs to be collected using the Reader + # List of inputs to be collected from the customer using the Reader. Maximum 5 inputs. sig { returns(T::Array[Terminal::ReaderCollectInputsParams::Input]) } def inputs; end sig { @@ -117566,9 +125387,9 @@ end # typed: true module Stripe module Terminal - class ReaderCollectPaymentMethodParams < Stripe::RequestParams - class CollectConfig < Stripe::RequestParams - class Tipping < Stripe::RequestParams + class ReaderCollectPaymentMethodParams < ::Stripe::RequestParams + class CollectConfig < ::Stripe::RequestParams + class Tipping < ::Stripe::RequestParams # Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency). sig { returns(T.nilable(Integer)) } def amount_eligible; end @@ -117613,7 +125434,7 @@ module Stripe tipping: nil ); end end - # Configuration overrides. + # Configuration overrides for this collection, such as tipping, surcharging, and customer cancellation settings. sig { returns(T.nilable(Terminal::ReaderCollectPaymentMethodParams::CollectConfig)) } def collect_config; end sig { @@ -117625,7 +125446,7 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # PaymentIntent ID. + # The ID of the PaymentIntent to collect a payment method for. sig { returns(String) } def payment_intent; end sig { params(_payment_intent: String).returns(String) } @@ -117640,8 +125461,8 @@ end # typed: true module Stripe module Terminal - class ReaderConfirmPaymentIntentParams < Stripe::RequestParams - class ConfirmConfig < Stripe::RequestParams + class ReaderConfirmPaymentIntentParams < ::Stripe::RequestParams + class ConfirmConfig < ::Stripe::RequestParams # The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. sig { returns(T.nilable(String)) } def return_url; end @@ -117650,7 +125471,7 @@ module Stripe sig { params(return_url: T.nilable(String)).void } def initialize(return_url: nil); end end - # Configuration overrides. + # Configuration overrides for this confirmation, such as surcharge settings and return URL. sig { returns(T.nilable(Terminal::ReaderConfirmPaymentIntentParams::ConfirmConfig)) } def confirm_config; end sig { @@ -117662,7 +125483,7 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # PaymentIntent ID. + # The ID of the PaymentIntent to confirm. sig { returns(String) } def payment_intent; end sig { params(_payment_intent: String).returns(String) } @@ -117677,9 +125498,9 @@ end # typed: true module Stripe module Terminal - class ReaderProcessPaymentIntentParams < Stripe::RequestParams - class ProcessConfig < Stripe::RequestParams - class Tipping < Stripe::RequestParams + class ReaderProcessPaymentIntentParams < ::Stripe::RequestParams + class ProcessConfig < ::Stripe::RequestParams + class Tipping < ::Stripe::RequestParams # Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency). sig { returns(T.nilable(Integer)) } def amount_eligible; end @@ -117735,12 +125556,12 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # PaymentIntent ID + # The ID of the PaymentIntent to process on the reader. sig { returns(String) } def payment_intent; end sig { params(_payment_intent: String).returns(String) } def payment_intent=(_payment_intent); end - # Configuration overrides + # Configuration overrides for this transaction, such as tipping and customer cancellation settings. sig { returns(T.nilable(Terminal::ReaderProcessPaymentIntentParams::ProcessConfig)) } def process_config; end sig { @@ -117757,8 +125578,8 @@ end # typed: true module Stripe module Terminal - class ReaderProcessSetupIntentParams < Stripe::RequestParams - class ProcessConfig < Stripe::RequestParams + class ReaderProcessSetupIntentParams < ::Stripe::RequestParams + class ProcessConfig < ::Stripe::RequestParams # Enables cancel button on transaction screens. sig { returns(T.nilable(T::Boolean)) } def enable_customer_cancellation; end @@ -117779,14 +125600,14 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # Configuration overrides + # Configuration overrides for this setup, such as MOTO and customer cancellation settings. sig { returns(T.nilable(Terminal::ReaderProcessSetupIntentParams::ProcessConfig)) } def process_config; end sig { params(_process_config: T.nilable(Terminal::ReaderProcessSetupIntentParams::ProcessConfig)).returns(T.nilable(Terminal::ReaderProcessSetupIntentParams::ProcessConfig)) } def process_config=(_process_config); end - # SetupIntent ID + # The ID of the SetupIntent to process on the reader. sig { returns(String) } def setup_intent; end sig { params(_setup_intent: String).returns(String) } @@ -117801,8 +125622,8 @@ end # typed: true module Stripe module Terminal - class ReaderRefundPaymentParams < Stripe::RequestParams - class RefundPaymentConfig < Stripe::RequestParams + class ReaderRefundPaymentParams < ::Stripe::RequestParams + class RefundPaymentConfig < ::Stripe::RequestParams # Enables cancel button on transaction screens. sig { returns(T.nilable(T::Boolean)) } def enable_customer_cancellation; end @@ -117845,7 +125666,7 @@ module Stripe def refund_application_fee; end sig { params(_refund_application_fee: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } def refund_application_fee=(_refund_application_fee); end - # Configuration overrides + # Configuration overrides for this refund, such as customer cancellation settings. sig { returns(T.nilable(Terminal::ReaderRefundPaymentParams::RefundPaymentConfig)) } def refund_payment_config; end sig { @@ -117876,10 +125697,10 @@ end # typed: true module Stripe module Terminal - class ReaderSetReaderDisplayParams < Stripe::RequestParams - class Cart < Stripe::RequestParams - class LineItem < Stripe::RequestParams - # The price of the item in cents. + class ReaderSetReaderDisplayParams < ::Stripe::RequestParams + class Cart < ::Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + # The price of the item in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). sig { returns(Integer) } def amount; end sig { params(_amount: Integer).returns(Integer) } @@ -117902,19 +125723,19 @@ module Stripe def currency; end sig { params(_currency: String).returns(String) } def currency=(_currency); end - # Array of line items that were purchased. + # Array of line items to display. sig { returns(T::Array[Terminal::ReaderSetReaderDisplayParams::Cart::LineItem]) } def line_items; end sig { params(_line_items: T::Array[Terminal::ReaderSetReaderDisplayParams::Cart::LineItem]).returns(T::Array[Terminal::ReaderSetReaderDisplayParams::Cart::LineItem]) } def line_items=(_line_items); end - # The amount of tax in cents. + # The amount of tax in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). sig { returns(T.nilable(Integer)) } def tax; end sig { params(_tax: T.nilable(Integer)).returns(T.nilable(Integer)) } def tax=(_tax); end - # Total balance of cart due in cents. + # Total balance of cart due in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). sig { returns(Integer) } def total; end sig { params(_total: Integer).returns(Integer) } @@ -117924,7 +125745,7 @@ module Stripe } def initialize(currency: nil, line_items: nil, tax: nil, total: nil); end end - # Cart + # Cart details to display on the reader screen, including line items, amounts, and currency. sig { returns(T.nilable(Terminal::ReaderSetReaderDisplayParams::Cart)) } def cart; end sig { @@ -117936,7 +125757,7 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # Type + # Type of information to display. Only `cart` is currently supported. sig { returns(String) } def type; end sig { params(_type: String).returns(String) } @@ -117951,8 +125772,8 @@ end # typed: true module Stripe module Terminal - class ReaderPresentPaymentMethodParams < Stripe::RequestParams - class Card < Stripe::RequestParams + class ReaderPresentPaymentMethodParams < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams # Card security code. sig { returns(T.nilable(String)) } def cvc; end @@ -117978,7 +125799,7 @@ module Stripe } def initialize(cvc: nil, exp_month: nil, exp_year: nil, number: nil); end end - class CardPresent < Stripe::RequestParams + class CardPresent < ::Stripe::RequestParams # The card number, as a string without any separators. sig { returns(T.nilable(String)) } def number; end @@ -117987,8 +125808,8 @@ module Stripe sig { params(number: T.nilable(String)).void } def initialize(number: nil); end end - class InteracPresent < Stripe::RequestParams - # Card Number + class InteracPresent < ::Stripe::RequestParams + # The Interac card number. sig { returns(T.nilable(String)) } def number; end sig { params(_number: T.nilable(String)).returns(T.nilable(String)) } @@ -118049,7 +125870,7 @@ end # typed: true module Stripe module Terminal - class ReaderSucceedInputCollectionParams < Stripe::RequestParams + class ReaderSucceedInputCollectionParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -118070,7 +125891,7 @@ end # typed: true module Stripe module Terminal - class ReaderTimeoutInputCollectionParams < Stripe::RequestParams + class ReaderTimeoutInputCollectionParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -118084,13 +125905,13 @@ end # typed: true module Stripe module TestHelpers - class TestClockDeleteParams < Stripe::RequestParams; end + class TestClockDeleteParams < ::Stripe::RequestParams; end end end # typed: true module Stripe module TestHelpers - class TestClockListParams < Stripe::RequestParams + class TestClockListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -118121,7 +125942,7 @@ end # typed: true module Stripe module TestHelpers - class TestClockCreateParams < Stripe::RequestParams + class TestClockCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -118147,7 +125968,7 @@ end # typed: true module Stripe module TestHelpers - class TestClockAdvanceParams < Stripe::RequestParams + class TestClockAdvanceParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -118165,10 +125986,10 @@ module Stripe end # typed: true module Stripe - class TokenCreateParams < Stripe::RequestParams - class Account < Stripe::RequestParams - class Company < Stripe::RequestParams - class Address < Stripe::RequestParams + class TokenCreateParams < ::Stripe::RequestParams + class Account < ::Stripe::RequestParams + class Company < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -118211,7 +126032,7 @@ module Stripe state: nil ); end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -118260,7 +126081,7 @@ module Stripe town: nil ); end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -118309,7 +126130,7 @@ module Stripe town: nil ); end end - class DirectorshipDeclaration < Stripe::RequestParams + class DirectorshipDeclaration < ::Stripe::RequestParams # The Unix timestamp marking when the directorship declaration attestation was made. sig { returns(T.nilable(Integer)) } def date; end @@ -118330,7 +126151,7 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end - class OwnershipDeclaration < Stripe::RequestParams + class OwnershipDeclaration < ::Stripe::RequestParams # The Unix timestamp marking when the beneficial owner attestation was made. sig { returns(T.nilable(Integer)) } def date; end @@ -118351,7 +126172,7 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end - class RegistrationDate < Stripe::RequestParams + class RegistrationDate < ::Stripe::RequestParams # The day of registration, between 1 and 31. sig { returns(Integer) } def day; end @@ -118370,8 +126191,29 @@ module Stripe sig { params(day: Integer, month: Integer, year: Integer).void } def initialize(day: nil, month: nil, year: nil); end end - class Verification < Stripe::RequestParams - class Document < Stripe::RequestParams + class RepresentativeDeclaration < ::Stripe::RequestParams + # The Unix timestamp marking when the representative declaration attestation was made. + sig { returns(T.nilable(Integer)) } + def date; end + sig { params(_date: T.nilable(Integer)).returns(T.nilable(Integer)) } + def date=(_date); end + # The IP address from which the representative declaration attestation was made. + sig { returns(T.nilable(String)) } + def ip; end + sig { params(_ip: T.nilable(String)).returns(T.nilable(String)) } + def ip=(_ip); end + # The user agent of the browser from which the representative declaration attestation was made. + sig { returns(T.nilable(String)) } + def user_agent; end + sig { params(_user_agent: T.nilable(String)).returns(T.nilable(String)) } + def user_agent=(_user_agent); end + sig { + params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void + } + def initialize(date: nil, ip: nil, user_agent: nil); end + end + class Verification < ::Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -118505,6 +126347,13 @@ module Stripe def registration_number; end sig { params(_registration_number: T.nilable(String)).returns(T.nilable(String)) } def registration_number=(_registration_number); end + # This hash is used to attest that the representative is authorized to act as the representative of their legal entity. + sig { returns(T.nilable(TokenCreateParams::Account::Company::RepresentativeDeclaration)) } + def representative_declaration; end + sig { + params(_representative_declaration: T.nilable(TokenCreateParams::Account::Company::RepresentativeDeclaration)).returns(T.nilable(TokenCreateParams::Account::Company::RepresentativeDeclaration)) + } + def representative_declaration=(_representative_declaration); end # The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value. sig { returns(T.nilable(T.any(String, String))) } def structure; end @@ -118535,7 +126384,7 @@ module Stripe } def verification=(_verification); end sig { - params(address: T.nilable(TokenCreateParams::Account::Company::Address), address_kana: T.nilable(TokenCreateParams::Account::Company::AddressKana), address_kanji: T.nilable(TokenCreateParams::Account::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(TokenCreateParams::Account::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(TokenCreateParams::Account::Company::OwnershipDeclaration), ownership_declaration_shown_and_signed: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, TokenCreateParams::Account::Company::RegistrationDate)), registration_number: T.nilable(String), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(TokenCreateParams::Account::Company::Verification)).void + params(address: T.nilable(TokenCreateParams::Account::Company::Address), address_kana: T.nilable(TokenCreateParams::Account::Company::AddressKana), address_kanji: T.nilable(TokenCreateParams::Account::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(TokenCreateParams::Account::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(TokenCreateParams::Account::Company::OwnershipDeclaration), ownership_declaration_shown_and_signed: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, TokenCreateParams::Account::Company::RegistrationDate)), registration_number: T.nilable(String), representative_declaration: T.nilable(TokenCreateParams::Account::Company::RepresentativeDeclaration), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(TokenCreateParams::Account::Company::Verification)).void } def initialize( address: nil, @@ -118556,6 +126405,7 @@ module Stripe phone: nil, registration_date: nil, registration_number: nil, + representative_declaration: nil, structure: nil, tax_id: nil, tax_id_registrar: nil, @@ -118563,8 +126413,8 @@ module Stripe verification: nil ); end end - class Individual < Stripe::RequestParams - class Address < Stripe::RequestParams + class Individual < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -118607,7 +126457,7 @@ module Stripe state: nil ); end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -118656,7 +126506,7 @@ module Stripe town: nil ); end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -118705,7 +126555,7 @@ module Stripe town: nil ); end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -118724,7 +126574,7 @@ module Stripe sig { params(day: Integer, month: Integer, year: Integer).void } def initialize(day: nil, month: nil, year: nil); end end - class RegisteredAddress < Stripe::RequestParams + class RegisteredAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -118767,7 +126617,7 @@ module Stripe state: nil ); end end - class Relationship < Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. sig { returns(T.nilable(T::Boolean)) } def director; end @@ -118806,8 +126656,8 @@ module Stripe title: nil ); end end - class Verification < Stripe::RequestParams - class AdditionalDocument < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class AdditionalDocument < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -118821,7 +126671,7 @@ module Stripe sig { params(back: T.nilable(String), front: T.nilable(String)).void } def initialize(back: nil, front: nil); end end - class Document < Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -119052,7 +126902,7 @@ module Stripe tos_shown_and_accepted: nil ); end end - class BankAccount < Stripe::RequestParams + class BankAccount < ::Stripe::RequestParams # The name of the person or business that owns the bank account. This field is required when attaching the bank account to a `Customer` object. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -119107,8 +126957,8 @@ module Stripe routing_number: nil ); end end - class Card < Stripe::RequestParams - class Networks < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Networks < ::Stripe::RequestParams # The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card. sig { returns(T.nilable(String)) } def preferred; end @@ -119203,7 +127053,7 @@ module Stripe number: nil ); end end - class CvcUpdate < Stripe::RequestParams + class CvcUpdate < ::Stripe::RequestParams # The CVC value, in string form. sig { returns(String) } def cvc; end @@ -119212,9 +127062,9 @@ module Stripe sig { params(cvc: String).void } def initialize(cvc: nil); end end - class Person < Stripe::RequestParams - class AdditionalTosAcceptances < Stripe::RequestParams - class Account < Stripe::RequestParams + class Person < ::Stripe::RequestParams + class AdditionalTosAcceptances < ::Stripe::RequestParams + class Account < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted the service agreement. sig { returns(T.nilable(Integer)) } def date; end @@ -119247,7 +127097,7 @@ module Stripe } def initialize(account: nil); end end - class Address < Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -119290,7 +127140,7 @@ module Stripe state: nil ); end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -119339,7 +127189,7 @@ module Stripe town: nil ); end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -119388,7 +127238,7 @@ module Stripe town: nil ); end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -119407,8 +127257,8 @@ module Stripe sig { params(day: Integer, month: Integer, year: Integer).void } def initialize(day: nil, month: nil, year: nil); end end - class Documents < Stripe::RequestParams - class CompanyAuthorization < Stripe::RequestParams + class Documents < ::Stripe::RequestParams + class CompanyAuthorization < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -119417,7 +127267,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class Passport < Stripe::RequestParams + class Passport < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -119426,7 +127276,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class Visa < Stripe::RequestParams + class Visa < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -119461,7 +127311,7 @@ module Stripe } def initialize(company_authorization: nil, passport: nil, visa: nil); end end - class RegisteredAddress < Stripe::RequestParams + class RegisteredAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -119504,7 +127354,7 @@ module Stripe state: nil ); end end - class Relationship < Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # Whether the person is the authorizer of the account's representative. sig { returns(T.nilable(T::Boolean)) } def authorizer; end @@ -119561,8 +127411,8 @@ module Stripe title: nil ); end end - class UsCfpbData < Stripe::RequestParams - class EthnicityDetails < Stripe::RequestParams + class UsCfpbData < ::Stripe::RequestParams + class EthnicityDetails < ::Stripe::RequestParams # The persons ethnicity sig { returns(T.nilable(T::Array[String])) } def ethnicity; end @@ -119580,7 +127430,7 @@ module Stripe } def initialize(ethnicity: nil, ethnicity_other: nil); end end - class RaceDetails < Stripe::RequestParams + class RaceDetails < ::Stripe::RequestParams # The persons race. sig { returns(T.nilable(T::Array[String])) } def race; end @@ -119618,8 +127468,8 @@ module Stripe } def initialize(ethnicity_details: nil, race_details: nil, self_identified_gender: nil); end end - class Verification < Stripe::RequestParams - class AdditionalDocument < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class AdditionalDocument < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -119633,7 +127483,7 @@ module Stripe sig { params(back: T.nilable(String), front: T.nilable(String)).void } def initialize(back: nil, front: nil); end end - class Document < Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -119858,7 +127708,7 @@ module Stripe verification: nil ); end end - class Pii < Stripe::RequestParams + class Pii < ::Stripe::RequestParams # The `id_number` for the PII, in string form. sig { returns(T.nilable(String)) } def id_number; end @@ -119936,8 +127786,8 @@ module Stripe end # typed: true module Stripe - class TopupListParams < Stripe::RequestParams - class Amount < Stripe::RequestParams + class TopupListParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -119963,7 +127813,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class Created < Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -120044,7 +127894,7 @@ module Stripe end # typed: true module Stripe - class TopupCreateParams < Stripe::RequestParams + class TopupCreateParams < ::Stripe::RequestParams # A positive integer representing how much to transfer. sig { returns(Integer) } def amount; end @@ -120104,7 +127954,7 @@ module Stripe end # typed: true module Stripe - class TopupUpdateParams < Stripe::RequestParams + class TopupUpdateParams < ::Stripe::RequestParams # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } def description; end @@ -120130,7 +127980,7 @@ module Stripe end # typed: true module Stripe - class TopupCancelParams < Stripe::RequestParams + class TopupCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -120142,8 +127992,8 @@ module Stripe end # typed: true module Stripe - class TransferListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class TransferListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -120222,7 +128072,7 @@ module Stripe end # typed: true module Stripe - class TransferCreateParams < Stripe::RequestParams + class TransferCreateParams < ::Stripe::RequestParams # A positive integer in cents (or local equivalent) representing how much to transfer. sig { returns(T.nilable(Integer)) } def amount; end @@ -120288,7 +128138,7 @@ module Stripe end # typed: true module Stripe - class TransferUpdateParams < Stripe::RequestParams + class TransferUpdateParams < ::Stripe::RequestParams # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } def description; end @@ -120315,7 +128165,7 @@ end # typed: true module Stripe module Treasury - class CreditReversalListParams < Stripe::RequestParams + class CreditReversalListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -120369,7 +128219,7 @@ end # typed: true module Stripe module Treasury - class CreditReversalCreateParams < Stripe::RequestParams + class CreditReversalCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -120397,7 +128247,7 @@ end # typed: true module Stripe module Treasury - class DebitReversalListParams < Stripe::RequestParams + class DebitReversalListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -120457,7 +128307,7 @@ end # typed: true module Stripe module Treasury - class DebitReversalCreateParams < Stripe::RequestParams + class DebitReversalCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -120485,8 +128335,8 @@ end # typed: true module Stripe module Treasury - class FinancialAccountListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class FinancialAccountListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -120561,9 +128411,9 @@ end # typed: true module Stripe module Treasury - class FinancialAccountCreateParams < Stripe::RequestParams - class Features < Stripe::RequestParams - class CardIssuing < Stripe::RequestParams + class FinancialAccountCreateParams < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -120572,7 +128422,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class DepositInsurance < Stripe::RequestParams + class DepositInsurance < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -120581,8 +128431,8 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class FinancialAddresses < Stripe::RequestParams - class Aba < Stripe::RequestParams + class FinancialAddresses < ::Stripe::RequestParams + class Aba < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -120605,8 +128455,8 @@ module Stripe } def initialize(aba: nil); end end - class InboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class InboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -120629,7 +128479,7 @@ module Stripe } def initialize(ach: nil); end end - class IntraStripeFlows < Stripe::RequestParams + class IntraStripeFlows < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -120638,8 +128488,8 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class OutboundPayments < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundPayments < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -120648,7 +128498,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -120680,8 +128530,8 @@ module Stripe } def initialize(ach: nil, us_domestic_wire: nil); end end - class OutboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -120690,7 +128540,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -120796,7 +128646,7 @@ module Stripe outbound_transfers: nil ); end end - class PlatformRestrictions < Stripe::RequestParams + class PlatformRestrictions < ::Stripe::RequestParams # Restricts all inbound money movement. sig { returns(T.nilable(String)) } def inbound_flows; end @@ -120863,9 +128713,9 @@ end # typed: true module Stripe module Treasury - class FinancialAccountUpdateParams < Stripe::RequestParams - class Features < Stripe::RequestParams - class CardIssuing < Stripe::RequestParams + class FinancialAccountUpdateParams < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -120874,7 +128724,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class DepositInsurance < Stripe::RequestParams + class DepositInsurance < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -120883,8 +128733,8 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class FinancialAddresses < Stripe::RequestParams - class Aba < Stripe::RequestParams + class FinancialAddresses < ::Stripe::RequestParams + class Aba < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -120907,8 +128757,8 @@ module Stripe } def initialize(aba: nil); end end - class InboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class InboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -120931,7 +128781,7 @@ module Stripe } def initialize(ach: nil); end end - class IntraStripeFlows < Stripe::RequestParams + class IntraStripeFlows < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -120940,8 +128790,8 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class OutboundPayments < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundPayments < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -120950,7 +128800,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -120982,8 +128832,8 @@ module Stripe } def initialize(ach: nil, us_domestic_wire: nil); end end - class OutboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -120992,7 +128842,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -121098,7 +128948,7 @@ module Stripe outbound_transfers: nil ); end end - class ForwardingSettings < Stripe::RequestParams + class ForwardingSettings < ::Stripe::RequestParams # The financial_account id sig { returns(T.nilable(String)) } def financial_account; end @@ -121119,7 +128969,7 @@ module Stripe } def initialize(financial_account: nil, payment_method: nil, type: nil); end end - class PlatformRestrictions < Stripe::RequestParams + class PlatformRestrictions < ::Stripe::RequestParams # Restricts all inbound money movement. sig { returns(T.nilable(String)) } def inbound_flows; end @@ -121188,7 +129038,7 @@ end # typed: true module Stripe module Treasury - class FinancialAccountRetrieveFeaturesParams < Stripe::RequestParams + class FinancialAccountRetrieveFeaturesParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -121202,8 +129052,8 @@ end # typed: true module Stripe module Treasury - class FinancialAccountUpdateFeaturesParams < Stripe::RequestParams - class CardIssuing < Stripe::RequestParams + class FinancialAccountUpdateFeaturesParams < ::Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -121212,7 +129062,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class DepositInsurance < Stripe::RequestParams + class DepositInsurance < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -121221,8 +129071,8 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class FinancialAddresses < Stripe::RequestParams - class Aba < Stripe::RequestParams + class FinancialAddresses < ::Stripe::RequestParams + class Aba < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -121245,8 +129095,8 @@ module Stripe } def initialize(aba: nil); end end - class InboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class InboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -121269,7 +129119,7 @@ module Stripe } def initialize(ach: nil); end end - class IntraStripeFlows < Stripe::RequestParams + class IntraStripeFlows < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -121278,8 +129128,8 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class OutboundPayments < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundPayments < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -121288,7 +129138,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -121320,8 +129170,8 @@ module Stripe } def initialize(ach: nil, us_domestic_wire: nil); end end - class OutboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -121330,7 +129180,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -121435,8 +129285,8 @@ end # typed: true module Stripe module Treasury - class FinancialAccountCloseParams < Stripe::RequestParams - class ForwardingSettings < Stripe::RequestParams + class FinancialAccountCloseParams < ::Stripe::RequestParams + class ForwardingSettings < ::Stripe::RequestParams # The financial_account id sig { returns(T.nilable(String)) } def financial_account; end @@ -121479,7 +129329,7 @@ end # typed: true module Stripe module Treasury - class InboundTransferListParams < Stripe::RequestParams + class InboundTransferListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -121527,7 +129377,7 @@ end # typed: true module Stripe module Treasury - class InboundTransferCreateParams < Stripe::RequestParams + class InboundTransferCreateParams < ::Stripe::RequestParams # Amount (in cents) to be transferred. sig { returns(Integer) } def amount; end @@ -121589,7 +129439,7 @@ end # typed: true module Stripe module Treasury - class InboundTransferCancelParams < Stripe::RequestParams + class InboundTransferCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -121603,8 +129453,8 @@ end # typed: true module Stripe module Treasury - class InboundTransferFailParams < Stripe::RequestParams - class FailureDetails < Stripe::RequestParams + class InboundTransferFailParams < ::Stripe::RequestParams + class FailureDetails < ::Stripe::RequestParams # Reason for the failure. sig { returns(T.nilable(String)) } def code; end @@ -121635,7 +129485,7 @@ end # typed: true module Stripe module Treasury - class InboundTransferReturnInboundTransferParams < Stripe::RequestParams + class InboundTransferReturnInboundTransferParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -121649,7 +129499,7 @@ end # typed: true module Stripe module Treasury - class InboundTransferSucceedParams < Stripe::RequestParams + class InboundTransferSucceedParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -121663,8 +129513,8 @@ end # typed: true module Stripe module Treasury - class OutboundPaymentListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class OutboundPaymentListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -121751,10 +129601,10 @@ end # typed: true module Stripe module Treasury - class OutboundPaymentCreateParams < Stripe::RequestParams - class DestinationPaymentMethodData < Stripe::RequestParams - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class OutboundPaymentCreateParams < ::Stripe::RequestParams + class DestinationPaymentMethodData < ::Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -121826,7 +129676,7 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil); end end - class UsBankAccount < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -121911,8 +129761,8 @@ module Stripe us_bank_account: nil ); end end - class DestinationPaymentMethodOptions < Stripe::RequestParams - class UsBankAccount < Stripe::RequestParams + class DestinationPaymentMethodOptions < ::Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://stripe.com/docs/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. sig { returns(T.nilable(String)) } def network; end @@ -121935,7 +129785,7 @@ module Stripe } def initialize(us_bank_account: nil); end end - class EndUserDetails < Stripe::RequestParams + class EndUserDetails < ::Stripe::RequestParams # IP address of the user initiating the OutboundPayment. Must be supplied if `present` is set to `true`. sig { returns(T.nilable(String)) } def ip_address; end @@ -122044,7 +129894,7 @@ end # typed: true module Stripe module Treasury - class OutboundPaymentCancelParams < Stripe::RequestParams + class OutboundPaymentCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -122058,9 +129908,9 @@ end # typed: true module Stripe module Treasury - class OutboundPaymentUpdateParams < Stripe::RequestParams - class TrackingDetails < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundPaymentUpdateParams < ::Stripe::RequestParams + class TrackingDetails < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # ACH trace ID for funds sent over the `ach` network. sig { returns(String) } def trace_id; end @@ -122069,7 +129919,7 @@ module Stripe sig { params(trace_id: String).void } def initialize(trace_id: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # CHIPS System Sequence Number (SSN) for funds sent over the `us_domestic_wire` network. sig { returns(T.nilable(String)) } def chips; end @@ -122138,7 +129988,7 @@ end # typed: true module Stripe module Treasury - class OutboundPaymentFailParams < Stripe::RequestParams + class OutboundPaymentFailParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -122152,7 +130002,7 @@ end # typed: true module Stripe module Treasury - class OutboundPaymentPostParams < Stripe::RequestParams + class OutboundPaymentPostParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -122166,8 +130016,8 @@ end # typed: true module Stripe module Treasury - class OutboundPaymentReturnOutboundPaymentParams < Stripe::RequestParams - class ReturnedDetails < Stripe::RequestParams + class OutboundPaymentReturnOutboundPaymentParams < ::Stripe::RequestParams + class ReturnedDetails < ::Stripe::RequestParams # The return code to be set on the OutboundPayment object. sig { returns(T.nilable(String)) } def code; end @@ -122200,7 +130050,7 @@ end # typed: true module Stripe module Treasury - class OutboundTransferListParams < Stripe::RequestParams + class OutboundTransferListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -122248,8 +130098,8 @@ end # typed: true module Stripe module Treasury - class OutboundTransferCreateParams < Stripe::RequestParams - class DestinationPaymentMethodData < Stripe::RequestParams + class OutboundTransferCreateParams < ::Stripe::RequestParams + class DestinationPaymentMethodData < ::Stripe::RequestParams # Required if type is set to `financial_account`. The FinancialAccount ID to send funds to. sig { returns(T.nilable(String)) } def financial_account; end @@ -122263,8 +130113,8 @@ module Stripe sig { params(financial_account: T.nilable(String), type: String).void } def initialize(financial_account: nil, type: nil); end end - class DestinationPaymentMethodOptions < Stripe::RequestParams - class UsBankAccount < Stripe::RequestParams + class DestinationPaymentMethodOptions < ::Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://stripe.com/docs/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. sig { returns(T.nilable(String)) } def network; end @@ -122368,7 +130218,7 @@ end # typed: true module Stripe module Treasury - class OutboundTransferCancelParams < Stripe::RequestParams + class OutboundTransferCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -122382,9 +130232,9 @@ end # typed: true module Stripe module Treasury - class OutboundTransferUpdateParams < Stripe::RequestParams - class TrackingDetails < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundTransferUpdateParams < ::Stripe::RequestParams + class TrackingDetails < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # ACH trace ID for funds sent over the `ach` network. sig { returns(String) } def trace_id; end @@ -122393,7 +130243,7 @@ module Stripe sig { params(trace_id: String).void } def initialize(trace_id: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # CHIPS System Sequence Number (SSN) for funds sent over the `us_domestic_wire` network. sig { returns(T.nilable(String)) } def chips; end @@ -122462,7 +130312,7 @@ end # typed: true module Stripe module Treasury - class OutboundTransferFailParams < Stripe::RequestParams + class OutboundTransferFailParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -122476,7 +130326,7 @@ end # typed: true module Stripe module Treasury - class OutboundTransferPostParams < Stripe::RequestParams + class OutboundTransferPostParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -122490,8 +130340,8 @@ end # typed: true module Stripe module Treasury - class OutboundTransferReturnOutboundTransferParams < Stripe::RequestParams - class ReturnedDetails < Stripe::RequestParams + class OutboundTransferReturnOutboundTransferParams < ::Stripe::RequestParams + class ReturnedDetails < ::Stripe::RequestParams # Reason for the return. sig { returns(T.nilable(String)) } def code; end @@ -122524,8 +130374,8 @@ end # typed: true module Stripe module Treasury - class ReceivedCreditListParams < Stripe::RequestParams - class LinkedFlows < Stripe::RequestParams + class ReceivedCreditListParams < ::Stripe::RequestParams + class LinkedFlows < ::Stripe::RequestParams # The source flow type. sig { returns(String) } def source_flow_type; end @@ -122589,9 +130439,9 @@ end # typed: true module Stripe module Treasury - class ReceivedCreditCreateParams < Stripe::RequestParams - class InitiatingPaymentMethodDetails < Stripe::RequestParams - class UsBankAccount < Stripe::RequestParams + class ReceivedCreditCreateParams < ::Stripe::RequestParams + class InitiatingPaymentMethodDetails < ::Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # The bank account holder's name. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -122688,7 +130538,7 @@ end # typed: true module Stripe module Treasury - class ReceivedDebitListParams < Stripe::RequestParams + class ReceivedDebitListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -122736,9 +130586,9 @@ end # typed: true module Stripe module Treasury - class ReceivedDebitCreateParams < Stripe::RequestParams - class InitiatingPaymentMethodDetails < Stripe::RequestParams - class UsBankAccount < Stripe::RequestParams + class ReceivedDebitCreateParams < ::Stripe::RequestParams + class InitiatingPaymentMethodDetails < ::Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # The bank account holder's name. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -122835,8 +130685,8 @@ end # typed: true module Stripe module Treasury - class TransactionEntryListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class TransactionEntryListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -122862,7 +130712,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class EffectiveAt < Stripe::RequestParams + class EffectiveAt < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -122957,8 +130807,8 @@ end # typed: true module Stripe module Treasury - class TransactionListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class TransactionListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -122984,8 +130834,8 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class StatusTransitions < Stripe::RequestParams - class PostedAt < Stripe::RequestParams + class StatusTransitions < ::Stripe::RequestParams + class PostedAt < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -123093,11 +130943,11 @@ module Stripe end # typed: true module Stripe - class WebhookEndpointDeleteParams < Stripe::RequestParams; end + class WebhookEndpointDeleteParams < ::Stripe::RequestParams; end end # typed: true module Stripe - class WebhookEndpointUpdateParams < Stripe::RequestParams + class WebhookEndpointUpdateParams < ::Stripe::RequestParams # An optional description of what the webhook is used for. sig { returns(T.nilable(String)) } def description; end @@ -123147,7 +130997,7 @@ module Stripe end # typed: true module Stripe - class WebhookEndpointListParams < Stripe::RequestParams + class WebhookEndpointListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -123176,7 +131026,7 @@ module Stripe end # typed: true module Stripe - class WebhookEndpointCreateParams < Stripe::RequestParams + class WebhookEndpointCreateParams < ::Stripe::RequestParams # Events sent to this endpoint will be generated with this Stripe Version instead of your account's default Stripe Version. sig { returns(T.nilable(String)) } def api_version; end @@ -123230,7 +131080,7 @@ module Stripe end # typed: true module Stripe - class AccountRetrieveParams < Stripe::RequestParams + class AccountRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -123242,7 +131092,7 @@ module Stripe end # typed: true module Stripe - class AccountRetrieveCurrentParams < Stripe::RequestParams + class AccountRetrieveCurrentParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -123254,7 +131104,7 @@ module Stripe end # typed: true module Stripe - class AccountCapabilityListParams < Stripe::RequestParams + class AccountCapabilityListParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -123266,7 +131116,7 @@ module Stripe end # typed: true module Stripe - class AccountCapabilityRetrieveParams < Stripe::RequestParams + class AccountCapabilityRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -123278,7 +131128,7 @@ module Stripe end # typed: true module Stripe - class AccountCapabilityUpdateParams < Stripe::RequestParams + class AccountCapabilityUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -123297,11 +131147,11 @@ module Stripe end # typed: true module Stripe - class AccountExternalAccountDeleteParams < Stripe::RequestParams; end + class AccountExternalAccountDeleteParams < ::Stripe::RequestParams; end end # typed: true module Stripe - class AccountExternalAccountRetrieveParams < Stripe::RequestParams + class AccountExternalAccountRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -123313,9 +131163,9 @@ module Stripe end # typed: true module Stripe - class AccountExternalAccountUpdateParams < Stripe::RequestParams - class Documents < Stripe::RequestParams - class BankAccountOwnershipVerification < Stripe::RequestParams + class AccountExternalAccountUpdateParams < ::Stripe::RequestParams + class Documents < ::Stripe::RequestParams + class BankAccountOwnershipVerification < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -123449,7 +131299,7 @@ module Stripe end # typed: true module Stripe - class AccountExternalAccountListParams < Stripe::RequestParams + class AccountExternalAccountListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -123489,8 +131339,8 @@ module Stripe end # typed: true module Stripe - class AccountExternalAccountCreateParams < Stripe::RequestParams - class BankAccount < Stripe::RequestParams + class AccountExternalAccountCreateParams < ::Stripe::RequestParams + class BankAccount < ::Stripe::RequestParams # Attribute for param field object sig { returns(String) } def object; end @@ -123539,7 +131389,7 @@ module Stripe routing_number: nil ); end end - class Card < Stripe::RequestParams + class Card < ::Stripe::RequestParams # Attribute for param field object sig { returns(String) } def object; end @@ -123632,7 +131482,7 @@ module Stripe metadata: nil ); end end - class CardToken < Stripe::RequestParams + class CardToken < ::Stripe::RequestParams # Attribute for param field object sig { returns(String) } def object; end @@ -123690,7 +131540,7 @@ module Stripe end # typed: true module Stripe - class AccountLoginLinkCreateParams < Stripe::RequestParams + class AccountLoginLinkCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -123702,11 +131552,11 @@ module Stripe end # typed: true module Stripe - class AccountPersonDeleteParams < Stripe::RequestParams; end + class AccountPersonDeleteParams < ::Stripe::RequestParams; end end # typed: true module Stripe - class AccountPersonRetrieveParams < Stripe::RequestParams + class AccountPersonRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -123718,9 +131568,9 @@ module Stripe end # typed: true module Stripe - class AccountPersonUpdateParams < Stripe::RequestParams - class AdditionalTosAcceptances < Stripe::RequestParams - class Account < Stripe::RequestParams + class AccountPersonUpdateParams < ::Stripe::RequestParams + class AdditionalTosAcceptances < ::Stripe::RequestParams + class Account < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted the service agreement. sig { returns(T.nilable(Integer)) } def date; end @@ -123753,7 +131603,7 @@ module Stripe } def initialize(account: nil); end end - class Address < Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -123796,7 +131646,7 @@ module Stripe state: nil ); end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -123845,7 +131695,7 @@ module Stripe town: nil ); end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -123894,7 +131744,7 @@ module Stripe town: nil ); end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -123913,8 +131763,8 @@ module Stripe sig { params(day: Integer, month: Integer, year: Integer).void } def initialize(day: nil, month: nil, year: nil); end end - class Documents < Stripe::RequestParams - class CompanyAuthorization < Stripe::RequestParams + class Documents < ::Stripe::RequestParams + class CompanyAuthorization < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -123923,7 +131773,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class Passport < Stripe::RequestParams + class Passport < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -123932,7 +131782,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class Visa < Stripe::RequestParams + class Visa < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -123967,7 +131817,7 @@ module Stripe } def initialize(company_authorization: nil, passport: nil, visa: nil); end end - class RegisteredAddress < Stripe::RequestParams + class RegisteredAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -124010,7 +131860,7 @@ module Stripe state: nil ); end end - class Relationship < Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # Whether the person is the authorizer of the account's representative. sig { returns(T.nilable(T::Boolean)) } def authorizer; end @@ -124067,8 +131917,8 @@ module Stripe title: nil ); end end - class UsCfpbData < Stripe::RequestParams - class EthnicityDetails < Stripe::RequestParams + class UsCfpbData < ::Stripe::RequestParams + class EthnicityDetails < ::Stripe::RequestParams # The persons ethnicity sig { returns(T.nilable(T::Array[String])) } def ethnicity; end @@ -124084,7 +131934,7 @@ module Stripe } def initialize(ethnicity: nil, ethnicity_other: nil); end end - class RaceDetails < Stripe::RequestParams + class RaceDetails < ::Stripe::RequestParams # The persons race. sig { returns(T.nilable(T::Array[String])) } def race; end @@ -124122,8 +131972,8 @@ module Stripe } def initialize(ethnicity_details: nil, race_details: nil, self_identified_gender: nil); end end - class Verification < Stripe::RequestParams - class AdditionalDocument < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class AdditionalDocument < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -124137,7 +131987,7 @@ module Stripe sig { params(back: T.nilable(String), front: T.nilable(String)).void } def initialize(back: nil, front: nil); end end - class Document < Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -124377,8 +132227,8 @@ module Stripe end # typed: true module Stripe - class AccountPersonListParams < Stripe::RequestParams - class Relationship < Stripe::RequestParams + class AccountPersonListParams < ::Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # A filter on the list of people returned based on whether these people are authorizers of the account's representative. sig { returns(T.nilable(T::Boolean)) } def authorizer; end @@ -124462,9 +132312,9 @@ module Stripe end # typed: true module Stripe - class AccountPersonCreateParams < Stripe::RequestParams - class AdditionalTosAcceptances < Stripe::RequestParams - class Account < Stripe::RequestParams + class AccountPersonCreateParams < ::Stripe::RequestParams + class AdditionalTosAcceptances < ::Stripe::RequestParams + class Account < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted the service agreement. sig { returns(T.nilable(Integer)) } def date; end @@ -124497,7 +132347,7 @@ module Stripe } def initialize(account: nil); end end - class Address < Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -124540,7 +132390,7 @@ module Stripe state: nil ); end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -124589,7 +132439,7 @@ module Stripe town: nil ); end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -124638,7 +132488,7 @@ module Stripe town: nil ); end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -124657,8 +132507,8 @@ module Stripe sig { params(day: Integer, month: Integer, year: Integer).void } def initialize(day: nil, month: nil, year: nil); end end - class Documents < Stripe::RequestParams - class CompanyAuthorization < Stripe::RequestParams + class Documents < ::Stripe::RequestParams + class CompanyAuthorization < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -124667,7 +132517,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class Passport < Stripe::RequestParams + class Passport < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -124676,7 +132526,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class Visa < Stripe::RequestParams + class Visa < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -124711,7 +132561,7 @@ module Stripe } def initialize(company_authorization: nil, passport: nil, visa: nil); end end - class RegisteredAddress < Stripe::RequestParams + class RegisteredAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -124754,7 +132604,7 @@ module Stripe state: nil ); end end - class Relationship < Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # Whether the person is the authorizer of the account's representative. sig { returns(T.nilable(T::Boolean)) } def authorizer; end @@ -124811,8 +132661,8 @@ module Stripe title: nil ); end end - class UsCfpbData < Stripe::RequestParams - class EthnicityDetails < Stripe::RequestParams + class UsCfpbData < ::Stripe::RequestParams + class EthnicityDetails < ::Stripe::RequestParams # The persons ethnicity sig { returns(T.nilable(T::Array[String])) } def ethnicity; end @@ -124828,7 +132678,7 @@ module Stripe } def initialize(ethnicity: nil, ethnicity_other: nil); end end - class RaceDetails < Stripe::RequestParams + class RaceDetails < ::Stripe::RequestParams # The persons race. sig { returns(T.nilable(T::Array[String])) } def race; end @@ -124866,8 +132716,8 @@ module Stripe } def initialize(ethnicity_details: nil, race_details: nil, self_identified_gender: nil); end end - class Verification < Stripe::RequestParams - class AdditionalDocument < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class AdditionalDocument < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -124881,7 +132731,7 @@ module Stripe sig { params(back: T.nilable(String), front: T.nilable(String)).void } def initialize(back: nil, front: nil); end end - class Document < Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -125121,7 +132971,7 @@ module Stripe end # typed: true module Stripe - class ApplePayDomainRetrieveParams < Stripe::RequestParams + class ApplePayDomainRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -125133,7 +132983,7 @@ module Stripe end # typed: true module Stripe - class ApplicationFeeRetrieveParams < Stripe::RequestParams + class ApplicationFeeRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -125145,7 +132995,7 @@ module Stripe end # typed: true module Stripe - class ApplicationFeeRefundRetrieveParams < Stripe::RequestParams + class ApplicationFeeRefundRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -125157,7 +133007,7 @@ module Stripe end # typed: true module Stripe - class ApplicationFeeRefundUpdateParams < Stripe::RequestParams + class ApplicationFeeRefundUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -125178,7 +133028,7 @@ module Stripe end # typed: true module Stripe - class ApplicationFeeRefundListParams < Stripe::RequestParams + class ApplicationFeeRefundListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -125207,7 +133057,7 @@ module Stripe end # typed: true module Stripe - class ApplicationFeeRefundCreateParams < Stripe::RequestParams + class ApplicationFeeRefundCreateParams < ::Stripe::RequestParams # A positive integer, in _cents (or local equivalent)_, representing how much of this fee to refund. Can refund only up to the remaining unrefunded amount of the fee. sig { returns(T.nilable(Integer)) } def amount; end @@ -125233,7 +133083,7 @@ module Stripe end # typed: true module Stripe - class BalanceRetrieveParams < Stripe::RequestParams + class BalanceRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -125245,7 +133095,7 @@ module Stripe end # typed: true module Stripe - class BalanceSettingsRetrieveParams < Stripe::RequestParams + class BalanceSettingsRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -125257,7 +133107,7 @@ module Stripe end # typed: true module Stripe - class BalanceTransactionRetrieveParams < Stripe::RequestParams + class BalanceTransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -125270,7 +133120,7 @@ end # typed: true module Stripe module Billing - class AlertRetrieveParams < Stripe::RequestParams + class AlertRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -125284,10 +133134,10 @@ end # typed: true module Stripe module Billing - class CreditBalanceSummaryRetrieveParams < Stripe::RequestParams - class Filter < Stripe::RequestParams - class ApplicabilityScope < Stripe::RequestParams - class Price < Stripe::RequestParams + class CreditBalanceSummaryRetrieveParams < ::Stripe::RequestParams + class Filter < ::Stripe::RequestParams + class ApplicabilityScope < ::Stripe::RequestParams + class Price < ::Stripe::RequestParams # The price ID this credit grant should apply to. sig { returns(String) } def id; end @@ -125366,7 +133216,7 @@ end # typed: true module Stripe module Billing - class CreditBalanceTransactionRetrieveParams < Stripe::RequestParams + class CreditBalanceTransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -125380,7 +133230,7 @@ end # typed: true module Stripe module Billing - class CreditGrantRetrieveParams < Stripe::RequestParams + class CreditGrantRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -125394,7 +133244,7 @@ end # typed: true module Stripe module Billing - class MeterRetrieveParams < Stripe::RequestParams + class MeterRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -125408,7 +133258,7 @@ end # typed: true module Stripe module Billing - class MeterEventSummaryListParams < Stripe::RequestParams + class MeterEventSummaryListParams < ::Stripe::RequestParams # The customer for which to fetch event summaries. sig { returns(String) } def customer; end @@ -125468,7 +133318,7 @@ end # typed: true module Stripe module BillingPortal - class ConfigurationRetrieveParams < Stripe::RequestParams + class ConfigurationRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -125481,7 +133331,7 @@ module Stripe end # typed: true module Stripe - class ChargeRetrieveParams < Stripe::RequestParams + class ChargeRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -125494,7 +133344,7 @@ end # typed: true module Stripe module Checkout - class SessionRetrieveParams < Stripe::RequestParams + class SessionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -125508,7 +133358,7 @@ end # typed: true module Stripe module Checkout - class SessionLineItemListParams < Stripe::RequestParams + class SessionLineItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -125539,7 +133389,7 @@ end # typed: true module Stripe module Climate - class OrderRetrieveParams < Stripe::RequestParams + class OrderRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -125553,7 +133403,7 @@ end # typed: true module Stripe module Climate - class ProductRetrieveParams < Stripe::RequestParams + class ProductRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -125567,7 +133417,7 @@ end # typed: true module Stripe module Climate - class SupplierRetrieveParams < Stripe::RequestParams + class SupplierRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -125580,7 +133430,7 @@ module Stripe end # typed: true module Stripe - class ConfirmationTokenRetrieveParams < Stripe::RequestParams + class ConfirmationTokenRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -125592,7 +133442,7 @@ module Stripe end # typed: true module Stripe - class CountrySpecRetrieveParams < Stripe::RequestParams + class CountrySpecRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -125604,7 +133454,7 @@ module Stripe end # typed: true module Stripe - class CouponRetrieveParams < Stripe::RequestParams + class CouponRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -125616,7 +133466,7 @@ module Stripe end # typed: true module Stripe - class CreditNoteRetrieveParams < Stripe::RequestParams + class CreditNoteRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -125628,7 +133478,7 @@ module Stripe end # typed: true module Stripe - class CreditNoteLineItemListParams < Stripe::RequestParams + class CreditNoteLineItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -125657,9 +133507,9 @@ module Stripe end # typed: true module Stripe - class CreditNotePreviewLinesListParams < Stripe::RequestParams - class Line < Stripe::RequestParams - class TaxAmount < Stripe::RequestParams + class CreditNotePreviewLinesListParams < ::Stripe::RequestParams + class Line < ::Stripe::RequestParams + class TaxAmount < ::Stripe::RequestParams # The amount, in cents (or local equivalent), of the tax. sig { returns(Integer) } def amount; end @@ -125744,21 +133594,49 @@ module Stripe unit_amount_decimal: nil ); end end - class Refund < Stripe::RequestParams + class Refund < ::Stripe::RequestParams + class PaymentRecordRefund < ::Stripe::RequestParams + # The ID of the PaymentRecord with the refund to link to this credit note. + sig { returns(String) } + def payment_record; end + sig { params(_payment_record: String).returns(String) } + def payment_record=(_payment_record); end + # The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord. + sig { returns(String) } + def refund_group; end + sig { params(_refund_group: String).returns(String) } + def refund_group=(_refund_group); end + sig { params(payment_record: String, refund_group: String).void } + def initialize(payment_record: nil, refund_group: nil); end + end # Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount. sig { returns(T.nilable(Integer)) } def amount_refunded; end sig { params(_amount_refunded: T.nilable(Integer)).returns(T.nilable(Integer)) } def amount_refunded=(_amount_refunded); end + # The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`. + sig { returns(T.nilable(CreditNotePreviewLinesListParams::Refund::PaymentRecordRefund)) } + def payment_record_refund; end + sig { + params(_payment_record_refund: T.nilable(CreditNotePreviewLinesListParams::Refund::PaymentRecordRefund)).returns(T.nilable(CreditNotePreviewLinesListParams::Refund::PaymentRecordRefund)) + } + def payment_record_refund=(_payment_record_refund); end # ID of an existing refund to link this credit note to. Required when `type` is `refund`. sig { returns(T.nilable(String)) } def refund; end sig { params(_refund: T.nilable(String)).returns(T.nilable(String)) } def refund=(_refund); end - sig { params(amount_refunded: T.nilable(Integer), refund: T.nilable(String)).void } - def initialize(amount_refunded: nil, refund: nil); end + # Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`. + sig { returns(T.nilable(String)) } + def type; end + sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } + def type=(_type); end + sig { + params(amount_refunded: T.nilable(Integer), payment_record_refund: T.nilable(CreditNotePreviewLinesListParams::Refund::PaymentRecordRefund), refund: T.nilable(String), type: T.nilable(String)).void + } + def initialize(amount_refunded: nil, payment_record_refund: nil, refund: nil, type: nil); end end - class ShippingCost < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams # The ID of the shipping rate to use for this order. sig { returns(T.nilable(String)) } def shipping_rate; end @@ -125886,7 +133764,7 @@ module Stripe end # typed: true module Stripe - class CustomerBalanceTransactionListParams < Stripe::RequestParams + class CustomerBalanceTransactionListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -125915,7 +133793,7 @@ module Stripe end # typed: true module Stripe - class CustomerBalanceTransactionCreateParams < Stripe::RequestParams + class CustomerBalanceTransactionCreateParams < ::Stripe::RequestParams # The integer amount in **cents (or local equivalent)** to apply to the customer's credit balance. sig { returns(Integer) } def amount; end @@ -125951,7 +133829,7 @@ module Stripe end # typed: true module Stripe - class CustomerBalanceTransactionRetrieveParams < Stripe::RequestParams + class CustomerBalanceTransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -125963,7 +133841,7 @@ module Stripe end # typed: true module Stripe - class CustomerBalanceTransactionUpdateParams < Stripe::RequestParams + class CustomerBalanceTransactionUpdateParams < ::Stripe::RequestParams # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } def description; end @@ -125989,7 +133867,7 @@ module Stripe end # typed: true module Stripe - class CustomerCashBalanceRetrieveParams < Stripe::RequestParams + class CustomerCashBalanceRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126001,8 +133879,8 @@ module Stripe end # typed: true module Stripe - class CustomerCashBalanceUpdateParams < Stripe::RequestParams - class Settings < Stripe::RequestParams + class CustomerCashBalanceUpdateParams < ::Stripe::RequestParams + class Settings < ::Stripe::RequestParams # Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://stripe.com/docs/payments/customer-balance/reconciliation). sig { returns(T.nilable(String)) } def reconciliation_mode; end @@ -126031,7 +133909,7 @@ module Stripe end # typed: true module Stripe - class CustomerCashBalanceTransactionListParams < Stripe::RequestParams + class CustomerCashBalanceTransactionListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -126060,7 +133938,7 @@ module Stripe end # typed: true module Stripe - class CustomerCashBalanceTransactionRetrieveParams < Stripe::RequestParams + class CustomerCashBalanceTransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126072,9 +133950,9 @@ module Stripe end # typed: true module Stripe - class CustomerFundingInstructionsCreateParams < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerFundingInstructionsCreateParams < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -126141,7 +134019,7 @@ module Stripe end # typed: true module Stripe - class CustomerPaymentMethodListParams < Stripe::RequestParams + class CustomerPaymentMethodListParams < ::Stripe::RequestParams # This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. sig { returns(T.nilable(String)) } def allow_redisplay; end @@ -126187,7 +134065,7 @@ module Stripe end # typed: true module Stripe - class CustomerPaymentMethodRetrieveParams < Stripe::RequestParams + class CustomerPaymentMethodRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126199,7 +134077,7 @@ module Stripe end # typed: true module Stripe - class CustomerPaymentSourceListParams < Stripe::RequestParams + class CustomerPaymentSourceListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -126239,7 +134117,7 @@ module Stripe end # typed: true module Stripe - class CustomerPaymentSourceCreateParams < Stripe::RequestParams + class CustomerPaymentSourceCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126270,7 +134148,7 @@ module Stripe end # typed: true module Stripe - class CustomerPaymentSourceRetrieveParams < Stripe::RequestParams + class CustomerPaymentSourceRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126282,9 +134160,9 @@ module Stripe end # typed: true module Stripe - class CustomerPaymentSourceUpdateParams < Stripe::RequestParams - class Owner < Stripe::RequestParams - class Address < Stripe::RequestParams + class CustomerPaymentSourceUpdateParams < ::Stripe::RequestParams + class Owner < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -126451,7 +134329,7 @@ module Stripe end # typed: true module Stripe - class CustomerPaymentSourceDeleteParams < Stripe::RequestParams + class CustomerPaymentSourceDeleteParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126463,7 +134341,7 @@ module Stripe end # typed: true module Stripe - class CustomerPaymentSourceVerifyParams < Stripe::RequestParams + class CustomerPaymentSourceVerifyParams < ::Stripe::RequestParams # Two positive integers, in *cents*, equal to the values of the microdeposits sent to the bank account. sig { returns(T.nilable(T::Array[Integer])) } def amounts; end @@ -126480,11 +134358,11 @@ module Stripe end # typed: true module Stripe - class CustomerTaxIdDeleteParams < Stripe::RequestParams; end + class CustomerTaxIdDeleteParams < ::Stripe::RequestParams; end end # typed: true module Stripe - class CustomerTaxIdRetrieveParams < Stripe::RequestParams + class CustomerTaxIdRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126496,7 +134374,7 @@ module Stripe end # typed: true module Stripe - class CustomerTaxIdListParams < Stripe::RequestParams + class CustomerTaxIdListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -126525,7 +134403,7 @@ module Stripe end # typed: true module Stripe - class CustomerTaxIdCreateParams < Stripe::RequestParams + class CustomerTaxIdCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126547,7 +134425,7 @@ module Stripe end # typed: true module Stripe - class DisputeRetrieveParams < Stripe::RequestParams + class DisputeRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126560,7 +134438,7 @@ end # typed: true module Stripe module Entitlements - class ActiveEntitlementRetrieveParams < Stripe::RequestParams + class ActiveEntitlementRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126574,7 +134452,7 @@ end # typed: true module Stripe module Entitlements - class FeatureRetrieveParams < Stripe::RequestParams + class FeatureRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126587,7 +134465,7 @@ module Stripe end # typed: true module Stripe - class EphemeralKeyCreateParams < Stripe::RequestParams + class EphemeralKeyCreateParams < ::Stripe::RequestParams # The ID of the Customer you'd like to modify using the resulting ephemeral key. sig { returns(T.nilable(String)) } def customer; end @@ -126627,7 +134505,7 @@ module Stripe end # typed: true module Stripe - class EventRetrieveParams < Stripe::RequestParams + class EventRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126639,7 +134517,7 @@ module Stripe end # typed: true module Stripe - class ExchangeRateRetrieveParams < Stripe::RequestParams + class ExchangeRateRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126651,7 +134529,7 @@ module Stripe end # typed: true module Stripe - class FileRetrieveParams < Stripe::RequestParams + class FileRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126663,7 +134541,7 @@ module Stripe end # typed: true module Stripe - class FileLinkRetrieveParams < Stripe::RequestParams + class FileLinkRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126676,7 +134554,7 @@ end # typed: true module Stripe module FinancialConnections - class AccountRetrieveParams < Stripe::RequestParams + class AccountRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126690,7 +134568,7 @@ end # typed: true module Stripe module FinancialConnections - class AccountRefreshParams < Stripe::RequestParams + class AccountRefreshParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126709,7 +134587,7 @@ end # typed: true module Stripe module FinancialConnections - class AccountOwnerListParams < Stripe::RequestParams + class AccountOwnerListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -126751,7 +134629,7 @@ end # typed: true module Stripe module FinancialConnections - class SessionRetrieveParams < Stripe::RequestParams + class SessionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126765,7 +134643,7 @@ end # typed: true module Stripe module FinancialConnections - class TransactionRetrieveParams < Stripe::RequestParams + class TransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126779,7 +134657,7 @@ end # typed: true module Stripe module Forwarding - class RequestRetrieveParams < Stripe::RequestParams + class RequestRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126793,7 +134671,7 @@ end # typed: true module Stripe module Identity - class VerificationReportRetrieveParams < Stripe::RequestParams + class VerificationReportRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126807,7 +134685,7 @@ end # typed: true module Stripe module Identity - class VerificationSessionRetrieveParams < Stripe::RequestParams + class VerificationSessionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126820,7 +134698,7 @@ module Stripe end # typed: true module Stripe - class InvoiceRetrieveParams < Stripe::RequestParams + class InvoiceRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126832,7 +134710,7 @@ module Stripe end # typed: true module Stripe - class InvoiceLineItemListParams < Stripe::RequestParams + class InvoiceLineItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -126861,7 +134739,7 @@ module Stripe end # typed: true module Stripe - class InvoiceItemRetrieveParams < Stripe::RequestParams + class InvoiceItemRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126873,7 +134751,7 @@ module Stripe end # typed: true module Stripe - class InvoicePaymentRetrieveParams < Stripe::RequestParams + class InvoicePaymentRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126885,7 +134763,7 @@ module Stripe end # typed: true module Stripe - class InvoiceRenderingTemplateRetrieveParams < Stripe::RequestParams + class InvoiceRenderingTemplateRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126903,7 +134781,7 @@ end # typed: true module Stripe module Issuing - class AuthorizationRetrieveParams < Stripe::RequestParams + class AuthorizationRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126917,7 +134795,7 @@ end # typed: true module Stripe module Issuing - class CardRetrieveParams < Stripe::RequestParams + class CardRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126931,7 +134809,7 @@ end # typed: true module Stripe module Issuing - class CardholderRetrieveParams < Stripe::RequestParams + class CardholderRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126945,7 +134823,7 @@ end # typed: true module Stripe module Issuing - class DisputeRetrieveParams < Stripe::RequestParams + class DisputeRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126959,7 +134837,7 @@ end # typed: true module Stripe module Issuing - class PersonalizationDesignRetrieveParams < Stripe::RequestParams + class PersonalizationDesignRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126973,7 +134851,7 @@ end # typed: true module Stripe module Issuing - class PhysicalBundleRetrieveParams < Stripe::RequestParams + class PhysicalBundleRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -126987,7 +134865,7 @@ end # typed: true module Stripe module Issuing - class TokenRetrieveParams < Stripe::RequestParams + class TokenRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127001,7 +134879,7 @@ end # typed: true module Stripe module Issuing - class TransactionRetrieveParams < Stripe::RequestParams + class TransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127014,7 +134892,7 @@ module Stripe end # typed: true module Stripe - class MandateRetrieveParams < Stripe::RequestParams + class MandateRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127026,7 +134904,19 @@ module Stripe end # typed: true module Stripe - class PaymentIntentRetrieveParams < Stripe::RequestParams + class PaymentAttemptRecordRetrieveParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + sig { params(expand: T.nilable(T::Array[String])).void } + def initialize(expand: nil); end + end +end +# typed: true +module Stripe + class PaymentIntentRetrieveParams < ::Stripe::RequestParams # The client secret of the PaymentIntent. We require it if you use a publishable key to retrieve the source. sig { returns(T.nilable(String)) } def client_secret; end @@ -127043,19 +134933,7 @@ module Stripe end # typed: true module Stripe - class PaymentLinkRetrieveParams < Stripe::RequestParams - # Specifies which fields in the response should be expanded. - sig { returns(T.nilable(T::Array[String])) } - def expand; end - sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def expand=(_expand); end - sig { params(expand: T.nilable(T::Array[String])).void } - def initialize(expand: nil); end - end -end -# typed: true -module Stripe - class PaymentLinkLineItemListParams < Stripe::RequestParams + class PaymentIntentAmountDetailsLineItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -127084,7 +134962,7 @@ module Stripe end # typed: true module Stripe - class PaymentMethodRetrieveParams < Stripe::RequestParams + class PaymentLinkRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127096,95 +134974,7 @@ module Stripe end # typed: true module Stripe - class PaymentMethodConfigurationRetrieveParams < Stripe::RequestParams - # Specifies which fields in the response should be expanded. - sig { returns(T.nilable(T::Array[String])) } - def expand; end - sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def expand=(_expand); end - sig { params(expand: T.nilable(T::Array[String])).void } - def initialize(expand: nil); end - end -end -# typed: true -module Stripe - class PaymentMethodDomainRetrieveParams < Stripe::RequestParams - # Specifies which fields in the response should be expanded. - sig { returns(T.nilable(T::Array[String])) } - def expand; end - sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def expand=(_expand); end - sig { params(expand: T.nilable(T::Array[String])).void } - def initialize(expand: nil); end - end -end -# typed: true -module Stripe - class PayoutRetrieveParams < Stripe::RequestParams - # Specifies which fields in the response should be expanded. - sig { returns(T.nilable(T::Array[String])) } - def expand; end - sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def expand=(_expand); end - sig { params(expand: T.nilable(T::Array[String])).void } - def initialize(expand: nil); end - end -end -# typed: true -module Stripe - class PlanRetrieveParams < Stripe::RequestParams - # Specifies which fields in the response should be expanded. - sig { returns(T.nilable(T::Array[String])) } - def expand; end - sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def expand=(_expand); end - sig { params(expand: T.nilable(T::Array[String])).void } - def initialize(expand: nil); end - end -end -# typed: true -module Stripe - class PriceRetrieveParams < Stripe::RequestParams - # Specifies which fields in the response should be expanded. - sig { returns(T.nilable(T::Array[String])) } - def expand; end - sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def expand=(_expand); end - sig { params(expand: T.nilable(T::Array[String])).void } - def initialize(expand: nil); end - end -end -# typed: true -module Stripe - class ProductRetrieveParams < Stripe::RequestParams - # Specifies which fields in the response should be expanded. - sig { returns(T.nilable(T::Array[String])) } - def expand; end - sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def expand=(_expand); end - sig { params(expand: T.nilable(T::Array[String])).void } - def initialize(expand: nil); end - end -end -# typed: true -module Stripe - class ProductFeatureDeleteParams < Stripe::RequestParams; end -end -# typed: true -module Stripe - class ProductFeatureRetrieveParams < Stripe::RequestParams - # Specifies which fields in the response should be expanded. - sig { returns(T.nilable(T::Array[String])) } - def expand; end - sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def expand=(_expand); end - sig { params(expand: T.nilable(T::Array[String])).void } - def initialize(expand: nil); end - end -end -# typed: true -module Stripe - class ProductFeatureListParams < Stripe::RequestParams + class PaymentLinkLineItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -127213,7 +135003,148 @@ module Stripe end # typed: true module Stripe - class ProductFeatureCreateParams < Stripe::RequestParams + class PaymentMethodRetrieveParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + sig { params(expand: T.nilable(T::Array[String])).void } + def initialize(expand: nil); end + end +end +# typed: true +module Stripe + class PaymentMethodConfigurationRetrieveParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + sig { params(expand: T.nilable(T::Array[String])).void } + def initialize(expand: nil); end + end +end +# typed: true +module Stripe + class PaymentMethodDomainRetrieveParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + sig { params(expand: T.nilable(T::Array[String])).void } + def initialize(expand: nil); end + end +end +# typed: true +module Stripe + class PaymentRecordRetrieveParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + sig { params(expand: T.nilable(T::Array[String])).void } + def initialize(expand: nil); end + end +end +# typed: true +module Stripe + class PayoutRetrieveParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + sig { params(expand: T.nilable(T::Array[String])).void } + def initialize(expand: nil); end + end +end +# typed: true +module Stripe + class PlanRetrieveParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + sig { params(expand: T.nilable(T::Array[String])).void } + def initialize(expand: nil); end + end +end +# typed: true +module Stripe + class PriceRetrieveParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + sig { params(expand: T.nilable(T::Array[String])).void } + def initialize(expand: nil); end + end +end +# typed: true +module Stripe + class ProductRetrieveParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + sig { params(expand: T.nilable(T::Array[String])).void } + def initialize(expand: nil); end + end +end +# typed: true +module Stripe + class ProductFeatureDeleteParams < ::Stripe::RequestParams; end +end +# typed: true +module Stripe + class ProductFeatureRetrieveParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + sig { params(expand: T.nilable(T::Array[String])).void } + def initialize(expand: nil); end + end +end +# typed: true +module Stripe + class ProductFeatureListParams < ::Stripe::RequestParams + # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. + sig { returns(T.nilable(String)) } + def ending_before; end + sig { params(_ending_before: T.nilable(String)).returns(T.nilable(String)) } + def ending_before=(_ending_before); end + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. + sig { returns(T.nilable(Integer)) } + def limit; end + sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) } + def limit=(_limit); end + # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. + sig { returns(T.nilable(String)) } + def starting_after; end + sig { params(_starting_after: T.nilable(String)).returns(T.nilable(String)) } + def starting_after=(_starting_after); end + sig { + params(ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), starting_after: T.nilable(String)).void + } + def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil); end + end +end +# typed: true +module Stripe + class ProductFeatureCreateParams < ::Stripe::RequestParams # The ID of the [Feature](https://stripe.com/docs/api/entitlements/feature) object attached to this product. sig { returns(String) } def entitlement_feature; end @@ -127230,7 +135161,7 @@ module Stripe end # typed: true module Stripe - class PromotionCodeRetrieveParams < Stripe::RequestParams + class PromotionCodeRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127242,7 +135173,7 @@ module Stripe end # typed: true module Stripe - class QuoteRetrieveParams < Stripe::RequestParams + class QuoteRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127254,7 +135185,7 @@ module Stripe end # typed: true module Stripe - class QuoteComputedUpfrontLineItemsListParams < Stripe::RequestParams + class QuoteComputedUpfrontLineItemsListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -127283,7 +135214,7 @@ module Stripe end # typed: true module Stripe - class QuoteLineItemListParams < Stripe::RequestParams + class QuoteLineItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -127313,7 +135244,7 @@ end # typed: true module Stripe module Radar - class EarlyFraudWarningRetrieveParams < Stripe::RequestParams + class EarlyFraudWarningRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127327,7 +135258,7 @@ end # typed: true module Stripe module Radar - class ValueListRetrieveParams < Stripe::RequestParams + class ValueListRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127341,7 +135272,7 @@ end # typed: true module Stripe module Radar - class ValueListItemRetrieveParams < Stripe::RequestParams + class ValueListItemRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127354,7 +135285,7 @@ module Stripe end # typed: true module Stripe - class RefundRetrieveParams < Stripe::RequestParams + class RefundRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127367,7 +135298,7 @@ end # typed: true module Stripe module Reporting - class ReportRunRetrieveParams < Stripe::RequestParams + class ReportRunRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127381,7 +135312,7 @@ end # typed: true module Stripe module Reporting - class ReportTypeRetrieveParams < Stripe::RequestParams + class ReportTypeRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127394,7 +135325,7 @@ module Stripe end # typed: true module Stripe - class ReviewRetrieveParams < Stripe::RequestParams + class ReviewRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127406,7 +135337,7 @@ module Stripe end # typed: true module Stripe - class SetupIntentRetrieveParams < Stripe::RequestParams + class SetupIntentRetrieveParams < ::Stripe::RequestParams # The client secret of the SetupIntent. We require this string if you use a publishable key to retrieve the SetupIntent. sig { returns(T.nilable(String)) } def client_secret; end @@ -127423,7 +135354,7 @@ module Stripe end # typed: true module Stripe - class ShippingRateRetrieveParams < Stripe::RequestParams + class ShippingRateRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127436,7 +135367,7 @@ end # typed: true module Stripe module Sigma - class ScheduledQueryRunRetrieveParams < Stripe::RequestParams + class ScheduledQueryRunRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127449,7 +135380,7 @@ module Stripe end # typed: true module Stripe - class SourceDetachParams < Stripe::RequestParams + class SourceDetachParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127461,7 +135392,7 @@ module Stripe end # typed: true module Stripe - class SourceRetrieveParams < Stripe::RequestParams + class SourceRetrieveParams < ::Stripe::RequestParams # The client secret of the source. Required if a publishable key is used to retrieve the source. sig { returns(T.nilable(String)) } def client_secret; end @@ -127478,7 +135409,7 @@ module Stripe end # typed: true module Stripe - class SourceTransactionListParams < Stripe::RequestParams + class SourceTransactionListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -127507,7 +135438,7 @@ module Stripe end # typed: true module Stripe - class SubscriptionRetrieveParams < Stripe::RequestParams + class SubscriptionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127519,7 +135450,7 @@ module Stripe end # typed: true module Stripe - class SubscriptionItemRetrieveParams < Stripe::RequestParams + class SubscriptionItemRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127531,7 +135462,7 @@ module Stripe end # typed: true module Stripe - class SubscriptionScheduleRetrieveParams < Stripe::RequestParams + class SubscriptionScheduleRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127544,7 +135475,7 @@ end # typed: true module Stripe module Tax - class CalculationRetrieveParams < Stripe::RequestParams + class CalculationRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127558,7 +135489,7 @@ end # typed: true module Stripe module Tax - class CalculationLineItemListParams < Stripe::RequestParams + class CalculationLineItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -127589,7 +135520,7 @@ end # typed: true module Stripe module Tax - class RegistrationRetrieveParams < Stripe::RequestParams + class RegistrationRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127603,7 +135534,7 @@ end # typed: true module Stripe module Tax - class SettingsRetrieveParams < Stripe::RequestParams + class SettingsRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127617,7 +135548,7 @@ end # typed: true module Stripe module Tax - class TransactionRetrieveParams < Stripe::RequestParams + class TransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127631,7 +135562,7 @@ end # typed: true module Stripe module Tax - class TransactionLineItemListParams < Stripe::RequestParams + class TransactionLineItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -127661,7 +135592,7 @@ module Stripe end # typed: true module Stripe - class TaxCodeRetrieveParams < Stripe::RequestParams + class TaxCodeRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127673,7 +135604,7 @@ module Stripe end # typed: true module Stripe - class TaxIdRetrieveParams < Stripe::RequestParams + class TaxIdRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127685,7 +135616,7 @@ module Stripe end # typed: true module Stripe - class TaxRateRetrieveParams < Stripe::RequestParams + class TaxRateRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127698,7 +135629,7 @@ end # typed: true module Stripe module Terminal - class ConfigurationRetrieveParams < Stripe::RequestParams + class ConfigurationRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127712,7 +135643,7 @@ end # typed: true module Stripe module Terminal - class LocationRetrieveParams < Stripe::RequestParams + class LocationRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127726,7 +135657,7 @@ end # typed: true module Stripe module Terminal - class ReaderRetrieveParams < Stripe::RequestParams + class ReaderRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -127740,9 +135671,9 @@ end # typed: true module Stripe module TestHelpers - class ConfirmationTokenCreateParams < Stripe::RequestParams - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class ConfirmationTokenCreateParams < ::Stripe::RequestParams + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. sig { returns(String) } def account_number; end @@ -127763,12 +135694,12 @@ module Stripe } def initialize(account_number: nil, institution_number: nil, transit_number: nil); end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. sig { returns(String) } def account_number; end @@ -127782,7 +135713,7 @@ module Stripe sig { params(account_number: String, bsb_number: String).void } def initialize(account_number: nil, bsb_number: nil); end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. sig { returns(T.nilable(String)) } def account_number; end @@ -127796,10 +135727,10 @@ module Stripe sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void } def initialize(account_number: nil, sort_code: nil); end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -127876,8 +135807,8 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end - class Blik < Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Blik < ::Stripe::RequestParams; end + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) sig { returns(String) } def tax_id; end @@ -127886,10 +135817,10 @@ module Stripe sig { params(tax_id: String).void } def initialize(tax_id: nil); end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end + class Eps < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -127898,7 +135829,7 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction sig { returns(T.nilable(String)) } def account_holder_type; end @@ -127912,9 +135843,9 @@ module Stripe sig { params(account_holder_type: T.nilable(String), bank: String).void } def initialize(account_holder_type: nil, bank: nil); end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. sig { returns(T.nilable(String)) } def bank; end @@ -127923,10 +135854,10 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -127959,13 +135890,13 @@ module Stripe } def initialize(dob: nil); end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. sig { returns(T.nilable(String)) } def funding; end @@ -127974,7 +135905,7 @@ module Stripe sig { params(funding: T.nilable(String)).void } def initialize(funding: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -128017,8 +135948,8 @@ module Stripe suffix: nil ); end end - class Oxxo < Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams; end + class P24 < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -128027,13 +135958,13 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -128042,10 +135973,10 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } def iban; end @@ -128054,7 +135985,7 @@ module Stripe sig { params(iban: String).void } def initialize(iban: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. sig { returns(String) } def country; end @@ -128063,9 +135994,9 @@ module Stripe sig { params(country: String).void } def initialize(country: nil); end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -128104,8 +136035,8 @@ module Stripe routing_number: nil ); end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. sig { returns(T.nilable(TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::AcssDebit)) @@ -128642,10 +136573,10 @@ module Stripe zip: nil ); end end - class PaymentMethodOptions < Stripe::RequestParams - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams - class Plan < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams + class Plan < ::Stripe::RequestParams # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. sig { returns(T.nilable(Integer)) } def count; end @@ -128710,8 +136641,8 @@ module Stripe } def initialize(card: nil); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -128837,7 +136768,7 @@ end # typed: true module Stripe module TestHelpers - class CustomerFundCashBalanceParams < Stripe::RequestParams + class CustomerFundCashBalanceParams < ::Stripe::RequestParams # Amount to be used for this test cash balance transaction. A positive integer representing how much to fund in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to fund $1.00 or 100 to fund ¥100, a zero-decimal currency). sig { returns(Integer) } def amount; end @@ -128869,8 +136800,8 @@ end module Stripe module TestHelpers module Issuing - class AuthorizationCreateParams < Stripe::RequestParams - class AmountDetails < Stripe::RequestParams + class AuthorizationCreateParams < ::Stripe::RequestParams + class AmountDetails < ::Stripe::RequestParams # The ATM withdrawal fee. sig { returns(T.nilable(Integer)) } def atm_fee; end @@ -128884,8 +136815,8 @@ module Stripe sig { params(atm_fee: T.nilable(Integer), cashback_amount: T.nilable(Integer)).void } def initialize(atm_fee: nil, cashback_amount: nil); end end - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. sig { returns(T.nilable(String)) } def driver_id; end @@ -128922,8 +136853,8 @@ module Stripe vehicle_number: nil ); end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -128932,7 +136863,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -128941,7 +136872,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -129027,7 +136958,7 @@ module Stripe service_type: nil ); end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end @@ -129064,7 +136995,7 @@ module Stripe unit_cost_decimal: nil ); end end - class MerchantData < Stripe::RequestParams + class MerchantData < ::Stripe::RequestParams # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. sig { returns(T.nilable(String)) } def category; end @@ -129125,7 +137056,7 @@ module Stripe url: nil ); end end - class NetworkData < Stripe::RequestParams + class NetworkData < ::Stripe::RequestParams # Identifier assigned to the acquirer by the card network. sig { returns(T.nilable(String)) } def acquiring_institution_id; end @@ -129134,8 +137065,8 @@ module Stripe sig { params(acquiring_institution_id: T.nilable(String)).void } def initialize(acquiring_institution_id: nil); end end - class RiskAssessment < Stripe::RequestParams - class CardTestingRisk < Stripe::RequestParams + class RiskAssessment < ::Stripe::RequestParams + class CardTestingRisk < ::Stripe::RequestParams # The % of declines due to a card number not existing in the past hour, taking place at the same merchant. Higher rates correspond to a greater probability of card testing activity, meaning bad actors may be attempting different card number combinations to guess a correct one. Takes on values between 0 and 100. sig { returns(T.nilable(Integer)) } def invalid_account_number_decline_rate_past_hour; end @@ -129168,7 +137099,7 @@ module Stripe risk_level: nil ); end end - class MerchantDisputeRisk < Stripe::RequestParams + class MerchantDisputeRisk < ::Stripe::RequestParams # The dispute rate observed across all Stripe Issuing authorizations for this merchant. For example, a value of 50 means 50% of authorizations from this merchant on Stripe Issuing have resulted in a dispute. Higher values mean a higher likelihood the authorization is disputed. Takes on values between 0 and 100. sig { returns(T.nilable(Integer)) } def dispute_rate; end @@ -129205,8 +137136,8 @@ module Stripe } def initialize(card_testing_risk: nil, merchant_dispute_risk: nil); end end - class VerificationData < Stripe::RequestParams - class AuthenticationExemption < Stripe::RequestParams + class VerificationData < ::Stripe::RequestParams + class AuthenticationExemption < ::Stripe::RequestParams # The entity that requested the exemption, either the acquiring merchant or the Issuing user. sig { returns(String) } def claimed_by; end @@ -129220,7 +137151,7 @@ module Stripe sig { params(claimed_by: String, type: String).void } def initialize(claimed_by: nil, type: nil); end end - class ThreeDSecure < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams # The outcome of the 3D Secure authentication request. sig { returns(String) } def result; end @@ -129414,10 +137345,10 @@ end module Stripe module TestHelpers module Issuing - class AuthorizationCaptureParams < Stripe::RequestParams - class PurchaseDetails < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class AuthorizationCaptureParams < ::Stripe::RequestParams + class PurchaseDetails < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. sig { returns(T.nilable(String)) } def driver_id; end @@ -129454,8 +137385,8 @@ module Stripe vehicle_number: nil ); end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -129464,7 +137395,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -129473,7 +137404,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -129561,8 +137492,8 @@ module Stripe service_type: nil ); end end - class Flight < Stripe::RequestParams - class Segment < Stripe::RequestParams + class Flight < ::Stripe::RequestParams + class Segment < ::Stripe::RequestParams # The three-letter IATA airport code of the flight's destination. sig { returns(T.nilable(String)) } def arrival_airport_code; end @@ -129647,7 +137578,7 @@ module Stripe travel_agency: nil ); end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end @@ -129684,7 +137615,7 @@ module Stripe unit_cost_decimal: nil ); end end - class Lodging < Stripe::RequestParams + class Lodging < ::Stripe::RequestParams # The time of checking into the lodging. sig { returns(T.nilable(Integer)) } def check_in_at; end @@ -129698,7 +137629,7 @@ module Stripe sig { params(check_in_at: T.nilable(Integer), nights: T.nilable(Integer)).void } def initialize(check_in_at: nil, nights: nil); end end - class Receipt < Stripe::RequestParams + class Receipt < ::Stripe::RequestParams # Attribute for param field description sig { returns(T.nilable(String)) } def description; end @@ -129827,7 +137758,7 @@ end module Stripe module TestHelpers module Issuing - class AuthorizationExpireParams < Stripe::RequestParams + class AuthorizationExpireParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -129843,9 +137774,9 @@ end module Stripe module TestHelpers module Issuing - class AuthorizationFinalizeAmountParams < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class AuthorizationFinalizeAmountParams < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. sig { returns(T.nilable(String)) } def driver_id; end @@ -129882,8 +137813,8 @@ module Stripe vehicle_number: nil ); end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -129892,7 +137823,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -129901,7 +137832,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -129987,7 +137918,7 @@ module Stripe service_type: nil ); end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end @@ -130060,7 +137991,7 @@ end module Stripe module TestHelpers module Issuing - class AuthorizationRespondParams < Stripe::RequestParams + class AuthorizationRespondParams < ::Stripe::RequestParams # Whether to simulate the user confirming that the transaction was legitimate (true) or telling Stripe that it was fraudulent (false). sig { returns(T::Boolean) } def confirmed; end @@ -130081,7 +138012,7 @@ end module Stripe module TestHelpers module Issuing - class AuthorizationIncrementParams < Stripe::RequestParams + class AuthorizationIncrementParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -130111,7 +138042,7 @@ end module Stripe module TestHelpers module Issuing - class AuthorizationReverseParams < Stripe::RequestParams + class AuthorizationReverseParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -130132,7 +138063,7 @@ end module Stripe module TestHelpers module Issuing - class CardDeliverCardParams < Stripe::RequestParams + class CardDeliverCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -130148,7 +138079,7 @@ end module Stripe module TestHelpers module Issuing - class CardFailCardParams < Stripe::RequestParams + class CardFailCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -130164,7 +138095,7 @@ end module Stripe module TestHelpers module Issuing - class CardReturnCardParams < Stripe::RequestParams + class CardReturnCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -130180,7 +138111,7 @@ end module Stripe module TestHelpers module Issuing - class CardShipCardParams < Stripe::RequestParams + class CardShipCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -130196,7 +138127,7 @@ end module Stripe module TestHelpers module Issuing - class CardSubmitCardParams < Stripe::RequestParams + class CardSubmitCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -130212,7 +138143,7 @@ end module Stripe module TestHelpers module Issuing - class PersonalizationDesignActivateParams < Stripe::RequestParams + class PersonalizationDesignActivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -130228,7 +138159,7 @@ end module Stripe module TestHelpers module Issuing - class PersonalizationDesignDeactivateParams < Stripe::RequestParams + class PersonalizationDesignDeactivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -130244,8 +138175,8 @@ end module Stripe module TestHelpers module Issuing - class PersonalizationDesignRejectParams < Stripe::RequestParams - class RejectionReasons < Stripe::RequestParams + class PersonalizationDesignRejectParams < ::Stripe::RequestParams + class RejectionReasons < ::Stripe::RequestParams # The reason(s) the card logo was rejected. sig { returns(T.nilable(T::Array[String])) } def card_logo; end @@ -130289,7 +138220,7 @@ end module Stripe module TestHelpers module Issuing - class TransactionRefundParams < Stripe::RequestParams + class TransactionRefundParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -130310,8 +138241,8 @@ end module Stripe module TestHelpers module Issuing - class TransactionCreateForceCaptureParams < Stripe::RequestParams - class MerchantData < Stripe::RequestParams + class TransactionCreateForceCaptureParams < ::Stripe::RequestParams + class MerchantData < ::Stripe::RequestParams # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. sig { returns(T.nilable(String)) } def category; end @@ -130372,9 +138303,9 @@ module Stripe url: nil ); end end - class PurchaseDetails < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class PurchaseDetails < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. sig { returns(T.nilable(String)) } def driver_id; end @@ -130411,8 +138342,8 @@ module Stripe vehicle_number: nil ); end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -130421,7 +138352,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -130430,7 +138361,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -130518,8 +138449,8 @@ module Stripe service_type: nil ); end end - class Flight < Stripe::RequestParams - class Segment < Stripe::RequestParams + class Flight < ::Stripe::RequestParams + class Segment < ::Stripe::RequestParams # The three-letter IATA airport code of the flight's destination. sig { returns(T.nilable(String)) } def arrival_airport_code; end @@ -130604,7 +138535,7 @@ module Stripe travel_agency: nil ); end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end @@ -130641,7 +138572,7 @@ module Stripe unit_cost_decimal: nil ); end end - class Lodging < Stripe::RequestParams + class Lodging < ::Stripe::RequestParams # The time of checking into the lodging. sig { returns(T.nilable(Integer)) } def check_in_at; end @@ -130655,7 +138586,7 @@ module Stripe sig { params(check_in_at: T.nilable(Integer), nights: T.nilable(Integer)).void } def initialize(check_in_at: nil, nights: nil); end end - class Receipt < Stripe::RequestParams + class Receipt < ::Stripe::RequestParams # Attribute for param field description sig { returns(T.nilable(String)) } def description; end @@ -130800,8 +138731,8 @@ end module Stripe module TestHelpers module Issuing - class TransactionCreateUnlinkedRefundParams < Stripe::RequestParams - class MerchantData < Stripe::RequestParams + class TransactionCreateUnlinkedRefundParams < ::Stripe::RequestParams + class MerchantData < ::Stripe::RequestParams # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. sig { returns(T.nilable(String)) } def category; end @@ -130862,9 +138793,9 @@ module Stripe url: nil ); end end - class PurchaseDetails < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class PurchaseDetails < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. sig { returns(T.nilable(String)) } def driver_id; end @@ -130901,8 +138832,8 @@ module Stripe vehicle_number: nil ); end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -130911,7 +138842,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -130920,7 +138851,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -131008,8 +138939,8 @@ module Stripe service_type: nil ); end end - class Flight < Stripe::RequestParams - class Segment < Stripe::RequestParams + class Flight < ::Stripe::RequestParams + class Segment < ::Stripe::RequestParams # The three-letter IATA airport code of the flight's destination. sig { returns(T.nilable(String)) } def arrival_airport_code; end @@ -131094,7 +139025,7 @@ module Stripe travel_agency: nil ); end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end @@ -131131,7 +139062,7 @@ module Stripe unit_cost_decimal: nil ); end end - class Lodging < Stripe::RequestParams + class Lodging < ::Stripe::RequestParams # The time of checking into the lodging. sig { returns(T.nilable(Integer)) } def check_in_at; end @@ -131145,7 +139076,7 @@ module Stripe sig { params(check_in_at: T.nilable(Integer), nights: T.nilable(Integer)).void } def initialize(check_in_at: nil, nights: nil); end end - class Receipt < Stripe::RequestParams + class Receipt < ::Stripe::RequestParams # Attribute for param field description sig { returns(T.nilable(String)) } def description; end @@ -131289,7 +139220,7 @@ end # typed: true module Stripe module TestHelpers - class RefundExpireParams < Stripe::RequestParams + class RefundExpireParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -131304,8 +139235,8 @@ end module Stripe module TestHelpers module Terminal - class ReaderPresentPaymentMethodParams < Stripe::RequestParams - class Card < Stripe::RequestParams + class ReaderPresentPaymentMethodParams < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams # Card security code. sig { returns(T.nilable(String)) } def cvc; end @@ -131331,7 +139262,7 @@ module Stripe } def initialize(cvc: nil, exp_month: nil, exp_year: nil, number: nil); end end - class CardPresent < Stripe::RequestParams + class CardPresent < ::Stripe::RequestParams # The card number, as a string without any separators. sig { returns(T.nilable(String)) } def number; end @@ -131340,8 +139271,8 @@ module Stripe sig { params(number: T.nilable(String)).void } def initialize(number: nil); end end - class InteracPresent < Stripe::RequestParams - # Card Number + class InteracPresent < ::Stripe::RequestParams + # The Interac card number. sig { returns(T.nilable(String)) } def number; end sig { params(_number: T.nilable(String)).returns(T.nilable(String)) } @@ -131408,7 +139339,7 @@ end module Stripe module TestHelpers module Terminal - class ReaderSucceedInputCollectionParams < Stripe::RequestParams + class ReaderSucceedInputCollectionParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -131431,7 +139362,7 @@ end module Stripe module TestHelpers module Terminal - class ReaderTimeoutInputCollectionParams < Stripe::RequestParams + class ReaderTimeoutInputCollectionParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -131446,7 +139377,7 @@ end # typed: true module Stripe module TestHelpers - class TestClockRetrieveParams < Stripe::RequestParams + class TestClockRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -131461,8 +139392,8 @@ end module Stripe module TestHelpers module Treasury - class InboundTransferFailParams < Stripe::RequestParams - class FailureDetails < Stripe::RequestParams + class InboundTransferFailParams < ::Stripe::RequestParams + class FailureDetails < ::Stripe::RequestParams # Reason for the failure. sig { returns(T.nilable(String)) } def code; end @@ -131495,7 +139426,7 @@ end module Stripe module TestHelpers module Treasury - class InboundTransferReturnInboundTransferParams < Stripe::RequestParams + class InboundTransferReturnInboundTransferParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -131511,7 +139442,7 @@ end module Stripe module TestHelpers module Treasury - class InboundTransferSucceedParams < Stripe::RequestParams + class InboundTransferSucceedParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -131527,9 +139458,9 @@ end module Stripe module TestHelpers module Treasury - class OutboundPaymentUpdateParams < Stripe::RequestParams - class TrackingDetails < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundPaymentUpdateParams < ::Stripe::RequestParams + class TrackingDetails < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # ACH trace ID for funds sent over the `ach` network. sig { returns(String) } def trace_id; end @@ -131538,7 +139469,7 @@ module Stripe sig { params(trace_id: String).void } def initialize(trace_id: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # CHIPS System Sequence Number (SSN) for funds sent over the `us_domestic_wire` network. sig { returns(T.nilable(String)) } def chips; end @@ -131611,7 +139542,7 @@ end module Stripe module TestHelpers module Treasury - class OutboundPaymentFailParams < Stripe::RequestParams + class OutboundPaymentFailParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -131627,7 +139558,7 @@ end module Stripe module TestHelpers module Treasury - class OutboundPaymentPostParams < Stripe::RequestParams + class OutboundPaymentPostParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -131643,8 +139574,8 @@ end module Stripe module TestHelpers module Treasury - class OutboundPaymentReturnOutboundPaymentParams < Stripe::RequestParams - class ReturnedDetails < Stripe::RequestParams + class OutboundPaymentReturnOutboundPaymentParams < ::Stripe::RequestParams + class ReturnedDetails < ::Stripe::RequestParams # The return code to be set on the OutboundPayment object. sig { returns(T.nilable(String)) } def code; end @@ -131679,9 +139610,9 @@ end module Stripe module TestHelpers module Treasury - class OutboundTransferUpdateParams < Stripe::RequestParams - class TrackingDetails < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundTransferUpdateParams < ::Stripe::RequestParams + class TrackingDetails < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # ACH trace ID for funds sent over the `ach` network. sig { returns(String) } def trace_id; end @@ -131690,7 +139621,7 @@ module Stripe sig { params(trace_id: String).void } def initialize(trace_id: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # CHIPS System Sequence Number (SSN) for funds sent over the `us_domestic_wire` network. sig { returns(T.nilable(String)) } def chips; end @@ -131763,7 +139694,7 @@ end module Stripe module TestHelpers module Treasury - class OutboundTransferFailParams < Stripe::RequestParams + class OutboundTransferFailParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -131779,7 +139710,7 @@ end module Stripe module TestHelpers module Treasury - class OutboundTransferPostParams < Stripe::RequestParams + class OutboundTransferPostParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -131795,8 +139726,8 @@ end module Stripe module TestHelpers module Treasury - class OutboundTransferReturnOutboundTransferParams < Stripe::RequestParams - class ReturnedDetails < Stripe::RequestParams + class OutboundTransferReturnOutboundTransferParams < ::Stripe::RequestParams + class ReturnedDetails < ::Stripe::RequestParams # Reason for the return. sig { returns(T.nilable(String)) } def code; end @@ -131831,9 +139762,9 @@ end module Stripe module TestHelpers module Treasury - class ReceivedCreditCreateParams < Stripe::RequestParams - class InitiatingPaymentMethodDetails < Stripe::RequestParams - class UsBankAccount < Stripe::RequestParams + class ReceivedCreditCreateParams < ::Stripe::RequestParams + class InitiatingPaymentMethodDetails < ::Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # The bank account holder's name. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -131932,9 +139863,9 @@ end module Stripe module TestHelpers module Treasury - class ReceivedDebitCreateParams < Stripe::RequestParams - class InitiatingPaymentMethodDetails < Stripe::RequestParams - class UsBankAccount < Stripe::RequestParams + class ReceivedDebitCreateParams < ::Stripe::RequestParams + class InitiatingPaymentMethodDetails < ::Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # The bank account holder's name. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -132031,7 +139962,7 @@ module Stripe end # typed: true module Stripe - class TokenRetrieveParams < Stripe::RequestParams + class TokenRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -132043,7 +139974,7 @@ module Stripe end # typed: true module Stripe - class TopupRetrieveParams < Stripe::RequestParams + class TopupRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -132055,7 +139986,7 @@ module Stripe end # typed: true module Stripe - class TransferRetrieveParams < Stripe::RequestParams + class TransferRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -132067,7 +139998,7 @@ module Stripe end # typed: true module Stripe - class TransferReversalListParams < Stripe::RequestParams + class TransferReversalListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end @@ -132096,7 +140027,7 @@ module Stripe end # typed: true module Stripe - class TransferReversalCreateParams < Stripe::RequestParams + class TransferReversalCreateParams < ::Stripe::RequestParams # A positive integer in cents (or local equivalent) representing how much of this transfer to reverse. Can only reverse up to the unreversed amount remaining of the transfer. Partial transfer reversals are only allowed for transfers to Stripe Accounts. Defaults to the entire transfer amount. sig { returns(T.nilable(Integer)) } def amount; end @@ -132138,7 +140069,7 @@ module Stripe end # typed: true module Stripe - class TransferReversalRetrieveParams < Stripe::RequestParams + class TransferReversalRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -132150,7 +140081,7 @@ module Stripe end # typed: true module Stripe - class TransferReversalUpdateParams < Stripe::RequestParams + class TransferReversalUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -132172,7 +140103,7 @@ end # typed: true module Stripe module Treasury - class CreditReversalRetrieveParams < Stripe::RequestParams + class CreditReversalRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -132186,7 +140117,7 @@ end # typed: true module Stripe module Treasury - class DebitReversalRetrieveParams < Stripe::RequestParams + class DebitReversalRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -132200,7 +140131,7 @@ end # typed: true module Stripe module Treasury - class FinancialAccountRetrieveParams < Stripe::RequestParams + class FinancialAccountRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -132214,8 +140145,8 @@ end # typed: true module Stripe module Treasury - class FinancialAccountFeaturesUpdateParams < Stripe::RequestParams - class CardIssuing < Stripe::RequestParams + class FinancialAccountFeaturesUpdateParams < ::Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -132224,7 +140155,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class DepositInsurance < Stripe::RequestParams + class DepositInsurance < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -132233,8 +140164,8 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class FinancialAddresses < Stripe::RequestParams - class Aba < Stripe::RequestParams + class FinancialAddresses < ::Stripe::RequestParams + class Aba < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -132257,8 +140188,8 @@ module Stripe } def initialize(aba: nil); end end - class InboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class InboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -132281,7 +140212,7 @@ module Stripe } def initialize(ach: nil); end end - class IntraStripeFlows < Stripe::RequestParams + class IntraStripeFlows < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -132290,8 +140221,8 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class OutboundPayments < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundPayments < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -132300,7 +140231,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -132332,8 +140263,8 @@ module Stripe } def initialize(ach: nil, us_domestic_wire: nil); end end - class OutboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -132342,7 +140273,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -132447,7 +140378,7 @@ end # typed: true module Stripe module Treasury - class FinancialAccountFeaturesRetrieveParams < Stripe::RequestParams + class FinancialAccountFeaturesRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -132461,7 +140392,7 @@ end # typed: true module Stripe module Treasury - class InboundTransferRetrieveParams < Stripe::RequestParams + class InboundTransferRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -132475,7 +140406,7 @@ end # typed: true module Stripe module Treasury - class OutboundPaymentRetrieveParams < Stripe::RequestParams + class OutboundPaymentRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -132489,7 +140420,7 @@ end # typed: true module Stripe module Treasury - class OutboundTransferRetrieveParams < Stripe::RequestParams + class OutboundTransferRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -132503,7 +140434,7 @@ end # typed: true module Stripe module Treasury - class ReceivedCreditRetrieveParams < Stripe::RequestParams + class ReceivedCreditRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -132517,7 +140448,7 @@ end # typed: true module Stripe module Treasury - class ReceivedDebitRetrieveParams < Stripe::RequestParams + class ReceivedDebitRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -132531,7 +140462,7 @@ end # typed: true module Stripe module Treasury - class TransactionRetrieveParams < Stripe::RequestParams + class TransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -132545,7 +140476,7 @@ end # typed: true module Stripe module Treasury - class TransactionEntryRetrieveParams < Stripe::RequestParams + class TransactionEntryRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -132558,7 +140489,7 @@ module Stripe end # typed: true module Stripe - class WebhookEndpointRetrieveParams < Stripe::RequestParams + class WebhookEndpointRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -132572,7 +140503,7 @@ end module Stripe module V2 module Billing - class MeterEventCreateParams < Stripe::RequestParams + class MeterEventCreateParams < ::Stripe::RequestParams # The name of the meter event. Corresponds with the `event_name` field on a meter. sig { returns(String) } def event_name; end @@ -132612,8 +140543,8 @@ end module Stripe module V2 module Billing - class MeterEventAdjustmentCreateParams < Stripe::RequestParams - class Cancel < Stripe::RequestParams + class MeterEventAdjustmentCreateParams < ::Stripe::RequestParams + class Cancel < ::Stripe::RequestParams # Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them. sig { returns(String) } def identifier; end @@ -132651,7 +140582,7 @@ end module Stripe module V2 module Billing - class MeterEventSessionCreateParams < Stripe::RequestParams; end + class MeterEventSessionCreateParams < ::Stripe::RequestParams; end end end end @@ -132659,8 +140590,8 @@ end module Stripe module V2 module Billing - class MeterEventStreamCreateParams < Stripe::RequestParams - class Event < Stripe::RequestParams + class MeterEventStreamCreateParams < ::Stripe::RequestParams + class Event < ::Stripe::RequestParams # The name of the meter event. Corresponds with the `event_name` field on a meter. sig { returns(String) } def event_name; end @@ -132710,21 +140641,56 @@ end module Stripe module V2 module Core - class EventListParams < Stripe::RequestParams + class EventListParams < ::Stripe::RequestParams + # Filter for events created after the specified timestamp. + sig { returns(T.nilable(String)) } + def gt; end + sig { params(_gt: T.nilable(String)).returns(T.nilable(String)) } + def gt=(_gt); end + # Filter for events created at or after the specified timestamp. + sig { returns(T.nilable(String)) } + def gte; end + sig { params(_gte: T.nilable(String)).returns(T.nilable(String)) } + def gte=(_gte); end # The page size. sig { returns(T.nilable(Integer)) } def limit; end sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) } def limit=(_limit); end + # Filter for events created before the specified timestamp. + sig { returns(T.nilable(String)) } + def lt; end + sig { params(_lt: T.nilable(String)).returns(T.nilable(String)) } + def lt=(_lt); end + # Filter for events created at or before the specified timestamp. + sig { returns(T.nilable(String)) } + def lte; end + sig { params(_lte: T.nilable(String)).returns(T.nilable(String)) } + def lte=(_lte); end # Primary object ID used to retrieve related events. # # To avoid conflict with Ruby's ':object_id', this attribute has been renamed. If using a hash parameter map instead, please use the original name ':object_id' with NO trailing underscore as the provided param key. - sig { returns(String) } + sig { returns(T.nilable(String)) } def object_id_; end - sig { params(_object_id_: String).returns(String) } + sig { params(_object_id_: T.nilable(String)).returns(T.nilable(String)) } def object_id_=(_object_id_); end - sig { params(limit: T.nilable(Integer), object_id_: String).void } - def initialize(limit: nil, object_id_: nil); end + # An array of up to 20 strings containing specific event names. + sig { returns(T.nilable(T::Array[String])) } + def types; end + sig { params(_types: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def types=(_types); end + sig { + params(gt: T.nilable(String), gte: T.nilable(String), limit: T.nilable(Integer), lt: T.nilable(String), lte: T.nilable(String), object_id_: T.nilable(String), types: T.nilable(T::Array[String])).void + } + def initialize( + gt: nil, + gte: nil, + limit: nil, + lt: nil, + lte: nil, + object_id_: nil, + types: nil + ); end end end end @@ -132733,7 +140699,7 @@ end module Stripe module V2 module Core - class EventRetrieveParams < Stripe::RequestParams; end + class EventRetrieveParams < ::Stripe::RequestParams; end end end end @@ -132741,7 +140707,7 @@ end module Stripe module V2 module Core - class EventDestinationListParams < Stripe::RequestParams + class EventDestinationListParams < ::Stripe::RequestParams # Additional fields to include in the response. Currently supports `webhook_endpoint.url`. sig { returns(T.nilable(T::Array[String])) } def include; end @@ -132762,8 +140728,8 @@ end module Stripe module V2 module Core - class EventDestinationCreateParams < Stripe::RequestParams - class AmazonEventbridge < Stripe::RequestParams + class EventDestinationCreateParams < ::Stripe::RequestParams + class AmazonEventbridge < ::Stripe::RequestParams # The AWS account ID. sig { returns(String) } def aws_account_id; end @@ -132777,7 +140743,7 @@ module Stripe sig { params(aws_account_id: String, aws_region: String).void } def initialize(aws_account_id: nil, aws_region: nil); end end - class WebhookEndpoint < Stripe::RequestParams + class WebhookEndpoint < ::Stripe::RequestParams # The URL of the webhook endpoint. sig { returns(String) } def url; end @@ -132873,7 +140839,7 @@ end module Stripe module V2 module Core - class EventDestinationDeleteParams < Stripe::RequestParams; end + class EventDestinationDeleteParams < ::Stripe::RequestParams; end end end end @@ -132881,7 +140847,7 @@ end module Stripe module V2 module Core - class EventDestinationRetrieveParams < Stripe::RequestParams + class EventDestinationRetrieveParams < ::Stripe::RequestParams # Additional fields to include in the response. sig { returns(T.nilable(T::Array[String])) } def include; end @@ -132897,8 +140863,8 @@ end module Stripe module V2 module Core - class EventDestinationUpdateParams < Stripe::RequestParams - class WebhookEndpoint < Stripe::RequestParams + class EventDestinationUpdateParams < ::Stripe::RequestParams + class WebhookEndpoint < ::Stripe::RequestParams # The URL of the webhook endpoint. sig { returns(String) } def url; end @@ -132962,7 +140928,7 @@ end module Stripe module V2 module Core - class EventDestinationDisableParams < Stripe::RequestParams; end + class EventDestinationDisableParams < ::Stripe::RequestParams; end end end end @@ -132970,7 +140936,7 @@ end module Stripe module V2 module Core - class EventDestinationEnableParams < Stripe::RequestParams; end + class EventDestinationEnableParams < ::Stripe::RequestParams; end end end end @@ -132978,7 +140944,7 @@ end module Stripe module V2 module Core - class EventDestinationPingParams < Stripe::RequestParams; end + class EventDestinationPingParams < ::Stripe::RequestParams; end end end end \ No newline at end of file diff --git a/rbi/stripe/params/account_capability_list_params.rbi b/rbi/stripe/params/account_capability_list_params.rbi index 145b0fef..b6dcd180 100644 --- a/rbi/stripe/params/account_capability_list_params.rbi +++ b/rbi/stripe/params/account_capability_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class AccountCapabilityListParams < Stripe::RequestParams + class AccountCapabilityListParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/account_capability_retrieve_params.rbi b/rbi/stripe/params/account_capability_retrieve_params.rbi index 0d9ffd4c..52eaa016 100644 --- a/rbi/stripe/params/account_capability_retrieve_params.rbi +++ b/rbi/stripe/params/account_capability_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class AccountCapabilityRetrieveParams < Stripe::RequestParams + class AccountCapabilityRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/account_capability_update_params.rbi b/rbi/stripe/params/account_capability_update_params.rbi index f06dd0e8..4cf1ead4 100644 --- a/rbi/stripe/params/account_capability_update_params.rbi +++ b/rbi/stripe/params/account_capability_update_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class AccountCapabilityUpdateParams < Stripe::RequestParams + class AccountCapabilityUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/account_create_params.rbi b/rbi/stripe/params/account_create_params.rbi index bd2dcbbe..b117b5f3 100644 --- a/rbi/stripe/params/account_create_params.rbi +++ b/rbi/stripe/params/account_create_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class AccountCreateParams < Stripe::RequestParams - class BankAccount < Stripe::RequestParams + class AccountCreateParams < ::Stripe::RequestParams + class BankAccount < ::Stripe::RequestParams # Attribute for param field object sig { returns(String) } def object; end @@ -53,8 +53,8 @@ module Stripe routing_number: nil ); end end - class BusinessProfile < Stripe::RequestParams - class AnnualRevenue < Stripe::RequestParams + class BusinessProfile < ::Stripe::RequestParams + class AnnualRevenue < ::Stripe::RequestParams # A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal). sig { returns(Integer) } def amount; end @@ -73,7 +73,7 @@ module Stripe sig { params(amount: Integer, currency: String, fiscal_year_end: String).void } def initialize(amount: nil, currency: nil, fiscal_year_end: nil); end end - class MonthlyEstimatedRevenue < Stripe::RequestParams + class MonthlyEstimatedRevenue < ::Stripe::RequestParams # A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal). sig { returns(Integer) } def amount; end @@ -87,7 +87,7 @@ module Stripe sig { params(amount: Integer, currency: String).void } def initialize(amount: nil, currency: nil); end end - class SupportAddress < Stripe::RequestParams + class SupportAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -216,8 +216,8 @@ module Stripe url: nil ); end end - class Capabilities < Stripe::RequestParams - class AcssDebitPayments < Stripe::RequestParams + class Capabilities < ::Stripe::RequestParams + class AcssDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -226,7 +226,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class AffirmPayments < Stripe::RequestParams + class AffirmPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -235,7 +235,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class AfterpayClearpayPayments < Stripe::RequestParams + class AfterpayClearpayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -244,7 +244,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class AlmaPayments < Stripe::RequestParams + class AlmaPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -253,7 +253,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class AmazonPayPayments < Stripe::RequestParams + class AmazonPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -262,7 +262,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class AuBecsDebitPayments < Stripe::RequestParams + class AuBecsDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -271,7 +271,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BacsDebitPayments < Stripe::RequestParams + class BacsDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -280,7 +280,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BancontactPayments < Stripe::RequestParams + class BancontactPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -289,7 +289,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BankTransferPayments < Stripe::RequestParams + class BankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -298,7 +298,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BilliePayments < Stripe::RequestParams + class BilliePayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -307,7 +307,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BlikPayments < Stripe::RequestParams + class BlikPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -316,7 +316,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BoletoPayments < Stripe::RequestParams + class BoletoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -325,7 +325,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class CardIssuing < Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -334,7 +334,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class CardPayments < Stripe::RequestParams + class CardPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -343,7 +343,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class CartesBancairesPayments < Stripe::RequestParams + class CartesBancairesPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -352,7 +352,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class CashappPayments < Stripe::RequestParams + class CashappPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -361,7 +361,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class CryptoPayments < Stripe::RequestParams + class CryptoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -370,7 +370,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class EpsPayments < Stripe::RequestParams + class EpsPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -379,7 +379,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class FpxPayments < Stripe::RequestParams + class FpxPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -388,7 +388,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class GbBankTransferPayments < Stripe::RequestParams + class GbBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -397,7 +397,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class GiropayPayments < Stripe::RequestParams + class GiropayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -406,7 +406,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class GrabpayPayments < Stripe::RequestParams + class GrabpayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -415,7 +415,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class IdealPayments < Stripe::RequestParams + class IdealPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -424,7 +424,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class IndiaInternationalPayments < Stripe::RequestParams + class IndiaInternationalPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -433,7 +433,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class JcbPayments < Stripe::RequestParams + class JcbPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -442,7 +442,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class JpBankTransferPayments < Stripe::RequestParams + class JpBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -451,7 +451,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class KakaoPayPayments < Stripe::RequestParams + class KakaoPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -460,7 +460,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class KlarnaPayments < Stripe::RequestParams + class KlarnaPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -469,7 +469,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class KonbiniPayments < Stripe::RequestParams + class KonbiniPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -478,7 +478,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class KrCardPayments < Stripe::RequestParams + class KrCardPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -487,7 +487,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class LegacyPayments < Stripe::RequestParams + class LegacyPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -496,7 +496,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class LinkPayments < Stripe::RequestParams + class LinkPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -505,7 +505,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class MbWayPayments < Stripe::RequestParams + class MbWayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -514,7 +514,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class MobilepayPayments < Stripe::RequestParams + class MobilepayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -523,7 +523,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class MultibancoPayments < Stripe::RequestParams + class MultibancoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -532,7 +532,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class MxBankTransferPayments < Stripe::RequestParams + class MxBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -541,7 +541,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class NaverPayPayments < Stripe::RequestParams + class NaverPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -550,7 +550,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class NzBankAccountBecsDebitPayments < Stripe::RequestParams + class NzBankAccountBecsDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -559,7 +559,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class OxxoPayments < Stripe::RequestParams + class OxxoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -568,7 +568,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class P24Payments < Stripe::RequestParams + class P24Payments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -577,7 +577,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class PayByBankPayments < Stripe::RequestParams + class PayByBankPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -586,7 +586,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class PaycoPayments < Stripe::RequestParams + class PaycoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -595,7 +595,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class PaynowPayments < Stripe::RequestParams + class PaynowPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -604,7 +604,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class PixPayments < Stripe::RequestParams + class PixPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -613,7 +613,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class PromptpayPayments < Stripe::RequestParams + class PromptpayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -622,7 +622,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class RevolutPayPayments < Stripe::RequestParams + class RevolutPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -631,7 +631,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SamsungPayPayments < Stripe::RequestParams + class SamsungPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -640,7 +640,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SatispayPayments < Stripe::RequestParams + class SatispayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -649,7 +649,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SepaBankTransferPayments < Stripe::RequestParams + class SepaBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -658,7 +658,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SepaDebitPayments < Stripe::RequestParams + class SepaDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -667,7 +667,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SofortPayments < Stripe::RequestParams + class SofortPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -676,7 +676,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SwishPayments < Stripe::RequestParams + class SwishPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -685,7 +685,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class TaxReportingUs1099K < Stripe::RequestParams + class TaxReportingUs1099K < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -694,7 +694,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class TaxReportingUs1099Misc < Stripe::RequestParams + class TaxReportingUs1099Misc < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -703,7 +703,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class Transfers < Stripe::RequestParams + class Transfers < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -712,7 +712,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class Treasury < Stripe::RequestParams + class Treasury < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -721,7 +721,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class TwintPayments < Stripe::RequestParams + class TwintPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -730,7 +730,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class UsBankAccountAchPayments < Stripe::RequestParams + class UsBankAccountAchPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -739,7 +739,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class UsBankTransferPayments < Stripe::RequestParams + class UsBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -748,7 +748,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class ZipPayments < Stripe::RequestParams + class ZipPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -1243,7 +1243,7 @@ module Stripe zip_payments: nil ); end end - class Card < Stripe::RequestParams + class Card < ::Stripe::RequestParams # Attribute for param field object sig { returns(String) } def object; end @@ -1342,7 +1342,7 @@ module Stripe default_for_currency: nil ); end end - class CardToken < Stripe::RequestParams + class CardToken < ::Stripe::RequestParams # Attribute for param field object sig { returns(String) } def object; end @@ -1361,8 +1361,8 @@ module Stripe sig { params(object: String, currency: T.nilable(String), token: String).void } def initialize(object: nil, currency: nil, token: nil); end end - class Company < Stripe::RequestParams - class Address < Stripe::RequestParams + class Company < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -1405,7 +1405,7 @@ module Stripe state: nil ); end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -1454,7 +1454,7 @@ module Stripe town: nil ); end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -1503,7 +1503,7 @@ module Stripe town: nil ); end end - class DirectorshipDeclaration < Stripe::RequestParams + class DirectorshipDeclaration < ::Stripe::RequestParams # The Unix timestamp marking when the directorship declaration attestation was made. sig { returns(T.nilable(Integer)) } def date; end @@ -1524,7 +1524,7 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end - class OwnershipDeclaration < Stripe::RequestParams + class OwnershipDeclaration < ::Stripe::RequestParams # The Unix timestamp marking when the beneficial owner attestation was made. sig { returns(T.nilable(Integer)) } def date; end @@ -1545,7 +1545,7 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end - class RegistrationDate < Stripe::RequestParams + class RegistrationDate < ::Stripe::RequestParams # The day of registration, between 1 and 31. sig { returns(Integer) } def day; end @@ -1564,8 +1564,29 @@ module Stripe sig { params(day: Integer, month: Integer, year: Integer).void } def initialize(day: nil, month: nil, year: nil); end end - class Verification < Stripe::RequestParams - class Document < Stripe::RequestParams + class RepresentativeDeclaration < ::Stripe::RequestParams + # The Unix timestamp marking when the representative declaration attestation was made. + sig { returns(T.nilable(Integer)) } + def date; end + sig { params(_date: T.nilable(Integer)).returns(T.nilable(Integer)) } + def date=(_date); end + # The IP address from which the representative declaration attestation was made. + sig { returns(T.nilable(String)) } + def ip; end + sig { params(_ip: T.nilable(String)).returns(T.nilable(String)) } + def ip=(_ip); end + # The user agent of the browser from which the representative declaration attestation was made. + sig { returns(T.nilable(String)) } + def user_agent; end + sig { params(_user_agent: T.nilable(String)).returns(T.nilable(String)) } + def user_agent=(_user_agent); end + sig { + params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void + } + def initialize(date: nil, ip: nil, user_agent: nil); end + end + class Verification < ::Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -1690,6 +1711,13 @@ module Stripe def registration_number; end sig { params(_registration_number: T.nilable(String)).returns(T.nilable(String)) } def registration_number=(_registration_number); end + # This hash is used to attest that the representative is authorized to act as the representative of their legal entity. + sig { returns(T.nilable(AccountCreateParams::Company::RepresentativeDeclaration)) } + def representative_declaration; end + sig { + params(_representative_declaration: T.nilable(AccountCreateParams::Company::RepresentativeDeclaration)).returns(T.nilable(AccountCreateParams::Company::RepresentativeDeclaration)) + } + def representative_declaration=(_representative_declaration); end # The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value. sig { returns(T.nilable(T.any(String, String))) } def structure; end @@ -1720,7 +1748,7 @@ module Stripe } def verification=(_verification); end sig { - params(address: T.nilable(AccountCreateParams::Company::Address), address_kana: T.nilable(AccountCreateParams::Company::AddressKana), address_kanji: T.nilable(AccountCreateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(AccountCreateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(AccountCreateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, AccountCreateParams::Company::RegistrationDate)), registration_number: T.nilable(String), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(AccountCreateParams::Company::Verification)).void + params(address: T.nilable(AccountCreateParams::Company::Address), address_kana: T.nilable(AccountCreateParams::Company::AddressKana), address_kanji: T.nilable(AccountCreateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(AccountCreateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(AccountCreateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, AccountCreateParams::Company::RegistrationDate)), registration_number: T.nilable(String), representative_declaration: T.nilable(AccountCreateParams::Company::RepresentativeDeclaration), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(AccountCreateParams::Company::Verification)).void } def initialize( address: nil, @@ -1740,6 +1768,7 @@ module Stripe phone: nil, registration_date: nil, registration_number: nil, + representative_declaration: nil, structure: nil, tax_id: nil, tax_id_registrar: nil, @@ -1747,8 +1776,8 @@ module Stripe verification: nil ); end end - class Controller < Stripe::RequestParams - class Fees < Stripe::RequestParams + class Controller < ::Stripe::RequestParams + class Fees < ::Stripe::RequestParams # A value indicating the responsible payer of Stripe fees on this account. Defaults to `account`. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior). sig { returns(T.nilable(String)) } def payer; end @@ -1757,7 +1786,7 @@ module Stripe sig { params(payer: T.nilable(String)).void } def initialize(payer: nil); end end - class Losses < Stripe::RequestParams + class Losses < ::Stripe::RequestParams # A value indicating who is liable when this account can't pay back negative balances resulting from payments. Defaults to `stripe`. sig { returns(T.nilable(String)) } def payments; end @@ -1766,7 +1795,7 @@ module Stripe sig { params(payments: T.nilable(String)).void } def initialize(payments: nil); end end - class StripeDashboard < Stripe::RequestParams + class StripeDashboard < ::Stripe::RequestParams # Whether this account should have access to the full Stripe Dashboard (`full`), to the Express Dashboard (`express`), or to no Stripe-hosted dashboard (`none`). Defaults to `full`. sig { returns(T.nilable(String)) } def type; end @@ -1811,8 +1840,8 @@ module Stripe stripe_dashboard: nil ); end end - class Documents < Stripe::RequestParams - class BankAccountOwnershipVerification < Stripe::RequestParams + class Documents < ::Stripe::RequestParams + class BankAccountOwnershipVerification < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -1821,7 +1850,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class CompanyLicense < Stripe::RequestParams + class CompanyLicense < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -1830,7 +1859,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class CompanyMemorandumOfAssociation < Stripe::RequestParams + class CompanyMemorandumOfAssociation < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -1839,7 +1868,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class CompanyMinisterialDecree < Stripe::RequestParams + class CompanyMinisterialDecree < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -1848,7 +1877,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class CompanyRegistrationVerification < Stripe::RequestParams + class CompanyRegistrationVerification < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -1857,7 +1886,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class CompanyTaxIdVerification < Stripe::RequestParams + class CompanyTaxIdVerification < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -1866,7 +1895,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class ProofOfAddress < Stripe::RequestParams + class ProofOfAddress < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -1875,7 +1904,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class ProofOfRegistration < Stripe::RequestParams + class ProofOfRegistration < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -1884,7 +1913,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams + class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -1971,7 +2000,7 @@ module Stripe proof_of_ultimate_beneficial_ownership: nil ); end end - class Groups < Stripe::RequestParams + class Groups < ::Stripe::RequestParams # The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details. sig { returns(T.nilable(String)) } def payments_pricing; end @@ -1980,8 +2009,8 @@ module Stripe sig { params(payments_pricing: T.nilable(String)).void } def initialize(payments_pricing: nil); end end - class Individual < Stripe::RequestParams - class Address < Stripe::RequestParams + class Individual < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -2024,7 +2053,7 @@ module Stripe state: nil ); end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -2073,7 +2102,7 @@ module Stripe town: nil ); end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -2122,7 +2151,7 @@ module Stripe town: nil ); end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -2141,7 +2170,7 @@ module Stripe sig { params(day: Integer, month: Integer, year: Integer).void } def initialize(day: nil, month: nil, year: nil); end end - class RegisteredAddress < Stripe::RequestParams + class RegisteredAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -2184,7 +2213,7 @@ module Stripe state: nil ); end end - class Relationship < Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. sig { returns(T.nilable(T::Boolean)) } def director; end @@ -2223,8 +2252,8 @@ module Stripe title: nil ); end end - class Verification < Stripe::RequestParams - class AdditionalDocument < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class AdditionalDocument < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -2238,7 +2267,7 @@ module Stripe sig { params(back: T.nilable(String), front: T.nilable(String)).void } def initialize(back: nil, front: nil); end end - class Document < Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -2435,8 +2464,8 @@ module Stripe verification: nil ); end end - class Settings < Stripe::RequestParams - class BacsDebitPayments < Stripe::RequestParams + class Settings < ::Stripe::RequestParams + class BacsDebitPayments < ::Stripe::RequestParams # The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free. sig { returns(T.nilable(String)) } def display_name; end @@ -2445,7 +2474,7 @@ module Stripe sig { params(display_name: T.nilable(String)).void } def initialize(display_name: nil); end end - class Branding < Stripe::RequestParams + class Branding < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px. sig { returns(T.nilable(String)) } def icon; end @@ -2471,8 +2500,8 @@ module Stripe } def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil); end end - class CardIssuing < Stripe::RequestParams - class TosAcceptance < Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams + class TosAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted the service agreement. sig { returns(T.nilable(Integer)) } def date; end @@ -2505,8 +2534,8 @@ module Stripe } def initialize(tos_acceptance: nil); end end - class CardPayments < Stripe::RequestParams - class DeclineOn < Stripe::RequestParams + class CardPayments < ::Stripe::RequestParams + class DeclineOn < ::Stripe::RequestParams # Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification. sig { returns(T.nilable(T::Boolean)) } def avs_failure; end @@ -2558,7 +2587,7 @@ module Stripe statement_descriptor_prefix_kanji: nil ); end end - class Invoices < Stripe::RequestParams + class Invoices < ::Stripe::RequestParams # Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page. sig { returns(T.nilable(String)) } def hosted_payment_method_save; end @@ -2567,7 +2596,7 @@ module Stripe sig { params(hosted_payment_method_save: T.nilable(String)).void } def initialize(hosted_payment_method_save: nil); end end - class Payments < Stripe::RequestParams + class Payments < ::Stripe::RequestParams # The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors). sig { returns(T.nilable(String)) } def statement_descriptor; end @@ -2592,8 +2621,8 @@ module Stripe statement_descriptor_kanji: nil ); end end - class Payouts < Stripe::RequestParams - class Schedule < Stripe::RequestParams + class Payouts < ::Stripe::RequestParams + class Schedule < ::Stripe::RequestParams # The number of days charge funds are held before being paid out. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `interval` is `manual`. [Learn more about controlling payout delay days](/connect/manage-payout-schedule). sig { returns(T.nilable(T.any(String, Integer))) } def delay_days; end @@ -2666,8 +2695,8 @@ module Stripe } def initialize(debit_negative_balances: nil, schedule: nil, statement_descriptor: nil); end end - class Treasury < Stripe::RequestParams - class TosAcceptance < Stripe::RequestParams + class Treasury < ::Stripe::RequestParams + class TosAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted the service agreement. sig { returns(T.nilable(Integer)) } def date; end @@ -2770,7 +2799,7 @@ module Stripe treasury: nil ); end end - class TosAcceptance < Stripe::RequestParams + class TosAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted their service agreement. sig { returns(T.nilable(Integer)) } def date; end diff --git a/rbi/stripe/params/account_delete_params.rbi b/rbi/stripe/params/account_delete_params.rbi index 6edab2b6..7373956d 100644 --- a/rbi/stripe/params/account_delete_params.rbi +++ b/rbi/stripe/params/account_delete_params.rbi @@ -3,5 +3,5 @@ # typed: true module Stripe - class AccountDeleteParams < Stripe::RequestParams; end + class AccountDeleteParams < ::Stripe::RequestParams; end end \ No newline at end of file diff --git a/rbi/stripe/params/account_external_account_create_params.rbi b/rbi/stripe/params/account_external_account_create_params.rbi index e43dde38..8c548633 100644 --- a/rbi/stripe/params/account_external_account_create_params.rbi +++ b/rbi/stripe/params/account_external_account_create_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class AccountExternalAccountCreateParams < Stripe::RequestParams - class BankAccount < Stripe::RequestParams + class AccountExternalAccountCreateParams < ::Stripe::RequestParams + class BankAccount < ::Stripe::RequestParams # Attribute for param field object sig { returns(String) } def object; end @@ -53,7 +53,7 @@ module Stripe routing_number: nil ); end end - class Card < Stripe::RequestParams + class Card < ::Stripe::RequestParams # Attribute for param field object sig { returns(String) } def object; end @@ -146,7 +146,7 @@ module Stripe metadata: nil ); end end - class CardToken < Stripe::RequestParams + class CardToken < ::Stripe::RequestParams # Attribute for param field object sig { returns(String) } def object; end diff --git a/rbi/stripe/params/account_external_account_delete_params.rbi b/rbi/stripe/params/account_external_account_delete_params.rbi index 07d01a2d..72a1cf73 100644 --- a/rbi/stripe/params/account_external_account_delete_params.rbi +++ b/rbi/stripe/params/account_external_account_delete_params.rbi @@ -3,5 +3,5 @@ # typed: true module Stripe - class AccountExternalAccountDeleteParams < Stripe::RequestParams; end + class AccountExternalAccountDeleteParams < ::Stripe::RequestParams; end end \ No newline at end of file diff --git a/rbi/stripe/params/account_external_account_list_params.rbi b/rbi/stripe/params/account_external_account_list_params.rbi index a32f7da4..c5c76a3b 100644 --- a/rbi/stripe/params/account_external_account_list_params.rbi +++ b/rbi/stripe/params/account_external_account_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class AccountExternalAccountListParams < Stripe::RequestParams + class AccountExternalAccountListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/account_external_account_retrieve_params.rbi b/rbi/stripe/params/account_external_account_retrieve_params.rbi index d08eb4c1..e14729ae 100644 --- a/rbi/stripe/params/account_external_account_retrieve_params.rbi +++ b/rbi/stripe/params/account_external_account_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class AccountExternalAccountRetrieveParams < Stripe::RequestParams + class AccountExternalAccountRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/account_external_account_update_params.rbi b/rbi/stripe/params/account_external_account_update_params.rbi index 0f21feab..f8894179 100644 --- a/rbi/stripe/params/account_external_account_update_params.rbi +++ b/rbi/stripe/params/account_external_account_update_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class AccountExternalAccountUpdateParams < Stripe::RequestParams - class Documents < Stripe::RequestParams - class BankAccountOwnershipVerification < Stripe::RequestParams + class AccountExternalAccountUpdateParams < ::Stripe::RequestParams + class Documents < ::Stripe::RequestParams + class BankAccountOwnershipVerification < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end diff --git a/rbi/stripe/params/account_link_create_params.rbi b/rbi/stripe/params/account_link_create_params.rbi index 857567f1..dcaffa28 100644 --- a/rbi/stripe/params/account_link_create_params.rbi +++ b/rbi/stripe/params/account_link_create_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class AccountLinkCreateParams < Stripe::RequestParams - class CollectionOptions < Stripe::RequestParams + class AccountLinkCreateParams < ::Stripe::RequestParams + class CollectionOptions < ::Stripe::RequestParams # Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). If you don't specify `collection_options`, the default value is `currently_due`. sig { returns(T.nilable(String)) } def fields; end diff --git a/rbi/stripe/params/account_list_params.rbi b/rbi/stripe/params/account_list_params.rbi index c506a18b..d22265d7 100644 --- a/rbi/stripe/params/account_list_params.rbi +++ b/rbi/stripe/params/account_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class AccountListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class AccountListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/account_login_link_create_params.rbi b/rbi/stripe/params/account_login_link_create_params.rbi index c59395f0..7fb228e4 100644 --- a/rbi/stripe/params/account_login_link_create_params.rbi +++ b/rbi/stripe/params/account_login_link_create_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class AccountLoginLinkCreateParams < Stripe::RequestParams + class AccountLoginLinkCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/account_person_create_params.rbi b/rbi/stripe/params/account_person_create_params.rbi index ddf3405a..263839b0 100644 --- a/rbi/stripe/params/account_person_create_params.rbi +++ b/rbi/stripe/params/account_person_create_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class AccountPersonCreateParams < Stripe::RequestParams - class AdditionalTosAcceptances < Stripe::RequestParams - class Account < Stripe::RequestParams + class AccountPersonCreateParams < ::Stripe::RequestParams + class AdditionalTosAcceptances < ::Stripe::RequestParams + class Account < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted the service agreement. sig { returns(T.nilable(Integer)) } def date; end @@ -38,7 +38,7 @@ module Stripe } def initialize(account: nil); end end - class Address < Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -81,7 +81,7 @@ module Stripe state: nil ); end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -130,7 +130,7 @@ module Stripe town: nil ); end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -179,7 +179,7 @@ module Stripe town: nil ); end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -198,8 +198,8 @@ module Stripe sig { params(day: Integer, month: Integer, year: Integer).void } def initialize(day: nil, month: nil, year: nil); end end - class Documents < Stripe::RequestParams - class CompanyAuthorization < Stripe::RequestParams + class Documents < ::Stripe::RequestParams + class CompanyAuthorization < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -208,7 +208,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class Passport < Stripe::RequestParams + class Passport < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -217,7 +217,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class Visa < Stripe::RequestParams + class Visa < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -252,7 +252,7 @@ module Stripe } def initialize(company_authorization: nil, passport: nil, visa: nil); end end - class RegisteredAddress < Stripe::RequestParams + class RegisteredAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -295,7 +295,7 @@ module Stripe state: nil ); end end - class Relationship < Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # Whether the person is the authorizer of the account's representative. sig { returns(T.nilable(T::Boolean)) } def authorizer; end @@ -352,8 +352,8 @@ module Stripe title: nil ); end end - class UsCfpbData < Stripe::RequestParams - class EthnicityDetails < Stripe::RequestParams + class UsCfpbData < ::Stripe::RequestParams + class EthnicityDetails < ::Stripe::RequestParams # The persons ethnicity sig { returns(T.nilable(T::Array[String])) } def ethnicity; end @@ -369,7 +369,7 @@ module Stripe } def initialize(ethnicity: nil, ethnicity_other: nil); end end - class RaceDetails < Stripe::RequestParams + class RaceDetails < ::Stripe::RequestParams # The persons race. sig { returns(T.nilable(T::Array[String])) } def race; end @@ -407,8 +407,8 @@ module Stripe } def initialize(ethnicity_details: nil, race_details: nil, self_identified_gender: nil); end end - class Verification < Stripe::RequestParams - class AdditionalDocument < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class AdditionalDocument < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -422,7 +422,7 @@ module Stripe sig { params(back: T.nilable(String), front: T.nilable(String)).void } def initialize(back: nil, front: nil); end end - class Document < Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end diff --git a/rbi/stripe/params/account_person_delete_params.rbi b/rbi/stripe/params/account_person_delete_params.rbi index 38183ba8..9f9c2b52 100644 --- a/rbi/stripe/params/account_person_delete_params.rbi +++ b/rbi/stripe/params/account_person_delete_params.rbi @@ -3,5 +3,5 @@ # typed: true module Stripe - class AccountPersonDeleteParams < Stripe::RequestParams; end + class AccountPersonDeleteParams < ::Stripe::RequestParams; end end \ No newline at end of file diff --git a/rbi/stripe/params/account_person_list_params.rbi b/rbi/stripe/params/account_person_list_params.rbi index 02a937ee..f2ef1688 100644 --- a/rbi/stripe/params/account_person_list_params.rbi +++ b/rbi/stripe/params/account_person_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class AccountPersonListParams < Stripe::RequestParams - class Relationship < Stripe::RequestParams + class AccountPersonListParams < ::Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # A filter on the list of people returned based on whether these people are authorizers of the account's representative. sig { returns(T.nilable(T::Boolean)) } def authorizer; end diff --git a/rbi/stripe/params/account_person_retrieve_params.rbi b/rbi/stripe/params/account_person_retrieve_params.rbi index 883905ba..3b87d17c 100644 --- a/rbi/stripe/params/account_person_retrieve_params.rbi +++ b/rbi/stripe/params/account_person_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class AccountPersonRetrieveParams < Stripe::RequestParams + class AccountPersonRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/account_person_update_params.rbi b/rbi/stripe/params/account_person_update_params.rbi index d5d1c726..ad7a9ef1 100644 --- a/rbi/stripe/params/account_person_update_params.rbi +++ b/rbi/stripe/params/account_person_update_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class AccountPersonUpdateParams < Stripe::RequestParams - class AdditionalTosAcceptances < Stripe::RequestParams - class Account < Stripe::RequestParams + class AccountPersonUpdateParams < ::Stripe::RequestParams + class AdditionalTosAcceptances < ::Stripe::RequestParams + class Account < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted the service agreement. sig { returns(T.nilable(Integer)) } def date; end @@ -38,7 +38,7 @@ module Stripe } def initialize(account: nil); end end - class Address < Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -81,7 +81,7 @@ module Stripe state: nil ); end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -130,7 +130,7 @@ module Stripe town: nil ); end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -179,7 +179,7 @@ module Stripe town: nil ); end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -198,8 +198,8 @@ module Stripe sig { params(day: Integer, month: Integer, year: Integer).void } def initialize(day: nil, month: nil, year: nil); end end - class Documents < Stripe::RequestParams - class CompanyAuthorization < Stripe::RequestParams + class Documents < ::Stripe::RequestParams + class CompanyAuthorization < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -208,7 +208,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class Passport < Stripe::RequestParams + class Passport < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -217,7 +217,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class Visa < Stripe::RequestParams + class Visa < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -252,7 +252,7 @@ module Stripe } def initialize(company_authorization: nil, passport: nil, visa: nil); end end - class RegisteredAddress < Stripe::RequestParams + class RegisteredAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -295,7 +295,7 @@ module Stripe state: nil ); end end - class Relationship < Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # Whether the person is the authorizer of the account's representative. sig { returns(T.nilable(T::Boolean)) } def authorizer; end @@ -352,8 +352,8 @@ module Stripe title: nil ); end end - class UsCfpbData < Stripe::RequestParams - class EthnicityDetails < Stripe::RequestParams + class UsCfpbData < ::Stripe::RequestParams + class EthnicityDetails < ::Stripe::RequestParams # The persons ethnicity sig { returns(T.nilable(T::Array[String])) } def ethnicity; end @@ -369,7 +369,7 @@ module Stripe } def initialize(ethnicity: nil, ethnicity_other: nil); end end - class RaceDetails < Stripe::RequestParams + class RaceDetails < ::Stripe::RequestParams # The persons race. sig { returns(T.nilable(T::Array[String])) } def race; end @@ -407,8 +407,8 @@ module Stripe } def initialize(ethnicity_details: nil, race_details: nil, self_identified_gender: nil); end end - class Verification < Stripe::RequestParams - class AdditionalDocument < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class AdditionalDocument < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -422,7 +422,7 @@ module Stripe sig { params(back: T.nilable(String), front: T.nilable(String)).void } def initialize(back: nil, front: nil); end end - class Document < Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end diff --git a/rbi/stripe/params/account_persons_params.rbi b/rbi/stripe/params/account_persons_params.rbi index 9aeae568..5981a776 100644 --- a/rbi/stripe/params/account_persons_params.rbi +++ b/rbi/stripe/params/account_persons_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class AccountPersonsParams < Stripe::RequestParams - class Relationship < Stripe::RequestParams + class AccountPersonsParams < ::Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # A filter on the list of people returned based on whether these people are authorizers of the account's representative. sig { returns(T.nilable(T::Boolean)) } def authorizer; end diff --git a/rbi/stripe/params/account_reject_params.rbi b/rbi/stripe/params/account_reject_params.rbi index 3050703a..c22fb4bd 100644 --- a/rbi/stripe/params/account_reject_params.rbi +++ b/rbi/stripe/params/account_reject_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class AccountRejectParams < Stripe::RequestParams + class AccountRejectParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/account_retrieve_current_params.rbi b/rbi/stripe/params/account_retrieve_current_params.rbi index b47eb6e2..81d7fbfd 100644 --- a/rbi/stripe/params/account_retrieve_current_params.rbi +++ b/rbi/stripe/params/account_retrieve_current_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class AccountRetrieveCurrentParams < Stripe::RequestParams + class AccountRetrieveCurrentParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/account_retrieve_params.rbi b/rbi/stripe/params/account_retrieve_params.rbi index 5a495e4b..f9b13569 100644 --- a/rbi/stripe/params/account_retrieve_params.rbi +++ b/rbi/stripe/params/account_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class AccountRetrieveParams < Stripe::RequestParams + class AccountRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/account_session_create_params.rbi b/rbi/stripe/params/account_session_create_params.rbi index 7d1cb67d..a48529a5 100644 --- a/rbi/stripe/params/account_session_create_params.rbi +++ b/rbi/stripe/params/account_session_create_params.rbi @@ -3,10 +3,10 @@ # typed: true module Stripe - class AccountSessionCreateParams < Stripe::RequestParams - class Components < Stripe::RequestParams - class AccountManagement < Stripe::RequestParams - class Features < Stripe::RequestParams + class AccountSessionCreateParams < ::Stripe::RequestParams + class Components < ::Stripe::RequestParams + class AccountManagement < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T.nilable(T::Boolean)) } def disable_stripe_user_authentication; end @@ -48,8 +48,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class AccountOnboarding < Stripe::RequestParams - class Features < Stripe::RequestParams + class AccountOnboarding < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T.nilable(T::Boolean)) } def disable_stripe_user_authentication; end @@ -91,8 +91,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class Balances < Stripe::RequestParams - class Features < Stripe::RequestParams + class Balances < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T.nilable(T::Boolean)) } def disable_stripe_user_authentication; end @@ -152,8 +152,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class DisputesList < Stripe::RequestParams - class Features < Stripe::RequestParams + class DisputesList < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether to allow capturing and cancelling payment intents. This is `true` by default. sig { returns(T.nilable(T::Boolean)) } def capture_payments; end @@ -205,8 +205,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class Documents < Stripe::RequestParams - class Features < Stripe::RequestParams; end + class Documents < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams; end # Whether the embedded component is enabled. sig { returns(T::Boolean) } def enabled; end @@ -224,8 +224,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class FinancialAccount < Stripe::RequestParams - class Features < Stripe::RequestParams + class FinancialAccount < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T.nilable(T::Boolean)) } def disable_stripe_user_authentication; end @@ -279,8 +279,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class FinancialAccountTransactions < Stripe::RequestParams - class Features < Stripe::RequestParams + class FinancialAccountTransactions < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether to allow card spend dispute management features. sig { returns(T.nilable(T::Boolean)) } def card_spend_dispute_management; end @@ -310,8 +310,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class InstantPayoutsPromotion < Stripe::RequestParams - class Features < Stripe::RequestParams + class InstantPayoutsPromotion < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T.nilable(T::Boolean)) } def disable_stripe_user_authentication; end @@ -359,8 +359,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class IssuingCard < Stripe::RequestParams - class Features < Stripe::RequestParams + class IssuingCard < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether to allow card management features. sig { returns(T.nilable(T::Boolean)) } def card_management; end @@ -414,8 +414,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class IssuingCardsList < Stripe::RequestParams - class Features < Stripe::RequestParams + class IssuingCardsList < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether to allow card management features. sig { returns(T.nilable(T::Boolean)) } def card_management; end @@ -479,8 +479,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class NotificationBanner < Stripe::RequestParams - class Features < Stripe::RequestParams + class NotificationBanner < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T.nilable(T::Boolean)) } def disable_stripe_user_authentication; end @@ -522,8 +522,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class PaymentDetails < Stripe::RequestParams - class Features < Stripe::RequestParams + class PaymentDetails < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether to allow capturing and cancelling payment intents. This is `true` by default. sig { returns(T.nilable(T::Boolean)) } def capture_payments; end @@ -575,8 +575,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class PaymentDisputes < Stripe::RequestParams - class Features < Stripe::RequestParams + class PaymentDisputes < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default. sig { returns(T.nilable(T::Boolean)) } def destination_on_behalf_of_charge_management; end @@ -624,8 +624,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class Payments < Stripe::RequestParams - class Features < Stripe::RequestParams + class Payments < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether to allow capturing and cancelling payment intents. This is `true` by default. sig { returns(T.nilable(T::Boolean)) } def capture_payments; end @@ -677,8 +677,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class PayoutDetails < Stripe::RequestParams - class Features < Stripe::RequestParams; end + class PayoutDetails < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams; end # Whether the embedded component is enabled. sig { returns(T::Boolean) } def enabled; end @@ -696,8 +696,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class Payouts < Stripe::RequestParams - class Features < Stripe::RequestParams + class Payouts < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T.nilable(T::Boolean)) } def disable_stripe_user_authentication; end @@ -757,8 +757,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class PayoutsList < Stripe::RequestParams - class Features < Stripe::RequestParams; end + class PayoutsList < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams; end # Whether the embedded component is enabled. sig { returns(T::Boolean) } def enabled; end @@ -776,8 +776,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class TaxRegistrations < Stripe::RequestParams - class Features < Stripe::RequestParams; end + class TaxRegistrations < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams; end # Whether the embedded component is enabled. sig { returns(T::Boolean) } def enabled; end @@ -797,8 +797,8 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class TaxSettings < Stripe::RequestParams - class Features < Stripe::RequestParams; end + class TaxSettings < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams; end # Whether the embedded component is enabled. sig { returns(T::Boolean) } def enabled; end diff --git a/rbi/stripe/params/account_update_params.rbi b/rbi/stripe/params/account_update_params.rbi index 25860901..55441479 100644 --- a/rbi/stripe/params/account_update_params.rbi +++ b/rbi/stripe/params/account_update_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class AccountUpdateParams < Stripe::RequestParams - class BankAccount < Stripe::RequestParams + class AccountUpdateParams < ::Stripe::RequestParams + class BankAccount < ::Stripe::RequestParams # Attribute for param field object sig { returns(String) } def object; end @@ -53,8 +53,8 @@ module Stripe routing_number: nil ); end end - class BusinessProfile < Stripe::RequestParams - class AnnualRevenue < Stripe::RequestParams + class BusinessProfile < ::Stripe::RequestParams + class AnnualRevenue < ::Stripe::RequestParams # A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal). sig { returns(Integer) } def amount; end @@ -73,7 +73,7 @@ module Stripe sig { params(amount: Integer, currency: String, fiscal_year_end: String).void } def initialize(amount: nil, currency: nil, fiscal_year_end: nil); end end - class MonthlyEstimatedRevenue < Stripe::RequestParams + class MonthlyEstimatedRevenue < ::Stripe::RequestParams # A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal). sig { returns(Integer) } def amount; end @@ -87,7 +87,7 @@ module Stripe sig { params(amount: Integer, currency: String).void } def initialize(amount: nil, currency: nil); end end - class SupportAddress < Stripe::RequestParams + class SupportAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -216,8 +216,8 @@ module Stripe url: nil ); end end - class Capabilities < Stripe::RequestParams - class AcssDebitPayments < Stripe::RequestParams + class Capabilities < ::Stripe::RequestParams + class AcssDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -226,7 +226,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class AffirmPayments < Stripe::RequestParams + class AffirmPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -235,7 +235,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class AfterpayClearpayPayments < Stripe::RequestParams + class AfterpayClearpayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -244,7 +244,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class AlmaPayments < Stripe::RequestParams + class AlmaPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -253,7 +253,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class AmazonPayPayments < Stripe::RequestParams + class AmazonPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -262,7 +262,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class AuBecsDebitPayments < Stripe::RequestParams + class AuBecsDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -271,7 +271,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BacsDebitPayments < Stripe::RequestParams + class BacsDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -280,7 +280,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BancontactPayments < Stripe::RequestParams + class BancontactPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -289,7 +289,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BankTransferPayments < Stripe::RequestParams + class BankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -298,7 +298,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BilliePayments < Stripe::RequestParams + class BilliePayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -307,7 +307,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BlikPayments < Stripe::RequestParams + class BlikPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -316,7 +316,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class BoletoPayments < Stripe::RequestParams + class BoletoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -325,7 +325,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class CardIssuing < Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -334,7 +334,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class CardPayments < Stripe::RequestParams + class CardPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -343,7 +343,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class CartesBancairesPayments < Stripe::RequestParams + class CartesBancairesPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -352,7 +352,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class CashappPayments < Stripe::RequestParams + class CashappPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -361,7 +361,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class CryptoPayments < Stripe::RequestParams + class CryptoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -370,7 +370,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class EpsPayments < Stripe::RequestParams + class EpsPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -379,7 +379,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class FpxPayments < Stripe::RequestParams + class FpxPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -388,7 +388,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class GbBankTransferPayments < Stripe::RequestParams + class GbBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -397,7 +397,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class GiropayPayments < Stripe::RequestParams + class GiropayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -406,7 +406,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class GrabpayPayments < Stripe::RequestParams + class GrabpayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -415,7 +415,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class IdealPayments < Stripe::RequestParams + class IdealPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -424,7 +424,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class IndiaInternationalPayments < Stripe::RequestParams + class IndiaInternationalPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -433,7 +433,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class JcbPayments < Stripe::RequestParams + class JcbPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -442,7 +442,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class JpBankTransferPayments < Stripe::RequestParams + class JpBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -451,7 +451,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class KakaoPayPayments < Stripe::RequestParams + class KakaoPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -460,7 +460,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class KlarnaPayments < Stripe::RequestParams + class KlarnaPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -469,7 +469,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class KonbiniPayments < Stripe::RequestParams + class KonbiniPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -478,7 +478,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class KrCardPayments < Stripe::RequestParams + class KrCardPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -487,7 +487,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class LegacyPayments < Stripe::RequestParams + class LegacyPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -496,7 +496,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class LinkPayments < Stripe::RequestParams + class LinkPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -505,7 +505,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class MbWayPayments < Stripe::RequestParams + class MbWayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -514,7 +514,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class MobilepayPayments < Stripe::RequestParams + class MobilepayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -523,7 +523,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class MultibancoPayments < Stripe::RequestParams + class MultibancoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -532,7 +532,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class MxBankTransferPayments < Stripe::RequestParams + class MxBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -541,7 +541,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class NaverPayPayments < Stripe::RequestParams + class NaverPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -550,7 +550,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class NzBankAccountBecsDebitPayments < Stripe::RequestParams + class NzBankAccountBecsDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -559,7 +559,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class OxxoPayments < Stripe::RequestParams + class OxxoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -568,7 +568,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class P24Payments < Stripe::RequestParams + class P24Payments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -577,7 +577,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class PayByBankPayments < Stripe::RequestParams + class PayByBankPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -586,7 +586,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class PaycoPayments < Stripe::RequestParams + class PaycoPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -595,7 +595,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class PaynowPayments < Stripe::RequestParams + class PaynowPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -604,7 +604,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class PixPayments < Stripe::RequestParams + class PixPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -613,7 +613,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class PromptpayPayments < Stripe::RequestParams + class PromptpayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -622,7 +622,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class RevolutPayPayments < Stripe::RequestParams + class RevolutPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -631,7 +631,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SamsungPayPayments < Stripe::RequestParams + class SamsungPayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -640,7 +640,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SatispayPayments < Stripe::RequestParams + class SatispayPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -649,7 +649,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SepaBankTransferPayments < Stripe::RequestParams + class SepaBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -658,7 +658,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SepaDebitPayments < Stripe::RequestParams + class SepaDebitPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -667,7 +667,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SofortPayments < Stripe::RequestParams + class SofortPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -676,7 +676,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class SwishPayments < Stripe::RequestParams + class SwishPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -685,7 +685,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class TaxReportingUs1099K < Stripe::RequestParams + class TaxReportingUs1099K < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -694,7 +694,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class TaxReportingUs1099Misc < Stripe::RequestParams + class TaxReportingUs1099Misc < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -703,7 +703,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class Transfers < Stripe::RequestParams + class Transfers < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -712,7 +712,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class Treasury < Stripe::RequestParams + class Treasury < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -721,7 +721,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class TwintPayments < Stripe::RequestParams + class TwintPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -730,7 +730,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class UsBankAccountAchPayments < Stripe::RequestParams + class UsBankAccountAchPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -739,7 +739,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class UsBankTransferPayments < Stripe::RequestParams + class UsBankTransferPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -748,7 +748,7 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end - class ZipPayments < Stripe::RequestParams + class ZipPayments < ::Stripe::RequestParams # Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. sig { returns(T.nilable(T::Boolean)) } def requested; end @@ -1243,7 +1243,7 @@ module Stripe zip_payments: nil ); end end - class Card < Stripe::RequestParams + class Card < ::Stripe::RequestParams # Attribute for param field object sig { returns(String) } def object; end @@ -1342,7 +1342,7 @@ module Stripe default_for_currency: nil ); end end - class CardToken < Stripe::RequestParams + class CardToken < ::Stripe::RequestParams # Attribute for param field object sig { returns(String) } def object; end @@ -1361,8 +1361,8 @@ module Stripe sig { params(object: String, currency: T.nilable(String), token: String).void } def initialize(object: nil, currency: nil, token: nil); end end - class Company < Stripe::RequestParams - class Address < Stripe::RequestParams + class Company < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -1405,7 +1405,7 @@ module Stripe state: nil ); end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -1454,7 +1454,7 @@ module Stripe town: nil ); end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -1503,7 +1503,7 @@ module Stripe town: nil ); end end - class DirectorshipDeclaration < Stripe::RequestParams + class DirectorshipDeclaration < ::Stripe::RequestParams # The Unix timestamp marking when the directorship declaration attestation was made. sig { returns(T.nilable(Integer)) } def date; end @@ -1524,7 +1524,7 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end - class OwnershipDeclaration < Stripe::RequestParams + class OwnershipDeclaration < ::Stripe::RequestParams # The Unix timestamp marking when the beneficial owner attestation was made. sig { returns(T.nilable(Integer)) } def date; end @@ -1545,7 +1545,7 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end - class RegistrationDate < Stripe::RequestParams + class RegistrationDate < ::Stripe::RequestParams # The day of registration, between 1 and 31. sig { returns(Integer) } def day; end @@ -1564,8 +1564,29 @@ module Stripe sig { params(day: Integer, month: Integer, year: Integer).void } def initialize(day: nil, month: nil, year: nil); end end - class Verification < Stripe::RequestParams - class Document < Stripe::RequestParams + class RepresentativeDeclaration < ::Stripe::RequestParams + # The Unix timestamp marking when the representative declaration attestation was made. + sig { returns(T.nilable(Integer)) } + def date; end + sig { params(_date: T.nilable(Integer)).returns(T.nilable(Integer)) } + def date=(_date); end + # The IP address from which the representative declaration attestation was made. + sig { returns(T.nilable(String)) } + def ip; end + sig { params(_ip: T.nilable(String)).returns(T.nilable(String)) } + def ip=(_ip); end + # The user agent of the browser from which the representative declaration attestation was made. + sig { returns(T.nilable(String)) } + def user_agent; end + sig { params(_user_agent: T.nilable(String)).returns(T.nilable(String)) } + def user_agent=(_user_agent); end + sig { + params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void + } + def initialize(date: nil, ip: nil, user_agent: nil); end + end + class Verification < ::Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -1690,6 +1711,13 @@ module Stripe def registration_number; end sig { params(_registration_number: T.nilable(String)).returns(T.nilable(String)) } def registration_number=(_registration_number); end + # This hash is used to attest that the representative is authorized to act as the representative of their legal entity. + sig { returns(T.nilable(AccountUpdateParams::Company::RepresentativeDeclaration)) } + def representative_declaration; end + sig { + params(_representative_declaration: T.nilable(AccountUpdateParams::Company::RepresentativeDeclaration)).returns(T.nilable(AccountUpdateParams::Company::RepresentativeDeclaration)) + } + def representative_declaration=(_representative_declaration); end # The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value. sig { returns(T.nilable(T.any(String, String))) } def structure; end @@ -1720,7 +1748,7 @@ module Stripe } def verification=(_verification); end sig { - params(address: T.nilable(AccountUpdateParams::Company::Address), address_kana: T.nilable(AccountUpdateParams::Company::AddressKana), address_kanji: T.nilable(AccountUpdateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(AccountUpdateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(AccountUpdateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, AccountUpdateParams::Company::RegistrationDate)), registration_number: T.nilable(String), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(AccountUpdateParams::Company::Verification)).void + params(address: T.nilable(AccountUpdateParams::Company::Address), address_kana: T.nilable(AccountUpdateParams::Company::AddressKana), address_kanji: T.nilable(AccountUpdateParams::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(AccountUpdateParams::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(AccountUpdateParams::Company::OwnershipDeclaration), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, AccountUpdateParams::Company::RegistrationDate)), registration_number: T.nilable(String), representative_declaration: T.nilable(AccountUpdateParams::Company::RepresentativeDeclaration), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(AccountUpdateParams::Company::Verification)).void } def initialize( address: nil, @@ -1740,6 +1768,7 @@ module Stripe phone: nil, registration_date: nil, registration_number: nil, + representative_declaration: nil, structure: nil, tax_id: nil, tax_id_registrar: nil, @@ -1747,8 +1776,8 @@ module Stripe verification: nil ); end end - class Documents < Stripe::RequestParams - class BankAccountOwnershipVerification < Stripe::RequestParams + class Documents < ::Stripe::RequestParams + class BankAccountOwnershipVerification < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -1757,7 +1786,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class CompanyLicense < Stripe::RequestParams + class CompanyLicense < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -1766,7 +1795,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class CompanyMemorandumOfAssociation < Stripe::RequestParams + class CompanyMemorandumOfAssociation < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -1775,7 +1804,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class CompanyMinisterialDecree < Stripe::RequestParams + class CompanyMinisterialDecree < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -1784,7 +1813,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class CompanyRegistrationVerification < Stripe::RequestParams + class CompanyRegistrationVerification < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -1793,7 +1822,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class CompanyTaxIdVerification < Stripe::RequestParams + class CompanyTaxIdVerification < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -1802,7 +1831,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class ProofOfAddress < Stripe::RequestParams + class ProofOfAddress < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -1811,7 +1840,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class ProofOfRegistration < Stripe::RequestParams + class ProofOfRegistration < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -1820,7 +1849,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class ProofOfUltimateBeneficialOwnership < Stripe::RequestParams + class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -1907,7 +1936,7 @@ module Stripe proof_of_ultimate_beneficial_ownership: nil ); end end - class Groups < Stripe::RequestParams + class Groups < ::Stripe::RequestParams # The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details. sig { returns(T.nilable(String)) } def payments_pricing; end @@ -1916,8 +1945,8 @@ module Stripe sig { params(payments_pricing: T.nilable(String)).void } def initialize(payments_pricing: nil); end end - class Individual < Stripe::RequestParams - class Address < Stripe::RequestParams + class Individual < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -1960,7 +1989,7 @@ module Stripe state: nil ); end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -2009,7 +2038,7 @@ module Stripe town: nil ); end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -2058,7 +2087,7 @@ module Stripe town: nil ); end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -2077,7 +2106,7 @@ module Stripe sig { params(day: Integer, month: Integer, year: Integer).void } def initialize(day: nil, month: nil, year: nil); end end - class RegisteredAddress < Stripe::RequestParams + class RegisteredAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -2120,7 +2149,7 @@ module Stripe state: nil ); end end - class Relationship < Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. sig { returns(T.nilable(T::Boolean)) } def director; end @@ -2159,8 +2188,8 @@ module Stripe title: nil ); end end - class Verification < Stripe::RequestParams - class AdditionalDocument < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class AdditionalDocument < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -2174,7 +2203,7 @@ module Stripe sig { params(back: T.nilable(String), front: T.nilable(String)).void } def initialize(back: nil, front: nil); end end - class Document < Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -2371,8 +2400,8 @@ module Stripe verification: nil ); end end - class Settings < Stripe::RequestParams - class BacsDebitPayments < Stripe::RequestParams + class Settings < ::Stripe::RequestParams + class BacsDebitPayments < ::Stripe::RequestParams # The Bacs Direct Debit Display Name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free. sig { returns(T.nilable(String)) } def display_name; end @@ -2381,7 +2410,7 @@ module Stripe sig { params(display_name: T.nilable(String)).void } def initialize(display_name: nil); end end - class Branding < Stripe::RequestParams + class Branding < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px. sig { returns(T.nilable(String)) } def icon; end @@ -2407,8 +2436,8 @@ module Stripe } def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil); end end - class CardIssuing < Stripe::RequestParams - class TosAcceptance < Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams + class TosAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted the service agreement. sig { returns(T.nilable(Integer)) } def date; end @@ -2441,8 +2470,8 @@ module Stripe } def initialize(tos_acceptance: nil); end end - class CardPayments < Stripe::RequestParams - class DeclineOn < Stripe::RequestParams + class CardPayments < ::Stripe::RequestParams + class DeclineOn < ::Stripe::RequestParams # Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification. sig { returns(T.nilable(T::Boolean)) } def avs_failure; end @@ -2494,7 +2523,7 @@ module Stripe statement_descriptor_prefix_kanji: nil ); end end - class Invoices < Stripe::RequestParams + class Invoices < ::Stripe::RequestParams # The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized. sig { returns(T.nilable(T.any(String, T::Array[String]))) } def default_account_tax_ids; end @@ -2512,7 +2541,7 @@ module Stripe } def initialize(default_account_tax_ids: nil, hosted_payment_method_save: nil); end end - class Payments < Stripe::RequestParams + class Payments < ::Stripe::RequestParams # The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a `statement_descriptor_prefix`, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the `statement_descriptor` text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the [account settings documentation](https://docs.stripe.com/get-started/account/statement-descriptors). sig { returns(T.nilable(String)) } def statement_descriptor; end @@ -2537,8 +2566,8 @@ module Stripe statement_descriptor_kanji: nil ); end end - class Payouts < Stripe::RequestParams - class Schedule < Stripe::RequestParams + class Payouts < ::Stripe::RequestParams + class Schedule < ::Stripe::RequestParams # The number of days charge funds are held before being paid out. May also be set to `minimum`, representing the lowest available value for the account country. Default is `minimum`. The `delay_days` parameter remains at the last configured value if `interval` is `manual`. [Learn more about controlling payout delay days](/connect/manage-payout-schedule). sig { returns(T.nilable(T.any(String, Integer))) } def delay_days; end @@ -2611,8 +2640,8 @@ module Stripe } def initialize(debit_negative_balances: nil, schedule: nil, statement_descriptor: nil); end end - class Treasury < Stripe::RequestParams - class TosAcceptance < Stripe::RequestParams + class Treasury < ::Stripe::RequestParams + class TosAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted the service agreement. sig { returns(T.nilable(Integer)) } def date; end @@ -2715,7 +2744,7 @@ module Stripe treasury: nil ); end end - class TosAcceptance < Stripe::RequestParams + class TosAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted their service agreement. sig { returns(T.nilable(Integer)) } def date; end diff --git a/rbi/stripe/params/apple_pay_domain_create_params.rbi b/rbi/stripe/params/apple_pay_domain_create_params.rbi index fec755dd..b937d521 100644 --- a/rbi/stripe/params/apple_pay_domain_create_params.rbi +++ b/rbi/stripe/params/apple_pay_domain_create_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class ApplePayDomainCreateParams < Stripe::RequestParams + class ApplePayDomainCreateParams < ::Stripe::RequestParams # Attribute for param field domain_name sig { returns(String) } def domain_name; end diff --git a/rbi/stripe/params/apple_pay_domain_delete_params.rbi b/rbi/stripe/params/apple_pay_domain_delete_params.rbi index 33d90e18..cb73df68 100644 --- a/rbi/stripe/params/apple_pay_domain_delete_params.rbi +++ b/rbi/stripe/params/apple_pay_domain_delete_params.rbi @@ -3,5 +3,5 @@ # typed: true module Stripe - class ApplePayDomainDeleteParams < Stripe::RequestParams; end + class ApplePayDomainDeleteParams < ::Stripe::RequestParams; end end \ No newline at end of file diff --git a/rbi/stripe/params/apple_pay_domain_list_params.rbi b/rbi/stripe/params/apple_pay_domain_list_params.rbi index f4fbdaf9..ae14e00c 100644 --- a/rbi/stripe/params/apple_pay_domain_list_params.rbi +++ b/rbi/stripe/params/apple_pay_domain_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class ApplePayDomainListParams < Stripe::RequestParams + class ApplePayDomainListParams < ::Stripe::RequestParams # Attribute for param field domain_name sig { returns(T.nilable(String)) } def domain_name; end diff --git a/rbi/stripe/params/apple_pay_domain_retrieve_params.rbi b/rbi/stripe/params/apple_pay_domain_retrieve_params.rbi index 28c2b395..f8c6f702 100644 --- a/rbi/stripe/params/apple_pay_domain_retrieve_params.rbi +++ b/rbi/stripe/params/apple_pay_domain_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class ApplePayDomainRetrieveParams < Stripe::RequestParams + class ApplePayDomainRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/application_fee_list_params.rbi b/rbi/stripe/params/application_fee_list_params.rbi index 54d27034..6e4b8436 100644 --- a/rbi/stripe/params/application_fee_list_params.rbi +++ b/rbi/stripe/params/application_fee_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class ApplicationFeeListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ApplicationFeeListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/application_fee_refund_create_params.rbi b/rbi/stripe/params/application_fee_refund_create_params.rbi index d4153dc5..1894a90f 100644 --- a/rbi/stripe/params/application_fee_refund_create_params.rbi +++ b/rbi/stripe/params/application_fee_refund_create_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class ApplicationFeeRefundCreateParams < Stripe::RequestParams + class ApplicationFeeRefundCreateParams < ::Stripe::RequestParams # A positive integer, in _cents (or local equivalent)_, representing how much of this fee to refund. Can refund only up to the remaining unrefunded amount of the fee. sig { returns(T.nilable(Integer)) } def amount; end diff --git a/rbi/stripe/params/application_fee_refund_list_params.rbi b/rbi/stripe/params/application_fee_refund_list_params.rbi index a0d0cb73..e6c2a5d6 100644 --- a/rbi/stripe/params/application_fee_refund_list_params.rbi +++ b/rbi/stripe/params/application_fee_refund_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class ApplicationFeeRefundListParams < Stripe::RequestParams + class ApplicationFeeRefundListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/application_fee_refund_retrieve_params.rbi b/rbi/stripe/params/application_fee_refund_retrieve_params.rbi index 23882bcf..03eafda2 100644 --- a/rbi/stripe/params/application_fee_refund_retrieve_params.rbi +++ b/rbi/stripe/params/application_fee_refund_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class ApplicationFeeRefundRetrieveParams < Stripe::RequestParams + class ApplicationFeeRefundRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/application_fee_refund_update_params.rbi b/rbi/stripe/params/application_fee_refund_update_params.rbi index b03b54b5..6e07b400 100644 --- a/rbi/stripe/params/application_fee_refund_update_params.rbi +++ b/rbi/stripe/params/application_fee_refund_update_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class ApplicationFeeRefundUpdateParams < Stripe::RequestParams + class ApplicationFeeRefundUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/application_fee_retrieve_params.rbi b/rbi/stripe/params/application_fee_retrieve_params.rbi index 8298834b..74350c84 100644 --- a/rbi/stripe/params/application_fee_retrieve_params.rbi +++ b/rbi/stripe/params/application_fee_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class ApplicationFeeRetrieveParams < Stripe::RequestParams + class ApplicationFeeRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/apps/secret_create_params.rbi b/rbi/stripe/params/apps/secret_create_params.rbi index 446ab530..bb8b99df 100644 --- a/rbi/stripe/params/apps/secret_create_params.rbi +++ b/rbi/stripe/params/apps/secret_create_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Apps - class SecretCreateParams < Stripe::RequestParams - class Scope < Stripe::RequestParams + class SecretCreateParams < ::Stripe::RequestParams + class Scope < ::Stripe::RequestParams # The secret scope type. sig { returns(String) } def type; end diff --git a/rbi/stripe/params/apps/secret_delete_where_params.rbi b/rbi/stripe/params/apps/secret_delete_where_params.rbi index 3efbca23..ec1796d3 100644 --- a/rbi/stripe/params/apps/secret_delete_where_params.rbi +++ b/rbi/stripe/params/apps/secret_delete_where_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Apps - class SecretDeleteWhereParams < Stripe::RequestParams - class Scope < Stripe::RequestParams + class SecretDeleteWhereParams < ::Stripe::RequestParams + class Scope < ::Stripe::RequestParams # The secret scope type. sig { returns(String) } def type; end diff --git a/rbi/stripe/params/apps/secret_find_params.rbi b/rbi/stripe/params/apps/secret_find_params.rbi index 7e0039af..569c8e1b 100644 --- a/rbi/stripe/params/apps/secret_find_params.rbi +++ b/rbi/stripe/params/apps/secret_find_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Apps - class SecretFindParams < Stripe::RequestParams - class Scope < Stripe::RequestParams + class SecretFindParams < ::Stripe::RequestParams + class Scope < ::Stripe::RequestParams # The secret scope type. sig { returns(String) } def type; end diff --git a/rbi/stripe/params/apps/secret_list_params.rbi b/rbi/stripe/params/apps/secret_list_params.rbi index ef5dbc51..2f23f7bf 100644 --- a/rbi/stripe/params/apps/secret_list_params.rbi +++ b/rbi/stripe/params/apps/secret_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Apps - class SecretListParams < Stripe::RequestParams - class Scope < Stripe::RequestParams + class SecretListParams < ::Stripe::RequestParams + class Scope < ::Stripe::RequestParams # The secret scope type. sig { returns(String) } def type; end diff --git a/rbi/stripe/params/balance_retrieve_params.rbi b/rbi/stripe/params/balance_retrieve_params.rbi index 3308dc5c..029fc05f 100644 --- a/rbi/stripe/params/balance_retrieve_params.rbi +++ b/rbi/stripe/params/balance_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class BalanceRetrieveParams < Stripe::RequestParams + class BalanceRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/balance_settings_retrieve_params.rbi b/rbi/stripe/params/balance_settings_retrieve_params.rbi index 20009e93..f77f3438 100644 --- a/rbi/stripe/params/balance_settings_retrieve_params.rbi +++ b/rbi/stripe/params/balance_settings_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class BalanceSettingsRetrieveParams < Stripe::RequestParams + class BalanceSettingsRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/balance_settings_update_params.rbi b/rbi/stripe/params/balance_settings_update_params.rbi index f8003361..09a49ef7 100644 --- a/rbi/stripe/params/balance_settings_update_params.rbi +++ b/rbi/stripe/params/balance_settings_update_params.rbi @@ -3,10 +3,10 @@ # typed: true module Stripe - class BalanceSettingsUpdateParams < Stripe::RequestParams - class Payments < Stripe::RequestParams - class Payouts < Stripe::RequestParams - class Schedule < Stripe::RequestParams + class BalanceSettingsUpdateParams < ::Stripe::RequestParams + class Payments < ::Stripe::RequestParams + class Payouts < ::Stripe::RequestParams + class Schedule < ::Stripe::RequestParams # How frequently available funds are paid out. One of: `daily`, `manual`, `weekly`, or `monthly`. Default is `daily`. sig { returns(T.nilable(String)) } def interval; end @@ -59,7 +59,7 @@ module Stripe statement_descriptor: nil ); end end - class SettlementTiming < Stripe::RequestParams + class SettlementTiming < ::Stripe::RequestParams # Change `delay_days` for this account, which determines the number of days charge funds are held before becoming available. The maximum value is 31. Passing an empty string to `delay_days_override` will return `delay_days` to the default, which is the lowest available value for the account. [Learn more about controlling delay days](/connect/manage-payout-schedule). sig { returns(T.nilable(T.any(String, Integer))) } def delay_days_override; end diff --git a/rbi/stripe/params/balance_transaction_list_params.rbi b/rbi/stripe/params/balance_transaction_list_params.rbi index c73a5106..2e836cf4 100644 --- a/rbi/stripe/params/balance_transaction_list_params.rbi +++ b/rbi/stripe/params/balance_transaction_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class BalanceTransactionListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class BalanceTransactionListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/balance_transaction_retrieve_params.rbi b/rbi/stripe/params/balance_transaction_retrieve_params.rbi index d7aeef8c..f12ba3bc 100644 --- a/rbi/stripe/params/balance_transaction_retrieve_params.rbi +++ b/rbi/stripe/params/balance_transaction_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class BalanceTransactionRetrieveParams < Stripe::RequestParams + class BalanceTransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/billing/alert_activate_params.rbi b/rbi/stripe/params/billing/alert_activate_params.rbi index e4368d2d..145230e4 100644 --- a/rbi/stripe/params/billing/alert_activate_params.rbi +++ b/rbi/stripe/params/billing/alert_activate_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Billing - class AlertActivateParams < Stripe::RequestParams + class AlertActivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/billing/alert_archive_params.rbi b/rbi/stripe/params/billing/alert_archive_params.rbi index e912e842..a6dab352 100644 --- a/rbi/stripe/params/billing/alert_archive_params.rbi +++ b/rbi/stripe/params/billing/alert_archive_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Billing - class AlertArchiveParams < Stripe::RequestParams + class AlertArchiveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/billing/alert_create_params.rbi b/rbi/stripe/params/billing/alert_create_params.rbi index 0fea3310..583a797f 100644 --- a/rbi/stripe/params/billing/alert_create_params.rbi +++ b/rbi/stripe/params/billing/alert_create_params.rbi @@ -4,9 +4,9 @@ # typed: true module Stripe module Billing - class AlertCreateParams < Stripe::RequestParams - class UsageThreshold < Stripe::RequestParams - class Filter < Stripe::RequestParams + class AlertCreateParams < ::Stripe::RequestParams + class UsageThreshold < ::Stripe::RequestParams + class Filter < ::Stripe::RequestParams # Limit the scope to this usage alert only to this customer. sig { returns(T.nilable(String)) } def customer; end diff --git a/rbi/stripe/params/billing/alert_deactivate_params.rbi b/rbi/stripe/params/billing/alert_deactivate_params.rbi index 873fe9f1..586c22e0 100644 --- a/rbi/stripe/params/billing/alert_deactivate_params.rbi +++ b/rbi/stripe/params/billing/alert_deactivate_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Billing - class AlertDeactivateParams < Stripe::RequestParams + class AlertDeactivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/billing/alert_list_params.rbi b/rbi/stripe/params/billing/alert_list_params.rbi index 6784d7a0..46952e14 100644 --- a/rbi/stripe/params/billing/alert_list_params.rbi +++ b/rbi/stripe/params/billing/alert_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Billing - class AlertListParams < Stripe::RequestParams + class AlertListParams < ::Stripe::RequestParams # Filter results to only include this type of alert. sig { returns(T.nilable(String)) } def alert_type; end diff --git a/rbi/stripe/params/billing/alert_retrieve_params.rbi b/rbi/stripe/params/billing/alert_retrieve_params.rbi index 4be80c5f..8bba44d1 100644 --- a/rbi/stripe/params/billing/alert_retrieve_params.rbi +++ b/rbi/stripe/params/billing/alert_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Billing - class AlertRetrieveParams < Stripe::RequestParams + class AlertRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/billing/credit_balance_summary_retrieve_params.rbi b/rbi/stripe/params/billing/credit_balance_summary_retrieve_params.rbi index 1fd1ac0a..1d41c387 100644 --- a/rbi/stripe/params/billing/credit_balance_summary_retrieve_params.rbi +++ b/rbi/stripe/params/billing/credit_balance_summary_retrieve_params.rbi @@ -4,10 +4,10 @@ # typed: true module Stripe module Billing - class CreditBalanceSummaryRetrieveParams < Stripe::RequestParams - class Filter < Stripe::RequestParams - class ApplicabilityScope < Stripe::RequestParams - class Price < Stripe::RequestParams + class CreditBalanceSummaryRetrieveParams < ::Stripe::RequestParams + class Filter < ::Stripe::RequestParams + class ApplicabilityScope < ::Stripe::RequestParams + class Price < ::Stripe::RequestParams # The price ID this credit grant should apply to. sig { returns(String) } def id; end diff --git a/rbi/stripe/params/billing/credit_balance_transaction_list_params.rbi b/rbi/stripe/params/billing/credit_balance_transaction_list_params.rbi index a6599eef..a9d0a585 100644 --- a/rbi/stripe/params/billing/credit_balance_transaction_list_params.rbi +++ b/rbi/stripe/params/billing/credit_balance_transaction_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Billing - class CreditBalanceTransactionListParams < Stripe::RequestParams + class CreditBalanceTransactionListParams < ::Stripe::RequestParams # The credit grant for which to fetch credit balance transactions. sig { returns(T.nilable(String)) } def credit_grant; end diff --git a/rbi/stripe/params/billing/credit_balance_transaction_retrieve_params.rbi b/rbi/stripe/params/billing/credit_balance_transaction_retrieve_params.rbi index 103d4dcd..48aac633 100644 --- a/rbi/stripe/params/billing/credit_balance_transaction_retrieve_params.rbi +++ b/rbi/stripe/params/billing/credit_balance_transaction_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Billing - class CreditBalanceTransactionRetrieveParams < Stripe::RequestParams + class CreditBalanceTransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/billing/credit_grant_create_params.rbi b/rbi/stripe/params/billing/credit_grant_create_params.rbi index 1d4cbd2e..a90003b6 100644 --- a/rbi/stripe/params/billing/credit_grant_create_params.rbi +++ b/rbi/stripe/params/billing/credit_grant_create_params.rbi @@ -4,9 +4,9 @@ # typed: true module Stripe module Billing - class CreditGrantCreateParams < Stripe::RequestParams - class Amount < Stripe::RequestParams - class Monetary < Stripe::RequestParams + class CreditGrantCreateParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + class Monetary < ::Stripe::RequestParams # Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `value` parameter. sig { returns(String) } def currency; end @@ -37,9 +37,9 @@ module Stripe } def initialize(monetary: nil, type: nil); end end - class ApplicabilityConfig < Stripe::RequestParams - class Scope < Stripe::RequestParams - class Price < Stripe::RequestParams + class ApplicabilityConfig < ::Stripe::RequestParams + class Scope < ::Stripe::RequestParams + class Price < ::Stripe::RequestParams # The price ID this credit grant should apply to. sig { returns(String) } def id; end @@ -91,10 +91,10 @@ module Stripe params(_applicability_config: Billing::CreditGrantCreateParams::ApplicabilityConfig).returns(Billing::CreditGrantCreateParams::ApplicabilityConfig) } def applicability_config=(_applicability_config); end - # The category of this credit grant. - sig { returns(String) } + # The category of this credit grant. It defaults to `paid` if not specified. + sig { returns(T.nilable(String)) } def category; end - sig { params(_category: String).returns(String) } + sig { params(_category: T.nilable(String)).returns(T.nilable(String)) } def category=(_category); end # ID of the customer to receive the billing credits. sig { returns(String) } @@ -134,7 +134,7 @@ module Stripe sig { params(_priority: T.nilable(Integer)).returns(T.nilable(Integer)) } def priority=(_priority); end sig { - params(amount: Billing::CreditGrantCreateParams::Amount, applicability_config: Billing::CreditGrantCreateParams::ApplicabilityConfig, category: String, customer: String, effective_at: T.nilable(Integer), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), metadata: T.nilable(T::Hash[String, String]), name: T.nilable(String), priority: T.nilable(Integer)).void + params(amount: Billing::CreditGrantCreateParams::Amount, applicability_config: Billing::CreditGrantCreateParams::ApplicabilityConfig, category: T.nilable(String), customer: String, effective_at: T.nilable(Integer), expand: T.nilable(T::Array[String]), expires_at: T.nilable(Integer), metadata: T.nilable(T::Hash[String, String]), name: T.nilable(String), priority: T.nilable(Integer)).void } def initialize( amount: nil, diff --git a/rbi/stripe/params/billing/credit_grant_expire_params.rbi b/rbi/stripe/params/billing/credit_grant_expire_params.rbi index 7edec2a3..4375c92c 100644 --- a/rbi/stripe/params/billing/credit_grant_expire_params.rbi +++ b/rbi/stripe/params/billing/credit_grant_expire_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Billing - class CreditGrantExpireParams < Stripe::RequestParams + class CreditGrantExpireParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/billing/credit_grant_list_params.rbi b/rbi/stripe/params/billing/credit_grant_list_params.rbi index 809b3479..2958814a 100644 --- a/rbi/stripe/params/billing/credit_grant_list_params.rbi +++ b/rbi/stripe/params/billing/credit_grant_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Billing - class CreditGrantListParams < Stripe::RequestParams + class CreditGrantListParams < ::Stripe::RequestParams # Only return credit grants for this customer. sig { returns(T.nilable(String)) } def customer; end diff --git a/rbi/stripe/params/billing/credit_grant_retrieve_params.rbi b/rbi/stripe/params/billing/credit_grant_retrieve_params.rbi index a4b80fb8..1b75f603 100644 --- a/rbi/stripe/params/billing/credit_grant_retrieve_params.rbi +++ b/rbi/stripe/params/billing/credit_grant_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Billing - class CreditGrantRetrieveParams < Stripe::RequestParams + class CreditGrantRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/billing/credit_grant_update_params.rbi b/rbi/stripe/params/billing/credit_grant_update_params.rbi index 0abb1aa8..4c037268 100644 --- a/rbi/stripe/params/billing/credit_grant_update_params.rbi +++ b/rbi/stripe/params/billing/credit_grant_update_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Billing - class CreditGrantUpdateParams < Stripe::RequestParams + class CreditGrantUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/billing/credit_grant_void_grant_params.rbi b/rbi/stripe/params/billing/credit_grant_void_grant_params.rbi index 86934733..1c04eb8a 100644 --- a/rbi/stripe/params/billing/credit_grant_void_grant_params.rbi +++ b/rbi/stripe/params/billing/credit_grant_void_grant_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Billing - class CreditGrantVoidGrantParams < Stripe::RequestParams + class CreditGrantVoidGrantParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/billing/meter_create_params.rbi b/rbi/stripe/params/billing/meter_create_params.rbi index 77294e3a..e825800d 100644 --- a/rbi/stripe/params/billing/meter_create_params.rbi +++ b/rbi/stripe/params/billing/meter_create_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Billing - class MeterCreateParams < Stripe::RequestParams - class CustomerMapping < Stripe::RequestParams + class MeterCreateParams < ::Stripe::RequestParams + class CustomerMapping < ::Stripe::RequestParams # The key in the meter event payload to use for mapping the event to a customer. sig { returns(String) } def event_payload_key; end @@ -19,7 +19,7 @@ module Stripe sig { params(event_payload_key: String, type: String).void } def initialize(event_payload_key: nil, type: nil); end end - class DefaultAggregation < Stripe::RequestParams + class DefaultAggregation < ::Stripe::RequestParams # Specifies how events are aggregated. Allowed values are `count` to count the number of events, `sum` to sum each event's value and `last` to take the last event's value in the window. sig { returns(String) } def formula; end @@ -28,7 +28,7 @@ module Stripe sig { params(formula: String).void } def initialize(formula: nil); end end - class ValueSettings < Stripe::RequestParams + class ValueSettings < ::Stripe::RequestParams # The key in the usage event payload to use as the value for this meter. For example, if the event payload contains usage on a `bytes_used` field, then set the event_payload_key to "bytes_used". sig { returns(String) } def event_payload_key; end diff --git a/rbi/stripe/params/billing/meter_deactivate_params.rbi b/rbi/stripe/params/billing/meter_deactivate_params.rbi index 7af29aeb..7c6f144a 100644 --- a/rbi/stripe/params/billing/meter_deactivate_params.rbi +++ b/rbi/stripe/params/billing/meter_deactivate_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Billing - class MeterDeactivateParams < Stripe::RequestParams + class MeterDeactivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/billing/meter_event_adjustment_create_params.rbi b/rbi/stripe/params/billing/meter_event_adjustment_create_params.rbi index 8b7eda33..fb05bc03 100644 --- a/rbi/stripe/params/billing/meter_event_adjustment_create_params.rbi +++ b/rbi/stripe/params/billing/meter_event_adjustment_create_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Billing - class MeterEventAdjustmentCreateParams < Stripe::RequestParams - class Cancel < Stripe::RequestParams + class MeterEventAdjustmentCreateParams < ::Stripe::RequestParams + class Cancel < ::Stripe::RequestParams # Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them. sig { returns(T.nilable(String)) } def identifier; end diff --git a/rbi/stripe/params/billing/meter_event_create_params.rbi b/rbi/stripe/params/billing/meter_event_create_params.rbi index 4de6124f..14e136b9 100644 --- a/rbi/stripe/params/billing/meter_event_create_params.rbi +++ b/rbi/stripe/params/billing/meter_event_create_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Billing - class MeterEventCreateParams < Stripe::RequestParams + class MeterEventCreateParams < ::Stripe::RequestParams # The name of the meter event. Corresponds with the `event_name` field on a meter. sig { returns(String) } def event_name; end diff --git a/rbi/stripe/params/billing/meter_event_summary_list_params.rbi b/rbi/stripe/params/billing/meter_event_summary_list_params.rbi index eff04b1c..803389a4 100644 --- a/rbi/stripe/params/billing/meter_event_summary_list_params.rbi +++ b/rbi/stripe/params/billing/meter_event_summary_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Billing - class MeterEventSummaryListParams < Stripe::RequestParams + class MeterEventSummaryListParams < ::Stripe::RequestParams # The customer for which to fetch event summaries. sig { returns(String) } def customer; end diff --git a/rbi/stripe/params/billing/meter_list_params.rbi b/rbi/stripe/params/billing/meter_list_params.rbi index 4695516d..23e32cf7 100644 --- a/rbi/stripe/params/billing/meter_list_params.rbi +++ b/rbi/stripe/params/billing/meter_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Billing - class MeterListParams < Stripe::RequestParams + class MeterListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/billing/meter_reactivate_params.rbi b/rbi/stripe/params/billing/meter_reactivate_params.rbi index d604c593..a016f911 100644 --- a/rbi/stripe/params/billing/meter_reactivate_params.rbi +++ b/rbi/stripe/params/billing/meter_reactivate_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Billing - class MeterReactivateParams < Stripe::RequestParams + class MeterReactivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/billing/meter_retrieve_params.rbi b/rbi/stripe/params/billing/meter_retrieve_params.rbi index 0ff323ad..c9503060 100644 --- a/rbi/stripe/params/billing/meter_retrieve_params.rbi +++ b/rbi/stripe/params/billing/meter_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Billing - class MeterRetrieveParams < Stripe::RequestParams + class MeterRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/billing/meter_update_params.rbi b/rbi/stripe/params/billing/meter_update_params.rbi index 5245622d..dbbea837 100644 --- a/rbi/stripe/params/billing/meter_update_params.rbi +++ b/rbi/stripe/params/billing/meter_update_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Billing - class MeterUpdateParams < Stripe::RequestParams + class MeterUpdateParams < ::Stripe::RequestParams # The meter’s name. Not visible to the customer. sig { returns(T.nilable(String)) } def display_name; end diff --git a/rbi/stripe/params/billing_portal/configuration_create_params.rbi b/rbi/stripe/params/billing_portal/configuration_create_params.rbi index 2e4628c2..2910190e 100644 --- a/rbi/stripe/params/billing_portal/configuration_create_params.rbi +++ b/rbi/stripe/params/billing_portal/configuration_create_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module BillingPortal - class ConfigurationCreateParams < Stripe::RequestParams - class BusinessProfile < Stripe::RequestParams + class ConfigurationCreateParams < ::Stripe::RequestParams + class BusinessProfile < ::Stripe::RequestParams # The messaging shown to customers in the portal. sig { returns(T.nilable(String)) } def headline; end @@ -26,8 +26,8 @@ module Stripe } def initialize(headline: nil, privacy_policy_url: nil, terms_of_service_url: nil); end end - class Features < Stripe::RequestParams - class CustomerUpdate < Stripe::RequestParams + class Features < ::Stripe::RequestParams + class CustomerUpdate < ::Stripe::RequestParams # The types of customer updates that are supported. When empty, customers are not updateable. sig { returns(T.nilable(T.any(String, T::Array[String]))) } def allowed_updates; end @@ -45,7 +45,7 @@ module Stripe } def initialize(allowed_updates: nil, enabled: nil); end end - class InvoiceHistory < Stripe::RequestParams + class InvoiceHistory < ::Stripe::RequestParams # Whether the feature is enabled. sig { returns(T::Boolean) } def enabled; end @@ -54,17 +54,24 @@ module Stripe sig { params(enabled: T::Boolean).void } def initialize(enabled: nil); end end - class PaymentMethodUpdate < Stripe::RequestParams + class PaymentMethodUpdate < ::Stripe::RequestParams # Whether the feature is enabled. sig { returns(T::Boolean) } def enabled; end sig { params(_enabled: T::Boolean).returns(T::Boolean) } def enabled=(_enabled); end - sig { params(enabled: T::Boolean).void } - def initialize(enabled: nil); end + # The [Payment Method Configuration](/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set or set to an empty string, the default payment method configuration is used. + sig { returns(T.nilable(String)) } + def payment_method_configuration; end + sig { + params(_payment_method_configuration: T.nilable(String)).returns(T.nilable(String)) + } + def payment_method_configuration=(_payment_method_configuration); end + sig { params(enabled: T::Boolean, payment_method_configuration: T.nilable(String)).void } + def initialize(enabled: nil, payment_method_configuration: nil); end end - class SubscriptionCancel < Stripe::RequestParams - class CancellationReason < Stripe::RequestParams + class SubscriptionCancel < ::Stripe::RequestParams + class CancellationReason < ::Stripe::RequestParams # Whether the feature is enabled. sig { returns(T::Boolean) } def enabled; end @@ -114,9 +121,9 @@ module Stripe proration_behavior: nil ); end end - class SubscriptionUpdate < Stripe::RequestParams - class Product < Stripe::RequestParams - class AdjustableQuantity < Stripe::RequestParams + class SubscriptionUpdate < ::Stripe::RequestParams + class Product < ::Stripe::RequestParams + class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative integer. sig { returns(T::Boolean) } def enabled; end @@ -161,8 +168,8 @@ module Stripe } def initialize(adjustable_quantity: nil, prices: nil, product: nil); end end - class ScheduleAtPeriodEnd < Stripe::RequestParams - class Condition < Stripe::RequestParams + class ScheduleAtPeriodEnd < ::Stripe::RequestParams + class Condition < ::Stripe::RequestParams # The type of condition. sig { returns(String) } def type; end @@ -293,7 +300,7 @@ module Stripe subscription_update: nil ); end end - class LoginPage < Stripe::RequestParams + class LoginPage < ::Stripe::RequestParams # Set to `true` to generate a shareable URL [`login_page.url`](https://stripe.com/docs/api/customer_portal/configuration#portal_configuration_object-login_page-url) that will take your customers to a hosted login page for the customer portal. sig { returns(T::Boolean) } def enabled; end diff --git a/rbi/stripe/params/billing_portal/configuration_list_params.rbi b/rbi/stripe/params/billing_portal/configuration_list_params.rbi index 5fb6e747..145d6a84 100644 --- a/rbi/stripe/params/billing_portal/configuration_list_params.rbi +++ b/rbi/stripe/params/billing_portal/configuration_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module BillingPortal - class ConfigurationListParams < Stripe::RequestParams + class ConfigurationListParams < ::Stripe::RequestParams # Only return configurations that are active or inactive (e.g., pass `true` to only list active configurations). sig { returns(T.nilable(T::Boolean)) } def active; end diff --git a/rbi/stripe/params/billing_portal/configuration_retrieve_params.rbi b/rbi/stripe/params/billing_portal/configuration_retrieve_params.rbi index 3ff6dbcc..1a4389bd 100644 --- a/rbi/stripe/params/billing_portal/configuration_retrieve_params.rbi +++ b/rbi/stripe/params/billing_portal/configuration_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module BillingPortal - class ConfigurationRetrieveParams < Stripe::RequestParams + class ConfigurationRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/billing_portal/configuration_update_params.rbi b/rbi/stripe/params/billing_portal/configuration_update_params.rbi index 84e6e20e..41b3b7f5 100644 --- a/rbi/stripe/params/billing_portal/configuration_update_params.rbi +++ b/rbi/stripe/params/billing_portal/configuration_update_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module BillingPortal - class ConfigurationUpdateParams < Stripe::RequestParams - class BusinessProfile < Stripe::RequestParams + class ConfigurationUpdateParams < ::Stripe::RequestParams + class BusinessProfile < ::Stripe::RequestParams # The messaging shown to customers in the portal. sig { returns(T.nilable(String)) } def headline; end @@ -26,8 +26,8 @@ module Stripe } def initialize(headline: nil, privacy_policy_url: nil, terms_of_service_url: nil); end end - class Features < Stripe::RequestParams - class CustomerUpdate < Stripe::RequestParams + class Features < ::Stripe::RequestParams + class CustomerUpdate < ::Stripe::RequestParams # The types of customer updates that are supported. When empty, customers are not updateable. sig { returns(T.nilable(T.any(String, T::Array[String]))) } def allowed_updates; end @@ -45,7 +45,7 @@ module Stripe } def initialize(allowed_updates: nil, enabled: nil); end end - class InvoiceHistory < Stripe::RequestParams + class InvoiceHistory < ::Stripe::RequestParams # Whether the feature is enabled. sig { returns(T::Boolean) } def enabled; end @@ -54,17 +54,24 @@ module Stripe sig { params(enabled: T::Boolean).void } def initialize(enabled: nil); end end - class PaymentMethodUpdate < Stripe::RequestParams + class PaymentMethodUpdate < ::Stripe::RequestParams # Whether the feature is enabled. sig { returns(T::Boolean) } def enabled; end sig { params(_enabled: T::Boolean).returns(T::Boolean) } def enabled=(_enabled); end - sig { params(enabled: T::Boolean).void } - def initialize(enabled: nil); end + # The [Payment Method Configuration](/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set or set to an empty string, the default payment method configuration is used. + sig { returns(T.nilable(String)) } + def payment_method_configuration; end + sig { + params(_payment_method_configuration: T.nilable(String)).returns(T.nilable(String)) + } + def payment_method_configuration=(_payment_method_configuration); end + sig { params(enabled: T::Boolean, payment_method_configuration: T.nilable(String)).void } + def initialize(enabled: nil, payment_method_configuration: nil); end end - class SubscriptionCancel < Stripe::RequestParams - class CancellationReason < Stripe::RequestParams + class SubscriptionCancel < ::Stripe::RequestParams + class CancellationReason < ::Stripe::RequestParams # Whether the feature is enabled. sig { returns(T::Boolean) } def enabled; end @@ -116,9 +123,9 @@ module Stripe proration_behavior: nil ); end end - class SubscriptionUpdate < Stripe::RequestParams - class Product < Stripe::RequestParams - class AdjustableQuantity < Stripe::RequestParams + class SubscriptionUpdate < ::Stripe::RequestParams + class Product < ::Stripe::RequestParams + class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative integer. sig { returns(T::Boolean) } def enabled; end @@ -163,8 +170,8 @@ module Stripe } def initialize(adjustable_quantity: nil, prices: nil, product: nil); end end - class ScheduleAtPeriodEnd < Stripe::RequestParams - class Condition < Stripe::RequestParams + class ScheduleAtPeriodEnd < ::Stripe::RequestParams + class Condition < ::Stripe::RequestParams # The type of condition. sig { returns(String) } def type; end @@ -295,7 +302,7 @@ module Stripe subscription_update: nil ); end end - class LoginPage < Stripe::RequestParams + class LoginPage < ::Stripe::RequestParams # Set to `true` to generate a shareable URL [`login_page.url`](https://stripe.com/docs/api/customer_portal/configuration#portal_configuration_object-login_page-url) that will take your customers to a hosted login page for the customer portal. # # Set to `false` to deactivate the `login_page.url`. diff --git a/rbi/stripe/params/billing_portal/session_create_params.rbi b/rbi/stripe/params/billing_portal/session_create_params.rbi index 999ed80a..f18d4346 100644 --- a/rbi/stripe/params/billing_portal/session_create_params.rbi +++ b/rbi/stripe/params/billing_portal/session_create_params.rbi @@ -4,10 +4,10 @@ # typed: true module Stripe module BillingPortal - class SessionCreateParams < Stripe::RequestParams - class FlowData < Stripe::RequestParams - class AfterCompletion < Stripe::RequestParams - class HostedConfirmation < Stripe::RequestParams + class SessionCreateParams < ::Stripe::RequestParams + class FlowData < ::Stripe::RequestParams + class AfterCompletion < ::Stripe::RequestParams + class HostedConfirmation < ::Stripe::RequestParams # A custom message to display to the customer after the flow is completed. sig { returns(T.nilable(String)) } def custom_message; end @@ -16,7 +16,7 @@ module Stripe sig { params(custom_message: T.nilable(String)).void } def initialize(custom_message: nil); end end - class Redirect < Stripe::RequestParams + class Redirect < ::Stripe::RequestParams # The URL the customer will be redirected to after the flow is completed. sig { returns(String) } def return_url; end @@ -53,9 +53,9 @@ module Stripe } def initialize(hosted_confirmation: nil, redirect: nil, type: nil); end end - class SubscriptionCancel < Stripe::RequestParams - class Retention < Stripe::RequestParams - class CouponOffer < Stripe::RequestParams + class SubscriptionCancel < ::Stripe::RequestParams + class Retention < ::Stripe::RequestParams + class CouponOffer < ::Stripe::RequestParams # The ID of the coupon to be offered. sig { returns(String) } def coupon; end @@ -102,7 +102,7 @@ module Stripe } def initialize(retention: nil, subscription: nil); end end - class SubscriptionUpdate < Stripe::RequestParams + class SubscriptionUpdate < ::Stripe::RequestParams # The ID of the subscription to be updated. sig { returns(String) } def subscription; end @@ -111,8 +111,8 @@ module Stripe sig { params(subscription: String).void } def initialize(subscription: nil); end end - class SubscriptionUpdateConfirm < Stripe::RequestParams - class Discount < Stripe::RequestParams + class SubscriptionUpdateConfirm < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # The ID of the coupon to apply to this subscription update. sig { returns(T.nilable(String)) } def coupon; end @@ -126,7 +126,7 @@ module Stripe sig { params(coupon: T.nilable(String), promotion_code: T.nilable(String)).void } def initialize(coupon: nil, promotion_code: nil); end end - class Item < Stripe::RequestParams + class Item < ::Stripe::RequestParams # The ID of the [subscription item](https://stripe.com/docs/api/subscriptions/object#subscription_object-items-data-id) to be updated. sig { returns(String) } def id; end diff --git a/rbi/stripe/params/charge_capture_params.rbi b/rbi/stripe/params/charge_capture_params.rbi index 5d987435..1a31db1a 100644 --- a/rbi/stripe/params/charge_capture_params.rbi +++ b/rbi/stripe/params/charge_capture_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class ChargeCaptureParams < Stripe::RequestParams - class TransferData < Stripe::RequestParams + class ChargeCaptureParams < ::Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account. sig { returns(T.nilable(Integer)) } def amount; end diff --git a/rbi/stripe/params/charge_create_params.rbi b/rbi/stripe/params/charge_create_params.rbi index 3361b0ce..0a731bfc 100644 --- a/rbi/stripe/params/charge_create_params.rbi +++ b/rbi/stripe/params/charge_create_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class ChargeCreateParams < Stripe::RequestParams - class Destination < Stripe::RequestParams + class ChargeCreateParams < ::Stripe::RequestParams + class Destination < ::Stripe::RequestParams # ID of an existing, connected Stripe account. sig { returns(String) } def account; end @@ -18,7 +18,7 @@ module Stripe sig { params(account: String, amount: T.nilable(Integer)).void } def initialize(account: nil, amount: nil); end end - class RadarOptions < Stripe::RequestParams + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -27,8 +27,8 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -103,7 +103,7 @@ module Stripe } def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account. sig { returns(T.nilable(Integer)) } def amount; end diff --git a/rbi/stripe/params/charge_list_params.rbi b/rbi/stripe/params/charge_list_params.rbi index 184cfb9a..e6fa66be 100644 --- a/rbi/stripe/params/charge_list_params.rbi +++ b/rbi/stripe/params/charge_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class ChargeListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ChargeListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/charge_retrieve_params.rbi b/rbi/stripe/params/charge_retrieve_params.rbi index 2f10ae99..6031c8f0 100644 --- a/rbi/stripe/params/charge_retrieve_params.rbi +++ b/rbi/stripe/params/charge_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class ChargeRetrieveParams < Stripe::RequestParams + class ChargeRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/charge_search_params.rbi b/rbi/stripe/params/charge_search_params.rbi index 3283ca7d..835623ec 100644 --- a/rbi/stripe/params/charge_search_params.rbi +++ b/rbi/stripe/params/charge_search_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class ChargeSearchParams < Stripe::RequestParams + class ChargeSearchParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/charge_update_params.rbi b/rbi/stripe/params/charge_update_params.rbi index 0b9b9446..2c615114 100644 --- a/rbi/stripe/params/charge_update_params.rbi +++ b/rbi/stripe/params/charge_update_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class ChargeUpdateParams < Stripe::RequestParams - class FraudDetails < Stripe::RequestParams + class ChargeUpdateParams < ::Stripe::RequestParams + class FraudDetails < ::Stripe::RequestParams # Either `safe` or `fraudulent`. sig { returns(T.any(String, String)) } def user_report; end @@ -13,8 +13,8 @@ module Stripe sig { params(user_report: T.any(String, String)).void } def initialize(user_report: nil); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end diff --git a/rbi/stripe/params/checkout/session_create_params.rbi b/rbi/stripe/params/checkout/session_create_params.rbi index 1926c392..78aaed77 100644 --- a/rbi/stripe/params/checkout/session_create_params.rbi +++ b/rbi/stripe/params/checkout/session_create_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Checkout - class SessionCreateParams < Stripe::RequestParams - class AdaptivePricing < Stripe::RequestParams + class SessionCreateParams < ::Stripe::RequestParams + class AdaptivePricing < ::Stripe::RequestParams # If set to `true`, Adaptive Pricing is available on [eligible sessions](https://docs.stripe.com/payments/currencies/localize-prices/adaptive-pricing?payment-ui=stripe-hosted#restrictions). Defaults to your [dashboard setting](https://dashboard.stripe.com/settings/adaptive-pricing). sig { returns(T.nilable(T::Boolean)) } def enabled; end @@ -14,8 +14,8 @@ module Stripe sig { params(enabled: T.nilable(T::Boolean)).void } def initialize(enabled: nil); end end - class AfterExpiration < Stripe::RequestParams - class Recovery < Stripe::RequestParams + class AfterExpiration < ::Stripe::RequestParams + class Recovery < ::Stripe::RequestParams # Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults to `false` sig { returns(T.nilable(T::Boolean)) } def allow_promotion_codes; end @@ -45,8 +45,8 @@ module Stripe } def initialize(recovery: nil); end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -79,8 +79,8 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class BrandingSettings < Stripe::RequestParams - class Icon < Stripe::RequestParams + class BrandingSettings < ::Stripe::RequestParams + class Icon < ::Stripe::RequestParams # The ID of a [File upload](https://stripe.com/docs/api/files) representing the icon. Purpose must be `business_icon`. Required if `type` is `file` and disallowed otherwise. sig { returns(T.nilable(String)) } def file; end @@ -99,7 +99,7 @@ module Stripe sig { params(file: T.nilable(String), type: String, url: T.nilable(String)).void } def initialize(file: nil, type: nil, url: nil); end end - class Logo < Stripe::RequestParams + class Logo < ::Stripe::RequestParams # The ID of a [File upload](https://stripe.com/docs/api/files) representing the logo. Purpose must be `business_logo`. Required if `type` is `file` and disallowed otherwise. sig { returns(T.nilable(String)) } def file; end @@ -135,7 +135,7 @@ module Stripe def button_color; end sig { params(_button_color: T.nilable(String)).returns(T.nilable(String)) } def button_color=(_button_color); end - # A string to override the business name shown on the Checkout Session. + # A string to override the business name shown on the Checkout Session. This only shows at the top of the Checkout page, and your business name still appears in terms, receipts, and other places. sig { returns(T.nilable(String)) } def display_name; end sig { params(_display_name: T.nilable(String)).returns(T.nilable(String)) } @@ -147,14 +147,14 @@ module Stripe params(_font_family: T.nilable(T.any(String, String))).returns(T.nilable(T.any(String, String))) } def font_family=(_font_family); end - # The icon for the Checkout Session. You cannot set both `logo` and `icon`. + # The icon for the Checkout Session. For best results, use a square image. sig { returns(T.nilable(Checkout::SessionCreateParams::BrandingSettings::Icon)) } def icon; end sig { params(_icon: T.nilable(Checkout::SessionCreateParams::BrandingSettings::Icon)).returns(T.nilable(Checkout::SessionCreateParams::BrandingSettings::Icon)) } def icon=(_icon); end - # The logo for the Checkout Session. You cannot set both `logo` and `icon`. + # The logo for the Checkout Session. sig { returns(T.nilable(Checkout::SessionCreateParams::BrandingSettings::Logo)) } def logo; end sig { @@ -174,8 +174,8 @@ module Stripe logo: nil ); end end - class ConsentCollection < Stripe::RequestParams - class PaymentMethodReuseAgreement < Stripe::RequestParams + class ConsentCollection < ::Stripe::RequestParams + class PaymentMethodReuseAgreement < ::Stripe::RequestParams # Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's # defaults will be used. When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI. sig { returns(String) } @@ -216,9 +216,9 @@ module Stripe terms_of_service: nil ); end end - class CustomField < Stripe::RequestParams - class Dropdown < Stripe::RequestParams - class Option < Stripe::RequestParams + class CustomField < ::Stripe::RequestParams + class Dropdown < ::Stripe::RequestParams + class Option < ::Stripe::RequestParams # The label for the option, displayed to the customer. Up to 100 characters. sig { returns(String) } def label; end @@ -249,7 +249,7 @@ module Stripe } def initialize(default_value: nil, options: nil); end end - class Label < Stripe::RequestParams + class Label < ::Stripe::RequestParams # Custom text for the label, displayed to the customer. Up to 50 characters. sig { returns(String) } def custom; end @@ -263,7 +263,7 @@ module Stripe sig { params(custom: String, type: String).void } def initialize(custom: nil, type: nil); end end - class Numeric < Stripe::RequestParams + class Numeric < ::Stripe::RequestParams # The value that will pre-fill the field on the payment page. sig { returns(T.nilable(String)) } def default_value; end @@ -284,7 +284,7 @@ module Stripe } def initialize(default_value: nil, maximum_length: nil, minimum_length: nil); end end - class Text < Stripe::RequestParams + class Text < ::Stripe::RequestParams # The value that will pre-fill the field on the payment page. sig { returns(T.nilable(String)) } def default_value; end @@ -361,8 +361,8 @@ module Stripe type: nil ); end end - class CustomText < Stripe::RequestParams - class AfterSubmit < Stripe::RequestParams + class CustomText < ::Stripe::RequestParams + class AfterSubmit < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -371,7 +371,7 @@ module Stripe sig { params(message: String).void } def initialize(message: nil); end end - class ShippingAddress < Stripe::RequestParams + class ShippingAddress < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -380,7 +380,7 @@ module Stripe sig { params(message: String).void } def initialize(message: nil); end end - class Submit < Stripe::RequestParams + class Submit < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -389,7 +389,7 @@ module Stripe sig { params(message: String).void } def initialize(message: nil); end end - class TermsOfServiceAcceptance < Stripe::RequestParams + class TermsOfServiceAcceptance < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -442,7 +442,7 @@ module Stripe terms_of_service_acceptance: nil ); end end - class CustomerUpdate < Stripe::RequestParams + class CustomerUpdate < ::Stripe::RequestParams # Describes whether Checkout saves the billing address onto `customer.address`. # To always collect a full billing address, use `billing_address_collection`. Defaults to `never`. sig { returns(T.nilable(String)) } @@ -465,7 +465,7 @@ module Stripe } def initialize(address: nil, name: nil, shipping: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # The ID of the coupon to apply to this Session. sig { returns(T.nilable(String)) } def coupon; end @@ -479,9 +479,9 @@ module Stripe sig { params(coupon: T.nilable(String), promotion_code: T.nilable(String)).void } def initialize(coupon: nil, promotion_code: nil); end end - class InvoiceCreation < Stripe::RequestParams - class InvoiceData < Stripe::RequestParams - class CustomField < Stripe::RequestParams + class InvoiceCreation < ::Stripe::RequestParams + class InvoiceData < ::Stripe::RequestParams + class CustomField < ::Stripe::RequestParams # The name of the custom field. This may be up to 40 characters. sig { returns(String) } def name; end @@ -495,7 +495,7 @@ module Stripe sig { params(name: String, value: String).void } def initialize(name: nil, value: nil); end end - class Issuer < Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -509,7 +509,7 @@ module Stripe sig { params(account: T.nilable(String), type: String).void } def initialize(account: nil, type: nil); end end - class RenderingOptions < Stripe::RequestParams + class RenderingOptions < ::Stripe::RequestParams # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. sig { returns(T.nilable(T.any(String, String))) } def amount_tax_display; end @@ -608,8 +608,8 @@ module Stripe } def initialize(enabled: nil, invoice_data: nil); end end - class LineItem < Stripe::RequestParams - class AdjustableQuantity < Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative integer. sig { returns(T::Boolean) } def enabled; end @@ -630,8 +630,8 @@ module Stripe } def initialize(enabled: nil, maximum: nil, minimum: nil); end end - class PriceData < Stripe::RequestParams - class ProductData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class ProductData < ::Stripe::RequestParams # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. sig { returns(T.nilable(String)) } def description; end @@ -678,7 +678,7 @@ module Stripe unit_label: nil ); end end - class Recurring < Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -794,8 +794,8 @@ module Stripe tax_rates: nil ); end end - class NameCollection < Stripe::RequestParams - class Business < Stripe::RequestParams + class NameCollection < ::Stripe::RequestParams + class Business < ::Stripe::RequestParams # Enable business name collection on the Checkout Session. Defaults to `false`. sig { returns(T::Boolean) } def enabled; end @@ -809,7 +809,7 @@ module Stripe sig { params(enabled: T::Boolean, optional: T.nilable(T::Boolean)).void } def initialize(enabled: nil, optional: nil); end end - class Individual < Stripe::RequestParams + class Individual < ::Stripe::RequestParams # Enable individual name collection on the Checkout Session. Defaults to `false`. sig { returns(T::Boolean) } def enabled; end @@ -842,8 +842,8 @@ module Stripe } def initialize(business: nil, individual: nil); end end - class OptionalItem < Stripe::RequestParams - class AdjustableQuantity < Stripe::RequestParams + class OptionalItem < ::Stripe::RequestParams + class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative integer. sig { returns(T::Boolean) } def enabled; end @@ -886,9 +886,9 @@ module Stripe } def initialize(adjustable_quantity: nil, price: nil, quantity: nil); end end - class PaymentIntentData < Stripe::RequestParams - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class PaymentIntentData < ::Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -969,7 +969,7 @@ module Stripe tracking_number: nil ); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when a charge succeeds. sig { returns(T.nilable(Integer)) } def amount; end @@ -1094,7 +1094,7 @@ module Stripe transfer_group: nil ); end end - class PaymentMethodData < Stripe::RequestParams + class PaymentMethodData < ::Stripe::RequestParams # Allow redisplay will be set on the payment method on confirmation and indicates whether this payment method can be shown again to the customer in a checkout flow. Only set this field if you wish to override the allow_redisplay value determined by Checkout. sig { returns(T.nilable(String)) } def allow_redisplay; end @@ -1103,9 +1103,9 @@ module Stripe sig { params(allow_redisplay: T.nilable(String)).void } def initialize(allow_redisplay: nil); end end - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # A URL for custom mandate text to render during confirmation step. # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. @@ -1192,7 +1192,7 @@ module Stripe verification_method: nil ); end end - class Affirm < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1214,7 +1214,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class AfterpayClearpay < Stripe::RequestParams + class AfterpayClearpay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1236,7 +1236,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Alipay < Stripe::RequestParams + class Alipay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1251,7 +1251,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Alma < Stripe::RequestParams + class Alma < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1260,7 +1260,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class AmazonPay < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1282,7 +1282,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class AuBecsDebit < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1302,8 +1302,8 @@ module Stripe sig { params(setup_future_usage: T.nilable(String), target_date: T.nilable(String)).void } def initialize(setup_future_usage: nil, target_date: nil); end end - class BacsDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -1342,7 +1342,7 @@ module Stripe } def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1357,7 +1357,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Billie < Stripe::RequestParams + class Billie < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1366,7 +1366,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Boleto < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. sig { returns(T.nilable(Integer)) } def expires_after_days; end @@ -1388,8 +1388,8 @@ module Stripe } def initialize(expires_after_days: nil, setup_future_usage: nil); end end - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams # Setting to true enables installments for this Checkout Session. # Setting to false will prevent any installment plan from applying to a payment. sig { returns(T.nilable(T::Boolean)) } @@ -1399,7 +1399,7 @@ module Stripe sig { params(enabled: T.nilable(T::Boolean)).void } def initialize(enabled: nil); end end - class Restrictions < Stripe::RequestParams + class Restrictions < ::Stripe::RequestParams # Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. sig { returns(T.nilable(T::Array[String])) } def brands_blocked; end @@ -1504,7 +1504,7 @@ module Stripe statement_descriptor_suffix_kanji: nil ); end end - class Cashapp < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1526,9 +1526,9 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -1595,7 +1595,7 @@ module Stripe } def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil); end end - class DemoPay < Stripe::RequestParams + class DemoPay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1610,7 +1610,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Eps < Stripe::RequestParams + class Eps < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1625,7 +1625,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1640,7 +1640,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Giropay < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1655,7 +1655,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Grabpay < Stripe::RequestParams + class Grabpay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1670,7 +1670,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Ideal < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1685,7 +1685,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class KakaoPay < Stripe::RequestParams + class KakaoPay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1707,9 +1707,9 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Klarna < Stripe::RequestParams - class Subscription < Stripe::RequestParams - class NextBilling < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class Subscription < ::Stripe::RequestParams + class NextBilling < ::Stripe::RequestParams # The amount of the next charge for the subscription. sig { returns(Integer) } def amount; end @@ -1793,7 +1793,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil, subscriptions: nil); end end - class Konbini < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams # The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. Defaults to 3 days. sig { returns(T.nilable(Integer)) } def expires_after_days; end @@ -1815,7 +1815,7 @@ module Stripe } def initialize(expires_after_days: nil, setup_future_usage: nil); end end - class KrCard < Stripe::RequestParams + class KrCard < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1837,7 +1837,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Link < Stripe::RequestParams + class Link < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1859,7 +1859,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Mobilepay < Stripe::RequestParams + class Mobilepay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1881,7 +1881,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Multibanco < Stripe::RequestParams + class Multibanco < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1896,7 +1896,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class NaverPay < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1918,7 +1918,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Oxxo < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams # The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. sig { returns(T.nilable(Integer)) } def expires_after_days; end @@ -1940,7 +1940,7 @@ module Stripe } def initialize(expires_after_days: nil, setup_future_usage: nil); end end - class P24 < Stripe::RequestParams + class P24 < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1964,8 +1964,8 @@ module Stripe } def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1974,7 +1974,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Paynow < Stripe::RequestParams + class Paynow < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1989,7 +1989,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Paypal < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -2036,7 +2036,7 @@ module Stripe setup_future_usage: nil ); end end - class Pix < Stripe::RequestParams + class Pix < ::Stripe::RequestParams # Determines if the amount includes the IOF tax. Defaults to `never`. sig { returns(T.nilable(String)) } def amount_includes_iof; end @@ -2067,7 +2067,7 @@ module Stripe setup_future_usage: nil ); end end - class RevolutPay < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -2089,7 +2089,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class SamsungPay < Stripe::RequestParams + class SamsungPay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -2098,7 +2098,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Satispay < Stripe::RequestParams + class Satispay < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -2107,8 +2107,8 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class SepaDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -2147,7 +2147,7 @@ module Stripe } def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2162,7 +2162,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Swish < Stripe::RequestParams + class Swish < ::Stripe::RequestParams # The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent. sig { returns(T.nilable(String)) } def reference; end @@ -2171,8 +2171,23 @@ module Stripe sig { params(reference: T.nilable(String)).void } def initialize(reference: nil); end end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams + class Twint < ::Stripe::RequestParams + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(String)) } + def setup_future_usage; end + sig { params(_setup_future_usage: T.nilable(String)).returns(T.nilable(String)) } + def setup_future_usage=(_setup_future_usage); end + sig { params(setup_future_usage: T.nilable(String)).void } + def initialize(setup_future_usage: nil); end + end + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams # The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`. sig { returns(T.nilable(T::Array[String])) } def permissions; end @@ -2232,7 +2247,7 @@ module Stripe verification_method: nil ); end end - class WechatPay < Stripe::RequestParams + class WechatPay < ::Stripe::RequestParams # The app ID registered with WeChat Pay. Only required when client is ios or android. sig { returns(T.nilable(String)) } def app_id; end @@ -2550,6 +2565,13 @@ module Stripe params(_swish: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Swish)).returns(T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Swish)) } def swish=(_swish); end + # contains details about the TWINT payment method options. + sig { returns(T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Twint)) } + def twint; end + sig { + params(_twint: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Twint)).returns(T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Twint)) + } + def twint=(_twint); end # contains details about the Us Bank Account payment method options. sig { returns(T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::UsBankAccount)) @@ -2567,7 +2589,7 @@ module Stripe } def wechat_pay=(_wechat_pay); end sig { - params(acss_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Alipay), alma: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Alma), amazon_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Bancontact), billie: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Billie), boleto: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Boleto), card: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Card), cashapp: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Cashapp), customer_balance: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::CustomerBalance), demo_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::DemoPay), eps: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Eps), fpx: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Fpx), giropay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Giropay), grabpay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Grabpay), ideal: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Ideal), kakao_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Klarna), konbini: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::KrCard), link: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Link), mobilepay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Oxxo), p24: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::P24), pay_by_bank: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::PayByBank), payco: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Payco), paynow: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Paynow), paypal: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Paypal), pix: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Pix), revolut_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::SamsungPay), satispay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Satispay), sepa_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::SepaDebit), sofort: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Sofort), swish: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Swish), us_bank_account: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::WechatPay)).void + params(acss_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AcssDebit), affirm: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Affirm), afterpay_clearpay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AfterpayClearpay), alipay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Alipay), alma: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Alma), amazon_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AmazonPay), au_becs_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::AuBecsDebit), bacs_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::BacsDebit), bancontact: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Bancontact), billie: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Billie), boleto: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Boleto), card: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Card), cashapp: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Cashapp), customer_balance: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::CustomerBalance), demo_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::DemoPay), eps: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Eps), fpx: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Fpx), giropay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Giropay), grabpay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Grabpay), ideal: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Ideal), kakao_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::KakaoPay), klarna: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Klarna), konbini: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Konbini), kr_card: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::KrCard), link: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Link), mobilepay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Mobilepay), multibanco: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Multibanco), naver_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::NaverPay), oxxo: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Oxxo), p24: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::P24), pay_by_bank: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::PayByBank), payco: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Payco), paynow: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Paynow), paypal: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Paypal), pix: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Pix), revolut_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::RevolutPay), samsung_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::SamsungPay), satispay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Satispay), sepa_debit: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::SepaDebit), sofort: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Sofort), swish: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Swish), twint: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::Twint), us_bank_account: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::UsBankAccount), wechat_pay: T.nilable(Checkout::SessionCreateParams::PaymentMethodOptions::WechatPay)).void } def initialize( acss_debit: nil, @@ -2611,11 +2633,12 @@ module Stripe sepa_debit: nil, sofort: nil, swish: nil, + twint: nil, us_bank_account: nil, wechat_pay: nil ); end end - class Permissions < Stripe::RequestParams + class Permissions < ::Stripe::RequestParams # Determines which entity is allowed to update the shipping details. # # Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details. @@ -2628,7 +2651,7 @@ module Stripe sig { params(update_shipping_details: T.nilable(String)).void } def initialize(update_shipping_details: nil); end end - class PhoneNumberCollection < Stripe::RequestParams + class PhoneNumberCollection < ::Stripe::RequestParams # Set to `true` to enable phone number collection. # # Can only be set in `payment` and `subscription` mode. @@ -2639,7 +2662,7 @@ module Stripe sig { params(enabled: T::Boolean).void } def initialize(enabled: nil); end end - class SavedPaymentMethodOptions < Stripe::RequestParams + class SavedPaymentMethodOptions < ::Stripe::RequestParams # Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with ’allow_redisplay: ‘always’ are shown in Checkout. sig { returns(T.nilable(T::Array[String])) } def allow_redisplay_filters; end @@ -2666,7 +2689,7 @@ module Stripe payment_method_save: nil ); end end - class SetupIntentData < Stripe::RequestParams + class SetupIntentData < ::Stripe::RequestParams # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } def description; end @@ -2689,7 +2712,7 @@ module Stripe } def initialize(description: nil, metadata: nil, on_behalf_of: nil); end end - class ShippingAddressCollection < Stripe::RequestParams + class ShippingAddressCollection < ::Stripe::RequestParams # An array of two-letter ISO country codes representing which countries Checkout should provide as options for # shipping locations. sig { returns(T::Array[String]) } @@ -2699,10 +2722,10 @@ module Stripe sig { params(allowed_countries: T::Array[String]).void } def initialize(allowed_countries: nil); end end - class ShippingOption < Stripe::RequestParams - class ShippingRateData < Stripe::RequestParams - class DeliveryEstimate < Stripe::RequestParams - class Maximum < Stripe::RequestParams + class ShippingOption < ::Stripe::RequestParams + class ShippingRateData < ::Stripe::RequestParams + class DeliveryEstimate < ::Stripe::RequestParams + class Maximum < ::Stripe::RequestParams # A unit of time. sig { returns(String) } def unit; end @@ -2716,7 +2739,7 @@ module Stripe sig { params(unit: String, value: Integer).void } def initialize(unit: nil, value: nil); end end - class Minimum < Stripe::RequestParams + class Minimum < ::Stripe::RequestParams # A unit of time. sig { returns(String) } def unit; end @@ -2753,8 +2776,8 @@ module Stripe } def initialize(maximum: nil, minimum: nil); end end - class FixedAmount < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class FixedAmount < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A non-negative integer in cents representing how much to charge. sig { returns(Integer) } def amount; end @@ -2867,9 +2890,9 @@ module Stripe } def initialize(shipping_rate: nil, shipping_rate_data: nil); end end - class SubscriptionData < Stripe::RequestParams - class BillingMode < Stripe::RequestParams - class Flexible < Stripe::RequestParams + class SubscriptionData < ::Stripe::RequestParams + class BillingMode < ::Stripe::RequestParams + class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. sig { returns(T.nilable(String)) } def proration_discounts; end @@ -2897,8 +2920,8 @@ module Stripe } def initialize(flexible: nil, type: nil); end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -2926,7 +2949,7 @@ module Stripe } def initialize(issuer: nil); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Float)) } def amount_percent; end @@ -2940,8 +2963,8 @@ module Stripe sig { params(amount_percent: T.nilable(Float), destination: String).void } def initialize(amount_percent: nil, destination: nil); end end - class TrialSettings < Stripe::RequestParams - class EndBehavior < Stripe::RequestParams + class TrialSettings < ::Stripe::RequestParams + class EndBehavior < ::Stripe::RequestParams # Indicates how the subscription should change when the trial ends if the user did not provide a payment method. sig { returns(String) } def missing_payment_method; end @@ -3064,7 +3087,7 @@ module Stripe trial_settings: nil ); end end - class TaxIdCollection < Stripe::RequestParams + class TaxIdCollection < ::Stripe::RequestParams # Enable tax ID collection during checkout. Defaults to `false`. sig { returns(T::Boolean) } def enabled; end @@ -3078,8 +3101,8 @@ module Stripe sig { params(enabled: T::Boolean, required: T.nilable(String)).void } def initialize(enabled: nil, required: nil); end end - class WalletOptions < Stripe::RequestParams - class Link < Stripe::RequestParams + class WalletOptions < ::Stripe::RequestParams + class Link < ::Stripe::RequestParams # Specifies whether Checkout should display Link as a payment option. By default, Checkout will display all the supported wallets that the Checkout Session was created with. This is the `auto` behavior, and it is the default choice. sig { returns(T.nilable(String)) } def display; end diff --git a/rbi/stripe/params/checkout/session_expire_params.rbi b/rbi/stripe/params/checkout/session_expire_params.rbi index 4edbf48d..26398181 100644 --- a/rbi/stripe/params/checkout/session_expire_params.rbi +++ b/rbi/stripe/params/checkout/session_expire_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Checkout - class SessionExpireParams < Stripe::RequestParams + class SessionExpireParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/checkout/session_line_item_list_params.rbi b/rbi/stripe/params/checkout/session_line_item_list_params.rbi index 9319019b..038c84dc 100644 --- a/rbi/stripe/params/checkout/session_line_item_list_params.rbi +++ b/rbi/stripe/params/checkout/session_line_item_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Checkout - class SessionLineItemListParams < Stripe::RequestParams + class SessionLineItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/checkout/session_list_line_items_params.rbi b/rbi/stripe/params/checkout/session_list_line_items_params.rbi index 8b9e7261..989a2ec5 100644 --- a/rbi/stripe/params/checkout/session_list_line_items_params.rbi +++ b/rbi/stripe/params/checkout/session_list_line_items_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Checkout - class SessionListLineItemsParams < Stripe::RequestParams + class SessionListLineItemsParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/checkout/session_list_params.rbi b/rbi/stripe/params/checkout/session_list_params.rbi index e5d178a6..4c816a1e 100644 --- a/rbi/stripe/params/checkout/session_list_params.rbi +++ b/rbi/stripe/params/checkout/session_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Checkout - class SessionListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class SessionListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -31,7 +31,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class CustomerDetails < Stripe::RequestParams + class CustomerDetails < ::Stripe::RequestParams # Customer's email address. sig { returns(String) } def email; end diff --git a/rbi/stripe/params/checkout/session_retrieve_params.rbi b/rbi/stripe/params/checkout/session_retrieve_params.rbi index c2db1137..e923f490 100644 --- a/rbi/stripe/params/checkout/session_retrieve_params.rbi +++ b/rbi/stripe/params/checkout/session_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Checkout - class SessionRetrieveParams < Stripe::RequestParams + class SessionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/checkout/session_update_params.rbi b/rbi/stripe/params/checkout/session_update_params.rbi index 040487bb..4ad65b6f 100644 --- a/rbi/stripe/params/checkout/session_update_params.rbi +++ b/rbi/stripe/params/checkout/session_update_params.rbi @@ -4,10 +4,10 @@ # typed: true module Stripe module Checkout - class SessionUpdateParams < Stripe::RequestParams - class CollectedInformation < Stripe::RequestParams - class ShippingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class SessionUpdateParams < ::Stripe::RequestParams + class CollectedInformation < ::Stripe::RequestParams + class ShippingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -83,10 +83,10 @@ module Stripe } def initialize(shipping_details: nil); end end - class ShippingOption < Stripe::RequestParams - class ShippingRateData < Stripe::RequestParams - class DeliveryEstimate < Stripe::RequestParams - class Maximum < Stripe::RequestParams + class ShippingOption < ::Stripe::RequestParams + class ShippingRateData < ::Stripe::RequestParams + class DeliveryEstimate < ::Stripe::RequestParams + class Maximum < ::Stripe::RequestParams # A unit of time. sig { returns(String) } def unit; end @@ -100,7 +100,7 @@ module Stripe sig { params(unit: String, value: Integer).void } def initialize(unit: nil, value: nil); end end - class Minimum < Stripe::RequestParams + class Minimum < ::Stripe::RequestParams # A unit of time. sig { returns(String) } def unit; end @@ -137,8 +137,8 @@ module Stripe } def initialize(maximum: nil, minimum: nil); end end - class FixedAmount < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class FixedAmount < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A non-negative integer in cents representing how much to charge. sig { returns(Integer) } def amount; end diff --git a/rbi/stripe/params/climate/order_cancel_params.rbi b/rbi/stripe/params/climate/order_cancel_params.rbi index 3a5addfc..3124ba40 100644 --- a/rbi/stripe/params/climate/order_cancel_params.rbi +++ b/rbi/stripe/params/climate/order_cancel_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Climate - class OrderCancelParams < Stripe::RequestParams + class OrderCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/climate/order_create_params.rbi b/rbi/stripe/params/climate/order_create_params.rbi index fe51d482..df30403a 100644 --- a/rbi/stripe/params/climate/order_create_params.rbi +++ b/rbi/stripe/params/climate/order_create_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Climate - class OrderCreateParams < Stripe::RequestParams - class Beneficiary < Stripe::RequestParams + class OrderCreateParams < ::Stripe::RequestParams + class Beneficiary < ::Stripe::RequestParams # Publicly displayable name for the end beneficiary of carbon removal. sig { returns(String) } def public_name; end diff --git a/rbi/stripe/params/climate/order_list_params.rbi b/rbi/stripe/params/climate/order_list_params.rbi index f6c986b8..1424e652 100644 --- a/rbi/stripe/params/climate/order_list_params.rbi +++ b/rbi/stripe/params/climate/order_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Climate - class OrderListParams < Stripe::RequestParams + class OrderListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/climate/order_retrieve_params.rbi b/rbi/stripe/params/climate/order_retrieve_params.rbi index 009a433d..6f65d0b6 100644 --- a/rbi/stripe/params/climate/order_retrieve_params.rbi +++ b/rbi/stripe/params/climate/order_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Climate - class OrderRetrieveParams < Stripe::RequestParams + class OrderRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/climate/order_update_params.rbi b/rbi/stripe/params/climate/order_update_params.rbi index e0efe75b..6ebc67e1 100644 --- a/rbi/stripe/params/climate/order_update_params.rbi +++ b/rbi/stripe/params/climate/order_update_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Climate - class OrderUpdateParams < Stripe::RequestParams - class Beneficiary < Stripe::RequestParams + class OrderUpdateParams < ::Stripe::RequestParams + class Beneficiary < ::Stripe::RequestParams # Publicly displayable name for the end beneficiary of carbon removal. sig { returns(String) } def public_name; end diff --git a/rbi/stripe/params/climate/product_list_params.rbi b/rbi/stripe/params/climate/product_list_params.rbi index e41ba05a..9d7786f8 100644 --- a/rbi/stripe/params/climate/product_list_params.rbi +++ b/rbi/stripe/params/climate/product_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Climate - class ProductListParams < Stripe::RequestParams + class ProductListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/climate/product_retrieve_params.rbi b/rbi/stripe/params/climate/product_retrieve_params.rbi index 9daef3a8..8d241e64 100644 --- a/rbi/stripe/params/climate/product_retrieve_params.rbi +++ b/rbi/stripe/params/climate/product_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Climate - class ProductRetrieveParams < Stripe::RequestParams + class ProductRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/climate/supplier_list_params.rbi b/rbi/stripe/params/climate/supplier_list_params.rbi index 2efe5e12..2850d020 100644 --- a/rbi/stripe/params/climate/supplier_list_params.rbi +++ b/rbi/stripe/params/climate/supplier_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Climate - class SupplierListParams < Stripe::RequestParams + class SupplierListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/climate/supplier_retrieve_params.rbi b/rbi/stripe/params/climate/supplier_retrieve_params.rbi index 4380ccc2..19d187bf 100644 --- a/rbi/stripe/params/climate/supplier_retrieve_params.rbi +++ b/rbi/stripe/params/climate/supplier_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Climate - class SupplierRetrieveParams < Stripe::RequestParams + class SupplierRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/confirmation_token_create_params.rbi b/rbi/stripe/params/confirmation_token_create_params.rbi index 83679531..16bc2cc4 100644 --- a/rbi/stripe/params/confirmation_token_create_params.rbi +++ b/rbi/stripe/params/confirmation_token_create_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class ConfirmationTokenCreateParams < Stripe::RequestParams - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class ConfirmationTokenCreateParams < ::Stripe::RequestParams + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. sig { returns(String) } def account_number; end @@ -26,12 +26,12 @@ module Stripe } def initialize(account_number: nil, institution_number: nil, transit_number: nil); end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. sig { returns(String) } def account_number; end @@ -45,7 +45,7 @@ module Stripe sig { params(account_number: String, bsb_number: String).void } def initialize(account_number: nil, bsb_number: nil); end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. sig { returns(T.nilable(String)) } def account_number; end @@ -59,10 +59,10 @@ module Stripe sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void } def initialize(account_number: nil, sort_code: nil); end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -139,8 +139,8 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end - class Blik < Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Blik < ::Stripe::RequestParams; end + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) sig { returns(String) } def tax_id; end @@ -149,10 +149,10 @@ module Stripe sig { params(tax_id: String).void } def initialize(tax_id: nil); end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end + class Eps < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -161,7 +161,7 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction sig { returns(T.nilable(String)) } def account_holder_type; end @@ -175,9 +175,9 @@ module Stripe sig { params(account_holder_type: T.nilable(String), bank: String).void } def initialize(account_holder_type: nil, bank: nil); end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. sig { returns(T.nilable(String)) } def bank; end @@ -186,10 +186,10 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -220,13 +220,13 @@ module Stripe } def initialize(dob: nil); end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. sig { returns(T.nilable(String)) } def funding; end @@ -235,7 +235,7 @@ module Stripe sig { params(funding: T.nilable(String)).void } def initialize(funding: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -278,8 +278,8 @@ module Stripe suffix: nil ); end end - class Oxxo < Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams; end + class P24 < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -288,13 +288,13 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -303,10 +303,10 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } def iban; end @@ -315,7 +315,7 @@ module Stripe sig { params(iban: String).void } def initialize(iban: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. sig { returns(String) } def country; end @@ -324,9 +324,9 @@ module Stripe sig { params(country: String).void } def initialize(country: nil); end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -363,8 +363,8 @@ module Stripe routing_number: nil ); end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. sig { returns(T.nilable(ConfirmationTokenCreateParams::PaymentMethodData::AcssDebit)) } def acss_debit; end @@ -799,10 +799,10 @@ module Stripe zip: nil ); end end - class PaymentMethodOptions < Stripe::RequestParams - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams - class Plan < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams + class Plan < ::Stripe::RequestParams # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. sig { returns(T.nilable(Integer)) } def count; end @@ -865,8 +865,8 @@ module Stripe } def initialize(card: nil); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end diff --git a/rbi/stripe/params/confirmation_token_retrieve_params.rbi b/rbi/stripe/params/confirmation_token_retrieve_params.rbi index d781e744..17e3764d 100644 --- a/rbi/stripe/params/confirmation_token_retrieve_params.rbi +++ b/rbi/stripe/params/confirmation_token_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class ConfirmationTokenRetrieveParams < Stripe::RequestParams + class ConfirmationTokenRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/country_spec_list_params.rbi b/rbi/stripe/params/country_spec_list_params.rbi index 7b2be9c0..b3264d16 100644 --- a/rbi/stripe/params/country_spec_list_params.rbi +++ b/rbi/stripe/params/country_spec_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CountrySpecListParams < Stripe::RequestParams + class CountrySpecListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/country_spec_retrieve_params.rbi b/rbi/stripe/params/country_spec_retrieve_params.rbi index 1fbaf79f..236e7e0e 100644 --- a/rbi/stripe/params/country_spec_retrieve_params.rbi +++ b/rbi/stripe/params/country_spec_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CountrySpecRetrieveParams < Stripe::RequestParams + class CountrySpecRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/coupon_create_params.rbi b/rbi/stripe/params/coupon_create_params.rbi index ceacf76d..643b6db5 100644 --- a/rbi/stripe/params/coupon_create_params.rbi +++ b/rbi/stripe/params/coupon_create_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class CouponCreateParams < Stripe::RequestParams - class AppliesTo < Stripe::RequestParams + class CouponCreateParams < ::Stripe::RequestParams + class AppliesTo < ::Stripe::RequestParams # An array of Product IDs that this Coupon will apply to. sig { returns(T.nilable(T::Array[String])) } def products; end @@ -13,7 +13,7 @@ module Stripe sig { params(products: T.nilable(T::Array[String])).void } def initialize(products: nil); end end - class CurrencyOptions < Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A positive integer representing the amount to subtract from an invoice total. sig { returns(Integer) } def amount_off; end diff --git a/rbi/stripe/params/coupon_delete_params.rbi b/rbi/stripe/params/coupon_delete_params.rbi index e75b26fc..2f91ba4b 100644 --- a/rbi/stripe/params/coupon_delete_params.rbi +++ b/rbi/stripe/params/coupon_delete_params.rbi @@ -3,5 +3,5 @@ # typed: true module Stripe - class CouponDeleteParams < Stripe::RequestParams; end + class CouponDeleteParams < ::Stripe::RequestParams; end end \ No newline at end of file diff --git a/rbi/stripe/params/coupon_list_params.rbi b/rbi/stripe/params/coupon_list_params.rbi index 40b5cde1..ad089e00 100644 --- a/rbi/stripe/params/coupon_list_params.rbi +++ b/rbi/stripe/params/coupon_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class CouponListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class CouponListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/coupon_retrieve_params.rbi b/rbi/stripe/params/coupon_retrieve_params.rbi index 3f68397c..c0273987 100644 --- a/rbi/stripe/params/coupon_retrieve_params.rbi +++ b/rbi/stripe/params/coupon_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CouponRetrieveParams < Stripe::RequestParams + class CouponRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/coupon_update_params.rbi b/rbi/stripe/params/coupon_update_params.rbi index fe6c63ff..ed0d2a79 100644 --- a/rbi/stripe/params/coupon_update_params.rbi +++ b/rbi/stripe/params/coupon_update_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class CouponUpdateParams < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class CouponUpdateParams < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A positive integer representing the amount to subtract from an invoice total. sig { returns(Integer) } def amount_off; end diff --git a/rbi/stripe/params/credit_note_create_params.rbi b/rbi/stripe/params/credit_note_create_params.rbi index 1055b160..3a83e53f 100644 --- a/rbi/stripe/params/credit_note_create_params.rbi +++ b/rbi/stripe/params/credit_note_create_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class CreditNoteCreateParams < Stripe::RequestParams - class Line < Stripe::RequestParams - class TaxAmount < Stripe::RequestParams + class CreditNoteCreateParams < ::Stripe::RequestParams + class Line < ::Stripe::RequestParams + class TaxAmount < ::Stripe::RequestParams # The amount, in cents (or local equivalent), of the tax. sig { returns(Integer) } def amount; end @@ -88,21 +88,49 @@ module Stripe unit_amount_decimal: nil ); end end - class Refund < Stripe::RequestParams + class Refund < ::Stripe::RequestParams + class PaymentRecordRefund < ::Stripe::RequestParams + # The ID of the PaymentRecord with the refund to link to this credit note. + sig { returns(String) } + def payment_record; end + sig { params(_payment_record: String).returns(String) } + def payment_record=(_payment_record); end + # The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord. + sig { returns(String) } + def refund_group; end + sig { params(_refund_group: String).returns(String) } + def refund_group=(_refund_group); end + sig { params(payment_record: String, refund_group: String).void } + def initialize(payment_record: nil, refund_group: nil); end + end # Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount. sig { returns(T.nilable(Integer)) } def amount_refunded; end sig { params(_amount_refunded: T.nilable(Integer)).returns(T.nilable(Integer)) } def amount_refunded=(_amount_refunded); end + # The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`. + sig { returns(T.nilable(CreditNoteCreateParams::Refund::PaymentRecordRefund)) } + def payment_record_refund; end + sig { + params(_payment_record_refund: T.nilable(CreditNoteCreateParams::Refund::PaymentRecordRefund)).returns(T.nilable(CreditNoteCreateParams::Refund::PaymentRecordRefund)) + } + def payment_record_refund=(_payment_record_refund); end # ID of an existing refund to link this credit note to. Required when `type` is `refund`. sig { returns(T.nilable(String)) } def refund; end sig { params(_refund: T.nilable(String)).returns(T.nilable(String)) } def refund=(_refund); end - sig { params(amount_refunded: T.nilable(Integer), refund: T.nilable(String)).void } - def initialize(amount_refunded: nil, refund: nil); end + # Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`. + sig { returns(T.nilable(String)) } + def type; end + sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } + def type=(_type); end + sig { + params(amount_refunded: T.nilable(Integer), payment_record_refund: T.nilable(CreditNoteCreateParams::Refund::PaymentRecordRefund), refund: T.nilable(String), type: T.nilable(String)).void + } + def initialize(amount_refunded: nil, payment_record_refund: nil, refund: nil, type: nil); end end - class ShippingCost < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams # The ID of the shipping rate to use for this order. sig { returns(T.nilable(String)) } def shipping_rate; end diff --git a/rbi/stripe/params/credit_note_line_item_list_params.rbi b/rbi/stripe/params/credit_note_line_item_list_params.rbi index bee826ea..942179f3 100644 --- a/rbi/stripe/params/credit_note_line_item_list_params.rbi +++ b/rbi/stripe/params/credit_note_line_item_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CreditNoteLineItemListParams < Stripe::RequestParams + class CreditNoteLineItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/credit_note_list_params.rbi b/rbi/stripe/params/credit_note_list_params.rbi index 4ced7687..cd45a94d 100644 --- a/rbi/stripe/params/credit_note_list_params.rbi +++ b/rbi/stripe/params/credit_note_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class CreditNoteListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class CreditNoteListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/credit_note_list_preview_line_items_params.rbi b/rbi/stripe/params/credit_note_list_preview_line_items_params.rbi index 60567cd6..830c8a3b 100644 --- a/rbi/stripe/params/credit_note_list_preview_line_items_params.rbi +++ b/rbi/stripe/params/credit_note_list_preview_line_items_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class CreditNoteListPreviewLineItemsParams < Stripe::RequestParams - class Line < Stripe::RequestParams - class TaxAmount < Stripe::RequestParams + class CreditNoteListPreviewLineItemsParams < ::Stripe::RequestParams + class Line < ::Stripe::RequestParams + class TaxAmount < ::Stripe::RequestParams # The amount, in cents (or local equivalent), of the tax. sig { returns(Integer) } def amount; end @@ -90,21 +90,49 @@ module Stripe unit_amount_decimal: nil ); end end - class Refund < Stripe::RequestParams + class Refund < ::Stripe::RequestParams + class PaymentRecordRefund < ::Stripe::RequestParams + # The ID of the PaymentRecord with the refund to link to this credit note. + sig { returns(String) } + def payment_record; end + sig { params(_payment_record: String).returns(String) } + def payment_record=(_payment_record); end + # The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord. + sig { returns(String) } + def refund_group; end + sig { params(_refund_group: String).returns(String) } + def refund_group=(_refund_group); end + sig { params(payment_record: String, refund_group: String).void } + def initialize(payment_record: nil, refund_group: nil); end + end # Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount. sig { returns(T.nilable(Integer)) } def amount_refunded; end sig { params(_amount_refunded: T.nilable(Integer)).returns(T.nilable(Integer)) } def amount_refunded=(_amount_refunded); end + # The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`. + sig { returns(T.nilable(CreditNoteListPreviewLineItemsParams::Refund::PaymentRecordRefund)) } + def payment_record_refund; end + sig { + params(_payment_record_refund: T.nilable(CreditNoteListPreviewLineItemsParams::Refund::PaymentRecordRefund)).returns(T.nilable(CreditNoteListPreviewLineItemsParams::Refund::PaymentRecordRefund)) + } + def payment_record_refund=(_payment_record_refund); end # ID of an existing refund to link this credit note to. Required when `type` is `refund`. sig { returns(T.nilable(String)) } def refund; end sig { params(_refund: T.nilable(String)).returns(T.nilable(String)) } def refund=(_refund); end - sig { params(amount_refunded: T.nilable(Integer), refund: T.nilable(String)).void } - def initialize(amount_refunded: nil, refund: nil); end + # Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`. + sig { returns(T.nilable(String)) } + def type; end + sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } + def type=(_type); end + sig { + params(amount_refunded: T.nilable(Integer), payment_record_refund: T.nilable(CreditNoteListPreviewLineItemsParams::Refund::PaymentRecordRefund), refund: T.nilable(String), type: T.nilable(String)).void + } + def initialize(amount_refunded: nil, payment_record_refund: nil, refund: nil, type: nil); end end - class ShippingCost < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams # The ID of the shipping rate to use for this order. sig { returns(T.nilable(String)) } def shipping_rate; end diff --git a/rbi/stripe/params/credit_note_preview_lines_list_params.rbi b/rbi/stripe/params/credit_note_preview_lines_list_params.rbi index cd7f6e15..e57110c7 100644 --- a/rbi/stripe/params/credit_note_preview_lines_list_params.rbi +++ b/rbi/stripe/params/credit_note_preview_lines_list_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class CreditNotePreviewLinesListParams < Stripe::RequestParams - class Line < Stripe::RequestParams - class TaxAmount < Stripe::RequestParams + class CreditNotePreviewLinesListParams < ::Stripe::RequestParams + class Line < ::Stripe::RequestParams + class TaxAmount < ::Stripe::RequestParams # The amount, in cents (or local equivalent), of the tax. sig { returns(Integer) } def amount; end @@ -90,21 +90,49 @@ module Stripe unit_amount_decimal: nil ); end end - class Refund < Stripe::RequestParams + class Refund < ::Stripe::RequestParams + class PaymentRecordRefund < ::Stripe::RequestParams + # The ID of the PaymentRecord with the refund to link to this credit note. + sig { returns(String) } + def payment_record; end + sig { params(_payment_record: String).returns(String) } + def payment_record=(_payment_record); end + # The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord. + sig { returns(String) } + def refund_group; end + sig { params(_refund_group: String).returns(String) } + def refund_group=(_refund_group); end + sig { params(payment_record: String, refund_group: String).void } + def initialize(payment_record: nil, refund_group: nil); end + end # Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount. sig { returns(T.nilable(Integer)) } def amount_refunded; end sig { params(_amount_refunded: T.nilable(Integer)).returns(T.nilable(Integer)) } def amount_refunded=(_amount_refunded); end + # The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`. + sig { returns(T.nilable(CreditNotePreviewLinesListParams::Refund::PaymentRecordRefund)) } + def payment_record_refund; end + sig { + params(_payment_record_refund: T.nilable(CreditNotePreviewLinesListParams::Refund::PaymentRecordRefund)).returns(T.nilable(CreditNotePreviewLinesListParams::Refund::PaymentRecordRefund)) + } + def payment_record_refund=(_payment_record_refund); end # ID of an existing refund to link this credit note to. Required when `type` is `refund`. sig { returns(T.nilable(String)) } def refund; end sig { params(_refund: T.nilable(String)).returns(T.nilable(String)) } def refund=(_refund); end - sig { params(amount_refunded: T.nilable(Integer), refund: T.nilable(String)).void } - def initialize(amount_refunded: nil, refund: nil); end + # Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`. + sig { returns(T.nilable(String)) } + def type; end + sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } + def type=(_type); end + sig { + params(amount_refunded: T.nilable(Integer), payment_record_refund: T.nilable(CreditNotePreviewLinesListParams::Refund::PaymentRecordRefund), refund: T.nilable(String), type: T.nilable(String)).void + } + def initialize(amount_refunded: nil, payment_record_refund: nil, refund: nil, type: nil); end end - class ShippingCost < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams # The ID of the shipping rate to use for this order. sig { returns(T.nilable(String)) } def shipping_rate; end diff --git a/rbi/stripe/params/credit_note_preview_params.rbi b/rbi/stripe/params/credit_note_preview_params.rbi index 98173e15..f0678ed1 100644 --- a/rbi/stripe/params/credit_note_preview_params.rbi +++ b/rbi/stripe/params/credit_note_preview_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class CreditNotePreviewParams < Stripe::RequestParams - class Line < Stripe::RequestParams - class TaxAmount < Stripe::RequestParams + class CreditNotePreviewParams < ::Stripe::RequestParams + class Line < ::Stripe::RequestParams + class TaxAmount < ::Stripe::RequestParams # The amount, in cents (or local equivalent), of the tax. sig { returns(Integer) } def amount; end @@ -88,21 +88,49 @@ module Stripe unit_amount_decimal: nil ); end end - class Refund < Stripe::RequestParams + class Refund < ::Stripe::RequestParams + class PaymentRecordRefund < ::Stripe::RequestParams + # The ID of the PaymentRecord with the refund to link to this credit note. + sig { returns(String) } + def payment_record; end + sig { params(_payment_record: String).returns(String) } + def payment_record=(_payment_record); end + # The PaymentRecord refund group to link to this credit note. For refunds processed off-Stripe, this will correspond to the `processor_details.custom.refund_reference` field provided when reporting the refund on the PaymentRecord. + sig { returns(String) } + def refund_group; end + sig { params(_refund_group: String).returns(String) } + def refund_group=(_refund_group); end + sig { params(payment_record: String, refund_group: String).void } + def initialize(payment_record: nil, refund_group: nil); end + end # Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount. sig { returns(T.nilable(Integer)) } def amount_refunded; end sig { params(_amount_refunded: T.nilable(Integer)).returns(T.nilable(Integer)) } def amount_refunded=(_amount_refunded); end + # The PaymentRecord refund details to link to this credit note. Required when `type` is `payment_record_refund`. + sig { returns(T.nilable(CreditNotePreviewParams::Refund::PaymentRecordRefund)) } + def payment_record_refund; end + sig { + params(_payment_record_refund: T.nilable(CreditNotePreviewParams::Refund::PaymentRecordRefund)).returns(T.nilable(CreditNotePreviewParams::Refund::PaymentRecordRefund)) + } + def payment_record_refund=(_payment_record_refund); end # ID of an existing refund to link this credit note to. Required when `type` is `refund`. sig { returns(T.nilable(String)) } def refund; end sig { params(_refund: T.nilable(String)).returns(T.nilable(String)) } def refund=(_refund); end - sig { params(amount_refunded: T.nilable(Integer), refund: T.nilable(String)).void } - def initialize(amount_refunded: nil, refund: nil); end + # Type of the refund, one of `refund` or `payment_record_refund`. Defaults to `refund`. + sig { returns(T.nilable(String)) } + def type; end + sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } + def type=(_type); end + sig { + params(amount_refunded: T.nilable(Integer), payment_record_refund: T.nilable(CreditNotePreviewParams::Refund::PaymentRecordRefund), refund: T.nilable(String), type: T.nilable(String)).void + } + def initialize(amount_refunded: nil, payment_record_refund: nil, refund: nil, type: nil); end end - class ShippingCost < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams # The ID of the shipping rate to use for this order. sig { returns(T.nilable(String)) } def shipping_rate; end diff --git a/rbi/stripe/params/credit_note_retrieve_params.rbi b/rbi/stripe/params/credit_note_retrieve_params.rbi index f90d5891..b9a74031 100644 --- a/rbi/stripe/params/credit_note_retrieve_params.rbi +++ b/rbi/stripe/params/credit_note_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CreditNoteRetrieveParams < Stripe::RequestParams + class CreditNoteRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/credit_note_update_params.rbi b/rbi/stripe/params/credit_note_update_params.rbi index 456eb8d8..d72804b8 100644 --- a/rbi/stripe/params/credit_note_update_params.rbi +++ b/rbi/stripe/params/credit_note_update_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CreditNoteUpdateParams < Stripe::RequestParams + class CreditNoteUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/credit_note_void_credit_note_params.rbi b/rbi/stripe/params/credit_note_void_credit_note_params.rbi index a0fc69c8..cc8567ec 100644 --- a/rbi/stripe/params/credit_note_void_credit_note_params.rbi +++ b/rbi/stripe/params/credit_note_void_credit_note_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CreditNoteVoidCreditNoteParams < Stripe::RequestParams + class CreditNoteVoidCreditNoteParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/customer_balance_transaction_create_params.rbi b/rbi/stripe/params/customer_balance_transaction_create_params.rbi index 0358c350..5c5115d0 100644 --- a/rbi/stripe/params/customer_balance_transaction_create_params.rbi +++ b/rbi/stripe/params/customer_balance_transaction_create_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CustomerBalanceTransactionCreateParams < Stripe::RequestParams + class CustomerBalanceTransactionCreateParams < ::Stripe::RequestParams # The integer amount in **cents (or local equivalent)** to apply to the customer's credit balance. sig { returns(Integer) } def amount; end diff --git a/rbi/stripe/params/customer_balance_transaction_list_params.rbi b/rbi/stripe/params/customer_balance_transaction_list_params.rbi index 289ab694..dc50f578 100644 --- a/rbi/stripe/params/customer_balance_transaction_list_params.rbi +++ b/rbi/stripe/params/customer_balance_transaction_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CustomerBalanceTransactionListParams < Stripe::RequestParams + class CustomerBalanceTransactionListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/customer_balance_transaction_retrieve_params.rbi b/rbi/stripe/params/customer_balance_transaction_retrieve_params.rbi index e15acd8a..a6626ff2 100644 --- a/rbi/stripe/params/customer_balance_transaction_retrieve_params.rbi +++ b/rbi/stripe/params/customer_balance_transaction_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CustomerBalanceTransactionRetrieveParams < Stripe::RequestParams + class CustomerBalanceTransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/customer_balance_transaction_update_params.rbi b/rbi/stripe/params/customer_balance_transaction_update_params.rbi index f9cfb8f2..623600d3 100644 --- a/rbi/stripe/params/customer_balance_transaction_update_params.rbi +++ b/rbi/stripe/params/customer_balance_transaction_update_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CustomerBalanceTransactionUpdateParams < Stripe::RequestParams + class CustomerBalanceTransactionUpdateParams < ::Stripe::RequestParams # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } def description; end diff --git a/rbi/stripe/params/customer_cash_balance_retrieve_params.rbi b/rbi/stripe/params/customer_cash_balance_retrieve_params.rbi index da3292da..fbc6e243 100644 --- a/rbi/stripe/params/customer_cash_balance_retrieve_params.rbi +++ b/rbi/stripe/params/customer_cash_balance_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CustomerCashBalanceRetrieveParams < Stripe::RequestParams + class CustomerCashBalanceRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/customer_cash_balance_transaction_list_params.rbi b/rbi/stripe/params/customer_cash_balance_transaction_list_params.rbi index 7ff0c029..8c899fe5 100644 --- a/rbi/stripe/params/customer_cash_balance_transaction_list_params.rbi +++ b/rbi/stripe/params/customer_cash_balance_transaction_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CustomerCashBalanceTransactionListParams < Stripe::RequestParams + class CustomerCashBalanceTransactionListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/customer_cash_balance_transaction_retrieve_params.rbi b/rbi/stripe/params/customer_cash_balance_transaction_retrieve_params.rbi index 57270063..a2f12ef1 100644 --- a/rbi/stripe/params/customer_cash_balance_transaction_retrieve_params.rbi +++ b/rbi/stripe/params/customer_cash_balance_transaction_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CustomerCashBalanceTransactionRetrieveParams < Stripe::RequestParams + class CustomerCashBalanceTransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/customer_cash_balance_update_params.rbi b/rbi/stripe/params/customer_cash_balance_update_params.rbi index 0e24eeaf..f9358546 100644 --- a/rbi/stripe/params/customer_cash_balance_update_params.rbi +++ b/rbi/stripe/params/customer_cash_balance_update_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class CustomerCashBalanceUpdateParams < Stripe::RequestParams - class Settings < Stripe::RequestParams + class CustomerCashBalanceUpdateParams < ::Stripe::RequestParams + class Settings < ::Stripe::RequestParams # Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://stripe.com/docs/payments/customer-balance/reconciliation). sig { returns(T.nilable(String)) } def reconciliation_mode; end diff --git a/rbi/stripe/params/customer_create_funding_instructions_params.rbi b/rbi/stripe/params/customer_create_funding_instructions_params.rbi index 966339db..d0f27657 100644 --- a/rbi/stripe/params/customer_create_funding_instructions_params.rbi +++ b/rbi/stripe/params/customer_create_funding_instructions_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class CustomerCreateFundingInstructionsParams < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerCreateFundingInstructionsParams < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end diff --git a/rbi/stripe/params/customer_create_params.rbi b/rbi/stripe/params/customer_create_params.rbi index 2c403423..16d2ab9c 100644 --- a/rbi/stripe/params/customer_create_params.rbi +++ b/rbi/stripe/params/customer_create_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class CustomerCreateParams < Stripe::RequestParams - class Address < Stripe::RequestParams + class CustomerCreateParams < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -47,8 +47,8 @@ module Stripe state: nil ); end end - class CashBalance < Stripe::RequestParams - class Settings < Stripe::RequestParams + class CashBalance < ::Stripe::RequestParams + class Settings < ::Stripe::RequestParams # Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://stripe.com/docs/payments/customer-balance/reconciliation). sig { returns(T.nilable(String)) } def reconciliation_mode; end @@ -68,8 +68,8 @@ module Stripe sig { params(settings: T.nilable(CustomerCreateParams::CashBalance::Settings)).void } def initialize(settings: nil); end end - class InvoiceSettings < Stripe::RequestParams - class CustomField < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class CustomField < ::Stripe::RequestParams # The name of the custom field. This may be up to 40 characters. sig { returns(String) } def name; end @@ -83,7 +83,7 @@ module Stripe sig { params(name: String, value: String).void } def initialize(name: nil, value: nil); end end - class RenderingOptions < Stripe::RequestParams + class RenderingOptions < ::Stripe::RequestParams # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. sig { returns(T.nilable(T.any(String, String))) } def amount_tax_display; end @@ -139,8 +139,8 @@ module Stripe rendering_options: nil ); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -205,7 +205,7 @@ module Stripe } def initialize(address: nil, name: nil, phone: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes. sig { returns(T.nilable(String)) } def ip_address; end @@ -219,7 +219,7 @@ module Stripe sig { params(ip_address: T.nilable(String), validate_location: T.nilable(String)).void } def initialize(ip_address: nil, validate_location: nil); end end - class TaxIdDatum < Stripe::RequestParams + class TaxIdDatum < ::Stripe::RequestParams # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` sig { returns(String) } def type; end diff --git a/rbi/stripe/params/customer_delete_discount_params.rbi b/rbi/stripe/params/customer_delete_discount_params.rbi index 3d485ff5..f5024cf4 100644 --- a/rbi/stripe/params/customer_delete_discount_params.rbi +++ b/rbi/stripe/params/customer_delete_discount_params.rbi @@ -3,5 +3,5 @@ # typed: true module Stripe - class CustomerDeleteDiscountParams < Stripe::RequestParams; end + class CustomerDeleteDiscountParams < ::Stripe::RequestParams; end end \ No newline at end of file diff --git a/rbi/stripe/params/customer_delete_params.rbi b/rbi/stripe/params/customer_delete_params.rbi index 91fbff5c..1dd63c9b 100644 --- a/rbi/stripe/params/customer_delete_params.rbi +++ b/rbi/stripe/params/customer_delete_params.rbi @@ -3,5 +3,5 @@ # typed: true module Stripe - class CustomerDeleteParams < Stripe::RequestParams; end + class CustomerDeleteParams < ::Stripe::RequestParams; end end \ No newline at end of file diff --git a/rbi/stripe/params/customer_fund_cash_balance_params.rbi b/rbi/stripe/params/customer_fund_cash_balance_params.rbi index fb6e69dc..a3dfee14 100644 --- a/rbi/stripe/params/customer_fund_cash_balance_params.rbi +++ b/rbi/stripe/params/customer_fund_cash_balance_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CustomerFundCashBalanceParams < Stripe::RequestParams + class CustomerFundCashBalanceParams < ::Stripe::RequestParams # Amount to be used for this test cash balance transaction. A positive integer representing how much to fund in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to fund $1.00 or 100 to fund ¥100, a zero-decimal currency). sig { returns(Integer) } def amount; end diff --git a/rbi/stripe/params/customer_funding_instructions_create_params.rbi b/rbi/stripe/params/customer_funding_instructions_create_params.rbi index bb223451..4366386a 100644 --- a/rbi/stripe/params/customer_funding_instructions_create_params.rbi +++ b/rbi/stripe/params/customer_funding_instructions_create_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class CustomerFundingInstructionsCreateParams < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerFundingInstructionsCreateParams < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end diff --git a/rbi/stripe/params/customer_list_params.rbi b/rbi/stripe/params/customer_list_params.rbi index fe0cbe6d..0c8408d8 100644 --- a/rbi/stripe/params/customer_list_params.rbi +++ b/rbi/stripe/params/customer_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class CustomerListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class CustomerListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/customer_list_payment_methods_params.rbi b/rbi/stripe/params/customer_list_payment_methods_params.rbi index 1eed06fe..deb4e69c 100644 --- a/rbi/stripe/params/customer_list_payment_methods_params.rbi +++ b/rbi/stripe/params/customer_list_payment_methods_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CustomerListPaymentMethodsParams < Stripe::RequestParams + class CustomerListPaymentMethodsParams < ::Stripe::RequestParams # This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. sig { returns(T.nilable(String)) } def allow_redisplay; end diff --git a/rbi/stripe/params/customer_payment_method_list_params.rbi b/rbi/stripe/params/customer_payment_method_list_params.rbi index e1c31379..02e1e2cf 100644 --- a/rbi/stripe/params/customer_payment_method_list_params.rbi +++ b/rbi/stripe/params/customer_payment_method_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CustomerPaymentMethodListParams < Stripe::RequestParams + class CustomerPaymentMethodListParams < ::Stripe::RequestParams # This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. sig { returns(T.nilable(String)) } def allow_redisplay; end diff --git a/rbi/stripe/params/customer_payment_method_retrieve_params.rbi b/rbi/stripe/params/customer_payment_method_retrieve_params.rbi index 894507b9..167e9f31 100644 --- a/rbi/stripe/params/customer_payment_method_retrieve_params.rbi +++ b/rbi/stripe/params/customer_payment_method_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CustomerPaymentMethodRetrieveParams < Stripe::RequestParams + class CustomerPaymentMethodRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/customer_payment_source_create_params.rbi b/rbi/stripe/params/customer_payment_source_create_params.rbi index c8ba5e1b..d32650cb 100644 --- a/rbi/stripe/params/customer_payment_source_create_params.rbi +++ b/rbi/stripe/params/customer_payment_source_create_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CustomerPaymentSourceCreateParams < Stripe::RequestParams + class CustomerPaymentSourceCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/customer_payment_source_delete_params.rbi b/rbi/stripe/params/customer_payment_source_delete_params.rbi index c52e6ee2..56a8cf7f 100644 --- a/rbi/stripe/params/customer_payment_source_delete_params.rbi +++ b/rbi/stripe/params/customer_payment_source_delete_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CustomerPaymentSourceDeleteParams < Stripe::RequestParams + class CustomerPaymentSourceDeleteParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/customer_payment_source_list_params.rbi b/rbi/stripe/params/customer_payment_source_list_params.rbi index b74a6b98..9abf687a 100644 --- a/rbi/stripe/params/customer_payment_source_list_params.rbi +++ b/rbi/stripe/params/customer_payment_source_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CustomerPaymentSourceListParams < Stripe::RequestParams + class CustomerPaymentSourceListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/customer_payment_source_retrieve_params.rbi b/rbi/stripe/params/customer_payment_source_retrieve_params.rbi index e9e351b8..306b6088 100644 --- a/rbi/stripe/params/customer_payment_source_retrieve_params.rbi +++ b/rbi/stripe/params/customer_payment_source_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CustomerPaymentSourceRetrieveParams < Stripe::RequestParams + class CustomerPaymentSourceRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/customer_payment_source_update_params.rbi b/rbi/stripe/params/customer_payment_source_update_params.rbi index 8422d105..402fb482 100644 --- a/rbi/stripe/params/customer_payment_source_update_params.rbi +++ b/rbi/stripe/params/customer_payment_source_update_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class CustomerPaymentSourceUpdateParams < Stripe::RequestParams - class Owner < Stripe::RequestParams - class Address < Stripe::RequestParams + class CustomerPaymentSourceUpdateParams < ::Stripe::RequestParams + class Owner < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end diff --git a/rbi/stripe/params/customer_payment_source_verify_params.rbi b/rbi/stripe/params/customer_payment_source_verify_params.rbi index 1df2bd70..ac072162 100644 --- a/rbi/stripe/params/customer_payment_source_verify_params.rbi +++ b/rbi/stripe/params/customer_payment_source_verify_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CustomerPaymentSourceVerifyParams < Stripe::RequestParams + class CustomerPaymentSourceVerifyParams < ::Stripe::RequestParams # Two positive integers, in *cents*, equal to the values of the microdeposits sent to the bank account. sig { returns(T.nilable(T::Array[Integer])) } def amounts; end diff --git a/rbi/stripe/params/customer_retrieve_params.rbi b/rbi/stripe/params/customer_retrieve_params.rbi index 1ece20a7..8cd02cfc 100644 --- a/rbi/stripe/params/customer_retrieve_params.rbi +++ b/rbi/stripe/params/customer_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CustomerRetrieveParams < Stripe::RequestParams + class CustomerRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/customer_retrieve_payment_method_params.rbi b/rbi/stripe/params/customer_retrieve_payment_method_params.rbi index dfb696ef..f760445f 100644 --- a/rbi/stripe/params/customer_retrieve_payment_method_params.rbi +++ b/rbi/stripe/params/customer_retrieve_payment_method_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CustomerRetrievePaymentMethodParams < Stripe::RequestParams + class CustomerRetrievePaymentMethodParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/customer_search_params.rbi b/rbi/stripe/params/customer_search_params.rbi index 68b14f18..3ed5a26e 100644 --- a/rbi/stripe/params/customer_search_params.rbi +++ b/rbi/stripe/params/customer_search_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CustomerSearchParams < Stripe::RequestParams + class CustomerSearchParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/customer_session_create_params.rbi b/rbi/stripe/params/customer_session_create_params.rbi index d6d7b0ef..cf4e8b0e 100644 --- a/rbi/stripe/params/customer_session_create_params.rbi +++ b/rbi/stripe/params/customer_session_create_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class CustomerSessionCreateParams < Stripe::RequestParams - class Components < Stripe::RequestParams - class BuyButton < Stripe::RequestParams + class CustomerSessionCreateParams < ::Stripe::RequestParams + class Components < ::Stripe::RequestParams + class BuyButton < ::Stripe::RequestParams # Whether the buy button is enabled. sig { returns(T::Boolean) } def enabled; end @@ -14,8 +14,122 @@ module Stripe sig { params(enabled: T::Boolean).void } def initialize(enabled: nil); end end - class PaymentElement < Stripe::RequestParams - class Features < Stripe::RequestParams + class CustomerSheet < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams + # A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the customer sheet displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list. + # + # If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"]. + sig { returns(T.nilable(T::Array[String])) } + def payment_method_allow_redisplay_filters; end + sig { + params(_payment_method_allow_redisplay_filters: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) + } + def payment_method_allow_redisplay_filters=(_payment_method_allow_redisplay_filters); end + # Controls whether the customer sheet displays the option to remove a saved payment method." + # + # Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods). + sig { returns(T.nilable(String)) } + def payment_method_remove; end + sig { params(_payment_method_remove: T.nilable(String)).returns(T.nilable(String)) } + def payment_method_remove=(_payment_method_remove); end + sig { + params(payment_method_allow_redisplay_filters: T.nilable(T::Array[String]), payment_method_remove: T.nilable(String)).void + } + def initialize( + payment_method_allow_redisplay_filters: nil, + payment_method_remove: nil + ); end + end + # Whether the customer sheet is enabled. + sig { returns(T::Boolean) } + def enabled; end + sig { params(_enabled: T::Boolean).returns(T::Boolean) } + def enabled=(_enabled); end + # This hash defines whether the customer sheet supports certain features. + sig { returns(T.nilable(CustomerSessionCreateParams::Components::CustomerSheet::Features)) } + def features; end + sig { + params(_features: T.nilable(CustomerSessionCreateParams::Components::CustomerSheet::Features)).returns(T.nilable(CustomerSessionCreateParams::Components::CustomerSheet::Features)) + } + def features=(_features); end + sig { + params(enabled: T::Boolean, features: T.nilable(CustomerSessionCreateParams::Components::CustomerSheet::Features)).void + } + def initialize(enabled: nil, features: nil); end + end + class MobilePaymentElement < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams + # A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the mobile payment element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list. + # + # If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"]. + sig { returns(T.nilable(T::Array[String])) } + def payment_method_allow_redisplay_filters; end + sig { + params(_payment_method_allow_redisplay_filters: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) + } + def payment_method_allow_redisplay_filters=(_payment_method_allow_redisplay_filters); end + # Controls whether or not the mobile payment element shows saved payment methods. + sig { returns(T.nilable(String)) } + def payment_method_redisplay; end + sig { params(_payment_method_redisplay: T.nilable(String)).returns(T.nilable(String)) } + def payment_method_redisplay=(_payment_method_redisplay); end + # Controls whether the mobile payment element displays the option to remove a saved payment method." + # + # Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods). + sig { returns(T.nilable(String)) } + def payment_method_remove; end + sig { params(_payment_method_remove: T.nilable(String)).returns(T.nilable(String)) } + def payment_method_remove=(_payment_method_remove); end + # Controls whether the mobile payment element displays a checkbox offering to save a new payment method. + # + # If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`. + sig { returns(T.nilable(String)) } + def payment_method_save; end + sig { params(_payment_method_save: T.nilable(String)).returns(T.nilable(String)) } + def payment_method_save=(_payment_method_save); end + # Allows overriding the value of allow_override when saving a new payment method when payment_method_save is set to disabled. Use values: "always", "limited", or "unspecified". + # + # If not specified, defaults to `nil` (no override value). + sig { returns(T.nilable(String)) } + def payment_method_save_allow_redisplay_override; end + sig { + params(_payment_method_save_allow_redisplay_override: T.nilable(String)).returns(T.nilable(String)) + } + def payment_method_save_allow_redisplay_override=( + _payment_method_save_allow_redisplay_override + ); end + sig { + params(payment_method_allow_redisplay_filters: T.nilable(T::Array[String]), payment_method_redisplay: T.nilable(String), payment_method_remove: T.nilable(String), payment_method_save: T.nilable(String), payment_method_save_allow_redisplay_override: T.nilable(String)).void + } + def initialize( + payment_method_allow_redisplay_filters: nil, + payment_method_redisplay: nil, + payment_method_remove: nil, + payment_method_save: nil, + payment_method_save_allow_redisplay_override: nil + ); end + end + # Whether the mobile payment element is enabled. + sig { returns(T::Boolean) } + def enabled; end + sig { params(_enabled: T::Boolean).returns(T::Boolean) } + def enabled=(_enabled); end + # This hash defines whether the mobile payment element supports certain features. + sig { + returns(T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement::Features)) + } + def features; end + sig { + params(_features: T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement::Features)).returns(T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement::Features)) + } + def features=(_features); end + sig { + params(enabled: T::Boolean, features: T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement::Features)).void + } + def initialize(enabled: nil, features: nil); end + end + class PaymentElement < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams # A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the Payment Element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list. # # If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"]. @@ -89,7 +203,7 @@ module Stripe } def initialize(enabled: nil, features: nil); end end - class PricingTable < Stripe::RequestParams + class PricingTable < ::Stripe::RequestParams # Whether the pricing table is enabled. sig { returns(T::Boolean) } def enabled; end @@ -105,6 +219,20 @@ module Stripe params(_buy_button: T.nilable(CustomerSessionCreateParams::Components::BuyButton)).returns(T.nilable(CustomerSessionCreateParams::Components::BuyButton)) } def buy_button=(_buy_button); end + # Configuration for the customer sheet. + sig { returns(T.nilable(CustomerSessionCreateParams::Components::CustomerSheet)) } + def customer_sheet; end + sig { + params(_customer_sheet: T.nilable(CustomerSessionCreateParams::Components::CustomerSheet)).returns(T.nilable(CustomerSessionCreateParams::Components::CustomerSheet)) + } + def customer_sheet=(_customer_sheet); end + # Configuration for the mobile payment element. + sig { returns(T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement)) } + def mobile_payment_element; end + sig { + params(_mobile_payment_element: T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement)).returns(T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement)) + } + def mobile_payment_element=(_mobile_payment_element); end # Configuration for the Payment Element. sig { returns(T.nilable(CustomerSessionCreateParams::Components::PaymentElement)) } def payment_element; end @@ -120,9 +248,15 @@ module Stripe } def pricing_table=(_pricing_table); end sig { - params(buy_button: T.nilable(CustomerSessionCreateParams::Components::BuyButton), payment_element: T.nilable(CustomerSessionCreateParams::Components::PaymentElement), pricing_table: T.nilable(CustomerSessionCreateParams::Components::PricingTable)).void + params(buy_button: T.nilable(CustomerSessionCreateParams::Components::BuyButton), customer_sheet: T.nilable(CustomerSessionCreateParams::Components::CustomerSheet), mobile_payment_element: T.nilable(CustomerSessionCreateParams::Components::MobilePaymentElement), payment_element: T.nilable(CustomerSessionCreateParams::Components::PaymentElement), pricing_table: T.nilable(CustomerSessionCreateParams::Components::PricingTable)).void } - def initialize(buy_button: nil, payment_element: nil, pricing_table: nil); end + def initialize( + buy_button: nil, + customer_sheet: nil, + mobile_payment_element: nil, + payment_element: nil, + pricing_table: nil + ); end end # Configuration for each component. Exactly 1 component must be enabled. sig { returns(CustomerSessionCreateParams::Components) } diff --git a/rbi/stripe/params/customer_tax_id_create_params.rbi b/rbi/stripe/params/customer_tax_id_create_params.rbi index 77b7ec05..3210ec46 100644 --- a/rbi/stripe/params/customer_tax_id_create_params.rbi +++ b/rbi/stripe/params/customer_tax_id_create_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CustomerTaxIdCreateParams < Stripe::RequestParams + class CustomerTaxIdCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/customer_tax_id_delete_params.rbi b/rbi/stripe/params/customer_tax_id_delete_params.rbi index 7adc3f23..e07f0c60 100644 --- a/rbi/stripe/params/customer_tax_id_delete_params.rbi +++ b/rbi/stripe/params/customer_tax_id_delete_params.rbi @@ -3,5 +3,5 @@ # typed: true module Stripe - class CustomerTaxIdDeleteParams < Stripe::RequestParams; end + class CustomerTaxIdDeleteParams < ::Stripe::RequestParams; end end \ No newline at end of file diff --git a/rbi/stripe/params/customer_tax_id_list_params.rbi b/rbi/stripe/params/customer_tax_id_list_params.rbi index 3e10acc5..c13f8217 100644 --- a/rbi/stripe/params/customer_tax_id_list_params.rbi +++ b/rbi/stripe/params/customer_tax_id_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CustomerTaxIdListParams < Stripe::RequestParams + class CustomerTaxIdListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/customer_tax_id_retrieve_params.rbi b/rbi/stripe/params/customer_tax_id_retrieve_params.rbi index f0f9c331..ca3736a6 100644 --- a/rbi/stripe/params/customer_tax_id_retrieve_params.rbi +++ b/rbi/stripe/params/customer_tax_id_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class CustomerTaxIdRetrieveParams < Stripe::RequestParams + class CustomerTaxIdRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/customer_update_params.rbi b/rbi/stripe/params/customer_update_params.rbi index f9a848d3..133a4111 100644 --- a/rbi/stripe/params/customer_update_params.rbi +++ b/rbi/stripe/params/customer_update_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class CustomerUpdateParams < Stripe::RequestParams - class Address < Stripe::RequestParams + class CustomerUpdateParams < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -47,8 +47,8 @@ module Stripe state: nil ); end end - class CashBalance < Stripe::RequestParams - class Settings < Stripe::RequestParams + class CashBalance < ::Stripe::RequestParams + class Settings < ::Stripe::RequestParams # Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://stripe.com/docs/payments/customer-balance/reconciliation). sig { returns(T.nilable(String)) } def reconciliation_mode; end @@ -68,8 +68,8 @@ module Stripe sig { params(settings: T.nilable(CustomerUpdateParams::CashBalance::Settings)).void } def initialize(settings: nil); end end - class InvoiceSettings < Stripe::RequestParams - class CustomField < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class CustomField < ::Stripe::RequestParams # The name of the custom field. This may be up to 40 characters. sig { returns(String) } def name; end @@ -83,7 +83,7 @@ module Stripe sig { params(name: String, value: String).void } def initialize(name: nil, value: nil); end end - class RenderingOptions < Stripe::RequestParams + class RenderingOptions < ::Stripe::RequestParams # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. sig { returns(T.nilable(T.any(String, String))) } def amount_tax_display; end @@ -139,8 +139,8 @@ module Stripe rendering_options: nil ); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -205,7 +205,7 @@ module Stripe } def initialize(address: nil, name: nil, phone: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes. sig { returns(T.nilable(String)) } def ip_address; end diff --git a/rbi/stripe/params/dispute_close_params.rbi b/rbi/stripe/params/dispute_close_params.rbi index 5ad64cce..bf3bc32e 100644 --- a/rbi/stripe/params/dispute_close_params.rbi +++ b/rbi/stripe/params/dispute_close_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class DisputeCloseParams < Stripe::RequestParams + class DisputeCloseParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/dispute_list_params.rbi b/rbi/stripe/params/dispute_list_params.rbi index 5d850528..3f2b8d83 100644 --- a/rbi/stripe/params/dispute_list_params.rbi +++ b/rbi/stripe/params/dispute_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class DisputeListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class DisputeListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/dispute_retrieve_params.rbi b/rbi/stripe/params/dispute_retrieve_params.rbi index 6a416b39..39176c00 100644 --- a/rbi/stripe/params/dispute_retrieve_params.rbi +++ b/rbi/stripe/params/dispute_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class DisputeRetrieveParams < Stripe::RequestParams + class DisputeRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/dispute_update_params.rbi b/rbi/stripe/params/dispute_update_params.rbi index 974628e3..56631da9 100644 --- a/rbi/stripe/params/dispute_update_params.rbi +++ b/rbi/stripe/params/dispute_update_params.rbi @@ -3,12 +3,12 @@ # typed: true module Stripe - class DisputeUpdateParams < Stripe::RequestParams - class Evidence < Stripe::RequestParams - class EnhancedEvidence < Stripe::RequestParams - class VisaCompellingEvidence3 < Stripe::RequestParams - class DisputedTransaction < Stripe::RequestParams - class ShippingAddress < Stripe::RequestParams + class DisputeUpdateParams < ::Stripe::RequestParams + class Evidence < ::Stripe::RequestParams + class EnhancedEvidence < ::Stripe::RequestParams + class VisaCompellingEvidence3 < ::Stripe::RequestParams + class DisputedTransaction < ::Stripe::RequestParams + class ShippingAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -111,8 +111,8 @@ module Stripe shipping_address: nil ); end end - class PriorUndisputedTransaction < Stripe::RequestParams - class ShippingAddress < Stripe::RequestParams + class PriorUndisputedTransaction < ::Stripe::RequestParams + class ShippingAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -238,7 +238,7 @@ module Stripe } def initialize(disputed_transaction: nil, prior_undisputed_transactions: nil); end end - class VisaCompliance < Stripe::RequestParams + class VisaCompliance < ::Stripe::RequestParams # A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute. sig { returns(T.nilable(T::Boolean)) } def fee_acknowledged; end diff --git a/rbi/stripe/params/entitlements/active_entitlement_list_params.rbi b/rbi/stripe/params/entitlements/active_entitlement_list_params.rbi index aa3b795e..f50dd3c1 100644 --- a/rbi/stripe/params/entitlements/active_entitlement_list_params.rbi +++ b/rbi/stripe/params/entitlements/active_entitlement_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Entitlements - class ActiveEntitlementListParams < Stripe::RequestParams + class ActiveEntitlementListParams < ::Stripe::RequestParams # The ID of the customer. sig { returns(String) } def customer; end diff --git a/rbi/stripe/params/entitlements/active_entitlement_retrieve_params.rbi b/rbi/stripe/params/entitlements/active_entitlement_retrieve_params.rbi index 75b15c4e..79dc4054 100644 --- a/rbi/stripe/params/entitlements/active_entitlement_retrieve_params.rbi +++ b/rbi/stripe/params/entitlements/active_entitlement_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Entitlements - class ActiveEntitlementRetrieveParams < Stripe::RequestParams + class ActiveEntitlementRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/entitlements/feature_create_params.rbi b/rbi/stripe/params/entitlements/feature_create_params.rbi index 6faf3e80..0fce7bf4 100644 --- a/rbi/stripe/params/entitlements/feature_create_params.rbi +++ b/rbi/stripe/params/entitlements/feature_create_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Entitlements - class FeatureCreateParams < Stripe::RequestParams + class FeatureCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/entitlements/feature_list_params.rbi b/rbi/stripe/params/entitlements/feature_list_params.rbi index 80bc289c..c74df282 100644 --- a/rbi/stripe/params/entitlements/feature_list_params.rbi +++ b/rbi/stripe/params/entitlements/feature_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Entitlements - class FeatureListParams < Stripe::RequestParams + class FeatureListParams < ::Stripe::RequestParams # If set, filter results to only include features with the given archive status. sig { returns(T.nilable(T::Boolean)) } def archived; end diff --git a/rbi/stripe/params/entitlements/feature_retrieve_params.rbi b/rbi/stripe/params/entitlements/feature_retrieve_params.rbi index 012270d8..dca328bc 100644 --- a/rbi/stripe/params/entitlements/feature_retrieve_params.rbi +++ b/rbi/stripe/params/entitlements/feature_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Entitlements - class FeatureRetrieveParams < Stripe::RequestParams + class FeatureRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/entitlements/feature_update_params.rbi b/rbi/stripe/params/entitlements/feature_update_params.rbi index 75fdae9d..8339cc83 100644 --- a/rbi/stripe/params/entitlements/feature_update_params.rbi +++ b/rbi/stripe/params/entitlements/feature_update_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Entitlements - class FeatureUpdateParams < Stripe::RequestParams + class FeatureUpdateParams < ::Stripe::RequestParams # Inactive features cannot be attached to new products and will not be returned from the features list endpoint. sig { returns(T.nilable(T::Boolean)) } def active; end diff --git a/rbi/stripe/params/ephemeral_key_create_params.rbi b/rbi/stripe/params/ephemeral_key_create_params.rbi index 8c202f88..dd829ac2 100644 --- a/rbi/stripe/params/ephemeral_key_create_params.rbi +++ b/rbi/stripe/params/ephemeral_key_create_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class EphemeralKeyCreateParams < Stripe::RequestParams + class EphemeralKeyCreateParams < ::Stripe::RequestParams # The ID of the Customer you'd like to modify using the resulting ephemeral key. sig { returns(T.nilable(String)) } def customer; end diff --git a/rbi/stripe/params/ephemeral_key_delete_params.rbi b/rbi/stripe/params/ephemeral_key_delete_params.rbi index e741f197..0249d88f 100644 --- a/rbi/stripe/params/ephemeral_key_delete_params.rbi +++ b/rbi/stripe/params/ephemeral_key_delete_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class EphemeralKeyDeleteParams < Stripe::RequestParams + class EphemeralKeyDeleteParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/event_list_params.rbi b/rbi/stripe/params/event_list_params.rbi index 69dc245d..e517c722 100644 --- a/rbi/stripe/params/event_list_params.rbi +++ b/rbi/stripe/params/event_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class EventListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class EventListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/event_retrieve_params.rbi b/rbi/stripe/params/event_retrieve_params.rbi index c01398b1..93595086 100644 --- a/rbi/stripe/params/event_retrieve_params.rbi +++ b/rbi/stripe/params/event_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class EventRetrieveParams < Stripe::RequestParams + class EventRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/exchange_rate_list_params.rbi b/rbi/stripe/params/exchange_rate_list_params.rbi index 56e128fd..d12f4843 100644 --- a/rbi/stripe/params/exchange_rate_list_params.rbi +++ b/rbi/stripe/params/exchange_rate_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class ExchangeRateListParams < Stripe::RequestParams + class ExchangeRateListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is the currency that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with the exchange rate for currency X your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/exchange_rate_retrieve_params.rbi b/rbi/stripe/params/exchange_rate_retrieve_params.rbi index 40b8f8e8..0a2301c6 100644 --- a/rbi/stripe/params/exchange_rate_retrieve_params.rbi +++ b/rbi/stripe/params/exchange_rate_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class ExchangeRateRetrieveParams < Stripe::RequestParams + class ExchangeRateRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/file_create_params.rbi b/rbi/stripe/params/file_create_params.rbi index dd3f24d7..dcbeb4bd 100644 --- a/rbi/stripe/params/file_create_params.rbi +++ b/rbi/stripe/params/file_create_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class FileCreateParams < Stripe::RequestParams - class FileLinkData < Stripe::RequestParams + class FileCreateParams < ::Stripe::RequestParams + class FileLinkData < ::Stripe::RequestParams # Set this to `true` to create a file link for the newly created file. Creating a link is only possible when the file's `purpose` is one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `issuing_regulatory_reporting`, `pci_document`, `tax_document_user_upload`, `terminal_android_apk`, or `terminal_reader_splashscreen`. sig { returns(T::Boolean) } def create; end diff --git a/rbi/stripe/params/file_link_create_params.rbi b/rbi/stripe/params/file_link_create_params.rbi index 4b2b81c3..ba50458f 100644 --- a/rbi/stripe/params/file_link_create_params.rbi +++ b/rbi/stripe/params/file_link_create_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class FileLinkCreateParams < Stripe::RequestParams + class FileLinkCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/file_link_list_params.rbi b/rbi/stripe/params/file_link_list_params.rbi index a20e0b22..4bd51a70 100644 --- a/rbi/stripe/params/file_link_list_params.rbi +++ b/rbi/stripe/params/file_link_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class FileLinkListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class FileLinkListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/file_link_retrieve_params.rbi b/rbi/stripe/params/file_link_retrieve_params.rbi index 30d5e89b..5313ab7d 100644 --- a/rbi/stripe/params/file_link_retrieve_params.rbi +++ b/rbi/stripe/params/file_link_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class FileLinkRetrieveParams < Stripe::RequestParams + class FileLinkRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/file_link_update_params.rbi b/rbi/stripe/params/file_link_update_params.rbi index 4c4d5ae1..3ed647e8 100644 --- a/rbi/stripe/params/file_link_update_params.rbi +++ b/rbi/stripe/params/file_link_update_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class FileLinkUpdateParams < Stripe::RequestParams + class FileLinkUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/file_list_params.rbi b/rbi/stripe/params/file_list_params.rbi index a0f85247..449a1aac 100644 --- a/rbi/stripe/params/file_list_params.rbi +++ b/rbi/stripe/params/file_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class FileListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class FileListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/file_retrieve_params.rbi b/rbi/stripe/params/file_retrieve_params.rbi index 3a9866ad..a5c72771 100644 --- a/rbi/stripe/params/file_retrieve_params.rbi +++ b/rbi/stripe/params/file_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class FileRetrieveParams < Stripe::RequestParams + class FileRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/financial_connections/account_disconnect_params.rbi b/rbi/stripe/params/financial_connections/account_disconnect_params.rbi index e41f2888..b5bc5a84 100644 --- a/rbi/stripe/params/financial_connections/account_disconnect_params.rbi +++ b/rbi/stripe/params/financial_connections/account_disconnect_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module FinancialConnections - class AccountDisconnectParams < Stripe::RequestParams + class AccountDisconnectParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/financial_connections/account_list_owners_params.rbi b/rbi/stripe/params/financial_connections/account_list_owners_params.rbi index a85877de..faf0500a 100644 --- a/rbi/stripe/params/financial_connections/account_list_owners_params.rbi +++ b/rbi/stripe/params/financial_connections/account_list_owners_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module FinancialConnections - class AccountListOwnersParams < Stripe::RequestParams + class AccountListOwnersParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/financial_connections/account_list_params.rbi b/rbi/stripe/params/financial_connections/account_list_params.rbi index f4fd2732..d409e567 100644 --- a/rbi/stripe/params/financial_connections/account_list_params.rbi +++ b/rbi/stripe/params/financial_connections/account_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module FinancialConnections - class AccountListParams < Stripe::RequestParams - class AccountHolder < Stripe::RequestParams + class AccountListParams < ::Stripe::RequestParams + class AccountHolder < ::Stripe::RequestParams # The ID of the Stripe account whose accounts will be retrieved. sig { returns(T.nilable(String)) } def account; end diff --git a/rbi/stripe/params/financial_connections/account_owner_list_params.rbi b/rbi/stripe/params/financial_connections/account_owner_list_params.rbi index cdfdbd14..b27242f1 100644 --- a/rbi/stripe/params/financial_connections/account_owner_list_params.rbi +++ b/rbi/stripe/params/financial_connections/account_owner_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module FinancialConnections - class AccountOwnerListParams < Stripe::RequestParams + class AccountOwnerListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/financial_connections/account_refresh_account_params.rbi b/rbi/stripe/params/financial_connections/account_refresh_account_params.rbi index 66b3e8cf..f0fde388 100644 --- a/rbi/stripe/params/financial_connections/account_refresh_account_params.rbi +++ b/rbi/stripe/params/financial_connections/account_refresh_account_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module FinancialConnections - class AccountRefreshAccountParams < Stripe::RequestParams + class AccountRefreshAccountParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/financial_connections/account_refresh_params.rbi b/rbi/stripe/params/financial_connections/account_refresh_params.rbi index 4937df50..5c81b61a 100644 --- a/rbi/stripe/params/financial_connections/account_refresh_params.rbi +++ b/rbi/stripe/params/financial_connections/account_refresh_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module FinancialConnections - class AccountRefreshParams < Stripe::RequestParams + class AccountRefreshParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/financial_connections/account_retrieve_params.rbi b/rbi/stripe/params/financial_connections/account_retrieve_params.rbi index 0186a4d9..7a298eeb 100644 --- a/rbi/stripe/params/financial_connections/account_retrieve_params.rbi +++ b/rbi/stripe/params/financial_connections/account_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module FinancialConnections - class AccountRetrieveParams < Stripe::RequestParams + class AccountRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/financial_connections/account_subscribe_params.rbi b/rbi/stripe/params/financial_connections/account_subscribe_params.rbi index e519b6b7..1584823d 100644 --- a/rbi/stripe/params/financial_connections/account_subscribe_params.rbi +++ b/rbi/stripe/params/financial_connections/account_subscribe_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module FinancialConnections - class AccountSubscribeParams < Stripe::RequestParams + class AccountSubscribeParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/financial_connections/account_unsubscribe_params.rbi b/rbi/stripe/params/financial_connections/account_unsubscribe_params.rbi index 9f5cc86f..e896be73 100644 --- a/rbi/stripe/params/financial_connections/account_unsubscribe_params.rbi +++ b/rbi/stripe/params/financial_connections/account_unsubscribe_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module FinancialConnections - class AccountUnsubscribeParams < Stripe::RequestParams + class AccountUnsubscribeParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/financial_connections/session_create_params.rbi b/rbi/stripe/params/financial_connections/session_create_params.rbi index da7d55be..79b1165c 100644 --- a/rbi/stripe/params/financial_connections/session_create_params.rbi +++ b/rbi/stripe/params/financial_connections/session_create_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module FinancialConnections - class SessionCreateParams < Stripe::RequestParams - class AccountHolder < Stripe::RequestParams + class SessionCreateParams < ::Stripe::RequestParams + class AccountHolder < ::Stripe::RequestParams # The ID of the Stripe account whose accounts will be retrieved. Should only be present if `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -24,7 +24,7 @@ module Stripe sig { params(account: T.nilable(String), customer: T.nilable(String), type: String).void } def initialize(account: nil, customer: nil, type: nil); end end - class Filters < Stripe::RequestParams + class Filters < ::Stripe::RequestParams # Restricts the Session to subcategories of accounts that can be linked. Valid subcategories are: `checking`, `savings`, `mortgage`, `line_of_credit`, `credit_card`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end diff --git a/rbi/stripe/params/financial_connections/session_retrieve_params.rbi b/rbi/stripe/params/financial_connections/session_retrieve_params.rbi index 636cf592..5874f3b1 100644 --- a/rbi/stripe/params/financial_connections/session_retrieve_params.rbi +++ b/rbi/stripe/params/financial_connections/session_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module FinancialConnections - class SessionRetrieveParams < Stripe::RequestParams + class SessionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/financial_connections/transaction_list_params.rbi b/rbi/stripe/params/financial_connections/transaction_list_params.rbi index a46c9b4a..0c188abd 100644 --- a/rbi/stripe/params/financial_connections/transaction_list_params.rbi +++ b/rbi/stripe/params/financial_connections/transaction_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module FinancialConnections - class TransactionListParams < Stripe::RequestParams - class TransactedAt < Stripe::RequestParams + class TransactionListParams < ::Stripe::RequestParams + class TransactedAt < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -31,7 +31,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class TransactionRefresh < Stripe::RequestParams + class TransactionRefresh < ::Stripe::RequestParams # Return results where the transactions were created or updated by a refresh that took place after this refresh (non-inclusive). sig { returns(String) } def after; end diff --git a/rbi/stripe/params/financial_connections/transaction_retrieve_params.rbi b/rbi/stripe/params/financial_connections/transaction_retrieve_params.rbi index b30ad925..de713f4f 100644 --- a/rbi/stripe/params/financial_connections/transaction_retrieve_params.rbi +++ b/rbi/stripe/params/financial_connections/transaction_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module FinancialConnections - class TransactionRetrieveParams < Stripe::RequestParams + class TransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/forwarding/request_create_params.rbi b/rbi/stripe/params/forwarding/request_create_params.rbi index 506ab41d..c71995e9 100644 --- a/rbi/stripe/params/forwarding/request_create_params.rbi +++ b/rbi/stripe/params/forwarding/request_create_params.rbi @@ -4,9 +4,9 @@ # typed: true module Stripe module Forwarding - class RequestCreateParams < Stripe::RequestParams - class Request < Stripe::RequestParams - class Header < Stripe::RequestParams + class RequestCreateParams < ::Stripe::RequestParams + class Request < ::Stripe::RequestParams + class Header < ::Stripe::RequestParams # The header name. sig { returns(String) } def name; end diff --git a/rbi/stripe/params/forwarding/request_list_params.rbi b/rbi/stripe/params/forwarding/request_list_params.rbi index a3b01c2f..371c93ea 100644 --- a/rbi/stripe/params/forwarding/request_list_params.rbi +++ b/rbi/stripe/params/forwarding/request_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Forwarding - class RequestListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class RequestListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Return results where the `created` field is greater than this value. sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/forwarding/request_retrieve_params.rbi b/rbi/stripe/params/forwarding/request_retrieve_params.rbi index 94031687..6a495508 100644 --- a/rbi/stripe/params/forwarding/request_retrieve_params.rbi +++ b/rbi/stripe/params/forwarding/request_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Forwarding - class RequestRetrieveParams < Stripe::RequestParams + class RequestRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/identity/verification_report_list_params.rbi b/rbi/stripe/params/identity/verification_report_list_params.rbi index 85886242..746caa22 100644 --- a/rbi/stripe/params/identity/verification_report_list_params.rbi +++ b/rbi/stripe/params/identity/verification_report_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Identity - class VerificationReportListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class VerificationReportListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/identity/verification_report_retrieve_params.rbi b/rbi/stripe/params/identity/verification_report_retrieve_params.rbi index 881777a5..88de3121 100644 --- a/rbi/stripe/params/identity/verification_report_retrieve_params.rbi +++ b/rbi/stripe/params/identity/verification_report_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Identity - class VerificationReportRetrieveParams < Stripe::RequestParams + class VerificationReportRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/identity/verification_session_cancel_params.rbi b/rbi/stripe/params/identity/verification_session_cancel_params.rbi index e1a63942..79b98535 100644 --- a/rbi/stripe/params/identity/verification_session_cancel_params.rbi +++ b/rbi/stripe/params/identity/verification_session_cancel_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Identity - class VerificationSessionCancelParams < Stripe::RequestParams + class VerificationSessionCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/identity/verification_session_create_params.rbi b/rbi/stripe/params/identity/verification_session_create_params.rbi index 05dfb778..8235b168 100644 --- a/rbi/stripe/params/identity/verification_session_create_params.rbi +++ b/rbi/stripe/params/identity/verification_session_create_params.rbi @@ -4,9 +4,9 @@ # typed: true module Stripe module Identity - class VerificationSessionCreateParams < Stripe::RequestParams - class Options < Stripe::RequestParams - class Document < Stripe::RequestParams + class VerificationSessionCreateParams < ::Stripe::RequestParams + class Options < ::Stripe::RequestParams + class Document < ::Stripe::RequestParams # Array of strings of allowed identity document types. If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code. sig { returns(T.nilable(T::Array[String])) } def allowed_types; end @@ -57,7 +57,7 @@ module Stripe } def initialize(document: nil); end end - class ProvidedDetails < Stripe::RequestParams + class ProvidedDetails < ::Stripe::RequestParams # Email of user being verified sig { returns(T.nilable(String)) } def email; end @@ -71,7 +71,7 @@ module Stripe sig { params(email: T.nilable(String), phone: T.nilable(String)).void } def initialize(email: nil, phone: nil); end end - class RelatedPerson < Stripe::RequestParams + class RelatedPerson < ::Stripe::RequestParams # A token representing a connected account. If provided, the person parameter is also required and must be associated with the account. sig { returns(String) } def account; end diff --git a/rbi/stripe/params/identity/verification_session_list_params.rbi b/rbi/stripe/params/identity/verification_session_list_params.rbi index cd6e7a78..b4127900 100644 --- a/rbi/stripe/params/identity/verification_session_list_params.rbi +++ b/rbi/stripe/params/identity/verification_session_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Identity - class VerificationSessionListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class VerificationSessionListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/identity/verification_session_redact_params.rbi b/rbi/stripe/params/identity/verification_session_redact_params.rbi index 2818caf6..fc4138f0 100644 --- a/rbi/stripe/params/identity/verification_session_redact_params.rbi +++ b/rbi/stripe/params/identity/verification_session_redact_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Identity - class VerificationSessionRedactParams < Stripe::RequestParams + class VerificationSessionRedactParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/identity/verification_session_retrieve_params.rbi b/rbi/stripe/params/identity/verification_session_retrieve_params.rbi index 2a29e4d7..123fdb1e 100644 --- a/rbi/stripe/params/identity/verification_session_retrieve_params.rbi +++ b/rbi/stripe/params/identity/verification_session_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Identity - class VerificationSessionRetrieveParams < Stripe::RequestParams + class VerificationSessionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/identity/verification_session_update_params.rbi b/rbi/stripe/params/identity/verification_session_update_params.rbi index 39682b1c..b5524195 100644 --- a/rbi/stripe/params/identity/verification_session_update_params.rbi +++ b/rbi/stripe/params/identity/verification_session_update_params.rbi @@ -4,9 +4,9 @@ # typed: true module Stripe module Identity - class VerificationSessionUpdateParams < Stripe::RequestParams - class Options < Stripe::RequestParams - class Document < Stripe::RequestParams + class VerificationSessionUpdateParams < ::Stripe::RequestParams + class Options < ::Stripe::RequestParams + class Document < ::Stripe::RequestParams # Array of strings of allowed identity document types. If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code. sig { returns(T.nilable(T::Array[String])) } def allowed_types; end @@ -57,7 +57,7 @@ module Stripe } def initialize(document: nil); end end - class ProvidedDetails < Stripe::RequestParams + class ProvidedDetails < ::Stripe::RequestParams # Email of user being verified sig { returns(T.nilable(String)) } def email; end diff --git a/rbi/stripe/params/invoice_add_lines_params.rbi b/rbi/stripe/params/invoice_add_lines_params.rbi index 3808e36b..0bbc9ecb 100644 --- a/rbi/stripe/params/invoice_add_lines_params.rbi +++ b/rbi/stripe/params/invoice_add_lines_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class InvoiceAddLinesParams < Stripe::RequestParams - class Line < Stripe::RequestParams - class Discount < Stripe::RequestParams + class InvoiceAddLinesParams < ::Stripe::RequestParams + class Line < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -26,7 +26,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Period < Stripe::RequestParams + class Period < ::Stripe::RequestParams # The end of the period, which must be greater than or equal to the start. This value is inclusive. sig { returns(Integer) } def end; end @@ -40,8 +40,8 @@ module Stripe sig { params(end_: Integer, start: Integer).void } def initialize(end_: nil, start: nil); end end - class PriceData < Stripe::RequestParams - class ProductData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class ProductData < ::Stripe::RequestParams # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. sig { returns(T.nilable(String)) } def description; end @@ -130,7 +130,7 @@ module Stripe unit_amount_decimal: nil ); end end - class Pricing < Stripe::RequestParams + class Pricing < ::Stripe::RequestParams # The ID of the price object. sig { returns(T.nilable(String)) } def price; end @@ -139,8 +139,8 @@ module Stripe sig { params(price: T.nilable(String)).void } def initialize(price: nil); end end - class TaxAmount < Stripe::RequestParams - class TaxRateData < Stripe::RequestParams + class TaxAmount < ::Stripe::RequestParams + class TaxRateData < ::Stripe::RequestParams # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). sig { returns(T.nilable(String)) } def country; end diff --git a/rbi/stripe/params/invoice_attach_payment_params.rbi b/rbi/stripe/params/invoice_attach_payment_params.rbi index e2906fca..91561761 100644 --- a/rbi/stripe/params/invoice_attach_payment_params.rbi +++ b/rbi/stripe/params/invoice_attach_payment_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class InvoiceAttachPaymentParams < Stripe::RequestParams + class InvoiceAttachPaymentParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -14,7 +14,14 @@ module Stripe def payment_intent; end sig { params(_payment_intent: T.nilable(String)).returns(T.nilable(String)) } def payment_intent=(_payment_intent); end - sig { params(expand: T.nilable(T::Array[String]), payment_intent: T.nilable(String)).void } - def initialize(expand: nil, payment_intent: nil); end + # The ID of the PaymentRecord to attach to the invoice. + sig { returns(T.nilable(String)) } + def payment_record; end + sig { params(_payment_record: T.nilable(String)).returns(T.nilable(String)) } + def payment_record=(_payment_record); end + sig { + params(expand: T.nilable(T::Array[String]), payment_intent: T.nilable(String), payment_record: T.nilable(String)).void + } + def initialize(expand: nil, payment_intent: nil, payment_record: nil); end end end \ No newline at end of file diff --git a/rbi/stripe/params/invoice_create_params.rbi b/rbi/stripe/params/invoice_create_params.rbi index 80944938..64e698b3 100644 --- a/rbi/stripe/params/invoice_create_params.rbi +++ b/rbi/stripe/params/invoice_create_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class InvoiceCreateParams < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class InvoiceCreateParams < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -36,7 +36,7 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class CustomField < Stripe::RequestParams + class CustomField < ::Stripe::RequestParams # The name of the custom field. This may be up to 40 characters. sig { returns(String) } def name; end @@ -50,7 +50,7 @@ module Stripe sig { params(name: String, value: String).void } def initialize(name: nil, value: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -71,7 +71,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class FromInvoice < Stripe::RequestParams + class FromInvoice < ::Stripe::RequestParams # The relation between the new invoice and the original invoice. Currently, only 'revision' is permitted sig { returns(String) } def action; end @@ -85,7 +85,7 @@ module Stripe sig { params(action: String, invoice: String).void } def initialize(action: nil, invoice: nil); end end - class Issuer < Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -99,10 +99,10 @@ module Stripe sig { params(account: T.nilable(String), type: String).void } def initialize(account: nil, type: nil); end end - class PaymentSettings < Stripe::RequestParams - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentSettings < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Transaction type of the mandate. sig { returns(T.nilable(String)) } def transaction_type; end @@ -130,7 +130,7 @@ module Stripe } def initialize(mandate_options: nil, verification_method: nil); end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Preferred language of the Bancontact authorization page that the customer is redirected to. sig { returns(T.nilable(String)) } def preferred_language; end @@ -139,9 +139,9 @@ module Stripe sig { params(preferred_language: T.nilable(String)).void } def initialize(preferred_language: nil); end end - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams - class Plan < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams + class Plan < ::Stripe::RequestParams # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. sig { returns(T.nilable(Integer)) } def count; end @@ -204,9 +204,9 @@ module Stripe } def initialize(installments: nil, request_three_d_secure: nil); end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -253,11 +253,11 @@ module Stripe } def initialize(bank_transfer: nil, funding_type: nil); end end - class Konbini < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -419,8 +419,8 @@ module Stripe payment_method_types: nil ); end end - class Rendering < Stripe::RequestParams - class Pdf < Stripe::RequestParams + class Rendering < ::Stripe::RequestParams + class Pdf < ::Stripe::RequestParams # Page size for invoice PDF. Can be set to `a4`, `letter`, or `auto`. # If set to `auto`, invoice PDF page size defaults to `a4` for customers with # Japanese locale and `letter` for customers with other locales. @@ -462,10 +462,10 @@ module Stripe } def initialize(amount_tax_display: nil, pdf: nil, template: nil, template_version: nil); end end - class ShippingCost < Stripe::RequestParams - class ShippingRateData < Stripe::RequestParams - class DeliveryEstimate < Stripe::RequestParams - class Maximum < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams + class ShippingRateData < ::Stripe::RequestParams + class DeliveryEstimate < ::Stripe::RequestParams + class Maximum < ::Stripe::RequestParams # A unit of time. sig { returns(String) } def unit; end @@ -479,7 +479,7 @@ module Stripe sig { params(unit: String, value: Integer).void } def initialize(unit: nil, value: nil); end end - class Minimum < Stripe::RequestParams + class Minimum < ::Stripe::RequestParams # A unit of time. sig { returns(String) } def unit; end @@ -516,8 +516,8 @@ module Stripe } def initialize(maximum: nil, minimum: nil); end end - class FixedAmount < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class FixedAmount < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A non-negative integer in cents representing how much to charge. sig { returns(Integer) } def amount; end @@ -628,8 +628,8 @@ module Stripe } def initialize(shipping_rate: nil, shipping_rate_data: nil); end end - class ShippingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class ShippingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -694,7 +694,7 @@ module Stripe } def initialize(address: nil, name: nil, phone: nil); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when the invoice is paid. If no amount is set, the full amount is transferred. sig { returns(T.nilable(Integer)) } def amount; end diff --git a/rbi/stripe/params/invoice_create_preview_params.rbi b/rbi/stripe/params/invoice_create_preview_params.rbi index 7244bdfc..b91aa48e 100644 --- a/rbi/stripe/params/invoice_create_preview_params.rbi +++ b/rbi/stripe/params/invoice_create_preview_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class InvoiceCreatePreviewParams < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class InvoiceCreatePreviewParams < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -36,8 +36,8 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class CustomerDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class CustomerDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -80,8 +80,8 @@ module Stripe state: nil ); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -146,7 +146,7 @@ module Stripe } def initialize(address: nil, name: nil, phone: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes. sig { returns(T.nilable(String)) } def ip_address; end @@ -155,7 +155,7 @@ module Stripe sig { params(ip_address: T.nilable(String)).void } def initialize(ip_address: nil); end end - class TaxId < Stripe::RequestParams + class TaxId < ::Stripe::RequestParams # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` sig { returns(String) } def type; end @@ -213,7 +213,7 @@ module Stripe } def initialize(address: nil, shipping: nil, tax: nil, tax_exempt: nil, tax_ids: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -234,8 +234,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class InvoiceItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class InvoiceItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -256,7 +256,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Period < Stripe::RequestParams + class Period < ::Stripe::RequestParams # The end of the period, which must be greater than or equal to the start. This value is inclusive. sig { returns(Integer) } def end; end @@ -270,7 +270,7 @@ module Stripe sig { params(end_: Integer, start: Integer).void } def initialize(end_: nil, start: nil); end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -421,7 +421,7 @@ module Stripe unit_amount_decimal: nil ); end end - class Issuer < Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -435,9 +435,9 @@ module Stripe sig { params(account: T.nilable(String), type: String).void } def initialize(account: nil, type: nil); end end - class ScheduleDetails < Stripe::RequestParams - class BillingMode < Stripe::RequestParams - class Flexible < Stripe::RequestParams + class ScheduleDetails < ::Stripe::RequestParams + class BillingMode < ::Stripe::RequestParams + class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. sig { returns(T.nilable(String)) } def proration_discounts; end @@ -465,9 +465,9 @@ module Stripe } def initialize(flexible: nil, type: nil); end end - class Phase < Stripe::RequestParams - class AddInvoiceItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class Phase < ::Stripe::RequestParams + class AddInvoiceItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -488,8 +488,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Period < Stripe::RequestParams - class End < Stripe::RequestParams + class Period < ::Stripe::RequestParams + class End < ::Stripe::RequestParams # A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -503,7 +503,7 @@ module Stripe sig { params(timestamp: T.nilable(Integer), type: String).void } def initialize(timestamp: nil, type: nil); end end - class Start < Stripe::RequestParams + class Start < ::Stripe::RequestParams # A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -540,7 +540,7 @@ module Stripe } def initialize(end_: nil, start: nil); end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -641,8 +641,8 @@ module Stripe tax_rates: nil ); end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -675,7 +675,7 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class BillingThresholds < Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period sig { returns(T.nilable(Integer)) } def amount_gte; end @@ -693,7 +693,7 @@ module Stripe } def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -714,7 +714,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Duration < Stripe::RequestParams + class Duration < ::Stripe::RequestParams # Specifies phase duration. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -728,8 +728,8 @@ module Stripe sig { params(interval: String, interval_count: T.nilable(Integer)).void } def initialize(interval: nil, interval_count: nil); end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -769,8 +769,8 @@ module Stripe } def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil); end end - class Item < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class Item < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) sig { returns(Integer) } def usage_gte; end @@ -779,7 +779,7 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -800,8 +800,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -931,7 +931,7 @@ module Stripe tax_rates: nil ); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Float)) } def amount_percent; end @@ -1151,9 +1151,9 @@ module Stripe proration_behavior: nil ); end end - class SubscriptionDetails < Stripe::RequestParams - class BillingMode < Stripe::RequestParams - class Flexible < Stripe::RequestParams + class SubscriptionDetails < ::Stripe::RequestParams + class BillingMode < ::Stripe::RequestParams + class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. sig { returns(T.nilable(String)) } def proration_discounts; end @@ -1181,8 +1181,8 @@ module Stripe } def initialize(flexible: nil, type: nil); end end - class Item < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class Item < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) sig { returns(Integer) } def usage_gte; end @@ -1191,7 +1191,7 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -1212,8 +1212,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end diff --git a/rbi/stripe/params/invoice_delete_params.rbi b/rbi/stripe/params/invoice_delete_params.rbi index 0e0fdc5f..39eefbdb 100644 --- a/rbi/stripe/params/invoice_delete_params.rbi +++ b/rbi/stripe/params/invoice_delete_params.rbi @@ -3,5 +3,5 @@ # typed: true module Stripe - class InvoiceDeleteParams < Stripe::RequestParams; end + class InvoiceDeleteParams < ::Stripe::RequestParams; end end \ No newline at end of file diff --git a/rbi/stripe/params/invoice_finalize_invoice_params.rbi b/rbi/stripe/params/invoice_finalize_invoice_params.rbi index b9a1dfc6..ac4dc0bd 100644 --- a/rbi/stripe/params/invoice_finalize_invoice_params.rbi +++ b/rbi/stripe/params/invoice_finalize_invoice_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class InvoiceFinalizeInvoiceParams < Stripe::RequestParams + class InvoiceFinalizeInvoiceParams < ::Stripe::RequestParams # Controls whether Stripe performs [automatic collection](https://stripe.com/docs/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action. sig { returns(T.nilable(T::Boolean)) } def auto_advance; end diff --git a/rbi/stripe/params/invoice_item_create_params.rbi b/rbi/stripe/params/invoice_item_create_params.rbi index 8670500a..2e05b1b6 100644 --- a/rbi/stripe/params/invoice_item_create_params.rbi +++ b/rbi/stripe/params/invoice_item_create_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class InvoiceItemCreateParams < Stripe::RequestParams - class Discount < Stripe::RequestParams + class InvoiceItemCreateParams < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -25,7 +25,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Period < Stripe::RequestParams + class Period < ::Stripe::RequestParams # The end of the period, which must be greater than or equal to the start. This value is inclusive. sig { returns(Integer) } def end; end @@ -39,7 +39,7 @@ module Stripe sig { params(end_: Integer, start: Integer).void } def initialize(end_: nil, start: nil); end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -76,7 +76,7 @@ module Stripe unit_amount_decimal: nil ); end end - class Pricing < Stripe::RequestParams + class Pricing < ::Stripe::RequestParams # The ID of the price object. sig { returns(T.nilable(String)) } def price; end diff --git a/rbi/stripe/params/invoice_item_delete_params.rbi b/rbi/stripe/params/invoice_item_delete_params.rbi index 91a6022f..d6276f69 100644 --- a/rbi/stripe/params/invoice_item_delete_params.rbi +++ b/rbi/stripe/params/invoice_item_delete_params.rbi @@ -3,5 +3,5 @@ # typed: true module Stripe - class InvoiceItemDeleteParams < Stripe::RequestParams; end + class InvoiceItemDeleteParams < ::Stripe::RequestParams; end end \ No newline at end of file diff --git a/rbi/stripe/params/invoice_item_list_params.rbi b/rbi/stripe/params/invoice_item_list_params.rbi index b19ecc07..d0998edd 100644 --- a/rbi/stripe/params/invoice_item_list_params.rbi +++ b/rbi/stripe/params/invoice_item_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class InvoiceItemListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class InvoiceItemListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/invoice_item_retrieve_params.rbi b/rbi/stripe/params/invoice_item_retrieve_params.rbi index 45230521..0f0f5c53 100644 --- a/rbi/stripe/params/invoice_item_retrieve_params.rbi +++ b/rbi/stripe/params/invoice_item_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class InvoiceItemRetrieveParams < Stripe::RequestParams + class InvoiceItemRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/invoice_item_update_params.rbi b/rbi/stripe/params/invoice_item_update_params.rbi index a669ea23..f97cef81 100644 --- a/rbi/stripe/params/invoice_item_update_params.rbi +++ b/rbi/stripe/params/invoice_item_update_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class InvoiceItemUpdateParams < Stripe::RequestParams - class Discount < Stripe::RequestParams + class InvoiceItemUpdateParams < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -25,7 +25,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Period < Stripe::RequestParams + class Period < ::Stripe::RequestParams # The end of the period, which must be greater than or equal to the start. This value is inclusive. sig { returns(Integer) } def end; end @@ -39,7 +39,7 @@ module Stripe sig { params(end_: Integer, start: Integer).void } def initialize(end_: nil, start: nil); end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -76,7 +76,7 @@ module Stripe unit_amount_decimal: nil ); end end - class Pricing < Stripe::RequestParams + class Pricing < ::Stripe::RequestParams # The ID of the price object. sig { returns(T.nilable(String)) } def price; end diff --git a/rbi/stripe/params/invoice_line_item_list_params.rbi b/rbi/stripe/params/invoice_line_item_list_params.rbi index 8da50b9d..c30bca49 100644 --- a/rbi/stripe/params/invoice_line_item_list_params.rbi +++ b/rbi/stripe/params/invoice_line_item_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class InvoiceLineItemListParams < Stripe::RequestParams + class InvoiceLineItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/invoice_line_item_update_params.rbi b/rbi/stripe/params/invoice_line_item_update_params.rbi index 80f622f2..3c38fe4d 100644 --- a/rbi/stripe/params/invoice_line_item_update_params.rbi +++ b/rbi/stripe/params/invoice_line_item_update_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class InvoiceLineItemUpdateParams < Stripe::RequestParams - class Discount < Stripe::RequestParams + class InvoiceLineItemUpdateParams < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -25,7 +25,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Period < Stripe::RequestParams + class Period < ::Stripe::RequestParams # The end of the period, which must be greater than or equal to the start. This value is inclusive. sig { returns(Integer) } def end; end @@ -39,8 +39,8 @@ module Stripe sig { params(end_: Integer, start: Integer).void } def initialize(end_: nil, start: nil); end end - class PriceData < Stripe::RequestParams - class ProductData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class ProductData < ::Stripe::RequestParams # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. sig { returns(T.nilable(String)) } def description; end @@ -129,7 +129,7 @@ module Stripe unit_amount_decimal: nil ); end end - class Pricing < Stripe::RequestParams + class Pricing < ::Stripe::RequestParams # The ID of the price object. sig { returns(T.nilable(String)) } def price; end @@ -138,8 +138,8 @@ module Stripe sig { params(price: T.nilable(String)).void } def initialize(price: nil); end end - class TaxAmount < Stripe::RequestParams - class TaxRateData < Stripe::RequestParams + class TaxAmount < ::Stripe::RequestParams + class TaxRateData < ::Stripe::RequestParams # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). sig { returns(T.nilable(String)) } def country; end diff --git a/rbi/stripe/params/invoice_list_params.rbi b/rbi/stripe/params/invoice_list_params.rbi index e6a5549a..95acfde4 100644 --- a/rbi/stripe/params/invoice_list_params.rbi +++ b/rbi/stripe/params/invoice_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class InvoiceListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class InvoiceListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -30,7 +30,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class DueDate < Stripe::RequestParams + class DueDate < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/invoice_mark_uncollectible_params.rbi b/rbi/stripe/params/invoice_mark_uncollectible_params.rbi index 5c3c38b0..15b5c050 100644 --- a/rbi/stripe/params/invoice_mark_uncollectible_params.rbi +++ b/rbi/stripe/params/invoice_mark_uncollectible_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class InvoiceMarkUncollectibleParams < Stripe::RequestParams + class InvoiceMarkUncollectibleParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/invoice_pay_params.rbi b/rbi/stripe/params/invoice_pay_params.rbi index e095ca2a..d140a926 100644 --- a/rbi/stripe/params/invoice_pay_params.rbi +++ b/rbi/stripe/params/invoice_pay_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class InvoicePayParams < Stripe::RequestParams + class InvoicePayParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/invoice_payment_list_params.rbi b/rbi/stripe/params/invoice_payment_list_params.rbi index d9fd61e8..483d11ae 100644 --- a/rbi/stripe/params/invoice_payment_list_params.rbi +++ b/rbi/stripe/params/invoice_payment_list_params.rbi @@ -3,20 +3,27 @@ # typed: true module Stripe - class InvoicePaymentListParams < Stripe::RequestParams - class Payment < Stripe::RequestParams + class InvoicePaymentListParams < ::Stripe::RequestParams + class Payment < ::Stripe::RequestParams # Only return invoice payments associated by this payment intent ID. sig { returns(T.nilable(String)) } def payment_intent; end sig { params(_payment_intent: T.nilable(String)).returns(T.nilable(String)) } def payment_intent=(_payment_intent); end + # Only return invoice payments associated by this payment record ID. + sig { returns(T.nilable(String)) } + def payment_record; end + sig { params(_payment_record: T.nilable(String)).returns(T.nilable(String)) } + def payment_record=(_payment_record); end # Only return invoice payments associated by this payment type. sig { returns(String) } def type; end sig { params(_type: String).returns(String) } def type=(_type); end - sig { params(payment_intent: T.nilable(String), type: String).void } - def initialize(payment_intent: nil, type: nil); end + sig { + params(payment_intent: T.nilable(String), payment_record: T.nilable(String), type: String).void + } + def initialize(payment_intent: nil, payment_record: nil, type: nil); end end # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } diff --git a/rbi/stripe/params/invoice_payment_retrieve_params.rbi b/rbi/stripe/params/invoice_payment_retrieve_params.rbi index ac578b70..f18ddec4 100644 --- a/rbi/stripe/params/invoice_payment_retrieve_params.rbi +++ b/rbi/stripe/params/invoice_payment_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class InvoicePaymentRetrieveParams < Stripe::RequestParams + class InvoicePaymentRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/invoice_remove_lines_params.rbi b/rbi/stripe/params/invoice_remove_lines_params.rbi index cbcedae1..1dafc31a 100644 --- a/rbi/stripe/params/invoice_remove_lines_params.rbi +++ b/rbi/stripe/params/invoice_remove_lines_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class InvoiceRemoveLinesParams < Stripe::RequestParams - class Line < Stripe::RequestParams + class InvoiceRemoveLinesParams < ::Stripe::RequestParams + class Line < ::Stripe::RequestParams # Either `delete` or `unassign`. Deleted line items are permanently deleted. Unassigned line items can be reassigned to an invoice. sig { returns(String) } def behavior; end diff --git a/rbi/stripe/params/invoice_rendering_template_archive_params.rbi b/rbi/stripe/params/invoice_rendering_template_archive_params.rbi index 127d4567..08d696fd 100644 --- a/rbi/stripe/params/invoice_rendering_template_archive_params.rbi +++ b/rbi/stripe/params/invoice_rendering_template_archive_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class InvoiceRenderingTemplateArchiveParams < Stripe::RequestParams + class InvoiceRenderingTemplateArchiveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/invoice_rendering_template_list_params.rbi b/rbi/stripe/params/invoice_rendering_template_list_params.rbi index d72237e7..91288484 100644 --- a/rbi/stripe/params/invoice_rendering_template_list_params.rbi +++ b/rbi/stripe/params/invoice_rendering_template_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class InvoiceRenderingTemplateListParams < Stripe::RequestParams + class InvoiceRenderingTemplateListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/invoice_rendering_template_retrieve_params.rbi b/rbi/stripe/params/invoice_rendering_template_retrieve_params.rbi index 5008acb7..5f22efb7 100644 --- a/rbi/stripe/params/invoice_rendering_template_retrieve_params.rbi +++ b/rbi/stripe/params/invoice_rendering_template_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class InvoiceRenderingTemplateRetrieveParams < Stripe::RequestParams + class InvoiceRenderingTemplateRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/invoice_rendering_template_unarchive_params.rbi b/rbi/stripe/params/invoice_rendering_template_unarchive_params.rbi index 921e593b..8730ca6a 100644 --- a/rbi/stripe/params/invoice_rendering_template_unarchive_params.rbi +++ b/rbi/stripe/params/invoice_rendering_template_unarchive_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class InvoiceRenderingTemplateUnarchiveParams < Stripe::RequestParams + class InvoiceRenderingTemplateUnarchiveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/invoice_retrieve_params.rbi b/rbi/stripe/params/invoice_retrieve_params.rbi index 272cd756..1b4e29a7 100644 --- a/rbi/stripe/params/invoice_retrieve_params.rbi +++ b/rbi/stripe/params/invoice_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class InvoiceRetrieveParams < Stripe::RequestParams + class InvoiceRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/invoice_search_params.rbi b/rbi/stripe/params/invoice_search_params.rbi index c1e2eebb..e144b159 100644 --- a/rbi/stripe/params/invoice_search_params.rbi +++ b/rbi/stripe/params/invoice_search_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class InvoiceSearchParams < Stripe::RequestParams + class InvoiceSearchParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/invoice_send_invoice_params.rbi b/rbi/stripe/params/invoice_send_invoice_params.rbi index 6c6d7688..99b2b51d 100644 --- a/rbi/stripe/params/invoice_send_invoice_params.rbi +++ b/rbi/stripe/params/invoice_send_invoice_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class InvoiceSendInvoiceParams < Stripe::RequestParams + class InvoiceSendInvoiceParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/invoice_update_lines_params.rbi b/rbi/stripe/params/invoice_update_lines_params.rbi index fe400f15..68c6146f 100644 --- a/rbi/stripe/params/invoice_update_lines_params.rbi +++ b/rbi/stripe/params/invoice_update_lines_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class InvoiceUpdateLinesParams < Stripe::RequestParams - class Line < Stripe::RequestParams - class Discount < Stripe::RequestParams + class InvoiceUpdateLinesParams < ::Stripe::RequestParams + class Line < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -26,7 +26,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Period < Stripe::RequestParams + class Period < ::Stripe::RequestParams # The end of the period, which must be greater than or equal to the start. This value is inclusive. sig { returns(Integer) } def end; end @@ -40,8 +40,8 @@ module Stripe sig { params(end_: Integer, start: Integer).void } def initialize(end_: nil, start: nil); end end - class PriceData < Stripe::RequestParams - class ProductData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class ProductData < ::Stripe::RequestParams # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. sig { returns(T.nilable(String)) } def description; end @@ -130,7 +130,7 @@ module Stripe unit_amount_decimal: nil ); end end - class Pricing < Stripe::RequestParams + class Pricing < ::Stripe::RequestParams # The ID of the price object. sig { returns(T.nilable(String)) } def price; end @@ -139,8 +139,8 @@ module Stripe sig { params(price: T.nilable(String)).void } def initialize(price: nil); end end - class TaxAmount < Stripe::RequestParams - class TaxRateData < Stripe::RequestParams + class TaxAmount < ::Stripe::RequestParams + class TaxRateData < ::Stripe::RequestParams # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). sig { returns(T.nilable(String)) } def country; end diff --git a/rbi/stripe/params/invoice_update_params.rbi b/rbi/stripe/params/invoice_update_params.rbi index 979d1492..61cac852 100644 --- a/rbi/stripe/params/invoice_update_params.rbi +++ b/rbi/stripe/params/invoice_update_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class InvoiceUpdateParams < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class InvoiceUpdateParams < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -36,7 +36,7 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class CustomField < Stripe::RequestParams + class CustomField < ::Stripe::RequestParams # The name of the custom field. This may be up to 40 characters. sig { returns(String) } def name; end @@ -50,7 +50,7 @@ module Stripe sig { params(name: String, value: String).void } def initialize(name: nil, value: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -71,7 +71,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Issuer < Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -85,10 +85,10 @@ module Stripe sig { params(account: T.nilable(String), type: String).void } def initialize(account: nil, type: nil); end end - class PaymentSettings < Stripe::RequestParams - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentSettings < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Transaction type of the mandate. sig { returns(T.nilable(String)) } def transaction_type; end @@ -116,7 +116,7 @@ module Stripe } def initialize(mandate_options: nil, verification_method: nil); end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Preferred language of the Bancontact authorization page that the customer is redirected to. sig { returns(T.nilable(String)) } def preferred_language; end @@ -125,9 +125,9 @@ module Stripe sig { params(preferred_language: T.nilable(String)).void } def initialize(preferred_language: nil); end end - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams - class Plan < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams + class Plan < ::Stripe::RequestParams # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. sig { returns(T.nilable(Integer)) } def count; end @@ -190,9 +190,9 @@ module Stripe } def initialize(installments: nil, request_three_d_secure: nil); end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -239,11 +239,11 @@ module Stripe } def initialize(bank_transfer: nil, funding_type: nil); end end - class Konbini < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -405,8 +405,8 @@ module Stripe payment_method_types: nil ); end end - class Rendering < Stripe::RequestParams - class Pdf < Stripe::RequestParams + class Rendering < ::Stripe::RequestParams + class Pdf < ::Stripe::RequestParams # Page size for invoice PDF. Can be set to `a4`, `letter`, or `auto`. # If set to `auto`, invoice PDF page size defaults to `a4` for customers with # Japanese locale and `letter` for customers with other locales. @@ -448,10 +448,10 @@ module Stripe } def initialize(amount_tax_display: nil, pdf: nil, template: nil, template_version: nil); end end - class ShippingCost < Stripe::RequestParams - class ShippingRateData < Stripe::RequestParams - class DeliveryEstimate < Stripe::RequestParams - class Maximum < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams + class ShippingRateData < ::Stripe::RequestParams + class DeliveryEstimate < ::Stripe::RequestParams + class Maximum < ::Stripe::RequestParams # A unit of time. sig { returns(String) } def unit; end @@ -465,7 +465,7 @@ module Stripe sig { params(unit: String, value: Integer).void } def initialize(unit: nil, value: nil); end end - class Minimum < Stripe::RequestParams + class Minimum < ::Stripe::RequestParams # A unit of time. sig { returns(String) } def unit; end @@ -502,8 +502,8 @@ module Stripe } def initialize(maximum: nil, minimum: nil); end end - class FixedAmount < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class FixedAmount < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A non-negative integer in cents representing how much to charge. sig { returns(Integer) } def amount; end @@ -614,8 +614,8 @@ module Stripe } def initialize(shipping_rate: nil, shipping_rate_data: nil); end end - class ShippingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class ShippingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -680,7 +680,7 @@ module Stripe } def initialize(address: nil, name: nil, phone: nil); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when the invoice is paid. If no amount is set, the full amount is transferred. sig { returns(T.nilable(Integer)) } def amount; end diff --git a/rbi/stripe/params/invoice_void_invoice_params.rbi b/rbi/stripe/params/invoice_void_invoice_params.rbi index 1190f2d1..b9bb5b03 100644 --- a/rbi/stripe/params/invoice_void_invoice_params.rbi +++ b/rbi/stripe/params/invoice_void_invoice_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class InvoiceVoidInvoiceParams < Stripe::RequestParams + class InvoiceVoidInvoiceParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/authorization_approve_params.rbi b/rbi/stripe/params/issuing/authorization_approve_params.rbi index a2b5c7ed..687de56d 100644 --- a/rbi/stripe/params/issuing/authorization_approve_params.rbi +++ b/rbi/stripe/params/issuing/authorization_approve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class AuthorizationApproveParams < Stripe::RequestParams + class AuthorizationApproveParams < ::Stripe::RequestParams # If the authorization's `pending_request.is_amount_controllable` property is `true`, you may provide this value to control how much to hold for the authorization. Must be positive (use [`decline`](https://stripe.com/docs/api/issuing/authorizations/decline) to decline an authorization request). sig { returns(T.nilable(Integer)) } def amount; end diff --git a/rbi/stripe/params/issuing/authorization_capture_params.rbi b/rbi/stripe/params/issuing/authorization_capture_params.rbi index 37ba01eb..4d5ca8f0 100644 --- a/rbi/stripe/params/issuing/authorization_capture_params.rbi +++ b/rbi/stripe/params/issuing/authorization_capture_params.rbi @@ -4,10 +4,10 @@ # typed: true module Stripe module Issuing - class AuthorizationCaptureParams < Stripe::RequestParams - class PurchaseDetails < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class AuthorizationCaptureParams < ::Stripe::RequestParams + class PurchaseDetails < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. sig { returns(T.nilable(String)) } def driver_id; end @@ -44,8 +44,8 @@ module Stripe vehicle_number: nil ); end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -54,7 +54,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -63,7 +63,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -149,8 +149,8 @@ module Stripe service_type: nil ); end end - class Flight < Stripe::RequestParams - class Segment < Stripe::RequestParams + class Flight < ::Stripe::RequestParams + class Segment < ::Stripe::RequestParams # The three-letter IATA airport code of the flight's destination. sig { returns(T.nilable(String)) } def arrival_airport_code; end @@ -233,7 +233,7 @@ module Stripe travel_agency: nil ); end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end @@ -270,7 +270,7 @@ module Stripe unit_cost_decimal: nil ); end end - class Lodging < Stripe::RequestParams + class Lodging < ::Stripe::RequestParams # The time of checking into the lodging. sig { returns(T.nilable(Integer)) } def check_in_at; end @@ -284,7 +284,7 @@ module Stripe sig { params(check_in_at: T.nilable(Integer), nights: T.nilable(Integer)).void } def initialize(check_in_at: nil, nights: nil); end end - class Receipt < Stripe::RequestParams + class Receipt < ::Stripe::RequestParams # Attribute for param field description sig { returns(T.nilable(String)) } def description; end diff --git a/rbi/stripe/params/issuing/authorization_create_params.rbi b/rbi/stripe/params/issuing/authorization_create_params.rbi index c483502c..5530101e 100644 --- a/rbi/stripe/params/issuing/authorization_create_params.rbi +++ b/rbi/stripe/params/issuing/authorization_create_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Issuing - class AuthorizationCreateParams < Stripe::RequestParams - class AmountDetails < Stripe::RequestParams + class AuthorizationCreateParams < ::Stripe::RequestParams + class AmountDetails < ::Stripe::RequestParams # The ATM withdrawal fee. sig { returns(T.nilable(Integer)) } def atm_fee; end @@ -19,8 +19,8 @@ module Stripe sig { params(atm_fee: T.nilable(Integer), cashback_amount: T.nilable(Integer)).void } def initialize(atm_fee: nil, cashback_amount: nil); end end - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. sig { returns(T.nilable(String)) } def driver_id; end @@ -57,8 +57,8 @@ module Stripe vehicle_number: nil ); end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -67,7 +67,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -76,7 +76,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -158,7 +158,7 @@ module Stripe service_type: nil ); end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end @@ -195,7 +195,7 @@ module Stripe unit_cost_decimal: nil ); end end - class MerchantData < Stripe::RequestParams + class MerchantData < ::Stripe::RequestParams # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. sig { returns(T.nilable(String)) } def category; end @@ -256,7 +256,7 @@ module Stripe url: nil ); end end - class NetworkData < Stripe::RequestParams + class NetworkData < ::Stripe::RequestParams # Identifier assigned to the acquirer by the card network. sig { returns(T.nilable(String)) } def acquiring_institution_id; end @@ -265,8 +265,8 @@ module Stripe sig { params(acquiring_institution_id: T.nilable(String)).void } def initialize(acquiring_institution_id: nil); end end - class RiskAssessment < Stripe::RequestParams - class CardTestingRisk < Stripe::RequestParams + class RiskAssessment < ::Stripe::RequestParams + class CardTestingRisk < ::Stripe::RequestParams # The % of declines due to a card number not existing in the past hour, taking place at the same merchant. Higher rates correspond to a greater probability of card testing activity, meaning bad actors may be attempting different card number combinations to guess a correct one. Takes on values between 0 and 100. sig { returns(T.nilable(Integer)) } def invalid_account_number_decline_rate_past_hour; end @@ -299,7 +299,7 @@ module Stripe risk_level: nil ); end end - class MerchantDisputeRisk < Stripe::RequestParams + class MerchantDisputeRisk < ::Stripe::RequestParams # The dispute rate observed across all Stripe Issuing authorizations for this merchant. For example, a value of 50 means 50% of authorizations from this merchant on Stripe Issuing have resulted in a dispute. Higher values mean a higher likelihood the authorization is disputed. Takes on values between 0 and 100. sig { returns(T.nilable(Integer)) } def dispute_rate; end @@ -336,8 +336,8 @@ module Stripe } def initialize(card_testing_risk: nil, merchant_dispute_risk: nil); end end - class VerificationData < Stripe::RequestParams - class AuthenticationExemption < Stripe::RequestParams + class VerificationData < ::Stripe::RequestParams + class AuthenticationExemption < ::Stripe::RequestParams # The entity that requested the exemption, either the acquiring merchant or the Issuing user. sig { returns(String) } def claimed_by; end @@ -351,7 +351,7 @@ module Stripe sig { params(claimed_by: String, type: String).void } def initialize(claimed_by: nil, type: nil); end end - class ThreeDSecure < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams # The outcome of the 3D Secure authentication request. sig { returns(String) } def result; end diff --git a/rbi/stripe/params/issuing/authorization_decline_params.rbi b/rbi/stripe/params/issuing/authorization_decline_params.rbi index ef473c62..e38db65b 100644 --- a/rbi/stripe/params/issuing/authorization_decline_params.rbi +++ b/rbi/stripe/params/issuing/authorization_decline_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class AuthorizationDeclineParams < Stripe::RequestParams + class AuthorizationDeclineParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/authorization_expire_params.rbi b/rbi/stripe/params/issuing/authorization_expire_params.rbi index 545d38b2..60e37a01 100644 --- a/rbi/stripe/params/issuing/authorization_expire_params.rbi +++ b/rbi/stripe/params/issuing/authorization_expire_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class AuthorizationExpireParams < Stripe::RequestParams + class AuthorizationExpireParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/authorization_finalize_amount_params.rbi b/rbi/stripe/params/issuing/authorization_finalize_amount_params.rbi index c6b7f7ea..93613154 100644 --- a/rbi/stripe/params/issuing/authorization_finalize_amount_params.rbi +++ b/rbi/stripe/params/issuing/authorization_finalize_amount_params.rbi @@ -4,9 +4,9 @@ # typed: true module Stripe module Issuing - class AuthorizationFinalizeAmountParams < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class AuthorizationFinalizeAmountParams < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. sig { returns(T.nilable(String)) } def driver_id; end @@ -43,8 +43,8 @@ module Stripe vehicle_number: nil ); end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -53,7 +53,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -62,7 +62,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -148,7 +148,7 @@ module Stripe service_type: nil ); end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end diff --git a/rbi/stripe/params/issuing/authorization_increment_params.rbi b/rbi/stripe/params/issuing/authorization_increment_params.rbi index 3fba75e7..9ca1ba81 100644 --- a/rbi/stripe/params/issuing/authorization_increment_params.rbi +++ b/rbi/stripe/params/issuing/authorization_increment_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class AuthorizationIncrementParams < Stripe::RequestParams + class AuthorizationIncrementParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/authorization_list_params.rbi b/rbi/stripe/params/issuing/authorization_list_params.rbi index 4fb67c82..9e87dd9d 100644 --- a/rbi/stripe/params/issuing/authorization_list_params.rbi +++ b/rbi/stripe/params/issuing/authorization_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Issuing - class AuthorizationListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class AuthorizationListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/issuing/authorization_respond_params.rbi b/rbi/stripe/params/issuing/authorization_respond_params.rbi index 50618b24..42bc44a9 100644 --- a/rbi/stripe/params/issuing/authorization_respond_params.rbi +++ b/rbi/stripe/params/issuing/authorization_respond_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class AuthorizationRespondParams < Stripe::RequestParams + class AuthorizationRespondParams < ::Stripe::RequestParams # Whether to simulate the user confirming that the transaction was legitimate (true) or telling Stripe that it was fraudulent (false). sig { returns(T::Boolean) } def confirmed; end diff --git a/rbi/stripe/params/issuing/authorization_retrieve_params.rbi b/rbi/stripe/params/issuing/authorization_retrieve_params.rbi index d5d0d29a..54fd72ef 100644 --- a/rbi/stripe/params/issuing/authorization_retrieve_params.rbi +++ b/rbi/stripe/params/issuing/authorization_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class AuthorizationRetrieveParams < Stripe::RequestParams + class AuthorizationRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/authorization_reverse_params.rbi b/rbi/stripe/params/issuing/authorization_reverse_params.rbi index ebf877ee..e3a8356e 100644 --- a/rbi/stripe/params/issuing/authorization_reverse_params.rbi +++ b/rbi/stripe/params/issuing/authorization_reverse_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class AuthorizationReverseParams < Stripe::RequestParams + class AuthorizationReverseParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/authorization_update_params.rbi b/rbi/stripe/params/issuing/authorization_update_params.rbi index 973f27d8..ef2ee281 100644 --- a/rbi/stripe/params/issuing/authorization_update_params.rbi +++ b/rbi/stripe/params/issuing/authorization_update_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class AuthorizationUpdateParams < Stripe::RequestParams + class AuthorizationUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/card_create_params.rbi b/rbi/stripe/params/issuing/card_create_params.rbi index c66bcf3b..71dbb924 100644 --- a/rbi/stripe/params/issuing/card_create_params.rbi +++ b/rbi/stripe/params/issuing/card_create_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Issuing - class CardCreateParams < Stripe::RequestParams - class Pin < Stripe::RequestParams + class CardCreateParams < ::Stripe::RequestParams + class Pin < ::Stripe::RequestParams # The card's desired new PIN, encrypted under Stripe's public key. sig { returns(T.nilable(String)) } def encrypted_number; end @@ -14,8 +14,8 @@ module Stripe sig { params(encrypted_number: T.nilable(String)).void } def initialize(encrypted_number: nil); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(String) } def city; end @@ -58,7 +58,7 @@ module Stripe state: nil ); end end - class AddressValidation < Stripe::RequestParams + class AddressValidation < ::Stripe::RequestParams # The address validation capabilities to use. sig { returns(String) } def mode; end @@ -67,7 +67,7 @@ module Stripe sig { params(mode: String).void } def initialize(mode: nil); end end - class Customs < Stripe::RequestParams + class Customs < ::Stripe::RequestParams # The Economic Operators Registration and Identification (EORI) number to use for Customs. Required for bulk shipments to Europe. sig { returns(T.nilable(String)) } def eori_number; end @@ -136,8 +136,8 @@ module Stripe type: nil ); end end - class SpendingControls < Stripe::RequestParams - class SpendingLimit < Stripe::RequestParams + class SpendingControls < ::Stripe::RequestParams + class SpendingLimit < ::Stripe::RequestParams # Maximum amount allowed to spend per interval. sig { returns(Integer) } def amount; end diff --git a/rbi/stripe/params/issuing/card_deliver_card_params.rbi b/rbi/stripe/params/issuing/card_deliver_card_params.rbi index ac1a6100..fe0f8682 100644 --- a/rbi/stripe/params/issuing/card_deliver_card_params.rbi +++ b/rbi/stripe/params/issuing/card_deliver_card_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class CardDeliverCardParams < Stripe::RequestParams + class CardDeliverCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/card_fail_card_params.rbi b/rbi/stripe/params/issuing/card_fail_card_params.rbi index 6b6943f6..1352757f 100644 --- a/rbi/stripe/params/issuing/card_fail_card_params.rbi +++ b/rbi/stripe/params/issuing/card_fail_card_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class CardFailCardParams < Stripe::RequestParams + class CardFailCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/card_list_params.rbi b/rbi/stripe/params/issuing/card_list_params.rbi index d11113e7..cf180113 100644 --- a/rbi/stripe/params/issuing/card_list_params.rbi +++ b/rbi/stripe/params/issuing/card_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Issuing - class CardListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class CardListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/issuing/card_retrieve_params.rbi b/rbi/stripe/params/issuing/card_retrieve_params.rbi index c516b90f..adb50a6d 100644 --- a/rbi/stripe/params/issuing/card_retrieve_params.rbi +++ b/rbi/stripe/params/issuing/card_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class CardRetrieveParams < Stripe::RequestParams + class CardRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/card_return_card_params.rbi b/rbi/stripe/params/issuing/card_return_card_params.rbi index 22995f53..9a3097ea 100644 --- a/rbi/stripe/params/issuing/card_return_card_params.rbi +++ b/rbi/stripe/params/issuing/card_return_card_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class CardReturnCardParams < Stripe::RequestParams + class CardReturnCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/card_ship_card_params.rbi b/rbi/stripe/params/issuing/card_ship_card_params.rbi index af8633f3..e13521a6 100644 --- a/rbi/stripe/params/issuing/card_ship_card_params.rbi +++ b/rbi/stripe/params/issuing/card_ship_card_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class CardShipCardParams < Stripe::RequestParams + class CardShipCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/card_submit_card_params.rbi b/rbi/stripe/params/issuing/card_submit_card_params.rbi index 92a59968..2a0c0e8a 100644 --- a/rbi/stripe/params/issuing/card_submit_card_params.rbi +++ b/rbi/stripe/params/issuing/card_submit_card_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class CardSubmitCardParams < Stripe::RequestParams + class CardSubmitCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/card_update_params.rbi b/rbi/stripe/params/issuing/card_update_params.rbi index a9f9cffa..9cd148c6 100644 --- a/rbi/stripe/params/issuing/card_update_params.rbi +++ b/rbi/stripe/params/issuing/card_update_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Issuing - class CardUpdateParams < Stripe::RequestParams - class Pin < Stripe::RequestParams + class CardUpdateParams < ::Stripe::RequestParams + class Pin < ::Stripe::RequestParams # The card's desired new PIN, encrypted under Stripe's public key. sig { returns(T.nilable(String)) } def encrypted_number; end @@ -14,8 +14,8 @@ module Stripe sig { params(encrypted_number: T.nilable(String)).void } def initialize(encrypted_number: nil); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(String) } def city; end @@ -58,7 +58,7 @@ module Stripe state: nil ); end end - class AddressValidation < Stripe::RequestParams + class AddressValidation < ::Stripe::RequestParams # The address validation capabilities to use. sig { returns(String) } def mode; end @@ -67,7 +67,7 @@ module Stripe sig { params(mode: String).void } def initialize(mode: nil); end end - class Customs < Stripe::RequestParams + class Customs < ::Stripe::RequestParams # The Economic Operators Registration and Identification (EORI) number to use for Customs. Required for bulk shipments to Europe. sig { returns(T.nilable(String)) } def eori_number; end @@ -136,8 +136,8 @@ module Stripe type: nil ); end end - class SpendingControls < Stripe::RequestParams - class SpendingLimit < Stripe::RequestParams + class SpendingControls < ::Stripe::RequestParams + class SpendingLimit < ::Stripe::RequestParams # Maximum amount allowed to spend per interval. sig { returns(Integer) } def amount; end diff --git a/rbi/stripe/params/issuing/cardholder_create_params.rbi b/rbi/stripe/params/issuing/cardholder_create_params.rbi index 0f465039..5d35a01e 100644 --- a/rbi/stripe/params/issuing/cardholder_create_params.rbi +++ b/rbi/stripe/params/issuing/cardholder_create_params.rbi @@ -4,9 +4,9 @@ # typed: true module Stripe module Issuing - class CardholderCreateParams < Stripe::RequestParams - class Billing < Stripe::RequestParams - class Address < Stripe::RequestParams + class CardholderCreateParams < ::Stripe::RequestParams + class Billing < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(String) } def city; end @@ -59,7 +59,7 @@ module Stripe sig { params(address: Issuing::CardholderCreateParams::Billing::Address).void } def initialize(address: nil); end end - class Company < Stripe::RequestParams + class Company < ::Stripe::RequestParams # The entity's business ID number. sig { returns(T.nilable(String)) } def tax_id; end @@ -68,9 +68,9 @@ module Stripe sig { params(tax_id: T.nilable(String)).void } def initialize(tax_id: nil); end end - class Individual < Stripe::RequestParams - class CardIssuing < Stripe::RequestParams - class UserTermsAcceptance < Stripe::RequestParams + class Individual < ::Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams + class UserTermsAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the cardholder accepted the Authorized User Terms. Required for Celtic Spend Card users. sig { returns(T.nilable(Integer)) } def date; end @@ -105,7 +105,7 @@ module Stripe } def initialize(user_terms_acceptance: nil); end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -124,8 +124,8 @@ module Stripe sig { params(day: Integer, month: Integer, year: Integer).void } def initialize(day: nil, month: nil, year: nil); end end - class Verification < Stripe::RequestParams - class Document < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. sig { returns(T.nilable(String)) } def back; end @@ -195,8 +195,8 @@ module Stripe verification: nil ); end end - class SpendingControls < Stripe::RequestParams - class SpendingLimit < Stripe::RequestParams + class SpendingControls < ::Stripe::RequestParams + class SpendingLimit < ::Stripe::RequestParams # Maximum amount allowed to spend per interval. sig { returns(Integer) } def amount; end diff --git a/rbi/stripe/params/issuing/cardholder_list_params.rbi b/rbi/stripe/params/issuing/cardholder_list_params.rbi index b3909bd6..8267ed8f 100644 --- a/rbi/stripe/params/issuing/cardholder_list_params.rbi +++ b/rbi/stripe/params/issuing/cardholder_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Issuing - class CardholderListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class CardholderListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/issuing/cardholder_retrieve_params.rbi b/rbi/stripe/params/issuing/cardholder_retrieve_params.rbi index de8f62f4..46a65b69 100644 --- a/rbi/stripe/params/issuing/cardholder_retrieve_params.rbi +++ b/rbi/stripe/params/issuing/cardholder_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class CardholderRetrieveParams < Stripe::RequestParams + class CardholderRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/cardholder_update_params.rbi b/rbi/stripe/params/issuing/cardholder_update_params.rbi index 50a56d5a..c3512366 100644 --- a/rbi/stripe/params/issuing/cardholder_update_params.rbi +++ b/rbi/stripe/params/issuing/cardholder_update_params.rbi @@ -4,9 +4,9 @@ # typed: true module Stripe module Issuing - class CardholderUpdateParams < Stripe::RequestParams - class Billing < Stripe::RequestParams - class Address < Stripe::RequestParams + class CardholderUpdateParams < ::Stripe::RequestParams + class Billing < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(String) } def city; end @@ -59,7 +59,7 @@ module Stripe sig { params(address: Issuing::CardholderUpdateParams::Billing::Address).void } def initialize(address: nil); end end - class Company < Stripe::RequestParams + class Company < ::Stripe::RequestParams # The entity's business ID number. sig { returns(T.nilable(String)) } def tax_id; end @@ -68,9 +68,9 @@ module Stripe sig { params(tax_id: T.nilable(String)).void } def initialize(tax_id: nil); end end - class Individual < Stripe::RequestParams - class CardIssuing < Stripe::RequestParams - class UserTermsAcceptance < Stripe::RequestParams + class Individual < ::Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams + class UserTermsAcceptance < ::Stripe::RequestParams # The Unix timestamp marking when the cardholder accepted the Authorized User Terms. Required for Celtic Spend Card users. sig { returns(T.nilable(Integer)) } def date; end @@ -105,7 +105,7 @@ module Stripe } def initialize(user_terms_acceptance: nil); end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -124,8 +124,8 @@ module Stripe sig { params(day: Integer, month: Integer, year: Integer).void } def initialize(day: nil, month: nil, year: nil); end end - class Verification < Stripe::RequestParams - class Document < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. sig { returns(T.nilable(String)) } def back; end @@ -195,8 +195,8 @@ module Stripe verification: nil ); end end - class SpendingControls < Stripe::RequestParams - class SpendingLimit < Stripe::RequestParams + class SpendingControls < ::Stripe::RequestParams + class SpendingLimit < ::Stripe::RequestParams # Maximum amount allowed to spend per interval. sig { returns(Integer) } def amount; end diff --git a/rbi/stripe/params/issuing/dispute_create_params.rbi b/rbi/stripe/params/issuing/dispute_create_params.rbi index d94ac9e4..d5a8e7e9 100644 --- a/rbi/stripe/params/issuing/dispute_create_params.rbi +++ b/rbi/stripe/params/issuing/dispute_create_params.rbi @@ -4,9 +4,9 @@ # typed: true module Stripe module Issuing - class DisputeCreateParams < Stripe::RequestParams - class Evidence < Stripe::RequestParams - class Canceled < Stripe::RequestParams + class DisputeCreateParams < ::Stripe::RequestParams + class Evidence < ::Stripe::RequestParams + class Canceled < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -85,7 +85,7 @@ module Stripe returned_at: nil ); end end - class Duplicate < Stripe::RequestParams + class Duplicate < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -128,7 +128,7 @@ module Stripe original_transaction: nil ); end end - class Fraudulent < Stripe::RequestParams + class Fraudulent < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -144,7 +144,7 @@ module Stripe } def initialize(additional_documentation: nil, explanation: nil); end end - class MerchandiseNotAsDescribed < Stripe::RequestParams + class MerchandiseNotAsDescribed < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -193,7 +193,7 @@ module Stripe returned_at: nil ); end end - class NoValidAuthorization < Stripe::RequestParams + class NoValidAuthorization < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -209,7 +209,7 @@ module Stripe } def initialize(additional_documentation: nil, explanation: nil); end end - class NotReceived < Stripe::RequestParams + class NotReceived < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -250,7 +250,7 @@ module Stripe product_type: nil ); end end - class Other < Stripe::RequestParams + class Other < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -283,7 +283,7 @@ module Stripe product_type: nil ); end end - class ServiceNotAsDescribed < Stripe::RequestParams + class ServiceNotAsDescribed < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -410,7 +410,7 @@ module Stripe service_not_as_described: nil ); end end - class Treasury < Stripe::RequestParams + class Treasury < ::Stripe::RequestParams # The ID of the ReceivedDebit to initiate an Issuings dispute for. sig { returns(String) } def received_debit; end diff --git a/rbi/stripe/params/issuing/dispute_list_params.rbi b/rbi/stripe/params/issuing/dispute_list_params.rbi index 74f67415..30a4c79c 100644 --- a/rbi/stripe/params/issuing/dispute_list_params.rbi +++ b/rbi/stripe/params/issuing/dispute_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Issuing - class DisputeListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class DisputeListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/issuing/dispute_retrieve_params.rbi b/rbi/stripe/params/issuing/dispute_retrieve_params.rbi index 04d440aa..98ecff08 100644 --- a/rbi/stripe/params/issuing/dispute_retrieve_params.rbi +++ b/rbi/stripe/params/issuing/dispute_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class DisputeRetrieveParams < Stripe::RequestParams + class DisputeRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/dispute_submit_params.rbi b/rbi/stripe/params/issuing/dispute_submit_params.rbi index ddb5f934..1321d6dd 100644 --- a/rbi/stripe/params/issuing/dispute_submit_params.rbi +++ b/rbi/stripe/params/issuing/dispute_submit_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class DisputeSubmitParams < Stripe::RequestParams + class DisputeSubmitParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/dispute_update_params.rbi b/rbi/stripe/params/issuing/dispute_update_params.rbi index 59bad2fa..a8d2abea 100644 --- a/rbi/stripe/params/issuing/dispute_update_params.rbi +++ b/rbi/stripe/params/issuing/dispute_update_params.rbi @@ -4,9 +4,9 @@ # typed: true module Stripe module Issuing - class DisputeUpdateParams < Stripe::RequestParams - class Evidence < Stripe::RequestParams - class Canceled < Stripe::RequestParams + class DisputeUpdateParams < ::Stripe::RequestParams + class Evidence < ::Stripe::RequestParams + class Canceled < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -85,7 +85,7 @@ module Stripe returned_at: nil ); end end - class Duplicate < Stripe::RequestParams + class Duplicate < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -128,7 +128,7 @@ module Stripe original_transaction: nil ); end end - class Fraudulent < Stripe::RequestParams + class Fraudulent < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -144,7 +144,7 @@ module Stripe } def initialize(additional_documentation: nil, explanation: nil); end end - class MerchandiseNotAsDescribed < Stripe::RequestParams + class MerchandiseNotAsDescribed < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -193,7 +193,7 @@ module Stripe returned_at: nil ); end end - class NoValidAuthorization < Stripe::RequestParams + class NoValidAuthorization < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -209,7 +209,7 @@ module Stripe } def initialize(additional_documentation: nil, explanation: nil); end end - class NotReceived < Stripe::RequestParams + class NotReceived < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -250,7 +250,7 @@ module Stripe product_type: nil ); end end - class Other < Stripe::RequestParams + class Other < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end @@ -283,7 +283,7 @@ module Stripe product_type: nil ); end end - class ServiceNotAsDescribed < Stripe::RequestParams + class ServiceNotAsDescribed < ::Stripe::RequestParams # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. sig { returns(T.nilable(String)) } def additional_documentation; end diff --git a/rbi/stripe/params/issuing/personalization_design_activate_params.rbi b/rbi/stripe/params/issuing/personalization_design_activate_params.rbi index d0eabf0e..1f910b3c 100644 --- a/rbi/stripe/params/issuing/personalization_design_activate_params.rbi +++ b/rbi/stripe/params/issuing/personalization_design_activate_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class PersonalizationDesignActivateParams < Stripe::RequestParams + class PersonalizationDesignActivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/personalization_design_create_params.rbi b/rbi/stripe/params/issuing/personalization_design_create_params.rbi index ef32b561..f0fa3c80 100644 --- a/rbi/stripe/params/issuing/personalization_design_create_params.rbi +++ b/rbi/stripe/params/issuing/personalization_design_create_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Issuing - class PersonalizationDesignCreateParams < Stripe::RequestParams - class CarrierText < Stripe::RequestParams + class PersonalizationDesignCreateParams < ::Stripe::RequestParams + class CarrierText < ::Stripe::RequestParams # The footer body text of the carrier letter. sig { returns(T.nilable(String)) } def footer_body; end @@ -36,7 +36,7 @@ module Stripe header_title: nil ); end end - class Preferences < Stripe::RequestParams + class Preferences < ::Stripe::RequestParams # Whether we use this personalization design to create cards when one isn't specified. A connected account uses the Connect platform's default design if no personalization design is set as the default design. sig { returns(T::Boolean) } def is_default; end diff --git a/rbi/stripe/params/issuing/personalization_design_deactivate_params.rbi b/rbi/stripe/params/issuing/personalization_design_deactivate_params.rbi index 02453617..67b20bec 100644 --- a/rbi/stripe/params/issuing/personalization_design_deactivate_params.rbi +++ b/rbi/stripe/params/issuing/personalization_design_deactivate_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class PersonalizationDesignDeactivateParams < Stripe::RequestParams + class PersonalizationDesignDeactivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/personalization_design_list_params.rbi b/rbi/stripe/params/issuing/personalization_design_list_params.rbi index a42338a4..a840374c 100644 --- a/rbi/stripe/params/issuing/personalization_design_list_params.rbi +++ b/rbi/stripe/params/issuing/personalization_design_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Issuing - class PersonalizationDesignListParams < Stripe::RequestParams - class Preferences < Stripe::RequestParams + class PersonalizationDesignListParams < ::Stripe::RequestParams + class Preferences < ::Stripe::RequestParams # Only return the personalization design that's set as the default. A connected account uses the Connect platform's default design if no personalization design is set as the default. sig { returns(T.nilable(T::Boolean)) } def is_default; end diff --git a/rbi/stripe/params/issuing/personalization_design_reject_params.rbi b/rbi/stripe/params/issuing/personalization_design_reject_params.rbi index 2c81b3f8..f315f945 100644 --- a/rbi/stripe/params/issuing/personalization_design_reject_params.rbi +++ b/rbi/stripe/params/issuing/personalization_design_reject_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Issuing - class PersonalizationDesignRejectParams < Stripe::RequestParams - class RejectionReasons < Stripe::RequestParams + class PersonalizationDesignRejectParams < ::Stripe::RequestParams + class RejectionReasons < ::Stripe::RequestParams # The reason(s) the card logo was rejected. sig { returns(T.nilable(T::Array[String])) } def card_logo; end diff --git a/rbi/stripe/params/issuing/personalization_design_retrieve_params.rbi b/rbi/stripe/params/issuing/personalization_design_retrieve_params.rbi index 62917406..37c1b1da 100644 --- a/rbi/stripe/params/issuing/personalization_design_retrieve_params.rbi +++ b/rbi/stripe/params/issuing/personalization_design_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class PersonalizationDesignRetrieveParams < Stripe::RequestParams + class PersonalizationDesignRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/personalization_design_update_params.rbi b/rbi/stripe/params/issuing/personalization_design_update_params.rbi index 878c244f..6bf05d10 100644 --- a/rbi/stripe/params/issuing/personalization_design_update_params.rbi +++ b/rbi/stripe/params/issuing/personalization_design_update_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Issuing - class PersonalizationDesignUpdateParams < Stripe::RequestParams - class CarrierText < Stripe::RequestParams + class PersonalizationDesignUpdateParams < ::Stripe::RequestParams + class CarrierText < ::Stripe::RequestParams # The footer body text of the carrier letter. sig { returns(T.nilable(String)) } def footer_body; end @@ -36,7 +36,7 @@ module Stripe header_title: nil ); end end - class Preferences < Stripe::RequestParams + class Preferences < ::Stripe::RequestParams # Whether we use this personalization design to create cards when one isn't specified. A connected account uses the Connect platform's default design if no personalization design is set as the default design. sig { returns(T::Boolean) } def is_default; end diff --git a/rbi/stripe/params/issuing/physical_bundle_list_params.rbi b/rbi/stripe/params/issuing/physical_bundle_list_params.rbi index f5ea958b..aaca4628 100644 --- a/rbi/stripe/params/issuing/physical_bundle_list_params.rbi +++ b/rbi/stripe/params/issuing/physical_bundle_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class PhysicalBundleListParams < Stripe::RequestParams + class PhysicalBundleListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/issuing/physical_bundle_retrieve_params.rbi b/rbi/stripe/params/issuing/physical_bundle_retrieve_params.rbi index efea29d3..6ec597fc 100644 --- a/rbi/stripe/params/issuing/physical_bundle_retrieve_params.rbi +++ b/rbi/stripe/params/issuing/physical_bundle_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class PhysicalBundleRetrieveParams < Stripe::RequestParams + class PhysicalBundleRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/token_list_params.rbi b/rbi/stripe/params/issuing/token_list_params.rbi index 068c5f1f..e2391c1b 100644 --- a/rbi/stripe/params/issuing/token_list_params.rbi +++ b/rbi/stripe/params/issuing/token_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Issuing - class TokenListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class TokenListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/issuing/token_retrieve_params.rbi b/rbi/stripe/params/issuing/token_retrieve_params.rbi index 88561966..4d25c648 100644 --- a/rbi/stripe/params/issuing/token_retrieve_params.rbi +++ b/rbi/stripe/params/issuing/token_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class TokenRetrieveParams < Stripe::RequestParams + class TokenRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/token_update_params.rbi b/rbi/stripe/params/issuing/token_update_params.rbi index a349a702..67341b7a 100644 --- a/rbi/stripe/params/issuing/token_update_params.rbi +++ b/rbi/stripe/params/issuing/token_update_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class TokenUpdateParams < Stripe::RequestParams + class TokenUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/transaction_create_force_capture_params.rbi b/rbi/stripe/params/issuing/transaction_create_force_capture_params.rbi index 9ab582d9..e1e0bff7 100644 --- a/rbi/stripe/params/issuing/transaction_create_force_capture_params.rbi +++ b/rbi/stripe/params/issuing/transaction_create_force_capture_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Issuing - class TransactionCreateForceCaptureParams < Stripe::RequestParams - class MerchantData < Stripe::RequestParams + class TransactionCreateForceCaptureParams < ::Stripe::RequestParams + class MerchantData < ::Stripe::RequestParams # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. sig { returns(T.nilable(String)) } def category; end @@ -66,9 +66,9 @@ module Stripe url: nil ); end end - class PurchaseDetails < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class PurchaseDetails < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. sig { returns(T.nilable(String)) } def driver_id; end @@ -105,8 +105,8 @@ module Stripe vehicle_number: nil ); end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -115,7 +115,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -124,7 +124,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -210,8 +210,8 @@ module Stripe service_type: nil ); end end - class Flight < Stripe::RequestParams - class Segment < Stripe::RequestParams + class Flight < ::Stripe::RequestParams + class Segment < ::Stripe::RequestParams # The three-letter IATA airport code of the flight's destination. sig { returns(T.nilable(String)) } def arrival_airport_code; end @@ -294,7 +294,7 @@ module Stripe travel_agency: nil ); end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end @@ -331,7 +331,7 @@ module Stripe unit_cost_decimal: nil ); end end - class Lodging < Stripe::RequestParams + class Lodging < ::Stripe::RequestParams # The time of checking into the lodging. sig { returns(T.nilable(Integer)) } def check_in_at; end @@ -345,7 +345,7 @@ module Stripe sig { params(check_in_at: T.nilable(Integer), nights: T.nilable(Integer)).void } def initialize(check_in_at: nil, nights: nil); end end - class Receipt < Stripe::RequestParams + class Receipt < ::Stripe::RequestParams # Attribute for param field description sig { returns(T.nilable(String)) } def description; end diff --git a/rbi/stripe/params/issuing/transaction_create_unlinked_refund_params.rbi b/rbi/stripe/params/issuing/transaction_create_unlinked_refund_params.rbi index 5c67f686..0d956c71 100644 --- a/rbi/stripe/params/issuing/transaction_create_unlinked_refund_params.rbi +++ b/rbi/stripe/params/issuing/transaction_create_unlinked_refund_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Issuing - class TransactionCreateUnlinkedRefundParams < Stripe::RequestParams - class MerchantData < Stripe::RequestParams + class TransactionCreateUnlinkedRefundParams < ::Stripe::RequestParams + class MerchantData < ::Stripe::RequestParams # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. sig { returns(T.nilable(String)) } def category; end @@ -66,9 +66,9 @@ module Stripe url: nil ); end end - class PurchaseDetails < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class PurchaseDetails < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. sig { returns(T.nilable(String)) } def driver_id; end @@ -105,8 +105,8 @@ module Stripe vehicle_number: nil ); end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -115,7 +115,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -124,7 +124,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -210,8 +210,8 @@ module Stripe service_type: nil ); end end - class Flight < Stripe::RequestParams - class Segment < Stripe::RequestParams + class Flight < ::Stripe::RequestParams + class Segment < ::Stripe::RequestParams # The three-letter IATA airport code of the flight's destination. sig { returns(T.nilable(String)) } def arrival_airport_code; end @@ -294,7 +294,7 @@ module Stripe travel_agency: nil ); end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end @@ -331,7 +331,7 @@ module Stripe unit_cost_decimal: nil ); end end - class Lodging < Stripe::RequestParams + class Lodging < ::Stripe::RequestParams # The time of checking into the lodging. sig { returns(T.nilable(Integer)) } def check_in_at; end @@ -345,7 +345,7 @@ module Stripe sig { params(check_in_at: T.nilable(Integer), nights: T.nilable(Integer)).void } def initialize(check_in_at: nil, nights: nil); end end - class Receipt < Stripe::RequestParams + class Receipt < ::Stripe::RequestParams # Attribute for param field description sig { returns(T.nilable(String)) } def description; end diff --git a/rbi/stripe/params/issuing/transaction_list_params.rbi b/rbi/stripe/params/issuing/transaction_list_params.rbi index 7772ccf7..f68164b8 100644 --- a/rbi/stripe/params/issuing/transaction_list_params.rbi +++ b/rbi/stripe/params/issuing/transaction_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Issuing - class TransactionListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class TransactionListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/issuing/transaction_refund_params.rbi b/rbi/stripe/params/issuing/transaction_refund_params.rbi index c24bb5bb..30b7b326 100644 --- a/rbi/stripe/params/issuing/transaction_refund_params.rbi +++ b/rbi/stripe/params/issuing/transaction_refund_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class TransactionRefundParams < Stripe::RequestParams + class TransactionRefundParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/transaction_retrieve_params.rbi b/rbi/stripe/params/issuing/transaction_retrieve_params.rbi index b559e62f..7f68975f 100644 --- a/rbi/stripe/params/issuing/transaction_retrieve_params.rbi +++ b/rbi/stripe/params/issuing/transaction_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class TransactionRetrieveParams < Stripe::RequestParams + class TransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/issuing/transaction_update_params.rbi b/rbi/stripe/params/issuing/transaction_update_params.rbi index bdf348a5..2258570d 100644 --- a/rbi/stripe/params/issuing/transaction_update_params.rbi +++ b/rbi/stripe/params/issuing/transaction_update_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Issuing - class TransactionUpdateParams < Stripe::RequestParams + class TransactionUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/mandate_retrieve_params.rbi b/rbi/stripe/params/mandate_retrieve_params.rbi index 17f3872f..c76d3e5f 100644 --- a/rbi/stripe/params/mandate_retrieve_params.rbi +++ b/rbi/stripe/params/mandate_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class MandateRetrieveParams < Stripe::RequestParams + class MandateRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/payment_attempt_record_list_params.rbi b/rbi/stripe/params/payment_attempt_record_list_params.rbi new file mode 100644 index 00000000..a9d84fd4 --- /dev/null +++ b/rbi/stripe/params/payment_attempt_record_list_params.rbi @@ -0,0 +1,32 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + class PaymentAttemptRecordListParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. + sig { returns(T.nilable(Integer)) } + def limit; end + sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) } + def limit=(_limit); end + # The ID of the Payment Record. + sig { returns(String) } + def payment_record; end + sig { params(_payment_record: String).returns(String) } + def payment_record=(_payment_record); end + # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. + sig { returns(T.nilable(String)) } + def starting_after; end + sig { params(_starting_after: T.nilable(String)).returns(T.nilable(String)) } + def starting_after=(_starting_after); end + sig { + params(expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), payment_record: String, starting_after: T.nilable(String)).void + } + def initialize(expand: nil, limit: nil, payment_record: nil, starting_after: nil); end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/payment_attempt_record_retrieve_params.rbi b/rbi/stripe/params/payment_attempt_record_retrieve_params.rbi new file mode 100644 index 00000000..98536bbf --- /dev/null +++ b/rbi/stripe/params/payment_attempt_record_retrieve_params.rbi @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + class PaymentAttemptRecordRetrieveParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + sig { params(expand: T.nilable(T::Array[String])).void } + def initialize(expand: nil); end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/payment_intent_amount_details_line_item_list_params.rbi b/rbi/stripe/params/payment_intent_amount_details_line_item_list_params.rbi new file mode 100644 index 00000000..a241e1e9 --- /dev/null +++ b/rbi/stripe/params/payment_intent_amount_details_line_item_list_params.rbi @@ -0,0 +1,32 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + class PaymentIntentAmountDetailsLineItemListParams < ::Stripe::RequestParams + # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. + sig { returns(T.nilable(String)) } + def ending_before; end + sig { params(_ending_before: T.nilable(String)).returns(T.nilable(String)) } + def ending_before=(_ending_before); end + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. + sig { returns(T.nilable(Integer)) } + def limit; end + sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) } + def limit=(_limit); end + # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. + sig { returns(T.nilable(String)) } + def starting_after; end + sig { params(_starting_after: T.nilable(String)).returns(T.nilable(String)) } + def starting_after=(_starting_after); end + sig { + params(ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), starting_after: T.nilable(String)).void + } + def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil); end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/payment_intent_apply_customer_balance_params.rbi b/rbi/stripe/params/payment_intent_apply_customer_balance_params.rbi index f3633aca..021ececa 100644 --- a/rbi/stripe/params/payment_intent_apply_customer_balance_params.rbi +++ b/rbi/stripe/params/payment_intent_apply_customer_balance_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PaymentIntentApplyCustomerBalanceParams < Stripe::RequestParams + class PaymentIntentApplyCustomerBalanceParams < ::Stripe::RequestParams # Amount that you intend to apply to this PaymentIntent from the customer’s cash balance. If the PaymentIntent was created by an Invoice, the full amount of the PaymentIntent is applied regardless of this parameter. # # A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (for example, 100 cents to charge 1 USD or 100 to charge 100 JPY, a zero-decimal currency). The maximum amount is the amount of the PaymentIntent. diff --git a/rbi/stripe/params/payment_intent_cancel_params.rbi b/rbi/stripe/params/payment_intent_cancel_params.rbi index afff1edb..030a89ae 100644 --- a/rbi/stripe/params/payment_intent_cancel_params.rbi +++ b/rbi/stripe/params/payment_intent_cancel_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PaymentIntentCancelParams < Stripe::RequestParams + class PaymentIntentCancelParams < ::Stripe::RequestParams # Reason for canceling this PaymentIntent. Possible values are: `duplicate`, `fraudulent`, `requested_by_customer`, or `abandoned` sig { returns(T.nilable(String)) } def cancellation_reason; end diff --git a/rbi/stripe/params/payment_intent_capture_params.rbi b/rbi/stripe/params/payment_intent_capture_params.rbi index 614d240a..03bb2f1d 100644 --- a/rbi/stripe/params/payment_intent_capture_params.rbi +++ b/rbi/stripe/params/payment_intent_capture_params.rbi @@ -3,8 +3,272 @@ # typed: true module Stripe - class PaymentIntentCaptureParams < Stripe::RequestParams - class TransferData < Stripe::RequestParams + class PaymentIntentCaptureParams < ::Stripe::RequestParams + class AmountDetails < ::Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + sig { returns(T.nilable(String)) } + def commodity_code; end + sig { params(_commodity_code: T.nilable(String)).returns(T.nilable(String)) } + def commodity_code=(_commodity_code); end + sig { params(commodity_code: T.nilable(String)).void } + def initialize(commodity_code: nil); end + end + class CardPresent < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + sig { returns(T.nilable(String)) } + def commodity_code; end + sig { params(_commodity_code: T.nilable(String)).returns(T.nilable(String)) } + def commodity_code=(_commodity_code); end + sig { params(commodity_code: T.nilable(String)).void } + def initialize(commodity_code: nil); end + end + class Klarna < ::Stripe::RequestParams + # URL to an image for the product. Max length, 4096 characters. + sig { returns(T.nilable(String)) } + def image_url; end + sig { params(_image_url: T.nilable(String)).returns(T.nilable(String)) } + def image_url=(_image_url); end + # URL to the product page. Max length, 4096 characters. + sig { returns(T.nilable(String)) } + def product_url; end + sig { params(_product_url: T.nilable(String)).returns(T.nilable(String)) } + def product_url=(_product_url); end + # Unique reference for this line item to correlate it with your system’s internal records. The field is displayed in the Klarna Consumer App if passed. + sig { returns(T.nilable(String)) } + def reference; end + sig { params(_reference: T.nilable(String)).returns(T.nilable(String)) } + def reference=(_reference); end + # Reference for the subscription this line item is for. + sig { returns(T.nilable(String)) } + def subscription_reference; end + sig { params(_subscription_reference: T.nilable(String)).returns(T.nilable(String)) } + def subscription_reference=(_subscription_reference); end + sig { + params(image_url: T.nilable(String), product_url: T.nilable(String), reference: T.nilable(String), subscription_reference: T.nilable(String)).void + } + def initialize( + image_url: nil, + product_url: nil, + reference: nil, + subscription_reference: nil + ); end + end + class Paypal < ::Stripe::RequestParams + # Type of the line item. + sig { returns(T.nilable(String)) } + def category; end + sig { params(_category: T.nilable(String)).returns(T.nilable(String)) } + def category=(_category); end + # Description of the line item. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # The Stripe account ID of the connected account that sells the item. + sig { returns(T.nilable(String)) } + def sold_by; end + sig { params(_sold_by: T.nilable(String)).returns(T.nilable(String)) } + def sold_by=(_sold_by); end + sig { + params(category: T.nilable(String), description: T.nilable(String), sold_by: T.nilable(String)).void + } + def initialize(category: nil, description: nil, sold_by: nil); end + end + # This sub-hash contains line item details that are specific to `card` payment method." + sig { + returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Card)) + } + def card; end + sig { + params(_card: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Card)).returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Card)) + } + def card=(_card); end + # This sub-hash contains line item details that are specific to `card_present` payment method." + sig { + returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)) + } + def card_present; end + sig { + params(_card_present: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)).returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)) + } + def card_present=(_card_present); end + # This sub-hash contains line item details that are specific to `klarna` payment method." + sig { + returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)) + } + def klarna; end + sig { + params(_klarna: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)).returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)) + } + def klarna=(_klarna); end + # This sub-hash contains line item details that are specific to `paypal` payment method." + sig { + returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)) + } + def paypal; end + sig { + params(_paypal: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)) + } + def paypal=(_paypal); end + sig { + params(card: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Card), card_present: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent), klarna: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna), paypal: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).void + } + def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end + end + class Tax < ::Stripe::RequestParams + # The total tax on an item. Non-negative integer. + sig { returns(Integer) } + def total_tax_amount; end + sig { params(_total_tax_amount: Integer).returns(Integer) } + def total_tax_amount=(_total_tax_amount); end + sig { params(total_tax_amount: Integer).void } + def initialize(total_tax_amount: nil); end + end + # The amount an item was discounted for. Positive integer. + sig { returns(T.nilable(Integer)) } + def discount_amount; end + sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } + def discount_amount=(_discount_amount); end + # Payment method-specific information for line items. + sig { + returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions)) + } + def payment_method_options; end + sig { + params(_payment_method_options: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions)).returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions)) + } + def payment_method_options=(_payment_method_options); end + # Unique identifier of the product. At most 12 characters long. + sig { returns(T.nilable(String)) } + def product_code; end + sig { params(_product_code: T.nilable(String)).returns(T.nilable(String)) } + def product_code=(_product_code); end + # Name of the product. At most 100 characters long. + sig { returns(String) } + def product_name; end + sig { params(_product_name: String).returns(String) } + def product_name=(_product_name); end + # Number of items of the product. Positive integer. + sig { returns(Integer) } + def quantity; end + sig { params(_quantity: Integer).returns(Integer) } + def quantity=(_quantity); end + # Contains information about the tax on the item. + sig { returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::Tax)) } + def tax; end + sig { + params(_tax: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::Tax)).returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::Tax)) + } + def tax=(_tax); end + # Cost of the product. Non-negative integer. + sig { returns(Integer) } + def unit_cost; end + sig { params(_unit_cost: Integer).returns(Integer) } + def unit_cost=(_unit_cost); end + # A unit of measure for the line item, such as gallons, feet, meters, etc. + sig { returns(T.nilable(String)) } + def unit_of_measure; end + sig { params(_unit_of_measure: T.nilable(String)).returns(T.nilable(String)) } + def unit_of_measure=(_unit_of_measure); end + sig { + params(discount_amount: T.nilable(Integer), payment_method_options: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions), product_code: T.nilable(String), product_name: String, quantity: Integer, tax: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::Tax), unit_cost: Integer, unit_of_measure: T.nilable(String)).void + } + def initialize( + discount_amount: nil, + payment_method_options: nil, + product_code: nil, + product_name: nil, + quantity: nil, + tax: nil, + unit_cost: nil, + unit_of_measure: nil + ); end + end + class Shipping < ::Stripe::RequestParams + # Portion of the amount that is for shipping. + sig { returns(T.nilable(T.any(String, Integer))) } + def amount; end + sig { + params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) + } + def amount=(_amount); end + # The postal code that represents the shipping source. + sig { returns(T.nilable(String)) } + def from_postal_code; end + sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def from_postal_code=(_from_postal_code); end + # The postal code that represents the shipping destination. + sig { returns(T.nilable(String)) } + def to_postal_code; end + sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def to_postal_code=(_to_postal_code); end + sig { + params(amount: T.nilable(T.any(String, Integer)), from_postal_code: T.nilable(String), to_postal_code: T.nilable(String)).void + } + def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end + end + class Tax < ::Stripe::RequestParams + # Total portion of the amount that is for tax. + sig { returns(Integer) } + def total_tax_amount; end + sig { params(_total_tax_amount: Integer).returns(Integer) } + def total_tax_amount=(_total_tax_amount); end + sig { params(total_tax_amount: Integer).void } + def initialize(total_tax_amount: nil); end + end + # The total discount applied on the transaction. + sig { returns(T.nilable(T.any(String, Integer))) } + def discount_amount; end + sig { + params(_discount_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) + } + def discount_amount=(_discount_amount); end + # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. + sig { + returns(T.nilable(T.any(String, T::Array[PaymentIntentCaptureParams::AmountDetails::LineItem]))) + } + def line_items; end + sig { + params(_line_items: T.nilable(T.any(String, T::Array[PaymentIntentCaptureParams::AmountDetails::LineItem]))).returns(T.nilable(T.any(String, T::Array[PaymentIntentCaptureParams::AmountDetails::LineItem]))) + } + def line_items=(_line_items); end + # Contains information about the shipping portion of the amount. + sig { returns(T.nilable(T.any(String, PaymentIntentCaptureParams::AmountDetails::Shipping))) } + def shipping; end + sig { + params(_shipping: T.nilable(T.any(String, PaymentIntentCaptureParams::AmountDetails::Shipping))).returns(T.nilable(T.any(String, PaymentIntentCaptureParams::AmountDetails::Shipping))) + } + def shipping=(_shipping); end + # Contains information about the tax portion of the amount. + sig { returns(T.nilable(T.any(String, PaymentIntentCaptureParams::AmountDetails::Tax))) } + def tax; end + sig { + params(_tax: T.nilable(T.any(String, PaymentIntentCaptureParams::AmountDetails::Tax))).returns(T.nilable(T.any(String, PaymentIntentCaptureParams::AmountDetails::Tax))) + } + def tax=(_tax); end + sig { + params(discount_amount: T.nilable(T.any(String, Integer)), line_items: T.nilable(T.any(String, T::Array[PaymentIntentCaptureParams::AmountDetails::LineItem])), shipping: T.nilable(T.any(String, PaymentIntentCaptureParams::AmountDetails::Shipping)), tax: T.nilable(T.any(String, PaymentIntentCaptureParams::AmountDetails::Tax))).void + } + def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil); end + end + class PaymentDetails < ::Stripe::RequestParams + # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + sig { returns(T.nilable(String)) } + def customer_reference; end + sig { params(_customer_reference: T.nilable(String)).returns(T.nilable(String)) } + def customer_reference=(_customer_reference); end + # A unique value assigned by the business to identify the transaction. + sig { returns(T.nilable(String)) } + def order_reference; end + sig { params(_order_reference: T.nilable(String)).returns(T.nilable(String)) } + def order_reference=(_order_reference); end + sig { params(customer_reference: T.nilable(String), order_reference: T.nilable(String)).void } + def initialize(customer_reference: nil, order_reference: nil); end + end + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when a charge succeeds. sig { returns(T.nilable(Integer)) } def amount; end @@ -13,6 +277,13 @@ module Stripe sig { params(amount: T.nilable(Integer)).void } def initialize(amount: nil); end end + # Provides industry-specific information about the amount. + sig { returns(T.nilable(PaymentIntentCaptureParams::AmountDetails)) } + def amount_details; end + sig { + params(_amount_details: T.nilable(PaymentIntentCaptureParams::AmountDetails)).returns(T.nilable(PaymentIntentCaptureParams::AmountDetails)) + } + def amount_details=(_amount_details); end # The amount to capture from the PaymentIntent, which must be less than or equal to the original amount. Defaults to the full `amount_capturable` if it's not provided. sig { returns(T.nilable(Integer)) } def amount_to_capture; end @@ -40,6 +311,13 @@ module Stripe params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) } def metadata=(_metadata); end + # Provides industry-specific information about the charge. + sig { returns(T.nilable(T.any(String, PaymentIntentCaptureParams::PaymentDetails))) } + def payment_details; end + sig { + params(_payment_details: T.nilable(T.any(String, PaymentIntentCaptureParams::PaymentDetails))).returns(T.nilable(T.any(String, PaymentIntentCaptureParams::PaymentDetails))) + } + def payment_details=(_payment_details); end # Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). # # Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead. @@ -61,14 +339,16 @@ module Stripe } def transfer_data=(_transfer_data); end sig { - params(amount_to_capture: T.nilable(Integer), application_fee_amount: T.nilable(Integer), expand: T.nilable(T::Array[String]), final_capture: T.nilable(T::Boolean), metadata: T.nilable(T.any(String, T::Hash[String, String])), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(PaymentIntentCaptureParams::TransferData)).void + params(amount_details: T.nilable(PaymentIntentCaptureParams::AmountDetails), amount_to_capture: T.nilable(Integer), application_fee_amount: T.nilable(Integer), expand: T.nilable(T::Array[String]), final_capture: T.nilable(T::Boolean), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_details: T.nilable(T.any(String, PaymentIntentCaptureParams::PaymentDetails)), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(PaymentIntentCaptureParams::TransferData)).void } def initialize( + amount_details: nil, amount_to_capture: nil, application_fee_amount: nil, expand: nil, final_capture: nil, metadata: nil, + payment_details: nil, statement_descriptor: nil, statement_descriptor_suffix: nil, transfer_data: nil diff --git a/rbi/stripe/params/payment_intent_confirm_params.rbi b/rbi/stripe/params/payment_intent_confirm_params.rbi index 9a0b4b54..89db86ca 100644 --- a/rbi/stripe/params/payment_intent_confirm_params.rbi +++ b/rbi/stripe/params/payment_intent_confirm_params.rbi @@ -3,11 +3,261 @@ # typed: true module Stripe - class PaymentIntentConfirmParams < Stripe::RequestParams - class MandateData < Stripe::RequestParams - class CustomerAcceptance < Stripe::RequestParams - class Offline < Stripe::RequestParams; end - class Online < Stripe::RequestParams + class PaymentIntentConfirmParams < ::Stripe::RequestParams + class AmountDetails < ::Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + sig { returns(T.nilable(String)) } + def commodity_code; end + sig { params(_commodity_code: T.nilable(String)).returns(T.nilable(String)) } + def commodity_code=(_commodity_code); end + sig { params(commodity_code: T.nilable(String)).void } + def initialize(commodity_code: nil); end + end + class CardPresent < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + sig { returns(T.nilable(String)) } + def commodity_code; end + sig { params(_commodity_code: T.nilable(String)).returns(T.nilable(String)) } + def commodity_code=(_commodity_code); end + sig { params(commodity_code: T.nilable(String)).void } + def initialize(commodity_code: nil); end + end + class Klarna < ::Stripe::RequestParams + # URL to an image for the product. Max length, 4096 characters. + sig { returns(T.nilable(String)) } + def image_url; end + sig { params(_image_url: T.nilable(String)).returns(T.nilable(String)) } + def image_url=(_image_url); end + # URL to the product page. Max length, 4096 characters. + sig { returns(T.nilable(String)) } + def product_url; end + sig { params(_product_url: T.nilable(String)).returns(T.nilable(String)) } + def product_url=(_product_url); end + # Unique reference for this line item to correlate it with your system’s internal records. The field is displayed in the Klarna Consumer App if passed. + sig { returns(T.nilable(String)) } + def reference; end + sig { params(_reference: T.nilable(String)).returns(T.nilable(String)) } + def reference=(_reference); end + # Reference for the subscription this line item is for. + sig { returns(T.nilable(String)) } + def subscription_reference; end + sig { params(_subscription_reference: T.nilable(String)).returns(T.nilable(String)) } + def subscription_reference=(_subscription_reference); end + sig { + params(image_url: T.nilable(String), product_url: T.nilable(String), reference: T.nilable(String), subscription_reference: T.nilable(String)).void + } + def initialize( + image_url: nil, + product_url: nil, + reference: nil, + subscription_reference: nil + ); end + end + class Paypal < ::Stripe::RequestParams + # Type of the line item. + sig { returns(T.nilable(String)) } + def category; end + sig { params(_category: T.nilable(String)).returns(T.nilable(String)) } + def category=(_category); end + # Description of the line item. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # The Stripe account ID of the connected account that sells the item. + sig { returns(T.nilable(String)) } + def sold_by; end + sig { params(_sold_by: T.nilable(String)).returns(T.nilable(String)) } + def sold_by=(_sold_by); end + sig { + params(category: T.nilable(String), description: T.nilable(String), sold_by: T.nilable(String)).void + } + def initialize(category: nil, description: nil, sold_by: nil); end + end + # This sub-hash contains line item details that are specific to `card` payment method." + sig { + returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Card)) + } + def card; end + sig { + params(_card: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Card)).returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Card)) + } + def card=(_card); end + # This sub-hash contains line item details that are specific to `card_present` payment method." + sig { + returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)) + } + def card_present; end + sig { + params(_card_present: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)).returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)) + } + def card_present=(_card_present); end + # This sub-hash contains line item details that are specific to `klarna` payment method." + sig { + returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)) + } + def klarna; end + sig { + params(_klarna: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)).returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)) + } + def klarna=(_klarna); end + # This sub-hash contains line item details that are specific to `paypal` payment method." + sig { + returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)) + } + def paypal; end + sig { + params(_paypal: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)) + } + def paypal=(_paypal); end + sig { + params(card: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Card), card_present: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent), klarna: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna), paypal: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).void + } + def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end + end + class Tax < ::Stripe::RequestParams + # The total tax on an item. Non-negative integer. + sig { returns(Integer) } + def total_tax_amount; end + sig { params(_total_tax_amount: Integer).returns(Integer) } + def total_tax_amount=(_total_tax_amount); end + sig { params(total_tax_amount: Integer).void } + def initialize(total_tax_amount: nil); end + end + # The amount an item was discounted for. Positive integer. + sig { returns(T.nilable(Integer)) } + def discount_amount; end + sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } + def discount_amount=(_discount_amount); end + # Payment method-specific information for line items. + sig { + returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions)) + } + def payment_method_options; end + sig { + params(_payment_method_options: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions)).returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions)) + } + def payment_method_options=(_payment_method_options); end + # Unique identifier of the product. At most 12 characters long. + sig { returns(T.nilable(String)) } + def product_code; end + sig { params(_product_code: T.nilable(String)).returns(T.nilable(String)) } + def product_code=(_product_code); end + # Name of the product. At most 100 characters long. + sig { returns(String) } + def product_name; end + sig { params(_product_name: String).returns(String) } + def product_name=(_product_name); end + # Number of items of the product. Positive integer. + sig { returns(Integer) } + def quantity; end + sig { params(_quantity: Integer).returns(Integer) } + def quantity=(_quantity); end + # Contains information about the tax on the item. + sig { returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::Tax)) } + def tax; end + sig { + params(_tax: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::Tax)).returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::Tax)) + } + def tax=(_tax); end + # Cost of the product. Non-negative integer. + sig { returns(Integer) } + def unit_cost; end + sig { params(_unit_cost: Integer).returns(Integer) } + def unit_cost=(_unit_cost); end + # A unit of measure for the line item, such as gallons, feet, meters, etc. + sig { returns(T.nilable(String)) } + def unit_of_measure; end + sig { params(_unit_of_measure: T.nilable(String)).returns(T.nilable(String)) } + def unit_of_measure=(_unit_of_measure); end + sig { + params(discount_amount: T.nilable(Integer), payment_method_options: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions), product_code: T.nilable(String), product_name: String, quantity: Integer, tax: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::Tax), unit_cost: Integer, unit_of_measure: T.nilable(String)).void + } + def initialize( + discount_amount: nil, + payment_method_options: nil, + product_code: nil, + product_name: nil, + quantity: nil, + tax: nil, + unit_cost: nil, + unit_of_measure: nil + ); end + end + class Shipping < ::Stripe::RequestParams + # Portion of the amount that is for shipping. + sig { returns(T.nilable(T.any(String, Integer))) } + def amount; end + sig { + params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) + } + def amount=(_amount); end + # The postal code that represents the shipping source. + sig { returns(T.nilable(String)) } + def from_postal_code; end + sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def from_postal_code=(_from_postal_code); end + # The postal code that represents the shipping destination. + sig { returns(T.nilable(String)) } + def to_postal_code; end + sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def to_postal_code=(_to_postal_code); end + sig { + params(amount: T.nilable(T.any(String, Integer)), from_postal_code: T.nilable(String), to_postal_code: T.nilable(String)).void + } + def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end + end + class Tax < ::Stripe::RequestParams + # Total portion of the amount that is for tax. + sig { returns(Integer) } + def total_tax_amount; end + sig { params(_total_tax_amount: Integer).returns(Integer) } + def total_tax_amount=(_total_tax_amount); end + sig { params(total_tax_amount: Integer).void } + def initialize(total_tax_amount: nil); end + end + # The total discount applied on the transaction. + sig { returns(T.nilable(T.any(String, Integer))) } + def discount_amount; end + sig { + params(_discount_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) + } + def discount_amount=(_discount_amount); end + # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. + sig { + returns(T.nilable(T.any(String, T::Array[PaymentIntentConfirmParams::AmountDetails::LineItem]))) + } + def line_items; end + sig { + params(_line_items: T.nilable(T.any(String, T::Array[PaymentIntentConfirmParams::AmountDetails::LineItem]))).returns(T.nilable(T.any(String, T::Array[PaymentIntentConfirmParams::AmountDetails::LineItem]))) + } + def line_items=(_line_items); end + # Contains information about the shipping portion of the amount. + sig { returns(T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails::Shipping))) } + def shipping; end + sig { + params(_shipping: T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails::Shipping))).returns(T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails::Shipping))) + } + def shipping=(_shipping); end + # Contains information about the tax portion of the amount. + sig { returns(T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails::Tax))) } + def tax; end + sig { + params(_tax: T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails::Tax))).returns(T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails::Tax))) + } + def tax=(_tax); end + sig { + params(discount_amount: T.nilable(T.any(String, Integer)), line_items: T.nilable(T.any(String, T::Array[PaymentIntentConfirmParams::AmountDetails::LineItem])), shipping: T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails::Shipping)), tax: T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails::Tax))).void + } + def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil); end + end + class MandateData < ::Stripe::RequestParams + class CustomerAcceptance < ::Stripe::RequestParams + class Offline < ::Stripe::RequestParams; end + class Online < ::Stripe::RequestParams # The IP address from which the Mandate was accepted by the customer. sig { returns(T.nilable(String)) } def ip_address; end @@ -66,8 +316,22 @@ module Stripe } def initialize(customer_acceptance: nil); end end - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class PaymentDetails < ::Stripe::RequestParams + # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + sig { returns(T.nilable(String)) } + def customer_reference; end + sig { params(_customer_reference: T.nilable(String)).returns(T.nilable(String)) } + def customer_reference=(_customer_reference); end + # A unique value assigned by the business to identify the transaction. + sig { returns(T.nilable(String)) } + def order_reference; end + sig { params(_order_reference: T.nilable(String)).returns(T.nilable(String)) } + def order_reference=(_order_reference); end + sig { params(customer_reference: T.nilable(String), order_reference: T.nilable(String)).void } + def initialize(customer_reference: nil, order_reference: nil); end + end + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. sig { returns(String) } def account_number; end @@ -88,12 +352,12 @@ module Stripe } def initialize(account_number: nil, institution_number: nil, transit_number: nil); end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. sig { returns(String) } def account_number; end @@ -107,7 +371,7 @@ module Stripe sig { params(account_number: String, bsb_number: String).void } def initialize(account_number: nil, bsb_number: nil); end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. sig { returns(T.nilable(String)) } def account_number; end @@ -121,10 +385,10 @@ module Stripe sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void } def initialize(account_number: nil, sort_code: nil); end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -201,8 +465,8 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end - class Blik < Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Blik < ::Stripe::RequestParams; end + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) sig { returns(String) } def tax_id; end @@ -211,10 +475,10 @@ module Stripe sig { params(tax_id: String).void } def initialize(tax_id: nil); end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end + class Eps < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -223,7 +487,7 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction sig { returns(T.nilable(String)) } def account_holder_type; end @@ -237,9 +501,9 @@ module Stripe sig { params(account_holder_type: T.nilable(String), bank: String).void } def initialize(account_holder_type: nil, bank: nil); end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. sig { returns(T.nilable(String)) } def bank; end @@ -248,10 +512,10 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -282,13 +546,13 @@ module Stripe } def initialize(dob: nil); end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. sig { returns(T.nilable(String)) } def funding; end @@ -297,7 +561,7 @@ module Stripe sig { params(funding: T.nilable(String)).void } def initialize(funding: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -340,8 +604,8 @@ module Stripe suffix: nil ); end end - class Oxxo < Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams; end + class P24 < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -350,13 +614,13 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -365,10 +629,10 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } def iban; end @@ -377,7 +641,7 @@ module Stripe sig { params(iban: String).void } def initialize(iban: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. sig { returns(String) } def country; end @@ -386,9 +650,9 @@ module Stripe sig { params(country: String).void } def initialize(country: nil); end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -425,8 +689,8 @@ module Stripe routing_number: nil ); end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. sig { returns(T.nilable(PaymentIntentConfirmParams::PaymentMethodData::AcssDebit)) } def acss_debit; end @@ -861,9 +1125,9 @@ module Stripe zip: nil ); end end - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # A URL for custom mandate text to render during confirmation step. # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. @@ -940,7 +1204,7 @@ module Stripe verification_method: nil ); end end - class Affirm < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -973,7 +1237,7 @@ module Stripe } def initialize(capture_method: nil, preferred_locale: nil, setup_future_usage: nil); end end - class AfterpayClearpay < Stripe::RequestParams + class AfterpayClearpay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1007,7 +1271,7 @@ module Stripe } def initialize(capture_method: nil, reference: nil, setup_future_usage: nil); end end - class Alipay < Stripe::RequestParams + class Alipay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1026,7 +1290,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(T.any(String, String))).void } def initialize(setup_future_usage: nil); end end - class Alma < Stripe::RequestParams + class Alma < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1039,7 +1303,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class AmazonPay < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1067,7 +1331,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class AuBecsDebit < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1093,8 +1357,8 @@ module Stripe } def initialize(setup_future_usage: nil, target_date: nil); end end - class BacsDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -1137,7 +1401,7 @@ module Stripe } def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Preferred language of the Bancontact authorization page that the customer is redirected to. sig { returns(T.nilable(String)) } def preferred_language; end @@ -1163,7 +1427,7 @@ module Stripe } def initialize(preferred_language: nil, setup_future_usage: nil); end end - class Billie < Stripe::RequestParams + class Billie < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1176,7 +1440,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Blik < Stripe::RequestParams + class Blik < ::Stripe::RequestParams # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. sig { returns(T.nilable(String)) } def code; end @@ -1198,7 +1462,7 @@ module Stripe sig { params(code: T.nilable(String), setup_future_usage: T.nilable(String)).void } def initialize(code: nil, setup_future_usage: nil); end end - class Boleto < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. sig { returns(T.nilable(Integer)) } def expires_after_days; end @@ -1224,9 +1488,9 @@ module Stripe } def initialize(expires_after_days: nil, setup_future_usage: nil); end end - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams - class Plan < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams + class Plan < ::Stripe::RequestParams # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. sig { returns(T.nilable(Integer)) } def count; end @@ -1270,7 +1534,7 @@ module Stripe } def initialize(enabled: nil, plan: nil); end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. sig { returns(Integer) } def amount; end @@ -1333,9 +1597,9 @@ module Stripe supported_types: nil ); end end - class ThreeDSecure < Stripe::RequestParams - class NetworkOptions < Stripe::RequestParams - class CartesBancaires < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams + class NetworkOptions < ::Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams # The cryptogram calculation algorithm used by the card Issuer's ACS # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. # messageExtension: CB-AVALGO @@ -1589,8 +1853,8 @@ module Stripe three_d_secure: nil ); end end - class CardPresent < Stripe::RequestParams - class Routing < Stripe::RequestParams + class CardPresent < ::Stripe::RequestParams + class Routing < ::Stripe::RequestParams # Routing requested priority sig { returns(T.nilable(String)) } def requested_priority; end @@ -1633,7 +1897,7 @@ module Stripe routing: nil ); end end - class Cashapp < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1663,7 +1927,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Crypto < Stripe::RequestParams + class Crypto < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1680,9 +1944,9 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -1751,7 +2015,7 @@ module Stripe } def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil); end end - class Eps < Stripe::RequestParams + class Eps < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1768,7 +2032,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1785,7 +2049,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Giropay < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1802,7 +2066,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Grabpay < Stripe::RequestParams + class Grabpay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1819,7 +2083,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Ideal < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1838,8 +2102,8 @@ module Stripe sig { params(setup_future_usage: T.nilable(T.any(String, String))).void } def initialize(setup_future_usage: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1867,8 +2131,8 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Klarna < Stripe::RequestParams - class OnDemand < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class OnDemand < ::Stripe::RequestParams # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. sig { returns(T.nilable(Integer)) } def average_amount; end @@ -1905,8 +2169,8 @@ module Stripe purchase_interval_count: nil ); end end - class Subscription < Stripe::RequestParams - class NextBilling < Stripe::RequestParams + class Subscription < ::Stripe::RequestParams + class NextBilling < ::Stripe::RequestParams # The amount of the next charge for the subscription. sig { returns(Integer) } def amount; end @@ -2016,7 +2280,7 @@ module Stripe subscriptions: nil ); end end - class Konbini < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams # An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number. sig { returns(T.nilable(String)) } def confirmation_number; end @@ -2065,7 +2329,7 @@ module Stripe setup_future_usage: nil ); end end - class KrCard < Stripe::RequestParams + class KrCard < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2093,7 +2357,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Link < Stripe::RequestParams + class Link < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2128,7 +2392,7 @@ module Stripe } def initialize(capture_method: nil, persistent_token: nil, setup_future_usage: nil); end end - class MbWay < Stripe::RequestParams + class MbWay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2145,7 +2409,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Mobilepay < Stripe::RequestParams + class Mobilepay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2173,7 +2437,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Multibanco < Stripe::RequestParams + class Multibanco < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2190,7 +2454,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class NaverPay < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2218,7 +2482,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2244,7 +2508,7 @@ module Stripe } def initialize(setup_future_usage: nil, target_date: nil); end end - class Oxxo < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams # The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. sig { returns(T.nilable(Integer)) } def expires_after_days; end @@ -2268,7 +2532,7 @@ module Stripe } def initialize(expires_after_days: nil, setup_future_usage: nil); end end - class P24 < Stripe::RequestParams + class P24 < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2294,8 +2558,8 @@ module Stripe } def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2308,7 +2572,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Paynow < Stripe::RequestParams + class Paynow < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2325,7 +2589,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Paypal < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -2372,7 +2636,7 @@ module Stripe setup_future_usage: nil ); end end - class Pix < Stripe::RequestParams + class Pix < ::Stripe::RequestParams # Determines if the amount includes the IOF tax. Defaults to `never`. sig { returns(T.nilable(String)) } def amount_includes_iof; end @@ -2411,7 +2675,7 @@ module Stripe setup_future_usage: nil ); end end - class Promptpay < Stripe::RequestParams + class Promptpay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2428,7 +2692,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class RevolutPay < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2456,7 +2720,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class SamsungPay < Stripe::RequestParams + class SamsungPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2469,7 +2733,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Satispay < Stripe::RequestParams + class Satispay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2482,8 +2746,8 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class SepaDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -2526,7 +2790,7 @@ module Stripe } def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Language shown to the payer on redirect. sig { returns(T.nilable(T.any(String, String))) } def preferred_language; end @@ -2554,7 +2818,7 @@ module Stripe } def initialize(preferred_language: nil, setup_future_usage: nil); end end - class Swish < Stripe::RequestParams + class Swish < ::Stripe::RequestParams # A reference for this payment to be displayed in the Swish app. sig { returns(T.nilable(String)) } def reference; end @@ -2576,7 +2840,7 @@ module Stripe sig { params(reference: T.nilable(String), setup_future_usage: T.nilable(String)).void } def initialize(reference: nil, setup_future_usage: nil); end end - class Twint < Stripe::RequestParams + class Twint < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2593,9 +2857,9 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -2639,7 +2903,7 @@ module Stripe } def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil); end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # The method used to collect offline mandate customer acceptance. sig { returns(T.nilable(String)) } def collection_method; end @@ -2648,7 +2912,7 @@ module Stripe sig { params(collection_method: T.nilable(String)).void } def initialize(collection_method: nil); end end - class Networks < Stripe::RequestParams + class Networks < ::Stripe::RequestParams # Triggers validations to run across the selected networks sig { returns(T.nilable(T::Array[String])) } def requested; end @@ -2731,7 +2995,7 @@ module Stripe verification_method: nil ); end end - class WechatPay < Stripe::RequestParams + class WechatPay < ::Stripe::RequestParams # The app ID registered with WeChat Pay. Only required when client is ios or android. sig { returns(T.nilable(String)) } def app_id; end @@ -2760,7 +3024,7 @@ module Stripe } def initialize(app_id: nil, client: nil, setup_future_usage: nil); end end - class Zip < Stripe::RequestParams + class Zip < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -3293,7 +3557,7 @@ module Stripe zip: nil ); end end - class RadarOptions < Stripe::RequestParams + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -3302,8 +3566,8 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -3378,6 +3642,13 @@ module Stripe } def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil); end end + # Provides industry-specific information about the amount. + sig { returns(T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails))) } + def amount_details; end + sig { + params(_amount_details: T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails))).returns(T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails))) + } + def amount_details=(_amount_details); end # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -3426,6 +3697,13 @@ module Stripe params(_off_session: T.nilable(T.any(T::Boolean, String))).returns(T.nilable(T.any(T::Boolean, String))) } def off_session=(_off_session); end + # Provides industry-specific information about the charge. + sig { returns(T.nilable(T.any(String, PaymentIntentConfirmParams::PaymentDetails))) } + def payment_details; end + sig { + params(_payment_details: T.nilable(T.any(String, PaymentIntentConfirmParams::PaymentDetails))).returns(T.nilable(T.any(String, PaymentIntentConfirmParams::PaymentDetails))) + } + def payment_details=(_payment_details); end # ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent. # If the payment method is attached to a Customer, it must match the [customer](https://stripe.com/docs/api#create_payment_intent-customer) that is set on this PaymentIntent. sig { returns(T.nilable(String)) } @@ -3502,9 +3780,10 @@ module Stripe sig { params(_use_stripe_sdk: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } def use_stripe_sdk=(_use_stripe_sdk); end sig { - params(capture_method: T.nilable(String), confirmation_token: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), excluded_payment_method_types: T.nilable(T.any(String, T::Array[String])), expand: T.nilable(T::Array[String]), mandate: T.nilable(String), mandate_data: T.nilable(T.any(String, PaymentIntentConfirmParams::MandateData)), off_session: T.nilable(T.any(T::Boolean, String)), payment_method: T.nilable(String), payment_method_data: T.nilable(PaymentIntentConfirmParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentConfirmParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(PaymentIntentConfirmParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String)), shipping: T.nilable(T.any(String, PaymentIntentConfirmParams::Shipping)), use_stripe_sdk: T.nilable(T::Boolean)).void + params(amount_details: T.nilable(T.any(String, PaymentIntentConfirmParams::AmountDetails)), capture_method: T.nilable(String), confirmation_token: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), excluded_payment_method_types: T.nilable(T.any(String, T::Array[String])), expand: T.nilable(T::Array[String]), mandate: T.nilable(String), mandate_data: T.nilable(T.any(String, PaymentIntentConfirmParams::MandateData)), off_session: T.nilable(T.any(T::Boolean, String)), payment_details: T.nilable(T.any(String, PaymentIntentConfirmParams::PaymentDetails)), payment_method: T.nilable(String), payment_method_data: T.nilable(PaymentIntentConfirmParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentConfirmParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(PaymentIntentConfirmParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String)), shipping: T.nilable(T.any(String, PaymentIntentConfirmParams::Shipping)), use_stripe_sdk: T.nilable(T::Boolean)).void } def initialize( + amount_details: nil, capture_method: nil, confirmation_token: nil, error_on_requires_action: nil, @@ -3513,6 +3792,7 @@ module Stripe mandate: nil, mandate_data: nil, off_session: nil, + payment_details: nil, payment_method: nil, payment_method_data: nil, payment_method_options: nil, diff --git a/rbi/stripe/params/payment_intent_create_params.rbi b/rbi/stripe/params/payment_intent_create_params.rbi index 47801034..c707ec2d 100644 --- a/rbi/stripe/params/payment_intent_create_params.rbi +++ b/rbi/stripe/params/payment_intent_create_params.rbi @@ -3,8 +3,258 @@ # typed: true module Stripe - class PaymentIntentCreateParams < Stripe::RequestParams - class AutomaticPaymentMethods < Stripe::RequestParams + class PaymentIntentCreateParams < ::Stripe::RequestParams + class AmountDetails < ::Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + sig { returns(T.nilable(String)) } + def commodity_code; end + sig { params(_commodity_code: T.nilable(String)).returns(T.nilable(String)) } + def commodity_code=(_commodity_code); end + sig { params(commodity_code: T.nilable(String)).void } + def initialize(commodity_code: nil); end + end + class CardPresent < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + sig { returns(T.nilable(String)) } + def commodity_code; end + sig { params(_commodity_code: T.nilable(String)).returns(T.nilable(String)) } + def commodity_code=(_commodity_code); end + sig { params(commodity_code: T.nilable(String)).void } + def initialize(commodity_code: nil); end + end + class Klarna < ::Stripe::RequestParams + # URL to an image for the product. Max length, 4096 characters. + sig { returns(T.nilable(String)) } + def image_url; end + sig { params(_image_url: T.nilable(String)).returns(T.nilable(String)) } + def image_url=(_image_url); end + # URL to the product page. Max length, 4096 characters. + sig { returns(T.nilable(String)) } + def product_url; end + sig { params(_product_url: T.nilable(String)).returns(T.nilable(String)) } + def product_url=(_product_url); end + # Unique reference for this line item to correlate it with your system’s internal records. The field is displayed in the Klarna Consumer App if passed. + sig { returns(T.nilable(String)) } + def reference; end + sig { params(_reference: T.nilable(String)).returns(T.nilable(String)) } + def reference=(_reference); end + # Reference for the subscription this line item is for. + sig { returns(T.nilable(String)) } + def subscription_reference; end + sig { params(_subscription_reference: T.nilable(String)).returns(T.nilable(String)) } + def subscription_reference=(_subscription_reference); end + sig { + params(image_url: T.nilable(String), product_url: T.nilable(String), reference: T.nilable(String), subscription_reference: T.nilable(String)).void + } + def initialize( + image_url: nil, + product_url: nil, + reference: nil, + subscription_reference: nil + ); end + end + class Paypal < ::Stripe::RequestParams + # Type of the line item. + sig { returns(T.nilable(String)) } + def category; end + sig { params(_category: T.nilable(String)).returns(T.nilable(String)) } + def category=(_category); end + # Description of the line item. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # The Stripe account ID of the connected account that sells the item. + sig { returns(T.nilable(String)) } + def sold_by; end + sig { params(_sold_by: T.nilable(String)).returns(T.nilable(String)) } + def sold_by=(_sold_by); end + sig { + params(category: T.nilable(String), description: T.nilable(String), sold_by: T.nilable(String)).void + } + def initialize(category: nil, description: nil, sold_by: nil); end + end + # This sub-hash contains line item details that are specific to `card` payment method." + sig { + returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Card)) + } + def card; end + sig { + params(_card: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Card)).returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Card)) + } + def card=(_card); end + # This sub-hash contains line item details that are specific to `card_present` payment method." + sig { + returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)) + } + def card_present; end + sig { + params(_card_present: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)).returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)) + } + def card_present=(_card_present); end + # This sub-hash contains line item details that are specific to `klarna` payment method." + sig { + returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)) + } + def klarna; end + sig { + params(_klarna: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)).returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)) + } + def klarna=(_klarna); end + # This sub-hash contains line item details that are specific to `paypal` payment method." + sig { + returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)) + } + def paypal; end + sig { + params(_paypal: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)) + } + def paypal=(_paypal); end + sig { + params(card: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Card), card_present: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent), klarna: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna), paypal: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).void + } + def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end + end + class Tax < ::Stripe::RequestParams + # The total tax on an item. Non-negative integer. + sig { returns(Integer) } + def total_tax_amount; end + sig { params(_total_tax_amount: Integer).returns(Integer) } + def total_tax_amount=(_total_tax_amount); end + sig { params(total_tax_amount: Integer).void } + def initialize(total_tax_amount: nil); end + end + # The amount an item was discounted for. Positive integer. + sig { returns(T.nilable(Integer)) } + def discount_amount; end + sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } + def discount_amount=(_discount_amount); end + # Payment method-specific information for line items. + sig { + returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions)) + } + def payment_method_options; end + sig { + params(_payment_method_options: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions)).returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions)) + } + def payment_method_options=(_payment_method_options); end + # Unique identifier of the product. At most 12 characters long. + sig { returns(T.nilable(String)) } + def product_code; end + sig { params(_product_code: T.nilable(String)).returns(T.nilable(String)) } + def product_code=(_product_code); end + # Name of the product. At most 100 characters long. + sig { returns(String) } + def product_name; end + sig { params(_product_name: String).returns(String) } + def product_name=(_product_name); end + # Number of items of the product. Positive integer. + sig { returns(Integer) } + def quantity; end + sig { params(_quantity: Integer).returns(Integer) } + def quantity=(_quantity); end + # Contains information about the tax on the item. + sig { returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::Tax)) } + def tax; end + sig { + params(_tax: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::Tax)).returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::Tax)) + } + def tax=(_tax); end + # Cost of the product. Non-negative integer. + sig { returns(Integer) } + def unit_cost; end + sig { params(_unit_cost: Integer).returns(Integer) } + def unit_cost=(_unit_cost); end + # A unit of measure for the line item, such as gallons, feet, meters, etc. + sig { returns(T.nilable(String)) } + def unit_of_measure; end + sig { params(_unit_of_measure: T.nilable(String)).returns(T.nilable(String)) } + def unit_of_measure=(_unit_of_measure); end + sig { + params(discount_amount: T.nilable(Integer), payment_method_options: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions), product_code: T.nilable(String), product_name: String, quantity: Integer, tax: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::Tax), unit_cost: Integer, unit_of_measure: T.nilable(String)).void + } + def initialize( + discount_amount: nil, + payment_method_options: nil, + product_code: nil, + product_name: nil, + quantity: nil, + tax: nil, + unit_cost: nil, + unit_of_measure: nil + ); end + end + class Shipping < ::Stripe::RequestParams + # Portion of the amount that is for shipping. + sig { returns(T.nilable(T.any(String, Integer))) } + def amount; end + sig { + params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) + } + def amount=(_amount); end + # The postal code that represents the shipping source. + sig { returns(T.nilable(String)) } + def from_postal_code; end + sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def from_postal_code=(_from_postal_code); end + # The postal code that represents the shipping destination. + sig { returns(T.nilable(String)) } + def to_postal_code; end + sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def to_postal_code=(_to_postal_code); end + sig { + params(amount: T.nilable(T.any(String, Integer)), from_postal_code: T.nilable(String), to_postal_code: T.nilable(String)).void + } + def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end + end + class Tax < ::Stripe::RequestParams + # Total portion of the amount that is for tax. + sig { returns(Integer) } + def total_tax_amount; end + sig { params(_total_tax_amount: Integer).returns(Integer) } + def total_tax_amount=(_total_tax_amount); end + sig { params(total_tax_amount: Integer).void } + def initialize(total_tax_amount: nil); end + end + # The total discount applied on the transaction. + sig { returns(T.nilable(T.any(String, Integer))) } + def discount_amount; end + sig { + params(_discount_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) + } + def discount_amount=(_discount_amount); end + # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. + sig { + returns(T.nilable(T.any(String, T::Array[PaymentIntentCreateParams::AmountDetails::LineItem]))) + } + def line_items; end + sig { + params(_line_items: T.nilable(T.any(String, T::Array[PaymentIntentCreateParams::AmountDetails::LineItem]))).returns(T.nilable(T.any(String, T::Array[PaymentIntentCreateParams::AmountDetails::LineItem]))) + } + def line_items=(_line_items); end + # Contains information about the shipping portion of the amount. + sig { returns(T.nilable(T.any(String, PaymentIntentCreateParams::AmountDetails::Shipping))) } + def shipping; end + sig { + params(_shipping: T.nilable(T.any(String, PaymentIntentCreateParams::AmountDetails::Shipping))).returns(T.nilable(T.any(String, PaymentIntentCreateParams::AmountDetails::Shipping))) + } + def shipping=(_shipping); end + # Contains information about the tax portion of the amount. + sig { returns(T.nilable(T.any(String, PaymentIntentCreateParams::AmountDetails::Tax))) } + def tax; end + sig { + params(_tax: T.nilable(T.any(String, PaymentIntentCreateParams::AmountDetails::Tax))).returns(T.nilable(T.any(String, PaymentIntentCreateParams::AmountDetails::Tax))) + } + def tax=(_tax); end + sig { + params(discount_amount: T.nilable(T.any(String, Integer)), line_items: T.nilable(T.any(String, T::Array[PaymentIntentCreateParams::AmountDetails::LineItem])), shipping: T.nilable(T.any(String, PaymentIntentCreateParams::AmountDetails::Shipping)), tax: T.nilable(T.any(String, PaymentIntentCreateParams::AmountDetails::Tax))).void + } + def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil); end + end + class AutomaticPaymentMethods < ::Stripe::RequestParams # Controls whether this PaymentIntent will accept redirect-based payment methods. # # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment. @@ -20,10 +270,10 @@ module Stripe sig { params(allow_redirects: T.nilable(String), enabled: T::Boolean).void } def initialize(allow_redirects: nil, enabled: nil); end end - class MandateData < Stripe::RequestParams - class CustomerAcceptance < Stripe::RequestParams - class Offline < Stripe::RequestParams; end - class Online < Stripe::RequestParams + class MandateData < ::Stripe::RequestParams + class CustomerAcceptance < ::Stripe::RequestParams + class Offline < ::Stripe::RequestParams; end + class Online < ::Stripe::RequestParams # The IP address from which the Mandate was accepted by the customer. sig { returns(String) } def ip_address; end @@ -82,8 +332,22 @@ module Stripe } def initialize(customer_acceptance: nil); end end - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class PaymentDetails < ::Stripe::RequestParams + # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + sig { returns(T.nilable(String)) } + def customer_reference; end + sig { params(_customer_reference: T.nilable(String)).returns(T.nilable(String)) } + def customer_reference=(_customer_reference); end + # A unique value assigned by the business to identify the transaction. + sig { returns(T.nilable(String)) } + def order_reference; end + sig { params(_order_reference: T.nilable(String)).returns(T.nilable(String)) } + def order_reference=(_order_reference); end + sig { params(customer_reference: T.nilable(String), order_reference: T.nilable(String)).void } + def initialize(customer_reference: nil, order_reference: nil); end + end + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. sig { returns(String) } def account_number; end @@ -104,12 +368,12 @@ module Stripe } def initialize(account_number: nil, institution_number: nil, transit_number: nil); end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. sig { returns(String) } def account_number; end @@ -123,7 +387,7 @@ module Stripe sig { params(account_number: String, bsb_number: String).void } def initialize(account_number: nil, bsb_number: nil); end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. sig { returns(T.nilable(String)) } def account_number; end @@ -137,10 +401,10 @@ module Stripe sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void } def initialize(account_number: nil, sort_code: nil); end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -217,8 +481,8 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end - class Blik < Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Blik < ::Stripe::RequestParams; end + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) sig { returns(String) } def tax_id; end @@ -227,10 +491,10 @@ module Stripe sig { params(tax_id: String).void } def initialize(tax_id: nil); end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end + class Eps < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -239,7 +503,7 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction sig { returns(T.nilable(String)) } def account_holder_type; end @@ -253,9 +517,9 @@ module Stripe sig { params(account_holder_type: T.nilable(String), bank: String).void } def initialize(account_holder_type: nil, bank: nil); end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. sig { returns(T.nilable(String)) } def bank; end @@ -264,10 +528,10 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -298,13 +562,13 @@ module Stripe } def initialize(dob: nil); end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. sig { returns(T.nilable(String)) } def funding; end @@ -313,7 +577,7 @@ module Stripe sig { params(funding: T.nilable(String)).void } def initialize(funding: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -356,8 +620,8 @@ module Stripe suffix: nil ); end end - class Oxxo < Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams; end + class P24 < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -366,13 +630,13 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -381,10 +645,10 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } def iban; end @@ -393,7 +657,7 @@ module Stripe sig { params(iban: String).void } def initialize(iban: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. sig { returns(String) } def country; end @@ -402,9 +666,9 @@ module Stripe sig { params(country: String).void } def initialize(country: nil); end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -441,8 +705,8 @@ module Stripe routing_number: nil ); end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. sig { returns(T.nilable(PaymentIntentCreateParams::PaymentMethodData::AcssDebit)) } def acss_debit; end @@ -877,9 +1141,9 @@ module Stripe zip: nil ); end end - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # A URL for custom mandate text to render during confirmation step. # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. @@ -956,7 +1220,7 @@ module Stripe verification_method: nil ); end end - class Affirm < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -989,7 +1253,7 @@ module Stripe } def initialize(capture_method: nil, preferred_locale: nil, setup_future_usage: nil); end end - class AfterpayClearpay < Stripe::RequestParams + class AfterpayClearpay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1023,7 +1287,7 @@ module Stripe } def initialize(capture_method: nil, reference: nil, setup_future_usage: nil); end end - class Alipay < Stripe::RequestParams + class Alipay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1042,7 +1306,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(T.any(String, String))).void } def initialize(setup_future_usage: nil); end end - class Alma < Stripe::RequestParams + class Alma < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1055,7 +1319,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class AmazonPay < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1083,7 +1347,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class AuBecsDebit < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1109,8 +1373,8 @@ module Stripe } def initialize(setup_future_usage: nil, target_date: nil); end end - class BacsDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -1153,7 +1417,7 @@ module Stripe } def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Preferred language of the Bancontact authorization page that the customer is redirected to. sig { returns(T.nilable(String)) } def preferred_language; end @@ -1179,7 +1443,7 @@ module Stripe } def initialize(preferred_language: nil, setup_future_usage: nil); end end - class Billie < Stripe::RequestParams + class Billie < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1192,7 +1456,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Blik < Stripe::RequestParams + class Blik < ::Stripe::RequestParams # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. sig { returns(T.nilable(String)) } def code; end @@ -1214,7 +1478,7 @@ module Stripe sig { params(code: T.nilable(String), setup_future_usage: T.nilable(String)).void } def initialize(code: nil, setup_future_usage: nil); end end - class Boleto < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. sig { returns(T.nilable(Integer)) } def expires_after_days; end @@ -1240,9 +1504,9 @@ module Stripe } def initialize(expires_after_days: nil, setup_future_usage: nil); end end - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams - class Plan < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams + class Plan < ::Stripe::RequestParams # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. sig { returns(T.nilable(Integer)) } def count; end @@ -1286,7 +1550,7 @@ module Stripe } def initialize(enabled: nil, plan: nil); end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. sig { returns(Integer) } def amount; end @@ -1349,9 +1613,9 @@ module Stripe supported_types: nil ); end end - class ThreeDSecure < Stripe::RequestParams - class NetworkOptions < Stripe::RequestParams - class CartesBancaires < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams + class NetworkOptions < ::Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams # The cryptogram calculation algorithm used by the card Issuer's ACS # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. # messageExtension: CB-AVALGO @@ -1605,8 +1869,8 @@ module Stripe three_d_secure: nil ); end end - class CardPresent < Stripe::RequestParams - class Routing < Stripe::RequestParams + class CardPresent < ::Stripe::RequestParams + class Routing < ::Stripe::RequestParams # Routing requested priority sig { returns(T.nilable(String)) } def requested_priority; end @@ -1649,7 +1913,7 @@ module Stripe routing: nil ); end end - class Cashapp < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1679,7 +1943,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Crypto < Stripe::RequestParams + class Crypto < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1696,9 +1960,9 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -1767,7 +2031,7 @@ module Stripe } def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil); end end - class Eps < Stripe::RequestParams + class Eps < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1784,7 +2048,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1801,7 +2065,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Giropay < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1818,7 +2082,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Grabpay < Stripe::RequestParams + class Grabpay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1835,7 +2099,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Ideal < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1854,8 +2118,8 @@ module Stripe sig { params(setup_future_usage: T.nilable(T.any(String, String))).void } def initialize(setup_future_usage: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1883,8 +2147,8 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Klarna < Stripe::RequestParams - class OnDemand < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class OnDemand < ::Stripe::RequestParams # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. sig { returns(T.nilable(Integer)) } def average_amount; end @@ -1921,8 +2185,8 @@ module Stripe purchase_interval_count: nil ); end end - class Subscription < Stripe::RequestParams - class NextBilling < Stripe::RequestParams + class Subscription < ::Stripe::RequestParams + class NextBilling < ::Stripe::RequestParams # The amount of the next charge for the subscription. sig { returns(Integer) } def amount; end @@ -2032,7 +2296,7 @@ module Stripe subscriptions: nil ); end end - class Konbini < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams # An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number. sig { returns(T.nilable(String)) } def confirmation_number; end @@ -2081,7 +2345,7 @@ module Stripe setup_future_usage: nil ); end end - class KrCard < Stripe::RequestParams + class KrCard < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2109,7 +2373,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Link < Stripe::RequestParams + class Link < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2144,7 +2408,7 @@ module Stripe } def initialize(capture_method: nil, persistent_token: nil, setup_future_usage: nil); end end - class MbWay < Stripe::RequestParams + class MbWay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2161,7 +2425,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Mobilepay < Stripe::RequestParams + class Mobilepay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2189,7 +2453,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Multibanco < Stripe::RequestParams + class Multibanco < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2206,7 +2470,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class NaverPay < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2234,7 +2498,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2260,7 +2524,7 @@ module Stripe } def initialize(setup_future_usage: nil, target_date: nil); end end - class Oxxo < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams # The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. sig { returns(T.nilable(Integer)) } def expires_after_days; end @@ -2284,7 +2548,7 @@ module Stripe } def initialize(expires_after_days: nil, setup_future_usage: nil); end end - class P24 < Stripe::RequestParams + class P24 < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2310,8 +2574,8 @@ module Stripe } def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2324,7 +2588,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Paynow < Stripe::RequestParams + class Paynow < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2341,7 +2605,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Paypal < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -2388,7 +2652,7 @@ module Stripe setup_future_usage: nil ); end end - class Pix < Stripe::RequestParams + class Pix < ::Stripe::RequestParams # Determines if the amount includes the IOF tax. Defaults to `never`. sig { returns(T.nilable(String)) } def amount_includes_iof; end @@ -2427,7 +2691,7 @@ module Stripe setup_future_usage: nil ); end end - class Promptpay < Stripe::RequestParams + class Promptpay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2444,7 +2708,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class RevolutPay < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2472,7 +2736,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class SamsungPay < Stripe::RequestParams + class SamsungPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2485,7 +2749,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Satispay < Stripe::RequestParams + class Satispay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2498,8 +2762,8 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class SepaDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -2542,7 +2806,7 @@ module Stripe } def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Language shown to the payer on redirect. sig { returns(T.nilable(T.any(String, String))) } def preferred_language; end @@ -2570,7 +2834,7 @@ module Stripe } def initialize(preferred_language: nil, setup_future_usage: nil); end end - class Swish < Stripe::RequestParams + class Swish < ::Stripe::RequestParams # A reference for this payment to be displayed in the Swish app. sig { returns(T.nilable(String)) } def reference; end @@ -2592,7 +2856,7 @@ module Stripe sig { params(reference: T.nilable(String), setup_future_usage: T.nilable(String)).void } def initialize(reference: nil, setup_future_usage: nil); end end - class Twint < Stripe::RequestParams + class Twint < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2609,9 +2873,9 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -2655,7 +2919,7 @@ module Stripe } def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil); end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # The method used to collect offline mandate customer acceptance. sig { returns(T.nilable(String)) } def collection_method; end @@ -2664,7 +2928,7 @@ module Stripe sig { params(collection_method: T.nilable(String)).void } def initialize(collection_method: nil); end end - class Networks < Stripe::RequestParams + class Networks < ::Stripe::RequestParams # Triggers validations to run across the selected networks sig { returns(T.nilable(T::Array[String])) } def requested; end @@ -2747,7 +3011,7 @@ module Stripe verification_method: nil ); end end - class WechatPay < Stripe::RequestParams + class WechatPay < ::Stripe::RequestParams # The app ID registered with WeChat Pay. Only required when client is ios or android. sig { returns(T.nilable(String)) } def app_id; end @@ -2776,7 +3040,7 @@ module Stripe } def initialize(app_id: nil, client: nil, setup_future_usage: nil); end end - class Zip < Stripe::RequestParams + class Zip < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -3309,7 +3573,7 @@ module Stripe zip: nil ); end end - class RadarOptions < Stripe::RequestParams + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -3318,8 +3582,8 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -3394,7 +3658,7 @@ module Stripe } def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when a charge succeeds. # The amount is capped at the total transaction amount and if no amount is set, # the full amount is transferred. @@ -3422,6 +3686,13 @@ module Stripe def amount; end sig { params(_amount: Integer).returns(Integer) } def amount=(_amount); end + # Provides industry-specific information about the amount. + sig { returns(T.nilable(PaymentIntentCreateParams::AmountDetails)) } + def amount_details; end + sig { + params(_amount_details: T.nilable(PaymentIntentCreateParams::AmountDetails)).returns(T.nilable(PaymentIntentCreateParams::AmountDetails)) + } + def amount_details=(_amount_details); end # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } def application_fee_amount; end @@ -3523,6 +3794,13 @@ module Stripe def on_behalf_of; end sig { params(_on_behalf_of: T.nilable(String)).returns(T.nilable(String)) } def on_behalf_of=(_on_behalf_of); end + # Provides industry-specific information about the charge. + sig { returns(T.nilable(PaymentIntentCreateParams::PaymentDetails)) } + def payment_details; end + sig { + params(_payment_details: T.nilable(PaymentIntentCreateParams::PaymentDetails)).returns(T.nilable(PaymentIntentCreateParams::PaymentDetails)) + } + def payment_details=(_payment_details); end # ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods#compatibility) object) to attach to this PaymentIntent. # # If you don't provide the `payment_method` parameter or the `source` parameter with `confirm=true`, `source` automatically populates with `customer.default_source` to improve migration for users of the Charges API. We recommend that you explicitly provide the `payment_method` moving forward. @@ -3626,10 +3904,11 @@ module Stripe sig { params(_use_stripe_sdk: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } def use_stripe_sdk=(_use_stripe_sdk); end sig { - params(amount: Integer, application_fee_amount: T.nilable(Integer), automatic_payment_methods: T.nilable(PaymentIntentCreateParams::AutomaticPaymentMethods), capture_method: T.nilable(String), confirm: T.nilable(T::Boolean), confirmation_method: T.nilable(String), confirmation_token: T.nilable(String), currency: String, customer: T.nilable(String), description: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), excluded_payment_method_types: T.nilable(T::Array[String]), expand: T.nilable(T::Array[String]), mandate: T.nilable(String), mandate_data: T.nilable(T.any(String, PaymentIntentCreateParams::MandateData)), metadata: T.nilable(T::Hash[String, String]), off_session: T.nilable(T.any(T::Boolean, String)), on_behalf_of: T.nilable(String), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(PaymentIntentCreateParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentCreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(PaymentIntentCreateParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), setup_future_usage: T.nilable(String), shipping: T.nilable(PaymentIntentCreateParams::Shipping), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(PaymentIntentCreateParams::TransferData), transfer_group: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void + params(amount: Integer, amount_details: T.nilable(PaymentIntentCreateParams::AmountDetails), application_fee_amount: T.nilable(Integer), automatic_payment_methods: T.nilable(PaymentIntentCreateParams::AutomaticPaymentMethods), capture_method: T.nilable(String), confirm: T.nilable(T::Boolean), confirmation_method: T.nilable(String), confirmation_token: T.nilable(String), currency: String, customer: T.nilable(String), description: T.nilable(String), error_on_requires_action: T.nilable(T::Boolean), excluded_payment_method_types: T.nilable(T::Array[String]), expand: T.nilable(T::Array[String]), mandate: T.nilable(String), mandate_data: T.nilable(T.any(String, PaymentIntentCreateParams::MandateData)), metadata: T.nilable(T::Hash[String, String]), off_session: T.nilable(T.any(T::Boolean, String)), on_behalf_of: T.nilable(String), payment_details: T.nilable(PaymentIntentCreateParams::PaymentDetails), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(PaymentIntentCreateParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentCreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), radar_options: T.nilable(PaymentIntentCreateParams::RadarOptions), receipt_email: T.nilable(String), return_url: T.nilable(String), setup_future_usage: T.nilable(String), shipping: T.nilable(PaymentIntentCreateParams::Shipping), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(PaymentIntentCreateParams::TransferData), transfer_group: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void } def initialize( amount: nil, + amount_details: nil, application_fee_amount: nil, automatic_payment_methods: nil, capture_method: nil, @@ -3647,6 +3926,7 @@ module Stripe metadata: nil, off_session: nil, on_behalf_of: nil, + payment_details: nil, payment_method: nil, payment_method_configuration: nil, payment_method_data: nil, diff --git a/rbi/stripe/params/payment_intent_increment_authorization_params.rbi b/rbi/stripe/params/payment_intent_increment_authorization_params.rbi index 938bbc8a..34d15ba9 100644 --- a/rbi/stripe/params/payment_intent_increment_authorization_params.rbi +++ b/rbi/stripe/params/payment_intent_increment_authorization_params.rbi @@ -3,8 +3,278 @@ # typed: true module Stripe - class PaymentIntentIncrementAuthorizationParams < Stripe::RequestParams - class TransferData < Stripe::RequestParams + class PaymentIntentIncrementAuthorizationParams < ::Stripe::RequestParams + class AmountDetails < ::Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + sig { returns(T.nilable(String)) } + def commodity_code; end + sig { params(_commodity_code: T.nilable(String)).returns(T.nilable(String)) } + def commodity_code=(_commodity_code); end + sig { params(commodity_code: T.nilable(String)).void } + def initialize(commodity_code: nil); end + end + class CardPresent < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + sig { returns(T.nilable(String)) } + def commodity_code; end + sig { params(_commodity_code: T.nilable(String)).returns(T.nilable(String)) } + def commodity_code=(_commodity_code); end + sig { params(commodity_code: T.nilable(String)).void } + def initialize(commodity_code: nil); end + end + class Klarna < ::Stripe::RequestParams + # URL to an image for the product. Max length, 4096 characters. + sig { returns(T.nilable(String)) } + def image_url; end + sig { params(_image_url: T.nilable(String)).returns(T.nilable(String)) } + def image_url=(_image_url); end + # URL to the product page. Max length, 4096 characters. + sig { returns(T.nilable(String)) } + def product_url; end + sig { params(_product_url: T.nilable(String)).returns(T.nilable(String)) } + def product_url=(_product_url); end + # Unique reference for this line item to correlate it with your system’s internal records. The field is displayed in the Klarna Consumer App if passed. + sig { returns(T.nilable(String)) } + def reference; end + sig { params(_reference: T.nilable(String)).returns(T.nilable(String)) } + def reference=(_reference); end + # Reference for the subscription this line item is for. + sig { returns(T.nilable(String)) } + def subscription_reference; end + sig { params(_subscription_reference: T.nilable(String)).returns(T.nilable(String)) } + def subscription_reference=(_subscription_reference); end + sig { + params(image_url: T.nilable(String), product_url: T.nilable(String), reference: T.nilable(String), subscription_reference: T.nilable(String)).void + } + def initialize( + image_url: nil, + product_url: nil, + reference: nil, + subscription_reference: nil + ); end + end + class Paypal < ::Stripe::RequestParams + # Type of the line item. + sig { returns(T.nilable(String)) } + def category; end + sig { params(_category: T.nilable(String)).returns(T.nilable(String)) } + def category=(_category); end + # Description of the line item. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # The Stripe account ID of the connected account that sells the item. + sig { returns(T.nilable(String)) } + def sold_by; end + sig { params(_sold_by: T.nilable(String)).returns(T.nilable(String)) } + def sold_by=(_sold_by); end + sig { + params(category: T.nilable(String), description: T.nilable(String), sold_by: T.nilable(String)).void + } + def initialize(category: nil, description: nil, sold_by: nil); end + end + # This sub-hash contains line item details that are specific to `card` payment method." + sig { + returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Card)) + } + def card; end + sig { + params(_card: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Card)).returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Card)) + } + def card=(_card); end + # This sub-hash contains line item details that are specific to `card_present` payment method." + sig { + returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)) + } + def card_present; end + sig { + params(_card_present: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)).returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)) + } + def card_present=(_card_present); end + # This sub-hash contains line item details that are specific to `klarna` payment method." + sig { + returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)) + } + def klarna; end + sig { + params(_klarna: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)).returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)) + } + def klarna=(_klarna); end + # This sub-hash contains line item details that are specific to `paypal` payment method." + sig { + returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)) + } + def paypal; end + sig { + params(_paypal: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)) + } + def paypal=(_paypal); end + sig { + params(card: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Card), card_present: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent), klarna: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna), paypal: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).void + } + def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end + end + class Tax < ::Stripe::RequestParams + # The total tax on an item. Non-negative integer. + sig { returns(Integer) } + def total_tax_amount; end + sig { params(_total_tax_amount: Integer).returns(Integer) } + def total_tax_amount=(_total_tax_amount); end + sig { params(total_tax_amount: Integer).void } + def initialize(total_tax_amount: nil); end + end + # The amount an item was discounted for. Positive integer. + sig { returns(T.nilable(Integer)) } + def discount_amount; end + sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } + def discount_amount=(_discount_amount); end + # Payment method-specific information for line items. + sig { + returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions)) + } + def payment_method_options; end + sig { + params(_payment_method_options: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions)).returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions)) + } + def payment_method_options=(_payment_method_options); end + # Unique identifier of the product. At most 12 characters long. + sig { returns(T.nilable(String)) } + def product_code; end + sig { params(_product_code: T.nilable(String)).returns(T.nilable(String)) } + def product_code=(_product_code); end + # Name of the product. At most 100 characters long. + sig { returns(String) } + def product_name; end + sig { params(_product_name: String).returns(String) } + def product_name=(_product_name); end + # Number of items of the product. Positive integer. + sig { returns(Integer) } + def quantity; end + sig { params(_quantity: Integer).returns(Integer) } + def quantity=(_quantity); end + # Contains information about the tax on the item. + sig { + returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::Tax)) + } + def tax; end + sig { + params(_tax: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::Tax)).returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::Tax)) + } + def tax=(_tax); end + # Cost of the product. Non-negative integer. + sig { returns(Integer) } + def unit_cost; end + sig { params(_unit_cost: Integer).returns(Integer) } + def unit_cost=(_unit_cost); end + # A unit of measure for the line item, such as gallons, feet, meters, etc. + sig { returns(T.nilable(String)) } + def unit_of_measure; end + sig { params(_unit_of_measure: T.nilable(String)).returns(T.nilable(String)) } + def unit_of_measure=(_unit_of_measure); end + sig { + params(discount_amount: T.nilable(Integer), payment_method_options: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions), product_code: T.nilable(String), product_name: String, quantity: Integer, tax: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::Tax), unit_cost: Integer, unit_of_measure: T.nilable(String)).void + } + def initialize( + discount_amount: nil, + payment_method_options: nil, + product_code: nil, + product_name: nil, + quantity: nil, + tax: nil, + unit_cost: nil, + unit_of_measure: nil + ); end + end + class Shipping < ::Stripe::RequestParams + # Portion of the amount that is for shipping. + sig { returns(T.nilable(T.any(String, Integer))) } + def amount; end + sig { + params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) + } + def amount=(_amount); end + # The postal code that represents the shipping source. + sig { returns(T.nilable(String)) } + def from_postal_code; end + sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def from_postal_code=(_from_postal_code); end + # The postal code that represents the shipping destination. + sig { returns(T.nilable(String)) } + def to_postal_code; end + sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def to_postal_code=(_to_postal_code); end + sig { + params(amount: T.nilable(T.any(String, Integer)), from_postal_code: T.nilable(String), to_postal_code: T.nilable(String)).void + } + def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end + end + class Tax < ::Stripe::RequestParams + # Total portion of the amount that is for tax. + sig { returns(Integer) } + def total_tax_amount; end + sig { params(_total_tax_amount: Integer).returns(Integer) } + def total_tax_amount=(_total_tax_amount); end + sig { params(total_tax_amount: Integer).void } + def initialize(total_tax_amount: nil); end + end + # The total discount applied on the transaction. + sig { returns(T.nilable(T.any(String, Integer))) } + def discount_amount; end + sig { + params(_discount_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) + } + def discount_amount=(_discount_amount); end + # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. + sig { + returns(T.nilable(T.any(String, T::Array[PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem]))) + } + def line_items; end + sig { + params(_line_items: T.nilable(T.any(String, T::Array[PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem]))).returns(T.nilable(T.any(String, T::Array[PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem]))) + } + def line_items=(_line_items); end + # Contains information about the shipping portion of the amount. + sig { + returns(T.nilable(T.any(String, PaymentIntentIncrementAuthorizationParams::AmountDetails::Shipping))) + } + def shipping; end + sig { + params(_shipping: T.nilable(T.any(String, PaymentIntentIncrementAuthorizationParams::AmountDetails::Shipping))).returns(T.nilable(T.any(String, PaymentIntentIncrementAuthorizationParams::AmountDetails::Shipping))) + } + def shipping=(_shipping); end + # Contains information about the tax portion of the amount. + sig { + returns(T.nilable(T.any(String, PaymentIntentIncrementAuthorizationParams::AmountDetails::Tax))) + } + def tax; end + sig { + params(_tax: T.nilable(T.any(String, PaymentIntentIncrementAuthorizationParams::AmountDetails::Tax))).returns(T.nilable(T.any(String, PaymentIntentIncrementAuthorizationParams::AmountDetails::Tax))) + } + def tax=(_tax); end + sig { + params(discount_amount: T.nilable(T.any(String, Integer)), line_items: T.nilable(T.any(String, T::Array[PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem])), shipping: T.nilable(T.any(String, PaymentIntentIncrementAuthorizationParams::AmountDetails::Shipping)), tax: T.nilable(T.any(String, PaymentIntentIncrementAuthorizationParams::AmountDetails::Tax))).void + } + def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil); end + end + class PaymentDetails < ::Stripe::RequestParams + # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + sig { returns(T.nilable(String)) } + def customer_reference; end + sig { params(_customer_reference: T.nilable(String)).returns(T.nilable(String)) } + def customer_reference=(_customer_reference); end + # A unique value assigned by the business to identify the transaction. + sig { returns(T.nilable(String)) } + def order_reference; end + sig { params(_order_reference: T.nilable(String)).returns(T.nilable(String)) } + def order_reference=(_order_reference); end + sig { params(customer_reference: T.nilable(String), order_reference: T.nilable(String)).void } + def initialize(customer_reference: nil, order_reference: nil); end + end + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when a charge succeeds. sig { returns(T.nilable(Integer)) } def amount; end @@ -18,6 +288,13 @@ module Stripe def amount; end sig { params(_amount: Integer).returns(Integer) } def amount=(_amount); end + # Provides industry-specific information about the amount. + sig { returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails)) } + def amount_details; end + sig { + params(_amount_details: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails)).returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails)) + } + def amount_details=(_amount_details); end # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } def application_fee_amount; end @@ -40,6 +317,13 @@ module Stripe params(_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) } def metadata=(_metadata); end + # Provides industry-specific information about the charge. + sig { returns(T.nilable(PaymentIntentIncrementAuthorizationParams::PaymentDetails)) } + def payment_details; end + sig { + params(_payment_details: T.nilable(PaymentIntentIncrementAuthorizationParams::PaymentDetails)).returns(T.nilable(PaymentIntentIncrementAuthorizationParams::PaymentDetails)) + } + def payment_details=(_payment_details); end # Text that appears on the customer's statement as the statement descriptor for a non-card or card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). sig { returns(T.nilable(String)) } def statement_descriptor; end @@ -54,14 +338,16 @@ module Stripe } def transfer_data=(_transfer_data); end sig { - params(amount: Integer, application_fee_amount: T.nilable(Integer), description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), statement_descriptor: T.nilable(String), transfer_data: T.nilable(PaymentIntentIncrementAuthorizationParams::TransferData)).void + params(amount: Integer, amount_details: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails), application_fee_amount: T.nilable(Integer), description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), payment_details: T.nilable(PaymentIntentIncrementAuthorizationParams::PaymentDetails), statement_descriptor: T.nilable(String), transfer_data: T.nilable(PaymentIntentIncrementAuthorizationParams::TransferData)).void } def initialize( amount: nil, + amount_details: nil, application_fee_amount: nil, description: nil, expand: nil, metadata: nil, + payment_details: nil, statement_descriptor: nil, transfer_data: nil ); end diff --git a/rbi/stripe/params/payment_intent_list_params.rbi b/rbi/stripe/params/payment_intent_list_params.rbi index 7cecb747..a218cd87 100644 --- a/rbi/stripe/params/payment_intent_list_params.rbi +++ b/rbi/stripe/params/payment_intent_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class PaymentIntentListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class PaymentIntentListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/payment_intent_retrieve_params.rbi b/rbi/stripe/params/payment_intent_retrieve_params.rbi index bec9791f..936ad798 100644 --- a/rbi/stripe/params/payment_intent_retrieve_params.rbi +++ b/rbi/stripe/params/payment_intent_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PaymentIntentRetrieveParams < Stripe::RequestParams + class PaymentIntentRetrieveParams < ::Stripe::RequestParams # The client secret of the PaymentIntent. We require it if you use a publishable key to retrieve the source. sig { returns(T.nilable(String)) } def client_secret; end diff --git a/rbi/stripe/params/payment_intent_search_params.rbi b/rbi/stripe/params/payment_intent_search_params.rbi index 2edd0bf5..a48b1267 100644 --- a/rbi/stripe/params/payment_intent_search_params.rbi +++ b/rbi/stripe/params/payment_intent_search_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PaymentIntentSearchParams < Stripe::RequestParams + class PaymentIntentSearchParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/payment_intent_update_params.rbi b/rbi/stripe/params/payment_intent_update_params.rbi index e01d0579..488c2b5f 100644 --- a/rbi/stripe/params/payment_intent_update_params.rbi +++ b/rbi/stripe/params/payment_intent_update_params.rbi @@ -3,9 +3,273 @@ # typed: true module Stripe - class PaymentIntentUpdateParams < Stripe::RequestParams - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class PaymentIntentUpdateParams < ::Stripe::RequestParams + class AmountDetails < ::Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + sig { returns(T.nilable(String)) } + def commodity_code; end + sig { params(_commodity_code: T.nilable(String)).returns(T.nilable(String)) } + def commodity_code=(_commodity_code); end + sig { params(commodity_code: T.nilable(String)).void } + def initialize(commodity_code: nil); end + end + class CardPresent < ::Stripe::RequestParams + # Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, etc. + sig { returns(T.nilable(String)) } + def commodity_code; end + sig { params(_commodity_code: T.nilable(String)).returns(T.nilable(String)) } + def commodity_code=(_commodity_code); end + sig { params(commodity_code: T.nilable(String)).void } + def initialize(commodity_code: nil); end + end + class Klarna < ::Stripe::RequestParams + # URL to an image for the product. Max length, 4096 characters. + sig { returns(T.nilable(String)) } + def image_url; end + sig { params(_image_url: T.nilable(String)).returns(T.nilable(String)) } + def image_url=(_image_url); end + # URL to the product page. Max length, 4096 characters. + sig { returns(T.nilable(String)) } + def product_url; end + sig { params(_product_url: T.nilable(String)).returns(T.nilable(String)) } + def product_url=(_product_url); end + # Unique reference for this line item to correlate it with your system’s internal records. The field is displayed in the Klarna Consumer App if passed. + sig { returns(T.nilable(String)) } + def reference; end + sig { params(_reference: T.nilable(String)).returns(T.nilable(String)) } + def reference=(_reference); end + # Reference for the subscription this line item is for. + sig { returns(T.nilable(String)) } + def subscription_reference; end + sig { params(_subscription_reference: T.nilable(String)).returns(T.nilable(String)) } + def subscription_reference=(_subscription_reference); end + sig { + params(image_url: T.nilable(String), product_url: T.nilable(String), reference: T.nilable(String), subscription_reference: T.nilable(String)).void + } + def initialize( + image_url: nil, + product_url: nil, + reference: nil, + subscription_reference: nil + ); end + end + class Paypal < ::Stripe::RequestParams + # Type of the line item. + sig { returns(T.nilable(String)) } + def category; end + sig { params(_category: T.nilable(String)).returns(T.nilable(String)) } + def category=(_category); end + # Description of the line item. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # The Stripe account ID of the connected account that sells the item. + sig { returns(T.nilable(String)) } + def sold_by; end + sig { params(_sold_by: T.nilable(String)).returns(T.nilable(String)) } + def sold_by=(_sold_by); end + sig { + params(category: T.nilable(String), description: T.nilable(String), sold_by: T.nilable(String)).void + } + def initialize(category: nil, description: nil, sold_by: nil); end + end + # This sub-hash contains line item details that are specific to `card` payment method." + sig { + returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Card)) + } + def card; end + sig { + params(_card: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Card)).returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Card)) + } + def card=(_card); end + # This sub-hash contains line item details that are specific to `card_present` payment method." + sig { + returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)) + } + def card_present; end + sig { + params(_card_present: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)).returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent)) + } + def card_present=(_card_present); end + # This sub-hash contains line item details that are specific to `klarna` payment method." + sig { + returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)) + } + def klarna; end + sig { + params(_klarna: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)).returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna)) + } + def klarna=(_klarna); end + # This sub-hash contains line item details that are specific to `paypal` payment method." + sig { + returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)) + } + def paypal; end + sig { + params(_paypal: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)) + } + def paypal=(_paypal); end + sig { + params(card: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Card), card_present: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::CardPresent), klarna: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Klarna), paypal: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions::Paypal)).void + } + def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end + end + class Tax < ::Stripe::RequestParams + # The total tax on an item. Non-negative integer. + sig { returns(Integer) } + def total_tax_amount; end + sig { params(_total_tax_amount: Integer).returns(Integer) } + def total_tax_amount=(_total_tax_amount); end + sig { params(total_tax_amount: Integer).void } + def initialize(total_tax_amount: nil); end + end + # The amount an item was discounted for. Positive integer. + sig { returns(T.nilable(Integer)) } + def discount_amount; end + sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } + def discount_amount=(_discount_amount); end + # Payment method-specific information for line items. + sig { + returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions)) + } + def payment_method_options; end + sig { + params(_payment_method_options: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions)).returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions)) + } + def payment_method_options=(_payment_method_options); end + # Unique identifier of the product. At most 12 characters long. + sig { returns(T.nilable(String)) } + def product_code; end + sig { params(_product_code: T.nilable(String)).returns(T.nilable(String)) } + def product_code=(_product_code); end + # Name of the product. At most 100 characters long. + sig { returns(String) } + def product_name; end + sig { params(_product_name: String).returns(String) } + def product_name=(_product_name); end + # Number of items of the product. Positive integer. + sig { returns(Integer) } + def quantity; end + sig { params(_quantity: Integer).returns(Integer) } + def quantity=(_quantity); end + # Contains information about the tax on the item. + sig { returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::Tax)) } + def tax; end + sig { + params(_tax: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::Tax)).returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::Tax)) + } + def tax=(_tax); end + # Cost of the product. Non-negative integer. + sig { returns(Integer) } + def unit_cost; end + sig { params(_unit_cost: Integer).returns(Integer) } + def unit_cost=(_unit_cost); end + # A unit of measure for the line item, such as gallons, feet, meters, etc. + sig { returns(T.nilable(String)) } + def unit_of_measure; end + sig { params(_unit_of_measure: T.nilable(String)).returns(T.nilable(String)) } + def unit_of_measure=(_unit_of_measure); end + sig { + params(discount_amount: T.nilable(Integer), payment_method_options: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions), product_code: T.nilable(String), product_name: String, quantity: Integer, tax: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::Tax), unit_cost: Integer, unit_of_measure: T.nilable(String)).void + } + def initialize( + discount_amount: nil, + payment_method_options: nil, + product_code: nil, + product_name: nil, + quantity: nil, + tax: nil, + unit_cost: nil, + unit_of_measure: nil + ); end + end + class Shipping < ::Stripe::RequestParams + # Portion of the amount that is for shipping. + sig { returns(T.nilable(T.any(String, Integer))) } + def amount; end + sig { + params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) + } + def amount=(_amount); end + # The postal code that represents the shipping source. + sig { returns(T.nilable(String)) } + def from_postal_code; end + sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def from_postal_code=(_from_postal_code); end + # The postal code that represents the shipping destination. + sig { returns(T.nilable(String)) } + def to_postal_code; end + sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def to_postal_code=(_to_postal_code); end + sig { + params(amount: T.nilable(T.any(String, Integer)), from_postal_code: T.nilable(String), to_postal_code: T.nilable(String)).void + } + def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end + end + class Tax < ::Stripe::RequestParams + # Total portion of the amount that is for tax. + sig { returns(Integer) } + def total_tax_amount; end + sig { params(_total_tax_amount: Integer).returns(Integer) } + def total_tax_amount=(_total_tax_amount); end + sig { params(total_tax_amount: Integer).void } + def initialize(total_tax_amount: nil); end + end + # The total discount applied on the transaction. + sig { returns(T.nilable(T.any(String, Integer))) } + def discount_amount; end + sig { + params(_discount_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) + } + def discount_amount=(_discount_amount); end + # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. + sig { + returns(T.nilable(T.any(String, T::Array[PaymentIntentUpdateParams::AmountDetails::LineItem]))) + } + def line_items; end + sig { + params(_line_items: T.nilable(T.any(String, T::Array[PaymentIntentUpdateParams::AmountDetails::LineItem]))).returns(T.nilable(T.any(String, T::Array[PaymentIntentUpdateParams::AmountDetails::LineItem]))) + } + def line_items=(_line_items); end + # Contains information about the shipping portion of the amount. + sig { returns(T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails::Shipping))) } + def shipping; end + sig { + params(_shipping: T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails::Shipping))).returns(T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails::Shipping))) + } + def shipping=(_shipping); end + # Contains information about the tax portion of the amount. + sig { returns(T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails::Tax))) } + def tax; end + sig { + params(_tax: T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails::Tax))).returns(T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails::Tax))) + } + def tax=(_tax); end + sig { + params(discount_amount: T.nilable(T.any(String, Integer)), line_items: T.nilable(T.any(String, T::Array[PaymentIntentUpdateParams::AmountDetails::LineItem])), shipping: T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails::Shipping)), tax: T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails::Tax))).void + } + def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil); end + end + class PaymentDetails < ::Stripe::RequestParams + # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + sig { returns(T.nilable(String)) } + def customer_reference; end + sig { params(_customer_reference: T.nilable(String)).returns(T.nilable(String)) } + def customer_reference=(_customer_reference); end + # A unique value assigned by the business to identify the transaction. + sig { returns(T.nilable(String)) } + def order_reference; end + sig { params(_order_reference: T.nilable(String)).returns(T.nilable(String)) } + def order_reference=(_order_reference); end + sig { params(customer_reference: T.nilable(String), order_reference: T.nilable(String)).void } + def initialize(customer_reference: nil, order_reference: nil); end + end + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. sig { returns(String) } def account_number; end @@ -26,12 +290,12 @@ module Stripe } def initialize(account_number: nil, institution_number: nil, transit_number: nil); end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. sig { returns(String) } def account_number; end @@ -45,7 +309,7 @@ module Stripe sig { params(account_number: String, bsb_number: String).void } def initialize(account_number: nil, bsb_number: nil); end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. sig { returns(T.nilable(String)) } def account_number; end @@ -59,10 +323,10 @@ module Stripe sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void } def initialize(account_number: nil, sort_code: nil); end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -139,8 +403,8 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end - class Blik < Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Blik < ::Stripe::RequestParams; end + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) sig { returns(String) } def tax_id; end @@ -149,10 +413,10 @@ module Stripe sig { params(tax_id: String).void } def initialize(tax_id: nil); end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end + class Eps < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -161,7 +425,7 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction sig { returns(T.nilable(String)) } def account_holder_type; end @@ -175,9 +439,9 @@ module Stripe sig { params(account_holder_type: T.nilable(String), bank: String).void } def initialize(account_holder_type: nil, bank: nil); end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. sig { returns(T.nilable(String)) } def bank; end @@ -186,10 +450,10 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -220,13 +484,13 @@ module Stripe } def initialize(dob: nil); end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. sig { returns(T.nilable(String)) } def funding; end @@ -235,7 +499,7 @@ module Stripe sig { params(funding: T.nilable(String)).void } def initialize(funding: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -278,8 +542,8 @@ module Stripe suffix: nil ); end end - class Oxxo < Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams; end + class P24 < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -288,13 +552,13 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -303,10 +567,10 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } def iban; end @@ -315,7 +579,7 @@ module Stripe sig { params(iban: String).void } def initialize(iban: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. sig { returns(String) } def country; end @@ -324,9 +588,9 @@ module Stripe sig { params(country: String).void } def initialize(country: nil); end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -363,8 +627,8 @@ module Stripe routing_number: nil ); end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. sig { returns(T.nilable(PaymentIntentUpdateParams::PaymentMethodData::AcssDebit)) } def acss_debit; end @@ -799,9 +1063,9 @@ module Stripe zip: nil ); end end - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # A URL for custom mandate text to render during confirmation step. # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. @@ -878,7 +1142,7 @@ module Stripe verification_method: nil ); end end - class Affirm < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -911,7 +1175,7 @@ module Stripe } def initialize(capture_method: nil, preferred_locale: nil, setup_future_usage: nil); end end - class AfterpayClearpay < Stripe::RequestParams + class AfterpayClearpay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -945,7 +1209,7 @@ module Stripe } def initialize(capture_method: nil, reference: nil, setup_future_usage: nil); end end - class Alipay < Stripe::RequestParams + class Alipay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -964,7 +1228,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(T.any(String, String))).void } def initialize(setup_future_usage: nil); end end - class Alma < Stripe::RequestParams + class Alma < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -977,7 +1241,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class AmazonPay < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1005,7 +1269,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class AuBecsDebit < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1031,8 +1295,8 @@ module Stripe } def initialize(setup_future_usage: nil, target_date: nil); end end - class BacsDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -1075,7 +1339,7 @@ module Stripe } def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Preferred language of the Bancontact authorization page that the customer is redirected to. sig { returns(T.nilable(String)) } def preferred_language; end @@ -1101,7 +1365,7 @@ module Stripe } def initialize(preferred_language: nil, setup_future_usage: nil); end end - class Billie < Stripe::RequestParams + class Billie < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1114,7 +1378,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Blik < Stripe::RequestParams + class Blik < ::Stripe::RequestParams # The 6-digit BLIK code that a customer has generated using their banking application. Can only be set on confirmation. sig { returns(T.nilable(String)) } def code; end @@ -1136,7 +1400,7 @@ module Stripe sig { params(code: T.nilable(String), setup_future_usage: T.nilable(String)).void } def initialize(code: nil, setup_future_usage: nil); end end - class Boleto < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto invoice will expire on Wednesday at 23:59 America/Sao_Paulo time. sig { returns(T.nilable(Integer)) } def expires_after_days; end @@ -1162,9 +1426,9 @@ module Stripe } def initialize(expires_after_days: nil, setup_future_usage: nil); end end - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams - class Plan < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams + class Plan < ::Stripe::RequestParams # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. sig { returns(T.nilable(Integer)) } def count; end @@ -1208,7 +1472,7 @@ module Stripe } def initialize(enabled: nil, plan: nil); end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. sig { returns(Integer) } def amount; end @@ -1271,9 +1535,9 @@ module Stripe supported_types: nil ); end end - class ThreeDSecure < Stripe::RequestParams - class NetworkOptions < Stripe::RequestParams - class CartesBancaires < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams + class NetworkOptions < ::Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams # The cryptogram calculation algorithm used by the card Issuer's ACS # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. # messageExtension: CB-AVALGO @@ -1527,8 +1791,8 @@ module Stripe three_d_secure: nil ); end end - class CardPresent < Stripe::RequestParams - class Routing < Stripe::RequestParams + class CardPresent < ::Stripe::RequestParams + class Routing < ::Stripe::RequestParams # Routing requested priority sig { returns(T.nilable(String)) } def requested_priority; end @@ -1571,7 +1835,7 @@ module Stripe routing: nil ); end end - class Cashapp < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1601,7 +1865,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Crypto < Stripe::RequestParams + class Crypto < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1618,9 +1882,9 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -1689,7 +1953,7 @@ module Stripe } def initialize(bank_transfer: nil, funding_type: nil, setup_future_usage: nil); end end - class Eps < Stripe::RequestParams + class Eps < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1706,7 +1970,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1723,7 +1987,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Giropay < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1740,7 +2004,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Grabpay < Stripe::RequestParams + class Grabpay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1757,7 +2021,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Ideal < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1776,8 +2040,8 @@ module Stripe sig { params(setup_future_usage: T.nilable(T.any(String, String))).void } def initialize(setup_future_usage: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -1805,8 +2069,8 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Klarna < Stripe::RequestParams - class OnDemand < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class OnDemand < ::Stripe::RequestParams # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. sig { returns(T.nilable(Integer)) } def average_amount; end @@ -1843,8 +2107,8 @@ module Stripe purchase_interval_count: nil ); end end - class Subscription < Stripe::RequestParams - class NextBilling < Stripe::RequestParams + class Subscription < ::Stripe::RequestParams + class NextBilling < ::Stripe::RequestParams # The amount of the next charge for the subscription. sig { returns(Integer) } def amount; end @@ -1954,7 +2218,7 @@ module Stripe subscriptions: nil ); end end - class Konbini < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams # An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. Must not consist of only zeroes and could be rejected in case of insufficient uniqueness. We recommend to use the customer's phone number. sig { returns(T.nilable(String)) } def confirmation_number; end @@ -2003,7 +2267,7 @@ module Stripe setup_future_usage: nil ); end end - class KrCard < Stripe::RequestParams + class KrCard < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2031,7 +2295,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Link < Stripe::RequestParams + class Link < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2066,7 +2330,7 @@ module Stripe } def initialize(capture_method: nil, persistent_token: nil, setup_future_usage: nil); end end - class MbWay < Stripe::RequestParams + class MbWay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2083,7 +2347,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Mobilepay < Stripe::RequestParams + class Mobilepay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2111,7 +2375,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class Multibanco < Stripe::RequestParams + class Multibanco < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2128,7 +2392,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class NaverPay < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2156,7 +2420,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2182,7 +2446,7 @@ module Stripe } def initialize(setup_future_usage: nil, target_date: nil); end end - class Oxxo < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams # The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. sig { returns(T.nilable(Integer)) } def expires_after_days; end @@ -2206,7 +2470,7 @@ module Stripe } def initialize(expires_after_days: nil, setup_future_usage: nil); end end - class P24 < Stripe::RequestParams + class P24 < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2232,8 +2496,8 @@ module Stripe } def initialize(setup_future_usage: nil, tos_shown_and_accepted: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2246,7 +2510,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Paynow < Stripe::RequestParams + class Paynow < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2263,7 +2527,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class Paypal < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -2310,7 +2574,7 @@ module Stripe setup_future_usage: nil ); end end - class Pix < Stripe::RequestParams + class Pix < ::Stripe::RequestParams # Determines if the amount includes the IOF tax. Defaults to `never`. sig { returns(T.nilable(String)) } def amount_includes_iof; end @@ -2349,7 +2613,7 @@ module Stripe setup_future_usage: nil ); end end - class Promptpay < Stripe::RequestParams + class Promptpay < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2366,7 +2630,7 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class RevolutPay < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2394,7 +2658,7 @@ module Stripe } def initialize(capture_method: nil, setup_future_usage: nil); end end - class SamsungPay < Stripe::RequestParams + class SamsungPay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2407,7 +2671,7 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class Satispay < Stripe::RequestParams + class Satispay < ::Stripe::RequestParams # Controls when the funds are captured from the customer's account. # # If provided, this parameter overrides the behavior of the top-level [capture_method](/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. @@ -2420,8 +2684,8 @@ module Stripe sig { params(capture_method: T.nilable(String)).void } def initialize(capture_method: nil); end end - class SepaDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -2464,7 +2728,7 @@ module Stripe } def initialize(mandate_options: nil, setup_future_usage: nil, target_date: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Language shown to the payer on redirect. sig { returns(T.nilable(T.any(String, String))) } def preferred_language; end @@ -2492,7 +2756,7 @@ module Stripe } def initialize(preferred_language: nil, setup_future_usage: nil); end end - class Swish < Stripe::RequestParams + class Swish < ::Stripe::RequestParams # A reference for this payment to be displayed in the Swish app. sig { returns(T.nilable(String)) } def reference; end @@ -2514,7 +2778,7 @@ module Stripe sig { params(reference: T.nilable(String), setup_future_usage: T.nilable(String)).void } def initialize(reference: nil, setup_future_usage: nil); end end - class Twint < Stripe::RequestParams + class Twint < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2531,9 +2795,9 @@ module Stripe sig { params(setup_future_usage: T.nilable(String)).void } def initialize(setup_future_usage: nil); end end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -2577,7 +2841,7 @@ module Stripe } def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil); end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # The method used to collect offline mandate customer acceptance. sig { returns(T.nilable(String)) } def collection_method; end @@ -2586,7 +2850,7 @@ module Stripe sig { params(collection_method: T.nilable(String)).void } def initialize(collection_method: nil); end end - class Networks < Stripe::RequestParams + class Networks < ::Stripe::RequestParams # Triggers validations to run across the selected networks sig { returns(T.nilable(T::Array[String])) } def requested; end @@ -2669,7 +2933,7 @@ module Stripe verification_method: nil ); end end - class WechatPay < Stripe::RequestParams + class WechatPay < ::Stripe::RequestParams # The app ID registered with WeChat Pay. Only required when client is ios or android. sig { returns(T.nilable(String)) } def app_id; end @@ -2698,7 +2962,7 @@ module Stripe } def initialize(app_id: nil, client: nil, setup_future_usage: nil); end end - class Zip < Stripe::RequestParams + class Zip < ::Stripe::RequestParams # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -3231,8 +3495,8 @@ module Stripe zip: nil ); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -3307,7 +3571,7 @@ module Stripe } def initialize(address: nil, carrier: nil, name: nil, phone: nil, tracking_number: nil); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when a charge succeeds. sig { returns(T.nilable(Integer)) } def amount; end @@ -3321,6 +3585,13 @@ module Stripe def amount; end sig { params(_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } def amount=(_amount); end + # Provides industry-specific information about the amount. + sig { returns(T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails))) } + def amount_details; end + sig { + params(_amount_details: T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails))).returns(T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails))) + } + def amount_details=(_amount_details); end # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(T.any(String, Integer))) } def application_fee_amount; end @@ -3371,6 +3642,13 @@ module Stripe params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) } def metadata=(_metadata); end + # Provides industry-specific information about the charge. + sig { returns(T.nilable(T.any(String, PaymentIntentUpdateParams::PaymentDetails))) } + def payment_details; end + sig { + params(_payment_details: T.nilable(T.any(String, PaymentIntentUpdateParams::PaymentDetails))).returns(T.nilable(T.any(String, PaymentIntentUpdateParams::PaymentDetails))) + } + def payment_details=(_payment_details); end # ID of the payment method (a PaymentMethod, Card, or [compatible Source](https://stripe.com/docs/payments/payment-methods/transitioning#compatibility) object) to attach to this PaymentIntent. To unset this field to null, pass in an empty string. sig { returns(T.nilable(String)) } def payment_method; end @@ -3456,10 +3734,11 @@ module Stripe sig { params(_transfer_group: T.nilable(String)).returns(T.nilable(String)) } def transfer_group=(_transfer_group); end sig { - params(amount: T.nilable(Integer), application_fee_amount: T.nilable(T.any(String, Integer)), capture_method: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), description: T.nilable(String), excluded_payment_method_types: T.nilable(T.any(String, T::Array[String])), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(PaymentIntentUpdateParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentUpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), receipt_email: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String)), shipping: T.nilable(T.any(String, PaymentIntentUpdateParams::Shipping)), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(PaymentIntentUpdateParams::TransferData), transfer_group: T.nilable(String)).void + params(amount: T.nilable(Integer), amount_details: T.nilable(T.any(String, PaymentIntentUpdateParams::AmountDetails)), application_fee_amount: T.nilable(T.any(String, Integer)), capture_method: T.nilable(String), currency: T.nilable(String), customer: T.nilable(String), description: T.nilable(String), excluded_payment_method_types: T.nilable(T.any(String, T::Array[String])), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_details: T.nilable(T.any(String, PaymentIntentUpdateParams::PaymentDetails)), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(PaymentIntentUpdateParams::PaymentMethodData), payment_method_options: T.nilable(PaymentIntentUpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), receipt_email: T.nilable(String), setup_future_usage: T.nilable(T.any(String, String)), shipping: T.nilable(T.any(String, PaymentIntentUpdateParams::Shipping)), statement_descriptor: T.nilable(String), statement_descriptor_suffix: T.nilable(String), transfer_data: T.nilable(PaymentIntentUpdateParams::TransferData), transfer_group: T.nilable(String)).void } def initialize( amount: nil, + amount_details: nil, application_fee_amount: nil, capture_method: nil, currency: nil, @@ -3468,6 +3747,7 @@ module Stripe excluded_payment_method_types: nil, expand: nil, metadata: nil, + payment_details: nil, payment_method: nil, payment_method_configuration: nil, payment_method_data: nil, diff --git a/rbi/stripe/params/payment_intent_verify_microdeposits_params.rbi b/rbi/stripe/params/payment_intent_verify_microdeposits_params.rbi index 2c07d099..487f9fcc 100644 --- a/rbi/stripe/params/payment_intent_verify_microdeposits_params.rbi +++ b/rbi/stripe/params/payment_intent_verify_microdeposits_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PaymentIntentVerifyMicrodepositsParams < Stripe::RequestParams + class PaymentIntentVerifyMicrodepositsParams < ::Stripe::RequestParams # Two positive integers, in *cents*, equal to the values of the microdeposits sent to the bank account. sig { returns(T.nilable(T::Array[Integer])) } def amounts; end diff --git a/rbi/stripe/params/payment_link_create_params.rbi b/rbi/stripe/params/payment_link_create_params.rbi index 0a8c2b6b..c12e14f6 100644 --- a/rbi/stripe/params/payment_link_create_params.rbi +++ b/rbi/stripe/params/payment_link_create_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class PaymentLinkCreateParams < Stripe::RequestParams - class AfterCompletion < Stripe::RequestParams - class HostedConfirmation < Stripe::RequestParams + class PaymentLinkCreateParams < ::Stripe::RequestParams + class AfterCompletion < ::Stripe::RequestParams + class HostedConfirmation < ::Stripe::RequestParams # A custom message to display to the customer after the purchase is complete. sig { returns(T.nilable(String)) } def custom_message; end @@ -14,7 +14,7 @@ module Stripe sig { params(custom_message: T.nilable(String)).void } def initialize(custom_message: nil); end end - class Redirect < Stripe::RequestParams + class Redirect < ::Stripe::RequestParams # The URL the customer will be redirected to after the purchase is complete. You can embed `{CHECKOUT_SESSION_ID}` into the URL to have the `id` of the completed [checkout session](https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-id) included. sig { returns(String) } def url; end @@ -47,8 +47,8 @@ module Stripe } def initialize(hosted_confirmation: nil, redirect: nil, type: nil); end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -81,8 +81,8 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class ConsentCollection < Stripe::RequestParams - class PaymentMethodReuseAgreement < Stripe::RequestParams + class ConsentCollection < ::Stripe::RequestParams + class PaymentMethodReuseAgreement < ::Stripe::RequestParams # Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's # defaults will be used. When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI. sig { returns(String) } @@ -123,9 +123,9 @@ module Stripe terms_of_service: nil ); end end - class CustomField < Stripe::RequestParams - class Dropdown < Stripe::RequestParams - class Option < Stripe::RequestParams + class CustomField < ::Stripe::RequestParams + class Dropdown < ::Stripe::RequestParams + class Option < ::Stripe::RequestParams # The label for the option, displayed to the customer. Up to 100 characters. sig { returns(String) } def label; end @@ -156,7 +156,7 @@ module Stripe } def initialize(default_value: nil, options: nil); end end - class Label < Stripe::RequestParams + class Label < ::Stripe::RequestParams # Custom text for the label, displayed to the customer. Up to 50 characters. sig { returns(String) } def custom; end @@ -170,7 +170,7 @@ module Stripe sig { params(custom: String, type: String).void } def initialize(custom: nil, type: nil); end end - class Numeric < Stripe::RequestParams + class Numeric < ::Stripe::RequestParams # The value that will pre-fill the field on the payment page. sig { returns(T.nilable(String)) } def default_value; end @@ -191,7 +191,7 @@ module Stripe } def initialize(default_value: nil, maximum_length: nil, minimum_length: nil); end end - class Text < Stripe::RequestParams + class Text < ::Stripe::RequestParams # The value that will pre-fill the field on the payment page. sig { returns(T.nilable(String)) } def default_value; end @@ -268,8 +268,8 @@ module Stripe type: nil ); end end - class CustomText < Stripe::RequestParams - class AfterSubmit < Stripe::RequestParams + class CustomText < ::Stripe::RequestParams + class AfterSubmit < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -278,7 +278,7 @@ module Stripe sig { params(message: String).void } def initialize(message: nil); end end - class ShippingAddress < Stripe::RequestParams + class ShippingAddress < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -287,7 +287,7 @@ module Stripe sig { params(message: String).void } def initialize(message: nil); end end - class Submit < Stripe::RequestParams + class Submit < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -296,7 +296,7 @@ module Stripe sig { params(message: String).void } def initialize(message: nil); end end - class TermsOfServiceAcceptance < Stripe::RequestParams + class TermsOfServiceAcceptance < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -347,9 +347,9 @@ module Stripe terms_of_service_acceptance: nil ); end end - class InvoiceCreation < Stripe::RequestParams - class InvoiceData < Stripe::RequestParams - class CustomField < Stripe::RequestParams + class InvoiceCreation < ::Stripe::RequestParams + class InvoiceData < ::Stripe::RequestParams + class CustomField < ::Stripe::RequestParams # The name of the custom field. This may be up to 40 characters. sig { returns(String) } def name; end @@ -363,7 +363,7 @@ module Stripe sig { params(name: String, value: String).void } def initialize(name: nil, value: nil); end end - class Issuer < Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -377,7 +377,7 @@ module Stripe sig { params(account: T.nilable(String), type: String).void } def initialize(account: nil, type: nil); end end - class RenderingOptions < Stripe::RequestParams + class RenderingOptions < ::Stripe::RequestParams # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. sig { returns(T.nilable(T.any(String, String))) } def amount_tax_display; end @@ -474,8 +474,8 @@ module Stripe } def initialize(enabled: nil, invoice_data: nil); end end - class LineItem < Stripe::RequestParams - class AdjustableQuantity < Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative Integer. sig { returns(T::Boolean) } def enabled; end @@ -496,8 +496,8 @@ module Stripe } def initialize(enabled: nil, maximum: nil, minimum: nil); end end - class PriceData < Stripe::RequestParams - class ProductData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class ProductData < ::Stripe::RequestParams # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. sig { returns(T.nilable(String)) } def description; end @@ -542,7 +542,7 @@ module Stripe unit_label: nil ); end end - class Recurring < Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -637,8 +637,56 @@ module Stripe } def initialize(adjustable_quantity: nil, price: nil, price_data: nil, quantity: nil); end end - class OptionalItem < Stripe::RequestParams - class AdjustableQuantity < Stripe::RequestParams + class NameCollection < ::Stripe::RequestParams + class Business < ::Stripe::RequestParams + # Enable business name collection on the payment link. Defaults to `false`. + sig { returns(T::Boolean) } + def enabled; end + sig { params(_enabled: T::Boolean).returns(T::Boolean) } + def enabled=(_enabled); end + # Whether the customer is required to provide their business name before checking out. Defaults to `false`. + sig { returns(T.nilable(T::Boolean)) } + def optional; end + sig { params(_optional: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def optional=(_optional); end + sig { params(enabled: T::Boolean, optional: T.nilable(T::Boolean)).void } + def initialize(enabled: nil, optional: nil); end + end + class Individual < ::Stripe::RequestParams + # Enable individual name collection on the payment link. Defaults to `false`. + sig { returns(T::Boolean) } + def enabled; end + sig { params(_enabled: T::Boolean).returns(T::Boolean) } + def enabled=(_enabled); end + # Whether the customer is required to provide their full name before checking out. Defaults to `false`. + sig { returns(T.nilable(T::Boolean)) } + def optional; end + sig { params(_optional: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def optional=(_optional); end + sig { params(enabled: T::Boolean, optional: T.nilable(T::Boolean)).void } + def initialize(enabled: nil, optional: nil); end + end + # Controls settings applied for collecting the customer's business name. + sig { returns(T.nilable(PaymentLinkCreateParams::NameCollection::Business)) } + def business; end + sig { + params(_business: T.nilable(PaymentLinkCreateParams::NameCollection::Business)).returns(T.nilable(PaymentLinkCreateParams::NameCollection::Business)) + } + def business=(_business); end + # Controls settings applied for collecting the customer's individual name. + sig { returns(T.nilable(PaymentLinkCreateParams::NameCollection::Individual)) } + def individual; end + sig { + params(_individual: T.nilable(PaymentLinkCreateParams::NameCollection::Individual)).returns(T.nilable(PaymentLinkCreateParams::NameCollection::Individual)) + } + def individual=(_individual); end + sig { + params(business: T.nilable(PaymentLinkCreateParams::NameCollection::Business), individual: T.nilable(PaymentLinkCreateParams::NameCollection::Individual)).void + } + def initialize(business: nil, individual: nil); end + end + class OptionalItem < ::Stripe::RequestParams + class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative integer. sig { returns(T::Boolean) } def enabled; end @@ -681,7 +729,7 @@ module Stripe } def initialize(adjustable_quantity: nil, price: nil, quantity: nil); end end - class PaymentIntentData < Stripe::RequestParams + class PaymentIntentData < ::Stripe::RequestParams # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -744,7 +792,7 @@ module Stripe transfer_group: nil ); end end - class PhoneNumberCollection < Stripe::RequestParams + class PhoneNumberCollection < ::Stripe::RequestParams # Set to `true` to enable phone number collection. sig { returns(T::Boolean) } def enabled; end @@ -753,8 +801,8 @@ module Stripe sig { params(enabled: T::Boolean).void } def initialize(enabled: nil); end end - class Restrictions < Stripe::RequestParams - class CompletedSessions < Stripe::RequestParams + class Restrictions < ::Stripe::RequestParams + class CompletedSessions < ::Stripe::RequestParams # The maximum number of checkout sessions that can be completed for the `completed_sessions` restriction to be met. sig { returns(Integer) } def limit; end @@ -775,7 +823,7 @@ module Stripe } def initialize(completed_sessions: nil); end end - class ShippingAddressCollection < Stripe::RequestParams + class ShippingAddressCollection < ::Stripe::RequestParams # An array of two-letter ISO country codes representing which countries Checkout should provide as options for # shipping locations. sig { returns(T::Array[String]) } @@ -785,7 +833,7 @@ module Stripe sig { params(allowed_countries: T::Array[String]).void } def initialize(allowed_countries: nil); end end - class ShippingOption < Stripe::RequestParams + class ShippingOption < ::Stripe::RequestParams # The ID of the Shipping Rate to use for this shipping option. sig { returns(T.nilable(String)) } def shipping_rate; end @@ -794,9 +842,9 @@ module Stripe sig { params(shipping_rate: T.nilable(String)).void } def initialize(shipping_rate: nil); end end - class SubscriptionData < Stripe::RequestParams - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class SubscriptionData < ::Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -824,8 +872,8 @@ module Stripe } def initialize(issuer: nil); end end - class TrialSettings < Stripe::RequestParams - class EndBehavior < Stripe::RequestParams + class TrialSettings < ::Stripe::RequestParams + class EndBehavior < ::Stripe::RequestParams # Indicates how the subscription should change when the trial ends if the user did not provide a payment method. sig { returns(String) } def missing_payment_method; end @@ -888,7 +936,7 @@ module Stripe trial_settings: nil ); end end - class TaxIdCollection < Stripe::RequestParams + class TaxIdCollection < ::Stripe::RequestParams # Enable tax ID collection during checkout. Defaults to `false`. sig { returns(T::Boolean) } def enabled; end @@ -902,7 +950,7 @@ module Stripe sig { params(enabled: T::Boolean, required: T.nilable(String)).void } def initialize(enabled: nil, required: nil); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when a charge succeeds. sig { returns(T.nilable(Integer)) } def amount; end @@ -1015,6 +1063,13 @@ module Stripe params(_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) } def metadata=(_metadata); end + # Controls settings applied for collecting the customer's name. + sig { returns(T.nilable(PaymentLinkCreateParams::NameCollection)) } + def name_collection; end + sig { + params(_name_collection: T.nilable(PaymentLinkCreateParams::NameCollection)).returns(T.nilable(PaymentLinkCreateParams::NameCollection)) + } + def name_collection=(_name_collection); end # The account on behalf of which to charge. sig { returns(T.nilable(String)) } def on_behalf_of; end @@ -1109,7 +1164,7 @@ module Stripe } def transfer_data=(_transfer_data); end sig { - params(after_completion: T.nilable(PaymentLinkCreateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), application_fee_amount: T.nilable(Integer), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(PaymentLinkCreateParams::AutomaticTax), billing_address_collection: T.nilable(String), consent_collection: T.nilable(PaymentLinkCreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[PaymentLinkCreateParams::CustomField]), custom_text: T.nilable(PaymentLinkCreateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(PaymentLinkCreateParams::InvoiceCreation), line_items: T::Array[PaymentLinkCreateParams::LineItem], metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), optional_items: T.nilable(T::Array[PaymentLinkCreateParams::OptionalItem]), payment_intent_data: T.nilable(PaymentLinkCreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T::Array[String]), phone_number_collection: T.nilable(PaymentLinkCreateParams::PhoneNumberCollection), restrictions: T.nilable(PaymentLinkCreateParams::Restrictions), shipping_address_collection: T.nilable(PaymentLinkCreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[PaymentLinkCreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(PaymentLinkCreateParams::SubscriptionData), tax_id_collection: T.nilable(PaymentLinkCreateParams::TaxIdCollection), transfer_data: T.nilable(PaymentLinkCreateParams::TransferData)).void + params(after_completion: T.nilable(PaymentLinkCreateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), application_fee_amount: T.nilable(Integer), application_fee_percent: T.nilable(Float), automatic_tax: T.nilable(PaymentLinkCreateParams::AutomaticTax), billing_address_collection: T.nilable(String), consent_collection: T.nilable(PaymentLinkCreateParams::ConsentCollection), currency: T.nilable(String), custom_fields: T.nilable(T::Array[PaymentLinkCreateParams::CustomField]), custom_text: T.nilable(PaymentLinkCreateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(PaymentLinkCreateParams::InvoiceCreation), line_items: T::Array[PaymentLinkCreateParams::LineItem], metadata: T.nilable(T::Hash[String, String]), name_collection: T.nilable(PaymentLinkCreateParams::NameCollection), on_behalf_of: T.nilable(String), optional_items: T.nilable(T::Array[PaymentLinkCreateParams::OptionalItem]), payment_intent_data: T.nilable(PaymentLinkCreateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T::Array[String]), phone_number_collection: T.nilable(PaymentLinkCreateParams::PhoneNumberCollection), restrictions: T.nilable(PaymentLinkCreateParams::Restrictions), shipping_address_collection: T.nilable(PaymentLinkCreateParams::ShippingAddressCollection), shipping_options: T.nilable(T::Array[PaymentLinkCreateParams::ShippingOption]), submit_type: T.nilable(String), subscription_data: T.nilable(PaymentLinkCreateParams::SubscriptionData), tax_id_collection: T.nilable(PaymentLinkCreateParams::TaxIdCollection), transfer_data: T.nilable(PaymentLinkCreateParams::TransferData)).void } def initialize( after_completion: nil, @@ -1128,6 +1183,7 @@ module Stripe invoice_creation: nil, line_items: nil, metadata: nil, + name_collection: nil, on_behalf_of: nil, optional_items: nil, payment_intent_data: nil, diff --git a/rbi/stripe/params/payment_link_line_item_list_params.rbi b/rbi/stripe/params/payment_link_line_item_list_params.rbi index fd4da4ca..d4bf64d8 100644 --- a/rbi/stripe/params/payment_link_line_item_list_params.rbi +++ b/rbi/stripe/params/payment_link_line_item_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PaymentLinkLineItemListParams < Stripe::RequestParams + class PaymentLinkLineItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/payment_link_list_line_items_params.rbi b/rbi/stripe/params/payment_link_list_line_items_params.rbi index c2987100..92e0184f 100644 --- a/rbi/stripe/params/payment_link_list_line_items_params.rbi +++ b/rbi/stripe/params/payment_link_list_line_items_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PaymentLinkListLineItemsParams < Stripe::RequestParams + class PaymentLinkListLineItemsParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/payment_link_list_params.rbi b/rbi/stripe/params/payment_link_list_params.rbi index c95ae1b7..4dae02b2 100644 --- a/rbi/stripe/params/payment_link_list_params.rbi +++ b/rbi/stripe/params/payment_link_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PaymentLinkListParams < Stripe::RequestParams + class PaymentLinkListParams < ::Stripe::RequestParams # Only return payment links that are active or inactive (e.g., pass `false` to list all inactive payment links). sig { returns(T.nilable(T::Boolean)) } def active; end diff --git a/rbi/stripe/params/payment_link_retrieve_params.rbi b/rbi/stripe/params/payment_link_retrieve_params.rbi index 840fb420..9aac7868 100644 --- a/rbi/stripe/params/payment_link_retrieve_params.rbi +++ b/rbi/stripe/params/payment_link_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PaymentLinkRetrieveParams < Stripe::RequestParams + class PaymentLinkRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/payment_link_update_params.rbi b/rbi/stripe/params/payment_link_update_params.rbi index da254b95..9f1bd2d0 100644 --- a/rbi/stripe/params/payment_link_update_params.rbi +++ b/rbi/stripe/params/payment_link_update_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class PaymentLinkUpdateParams < Stripe::RequestParams - class AfterCompletion < Stripe::RequestParams - class HostedConfirmation < Stripe::RequestParams + class PaymentLinkUpdateParams < ::Stripe::RequestParams + class AfterCompletion < ::Stripe::RequestParams + class HostedConfirmation < ::Stripe::RequestParams # A custom message to display to the customer after the purchase is complete. sig { returns(T.nilable(String)) } def custom_message; end @@ -14,7 +14,7 @@ module Stripe sig { params(custom_message: T.nilable(String)).void } def initialize(custom_message: nil); end end - class Redirect < Stripe::RequestParams + class Redirect < ::Stripe::RequestParams # The URL the customer will be redirected to after the purchase is complete. You can embed `{CHECKOUT_SESSION_ID}` into the URL to have the `id` of the completed [checkout session](https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-id) included. sig { returns(String) } def url; end @@ -47,8 +47,8 @@ module Stripe } def initialize(hosted_confirmation: nil, redirect: nil, type: nil); end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -81,9 +81,9 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class CustomField < Stripe::RequestParams - class Dropdown < Stripe::RequestParams - class Option < Stripe::RequestParams + class CustomField < ::Stripe::RequestParams + class Dropdown < ::Stripe::RequestParams + class Option < ::Stripe::RequestParams # The label for the option, displayed to the customer. Up to 100 characters. sig { returns(String) } def label; end @@ -114,7 +114,7 @@ module Stripe } def initialize(default_value: nil, options: nil); end end - class Label < Stripe::RequestParams + class Label < ::Stripe::RequestParams # Custom text for the label, displayed to the customer. Up to 50 characters. sig { returns(String) } def custom; end @@ -128,7 +128,7 @@ module Stripe sig { params(custom: String, type: String).void } def initialize(custom: nil, type: nil); end end - class Numeric < Stripe::RequestParams + class Numeric < ::Stripe::RequestParams # The value that will pre-fill the field on the payment page. sig { returns(T.nilable(String)) } def default_value; end @@ -149,7 +149,7 @@ module Stripe } def initialize(default_value: nil, maximum_length: nil, minimum_length: nil); end end - class Text < Stripe::RequestParams + class Text < ::Stripe::RequestParams # The value that will pre-fill the field on the payment page. sig { returns(T.nilable(String)) } def default_value; end @@ -226,8 +226,8 @@ module Stripe type: nil ); end end - class CustomText < Stripe::RequestParams - class AfterSubmit < Stripe::RequestParams + class CustomText < ::Stripe::RequestParams + class AfterSubmit < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -236,7 +236,7 @@ module Stripe sig { params(message: String).void } def initialize(message: nil); end end - class ShippingAddress < Stripe::RequestParams + class ShippingAddress < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -245,7 +245,7 @@ module Stripe sig { params(message: String).void } def initialize(message: nil); end end - class Submit < Stripe::RequestParams + class Submit < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -254,7 +254,7 @@ module Stripe sig { params(message: String).void } def initialize(message: nil); end end - class TermsOfServiceAcceptance < Stripe::RequestParams + class TermsOfServiceAcceptance < ::Stripe::RequestParams # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -305,9 +305,9 @@ module Stripe terms_of_service_acceptance: nil ); end end - class InvoiceCreation < Stripe::RequestParams - class InvoiceData < Stripe::RequestParams - class CustomField < Stripe::RequestParams + class InvoiceCreation < ::Stripe::RequestParams + class InvoiceData < ::Stripe::RequestParams + class CustomField < ::Stripe::RequestParams # The name of the custom field. This may be up to 40 characters. sig { returns(String) } def name; end @@ -321,7 +321,7 @@ module Stripe sig { params(name: String, value: String).void } def initialize(name: nil, value: nil); end end - class Issuer < Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -335,7 +335,7 @@ module Stripe sig { params(account: T.nilable(String), type: String).void } def initialize(account: nil, type: nil); end end - class RenderingOptions < Stripe::RequestParams + class RenderingOptions < ::Stripe::RequestParams # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. sig { returns(T.nilable(T.any(String, String))) } def amount_tax_display; end @@ -432,8 +432,8 @@ module Stripe } def initialize(enabled: nil, invoice_data: nil); end end - class LineItem < Stripe::RequestParams - class AdjustableQuantity < Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class AdjustableQuantity < ::Stripe::RequestParams # Set to true if the quantity can be adjusted to any non-negative Integer. sig { returns(T::Boolean) } def enabled; end @@ -476,7 +476,55 @@ module Stripe } def initialize(adjustable_quantity: nil, id: nil, quantity: nil); end end - class PaymentIntentData < Stripe::RequestParams + class NameCollection < ::Stripe::RequestParams + class Business < ::Stripe::RequestParams + # Enable business name collection on the payment link. Defaults to `false`. + sig { returns(T::Boolean) } + def enabled; end + sig { params(_enabled: T::Boolean).returns(T::Boolean) } + def enabled=(_enabled); end + # Whether the customer is required to provide their business name before checking out. Defaults to `false`. + sig { returns(T.nilable(T::Boolean)) } + def optional; end + sig { params(_optional: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def optional=(_optional); end + sig { params(enabled: T::Boolean, optional: T.nilable(T::Boolean)).void } + def initialize(enabled: nil, optional: nil); end + end + class Individual < ::Stripe::RequestParams + # Enable individual name collection on the payment link. Defaults to `false`. + sig { returns(T::Boolean) } + def enabled; end + sig { params(_enabled: T::Boolean).returns(T::Boolean) } + def enabled=(_enabled); end + # Whether the customer is required to provide their full name before checking out. Defaults to `false`. + sig { returns(T.nilable(T::Boolean)) } + def optional; end + sig { params(_optional: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def optional=(_optional); end + sig { params(enabled: T::Boolean, optional: T.nilable(T::Boolean)).void } + def initialize(enabled: nil, optional: nil); end + end + # Controls settings applied for collecting the customer's business name. + sig { returns(T.nilable(PaymentLinkUpdateParams::NameCollection::Business)) } + def business; end + sig { + params(_business: T.nilable(PaymentLinkUpdateParams::NameCollection::Business)).returns(T.nilable(PaymentLinkUpdateParams::NameCollection::Business)) + } + def business=(_business); end + # Controls settings applied for collecting the customer's individual name. + sig { returns(T.nilable(PaymentLinkUpdateParams::NameCollection::Individual)) } + def individual; end + sig { + params(_individual: T.nilable(PaymentLinkUpdateParams::NameCollection::Individual)).returns(T.nilable(PaymentLinkUpdateParams::NameCollection::Individual)) + } + def individual=(_individual); end + sig { + params(business: T.nilable(PaymentLinkUpdateParams::NameCollection::Business), individual: T.nilable(PaymentLinkUpdateParams::NameCollection::Individual)).void + } + def initialize(business: nil, individual: nil); end + end + class PaymentIntentData < ::Stripe::RequestParams # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } def description; end @@ -517,7 +565,7 @@ module Stripe transfer_group: nil ); end end - class PhoneNumberCollection < Stripe::RequestParams + class PhoneNumberCollection < ::Stripe::RequestParams # Set to `true` to enable phone number collection. sig { returns(T::Boolean) } def enabled; end @@ -526,8 +574,8 @@ module Stripe sig { params(enabled: T::Boolean).void } def initialize(enabled: nil); end end - class Restrictions < Stripe::RequestParams - class CompletedSessions < Stripe::RequestParams + class Restrictions < ::Stripe::RequestParams + class CompletedSessions < ::Stripe::RequestParams # The maximum number of checkout sessions that can be completed for the `completed_sessions` restriction to be met. sig { returns(Integer) } def limit; end @@ -548,7 +596,7 @@ module Stripe } def initialize(completed_sessions: nil); end end - class ShippingAddressCollection < Stripe::RequestParams + class ShippingAddressCollection < ::Stripe::RequestParams # An array of two-letter ISO country codes representing which countries Checkout should provide as options for # shipping locations. sig { returns(T::Array[String]) } @@ -558,9 +606,9 @@ module Stripe sig { params(allowed_countries: T::Array[String]).void } def initialize(allowed_countries: nil); end end - class SubscriptionData < Stripe::RequestParams - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class SubscriptionData < ::Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -588,8 +636,8 @@ module Stripe } def initialize(issuer: nil); end end - class TrialSettings < Stripe::RequestParams - class EndBehavior < Stripe::RequestParams + class TrialSettings < ::Stripe::RequestParams + class EndBehavior < ::Stripe::RequestParams # Indicates how the subscription should change when the trial ends if the user did not provide a payment method. sig { returns(String) } def missing_payment_method; end @@ -650,7 +698,7 @@ module Stripe trial_settings: nil ); end end - class TaxIdCollection < Stripe::RequestParams + class TaxIdCollection < ::Stripe::RequestParams # Enable tax ID collection during checkout. Defaults to `false`. sig { returns(T::Boolean) } def enabled; end @@ -743,6 +791,13 @@ module Stripe params(_metadata: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) } def metadata=(_metadata); end + # Controls settings applied for collecting the customer's name. + sig { returns(T.nilable(T.any(String, PaymentLinkUpdateParams::NameCollection))) } + def name_collection; end + sig { + params(_name_collection: T.nilable(T.any(String, PaymentLinkUpdateParams::NameCollection))).returns(T.nilable(T.any(String, PaymentLinkUpdateParams::NameCollection))) + } + def name_collection=(_name_collection); end # A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode. sig { returns(T.nilable(PaymentLinkUpdateParams::PaymentIntentData)) } def payment_intent_data; end @@ -809,7 +864,7 @@ module Stripe } def tax_id_collection=(_tax_id_collection); end sig { - params(active: T.nilable(T::Boolean), after_completion: T.nilable(PaymentLinkUpdateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(PaymentLinkUpdateParams::AutomaticTax), billing_address_collection: T.nilable(String), custom_fields: T.nilable(T.any(String, T::Array[PaymentLinkUpdateParams::CustomField])), custom_text: T.nilable(PaymentLinkUpdateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(PaymentLinkUpdateParams::InvoiceCreation), line_items: T.nilable(T::Array[PaymentLinkUpdateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), payment_intent_data: T.nilable(PaymentLinkUpdateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T.any(String, T::Array[String])), phone_number_collection: T.nilable(PaymentLinkUpdateParams::PhoneNumberCollection), restrictions: T.nilable(T.any(String, PaymentLinkUpdateParams::Restrictions)), shipping_address_collection: T.nilable(T.any(String, PaymentLinkUpdateParams::ShippingAddressCollection)), submit_type: T.nilable(String), subscription_data: T.nilable(PaymentLinkUpdateParams::SubscriptionData), tax_id_collection: T.nilable(PaymentLinkUpdateParams::TaxIdCollection)).void + params(active: T.nilable(T::Boolean), after_completion: T.nilable(PaymentLinkUpdateParams::AfterCompletion), allow_promotion_codes: T.nilable(T::Boolean), automatic_tax: T.nilable(PaymentLinkUpdateParams::AutomaticTax), billing_address_collection: T.nilable(String), custom_fields: T.nilable(T.any(String, T::Array[PaymentLinkUpdateParams::CustomField])), custom_text: T.nilable(PaymentLinkUpdateParams::CustomText), customer_creation: T.nilable(String), expand: T.nilable(T::Array[String]), inactive_message: T.nilable(String), invoice_creation: T.nilable(PaymentLinkUpdateParams::InvoiceCreation), line_items: T.nilable(T::Array[PaymentLinkUpdateParams::LineItem]), metadata: T.nilable(T::Hash[String, String]), name_collection: T.nilable(T.any(String, PaymentLinkUpdateParams::NameCollection)), payment_intent_data: T.nilable(PaymentLinkUpdateParams::PaymentIntentData), payment_method_collection: T.nilable(String), payment_method_types: T.nilable(T.any(String, T::Array[String])), phone_number_collection: T.nilable(PaymentLinkUpdateParams::PhoneNumberCollection), restrictions: T.nilable(T.any(String, PaymentLinkUpdateParams::Restrictions)), shipping_address_collection: T.nilable(T.any(String, PaymentLinkUpdateParams::ShippingAddressCollection)), submit_type: T.nilable(String), subscription_data: T.nilable(PaymentLinkUpdateParams::SubscriptionData), tax_id_collection: T.nilable(PaymentLinkUpdateParams::TaxIdCollection)).void } def initialize( active: nil, @@ -825,6 +880,7 @@ module Stripe invoice_creation: nil, line_items: nil, metadata: nil, + name_collection: nil, payment_intent_data: nil, payment_method_collection: nil, payment_method_types: nil, diff --git a/rbi/stripe/params/payment_method_attach_params.rbi b/rbi/stripe/params/payment_method_attach_params.rbi index b3777460..70d01f6a 100644 --- a/rbi/stripe/params/payment_method_attach_params.rbi +++ b/rbi/stripe/params/payment_method_attach_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PaymentMethodAttachParams < Stripe::RequestParams + class PaymentMethodAttachParams < ::Stripe::RequestParams # The ID of the customer to which to attach the PaymentMethod. sig { returns(String) } def customer; end diff --git a/rbi/stripe/params/payment_method_configuration_create_params.rbi b/rbi/stripe/params/payment_method_configuration_create_params.rbi index 947799b6..3ca82402 100644 --- a/rbi/stripe/params/payment_method_configuration_create_params.rbi +++ b/rbi/stripe/params/payment_method_configuration_create_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class PaymentMethodConfigurationCreateParams < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class PaymentMethodConfigurationCreateParams < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -28,8 +28,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Affirm < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -50,8 +50,8 @@ module Stripe } def initialize(display_preference: nil); end end - class AfterpayClearpay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class AfterpayClearpay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -74,8 +74,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Alipay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Alipay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -96,8 +96,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Alma < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Alma < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -118,8 +118,8 @@ module Stripe } def initialize(display_preference: nil); end end - class AmazonPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -142,8 +142,8 @@ module Stripe } def initialize(display_preference: nil); end end - class ApplePay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class ApplePay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -166,8 +166,8 @@ module Stripe } def initialize(display_preference: nil); end end - class ApplePayLater < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class ApplePayLater < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -190,8 +190,8 @@ module Stripe } def initialize(display_preference: nil); end end - class AuBecsDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -214,8 +214,8 @@ module Stripe } def initialize(display_preference: nil); end end - class BacsDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -238,8 +238,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Bancontact < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -262,8 +262,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Billie < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Billie < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -284,8 +284,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Blik < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Blik < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -306,8 +306,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Boleto < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -328,8 +328,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Card < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -350,8 +350,8 @@ module Stripe } def initialize(display_preference: nil); end end - class CartesBancaires < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -374,8 +374,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Cashapp < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -396,8 +396,30 @@ module Stripe } def initialize(display_preference: nil); end end - class CustomerBalance < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Crypto < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::Crypto::DisplayPreference)) } + def display_preference; end + sig { + params(_display_preference: T.nilable(PaymentMethodConfigurationCreateParams::Crypto::DisplayPreference)).returns(T.nilable(PaymentMethodConfigurationCreateParams::Crypto::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(PaymentMethodConfigurationCreateParams::Crypto::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end + class CustomerBalance < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -420,8 +442,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Eps < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Eps < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -442,8 +464,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Fpx < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -464,8 +486,8 @@ module Stripe } def initialize(display_preference: nil); end end - class FrMealVoucherConecs < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class FrMealVoucherConecs < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -488,8 +510,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Giropay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -510,8 +532,8 @@ module Stripe } def initialize(display_preference: nil); end end - class GooglePay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class GooglePay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -534,8 +556,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Grabpay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Grabpay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -556,8 +578,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Ideal < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -578,8 +600,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Jcb < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Jcb < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -600,8 +622,8 @@ module Stripe } def initialize(display_preference: nil); end end - class KakaoPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class KakaoPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -624,8 +646,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Klarna < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -646,8 +668,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Konbini < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -668,8 +690,8 @@ module Stripe } def initialize(display_preference: nil); end end - class KrCard < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class KrCard < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -690,8 +712,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Link < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Link < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -712,8 +734,30 @@ module Stripe } def initialize(display_preference: nil); end end - class Mobilepay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class MbWay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::MbWay::DisplayPreference)) } + def display_preference; end + sig { + params(_display_preference: T.nilable(PaymentMethodConfigurationCreateParams::MbWay::DisplayPreference)).returns(T.nilable(PaymentMethodConfigurationCreateParams::MbWay::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(PaymentMethodConfigurationCreateParams::MbWay::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end + class Mobilepay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -736,8 +780,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Multibanco < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Multibanco < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -760,8 +804,8 @@ module Stripe } def initialize(display_preference: nil); end end - class NaverPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -784,8 +828,8 @@ module Stripe } def initialize(display_preference: nil); end end - class NzBankAccount < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -808,8 +852,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Oxxo < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -830,8 +874,8 @@ module Stripe } def initialize(display_preference: nil); end end - class P24 < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class P24 < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -852,8 +896,8 @@ module Stripe } def initialize(display_preference: nil); end end - class PayByBank < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -876,8 +920,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Payco < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Payco < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -898,8 +942,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Paynow < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Paynow < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -920,8 +964,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Paypal < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -942,8 +986,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Pix < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Pix < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -964,8 +1008,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Promptpay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Promptpay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -988,8 +1032,8 @@ module Stripe } def initialize(display_preference: nil); end end - class RevolutPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -1012,8 +1056,8 @@ module Stripe } def initialize(display_preference: nil); end end - class SamsungPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class SamsungPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -1036,8 +1080,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Satispay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Satispay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -1060,8 +1104,8 @@ module Stripe } def initialize(display_preference: nil); end end - class SepaDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -1084,8 +1128,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Sofort < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -1106,8 +1150,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Swish < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Swish < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -1128,8 +1172,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Twint < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Twint < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -1150,8 +1194,8 @@ module Stripe } def initialize(display_preference: nil); end end - class UsBankAccount < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -1174,8 +1218,8 @@ module Stripe } def initialize(display_preference: nil); end end - class WechatPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class WechatPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -1198,8 +1242,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Zip < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Zip < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -1339,6 +1383,13 @@ module Stripe params(_cashapp: T.nilable(PaymentMethodConfigurationCreateParams::Cashapp)).returns(T.nilable(PaymentMethodConfigurationCreateParams::Cashapp)) } def cashapp=(_cashapp); end + # [Stablecoin payments](https://stripe.com/docs/payments/stablecoin-payments) enable customers to pay in stablecoins like USDC from 100s of wallets including Phantom and Metamask. + sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::Crypto)) } + def crypto; end + sig { + params(_crypto: T.nilable(PaymentMethodConfigurationCreateParams::Crypto)).returns(T.nilable(PaymentMethodConfigurationCreateParams::Crypto)) + } + def crypto=(_crypto); end # Uses a customer’s [cash balance](https://stripe.com/docs/payments/customer-balance) for the payment. The cash balance can be funded via a bank transfer. Check this [page](https://stripe.com/docs/payments/bank-transfers) for more details. sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::CustomerBalance)) } def customer_balance; end @@ -1442,6 +1493,13 @@ module Stripe params(_link: T.nilable(PaymentMethodConfigurationCreateParams::Link)).returns(T.nilable(PaymentMethodConfigurationCreateParams::Link)) } def link=(_link); end + # MB WAY is the most popular wallet in Portugal. After entering their phone number in your checkout, customers approve the payment directly in their MB WAY app. Check this [page](https://stripe.com/docs/payments/mb-way) for more details. + sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::MbWay)) } + def mb_way; end + sig { + params(_mb_way: T.nilable(PaymentMethodConfigurationCreateParams::MbWay)).returns(T.nilable(PaymentMethodConfigurationCreateParams::MbWay)) + } + def mb_way=(_mb_way); end # MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details. sig { returns(T.nilable(PaymentMethodConfigurationCreateParams::Mobilepay)) } def mobilepay; end @@ -1607,7 +1665,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(PaymentMethodConfigurationCreateParams::AcssDebit), affirm: T.nilable(PaymentMethodConfigurationCreateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodConfigurationCreateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodConfigurationCreateParams::Alipay), alma: T.nilable(PaymentMethodConfigurationCreateParams::Alma), amazon_pay: T.nilable(PaymentMethodConfigurationCreateParams::AmazonPay), apple_pay: T.nilable(PaymentMethodConfigurationCreateParams::ApplePay), apple_pay_later: T.nilable(PaymentMethodConfigurationCreateParams::ApplePayLater), au_becs_debit: T.nilable(PaymentMethodConfigurationCreateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodConfigurationCreateParams::BacsDebit), bancontact: T.nilable(PaymentMethodConfigurationCreateParams::Bancontact), billie: T.nilable(PaymentMethodConfigurationCreateParams::Billie), blik: T.nilable(PaymentMethodConfigurationCreateParams::Blik), boleto: T.nilable(PaymentMethodConfigurationCreateParams::Boleto), card: T.nilable(PaymentMethodConfigurationCreateParams::Card), cartes_bancaires: T.nilable(PaymentMethodConfigurationCreateParams::CartesBancaires), cashapp: T.nilable(PaymentMethodConfigurationCreateParams::Cashapp), customer_balance: T.nilable(PaymentMethodConfigurationCreateParams::CustomerBalance), eps: T.nilable(PaymentMethodConfigurationCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodConfigurationCreateParams::Fpx), fr_meal_voucher_conecs: T.nilable(PaymentMethodConfigurationCreateParams::FrMealVoucherConecs), giropay: T.nilable(PaymentMethodConfigurationCreateParams::Giropay), google_pay: T.nilable(PaymentMethodConfigurationCreateParams::GooglePay), grabpay: T.nilable(PaymentMethodConfigurationCreateParams::Grabpay), ideal: T.nilable(PaymentMethodConfigurationCreateParams::Ideal), jcb: T.nilable(PaymentMethodConfigurationCreateParams::Jcb), kakao_pay: T.nilable(PaymentMethodConfigurationCreateParams::KakaoPay), klarna: T.nilable(PaymentMethodConfigurationCreateParams::Klarna), konbini: T.nilable(PaymentMethodConfigurationCreateParams::Konbini), kr_card: T.nilable(PaymentMethodConfigurationCreateParams::KrCard), link: T.nilable(PaymentMethodConfigurationCreateParams::Link), mobilepay: T.nilable(PaymentMethodConfigurationCreateParams::Mobilepay), multibanco: T.nilable(PaymentMethodConfigurationCreateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(PaymentMethodConfigurationCreateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodConfigurationCreateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodConfigurationCreateParams::Oxxo), p24: T.nilable(PaymentMethodConfigurationCreateParams::P24), parent: T.nilable(String), pay_by_bank: T.nilable(PaymentMethodConfigurationCreateParams::PayByBank), payco: T.nilable(PaymentMethodConfigurationCreateParams::Payco), paynow: T.nilable(PaymentMethodConfigurationCreateParams::Paynow), paypal: T.nilable(PaymentMethodConfigurationCreateParams::Paypal), pix: T.nilable(PaymentMethodConfigurationCreateParams::Pix), promptpay: T.nilable(PaymentMethodConfigurationCreateParams::Promptpay), revolut_pay: T.nilable(PaymentMethodConfigurationCreateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodConfigurationCreateParams::SamsungPay), satispay: T.nilable(PaymentMethodConfigurationCreateParams::Satispay), sepa_debit: T.nilable(PaymentMethodConfigurationCreateParams::SepaDebit), sofort: T.nilable(PaymentMethodConfigurationCreateParams::Sofort), swish: T.nilable(PaymentMethodConfigurationCreateParams::Swish), twint: T.nilable(PaymentMethodConfigurationCreateParams::Twint), us_bank_account: T.nilable(PaymentMethodConfigurationCreateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodConfigurationCreateParams::WechatPay), zip: T.nilable(PaymentMethodConfigurationCreateParams::Zip)).void + params(acss_debit: T.nilable(PaymentMethodConfigurationCreateParams::AcssDebit), affirm: T.nilable(PaymentMethodConfigurationCreateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodConfigurationCreateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodConfigurationCreateParams::Alipay), alma: T.nilable(PaymentMethodConfigurationCreateParams::Alma), amazon_pay: T.nilable(PaymentMethodConfigurationCreateParams::AmazonPay), apple_pay: T.nilable(PaymentMethodConfigurationCreateParams::ApplePay), apple_pay_later: T.nilable(PaymentMethodConfigurationCreateParams::ApplePayLater), au_becs_debit: T.nilable(PaymentMethodConfigurationCreateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodConfigurationCreateParams::BacsDebit), bancontact: T.nilable(PaymentMethodConfigurationCreateParams::Bancontact), billie: T.nilable(PaymentMethodConfigurationCreateParams::Billie), blik: T.nilable(PaymentMethodConfigurationCreateParams::Blik), boleto: T.nilable(PaymentMethodConfigurationCreateParams::Boleto), card: T.nilable(PaymentMethodConfigurationCreateParams::Card), cartes_bancaires: T.nilable(PaymentMethodConfigurationCreateParams::CartesBancaires), cashapp: T.nilable(PaymentMethodConfigurationCreateParams::Cashapp), crypto: T.nilable(PaymentMethodConfigurationCreateParams::Crypto), customer_balance: T.nilable(PaymentMethodConfigurationCreateParams::CustomerBalance), eps: T.nilable(PaymentMethodConfigurationCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodConfigurationCreateParams::Fpx), fr_meal_voucher_conecs: T.nilable(PaymentMethodConfigurationCreateParams::FrMealVoucherConecs), giropay: T.nilable(PaymentMethodConfigurationCreateParams::Giropay), google_pay: T.nilable(PaymentMethodConfigurationCreateParams::GooglePay), grabpay: T.nilable(PaymentMethodConfigurationCreateParams::Grabpay), ideal: T.nilable(PaymentMethodConfigurationCreateParams::Ideal), jcb: T.nilable(PaymentMethodConfigurationCreateParams::Jcb), kakao_pay: T.nilable(PaymentMethodConfigurationCreateParams::KakaoPay), klarna: T.nilable(PaymentMethodConfigurationCreateParams::Klarna), konbini: T.nilable(PaymentMethodConfigurationCreateParams::Konbini), kr_card: T.nilable(PaymentMethodConfigurationCreateParams::KrCard), link: T.nilable(PaymentMethodConfigurationCreateParams::Link), mb_way: T.nilable(PaymentMethodConfigurationCreateParams::MbWay), mobilepay: T.nilable(PaymentMethodConfigurationCreateParams::Mobilepay), multibanco: T.nilable(PaymentMethodConfigurationCreateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(PaymentMethodConfigurationCreateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodConfigurationCreateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodConfigurationCreateParams::Oxxo), p24: T.nilable(PaymentMethodConfigurationCreateParams::P24), parent: T.nilable(String), pay_by_bank: T.nilable(PaymentMethodConfigurationCreateParams::PayByBank), payco: T.nilable(PaymentMethodConfigurationCreateParams::Payco), paynow: T.nilable(PaymentMethodConfigurationCreateParams::Paynow), paypal: T.nilable(PaymentMethodConfigurationCreateParams::Paypal), pix: T.nilable(PaymentMethodConfigurationCreateParams::Pix), promptpay: T.nilable(PaymentMethodConfigurationCreateParams::Promptpay), revolut_pay: T.nilable(PaymentMethodConfigurationCreateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodConfigurationCreateParams::SamsungPay), satispay: T.nilable(PaymentMethodConfigurationCreateParams::Satispay), sepa_debit: T.nilable(PaymentMethodConfigurationCreateParams::SepaDebit), sofort: T.nilable(PaymentMethodConfigurationCreateParams::Sofort), swish: T.nilable(PaymentMethodConfigurationCreateParams::Swish), twint: T.nilable(PaymentMethodConfigurationCreateParams::Twint), us_bank_account: T.nilable(PaymentMethodConfigurationCreateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodConfigurationCreateParams::WechatPay), zip: T.nilable(PaymentMethodConfigurationCreateParams::Zip)).void } def initialize( acss_debit: nil, @@ -1627,6 +1685,7 @@ module Stripe card: nil, cartes_bancaires: nil, cashapp: nil, + crypto: nil, customer_balance: nil, eps: nil, expand: nil, @@ -1642,6 +1701,7 @@ module Stripe konbini: nil, kr_card: nil, link: nil, + mb_way: nil, mobilepay: nil, multibanco: nil, name: nil, diff --git a/rbi/stripe/params/payment_method_configuration_list_params.rbi b/rbi/stripe/params/payment_method_configuration_list_params.rbi index 7e7db21c..dade8ae0 100644 --- a/rbi/stripe/params/payment_method_configuration_list_params.rbi +++ b/rbi/stripe/params/payment_method_configuration_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PaymentMethodConfigurationListParams < Stripe::RequestParams + class PaymentMethodConfigurationListParams < ::Stripe::RequestParams # The Connect application to filter by. sig { returns(T.nilable(String)) } def application; end diff --git a/rbi/stripe/params/payment_method_configuration_retrieve_params.rbi b/rbi/stripe/params/payment_method_configuration_retrieve_params.rbi index 71a3aece..3403c1c1 100644 --- a/rbi/stripe/params/payment_method_configuration_retrieve_params.rbi +++ b/rbi/stripe/params/payment_method_configuration_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PaymentMethodConfigurationRetrieveParams < Stripe::RequestParams + class PaymentMethodConfigurationRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/payment_method_configuration_update_params.rbi b/rbi/stripe/params/payment_method_configuration_update_params.rbi index 5b7fc77a..c283df03 100644 --- a/rbi/stripe/params/payment_method_configuration_update_params.rbi +++ b/rbi/stripe/params/payment_method_configuration_update_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class PaymentMethodConfigurationUpdateParams < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class PaymentMethodConfigurationUpdateParams < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -28,8 +28,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Affirm < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -50,8 +50,8 @@ module Stripe } def initialize(display_preference: nil); end end - class AfterpayClearpay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class AfterpayClearpay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -74,8 +74,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Alipay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Alipay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -96,8 +96,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Alma < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Alma < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -118,8 +118,8 @@ module Stripe } def initialize(display_preference: nil); end end - class AmazonPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -142,8 +142,8 @@ module Stripe } def initialize(display_preference: nil); end end - class ApplePay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class ApplePay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -166,8 +166,8 @@ module Stripe } def initialize(display_preference: nil); end end - class ApplePayLater < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class ApplePayLater < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -190,8 +190,8 @@ module Stripe } def initialize(display_preference: nil); end end - class AuBecsDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class AuBecsDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -214,8 +214,8 @@ module Stripe } def initialize(display_preference: nil); end end - class BacsDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -238,8 +238,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Bancontact < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -262,8 +262,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Billie < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Billie < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -284,8 +284,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Blik < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Blik < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -306,8 +306,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Boleto < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Boleto < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -328,8 +328,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Card < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -350,8 +350,8 @@ module Stripe } def initialize(display_preference: nil); end end - class CartesBancaires < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -374,8 +374,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Cashapp < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -396,8 +396,30 @@ module Stripe } def initialize(display_preference: nil); end end - class CustomerBalance < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Crypto < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::Crypto::DisplayPreference)) } + def display_preference; end + sig { + params(_display_preference: T.nilable(PaymentMethodConfigurationUpdateParams::Crypto::DisplayPreference)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::Crypto::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(PaymentMethodConfigurationUpdateParams::Crypto::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end + class CustomerBalance < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -420,8 +442,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Eps < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Eps < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -442,8 +464,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Fpx < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -464,8 +486,8 @@ module Stripe } def initialize(display_preference: nil); end end - class FrMealVoucherConecs < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class FrMealVoucherConecs < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -488,8 +510,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Giropay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -510,8 +532,8 @@ module Stripe } def initialize(display_preference: nil); end end - class GooglePay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class GooglePay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -534,8 +556,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Grabpay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Grabpay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -556,8 +578,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Ideal < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Ideal < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -578,8 +600,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Jcb < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Jcb < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -600,8 +622,8 @@ module Stripe } def initialize(display_preference: nil); end end - class KakaoPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class KakaoPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -624,8 +646,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Klarna < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Klarna < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -646,8 +668,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Konbini < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -668,8 +690,8 @@ module Stripe } def initialize(display_preference: nil); end end - class KrCard < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class KrCard < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -690,8 +712,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Link < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Link < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -712,8 +734,30 @@ module Stripe } def initialize(display_preference: nil); end end - class Mobilepay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class MbWay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams + # The account's preference for whether or not to display this payment method. + sig { returns(T.nilable(String)) } + def preference; end + sig { params(_preference: T.nilable(String)).returns(T.nilable(String)) } + def preference=(_preference); end + sig { params(preference: T.nilable(String)).void } + def initialize(preference: nil); end + end + # Whether or not the payment method should be displayed. + sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::MbWay::DisplayPreference)) } + def display_preference; end + sig { + params(_display_preference: T.nilable(PaymentMethodConfigurationUpdateParams::MbWay::DisplayPreference)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::MbWay::DisplayPreference)) + } + def display_preference=(_display_preference); end + sig { + params(display_preference: T.nilable(PaymentMethodConfigurationUpdateParams::MbWay::DisplayPreference)).void + } + def initialize(display_preference: nil); end + end + class Mobilepay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -736,8 +780,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Multibanco < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Multibanco < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -760,8 +804,8 @@ module Stripe } def initialize(display_preference: nil); end end - class NaverPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class NaverPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -784,8 +828,8 @@ module Stripe } def initialize(display_preference: nil); end end - class NzBankAccount < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -808,8 +852,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Oxxo < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -830,8 +874,8 @@ module Stripe } def initialize(display_preference: nil); end end - class P24 < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class P24 < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -852,8 +896,8 @@ module Stripe } def initialize(display_preference: nil); end end - class PayByBank < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -876,8 +920,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Payco < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Payco < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -898,8 +942,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Paynow < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Paynow < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -920,8 +964,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Paypal < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -942,8 +986,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Pix < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Pix < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -964,8 +1008,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Promptpay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Promptpay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -988,8 +1032,8 @@ module Stripe } def initialize(display_preference: nil); end end - class RevolutPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -1012,8 +1056,8 @@ module Stripe } def initialize(display_preference: nil); end end - class SamsungPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class SamsungPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -1036,8 +1080,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Satispay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Satispay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -1060,8 +1104,8 @@ module Stripe } def initialize(display_preference: nil); end end - class SepaDebit < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -1084,8 +1128,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Sofort < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -1106,8 +1150,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Swish < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Swish < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -1128,8 +1172,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Twint < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Twint < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -1150,8 +1194,8 @@ module Stripe } def initialize(display_preference: nil); end end - class UsBankAccount < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -1174,8 +1218,8 @@ module Stripe } def initialize(display_preference: nil); end end - class WechatPay < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class WechatPay < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -1198,8 +1242,8 @@ module Stripe } def initialize(display_preference: nil); end end - class Zip < Stripe::RequestParams - class DisplayPreference < Stripe::RequestParams + class Zip < ::Stripe::RequestParams + class DisplayPreference < ::Stripe::RequestParams # The account's preference for whether or not to display this payment method. sig { returns(T.nilable(String)) } def preference; end @@ -1344,6 +1388,13 @@ module Stripe params(_cashapp: T.nilable(PaymentMethodConfigurationUpdateParams::Cashapp)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::Cashapp)) } def cashapp=(_cashapp); end + # [Stablecoin payments](https://stripe.com/docs/payments/stablecoin-payments) enable customers to pay in stablecoins like USDC from 100s of wallets including Phantom and Metamask. + sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::Crypto)) } + def crypto; end + sig { + params(_crypto: T.nilable(PaymentMethodConfigurationUpdateParams::Crypto)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::Crypto)) + } + def crypto=(_crypto); end # Uses a customer’s [cash balance](https://stripe.com/docs/payments/customer-balance) for the payment. The cash balance can be funded via a bank transfer. Check this [page](https://stripe.com/docs/payments/bank-transfers) for more details. sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::CustomerBalance)) } def customer_balance; end @@ -1447,6 +1498,13 @@ module Stripe params(_link: T.nilable(PaymentMethodConfigurationUpdateParams::Link)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::Link)) } def link=(_link); end + # MB WAY is the most popular wallet in Portugal. After entering their phone number in your checkout, customers approve the payment directly in their MB WAY app. Check this [page](https://stripe.com/docs/payments/mb-way) for more details. + sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::MbWay)) } + def mb_way; end + sig { + params(_mb_way: T.nilable(PaymentMethodConfigurationUpdateParams::MbWay)).returns(T.nilable(PaymentMethodConfigurationUpdateParams::MbWay)) + } + def mb_way=(_mb_way); end # MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details. sig { returns(T.nilable(PaymentMethodConfigurationUpdateParams::Mobilepay)) } def mobilepay; end @@ -1607,7 +1665,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(PaymentMethodConfigurationUpdateParams::AcssDebit), active: T.nilable(T::Boolean), affirm: T.nilable(PaymentMethodConfigurationUpdateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodConfigurationUpdateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodConfigurationUpdateParams::Alipay), alma: T.nilable(PaymentMethodConfigurationUpdateParams::Alma), amazon_pay: T.nilable(PaymentMethodConfigurationUpdateParams::AmazonPay), apple_pay: T.nilable(PaymentMethodConfigurationUpdateParams::ApplePay), apple_pay_later: T.nilable(PaymentMethodConfigurationUpdateParams::ApplePayLater), au_becs_debit: T.nilable(PaymentMethodConfigurationUpdateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodConfigurationUpdateParams::BacsDebit), bancontact: T.nilable(PaymentMethodConfigurationUpdateParams::Bancontact), billie: T.nilable(PaymentMethodConfigurationUpdateParams::Billie), blik: T.nilable(PaymentMethodConfigurationUpdateParams::Blik), boleto: T.nilable(PaymentMethodConfigurationUpdateParams::Boleto), card: T.nilable(PaymentMethodConfigurationUpdateParams::Card), cartes_bancaires: T.nilable(PaymentMethodConfigurationUpdateParams::CartesBancaires), cashapp: T.nilable(PaymentMethodConfigurationUpdateParams::Cashapp), customer_balance: T.nilable(PaymentMethodConfigurationUpdateParams::CustomerBalance), eps: T.nilable(PaymentMethodConfigurationUpdateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodConfigurationUpdateParams::Fpx), fr_meal_voucher_conecs: T.nilable(PaymentMethodConfigurationUpdateParams::FrMealVoucherConecs), giropay: T.nilable(PaymentMethodConfigurationUpdateParams::Giropay), google_pay: T.nilable(PaymentMethodConfigurationUpdateParams::GooglePay), grabpay: T.nilable(PaymentMethodConfigurationUpdateParams::Grabpay), ideal: T.nilable(PaymentMethodConfigurationUpdateParams::Ideal), jcb: T.nilable(PaymentMethodConfigurationUpdateParams::Jcb), kakao_pay: T.nilable(PaymentMethodConfigurationUpdateParams::KakaoPay), klarna: T.nilable(PaymentMethodConfigurationUpdateParams::Klarna), konbini: T.nilable(PaymentMethodConfigurationUpdateParams::Konbini), kr_card: T.nilable(PaymentMethodConfigurationUpdateParams::KrCard), link: T.nilable(PaymentMethodConfigurationUpdateParams::Link), mobilepay: T.nilable(PaymentMethodConfigurationUpdateParams::Mobilepay), multibanco: T.nilable(PaymentMethodConfigurationUpdateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(PaymentMethodConfigurationUpdateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodConfigurationUpdateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodConfigurationUpdateParams::Oxxo), p24: T.nilable(PaymentMethodConfigurationUpdateParams::P24), pay_by_bank: T.nilable(PaymentMethodConfigurationUpdateParams::PayByBank), payco: T.nilable(PaymentMethodConfigurationUpdateParams::Payco), paynow: T.nilable(PaymentMethodConfigurationUpdateParams::Paynow), paypal: T.nilable(PaymentMethodConfigurationUpdateParams::Paypal), pix: T.nilable(PaymentMethodConfigurationUpdateParams::Pix), promptpay: T.nilable(PaymentMethodConfigurationUpdateParams::Promptpay), revolut_pay: T.nilable(PaymentMethodConfigurationUpdateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodConfigurationUpdateParams::SamsungPay), satispay: T.nilable(PaymentMethodConfigurationUpdateParams::Satispay), sepa_debit: T.nilable(PaymentMethodConfigurationUpdateParams::SepaDebit), sofort: T.nilable(PaymentMethodConfigurationUpdateParams::Sofort), swish: T.nilable(PaymentMethodConfigurationUpdateParams::Swish), twint: T.nilable(PaymentMethodConfigurationUpdateParams::Twint), us_bank_account: T.nilable(PaymentMethodConfigurationUpdateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodConfigurationUpdateParams::WechatPay), zip: T.nilable(PaymentMethodConfigurationUpdateParams::Zip)).void + params(acss_debit: T.nilable(PaymentMethodConfigurationUpdateParams::AcssDebit), active: T.nilable(T::Boolean), affirm: T.nilable(PaymentMethodConfigurationUpdateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodConfigurationUpdateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodConfigurationUpdateParams::Alipay), alma: T.nilable(PaymentMethodConfigurationUpdateParams::Alma), amazon_pay: T.nilable(PaymentMethodConfigurationUpdateParams::AmazonPay), apple_pay: T.nilable(PaymentMethodConfigurationUpdateParams::ApplePay), apple_pay_later: T.nilable(PaymentMethodConfigurationUpdateParams::ApplePayLater), au_becs_debit: T.nilable(PaymentMethodConfigurationUpdateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodConfigurationUpdateParams::BacsDebit), bancontact: T.nilable(PaymentMethodConfigurationUpdateParams::Bancontact), billie: T.nilable(PaymentMethodConfigurationUpdateParams::Billie), blik: T.nilable(PaymentMethodConfigurationUpdateParams::Blik), boleto: T.nilable(PaymentMethodConfigurationUpdateParams::Boleto), card: T.nilable(PaymentMethodConfigurationUpdateParams::Card), cartes_bancaires: T.nilable(PaymentMethodConfigurationUpdateParams::CartesBancaires), cashapp: T.nilable(PaymentMethodConfigurationUpdateParams::Cashapp), crypto: T.nilable(PaymentMethodConfigurationUpdateParams::Crypto), customer_balance: T.nilable(PaymentMethodConfigurationUpdateParams::CustomerBalance), eps: T.nilable(PaymentMethodConfigurationUpdateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodConfigurationUpdateParams::Fpx), fr_meal_voucher_conecs: T.nilable(PaymentMethodConfigurationUpdateParams::FrMealVoucherConecs), giropay: T.nilable(PaymentMethodConfigurationUpdateParams::Giropay), google_pay: T.nilable(PaymentMethodConfigurationUpdateParams::GooglePay), grabpay: T.nilable(PaymentMethodConfigurationUpdateParams::Grabpay), ideal: T.nilable(PaymentMethodConfigurationUpdateParams::Ideal), jcb: T.nilable(PaymentMethodConfigurationUpdateParams::Jcb), kakao_pay: T.nilable(PaymentMethodConfigurationUpdateParams::KakaoPay), klarna: T.nilable(PaymentMethodConfigurationUpdateParams::Klarna), konbini: T.nilable(PaymentMethodConfigurationUpdateParams::Konbini), kr_card: T.nilable(PaymentMethodConfigurationUpdateParams::KrCard), link: T.nilable(PaymentMethodConfigurationUpdateParams::Link), mb_way: T.nilable(PaymentMethodConfigurationUpdateParams::MbWay), mobilepay: T.nilable(PaymentMethodConfigurationUpdateParams::Mobilepay), multibanco: T.nilable(PaymentMethodConfigurationUpdateParams::Multibanco), name: T.nilable(String), naver_pay: T.nilable(PaymentMethodConfigurationUpdateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodConfigurationUpdateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodConfigurationUpdateParams::Oxxo), p24: T.nilable(PaymentMethodConfigurationUpdateParams::P24), pay_by_bank: T.nilable(PaymentMethodConfigurationUpdateParams::PayByBank), payco: T.nilable(PaymentMethodConfigurationUpdateParams::Payco), paynow: T.nilable(PaymentMethodConfigurationUpdateParams::Paynow), paypal: T.nilable(PaymentMethodConfigurationUpdateParams::Paypal), pix: T.nilable(PaymentMethodConfigurationUpdateParams::Pix), promptpay: T.nilable(PaymentMethodConfigurationUpdateParams::Promptpay), revolut_pay: T.nilable(PaymentMethodConfigurationUpdateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodConfigurationUpdateParams::SamsungPay), satispay: T.nilable(PaymentMethodConfigurationUpdateParams::Satispay), sepa_debit: T.nilable(PaymentMethodConfigurationUpdateParams::SepaDebit), sofort: T.nilable(PaymentMethodConfigurationUpdateParams::Sofort), swish: T.nilable(PaymentMethodConfigurationUpdateParams::Swish), twint: T.nilable(PaymentMethodConfigurationUpdateParams::Twint), us_bank_account: T.nilable(PaymentMethodConfigurationUpdateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodConfigurationUpdateParams::WechatPay), zip: T.nilable(PaymentMethodConfigurationUpdateParams::Zip)).void } def initialize( acss_debit: nil, @@ -1628,6 +1686,7 @@ module Stripe card: nil, cartes_bancaires: nil, cashapp: nil, + crypto: nil, customer_balance: nil, eps: nil, expand: nil, @@ -1643,6 +1702,7 @@ module Stripe konbini: nil, kr_card: nil, link: nil, + mb_way: nil, mobilepay: nil, multibanco: nil, name: nil, diff --git a/rbi/stripe/params/payment_method_create_params.rbi b/rbi/stripe/params/payment_method_create_params.rbi index 43564354..c83c2ae6 100644 --- a/rbi/stripe/params/payment_method_create_params.rbi +++ b/rbi/stripe/params/payment_method_create_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class PaymentMethodCreateParams < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class PaymentMethodCreateParams < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. sig { returns(String) } def account_number; end @@ -25,12 +25,12 @@ module Stripe } def initialize(account_number: nil, institution_number: nil, transit_number: nil); end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. sig { returns(String) } def account_number; end @@ -44,7 +44,7 @@ module Stripe sig { params(account_number: String, bsb_number: String).void } def initialize(account_number: nil, bsb_number: nil); end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. sig { returns(T.nilable(String)) } def account_number; end @@ -58,10 +58,10 @@ module Stripe sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void } def initialize(account_number: nil, sort_code: nil); end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -136,8 +136,8 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end - class Blik < Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Blik < ::Stripe::RequestParams; end + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) sig { returns(String) } def tax_id; end @@ -146,8 +146,8 @@ module Stripe sig { params(tax_id: String).void } def initialize(tax_id: nil); end end - class Card < Stripe::RequestParams - class Networks < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Networks < ::Stripe::RequestParams # The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card. sig { returns(T.nilable(String)) } def preferred; end @@ -200,10 +200,19 @@ module Stripe token: nil ); end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class Custom < ::Stripe::RequestParams + # ID of the Dashboard-only CustomPaymentMethodType. This field is used by Stripe products' internal code to support CPMs. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(type: String).void } + def initialize(type: nil); end + end + class CustomerBalance < ::Stripe::RequestParams; end + class Eps < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -212,7 +221,7 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction sig { returns(T.nilable(String)) } def account_holder_type; end @@ -226,9 +235,9 @@ module Stripe sig { params(account_holder_type: T.nilable(String), bank: String).void } def initialize(account_holder_type: nil, bank: nil); end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. sig { returns(T.nilable(String)) } def bank; end @@ -237,10 +246,10 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -269,13 +278,13 @@ module Stripe sig { params(dob: T.nilable(PaymentMethodCreateParams::Klarna::Dob)).void } def initialize(dob: nil); end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. sig { returns(T.nilable(String)) } def funding; end @@ -284,7 +293,7 @@ module Stripe sig { params(funding: T.nilable(String)).void } def initialize(funding: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -327,8 +336,8 @@ module Stripe suffix: nil ); end end - class Oxxo < Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams; end + class P24 < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -337,13 +346,13 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -352,10 +361,10 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } def iban; end @@ -364,7 +373,7 @@ module Stripe sig { params(iban: String).void } def initialize(iban: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. sig { returns(String) } def country; end @@ -373,9 +382,9 @@ module Stripe sig { params(country: String).void } def initialize(country: nil); end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -412,8 +421,8 @@ module Stripe routing_number: nil ); end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. sig { returns(T.nilable(PaymentMethodCreateParams::AcssDebit)) } def acss_debit; end @@ -531,6 +540,13 @@ module Stripe params(_crypto: T.nilable(PaymentMethodCreateParams::Crypto)).returns(T.nilable(PaymentMethodCreateParams::Crypto)) } def crypto=(_crypto); end + # If this is a `custom` PaymentMethod, this hash contains details about the Custom payment method. + sig { returns(T.nilable(PaymentMethodCreateParams::Custom)) } + def custom; end + sig { + params(_custom: T.nilable(PaymentMethodCreateParams::Custom)).returns(T.nilable(PaymentMethodCreateParams::Custom)) + } + def custom=(_custom); end # The `Customer` to whom the original PaymentMethod is attached. sig { returns(T.nilable(String)) } def customer; end @@ -811,7 +827,7 @@ module Stripe } def zip=(_zip); end sig { - params(acss_debit: T.nilable(PaymentMethodCreateParams::AcssDebit), affirm: T.nilable(PaymentMethodCreateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodCreateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodCreateParams::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(PaymentMethodCreateParams::Alma), amazon_pay: T.nilable(PaymentMethodCreateParams::AmazonPay), au_becs_debit: T.nilable(PaymentMethodCreateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodCreateParams::BacsDebit), bancontact: T.nilable(PaymentMethodCreateParams::Bancontact), billie: T.nilable(PaymentMethodCreateParams::Billie), billing_details: T.nilable(PaymentMethodCreateParams::BillingDetails), blik: T.nilable(PaymentMethodCreateParams::Blik), boleto: T.nilable(PaymentMethodCreateParams::Boleto), card: T.nilable(PaymentMethodCreateParams::Card), cashapp: T.nilable(PaymentMethodCreateParams::Cashapp), crypto: T.nilable(PaymentMethodCreateParams::Crypto), customer: T.nilable(String), customer_balance: T.nilable(PaymentMethodCreateParams::CustomerBalance), eps: T.nilable(PaymentMethodCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodCreateParams::Fpx), giropay: T.nilable(PaymentMethodCreateParams::Giropay), grabpay: T.nilable(PaymentMethodCreateParams::Grabpay), ideal: T.nilable(PaymentMethodCreateParams::Ideal), interac_present: T.nilable(PaymentMethodCreateParams::InteracPresent), kakao_pay: T.nilable(PaymentMethodCreateParams::KakaoPay), klarna: T.nilable(PaymentMethodCreateParams::Klarna), konbini: T.nilable(PaymentMethodCreateParams::Konbini), kr_card: T.nilable(PaymentMethodCreateParams::KrCard), link: T.nilable(PaymentMethodCreateParams::Link), mb_way: T.nilable(PaymentMethodCreateParams::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(PaymentMethodCreateParams::Mobilepay), multibanco: T.nilable(PaymentMethodCreateParams::Multibanco), naver_pay: T.nilable(PaymentMethodCreateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodCreateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodCreateParams::Oxxo), p24: T.nilable(PaymentMethodCreateParams::P24), pay_by_bank: T.nilable(PaymentMethodCreateParams::PayByBank), payco: T.nilable(PaymentMethodCreateParams::Payco), payment_method: T.nilable(String), paynow: T.nilable(PaymentMethodCreateParams::Paynow), paypal: T.nilable(PaymentMethodCreateParams::Paypal), pix: T.nilable(PaymentMethodCreateParams::Pix), promptpay: T.nilable(PaymentMethodCreateParams::Promptpay), radar_options: T.nilable(PaymentMethodCreateParams::RadarOptions), revolut_pay: T.nilable(PaymentMethodCreateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodCreateParams::SamsungPay), satispay: T.nilable(PaymentMethodCreateParams::Satispay), sepa_debit: T.nilable(PaymentMethodCreateParams::SepaDebit), sofort: T.nilable(PaymentMethodCreateParams::Sofort), swish: T.nilable(PaymentMethodCreateParams::Swish), twint: T.nilable(PaymentMethodCreateParams::Twint), type: T.nilable(String), us_bank_account: T.nilable(PaymentMethodCreateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodCreateParams::WechatPay), zip: T.nilable(PaymentMethodCreateParams::Zip)).void + params(acss_debit: T.nilable(PaymentMethodCreateParams::AcssDebit), affirm: T.nilable(PaymentMethodCreateParams::Affirm), afterpay_clearpay: T.nilable(PaymentMethodCreateParams::AfterpayClearpay), alipay: T.nilable(PaymentMethodCreateParams::Alipay), allow_redisplay: T.nilable(String), alma: T.nilable(PaymentMethodCreateParams::Alma), amazon_pay: T.nilable(PaymentMethodCreateParams::AmazonPay), au_becs_debit: T.nilable(PaymentMethodCreateParams::AuBecsDebit), bacs_debit: T.nilable(PaymentMethodCreateParams::BacsDebit), bancontact: T.nilable(PaymentMethodCreateParams::Bancontact), billie: T.nilable(PaymentMethodCreateParams::Billie), billing_details: T.nilable(PaymentMethodCreateParams::BillingDetails), blik: T.nilable(PaymentMethodCreateParams::Blik), boleto: T.nilable(PaymentMethodCreateParams::Boleto), card: T.nilable(PaymentMethodCreateParams::Card), cashapp: T.nilable(PaymentMethodCreateParams::Cashapp), crypto: T.nilable(PaymentMethodCreateParams::Crypto), custom: T.nilable(PaymentMethodCreateParams::Custom), customer: T.nilable(String), customer_balance: T.nilable(PaymentMethodCreateParams::CustomerBalance), eps: T.nilable(PaymentMethodCreateParams::Eps), expand: T.nilable(T::Array[String]), fpx: T.nilable(PaymentMethodCreateParams::Fpx), giropay: T.nilable(PaymentMethodCreateParams::Giropay), grabpay: T.nilable(PaymentMethodCreateParams::Grabpay), ideal: T.nilable(PaymentMethodCreateParams::Ideal), interac_present: T.nilable(PaymentMethodCreateParams::InteracPresent), kakao_pay: T.nilable(PaymentMethodCreateParams::KakaoPay), klarna: T.nilable(PaymentMethodCreateParams::Klarna), konbini: T.nilable(PaymentMethodCreateParams::Konbini), kr_card: T.nilable(PaymentMethodCreateParams::KrCard), link: T.nilable(PaymentMethodCreateParams::Link), mb_way: T.nilable(PaymentMethodCreateParams::MbWay), metadata: T.nilable(T::Hash[String, String]), mobilepay: T.nilable(PaymentMethodCreateParams::Mobilepay), multibanco: T.nilable(PaymentMethodCreateParams::Multibanco), naver_pay: T.nilable(PaymentMethodCreateParams::NaverPay), nz_bank_account: T.nilable(PaymentMethodCreateParams::NzBankAccount), oxxo: T.nilable(PaymentMethodCreateParams::Oxxo), p24: T.nilable(PaymentMethodCreateParams::P24), pay_by_bank: T.nilable(PaymentMethodCreateParams::PayByBank), payco: T.nilable(PaymentMethodCreateParams::Payco), payment_method: T.nilable(String), paynow: T.nilable(PaymentMethodCreateParams::Paynow), paypal: T.nilable(PaymentMethodCreateParams::Paypal), pix: T.nilable(PaymentMethodCreateParams::Pix), promptpay: T.nilable(PaymentMethodCreateParams::Promptpay), radar_options: T.nilable(PaymentMethodCreateParams::RadarOptions), revolut_pay: T.nilable(PaymentMethodCreateParams::RevolutPay), samsung_pay: T.nilable(PaymentMethodCreateParams::SamsungPay), satispay: T.nilable(PaymentMethodCreateParams::Satispay), sepa_debit: T.nilable(PaymentMethodCreateParams::SepaDebit), sofort: T.nilable(PaymentMethodCreateParams::Sofort), swish: T.nilable(PaymentMethodCreateParams::Swish), twint: T.nilable(PaymentMethodCreateParams::Twint), type: T.nilable(String), us_bank_account: T.nilable(PaymentMethodCreateParams::UsBankAccount), wechat_pay: T.nilable(PaymentMethodCreateParams::WechatPay), zip: T.nilable(PaymentMethodCreateParams::Zip)).void } def initialize( acss_debit: nil, @@ -831,6 +847,7 @@ module Stripe card: nil, cashapp: nil, crypto: nil, + custom: nil, customer: nil, customer_balance: nil, eps: nil, diff --git a/rbi/stripe/params/payment_method_detach_params.rbi b/rbi/stripe/params/payment_method_detach_params.rbi index 5403ddfa..79d32add 100644 --- a/rbi/stripe/params/payment_method_detach_params.rbi +++ b/rbi/stripe/params/payment_method_detach_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PaymentMethodDetachParams < Stripe::RequestParams + class PaymentMethodDetachParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/payment_method_domain_create_params.rbi b/rbi/stripe/params/payment_method_domain_create_params.rbi index 73dd764d..000fafbf 100644 --- a/rbi/stripe/params/payment_method_domain_create_params.rbi +++ b/rbi/stripe/params/payment_method_domain_create_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PaymentMethodDomainCreateParams < Stripe::RequestParams + class PaymentMethodDomainCreateParams < ::Stripe::RequestParams # The domain name that this payment method domain object represents. sig { returns(String) } def domain_name; end diff --git a/rbi/stripe/params/payment_method_domain_list_params.rbi b/rbi/stripe/params/payment_method_domain_list_params.rbi index 5c0ac1ec..fad778e9 100644 --- a/rbi/stripe/params/payment_method_domain_list_params.rbi +++ b/rbi/stripe/params/payment_method_domain_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PaymentMethodDomainListParams < Stripe::RequestParams + class PaymentMethodDomainListParams < ::Stripe::RequestParams # The domain name that this payment method domain object represents. sig { returns(T.nilable(String)) } def domain_name; end diff --git a/rbi/stripe/params/payment_method_domain_retrieve_params.rbi b/rbi/stripe/params/payment_method_domain_retrieve_params.rbi index 6b88e9ce..30bd6af8 100644 --- a/rbi/stripe/params/payment_method_domain_retrieve_params.rbi +++ b/rbi/stripe/params/payment_method_domain_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PaymentMethodDomainRetrieveParams < Stripe::RequestParams + class PaymentMethodDomainRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/payment_method_domain_update_params.rbi b/rbi/stripe/params/payment_method_domain_update_params.rbi index a507af08..b3c339a9 100644 --- a/rbi/stripe/params/payment_method_domain_update_params.rbi +++ b/rbi/stripe/params/payment_method_domain_update_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PaymentMethodDomainUpdateParams < Stripe::RequestParams + class PaymentMethodDomainUpdateParams < ::Stripe::RequestParams # Whether this payment method domain is enabled. If the domain is not enabled, payment methods that require a payment method domain will not appear in Elements or Embedded Checkout. sig { returns(T.nilable(T::Boolean)) } def enabled; end diff --git a/rbi/stripe/params/payment_method_domain_validate_params.rbi b/rbi/stripe/params/payment_method_domain_validate_params.rbi index b9a8097f..1ac231aa 100644 --- a/rbi/stripe/params/payment_method_domain_validate_params.rbi +++ b/rbi/stripe/params/payment_method_domain_validate_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PaymentMethodDomainValidateParams < Stripe::RequestParams + class PaymentMethodDomainValidateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/payment_method_list_params.rbi b/rbi/stripe/params/payment_method_list_params.rbi index 2d46a61b..369d5431 100644 --- a/rbi/stripe/params/payment_method_list_params.rbi +++ b/rbi/stripe/params/payment_method_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PaymentMethodListParams < Stripe::RequestParams + class PaymentMethodListParams < ::Stripe::RequestParams # The ID of the customer whose PaymentMethods will be retrieved. sig { returns(T.nilable(String)) } def customer; end @@ -29,7 +29,7 @@ module Stripe def starting_after; end sig { params(_starting_after: T.nilable(String)).returns(T.nilable(String)) } def starting_after=(_starting_after); end - # An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request. + # Filters the list by the object `type` field. Unfiltered, the list returns all payment method types except `custom`. If your integration expects only one type of payment method in the response, specify that type value in the request to reduce your payload. sig { returns(T.nilable(String)) } def type; end sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/payment_method_retrieve_params.rbi b/rbi/stripe/params/payment_method_retrieve_params.rbi index f090e20d..963ee6ac 100644 --- a/rbi/stripe/params/payment_method_retrieve_params.rbi +++ b/rbi/stripe/params/payment_method_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PaymentMethodRetrieveParams < Stripe::RequestParams + class PaymentMethodRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/payment_method_update_params.rbi b/rbi/stripe/params/payment_method_update_params.rbi index b2769353..b2e41336 100644 --- a/rbi/stripe/params/payment_method_update_params.rbi +++ b/rbi/stripe/params/payment_method_update_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class PaymentMethodUpdateParams < Stripe::RequestParams - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class PaymentMethodUpdateParams < ::Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -80,8 +80,8 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end - class Card < Stripe::RequestParams - class Networks < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Networks < ::Stripe::RequestParams # The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card. sig { returns(T.nilable(T.any(String, String))) } def preferred; end @@ -114,7 +114,7 @@ module Stripe } def initialize(exp_month: nil, exp_year: nil, networks: nil); end end - class UsBankAccount < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # Bank account holder type. sig { returns(T.nilable(String)) } def account_holder_type; end diff --git a/rbi/stripe/params/payment_record_report_payment_attempt_canceled_params.rbi b/rbi/stripe/params/payment_record_report_payment_attempt_canceled_params.rbi new file mode 100644 index 00000000..9a3c88d7 --- /dev/null +++ b/rbi/stripe/params/payment_record_report_payment_attempt_canceled_params.rbi @@ -0,0 +1,29 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + class PaymentRecordReportPaymentAttemptCanceledParams < ::Stripe::RequestParams + # When the reported payment was canceled. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def canceled_at; end + sig { params(_canceled_at: Integer).returns(Integer) } + def canceled_at=(_canceled_at); end + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # Attribute for param field metadata + sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + sig { + params(canceled_at: Integer, expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void + } + def initialize(canceled_at: nil, expand: nil, metadata: nil); end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/payment_record_report_payment_attempt_failed_params.rbi b/rbi/stripe/params/payment_record_report_payment_attempt_failed_params.rbi new file mode 100644 index 00000000..41f50370 --- /dev/null +++ b/rbi/stripe/params/payment_record_report_payment_attempt_failed_params.rbi @@ -0,0 +1,29 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + class PaymentRecordReportPaymentAttemptFailedParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # When the reported payment failed. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def failed_at; end + sig { params(_failed_at: Integer).returns(Integer) } + def failed_at=(_failed_at); end + # Attribute for param field metadata + sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + sig { + params(expand: T.nilable(T::Array[String]), failed_at: Integer, metadata: T.nilable(T.any(String, T::Hash[String, String]))).void + } + def initialize(expand: nil, failed_at: nil, metadata: nil); end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rbi b/rbi/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rbi new file mode 100644 index 00000000..45974ed1 --- /dev/null +++ b/rbi/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rbi @@ -0,0 +1,29 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + class PaymentRecordReportPaymentAttemptGuaranteedParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # When the reported payment was guaranteed. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def guaranteed_at; end + sig { params(_guaranteed_at: Integer).returns(Integer) } + def guaranteed_at=(_guaranteed_at); end + # Attribute for param field metadata + sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + sig { + params(expand: T.nilable(T::Array[String]), guaranteed_at: Integer, metadata: T.nilable(T.any(String, T::Hash[String, String]))).void + } + def initialize(expand: nil, guaranteed_at: nil, metadata: nil); end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/payment_record_report_payment_attempt_informational_params.rbi b/rbi/stripe/params/payment_record_report_payment_attempt_informational_params.rbi new file mode 100644 index 00000000..ec49c547 --- /dev/null +++ b/rbi/stripe/params/payment_record_report_payment_attempt_informational_params.rbi @@ -0,0 +1,147 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + class PaymentRecordReportPaymentAttemptInformationalParams < ::Stripe::RequestParams + class CustomerDetails < ::Stripe::RequestParams + # The customer who made the payment. + sig { returns(T.nilable(String)) } + def customer; end + sig { params(_customer: T.nilable(String)).returns(T.nilable(String)) } + def customer=(_customer); end + # The customer's phone number. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # The customer's name. + sig { returns(T.nilable(String)) } + def name; end + sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } + def name=(_name); end + # The customer's phone number. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(customer: T.nilable(String), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void + } + def initialize(customer: nil, email: nil, name: nil, phone: nil); end + end + class ShippingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ); end + end + # The physical shipping address. + sig { + returns(T.nilable(PaymentRecordReportPaymentAttemptInformationalParams::ShippingDetails::Address)) + } + def address; end + sig { + params(_address: T.nilable(PaymentRecordReportPaymentAttemptInformationalParams::ShippingDetails::Address)).returns(T.nilable(PaymentRecordReportPaymentAttemptInformationalParams::ShippingDetails::Address)) + } + def address=(_address); end + # The shipping recipient's name. + sig { returns(T.nilable(String)) } + def name; end + sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } + def name=(_name); end + # The shipping recipient's phone number. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(address: T.nilable(PaymentRecordReportPaymentAttemptInformationalParams::ShippingDetails::Address), name: T.nilable(String), phone: T.nilable(String)).void + } + def initialize(address: nil, name: nil, phone: nil); end + end + # Customer information for this payment. + sig { + returns(T.nilable(PaymentRecordReportPaymentAttemptInformationalParams::CustomerDetails)) + } + def customer_details; end + sig { + params(_customer_details: T.nilable(PaymentRecordReportPaymentAttemptInformationalParams::CustomerDetails)).returns(T.nilable(PaymentRecordReportPaymentAttemptInformationalParams::CustomerDetails)) + } + def customer_details=(_customer_details); end + # An arbitrary string attached to the object. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + # Shipping information for this payment. + sig { + returns(T.nilable(T.any(String, PaymentRecordReportPaymentAttemptInformationalParams::ShippingDetails))) + } + def shipping_details; end + sig { + params(_shipping_details: T.nilable(T.any(String, PaymentRecordReportPaymentAttemptInformationalParams::ShippingDetails))).returns(T.nilable(T.any(String, PaymentRecordReportPaymentAttemptInformationalParams::ShippingDetails))) + } + def shipping_details=(_shipping_details); end + sig { + params(customer_details: T.nilable(PaymentRecordReportPaymentAttemptInformationalParams::CustomerDetails), description: T.nilable(String), expand: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), shipping_details: T.nilable(T.any(String, PaymentRecordReportPaymentAttemptInformationalParams::ShippingDetails))).void + } + def initialize( + customer_details: nil, + description: nil, + expand: nil, + metadata: nil, + shipping_details: nil + ); end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/payment_record_report_payment_attempt_params.rbi b/rbi/stripe/params/payment_record_report_payment_attempt_params.rbi new file mode 100644 index 00000000..1ba8b49b --- /dev/null +++ b/rbi/stripe/params/payment_record_report_payment_attempt_params.rbi @@ -0,0 +1,282 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + class PaymentRecordReportPaymentAttemptParams < ::Stripe::RequestParams + class Failed < ::Stripe::RequestParams + # When the reported payment failed. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def failed_at; end + sig { params(_failed_at: Integer).returns(Integer) } + def failed_at=(_failed_at); end + sig { params(failed_at: Integer).void } + def initialize(failed_at: nil); end + end + class Guaranteed < ::Stripe::RequestParams + # When the reported payment was guaranteed. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def guaranteed_at; end + sig { params(_guaranteed_at: Integer).returns(Integer) } + def guaranteed_at=(_guaranteed_at); end + sig { params(guaranteed_at: Integer).void } + def initialize(guaranteed_at: nil); end + end + class PaymentMethodDetails < ::Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ); end + end + # The billing address associated with the method of payment. + sig { + returns(T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::BillingDetails::Address)) + } + def address; end + sig { + params(_address: T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::BillingDetails::Address)).returns(T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::BillingDetails::Address)) + } + def address=(_address); end + # The billing email associated with the method of payment. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # The billing name associated with the method of payment. + sig { returns(T.nilable(String)) } + def name; end + sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } + def name=(_name); end + # The billing phone number associated with the method of payment. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(address: T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::BillingDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void + } + def initialize(address: nil, email: nil, name: nil, phone: nil); end + end + class Custom < ::Stripe::RequestParams + # Display name for the custom (user-defined) payment method type used to make this payment. + sig { returns(T.nilable(String)) } + def display_name; end + sig { params(_display_name: T.nilable(String)).returns(T.nilable(String)) } + def display_name=(_display_name); end + # The custom payment method type associated with this payment. + sig { returns(T.nilable(String)) } + def type; end + sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } + def type=(_type); end + sig { params(display_name: T.nilable(String), type: T.nilable(String)).void } + def initialize(display_name: nil, type: nil); end + end + # The billing details associated with the method of payment. + sig { + returns(T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::BillingDetails)) + } + def billing_details; end + sig { + params(_billing_details: T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::BillingDetails)).returns(T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::BillingDetails)) + } + def billing_details=(_billing_details); end + # Information about the custom (user-defined) payment method used to make this payment. + sig { + returns(T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::Custom)) + } + def custom; end + sig { + params(_custom: T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::Custom)).returns(T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::Custom)) + } + def custom=(_custom); end + # ID of the Stripe Payment Method used to make this payment. + sig { returns(T.nilable(String)) } + def payment_method; end + sig { params(_payment_method: T.nilable(String)).returns(T.nilable(String)) } + def payment_method=(_payment_method); end + # The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type. + sig { returns(T.nilable(String)) } + def type; end + sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } + def type=(_type); end + sig { + params(billing_details: T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::BillingDetails), custom: T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails::Custom), payment_method: T.nilable(String), type: T.nilable(String)).void + } + def initialize(billing_details: nil, custom: nil, payment_method: nil, type: nil); end + end + class ShippingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ); end + end + # The physical shipping address. + sig { returns(T.nilable(PaymentRecordReportPaymentAttemptParams::ShippingDetails::Address)) } + def address; end + sig { + params(_address: T.nilable(PaymentRecordReportPaymentAttemptParams::ShippingDetails::Address)).returns(T.nilable(PaymentRecordReportPaymentAttemptParams::ShippingDetails::Address)) + } + def address=(_address); end + # The shipping recipient's name. + sig { returns(T.nilable(String)) } + def name; end + sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } + def name=(_name); end + # The shipping recipient's phone number. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(address: T.nilable(PaymentRecordReportPaymentAttemptParams::ShippingDetails::Address), name: T.nilable(String), phone: T.nilable(String)).void + } + def initialize(address: nil, name: nil, phone: nil); end + end + # An arbitrary string attached to the object. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # Information about the payment attempt failure. + sig { returns(T.nilable(PaymentRecordReportPaymentAttemptParams::Failed)) } + def failed; end + sig { + params(_failed: T.nilable(PaymentRecordReportPaymentAttemptParams::Failed)).returns(T.nilable(PaymentRecordReportPaymentAttemptParams::Failed)) + } + def failed=(_failed); end + # Information about the payment attempt guarantee. + sig { returns(T.nilable(PaymentRecordReportPaymentAttemptParams::Guaranteed)) } + def guaranteed; end + sig { + params(_guaranteed: T.nilable(PaymentRecordReportPaymentAttemptParams::Guaranteed)).returns(T.nilable(PaymentRecordReportPaymentAttemptParams::Guaranteed)) + } + def guaranteed=(_guaranteed); end + # When the reported payment was initiated. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def initiated_at; end + sig { params(_initiated_at: Integer).returns(Integer) } + def initiated_at=(_initiated_at); end + # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + # The outcome of the reported payment. + sig { returns(T.nilable(String)) } + def outcome; end + sig { params(_outcome: T.nilable(String)).returns(T.nilable(String)) } + def outcome=(_outcome); end + # Information about the Payment Method debited for this payment. + sig { returns(T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails)) } + def payment_method_details; end + sig { + params(_payment_method_details: T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails)).returns(T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails)) + } + def payment_method_details=(_payment_method_details); end + # Shipping information for this payment. + sig { returns(T.nilable(PaymentRecordReportPaymentAttemptParams::ShippingDetails)) } + def shipping_details; end + sig { + params(_shipping_details: T.nilable(PaymentRecordReportPaymentAttemptParams::ShippingDetails)).returns(T.nilable(PaymentRecordReportPaymentAttemptParams::ShippingDetails)) + } + def shipping_details=(_shipping_details); end + sig { + params(description: T.nilable(String), expand: T.nilable(T::Array[String]), failed: T.nilable(PaymentRecordReportPaymentAttemptParams::Failed), guaranteed: T.nilable(PaymentRecordReportPaymentAttemptParams::Guaranteed), initiated_at: Integer, metadata: T.nilable(T.any(String, T::Hash[String, String])), outcome: T.nilable(String), payment_method_details: T.nilable(PaymentRecordReportPaymentAttemptParams::PaymentMethodDetails), shipping_details: T.nilable(PaymentRecordReportPaymentAttemptParams::ShippingDetails)).void + } + def initialize( + description: nil, + expand: nil, + failed: nil, + guaranteed: nil, + initiated_at: nil, + metadata: nil, + outcome: nil, + payment_method_details: nil, + shipping_details: nil + ); end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/payment_record_report_payment_params.rbi b/rbi/stripe/params/payment_record_report_payment_params.rbi new file mode 100644 index 00000000..00dc55cc --- /dev/null +++ b/rbi/stripe/params/payment_record_report_payment_params.rbi @@ -0,0 +1,377 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + class PaymentRecordReportPaymentParams < ::Stripe::RequestParams + class AmountRequested < ::Stripe::RequestParams + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + sig { params(_currency: String).returns(String) } + def currency=(_currency); end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + sig { params(_value: Integer).returns(Integer) } + def value=(_value); end + sig { params(currency: String, value: Integer).void } + def initialize(currency: nil, value: nil); end + end + class CustomerDetails < ::Stripe::RequestParams + # The customer who made the payment. + sig { returns(T.nilable(String)) } + def customer; end + sig { params(_customer: T.nilable(String)).returns(T.nilable(String)) } + def customer=(_customer); end + # The customer's phone number. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # The customer's name. + sig { returns(T.nilable(String)) } + def name; end + sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } + def name=(_name); end + # The customer's phone number. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(customer: T.nilable(String), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void + } + def initialize(customer: nil, email: nil, name: nil, phone: nil); end + end + class Failed < ::Stripe::RequestParams + # When the reported payment failed. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def failed_at; end + sig { params(_failed_at: Integer).returns(Integer) } + def failed_at=(_failed_at); end + sig { params(failed_at: Integer).void } + def initialize(failed_at: nil); end + end + class Guaranteed < ::Stripe::RequestParams + # When the reported payment was guaranteed. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def guaranteed_at; end + sig { params(_guaranteed_at: Integer).returns(Integer) } + def guaranteed_at=(_guaranteed_at); end + sig { params(guaranteed_at: Integer).void } + def initialize(guaranteed_at: nil); end + end + class PaymentMethodDetails < ::Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ); end + end + # The billing address associated with the method of payment. + sig { + returns(T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::BillingDetails::Address)) + } + def address; end + sig { + params(_address: T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::BillingDetails::Address)).returns(T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::BillingDetails::Address)) + } + def address=(_address); end + # The billing email associated with the method of payment. + sig { returns(T.nilable(String)) } + def email; end + sig { params(_email: T.nilable(String)).returns(T.nilable(String)) } + def email=(_email); end + # The billing name associated with the method of payment. + sig { returns(T.nilable(String)) } + def name; end + sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } + def name=(_name); end + # The billing phone number associated with the method of payment. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(address: T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::BillingDetails::Address), email: T.nilable(String), name: T.nilable(String), phone: T.nilable(String)).void + } + def initialize(address: nil, email: nil, name: nil, phone: nil); end + end + class Custom < ::Stripe::RequestParams + # Display name for the custom (user-defined) payment method type used to make this payment. + sig { returns(T.nilable(String)) } + def display_name; end + sig { params(_display_name: T.nilable(String)).returns(T.nilable(String)) } + def display_name=(_display_name); end + # The custom payment method type associated with this payment. + sig { returns(T.nilable(String)) } + def type; end + sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } + def type=(_type); end + sig { params(display_name: T.nilable(String), type: T.nilable(String)).void } + def initialize(display_name: nil, type: nil); end + end + # The billing details associated with the method of payment. + sig { + returns(T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::BillingDetails)) + } + def billing_details; end + sig { + params(_billing_details: T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::BillingDetails)).returns(T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::BillingDetails)) + } + def billing_details=(_billing_details); end + # Information about the custom (user-defined) payment method used to make this payment. + sig { returns(T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::Custom)) } + def custom; end + sig { + params(_custom: T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::Custom)).returns(T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::Custom)) + } + def custom=(_custom); end + # ID of the Stripe Payment Method used to make this payment. + sig { returns(T.nilable(String)) } + def payment_method; end + sig { params(_payment_method: T.nilable(String)).returns(T.nilable(String)) } + def payment_method=(_payment_method); end + # The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type. + sig { returns(T.nilable(String)) } + def type; end + sig { params(_type: T.nilable(String)).returns(T.nilable(String)) } + def type=(_type); end + sig { + params(billing_details: T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::BillingDetails), custom: T.nilable(PaymentRecordReportPaymentParams::PaymentMethodDetails::Custom), payment_method: T.nilable(String), type: T.nilable(String)).void + } + def initialize(billing_details: nil, custom: nil, payment_method: nil, type: nil); end + end + class ProcessorDetails < ::Stripe::RequestParams + class Custom < ::Stripe::RequestParams + # An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID. + sig { returns(String) } + def payment_reference; end + sig { params(_payment_reference: String).returns(String) } + def payment_reference=(_payment_reference); end + sig { params(payment_reference: String).void } + def initialize(payment_reference: nil); end + end + # Information about the custom processor used to make this payment. + sig { returns(T.nilable(PaymentRecordReportPaymentParams::ProcessorDetails::Custom)) } + def custom; end + sig { + params(_custom: T.nilable(PaymentRecordReportPaymentParams::ProcessorDetails::Custom)).returns(T.nilable(PaymentRecordReportPaymentParams::ProcessorDetails::Custom)) + } + def custom=(_custom); end + # The type of the processor details. An additional hash is included on processor_details with a name matching this value. It contains additional information specific to the processor. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(custom: T.nilable(PaymentRecordReportPaymentParams::ProcessorDetails::Custom), type: String).void + } + def initialize(custom: nil, type: nil); end + end + class ShippingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + sig { params(_city: T.nilable(String)).returns(T.nilable(String)) } + def city=(_city); end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + sig { params(_country: T.nilable(String)).returns(T.nilable(String)) } + def country=(_country); end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(T.nilable(String)) } + def line1; end + sig { params(_line1: T.nilable(String)).returns(T.nilable(String)) } + def line1=(_line1); end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + sig { params(_line2: T.nilable(String)).returns(T.nilable(String)) } + def line2=(_line2); end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + sig { params(_postal_code: T.nilable(String)).returns(T.nilable(String)) } + def postal_code=(_postal_code); end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + sig { params(_state: T.nilable(String)).returns(T.nilable(String)) } + def state=(_state); end + sig { + params(city: T.nilable(String), country: T.nilable(String), line1: T.nilable(String), line2: T.nilable(String), postal_code: T.nilable(String), state: T.nilable(String)).void + } + def initialize( + city: nil, + country: nil, + line1: nil, + line2: nil, + postal_code: nil, + state: nil + ); end + end + # The physical shipping address. + sig { returns(T.nilable(PaymentRecordReportPaymentParams::ShippingDetails::Address)) } + def address; end + sig { + params(_address: T.nilable(PaymentRecordReportPaymentParams::ShippingDetails::Address)).returns(T.nilable(PaymentRecordReportPaymentParams::ShippingDetails::Address)) + } + def address=(_address); end + # The shipping recipient's name. + sig { returns(T.nilable(String)) } + def name; end + sig { params(_name: T.nilable(String)).returns(T.nilable(String)) } + def name=(_name); end + # The shipping recipient's phone number. + sig { returns(T.nilable(String)) } + def phone; end + sig { params(_phone: T.nilable(String)).returns(T.nilable(String)) } + def phone=(_phone); end + sig { + params(address: T.nilable(PaymentRecordReportPaymentParams::ShippingDetails::Address), name: T.nilable(String), phone: T.nilable(String)).void + } + def initialize(address: nil, name: nil, phone: nil); end + end + # The amount you initially requested for this payment. + sig { returns(PaymentRecordReportPaymentParams::AmountRequested) } + def amount_requested; end + sig { + params(_amount_requested: PaymentRecordReportPaymentParams::AmountRequested).returns(PaymentRecordReportPaymentParams::AmountRequested) + } + def amount_requested=(_amount_requested); end + # Customer information for this payment. + sig { returns(T.nilable(PaymentRecordReportPaymentParams::CustomerDetails)) } + def customer_details; end + sig { + params(_customer_details: T.nilable(PaymentRecordReportPaymentParams::CustomerDetails)).returns(T.nilable(PaymentRecordReportPaymentParams::CustomerDetails)) + } + def customer_details=(_customer_details); end + # Indicates whether the customer was present in your checkout flow during this payment. + sig { returns(T.nilable(String)) } + def customer_presence; end + sig { params(_customer_presence: T.nilable(String)).returns(T.nilable(String)) } + def customer_presence=(_customer_presence); end + # An arbitrary string attached to the object. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # Information about the payment attempt failure. + sig { returns(T.nilable(PaymentRecordReportPaymentParams::Failed)) } + def failed; end + sig { + params(_failed: T.nilable(PaymentRecordReportPaymentParams::Failed)).returns(T.nilable(PaymentRecordReportPaymentParams::Failed)) + } + def failed=(_failed); end + # Information about the payment attempt guarantee. + sig { returns(T.nilable(PaymentRecordReportPaymentParams::Guaranteed)) } + def guaranteed; end + sig { + params(_guaranteed: T.nilable(PaymentRecordReportPaymentParams::Guaranteed)).returns(T.nilable(PaymentRecordReportPaymentParams::Guaranteed)) + } + def guaranteed=(_guaranteed); end + # When the reported payment was initiated. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def initiated_at; end + sig { params(_initiated_at: Integer).returns(Integer) } + def initiated_at=(_initiated_at); end + # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + # The outcome of the reported payment. + sig { returns(T.nilable(String)) } + def outcome; end + sig { params(_outcome: T.nilable(String)).returns(T.nilable(String)) } + def outcome=(_outcome); end + # Information about the Payment Method debited for this payment. + sig { returns(PaymentRecordReportPaymentParams::PaymentMethodDetails) } + def payment_method_details; end + sig { + params(_payment_method_details: PaymentRecordReportPaymentParams::PaymentMethodDetails).returns(PaymentRecordReportPaymentParams::PaymentMethodDetails) + } + def payment_method_details=(_payment_method_details); end + # Processor information for this payment. + sig { returns(T.nilable(PaymentRecordReportPaymentParams::ProcessorDetails)) } + def processor_details; end + sig { + params(_processor_details: T.nilable(PaymentRecordReportPaymentParams::ProcessorDetails)).returns(T.nilable(PaymentRecordReportPaymentParams::ProcessorDetails)) + } + def processor_details=(_processor_details); end + # Shipping information for this payment. + sig { returns(T.nilable(PaymentRecordReportPaymentParams::ShippingDetails)) } + def shipping_details; end + sig { + params(_shipping_details: T.nilable(PaymentRecordReportPaymentParams::ShippingDetails)).returns(T.nilable(PaymentRecordReportPaymentParams::ShippingDetails)) + } + def shipping_details=(_shipping_details); end + sig { + params(amount_requested: PaymentRecordReportPaymentParams::AmountRequested, customer_details: T.nilable(PaymentRecordReportPaymentParams::CustomerDetails), customer_presence: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), failed: T.nilable(PaymentRecordReportPaymentParams::Failed), guaranteed: T.nilable(PaymentRecordReportPaymentParams::Guaranteed), initiated_at: Integer, metadata: T.nilable(T.any(String, T::Hash[String, String])), outcome: T.nilable(String), payment_method_details: PaymentRecordReportPaymentParams::PaymentMethodDetails, processor_details: T.nilable(PaymentRecordReportPaymentParams::ProcessorDetails), shipping_details: T.nilable(PaymentRecordReportPaymentParams::ShippingDetails)).void + } + def initialize( + amount_requested: nil, + customer_details: nil, + customer_presence: nil, + description: nil, + expand: nil, + failed: nil, + guaranteed: nil, + initiated_at: nil, + metadata: nil, + outcome: nil, + payment_method_details: nil, + processor_details: nil, + shipping_details: nil + ); end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/payment_record_report_refund_params.rbi b/rbi/stripe/params/payment_record_report_refund_params.rbi new file mode 100644 index 00000000..0e4592f1 --- /dev/null +++ b/rbi/stripe/params/payment_record_report_refund_params.rbi @@ -0,0 +1,113 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + class PaymentRecordReportRefundParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + sig { params(_currency: String).returns(String) } + def currency=(_currency); end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + sig { params(_value: Integer).returns(Integer) } + def value=(_value); end + sig { params(currency: String, value: Integer).void } + def initialize(currency: nil, value: nil); end + end + class ProcessorDetails < ::Stripe::RequestParams + class Custom < ::Stripe::RequestParams + # A reference to the external refund. This field must be unique across all refunds. + sig { returns(String) } + def refund_reference; end + sig { params(_refund_reference: String).returns(String) } + def refund_reference=(_refund_reference); end + sig { params(refund_reference: String).void } + def initialize(refund_reference: nil); end + end + # Information about the custom processor used to make this refund. + sig { returns(T.nilable(PaymentRecordReportRefundParams::ProcessorDetails::Custom)) } + def custom; end + sig { + params(_custom: T.nilable(PaymentRecordReportRefundParams::ProcessorDetails::Custom)).returns(T.nilable(PaymentRecordReportRefundParams::ProcessorDetails::Custom)) + } + def custom=(_custom); end + # The type of the processor details. An additional hash is included on processor_details with a name matching this value. It contains additional information specific to the processor. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { + params(custom: T.nilable(PaymentRecordReportRefundParams::ProcessorDetails::Custom), type: String).void + } + def initialize(custom: nil, type: nil); end + end + class Refunded < ::Stripe::RequestParams + # When the reported refund completed. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def refunded_at; end + sig { params(_refunded_at: Integer).returns(Integer) } + def refunded_at=(_refunded_at); end + sig { params(refunded_at: Integer).void } + def initialize(refunded_at: nil); end + end + # A positive integer in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) representing how much of this payment to refund. Can refund only up to the remaining, unrefunded amount of the payment. + sig { returns(T.nilable(PaymentRecordReportRefundParams::Amount)) } + def amount; end + sig { + params(_amount: T.nilable(PaymentRecordReportRefundParams::Amount)).returns(T.nilable(PaymentRecordReportRefundParams::Amount)) + } + def amount=(_amount); end + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # When the reported refund was initiated. Measured in seconds since the Unix epoch. + sig { returns(T.nilable(Integer)) } + def initiated_at; end + sig { params(_initiated_at: T.nilable(Integer)).returns(T.nilable(Integer)) } + def initiated_at=(_initiated_at); end + # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + # The outcome of the reported refund. + sig { returns(String) } + def outcome; end + sig { params(_outcome: String).returns(String) } + def outcome=(_outcome); end + # Processor information for this refund. + sig { returns(PaymentRecordReportRefundParams::ProcessorDetails) } + def processor_details; end + sig { + params(_processor_details: PaymentRecordReportRefundParams::ProcessorDetails).returns(PaymentRecordReportRefundParams::ProcessorDetails) + } + def processor_details=(_processor_details); end + # Information about the payment attempt refund. + sig { returns(PaymentRecordReportRefundParams::Refunded) } + def refunded; end + sig { + params(_refunded: PaymentRecordReportRefundParams::Refunded).returns(PaymentRecordReportRefundParams::Refunded) + } + def refunded=(_refunded); end + sig { + params(amount: T.nilable(PaymentRecordReportRefundParams::Amount), expand: T.nilable(T::Array[String]), initiated_at: T.nilable(Integer), metadata: T.nilable(T.any(String, T::Hash[String, String])), outcome: String, processor_details: PaymentRecordReportRefundParams::ProcessorDetails, refunded: PaymentRecordReportRefundParams::Refunded).void + } + def initialize( + amount: nil, + expand: nil, + initiated_at: nil, + metadata: nil, + outcome: nil, + processor_details: nil, + refunded: nil + ); end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/payment_record_retrieve_params.rbi b/rbi/stripe/params/payment_record_retrieve_params.rbi new file mode 100644 index 00000000..b4030653 --- /dev/null +++ b/rbi/stripe/params/payment_record_retrieve_params.rbi @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + class PaymentRecordRetrieveParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + sig { params(expand: T.nilable(T::Array[String])).void } + def initialize(expand: nil); end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/payout_cancel_params.rbi b/rbi/stripe/params/payout_cancel_params.rbi index a9f15969..863df1d4 100644 --- a/rbi/stripe/params/payout_cancel_params.rbi +++ b/rbi/stripe/params/payout_cancel_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PayoutCancelParams < Stripe::RequestParams + class PayoutCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/payout_create_params.rbi b/rbi/stripe/params/payout_create_params.rbi index 1f26a3b7..4355adfd 100644 --- a/rbi/stripe/params/payout_create_params.rbi +++ b/rbi/stripe/params/payout_create_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PayoutCreateParams < Stripe::RequestParams + class PayoutCreateParams < ::Stripe::RequestParams # A positive integer in cents representing how much to payout. sig { returns(Integer) } def amount; end diff --git a/rbi/stripe/params/payout_list_params.rbi b/rbi/stripe/params/payout_list_params.rbi index a9547bb5..c99ca07f 100644 --- a/rbi/stripe/params/payout_list_params.rbi +++ b/rbi/stripe/params/payout_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class PayoutListParams < Stripe::RequestParams - class ArrivalDate < Stripe::RequestParams + class PayoutListParams < ::Stripe::RequestParams + class ArrivalDate < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -30,7 +30,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class Created < Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/payout_retrieve_params.rbi b/rbi/stripe/params/payout_retrieve_params.rbi index 13a8fe1a..0e45fdc9 100644 --- a/rbi/stripe/params/payout_retrieve_params.rbi +++ b/rbi/stripe/params/payout_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PayoutRetrieveParams < Stripe::RequestParams + class PayoutRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/payout_reverse_params.rbi b/rbi/stripe/params/payout_reverse_params.rbi index 96fca010..16711cc0 100644 --- a/rbi/stripe/params/payout_reverse_params.rbi +++ b/rbi/stripe/params/payout_reverse_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PayoutReverseParams < Stripe::RequestParams + class PayoutReverseParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/payout_update_params.rbi b/rbi/stripe/params/payout_update_params.rbi index bbe11b31..1670e493 100644 --- a/rbi/stripe/params/payout_update_params.rbi +++ b/rbi/stripe/params/payout_update_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PayoutUpdateParams < Stripe::RequestParams + class PayoutUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/plan_create_params.rbi b/rbi/stripe/params/plan_create_params.rbi index 006e03ea..b326d58e 100644 --- a/rbi/stripe/params/plan_create_params.rbi +++ b/rbi/stripe/params/plan_create_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class PlanCreateParams < Stripe::RequestParams - class Product < Stripe::RequestParams + class PlanCreateParams < ::Stripe::RequestParams + class Product < ::Stripe::RequestParams # Whether the product is currently available for purchase. Defaults to `true`. sig { returns(T.nilable(T::Boolean)) } def active; end @@ -57,7 +57,7 @@ module Stripe unit_label: nil ); end end - class Tier < Stripe::RequestParams + class Tier < ::Stripe::RequestParams # The flat billing amount for an entire tier, regardless of the number of units in the tier. sig { returns(T.nilable(Integer)) } def flat_amount; end @@ -94,7 +94,7 @@ module Stripe up_to: nil ); end end - class TransformUsage < Stripe::RequestParams + class TransformUsage < ::Stripe::RequestParams # Divide usage by this number. sig { returns(Integer) } def divide_by; end diff --git a/rbi/stripe/params/plan_delete_params.rbi b/rbi/stripe/params/plan_delete_params.rbi index 979b1420..7ddd23ab 100644 --- a/rbi/stripe/params/plan_delete_params.rbi +++ b/rbi/stripe/params/plan_delete_params.rbi @@ -3,5 +3,5 @@ # typed: true module Stripe - class PlanDeleteParams < Stripe::RequestParams; end + class PlanDeleteParams < ::Stripe::RequestParams; end end \ No newline at end of file diff --git a/rbi/stripe/params/plan_list_params.rbi b/rbi/stripe/params/plan_list_params.rbi index 00ce0095..41b6f745 100644 --- a/rbi/stripe/params/plan_list_params.rbi +++ b/rbi/stripe/params/plan_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class PlanListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class PlanListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/plan_retrieve_params.rbi b/rbi/stripe/params/plan_retrieve_params.rbi index 50efe947..e34d8faf 100644 --- a/rbi/stripe/params/plan_retrieve_params.rbi +++ b/rbi/stripe/params/plan_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PlanRetrieveParams < Stripe::RequestParams + class PlanRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/plan_update_params.rbi b/rbi/stripe/params/plan_update_params.rbi index 48b1013b..705b44f8 100644 --- a/rbi/stripe/params/plan_update_params.rbi +++ b/rbi/stripe/params/plan_update_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PlanUpdateParams < Stripe::RequestParams + class PlanUpdateParams < ::Stripe::RequestParams # Whether the plan is currently available for new subscriptions. sig { returns(T.nilable(T::Boolean)) } def active; end diff --git a/rbi/stripe/params/price_create_params.rbi b/rbi/stripe/params/price_create_params.rbi index 8c3b14e5..8f7dd34d 100644 --- a/rbi/stripe/params/price_create_params.rbi +++ b/rbi/stripe/params/price_create_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class PriceCreateParams < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams - class CustomUnitAmount < Stripe::RequestParams + class PriceCreateParams < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams + class CustomUnitAmount < ::Stripe::RequestParams # Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`. sig { returns(T::Boolean) } def enabled; end @@ -31,7 +31,7 @@ module Stripe } def initialize(enabled: nil, maximum: nil, minimum: nil, preset: nil); end end - class Tier < Stripe::RequestParams + class Tier < ::Stripe::RequestParams # The flat billing amount for an entire tier, regardless of the number of units in the tier. sig { returns(T.nilable(Integer)) } def flat_amount; end @@ -108,7 +108,7 @@ module Stripe unit_amount_decimal: nil ); end end - class CustomUnitAmount < Stripe::RequestParams + class CustomUnitAmount < ::Stripe::RequestParams # Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`. sig { returns(T::Boolean) } def enabled; end @@ -134,7 +134,7 @@ module Stripe } def initialize(enabled: nil, maximum: nil, minimum: nil, preset: nil); end end - class ProductData < Stripe::RequestParams + class ProductData < ::Stripe::RequestParams # Whether the product is currently available for purchase. Defaults to `true`. sig { returns(T.nilable(T::Boolean)) } def active; end @@ -187,7 +187,7 @@ module Stripe unit_label: nil ); end end - class Recurring < Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -224,7 +224,7 @@ module Stripe usage_type: nil ); end end - class Tier < Stripe::RequestParams + class Tier < ::Stripe::RequestParams # The flat billing amount for an entire tier, regardless of the number of units in the tier. sig { returns(T.nilable(Integer)) } def flat_amount; end @@ -261,7 +261,7 @@ module Stripe up_to: nil ); end end - class TransformQuantity < Stripe::RequestParams + class TransformQuantity < ::Stripe::RequestParams # Divide usage by this number. sig { returns(Integer) } def divide_by; end diff --git a/rbi/stripe/params/price_list_params.rbi b/rbi/stripe/params/price_list_params.rbi index cf59394a..1a87d6e1 100644 --- a/rbi/stripe/params/price_list_params.rbi +++ b/rbi/stripe/params/price_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class PriceListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class PriceListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -30,7 +30,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class Recurring < Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Filter by billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(T.nilable(String)) } def interval; end diff --git a/rbi/stripe/params/price_retrieve_params.rbi b/rbi/stripe/params/price_retrieve_params.rbi index 69a8002a..326c18d7 100644 --- a/rbi/stripe/params/price_retrieve_params.rbi +++ b/rbi/stripe/params/price_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PriceRetrieveParams < Stripe::RequestParams + class PriceRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/price_search_params.rbi b/rbi/stripe/params/price_search_params.rbi index a283fccf..534f7d95 100644 --- a/rbi/stripe/params/price_search_params.rbi +++ b/rbi/stripe/params/price_search_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PriceSearchParams < Stripe::RequestParams + class PriceSearchParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/price_update_params.rbi b/rbi/stripe/params/price_update_params.rbi index 7ccfeff3..af7381ab 100644 --- a/rbi/stripe/params/price_update_params.rbi +++ b/rbi/stripe/params/price_update_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class PriceUpdateParams < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams - class CustomUnitAmount < Stripe::RequestParams + class PriceUpdateParams < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams + class CustomUnitAmount < ::Stripe::RequestParams # Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`. sig { returns(T::Boolean) } def enabled; end @@ -31,7 +31,7 @@ module Stripe } def initialize(enabled: nil, maximum: nil, minimum: nil, preset: nil); end end - class Tier < Stripe::RequestParams + class Tier < ::Stripe::RequestParams # The flat billing amount for an entire tier, regardless of the number of units in the tier. sig { returns(T.nilable(Integer)) } def flat_amount; end diff --git a/rbi/stripe/params/product_create_params.rbi b/rbi/stripe/params/product_create_params.rbi index 7fd3c7fb..8097d886 100644 --- a/rbi/stripe/params/product_create_params.rbi +++ b/rbi/stripe/params/product_create_params.rbi @@ -3,10 +3,10 @@ # typed: true module Stripe - class ProductCreateParams < Stripe::RequestParams - class DefaultPriceData < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams - class CustomUnitAmount < Stripe::RequestParams + class ProductCreateParams < ::Stripe::RequestParams + class DefaultPriceData < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams + class CustomUnitAmount < ::Stripe::RequestParams # Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`. sig { returns(T::Boolean) } def enabled; end @@ -32,7 +32,7 @@ module Stripe } def initialize(enabled: nil, maximum: nil, minimum: nil, preset: nil); end end - class Tier < Stripe::RequestParams + class Tier < ::Stripe::RequestParams # The flat billing amount for an entire tier, regardless of the number of units in the tier. sig { returns(T.nilable(Integer)) } def flat_amount; end @@ -113,7 +113,7 @@ module Stripe unit_amount_decimal: nil ); end end - class CustomUnitAmount < Stripe::RequestParams + class CustomUnitAmount < ::Stripe::RequestParams # Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`. sig { returns(T::Boolean) } def enabled; end @@ -139,7 +139,7 @@ module Stripe } def initialize(enabled: nil, maximum: nil, minimum: nil, preset: nil); end end - class Recurring < Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -217,7 +217,7 @@ module Stripe unit_amount_decimal: nil ); end end - class MarketingFeature < Stripe::RequestParams + class MarketingFeature < ::Stripe::RequestParams # The marketing feature name. Up to 80 characters long. sig { returns(String) } def name; end @@ -226,7 +226,7 @@ module Stripe sig { params(name: String).void } def initialize(name: nil); end end - class PackageDimensions < Stripe::RequestParams + class PackageDimensions < ::Stripe::RequestParams # Height, in inches. Maximum precision is 2 decimal places. sig { returns(Float) } def height; end diff --git a/rbi/stripe/params/product_delete_params.rbi b/rbi/stripe/params/product_delete_params.rbi index fcf084af..7441120a 100644 --- a/rbi/stripe/params/product_delete_params.rbi +++ b/rbi/stripe/params/product_delete_params.rbi @@ -3,5 +3,5 @@ # typed: true module Stripe - class ProductDeleteParams < Stripe::RequestParams; end + class ProductDeleteParams < ::Stripe::RequestParams; end end \ No newline at end of file diff --git a/rbi/stripe/params/product_feature_create_params.rbi b/rbi/stripe/params/product_feature_create_params.rbi index 433d4d7b..54acfddb 100644 --- a/rbi/stripe/params/product_feature_create_params.rbi +++ b/rbi/stripe/params/product_feature_create_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class ProductFeatureCreateParams < Stripe::RequestParams + class ProductFeatureCreateParams < ::Stripe::RequestParams # The ID of the [Feature](https://stripe.com/docs/api/entitlements/feature) object attached to this product. sig { returns(String) } def entitlement_feature; end diff --git a/rbi/stripe/params/product_feature_delete_params.rbi b/rbi/stripe/params/product_feature_delete_params.rbi index 17c996fe..8a9f6816 100644 --- a/rbi/stripe/params/product_feature_delete_params.rbi +++ b/rbi/stripe/params/product_feature_delete_params.rbi @@ -3,5 +3,5 @@ # typed: true module Stripe - class ProductFeatureDeleteParams < Stripe::RequestParams; end + class ProductFeatureDeleteParams < ::Stripe::RequestParams; end end \ No newline at end of file diff --git a/rbi/stripe/params/product_feature_list_params.rbi b/rbi/stripe/params/product_feature_list_params.rbi index 76bee648..afc19c94 100644 --- a/rbi/stripe/params/product_feature_list_params.rbi +++ b/rbi/stripe/params/product_feature_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class ProductFeatureListParams < Stripe::RequestParams + class ProductFeatureListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/product_feature_retrieve_params.rbi b/rbi/stripe/params/product_feature_retrieve_params.rbi index 8edd7c5c..5878b734 100644 --- a/rbi/stripe/params/product_feature_retrieve_params.rbi +++ b/rbi/stripe/params/product_feature_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class ProductFeatureRetrieveParams < Stripe::RequestParams + class ProductFeatureRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/product_list_params.rbi b/rbi/stripe/params/product_list_params.rbi index 6ff99329..65e71b24 100644 --- a/rbi/stripe/params/product_list_params.rbi +++ b/rbi/stripe/params/product_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class ProductListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ProductListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/product_retrieve_params.rbi b/rbi/stripe/params/product_retrieve_params.rbi index b2eed909..a9b3db2b 100644 --- a/rbi/stripe/params/product_retrieve_params.rbi +++ b/rbi/stripe/params/product_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class ProductRetrieveParams < Stripe::RequestParams + class ProductRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/product_search_params.rbi b/rbi/stripe/params/product_search_params.rbi index c081db12..3da49149 100644 --- a/rbi/stripe/params/product_search_params.rbi +++ b/rbi/stripe/params/product_search_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class ProductSearchParams < Stripe::RequestParams + class ProductSearchParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/product_update_params.rbi b/rbi/stripe/params/product_update_params.rbi index e0b06458..f990d99e 100644 --- a/rbi/stripe/params/product_update_params.rbi +++ b/rbi/stripe/params/product_update_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class ProductUpdateParams < Stripe::RequestParams - class MarketingFeature < Stripe::RequestParams + class ProductUpdateParams < ::Stripe::RequestParams + class MarketingFeature < ::Stripe::RequestParams # The marketing feature name. Up to 80 characters long. sig { returns(String) } def name; end @@ -13,7 +13,7 @@ module Stripe sig { params(name: String).void } def initialize(name: nil); end end - class PackageDimensions < Stripe::RequestParams + class PackageDimensions < ::Stripe::RequestParams # Height, in inches. Maximum precision is 2 decimal places. sig { returns(Float) } def height; end diff --git a/rbi/stripe/params/promotion_code_create_params.rbi b/rbi/stripe/params/promotion_code_create_params.rbi index e6ec6e8a..ae7cd69c 100644 --- a/rbi/stripe/params/promotion_code_create_params.rbi +++ b/rbi/stripe/params/promotion_code_create_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class PromotionCodeCreateParams < Stripe::RequestParams - class Promotion < Stripe::RequestParams + class PromotionCodeCreateParams < ::Stripe::RequestParams + class Promotion < ::Stripe::RequestParams # If promotion `type` is `coupon`, the coupon for this promotion code. sig { returns(T.nilable(String)) } def coupon; end @@ -18,8 +18,8 @@ module Stripe sig { params(coupon: T.nilable(String), type: String).void } def initialize(coupon: nil, type: nil); end end - class Restrictions < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class Restrictions < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work). sig { returns(T.nilable(Integer)) } def minimum_amount; end diff --git a/rbi/stripe/params/promotion_code_list_params.rbi b/rbi/stripe/params/promotion_code_list_params.rbi index c2bbdf84..b1c6d063 100644 --- a/rbi/stripe/params/promotion_code_list_params.rbi +++ b/rbi/stripe/params/promotion_code_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class PromotionCodeListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class PromotionCodeListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/promotion_code_retrieve_params.rbi b/rbi/stripe/params/promotion_code_retrieve_params.rbi index 4fc26879..fbe87d44 100644 --- a/rbi/stripe/params/promotion_code_retrieve_params.rbi +++ b/rbi/stripe/params/promotion_code_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class PromotionCodeRetrieveParams < Stripe::RequestParams + class PromotionCodeRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/promotion_code_update_params.rbi b/rbi/stripe/params/promotion_code_update_params.rbi index 1c7043fc..fecb5ce8 100644 --- a/rbi/stripe/params/promotion_code_update_params.rbi +++ b/rbi/stripe/params/promotion_code_update_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class PromotionCodeUpdateParams < Stripe::RequestParams - class Restrictions < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class PromotionCodeUpdateParams < ::Stripe::RequestParams + class Restrictions < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work). sig { returns(T.nilable(Integer)) } def minimum_amount; end diff --git a/rbi/stripe/params/quote_accept_params.rbi b/rbi/stripe/params/quote_accept_params.rbi index ef4a08c6..53ec5abd 100644 --- a/rbi/stripe/params/quote_accept_params.rbi +++ b/rbi/stripe/params/quote_accept_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class QuoteAcceptParams < Stripe::RequestParams + class QuoteAcceptParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/quote_cancel_params.rbi b/rbi/stripe/params/quote_cancel_params.rbi index 92bd0590..0bf21d5d 100644 --- a/rbi/stripe/params/quote_cancel_params.rbi +++ b/rbi/stripe/params/quote_cancel_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class QuoteCancelParams < Stripe::RequestParams + class QuoteCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/quote_computed_upfront_line_items_list_params.rbi b/rbi/stripe/params/quote_computed_upfront_line_items_list_params.rbi index 6b9041b8..a93c2302 100644 --- a/rbi/stripe/params/quote_computed_upfront_line_items_list_params.rbi +++ b/rbi/stripe/params/quote_computed_upfront_line_items_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class QuoteComputedUpfrontLineItemsListParams < Stripe::RequestParams + class QuoteComputedUpfrontLineItemsListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/quote_create_params.rbi b/rbi/stripe/params/quote_create_params.rbi index 333cc224..b5b23e71 100644 --- a/rbi/stripe/params/quote_create_params.rbi +++ b/rbi/stripe/params/quote_create_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class QuoteCreateParams < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class QuoteCreateParams < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -36,7 +36,7 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -57,7 +57,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class FromQuote < Stripe::RequestParams + class FromQuote < ::Stripe::RequestParams # Whether this quote is a revision of the previous quote. sig { returns(T.nilable(T::Boolean)) } def is_revision; end @@ -71,8 +71,8 @@ module Stripe sig { params(is_revision: T.nilable(T::Boolean), quote: String).void } def initialize(is_revision: nil, quote: nil); end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -103,8 +103,8 @@ module Stripe } def initialize(days_until_due: nil, issuer: nil); end end - class LineItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -125,8 +125,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -226,9 +226,9 @@ module Stripe tax_rates: nil ); end end - class SubscriptionData < Stripe::RequestParams - class BillingMode < Stripe::RequestParams - class Flexible < Stripe::RequestParams + class SubscriptionData < ::Stripe::RequestParams + class BillingMode < ::Stripe::RequestParams + class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. sig { returns(T.nilable(String)) } def proration_discounts; end @@ -298,7 +298,7 @@ module Stripe trial_period_days: nil ); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when the invoice is paid. If no amount is set, the full amount is transferred. There cannot be any line items with recurring prices when using this field. sig { returns(T.nilable(Integer)) } def amount; end diff --git a/rbi/stripe/params/quote_finalize_quote_params.rbi b/rbi/stripe/params/quote_finalize_quote_params.rbi index 8f5eaad8..4ade2491 100644 --- a/rbi/stripe/params/quote_finalize_quote_params.rbi +++ b/rbi/stripe/params/quote_finalize_quote_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class QuoteFinalizeQuoteParams < Stripe::RequestParams + class QuoteFinalizeQuoteParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/quote_line_item_list_params.rbi b/rbi/stripe/params/quote_line_item_list_params.rbi index 7d5f7588..15597e6c 100644 --- a/rbi/stripe/params/quote_line_item_list_params.rbi +++ b/rbi/stripe/params/quote_line_item_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class QuoteLineItemListParams < Stripe::RequestParams + class QuoteLineItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/quote_list_computed_upfront_line_items_params.rbi b/rbi/stripe/params/quote_list_computed_upfront_line_items_params.rbi index eff10cd9..79e59f53 100644 --- a/rbi/stripe/params/quote_list_computed_upfront_line_items_params.rbi +++ b/rbi/stripe/params/quote_list_computed_upfront_line_items_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class QuoteListComputedUpfrontLineItemsParams < Stripe::RequestParams + class QuoteListComputedUpfrontLineItemsParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/quote_list_line_items_params.rbi b/rbi/stripe/params/quote_list_line_items_params.rbi index 6b88b4d2..5d0b3baf 100644 --- a/rbi/stripe/params/quote_list_line_items_params.rbi +++ b/rbi/stripe/params/quote_list_line_items_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class QuoteListLineItemsParams < Stripe::RequestParams + class QuoteListLineItemsParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/quote_list_params.rbi b/rbi/stripe/params/quote_list_params.rbi index f1858bd2..6c366168 100644 --- a/rbi/stripe/params/quote_list_params.rbi +++ b/rbi/stripe/params/quote_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class QuoteListParams < Stripe::RequestParams + class QuoteListParams < ::Stripe::RequestParams # The ID of the customer whose quotes will be retrieved. sig { returns(T.nilable(String)) } def customer; end diff --git a/rbi/stripe/params/quote_pdf_params.rbi b/rbi/stripe/params/quote_pdf_params.rbi index ec342699..bef0f0f2 100644 --- a/rbi/stripe/params/quote_pdf_params.rbi +++ b/rbi/stripe/params/quote_pdf_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class QuotePdfParams < Stripe::RequestParams + class QuotePdfParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/quote_retrieve_params.rbi b/rbi/stripe/params/quote_retrieve_params.rbi index 5c2da29c..e72da8a0 100644 --- a/rbi/stripe/params/quote_retrieve_params.rbi +++ b/rbi/stripe/params/quote_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class QuoteRetrieveParams < Stripe::RequestParams + class QuoteRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/quote_update_params.rbi b/rbi/stripe/params/quote_update_params.rbi index 58136217..3e1443f7 100644 --- a/rbi/stripe/params/quote_update_params.rbi +++ b/rbi/stripe/params/quote_update_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class QuoteUpdateParams < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class QuoteUpdateParams < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -36,7 +36,7 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -57,8 +57,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -89,8 +89,8 @@ module Stripe } def initialize(days_until_due: nil, issuer: nil); end end - class LineItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -111,8 +111,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -218,7 +218,7 @@ module Stripe tax_rates: nil ); end end - class SubscriptionData < Stripe::RequestParams + class SubscriptionData < ::Stripe::RequestParams # The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. sig { returns(T.nilable(String)) } def description; end @@ -255,7 +255,7 @@ module Stripe trial_period_days: nil ); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # The amount that will be transferred automatically when the invoice is paid. If no amount is set, the full amount is transferred. There cannot be any line items with recurring prices when using this field. sig { returns(T.nilable(Integer)) } def amount; end diff --git a/rbi/stripe/params/radar/early_fraud_warning_list_params.rbi b/rbi/stripe/params/radar/early_fraud_warning_list_params.rbi index 4e98a2ba..c3db7f25 100644 --- a/rbi/stripe/params/radar/early_fraud_warning_list_params.rbi +++ b/rbi/stripe/params/radar/early_fraud_warning_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Radar - class EarlyFraudWarningListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class EarlyFraudWarningListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/radar/early_fraud_warning_retrieve_params.rbi b/rbi/stripe/params/radar/early_fraud_warning_retrieve_params.rbi index f86bbafb..b28d7450 100644 --- a/rbi/stripe/params/radar/early_fraud_warning_retrieve_params.rbi +++ b/rbi/stripe/params/radar/early_fraud_warning_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Radar - class EarlyFraudWarningRetrieveParams < Stripe::RequestParams + class EarlyFraudWarningRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/radar/value_list_create_params.rbi b/rbi/stripe/params/radar/value_list_create_params.rbi index fe7e890e..cb598092 100644 --- a/rbi/stripe/params/radar/value_list_create_params.rbi +++ b/rbi/stripe/params/radar/value_list_create_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Radar - class ValueListCreateParams < Stripe::RequestParams + class ValueListCreateParams < ::Stripe::RequestParams # The name of the value list for use in rules. sig { returns(String) } def alias; end diff --git a/rbi/stripe/params/radar/value_list_delete_params.rbi b/rbi/stripe/params/radar/value_list_delete_params.rbi index 1b1968c7..fe26e2ee 100644 --- a/rbi/stripe/params/radar/value_list_delete_params.rbi +++ b/rbi/stripe/params/radar/value_list_delete_params.rbi @@ -4,6 +4,6 @@ # typed: true module Stripe module Radar - class ValueListDeleteParams < Stripe::RequestParams; end + class ValueListDeleteParams < ::Stripe::RequestParams; end end end \ No newline at end of file diff --git a/rbi/stripe/params/radar/value_list_item_create_params.rbi b/rbi/stripe/params/radar/value_list_item_create_params.rbi index 78cd5596..59c8ea72 100644 --- a/rbi/stripe/params/radar/value_list_item_create_params.rbi +++ b/rbi/stripe/params/radar/value_list_item_create_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Radar - class ValueListItemCreateParams < Stripe::RequestParams + class ValueListItemCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/radar/value_list_item_delete_params.rbi b/rbi/stripe/params/radar/value_list_item_delete_params.rbi index e1fafa07..a529b31d 100644 --- a/rbi/stripe/params/radar/value_list_item_delete_params.rbi +++ b/rbi/stripe/params/radar/value_list_item_delete_params.rbi @@ -4,6 +4,6 @@ # typed: true module Stripe module Radar - class ValueListItemDeleteParams < Stripe::RequestParams; end + class ValueListItemDeleteParams < ::Stripe::RequestParams; end end end \ No newline at end of file diff --git a/rbi/stripe/params/radar/value_list_item_list_params.rbi b/rbi/stripe/params/radar/value_list_item_list_params.rbi index 3a3ba3a4..0bd4f542 100644 --- a/rbi/stripe/params/radar/value_list_item_list_params.rbi +++ b/rbi/stripe/params/radar/value_list_item_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Radar - class ValueListItemListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ValueListItemListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/radar/value_list_item_retrieve_params.rbi b/rbi/stripe/params/radar/value_list_item_retrieve_params.rbi index 60c7a7e7..ecacd758 100644 --- a/rbi/stripe/params/radar/value_list_item_retrieve_params.rbi +++ b/rbi/stripe/params/radar/value_list_item_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Radar - class ValueListItemRetrieveParams < Stripe::RequestParams + class ValueListItemRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/radar/value_list_list_params.rbi b/rbi/stripe/params/radar/value_list_list_params.rbi index 9236e3bd..be7f2e49 100644 --- a/rbi/stripe/params/radar/value_list_list_params.rbi +++ b/rbi/stripe/params/radar/value_list_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Radar - class ValueListListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ValueListListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/radar/value_list_retrieve_params.rbi b/rbi/stripe/params/radar/value_list_retrieve_params.rbi index c652d53b..1fcc7677 100644 --- a/rbi/stripe/params/radar/value_list_retrieve_params.rbi +++ b/rbi/stripe/params/radar/value_list_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Radar - class ValueListRetrieveParams < Stripe::RequestParams + class ValueListRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/radar/value_list_update_params.rbi b/rbi/stripe/params/radar/value_list_update_params.rbi index 5fa76208..375bc3d2 100644 --- a/rbi/stripe/params/radar/value_list_update_params.rbi +++ b/rbi/stripe/params/radar/value_list_update_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Radar - class ValueListUpdateParams < Stripe::RequestParams + class ValueListUpdateParams < ::Stripe::RequestParams # The name of the value list for use in rules. sig { returns(T.nilable(String)) } def alias; end diff --git a/rbi/stripe/params/refund_cancel_params.rbi b/rbi/stripe/params/refund_cancel_params.rbi index 3b9e4f5a..27f640ae 100644 --- a/rbi/stripe/params/refund_cancel_params.rbi +++ b/rbi/stripe/params/refund_cancel_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class RefundCancelParams < Stripe::RequestParams + class RefundCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/refund_create_params.rbi b/rbi/stripe/params/refund_create_params.rbi index 4044e1e5..acff59fa 100644 --- a/rbi/stripe/params/refund_create_params.rbi +++ b/rbi/stripe/params/refund_create_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class RefundCreateParams < Stripe::RequestParams + class RefundCreateParams < ::Stripe::RequestParams # Attribute for param field amount sig { returns(T.nilable(Integer)) } def amount; end diff --git a/rbi/stripe/params/refund_expire_params.rbi b/rbi/stripe/params/refund_expire_params.rbi index 45ba3f9e..b1a4516f 100644 --- a/rbi/stripe/params/refund_expire_params.rbi +++ b/rbi/stripe/params/refund_expire_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class RefundExpireParams < Stripe::RequestParams + class RefundExpireParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/refund_list_params.rbi b/rbi/stripe/params/refund_list_params.rbi index aef9320f..51d04e8f 100644 --- a/rbi/stripe/params/refund_list_params.rbi +++ b/rbi/stripe/params/refund_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class RefundListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class RefundListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/refund_retrieve_params.rbi b/rbi/stripe/params/refund_retrieve_params.rbi index 075892a3..191b2af5 100644 --- a/rbi/stripe/params/refund_retrieve_params.rbi +++ b/rbi/stripe/params/refund_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class RefundRetrieveParams < Stripe::RequestParams + class RefundRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/refund_update_params.rbi b/rbi/stripe/params/refund_update_params.rbi index 537c6767..d1baad2f 100644 --- a/rbi/stripe/params/refund_update_params.rbi +++ b/rbi/stripe/params/refund_update_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class RefundUpdateParams < Stripe::RequestParams + class RefundUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/reporting/report_run_create_params.rbi b/rbi/stripe/params/reporting/report_run_create_params.rbi index 05fc9656..5a018dbe 100644 --- a/rbi/stripe/params/reporting/report_run_create_params.rbi +++ b/rbi/stripe/params/reporting/report_run_create_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Reporting - class ReportRunCreateParams < Stripe::RequestParams - class Parameters < Stripe::RequestParams + class ReportRunCreateParams < ::Stripe::RequestParams + class Parameters < ::Stripe::RequestParams # The set of report columns to include in the report output. If omitted, the Report Type is run with its default column set. sig { returns(T.nilable(T::Array[String])) } def columns; end diff --git a/rbi/stripe/params/reporting/report_run_list_params.rbi b/rbi/stripe/params/reporting/report_run_list_params.rbi index 30fdc97f..ec6f692b 100644 --- a/rbi/stripe/params/reporting/report_run_list_params.rbi +++ b/rbi/stripe/params/reporting/report_run_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Reporting - class ReportRunListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ReportRunListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/reporting/report_run_retrieve_params.rbi b/rbi/stripe/params/reporting/report_run_retrieve_params.rbi index 197ecbad..321004b7 100644 --- a/rbi/stripe/params/reporting/report_run_retrieve_params.rbi +++ b/rbi/stripe/params/reporting/report_run_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Reporting - class ReportRunRetrieveParams < Stripe::RequestParams + class ReportRunRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/reporting/report_type_list_params.rbi b/rbi/stripe/params/reporting/report_type_list_params.rbi index 51e66fa6..78f22c4c 100644 --- a/rbi/stripe/params/reporting/report_type_list_params.rbi +++ b/rbi/stripe/params/reporting/report_type_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Reporting - class ReportTypeListParams < Stripe::RequestParams + class ReportTypeListParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/reporting/report_type_retrieve_params.rbi b/rbi/stripe/params/reporting/report_type_retrieve_params.rbi index e815b17c..19cf95b7 100644 --- a/rbi/stripe/params/reporting/report_type_retrieve_params.rbi +++ b/rbi/stripe/params/reporting/report_type_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Reporting - class ReportTypeRetrieveParams < Stripe::RequestParams + class ReportTypeRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/review_approve_params.rbi b/rbi/stripe/params/review_approve_params.rbi index cfa96bb0..12a7f167 100644 --- a/rbi/stripe/params/review_approve_params.rbi +++ b/rbi/stripe/params/review_approve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class ReviewApproveParams < Stripe::RequestParams + class ReviewApproveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/review_list_params.rbi b/rbi/stripe/params/review_list_params.rbi index 335a59cc..4450724c 100644 --- a/rbi/stripe/params/review_list_params.rbi +++ b/rbi/stripe/params/review_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class ReviewListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ReviewListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/review_retrieve_params.rbi b/rbi/stripe/params/review_retrieve_params.rbi index 63b889cd..a9b211ed 100644 --- a/rbi/stripe/params/review_retrieve_params.rbi +++ b/rbi/stripe/params/review_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class ReviewRetrieveParams < Stripe::RequestParams + class ReviewRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/setup_attempt_list_params.rbi b/rbi/stripe/params/setup_attempt_list_params.rbi index 82beef50..faebc509 100644 --- a/rbi/stripe/params/setup_attempt_list_params.rbi +++ b/rbi/stripe/params/setup_attempt_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class SetupAttemptListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class SetupAttemptListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/setup_intent_cancel_params.rbi b/rbi/stripe/params/setup_intent_cancel_params.rbi index 07614eeb..a1a2c0cf 100644 --- a/rbi/stripe/params/setup_intent_cancel_params.rbi +++ b/rbi/stripe/params/setup_intent_cancel_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class SetupIntentCancelParams < Stripe::RequestParams + class SetupIntentCancelParams < ::Stripe::RequestParams # Reason for canceling this SetupIntent. Possible values are: `abandoned`, `requested_by_customer`, or `duplicate` sig { returns(T.nilable(String)) } def cancellation_reason; end diff --git a/rbi/stripe/params/setup_intent_confirm_params.rbi b/rbi/stripe/params/setup_intent_confirm_params.rbi index 2fdf2ce6..baf4b163 100644 --- a/rbi/stripe/params/setup_intent_confirm_params.rbi +++ b/rbi/stripe/params/setup_intent_confirm_params.rbi @@ -3,11 +3,11 @@ # typed: true module Stripe - class SetupIntentConfirmParams < Stripe::RequestParams - class MandateData < Stripe::RequestParams - class CustomerAcceptance < Stripe::RequestParams - class Offline < Stripe::RequestParams; end - class Online < Stripe::RequestParams + class SetupIntentConfirmParams < ::Stripe::RequestParams + class MandateData < ::Stripe::RequestParams + class CustomerAcceptance < ::Stripe::RequestParams + class Offline < ::Stripe::RequestParams; end + class Online < ::Stripe::RequestParams # The IP address from which the Mandate was accepted by the customer. sig { returns(T.nilable(String)) } def ip_address; end @@ -66,8 +66,8 @@ module Stripe } def initialize(customer_acceptance: nil); end end - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. sig { returns(String) } def account_number; end @@ -88,12 +88,12 @@ module Stripe } def initialize(account_number: nil, institution_number: nil, transit_number: nil); end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. sig { returns(String) } def account_number; end @@ -107,7 +107,7 @@ module Stripe sig { params(account_number: String, bsb_number: String).void } def initialize(account_number: nil, bsb_number: nil); end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. sig { returns(T.nilable(String)) } def account_number; end @@ -121,10 +121,10 @@ module Stripe sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void } def initialize(account_number: nil, sort_code: nil); end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -201,8 +201,8 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end - class Blik < Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Blik < ::Stripe::RequestParams; end + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) sig { returns(String) } def tax_id; end @@ -211,10 +211,10 @@ module Stripe sig { params(tax_id: String).void } def initialize(tax_id: nil); end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end + class Eps < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -223,7 +223,7 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction sig { returns(T.nilable(String)) } def account_holder_type; end @@ -237,9 +237,9 @@ module Stripe sig { params(account_holder_type: T.nilable(String), bank: String).void } def initialize(account_holder_type: nil, bank: nil); end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. sig { returns(T.nilable(String)) } def bank; end @@ -248,10 +248,10 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -282,13 +282,13 @@ module Stripe } def initialize(dob: nil); end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. sig { returns(T.nilable(String)) } def funding; end @@ -297,7 +297,7 @@ module Stripe sig { params(funding: T.nilable(String)).void } def initialize(funding: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -340,8 +340,8 @@ module Stripe suffix: nil ); end end - class Oxxo < Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams; end + class P24 < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -350,13 +350,13 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -365,10 +365,10 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } def iban; end @@ -377,7 +377,7 @@ module Stripe sig { params(iban: String).void } def initialize(iban: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. sig { returns(String) } def country; end @@ -386,9 +386,9 @@ module Stripe sig { params(country: String).void } def initialize(country: nil); end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -425,8 +425,8 @@ module Stripe routing_number: nil ); end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. sig { returns(T.nilable(SetupIntentConfirmParams::PaymentMethodData::AcssDebit)) } def acss_debit; end @@ -861,9 +861,9 @@ module Stripe zip: nil ); end end - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # A URL for custom mandate text to render during confirmation step. # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. @@ -928,9 +928,9 @@ module Stripe } def initialize(currency: nil, mandate_options: nil, verification_method: nil); end end - class AmazonPay < Stripe::RequestParams; end - class BacsDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams; end + class BacsDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -953,8 +953,8 @@ module Stripe } def initialize(mandate_options: nil); end end - class Card < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. sig { returns(Integer) } def amount; end @@ -1023,9 +1023,9 @@ module Stripe supported_types: nil ); end end - class ThreeDSecure < Stripe::RequestParams - class NetworkOptions < Stripe::RequestParams - class CartesBancaires < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams + class NetworkOptions < ::Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams # The cryptogram calculation algorithm used by the card Issuer's ACS # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. # messageExtension: CB-AVALGO @@ -1177,9 +1177,9 @@ module Stripe three_d_secure: nil ); end end - class CardPresent < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class OnDemand < Stripe::RequestParams + class CardPresent < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class OnDemand < ::Stripe::RequestParams # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. sig { returns(T.nilable(Integer)) } def average_amount; end @@ -1216,8 +1216,8 @@ module Stripe purchase_interval_count: nil ); end end - class Subscription < Stripe::RequestParams - class NextBilling < Stripe::RequestParams + class Subscription < ::Stripe::RequestParams + class NextBilling < ::Stripe::RequestParams # The amount of the next charge for the subscription. sig { returns(Integer) } def amount; end @@ -1307,7 +1307,7 @@ module Stripe subscriptions: nil ); end end - class Link < Stripe::RequestParams + class Link < ::Stripe::RequestParams # [Deprecated] This is a legacy parameter that no longer has any function. sig { returns(T.nilable(String)) } def persistent_token; end @@ -1316,7 +1316,7 @@ module Stripe sig { params(persistent_token: T.nilable(String)).void } def initialize(persistent_token: nil); end end - class Paypal < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer. sig { returns(T.nilable(String)) } def billing_agreement_id; end @@ -1325,8 +1325,8 @@ module Stripe sig { params(billing_agreement_id: T.nilable(String)).void } def initialize(billing_agreement_id: nil); end end - class SepaDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -1349,9 +1349,9 @@ module Stripe } def initialize(mandate_options: nil); end end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -1395,7 +1395,7 @@ module Stripe } def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil); end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # The method used to collect offline mandate customer acceptance. sig { returns(T.nilable(String)) } def collection_method; end @@ -1404,7 +1404,7 @@ module Stripe sig { params(collection_method: T.nilable(String)).void } def initialize(collection_method: nil); end end - class Networks < Stripe::RequestParams + class Networks < ::Stripe::RequestParams # Triggers validations to run across the selected networks sig { returns(T.nilable(T::Array[String])) } def requested; end diff --git a/rbi/stripe/params/setup_intent_create_params.rbi b/rbi/stripe/params/setup_intent_create_params.rbi index 36946032..3302ffaa 100644 --- a/rbi/stripe/params/setup_intent_create_params.rbi +++ b/rbi/stripe/params/setup_intent_create_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class SetupIntentCreateParams < Stripe::RequestParams - class AutomaticPaymentMethods < Stripe::RequestParams + class SetupIntentCreateParams < ::Stripe::RequestParams + class AutomaticPaymentMethods < ::Stripe::RequestParams # Controls whether this SetupIntent will accept redirect-based payment methods. # # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/setup_intents/confirm) this SetupIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the setup. @@ -20,10 +20,10 @@ module Stripe sig { params(allow_redirects: T.nilable(String), enabled: T::Boolean).void } def initialize(allow_redirects: nil, enabled: nil); end end - class MandateData < Stripe::RequestParams - class CustomerAcceptance < Stripe::RequestParams - class Offline < Stripe::RequestParams; end - class Online < Stripe::RequestParams + class MandateData < ::Stripe::RequestParams + class CustomerAcceptance < ::Stripe::RequestParams + class Offline < ::Stripe::RequestParams; end + class Online < ::Stripe::RequestParams # The IP address from which the Mandate was accepted by the customer. sig { returns(String) } def ip_address; end @@ -80,8 +80,8 @@ module Stripe } def initialize(customer_acceptance: nil); end end - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. sig { returns(String) } def account_number; end @@ -102,12 +102,12 @@ module Stripe } def initialize(account_number: nil, institution_number: nil, transit_number: nil); end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. sig { returns(String) } def account_number; end @@ -121,7 +121,7 @@ module Stripe sig { params(account_number: String, bsb_number: String).void } def initialize(account_number: nil, bsb_number: nil); end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. sig { returns(T.nilable(String)) } def account_number; end @@ -135,10 +135,10 @@ module Stripe sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void } def initialize(account_number: nil, sort_code: nil); end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -215,8 +215,8 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end - class Blik < Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Blik < ::Stripe::RequestParams; end + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) sig { returns(String) } def tax_id; end @@ -225,10 +225,10 @@ module Stripe sig { params(tax_id: String).void } def initialize(tax_id: nil); end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end + class Eps < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -237,7 +237,7 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction sig { returns(T.nilable(String)) } def account_holder_type; end @@ -251,9 +251,9 @@ module Stripe sig { params(account_holder_type: T.nilable(String), bank: String).void } def initialize(account_holder_type: nil, bank: nil); end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. sig { returns(T.nilable(String)) } def bank; end @@ -262,10 +262,10 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -294,13 +294,13 @@ module Stripe sig { params(dob: T.nilable(SetupIntentCreateParams::PaymentMethodData::Klarna::Dob)).void } def initialize(dob: nil); end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. sig { returns(T.nilable(String)) } def funding; end @@ -309,7 +309,7 @@ module Stripe sig { params(funding: T.nilable(String)).void } def initialize(funding: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -352,8 +352,8 @@ module Stripe suffix: nil ); end end - class Oxxo < Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams; end + class P24 < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -362,13 +362,13 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -377,10 +377,10 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } def iban; end @@ -389,7 +389,7 @@ module Stripe sig { params(iban: String).void } def initialize(iban: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. sig { returns(String) } def country; end @@ -398,9 +398,9 @@ module Stripe sig { params(country: String).void } def initialize(country: nil); end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -437,8 +437,8 @@ module Stripe routing_number: nil ); end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. sig { returns(T.nilable(SetupIntentCreateParams::PaymentMethodData::AcssDebit)) } def acss_debit; end @@ -873,9 +873,9 @@ module Stripe zip: nil ); end end - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # A URL for custom mandate text to render during confirmation step. # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. @@ -940,9 +940,9 @@ module Stripe } def initialize(currency: nil, mandate_options: nil, verification_method: nil); end end - class AmazonPay < Stripe::RequestParams; end - class BacsDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams; end + class BacsDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -965,8 +965,8 @@ module Stripe } def initialize(mandate_options: nil); end end - class Card < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. sig { returns(Integer) } def amount; end @@ -1035,9 +1035,9 @@ module Stripe supported_types: nil ); end end - class ThreeDSecure < Stripe::RequestParams - class NetworkOptions < Stripe::RequestParams - class CartesBancaires < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams + class NetworkOptions < ::Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams # The cryptogram calculation algorithm used by the card Issuer's ACS # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. # messageExtension: CB-AVALGO @@ -1189,9 +1189,9 @@ module Stripe three_d_secure: nil ); end end - class CardPresent < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class OnDemand < Stripe::RequestParams + class CardPresent < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class OnDemand < ::Stripe::RequestParams # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. sig { returns(T.nilable(Integer)) } def average_amount; end @@ -1228,8 +1228,8 @@ module Stripe purchase_interval_count: nil ); end end - class Subscription < Stripe::RequestParams - class NextBilling < Stripe::RequestParams + class Subscription < ::Stripe::RequestParams + class NextBilling < ::Stripe::RequestParams # The amount of the next charge for the subscription. sig { returns(Integer) } def amount; end @@ -1319,7 +1319,7 @@ module Stripe subscriptions: nil ); end end - class Link < Stripe::RequestParams + class Link < ::Stripe::RequestParams # [Deprecated] This is a legacy parameter that no longer has any function. sig { returns(T.nilable(String)) } def persistent_token; end @@ -1328,7 +1328,7 @@ module Stripe sig { params(persistent_token: T.nilable(String)).void } def initialize(persistent_token: nil); end end - class Paypal < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer. sig { returns(T.nilable(String)) } def billing_agreement_id; end @@ -1337,8 +1337,8 @@ module Stripe sig { params(billing_agreement_id: T.nilable(String)).void } def initialize(billing_agreement_id: nil); end end - class SepaDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -1361,9 +1361,9 @@ module Stripe } def initialize(mandate_options: nil); end end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -1407,7 +1407,7 @@ module Stripe } def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil); end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # The method used to collect offline mandate customer acceptance. sig { returns(T.nilable(String)) } def collection_method; end @@ -1416,7 +1416,7 @@ module Stripe sig { params(collection_method: T.nilable(String)).void } def initialize(collection_method: nil); end end - class Networks < Stripe::RequestParams + class Networks < ::Stripe::RequestParams # Triggers validations to run across the selected networks sig { returns(T.nilable(T::Array[String])) } def requested; end @@ -1555,7 +1555,7 @@ module Stripe us_bank_account: nil ); end end - class SingleUse < Stripe::RequestParams + class SingleUse < ::Stripe::RequestParams # Amount the customer is granting permission to collect later. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). sig { returns(Integer) } def amount; end @@ -1607,6 +1607,13 @@ module Stripe def description; end sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } def description=(_description); end + # The list of payment method types to exclude from use with this SetupIntent. + sig { returns(T.nilable(T::Array[String])) } + def excluded_payment_method_types; end + sig { + params(_excluded_payment_method_types: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) + } + def excluded_payment_method_types=(_excluded_payment_method_types); end # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -1697,7 +1704,7 @@ module Stripe sig { params(_use_stripe_sdk: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } def use_stripe_sdk=(_use_stripe_sdk); end sig { - params(attach_to_self: T.nilable(T::Boolean), automatic_payment_methods: T.nilable(SetupIntentCreateParams::AutomaticPaymentMethods), confirm: T.nilable(T::Boolean), confirmation_token: T.nilable(String), customer: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), mandate_data: T.nilable(T.any(String, SetupIntentCreateParams::MandateData)), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(SetupIntentCreateParams::PaymentMethodData), payment_method_options: T.nilable(SetupIntentCreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), return_url: T.nilable(String), single_use: T.nilable(SetupIntentCreateParams::SingleUse), usage: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void + params(attach_to_self: T.nilable(T::Boolean), automatic_payment_methods: T.nilable(SetupIntentCreateParams::AutomaticPaymentMethods), confirm: T.nilable(T::Boolean), confirmation_token: T.nilable(String), customer: T.nilable(String), description: T.nilable(String), excluded_payment_method_types: T.nilable(T::Array[String]), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), mandate_data: T.nilable(T.any(String, SetupIntentCreateParams::MandateData)), metadata: T.nilable(T::Hash[String, String]), on_behalf_of: T.nilable(String), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(SetupIntentCreateParams::PaymentMethodData), payment_method_options: T.nilable(SetupIntentCreateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String]), return_url: T.nilable(String), single_use: T.nilable(SetupIntentCreateParams::SingleUse), usage: T.nilable(String), use_stripe_sdk: T.nilable(T::Boolean)).void } def initialize( attach_to_self: nil, @@ -1706,6 +1713,7 @@ module Stripe confirmation_token: nil, customer: nil, description: nil, + excluded_payment_method_types: nil, expand: nil, flow_directions: nil, mandate_data: nil, diff --git a/rbi/stripe/params/setup_intent_list_params.rbi b/rbi/stripe/params/setup_intent_list_params.rbi index 198de69b..4565acaf 100644 --- a/rbi/stripe/params/setup_intent_list_params.rbi +++ b/rbi/stripe/params/setup_intent_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class SetupIntentListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class SetupIntentListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/setup_intent_retrieve_params.rbi b/rbi/stripe/params/setup_intent_retrieve_params.rbi index 39e72295..e26364bb 100644 --- a/rbi/stripe/params/setup_intent_retrieve_params.rbi +++ b/rbi/stripe/params/setup_intent_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class SetupIntentRetrieveParams < Stripe::RequestParams + class SetupIntentRetrieveParams < ::Stripe::RequestParams # The client secret of the SetupIntent. We require this string if you use a publishable key to retrieve the SetupIntent. sig { returns(T.nilable(String)) } def client_secret; end diff --git a/rbi/stripe/params/setup_intent_update_params.rbi b/rbi/stripe/params/setup_intent_update_params.rbi index 69a66a18..c60a5698 100644 --- a/rbi/stripe/params/setup_intent_update_params.rbi +++ b/rbi/stripe/params/setup_intent_update_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class SetupIntentUpdateParams < Stripe::RequestParams - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class SetupIntentUpdateParams < ::Stripe::RequestParams + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. sig { returns(String) } def account_number; end @@ -26,12 +26,12 @@ module Stripe } def initialize(account_number: nil, institution_number: nil, transit_number: nil); end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. sig { returns(String) } def account_number; end @@ -45,7 +45,7 @@ module Stripe sig { params(account_number: String, bsb_number: String).void } def initialize(account_number: nil, bsb_number: nil); end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. sig { returns(T.nilable(String)) } def account_number; end @@ -59,10 +59,10 @@ module Stripe sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void } def initialize(account_number: nil, sort_code: nil); end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -139,8 +139,8 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end - class Blik < Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Blik < ::Stripe::RequestParams; end + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) sig { returns(String) } def tax_id; end @@ -149,10 +149,10 @@ module Stripe sig { params(tax_id: String).void } def initialize(tax_id: nil); end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end + class Eps < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -161,7 +161,7 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction sig { returns(T.nilable(String)) } def account_holder_type; end @@ -175,9 +175,9 @@ module Stripe sig { params(account_holder_type: T.nilable(String), bank: String).void } def initialize(account_holder_type: nil, bank: nil); end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. sig { returns(T.nilable(String)) } def bank; end @@ -186,10 +186,10 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -218,13 +218,13 @@ module Stripe sig { params(dob: T.nilable(SetupIntentUpdateParams::PaymentMethodData::Klarna::Dob)).void } def initialize(dob: nil); end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. sig { returns(T.nilable(String)) } def funding; end @@ -233,7 +233,7 @@ module Stripe sig { params(funding: T.nilable(String)).void } def initialize(funding: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -276,8 +276,8 @@ module Stripe suffix: nil ); end end - class Oxxo < Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams; end + class P24 < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -286,13 +286,13 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -301,10 +301,10 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } def iban; end @@ -313,7 +313,7 @@ module Stripe sig { params(iban: String).void } def initialize(iban: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. sig { returns(String) } def country; end @@ -322,9 +322,9 @@ module Stripe sig { params(country: String).void } def initialize(country: nil); end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -361,8 +361,8 @@ module Stripe routing_number: nil ); end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. sig { returns(T.nilable(SetupIntentUpdateParams::PaymentMethodData::AcssDebit)) } def acss_debit; end @@ -797,9 +797,9 @@ module Stripe zip: nil ); end end - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # A URL for custom mandate text to render during confirmation step. # The URL will be rendered with additional GET parameters `payment_intent` and `payment_intent_client_secret` when confirming a Payment Intent, # or `setup_intent` and `setup_intent_client_secret` when confirming a Setup Intent. @@ -864,9 +864,9 @@ module Stripe } def initialize(currency: nil, mandate_options: nil, verification_method: nil); end end - class AmazonPay < Stripe::RequestParams; end - class BacsDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class AmazonPay < ::Stripe::RequestParams; end + class BacsDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -889,8 +889,8 @@ module Stripe } def initialize(mandate_options: nil); end end - class Card < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. sig { returns(Integer) } def amount; end @@ -959,9 +959,9 @@ module Stripe supported_types: nil ); end end - class ThreeDSecure < Stripe::RequestParams - class NetworkOptions < Stripe::RequestParams - class CartesBancaires < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams + class NetworkOptions < ::Stripe::RequestParams + class CartesBancaires < ::Stripe::RequestParams # The cryptogram calculation algorithm used by the card Issuer's ACS # to calculate the Authentication cryptogram. Also known as `cavvAlgorithm`. # messageExtension: CB-AVALGO @@ -1113,9 +1113,9 @@ module Stripe three_d_secure: nil ); end end - class CardPresent < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class OnDemand < Stripe::RequestParams + class CardPresent < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class OnDemand < ::Stripe::RequestParams # Your average amount value. You can use a value across your customer base, or segment based on customer type, country, etc. sig { returns(T.nilable(Integer)) } def average_amount; end @@ -1152,8 +1152,8 @@ module Stripe purchase_interval_count: nil ); end end - class Subscription < Stripe::RequestParams - class NextBilling < Stripe::RequestParams + class Subscription < ::Stripe::RequestParams + class NextBilling < ::Stripe::RequestParams # The amount of the next charge for the subscription. sig { returns(Integer) } def amount; end @@ -1243,7 +1243,7 @@ module Stripe subscriptions: nil ); end end - class Link < Stripe::RequestParams + class Link < ::Stripe::RequestParams # [Deprecated] This is a legacy parameter that no longer has any function. sig { returns(T.nilable(String)) } def persistent_token; end @@ -1252,7 +1252,7 @@ module Stripe sig { params(persistent_token: T.nilable(String)).void } def initialize(persistent_token: nil); end end - class Paypal < Stripe::RequestParams + class Paypal < ::Stripe::RequestParams # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer. sig { returns(T.nilable(String)) } def billing_agreement_id; end @@ -1261,8 +1261,8 @@ module Stripe sig { params(billing_agreement_id: T.nilable(String)).void } def initialize(billing_agreement_id: nil); end end - class SepaDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class SepaDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -1285,9 +1285,9 @@ module Stripe } def initialize(mandate_options: nil); end end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -1331,7 +1331,7 @@ module Stripe } def initialize(filters: nil, permissions: nil, prefetch: nil, return_url: nil); end end - class MandateOptions < Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # The method used to collect offline mandate customer acceptance. sig { returns(T.nilable(String)) } def collection_method; end @@ -1340,7 +1340,7 @@ module Stripe sig { params(collection_method: T.nilable(String)).void } def initialize(collection_method: nil); end end - class Networks < Stripe::RequestParams + class Networks < ::Stripe::RequestParams # Triggers validations to run across the selected networks sig { returns(T.nilable(T::Array[String])) } def requested; end @@ -1498,6 +1498,13 @@ module Stripe def description; end sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } def description=(_description); end + # The list of payment method types to exclude from use with this SetupIntent. + sig { returns(T.nilable(T.any(String, T::Array[String]))) } + def excluded_payment_method_types; end + sig { + params(_excluded_payment_method_types: T.nilable(T.any(String, T::Array[String]))).returns(T.nilable(T.any(String, T::Array[String]))) + } + def excluded_payment_method_types=(_excluded_payment_method_types); end # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -1552,12 +1559,13 @@ module Stripe } def payment_method_types=(_payment_method_types); end sig { - params(attach_to_self: T.nilable(T::Boolean), customer: T.nilable(String), description: T.nilable(String), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(SetupIntentUpdateParams::PaymentMethodData), payment_method_options: T.nilable(SetupIntentUpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String])).void + params(attach_to_self: T.nilable(T::Boolean), customer: T.nilable(String), description: T.nilable(String), excluded_payment_method_types: T.nilable(T.any(String, T::Array[String])), expand: T.nilable(T::Array[String]), flow_directions: T.nilable(T::Array[String]), metadata: T.nilable(T.any(String, T::Hash[String, String])), payment_method: T.nilable(String), payment_method_configuration: T.nilable(String), payment_method_data: T.nilable(SetupIntentUpdateParams::PaymentMethodData), payment_method_options: T.nilable(SetupIntentUpdateParams::PaymentMethodOptions), payment_method_types: T.nilable(T::Array[String])).void } def initialize( attach_to_self: nil, customer: nil, description: nil, + excluded_payment_method_types: nil, expand: nil, flow_directions: nil, metadata: nil, diff --git a/rbi/stripe/params/setup_intent_verify_microdeposits_params.rbi b/rbi/stripe/params/setup_intent_verify_microdeposits_params.rbi index 79d39917..44ee8b11 100644 --- a/rbi/stripe/params/setup_intent_verify_microdeposits_params.rbi +++ b/rbi/stripe/params/setup_intent_verify_microdeposits_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class SetupIntentVerifyMicrodepositsParams < Stripe::RequestParams + class SetupIntentVerifyMicrodepositsParams < ::Stripe::RequestParams # Two positive integers, in *cents*, equal to the values of the microdeposits sent to the bank account. sig { returns(T.nilable(T::Array[Integer])) } def amounts; end diff --git a/rbi/stripe/params/shipping_rate_create_params.rbi b/rbi/stripe/params/shipping_rate_create_params.rbi index 2961b389..4997292e 100644 --- a/rbi/stripe/params/shipping_rate_create_params.rbi +++ b/rbi/stripe/params/shipping_rate_create_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class ShippingRateCreateParams < Stripe::RequestParams - class DeliveryEstimate < Stripe::RequestParams - class Maximum < Stripe::RequestParams + class ShippingRateCreateParams < ::Stripe::RequestParams + class DeliveryEstimate < ::Stripe::RequestParams + class Maximum < ::Stripe::RequestParams # A unit of time. sig { returns(String) } def unit; end @@ -19,7 +19,7 @@ module Stripe sig { params(unit: String, value: Integer).void } def initialize(unit: nil, value: nil); end end - class Minimum < Stripe::RequestParams + class Minimum < ::Stripe::RequestParams # A unit of time. sig { returns(String) } def unit; end @@ -52,8 +52,8 @@ module Stripe } def initialize(maximum: nil, minimum: nil); end end - class FixedAmount < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class FixedAmount < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A non-negative integer in cents representing how much to charge. sig { returns(Integer) } def amount; end diff --git a/rbi/stripe/params/shipping_rate_list_params.rbi b/rbi/stripe/params/shipping_rate_list_params.rbi index d7b3fc0f..e505c6b8 100644 --- a/rbi/stripe/params/shipping_rate_list_params.rbi +++ b/rbi/stripe/params/shipping_rate_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class ShippingRateListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class ShippingRateListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/shipping_rate_retrieve_params.rbi b/rbi/stripe/params/shipping_rate_retrieve_params.rbi index 269a25f8..e3b0dc51 100644 --- a/rbi/stripe/params/shipping_rate_retrieve_params.rbi +++ b/rbi/stripe/params/shipping_rate_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class ShippingRateRetrieveParams < Stripe::RequestParams + class ShippingRateRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/shipping_rate_update_params.rbi b/rbi/stripe/params/shipping_rate_update_params.rbi index c0904943..7b8643a1 100644 --- a/rbi/stripe/params/shipping_rate_update_params.rbi +++ b/rbi/stripe/params/shipping_rate_update_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class ShippingRateUpdateParams < Stripe::RequestParams - class FixedAmount < Stripe::RequestParams - class CurrencyOptions < Stripe::RequestParams + class ShippingRateUpdateParams < ::Stripe::RequestParams + class FixedAmount < ::Stripe::RequestParams + class CurrencyOptions < ::Stripe::RequestParams # A non-negative integer in cents representing how much to charge. sig { returns(T.nilable(Integer)) } def amount; end diff --git a/rbi/stripe/params/sigma/scheduled_query_run_list_params.rbi b/rbi/stripe/params/sigma/scheduled_query_run_list_params.rbi index 9beae6d8..a7f54c39 100644 --- a/rbi/stripe/params/sigma/scheduled_query_run_list_params.rbi +++ b/rbi/stripe/params/sigma/scheduled_query_run_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Sigma - class ScheduledQueryRunListParams < Stripe::RequestParams + class ScheduledQueryRunListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/sigma/scheduled_query_run_retrieve_params.rbi b/rbi/stripe/params/sigma/scheduled_query_run_retrieve_params.rbi index 1c3dbbe5..87538a53 100644 --- a/rbi/stripe/params/sigma/scheduled_query_run_retrieve_params.rbi +++ b/rbi/stripe/params/sigma/scheduled_query_run_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Sigma - class ScheduledQueryRunRetrieveParams < Stripe::RequestParams + class ScheduledQueryRunRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/source_create_params.rbi b/rbi/stripe/params/source_create_params.rbi index 9704e667..5099248a 100644 --- a/rbi/stripe/params/source_create_params.rbi +++ b/rbi/stripe/params/source_create_params.rbi @@ -3,10 +3,10 @@ # typed: true module Stripe - class SourceCreateParams < Stripe::RequestParams - class Mandate < Stripe::RequestParams - class Acceptance < Stripe::RequestParams - class Offline < Stripe::RequestParams + class SourceCreateParams < ::Stripe::RequestParams + class Mandate < ::Stripe::RequestParams + class Acceptance < ::Stripe::RequestParams + class Offline < ::Stripe::RequestParams # An email to contact you with if a copy of the mandate is requested, required if `type` is `offline`. sig { returns(String) } def contact_email; end @@ -15,7 +15,7 @@ module Stripe sig { params(contact_email: String).void } def initialize(contact_email: nil); end end - class Online < Stripe::RequestParams + class Online < ::Stripe::RequestParams # The Unix timestamp (in seconds) when the mandate was accepted or refused by the customer. sig { returns(T.nilable(Integer)) } def date; end @@ -128,8 +128,8 @@ module Stripe notification_method: nil ); end end - class Owner < Stripe::RequestParams - class Address < Stripe::RequestParams + class Owner < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -199,7 +199,7 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil); end end - class Receiver < Stripe::RequestParams + class Receiver < ::Stripe::RequestParams # The method Stripe should use to request information needed to process a refund or mispayment. Either `email` (an email is sent directly to the customer) or `manual` (a `source.refund_attributes_required` event is sent to your webhooks endpoint). Refer to each payment method's documentation to learn which refund attributes may be required. sig { returns(T.nilable(String)) } def refund_attributes_method; end @@ -208,7 +208,7 @@ module Stripe sig { params(refund_attributes_method: T.nilable(String)).void } def initialize(refund_attributes_method: nil); end end - class Redirect < Stripe::RequestParams + class Redirect < ::Stripe::RequestParams # The URL you provide to redirect the customer back to you after they authenticated their payment. It can use your application URI scheme in the context of a mobile application. sig { returns(String) } def return_url; end @@ -217,8 +217,8 @@ module Stripe sig { params(return_url: String).void } def initialize(return_url: nil); end end - class SourceOrder < Stripe::RequestParams - class Item < Stripe::RequestParams + class SourceOrder < ::Stripe::RequestParams + class Item < ::Stripe::RequestParams # Attribute for param field amount sig { returns(T.nilable(Integer)) } def amount; end @@ -261,8 +261,8 @@ module Stripe type: nil ); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end diff --git a/rbi/stripe/params/source_detach_params.rbi b/rbi/stripe/params/source_detach_params.rbi index e092a800..6f6cf7cd 100644 --- a/rbi/stripe/params/source_detach_params.rbi +++ b/rbi/stripe/params/source_detach_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class SourceDetachParams < Stripe::RequestParams + class SourceDetachParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/source_retrieve_params.rbi b/rbi/stripe/params/source_retrieve_params.rbi index 701f2f23..570dff95 100644 --- a/rbi/stripe/params/source_retrieve_params.rbi +++ b/rbi/stripe/params/source_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class SourceRetrieveParams < Stripe::RequestParams + class SourceRetrieveParams < ::Stripe::RequestParams # The client secret of the source. Required if a publishable key is used to retrieve the source. sig { returns(T.nilable(String)) } def client_secret; end diff --git a/rbi/stripe/params/source_transaction_list_params.rbi b/rbi/stripe/params/source_transaction_list_params.rbi index 872464ef..9f778e44 100644 --- a/rbi/stripe/params/source_transaction_list_params.rbi +++ b/rbi/stripe/params/source_transaction_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class SourceTransactionListParams < Stripe::RequestParams + class SourceTransactionListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/source_update_params.rbi b/rbi/stripe/params/source_update_params.rbi index e80c7867..aade4bb3 100644 --- a/rbi/stripe/params/source_update_params.rbi +++ b/rbi/stripe/params/source_update_params.rbi @@ -3,10 +3,10 @@ # typed: true module Stripe - class SourceUpdateParams < Stripe::RequestParams - class Mandate < Stripe::RequestParams - class Acceptance < Stripe::RequestParams - class Offline < Stripe::RequestParams + class SourceUpdateParams < ::Stripe::RequestParams + class Mandate < ::Stripe::RequestParams + class Acceptance < ::Stripe::RequestParams + class Offline < ::Stripe::RequestParams # An email to contact you with if a copy of the mandate is requested, required if `type` is `offline`. sig { returns(String) } def contact_email; end @@ -15,7 +15,7 @@ module Stripe sig { params(contact_email: String).void } def initialize(contact_email: nil); end end - class Online < Stripe::RequestParams + class Online < ::Stripe::RequestParams # The Unix timestamp (in seconds) when the mandate was accepted or refused by the customer. sig { returns(T.nilable(Integer)) } def date; end @@ -128,8 +128,8 @@ module Stripe notification_method: nil ); end end - class Owner < Stripe::RequestParams - class Address < Stripe::RequestParams + class Owner < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -199,8 +199,8 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil); end end - class SourceOrder < Stripe::RequestParams - class Item < Stripe::RequestParams + class SourceOrder < ::Stripe::RequestParams + class Item < ::Stripe::RequestParams # Attribute for param field amount sig { returns(T.nilable(Integer)) } def amount; end @@ -243,8 +243,8 @@ module Stripe type: nil ); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end diff --git a/rbi/stripe/params/source_verify_params.rbi b/rbi/stripe/params/source_verify_params.rbi index e6bf6867..e8c27866 100644 --- a/rbi/stripe/params/source_verify_params.rbi +++ b/rbi/stripe/params/source_verify_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class SourceVerifyParams < Stripe::RequestParams + class SourceVerifyParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/subscription_cancel_params.rbi b/rbi/stripe/params/subscription_cancel_params.rbi index c5c584a9..98865615 100644 --- a/rbi/stripe/params/subscription_cancel_params.rbi +++ b/rbi/stripe/params/subscription_cancel_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class SubscriptionCancelParams < Stripe::RequestParams - class CancellationDetails < Stripe::RequestParams + class SubscriptionCancelParams < ::Stripe::RequestParams + class CancellationDetails < ::Stripe::RequestParams # Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user. sig { returns(T.nilable(String)) } def comment; end diff --git a/rbi/stripe/params/subscription_create_params.rbi b/rbi/stripe/params/subscription_create_params.rbi index e31feaf0..4c3196c0 100644 --- a/rbi/stripe/params/subscription_create_params.rbi +++ b/rbi/stripe/params/subscription_create_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class SubscriptionCreateParams < Stripe::RequestParams - class AddInvoiceItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class SubscriptionCreateParams < ::Stripe::RequestParams + class AddInvoiceItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -26,8 +26,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Period < Stripe::RequestParams - class End < Stripe::RequestParams + class Period < ::Stripe::RequestParams + class End < ::Stripe::RequestParams # A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -41,7 +41,7 @@ module Stripe sig { params(timestamp: T.nilable(Integer), type: String).void } def initialize(timestamp: nil, type: nil); end end - class Start < Stripe::RequestParams + class Start < ::Stripe::RequestParams # A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -74,7 +74,7 @@ module Stripe } def initialize(end_: nil, start: nil); end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -169,8 +169,8 @@ module Stripe tax_rates: nil ); end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -201,7 +201,7 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class BillingCycleAnchorConfig < Stripe::RequestParams + class BillingCycleAnchorConfig < ::Stripe::RequestParams # The day of the month the anchor should be. Ranges from 1 to 31. sig { returns(Integer) } def day_of_month; end @@ -232,8 +232,8 @@ module Stripe } def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil); end end - class BillingMode < Stripe::RequestParams - class Flexible < Stripe::RequestParams + class BillingMode < ::Stripe::RequestParams + class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. sig { returns(T.nilable(String)) } def proration_discounts; end @@ -259,7 +259,7 @@ module Stripe } def initialize(flexible: nil, type: nil); end end - class BillingThresholds < Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period sig { returns(T.nilable(Integer)) } def amount_gte; end @@ -277,7 +277,7 @@ module Stripe } def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -298,8 +298,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -332,8 +332,8 @@ module Stripe } def initialize(account_tax_ids: nil, issuer: nil); end end - class Item < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class Item < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) sig { returns(Integer) } def usage_gte; end @@ -342,7 +342,7 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -363,8 +363,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -486,10 +486,10 @@ module Stripe tax_rates: nil ); end end - class PaymentSettings < Stripe::RequestParams - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentSettings < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Transaction type of the mandate. sig { returns(T.nilable(String)) } def transaction_type; end @@ -517,7 +517,7 @@ module Stripe } def initialize(mandate_options: nil, verification_method: nil); end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Preferred language of the Bancontact authorization page that the customer is redirected to. sig { returns(T.nilable(String)) } def preferred_language; end @@ -526,8 +526,8 @@ module Stripe sig { params(preferred_language: T.nilable(String)).void } def initialize(preferred_language: nil); end end - class Card < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. sig { returns(T.nilable(Integer)) } def amount; end @@ -572,9 +572,9 @@ module Stripe } def initialize(mandate_options: nil, network: nil, request_three_d_secure: nil); end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -621,11 +621,11 @@ module Stripe } def initialize(bank_transfer: nil, funding_type: nil); end end - class Konbini < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -787,7 +787,7 @@ module Stripe save_default_payment_method: nil ); end end - class PendingInvoiceItemInterval < Stripe::RequestParams + class PendingInvoiceItemInterval < ::Stripe::RequestParams # Specifies invoicing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -801,7 +801,7 @@ module Stripe sig { params(interval: String, interval_count: T.nilable(Integer)).void } def initialize(interval: nil, interval_count: nil); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Float)) } def amount_percent; end @@ -815,8 +815,8 @@ module Stripe sig { params(amount_percent: T.nilable(Float), destination: String).void } def initialize(amount_percent: nil, destination: nil); end end - class TrialSettings < Stripe::RequestParams - class EndBehavior < Stripe::RequestParams + class TrialSettings < ::Stripe::RequestParams + class EndBehavior < ::Stripe::RequestParams # Indicates how the subscription should change when the trial ends if the user did not provide a payment method. sig { returns(String) } def missing_payment_method; end diff --git a/rbi/stripe/params/subscription_delete_discount_params.rbi b/rbi/stripe/params/subscription_delete_discount_params.rbi index 3e4c3f21..32471a9d 100644 --- a/rbi/stripe/params/subscription_delete_discount_params.rbi +++ b/rbi/stripe/params/subscription_delete_discount_params.rbi @@ -3,5 +3,5 @@ # typed: true module Stripe - class SubscriptionDeleteDiscountParams < Stripe::RequestParams; end + class SubscriptionDeleteDiscountParams < ::Stripe::RequestParams; end end \ No newline at end of file diff --git a/rbi/stripe/params/subscription_item_create_params.rbi b/rbi/stripe/params/subscription_item_create_params.rbi index e0a78a64..eaa93595 100644 --- a/rbi/stripe/params/subscription_item_create_params.rbi +++ b/rbi/stripe/params/subscription_item_create_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class SubscriptionItemCreateParams < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class SubscriptionItemCreateParams < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) sig { returns(Integer) } def usage_gte; end @@ -13,7 +13,7 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -34,8 +34,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end diff --git a/rbi/stripe/params/subscription_item_delete_params.rbi b/rbi/stripe/params/subscription_item_delete_params.rbi index 1187c9d4..a3230192 100644 --- a/rbi/stripe/params/subscription_item_delete_params.rbi +++ b/rbi/stripe/params/subscription_item_delete_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class SubscriptionItemDeleteParams < Stripe::RequestParams + class SubscriptionItemDeleteParams < ::Stripe::RequestParams # Delete all usage for the given subscription item. Allowed only when the current plan's `usage_type` is `metered`. sig { returns(T.nilable(T::Boolean)) } def clear_usage; end diff --git a/rbi/stripe/params/subscription_item_list_params.rbi b/rbi/stripe/params/subscription_item_list_params.rbi index eaaa8dba..2858f2b3 100644 --- a/rbi/stripe/params/subscription_item_list_params.rbi +++ b/rbi/stripe/params/subscription_item_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class SubscriptionItemListParams < Stripe::RequestParams + class SubscriptionItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/subscription_item_retrieve_params.rbi b/rbi/stripe/params/subscription_item_retrieve_params.rbi index b071a943..97e59aa1 100644 --- a/rbi/stripe/params/subscription_item_retrieve_params.rbi +++ b/rbi/stripe/params/subscription_item_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class SubscriptionItemRetrieveParams < Stripe::RequestParams + class SubscriptionItemRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/subscription_item_update_params.rbi b/rbi/stripe/params/subscription_item_update_params.rbi index 48b691bc..df6dbf1a 100644 --- a/rbi/stripe/params/subscription_item_update_params.rbi +++ b/rbi/stripe/params/subscription_item_update_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class SubscriptionItemUpdateParams < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class SubscriptionItemUpdateParams < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) sig { returns(Integer) } def usage_gte; end @@ -13,7 +13,7 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -34,8 +34,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end diff --git a/rbi/stripe/params/subscription_list_params.rbi b/rbi/stripe/params/subscription_list_params.rbi index 754aba7d..316d82a7 100644 --- a/rbi/stripe/params/subscription_list_params.rbi +++ b/rbi/stripe/params/subscription_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class SubscriptionListParams < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams + class SubscriptionListParams < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams # Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription. sig { returns(T::Boolean) } def enabled; end @@ -13,7 +13,7 @@ module Stripe sig { params(enabled: T::Boolean).void } def initialize(enabled: nil); end end - class Created < Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -39,7 +39,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class CurrentPeriodEnd < Stripe::RequestParams + class CurrentPeriodEnd < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -65,7 +65,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class CurrentPeriodStart < Stripe::RequestParams + class CurrentPeriodStart < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/subscription_migrate_params.rbi b/rbi/stripe/params/subscription_migrate_params.rbi index 1f465ba7..dc6529e2 100644 --- a/rbi/stripe/params/subscription_migrate_params.rbi +++ b/rbi/stripe/params/subscription_migrate_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class SubscriptionMigrateParams < Stripe::RequestParams - class BillingMode < Stripe::RequestParams - class Flexible < Stripe::RequestParams + class SubscriptionMigrateParams < ::Stripe::RequestParams + class BillingMode < ::Stripe::RequestParams + class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. sig { returns(T.nilable(String)) } def proration_discounts; end diff --git a/rbi/stripe/params/subscription_resume_params.rbi b/rbi/stripe/params/subscription_resume_params.rbi index efc2b70b..bf9841c1 100644 --- a/rbi/stripe/params/subscription_resume_params.rbi +++ b/rbi/stripe/params/subscription_resume_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class SubscriptionResumeParams < Stripe::RequestParams + class SubscriptionResumeParams < ::Stripe::RequestParams # The billing cycle anchor that applies when the subscription is resumed. Either `now` or `unchanged`. The default is `now`. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle). sig { returns(T.nilable(String)) } def billing_cycle_anchor; end diff --git a/rbi/stripe/params/subscription_retrieve_params.rbi b/rbi/stripe/params/subscription_retrieve_params.rbi index 0df9b8e2..9ade8ebf 100644 --- a/rbi/stripe/params/subscription_retrieve_params.rbi +++ b/rbi/stripe/params/subscription_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class SubscriptionRetrieveParams < Stripe::RequestParams + class SubscriptionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/subscription_schedule_cancel_params.rbi b/rbi/stripe/params/subscription_schedule_cancel_params.rbi index 14fd7dff..7d125b1c 100644 --- a/rbi/stripe/params/subscription_schedule_cancel_params.rbi +++ b/rbi/stripe/params/subscription_schedule_cancel_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class SubscriptionScheduleCancelParams < Stripe::RequestParams + class SubscriptionScheduleCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/subscription_schedule_create_params.rbi b/rbi/stripe/params/subscription_schedule_create_params.rbi index 41b7c6f4..cee3ff00 100644 --- a/rbi/stripe/params/subscription_schedule_create_params.rbi +++ b/rbi/stripe/params/subscription_schedule_create_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class SubscriptionScheduleCreateParams < Stripe::RequestParams - class BillingMode < Stripe::RequestParams - class Flexible < Stripe::RequestParams + class SubscriptionScheduleCreateParams < ::Stripe::RequestParams + class BillingMode < ::Stripe::RequestParams + class Flexible < ::Stripe::RequestParams # Controls how invoices and invoice items display proration amounts and discount amounts. sig { returns(T.nilable(String)) } def proration_discounts; end @@ -31,9 +31,9 @@ module Stripe } def initialize(flexible: nil, type: nil); end end - class DefaultSettings < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class DefaultSettings < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -66,7 +66,7 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class BillingThresholds < Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period sig { returns(T.nilable(Integer)) } def amount_gte; end @@ -84,8 +84,8 @@ module Stripe } def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil); end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -125,7 +125,7 @@ module Stripe } def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Float)) } def amount_percent; end @@ -217,9 +217,9 @@ module Stripe transfer_data: nil ); end end - class Phase < Stripe::RequestParams - class AddInvoiceItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class Phase < ::Stripe::RequestParams + class AddInvoiceItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -240,8 +240,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Period < Stripe::RequestParams - class End < Stripe::RequestParams + class Period < ::Stripe::RequestParams + class End < ::Stripe::RequestParams # A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -255,7 +255,7 @@ module Stripe sig { params(timestamp: T.nilable(Integer), type: String).void } def initialize(timestamp: nil, type: nil); end end - class Start < Stripe::RequestParams + class Start < ::Stripe::RequestParams # A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -288,7 +288,7 @@ module Stripe } def initialize(end_: nil, start: nil); end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -387,8 +387,8 @@ module Stripe tax_rates: nil ); end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -419,7 +419,7 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class BillingThresholds < Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period sig { returns(T.nilable(Integer)) } def amount_gte; end @@ -437,7 +437,7 @@ module Stripe } def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -458,7 +458,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Duration < Stripe::RequestParams + class Duration < ::Stripe::RequestParams # Specifies phase duration. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -472,8 +472,8 @@ module Stripe sig { params(interval: String, interval_count: T.nilable(Integer)).void } def initialize(interval: nil, interval_count: nil); end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -511,8 +511,8 @@ module Stripe } def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil); end end - class Item < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class Item < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) sig { returns(Integer) } def usage_gte; end @@ -521,7 +521,7 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -542,8 +542,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -669,7 +669,7 @@ module Stripe tax_rates: nil ); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Float)) } def amount_percent; end diff --git a/rbi/stripe/params/subscription_schedule_list_params.rbi b/rbi/stripe/params/subscription_schedule_list_params.rbi index 75e19cb4..0cd804b7 100644 --- a/rbi/stripe/params/subscription_schedule_list_params.rbi +++ b/rbi/stripe/params/subscription_schedule_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class SubscriptionScheduleListParams < Stripe::RequestParams - class CanceledAt < Stripe::RequestParams + class SubscriptionScheduleListParams < ::Stripe::RequestParams + class CanceledAt < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -30,7 +30,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class CompletedAt < Stripe::RequestParams + class CompletedAt < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -56,7 +56,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class Created < Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -82,7 +82,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class ReleasedAt < Stripe::RequestParams + class ReleasedAt < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/subscription_schedule_release_params.rbi b/rbi/stripe/params/subscription_schedule_release_params.rbi index 004dde1b..29afe23c 100644 --- a/rbi/stripe/params/subscription_schedule_release_params.rbi +++ b/rbi/stripe/params/subscription_schedule_release_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class SubscriptionScheduleReleaseParams < Stripe::RequestParams + class SubscriptionScheduleReleaseParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/subscription_schedule_retrieve_params.rbi b/rbi/stripe/params/subscription_schedule_retrieve_params.rbi index a620eee2..0a942376 100644 --- a/rbi/stripe/params/subscription_schedule_retrieve_params.rbi +++ b/rbi/stripe/params/subscription_schedule_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class SubscriptionScheduleRetrieveParams < Stripe::RequestParams + class SubscriptionScheduleRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/subscription_schedule_update_params.rbi b/rbi/stripe/params/subscription_schedule_update_params.rbi index bce2099f..c97b7197 100644 --- a/rbi/stripe/params/subscription_schedule_update_params.rbi +++ b/rbi/stripe/params/subscription_schedule_update_params.rbi @@ -3,10 +3,10 @@ # typed: true module Stripe - class SubscriptionScheduleUpdateParams < Stripe::RequestParams - class DefaultSettings < Stripe::RequestParams - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class SubscriptionScheduleUpdateParams < ::Stripe::RequestParams + class DefaultSettings < ::Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -39,7 +39,7 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class BillingThresholds < Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period sig { returns(T.nilable(Integer)) } def amount_gte; end @@ -57,8 +57,8 @@ module Stripe } def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil); end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -98,7 +98,7 @@ module Stripe } def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Float)) } def amount_percent; end @@ -190,9 +190,9 @@ module Stripe transfer_data: nil ); end end - class Phase < Stripe::RequestParams - class AddInvoiceItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class Phase < ::Stripe::RequestParams + class AddInvoiceItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -213,8 +213,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Period < Stripe::RequestParams - class End < Stripe::RequestParams + class Period < ::Stripe::RequestParams + class End < ::Stripe::RequestParams # A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -228,7 +228,7 @@ module Stripe sig { params(timestamp: T.nilable(Integer), type: String).void } def initialize(timestamp: nil, type: nil); end end - class Start < Stripe::RequestParams + class Start < ::Stripe::RequestParams # A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -261,7 +261,7 @@ module Stripe } def initialize(end_: nil, start: nil); end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -360,8 +360,8 @@ module Stripe tax_rates: nil ); end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -392,7 +392,7 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class BillingThresholds < Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period sig { returns(T.nilable(Integer)) } def amount_gte; end @@ -410,7 +410,7 @@ module Stripe } def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -431,7 +431,7 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Duration < Stripe::RequestParams + class Duration < ::Stripe::RequestParams # Specifies phase duration. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -445,8 +445,8 @@ module Stripe sig { params(interval: String, interval_count: T.nilable(Integer)).void } def initialize(interval: nil, interval_count: nil); end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -484,8 +484,8 @@ module Stripe } def initialize(account_tax_ids: nil, days_until_due: nil, issuer: nil); end end - class Item < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class Item < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) sig { returns(Integer) } def usage_gte; end @@ -494,7 +494,7 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -515,8 +515,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -642,7 +642,7 @@ module Stripe tax_rates: nil ); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Float)) } def amount_percent; end diff --git a/rbi/stripe/params/subscription_search_params.rbi b/rbi/stripe/params/subscription_search_params.rbi index 891ad594..4e388d0d 100644 --- a/rbi/stripe/params/subscription_search_params.rbi +++ b/rbi/stripe/params/subscription_search_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class SubscriptionSearchParams < Stripe::RequestParams + class SubscriptionSearchParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/subscription_update_params.rbi b/rbi/stripe/params/subscription_update_params.rbi index 8afef984..7b355ff3 100644 --- a/rbi/stripe/params/subscription_update_params.rbi +++ b/rbi/stripe/params/subscription_update_params.rbi @@ -3,9 +3,9 @@ # typed: true module Stripe - class SubscriptionUpdateParams < Stripe::RequestParams - class AddInvoiceItem < Stripe::RequestParams - class Discount < Stripe::RequestParams + class SubscriptionUpdateParams < ::Stripe::RequestParams + class AddInvoiceItem < ::Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -26,8 +26,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class Period < Stripe::RequestParams - class End < Stripe::RequestParams + class Period < ::Stripe::RequestParams + class End < ::Stripe::RequestParams # A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -41,7 +41,7 @@ module Stripe sig { params(timestamp: T.nilable(Integer), type: String).void } def initialize(timestamp: nil, type: nil); end end - class Start < Stripe::RequestParams + class Start < ::Stripe::RequestParams # A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -74,7 +74,7 @@ module Stripe } def initialize(end_: nil, start: nil); end end - class PriceData < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -169,8 +169,8 @@ module Stripe tax_rates: nil ); end end - class AutomaticTax < Stripe::RequestParams - class Liability < Stripe::RequestParams + class AutomaticTax < ::Stripe::RequestParams + class Liability < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -201,7 +201,7 @@ module Stripe } def initialize(enabled: nil, liability: nil); end end - class BillingThresholds < Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Monetary threshold that triggers the subscription to advance to a new billing period sig { returns(T.nilable(Integer)) } def amount_gte; end @@ -219,7 +219,7 @@ module Stripe } def initialize(amount_gte: nil, reset_billing_cycle_anchor: nil); end end - class CancellationDetails < Stripe::RequestParams + class CancellationDetails < ::Stripe::RequestParams # Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user. sig { returns(T.nilable(String)) } def comment; end @@ -235,7 +235,7 @@ module Stripe sig { params(comment: T.nilable(String), feedback: T.nilable(T.any(String, String))).void } def initialize(comment: nil, feedback: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -256,8 +256,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class InvoiceSettings < Stripe::RequestParams - class Issuer < Stripe::RequestParams + class InvoiceSettings < ::Stripe::RequestParams + class Issuer < ::Stripe::RequestParams # The connected account being referenced when `type` is `account`. sig { returns(T.nilable(String)) } def account; end @@ -290,8 +290,8 @@ module Stripe } def initialize(account_tax_ids: nil, issuer: nil); end end - class Item < Stripe::RequestParams - class BillingThresholds < Stripe::RequestParams + class Item < ::Stripe::RequestParams + class BillingThresholds < ::Stripe::RequestParams # Number of units that meets the billing threshold to advance the subscription to a new billing period (e.g., it takes 10 $5 units to meet a $50 [monetary threshold](https://stripe.com/docs/api/subscriptions/update#update_subscription-billing_thresholds-amount_gte)) sig { returns(Integer) } def usage_gte; end @@ -300,7 +300,7 @@ module Stripe sig { params(usage_gte: Integer).void } def initialize(usage_gte: nil); end end - class Discount < Stripe::RequestParams + class Discount < ::Stripe::RequestParams # ID of the coupon to create a new discount for. sig { returns(T.nilable(String)) } def coupon; end @@ -321,8 +321,8 @@ module Stripe } def initialize(coupon: nil, discount: nil, promotion_code: nil); end end - class PriceData < Stripe::RequestParams - class Recurring < Stripe::RequestParams + class PriceData < ::Stripe::RequestParams + class Recurring < ::Stripe::RequestParams # Specifies billing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -462,7 +462,7 @@ module Stripe tax_rates: nil ); end end - class PauseCollection < Stripe::RequestParams + class PauseCollection < ::Stripe::RequestParams # The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`. sig { returns(String) } def behavior; end @@ -476,10 +476,10 @@ module Stripe sig { params(behavior: String, resumes_at: T.nilable(Integer)).void } def initialize(behavior: nil, resumes_at: nil); end end - class PaymentSettings < Stripe::RequestParams - class PaymentMethodOptions < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class PaymentSettings < ::Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Transaction type of the mandate. sig { returns(T.nilable(String)) } def transaction_type; end @@ -507,7 +507,7 @@ module Stripe } def initialize(mandate_options: nil, verification_method: nil); end end - class Bancontact < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams # Preferred language of the Bancontact authorization page that the customer is redirected to. sig { returns(T.nilable(String)) } def preferred_language; end @@ -516,8 +516,8 @@ module Stripe sig { params(preferred_language: T.nilable(String)).void } def initialize(preferred_language: nil); end end - class Card < Stripe::RequestParams - class MandateOptions < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class MandateOptions < ::Stripe::RequestParams # Amount to be charged for future payments. sig { returns(T.nilable(Integer)) } def amount; end @@ -562,9 +562,9 @@ module Stripe } def initialize(mandate_options: nil, network: nil, request_three_d_secure: nil); end end - class CustomerBalance < Stripe::RequestParams - class BankTransfer < Stripe::RequestParams - class EuBankTransfer < Stripe::RequestParams + class CustomerBalance < ::Stripe::RequestParams + class BankTransfer < ::Stripe::RequestParams + class EuBankTransfer < ::Stripe::RequestParams # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -611,11 +611,11 @@ module Stripe } def initialize(bank_transfer: nil, funding_type: nil); end end - class Konbini < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams - class FinancialConnections < Stripe::RequestParams - class Filters < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams + class FinancialConnections < ::Stripe::RequestParams + class Filters < ::Stripe::RequestParams # The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -777,7 +777,7 @@ module Stripe save_default_payment_method: nil ); end end - class PendingInvoiceItemInterval < Stripe::RequestParams + class PendingInvoiceItemInterval < ::Stripe::RequestParams # Specifies invoicing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -791,7 +791,7 @@ module Stripe sig { params(interval: String, interval_count: T.nilable(Integer)).void } def initialize(interval: nil, interval_count: nil); end end - class TransferData < Stripe::RequestParams + class TransferData < ::Stripe::RequestParams # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Float)) } def amount_percent; end @@ -805,8 +805,8 @@ module Stripe sig { params(amount_percent: T.nilable(Float), destination: String).void } def initialize(amount_percent: nil, destination: nil); end end - class TrialSettings < Stripe::RequestParams - class EndBehavior < Stripe::RequestParams + class TrialSettings < ::Stripe::RequestParams + class EndBehavior < ::Stripe::RequestParams # Indicates how the subscription should change when the trial ends if the user did not provide a payment method. sig { returns(String) } def missing_payment_method; end diff --git a/rbi/stripe/params/tax/calculation_create_params.rbi b/rbi/stripe/params/tax/calculation_create_params.rbi index d66aff38..99c92a84 100644 --- a/rbi/stripe/params/tax/calculation_create_params.rbi +++ b/rbi/stripe/params/tax/calculation_create_params.rbi @@ -4,9 +4,9 @@ # typed: true module Stripe module Tax - class CalculationCreateParams < Stripe::RequestParams - class CustomerDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class CalculationCreateParams < ::Stripe::RequestParams + class CustomerDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -49,7 +49,7 @@ module Stripe state: nil ); end end - class TaxId < Stripe::RequestParams + class TaxId < ::Stripe::RequestParams # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` sig { returns(String) } def type; end @@ -103,7 +103,7 @@ module Stripe taxability_override: nil ); end end - class LineItem < Stripe::RequestParams + class LineItem < ::Stripe::RequestParams # A positive integer representing the line item's total price in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). # If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes are calculated on top of this amount. sig { returns(Integer) } @@ -155,8 +155,8 @@ module Stripe tax_code: nil ); end end - class ShipFromDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class ShipFromDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -209,7 +209,7 @@ module Stripe sig { params(address: Tax::CalculationCreateParams::ShipFromDetails::Address).void } def initialize(address: nil); end end - class ShippingCost < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams # A positive integer in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) representing the shipping charge. If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes are calculated on top of this amount. sig { returns(T.nilable(Integer)) } def amount; end diff --git a/rbi/stripe/params/tax/calculation_line_item_list_params.rbi b/rbi/stripe/params/tax/calculation_line_item_list_params.rbi index 84bdb564..e8451566 100644 --- a/rbi/stripe/params/tax/calculation_line_item_list_params.rbi +++ b/rbi/stripe/params/tax/calculation_line_item_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Tax - class CalculationLineItemListParams < Stripe::RequestParams + class CalculationLineItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/tax/calculation_list_line_items_params.rbi b/rbi/stripe/params/tax/calculation_list_line_items_params.rbi index 9fc0024e..241d44c5 100644 --- a/rbi/stripe/params/tax/calculation_list_line_items_params.rbi +++ b/rbi/stripe/params/tax/calculation_list_line_items_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Tax - class CalculationListLineItemsParams < Stripe::RequestParams + class CalculationListLineItemsParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/tax/calculation_retrieve_params.rbi b/rbi/stripe/params/tax/calculation_retrieve_params.rbi index ef9f17bb..105616ac 100644 --- a/rbi/stripe/params/tax/calculation_retrieve_params.rbi +++ b/rbi/stripe/params/tax/calculation_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Tax - class CalculationRetrieveParams < Stripe::RequestParams + class CalculationRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/tax/registration_create_params.rbi b/rbi/stripe/params/tax/registration_create_params.rbi index 92967acb..2a546c40 100644 --- a/rbi/stripe/params/tax/registration_create_params.rbi +++ b/rbi/stripe/params/tax/registration_create_params.rbi @@ -4,10 +4,10 @@ # typed: true module Stripe module Tax - class RegistrationCreateParams < Stripe::RequestParams - class CountryOptions < Stripe::RequestParams - class Ae < Stripe::RequestParams - class Standard < Stripe::RequestParams + class RegistrationCreateParams < ::Stripe::RequestParams + class CountryOptions < ::Stripe::RequestParams + class Ae < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -33,8 +33,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Al < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Al < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -60,7 +60,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Am < Stripe::RequestParams + class Am < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -69,8 +69,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Ao < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Ao < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -96,8 +96,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class At < Stripe::RequestParams - class Standard < Stripe::RequestParams + class At < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -123,8 +123,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Au < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Au < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -150,8 +150,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Aw < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Aw < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -177,7 +177,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Az < Stripe::RequestParams + class Az < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -186,8 +186,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Ba < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Ba < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -213,8 +213,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Bb < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Bb < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -240,8 +240,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Bd < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Bd < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -267,8 +267,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Be < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Be < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -294,8 +294,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Bf < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Bf < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -321,8 +321,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Bg < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Bg < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -348,8 +348,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Bh < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Bh < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -375,7 +375,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Bj < Stripe::RequestParams + class Bj < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -384,8 +384,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Bs < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Bs < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -411,7 +411,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class By < Stripe::RequestParams + class By < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -420,8 +420,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Ca < Stripe::RequestParams - class ProvinceStandard < Stripe::RequestParams + class Ca < ::Stripe::RequestParams + class ProvinceStandard < ::Stripe::RequestParams # Two-letter CA province code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). sig { returns(String) } def province; end @@ -449,8 +449,8 @@ module Stripe } def initialize(province_standard: nil, type: nil); end end - class Cd < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Cd < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -476,8 +476,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Ch < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Ch < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -503,7 +503,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Cl < Stripe::RequestParams + class Cl < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -512,7 +512,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Cm < Stripe::RequestParams + class Cm < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -521,7 +521,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Co < Stripe::RequestParams + class Co < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -530,7 +530,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Cr < Stripe::RequestParams + class Cr < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -539,7 +539,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Cv < Stripe::RequestParams + class Cv < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -548,8 +548,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Cy < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Cy < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -575,8 +575,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Cz < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Cz < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -602,8 +602,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class De < Stripe::RequestParams - class Standard < Stripe::RequestParams + class De < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -629,8 +629,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Dk < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Dk < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -656,7 +656,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Ec < Stripe::RequestParams + class Ec < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -665,8 +665,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Ee < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Ee < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -692,7 +692,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Eg < Stripe::RequestParams + class Eg < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -701,8 +701,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Es < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Es < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -728,8 +728,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Et < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Et < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -755,8 +755,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Fi < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Fi < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -782,8 +782,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Fr < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Fr < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -809,8 +809,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Gb < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Gb < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -836,7 +836,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Ge < Stripe::RequestParams + class Ge < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -845,8 +845,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Gn < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Gn < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -872,8 +872,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Gr < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Gr < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -899,8 +899,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Hr < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Hr < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -926,8 +926,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Hu < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Hu < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -953,7 +953,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Id < Stripe::RequestParams + class Id < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -962,8 +962,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Ie < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Ie < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -989,7 +989,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class In < Stripe::RequestParams + class In < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -998,8 +998,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Is < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Is < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -1025,8 +1025,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class It < Stripe::RequestParams - class Standard < Stripe::RequestParams + class It < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1052,8 +1052,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Jp < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Jp < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -1079,7 +1079,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Ke < Stripe::RequestParams + class Ke < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1088,7 +1088,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Kg < Stripe::RequestParams + class Kg < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1097,7 +1097,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Kh < Stripe::RequestParams + class Kh < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1106,7 +1106,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Kr < Stripe::RequestParams + class Kr < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1115,7 +1115,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Kz < Stripe::RequestParams + class Kz < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1124,7 +1124,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class La < Stripe::RequestParams + class La < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1133,8 +1133,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Lt < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Lt < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1160,8 +1160,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Lu < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Lu < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1187,8 +1187,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Lv < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Lv < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1214,7 +1214,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Ma < Stripe::RequestParams + class Ma < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1223,7 +1223,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Md < Stripe::RequestParams + class Md < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1232,8 +1232,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Me < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Me < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -1259,8 +1259,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Mk < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Mk < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -1286,8 +1286,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Mr < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Mr < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -1313,8 +1313,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Mt < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Mt < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1340,7 +1340,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Mx < Stripe::RequestParams + class Mx < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1349,7 +1349,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class My < Stripe::RequestParams + class My < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1358,7 +1358,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Ng < Stripe::RequestParams + class Ng < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1367,8 +1367,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Nl < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Nl < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1394,8 +1394,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class No < Stripe::RequestParams - class Standard < Stripe::RequestParams + class No < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -1421,7 +1421,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Np < Stripe::RequestParams + class Np < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1430,8 +1430,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Nz < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Nz < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -1457,8 +1457,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Om < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Om < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -1484,7 +1484,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Pe < Stripe::RequestParams + class Pe < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1493,7 +1493,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Ph < Stripe::RequestParams + class Ph < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1502,8 +1502,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Pl < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Pl < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1529,8 +1529,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Pt < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Pt < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1556,8 +1556,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Ro < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Ro < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1583,8 +1583,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Rs < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Rs < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -1610,7 +1610,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Ru < Stripe::RequestParams + class Ru < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1619,7 +1619,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Sa < Stripe::RequestParams + class Sa < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1628,8 +1628,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Se < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Se < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1655,8 +1655,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Sg < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Sg < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -1682,8 +1682,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Si < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Si < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1709,8 +1709,8 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Sk < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Sk < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1736,7 +1736,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Sn < Stripe::RequestParams + class Sn < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1745,8 +1745,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Sr < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Sr < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -1772,7 +1772,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Th < Stripe::RequestParams + class Th < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1781,7 +1781,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Tj < Stripe::RequestParams + class Tj < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1790,7 +1790,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Tr < Stripe::RequestParams + class Tr < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1799,7 +1799,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Tz < Stripe::RequestParams + class Tw < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1808,7 +1808,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Ua < Stripe::RequestParams + class Tz < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1817,7 +1817,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Ug < Stripe::RequestParams + class Ua < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1826,8 +1826,17 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Us < Stripe::RequestParams - class LocalAmusementTax < Stripe::RequestParams + class Ug < ::Stripe::RequestParams + # Type of registration to be created in `country`. + sig { returns(String) } + def type; end + sig { params(_type: String).returns(String) } + def type=(_type); end + sig { params(type: String).void } + def initialize(type: nil); end + end + class Us < ::Stripe::RequestParams + class LocalAmusementTax < ::Stripe::RequestParams # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `14000` (Chicago), `06613` (Bloomington), `21696` (East Dundee), `24582` (Evanston), `45421` (Lynwood), `48892` (Midlothian), `64343` (River Grove), and `68081` (Schiller Park). sig { returns(String) } def jurisdiction; end @@ -1836,7 +1845,7 @@ module Stripe sig { params(jurisdiction: String).void } def initialize(jurisdiction: nil); end end - class LocalLeaseTax < Stripe::RequestParams + class LocalLeaseTax < ::Stripe::RequestParams # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `14000` (Chicago). sig { returns(String) } def jurisdiction; end @@ -1845,8 +1854,8 @@ module Stripe sig { params(jurisdiction: String).void } def initialize(jurisdiction: nil); end end - class StateSalesTax < Stripe::RequestParams - class Election < Stripe::RequestParams + class StateSalesTax < ::Stripe::RequestParams + class Election < ::Stripe::RequestParams # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. Supported FIPS codes are: `003` (Allegheny County) and `60000` (Philadelphia City). sig { returns(T.nilable(String)) } def jurisdiction; end @@ -1922,8 +1931,8 @@ module Stripe type: nil ); end end - class Uy < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Uy < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -1949,7 +1958,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Uz < Stripe::RequestParams + class Uz < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1958,7 +1967,7 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Vn < Stripe::RequestParams + class Vn < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -1967,8 +1976,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Za < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Za < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -1994,7 +2003,7 @@ module Stripe } def initialize(standard: nil, type: nil); end end - class Zm < Stripe::RequestParams + class Zm < ::Stripe::RequestParams # Type of registration to be created in `country`. sig { returns(String) } def type; end @@ -2003,8 +2012,8 @@ module Stripe sig { params(type: String).void } def initialize(type: nil); end end - class Zw < Stripe::RequestParams - class Standard < Stripe::RequestParams + class Zw < ::Stripe::RequestParams + class Standard < ::Stripe::RequestParams # Place of supply scheme used in an standard registration. sig { returns(T.nilable(String)) } def place_of_supply_scheme; end @@ -2653,6 +2662,13 @@ module Stripe params(_tr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tr)).returns(T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tr)) } def tr=(_tr); end + # Options for the registration in TW. + sig { returns(T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tw)) } + def tw; end + sig { + params(_tw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tw)).returns(T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tw)) + } + def tw=(_tw); end # Options for the registration in TZ. sig { returns(T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tz)) } def tz; end @@ -2724,7 +2740,7 @@ module Stripe } def zw=(_zw); end sig { - params(ae: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ae), al: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Al), am: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Am), ao: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ao), at: T.nilable(Tax::RegistrationCreateParams::CountryOptions::At), au: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Au), aw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Aw), az: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Az), ba: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ba), bb: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bb), bd: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bd), be: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Be), bf: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bf), bg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bg), bh: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bh), bj: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bj), bs: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bs), by: T.nilable(Tax::RegistrationCreateParams::CountryOptions::By), ca: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ca), cd: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cd), ch: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ch), cl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cl), cm: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cm), co: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Co), cr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cr), cv: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cv), cy: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cy), cz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cz), de: T.nilable(Tax::RegistrationCreateParams::CountryOptions::De), dk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Dk), ec: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ec), ee: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ee), eg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Eg), es: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Es), et: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Et), fi: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Fi), fr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Fr), gb: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gb), ge: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ge), gn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gn), gr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gr), hr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Hr), hu: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Hu), id: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Id), ie: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ie), in_: T.nilable(Tax::RegistrationCreateParams::CountryOptions::In), is: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Is), it: T.nilable(Tax::RegistrationCreateParams::CountryOptions::It), jp: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Jp), ke: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ke), kg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kg), kh: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kh), kr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kr), kz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kz), la: T.nilable(Tax::RegistrationCreateParams::CountryOptions::La), lt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lt), lu: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lu), lv: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lv), ma: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ma), md: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Md), me: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Me), mk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mk), mr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mr), mt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mt), mx: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mx), my: T.nilable(Tax::RegistrationCreateParams::CountryOptions::My), ng: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ng), nl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Nl), no: T.nilable(Tax::RegistrationCreateParams::CountryOptions::No), np: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Np), nz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Nz), om: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Om), pe: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pe), ph: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ph), pl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pl), pt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pt), ro: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ro), rs: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Rs), ru: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ru), sa: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sa), se: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Se), sg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sg), si: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Si), sk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sk), sn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sn), sr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sr), th: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Th), tj: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tj), tr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tr), tz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tz), ua: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ua), ug: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ug), us: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Us), uy: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Uy), uz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Uz), vn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Vn), za: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Za), zm: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Zm), zw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Zw)).void + params(ae: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ae), al: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Al), am: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Am), ao: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ao), at: T.nilable(Tax::RegistrationCreateParams::CountryOptions::At), au: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Au), aw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Aw), az: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Az), ba: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ba), bb: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bb), bd: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bd), be: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Be), bf: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bf), bg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bg), bh: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bh), bj: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bj), bs: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Bs), by: T.nilable(Tax::RegistrationCreateParams::CountryOptions::By), ca: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ca), cd: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cd), ch: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ch), cl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cl), cm: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cm), co: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Co), cr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cr), cv: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cv), cy: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cy), cz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Cz), de: T.nilable(Tax::RegistrationCreateParams::CountryOptions::De), dk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Dk), ec: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ec), ee: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ee), eg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Eg), es: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Es), et: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Et), fi: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Fi), fr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Fr), gb: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gb), ge: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ge), gn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gn), gr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Gr), hr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Hr), hu: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Hu), id: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Id), ie: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ie), in_: T.nilable(Tax::RegistrationCreateParams::CountryOptions::In), is: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Is), it: T.nilable(Tax::RegistrationCreateParams::CountryOptions::It), jp: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Jp), ke: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ke), kg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kg), kh: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kh), kr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kr), kz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Kz), la: T.nilable(Tax::RegistrationCreateParams::CountryOptions::La), lt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lt), lu: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lu), lv: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Lv), ma: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ma), md: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Md), me: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Me), mk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mk), mr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mr), mt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mt), mx: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Mx), my: T.nilable(Tax::RegistrationCreateParams::CountryOptions::My), ng: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ng), nl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Nl), no: T.nilable(Tax::RegistrationCreateParams::CountryOptions::No), np: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Np), nz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Nz), om: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Om), pe: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pe), ph: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ph), pl: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pl), pt: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Pt), ro: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ro), rs: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Rs), ru: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ru), sa: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sa), se: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Se), sg: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sg), si: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Si), sk: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sk), sn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sn), sr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Sr), th: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Th), tj: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tj), tr: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tr), tw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tw), tz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Tz), ua: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ua), ug: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Ug), us: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Us), uy: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Uy), uz: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Uz), vn: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Vn), za: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Za), zm: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Zm), zw: T.nilable(Tax::RegistrationCreateParams::CountryOptions::Zw)).void } def initialize( ae: nil, @@ -2816,6 +2832,7 @@ module Stripe th: nil, tj: nil, tr: nil, + tw: nil, tz: nil, ua: nil, ug: nil, diff --git a/rbi/stripe/params/tax/registration_list_params.rbi b/rbi/stripe/params/tax/registration_list_params.rbi index c6fa81e2..219be8b7 100644 --- a/rbi/stripe/params/tax/registration_list_params.rbi +++ b/rbi/stripe/params/tax/registration_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Tax - class RegistrationListParams < Stripe::RequestParams + class RegistrationListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/tax/registration_retrieve_params.rbi b/rbi/stripe/params/tax/registration_retrieve_params.rbi index ccd78178..2fad8bd0 100644 --- a/rbi/stripe/params/tax/registration_retrieve_params.rbi +++ b/rbi/stripe/params/tax/registration_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Tax - class RegistrationRetrieveParams < Stripe::RequestParams + class RegistrationRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/tax/registration_update_params.rbi b/rbi/stripe/params/tax/registration_update_params.rbi index 2d43e3c0..d7771a1f 100644 --- a/rbi/stripe/params/tax/registration_update_params.rbi +++ b/rbi/stripe/params/tax/registration_update_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Tax - class RegistrationUpdateParams < Stripe::RequestParams + class RegistrationUpdateParams < ::Stripe::RequestParams # Time at which the registration becomes active. It can be either `now` to indicate the current time, or a timestamp measured in seconds since the Unix epoch. sig { returns(T.nilable(T.any(String, Integer))) } def active_from; end diff --git a/rbi/stripe/params/tax/settings_retrieve_params.rbi b/rbi/stripe/params/tax/settings_retrieve_params.rbi index b762fe4b..a2e2a4a1 100644 --- a/rbi/stripe/params/tax/settings_retrieve_params.rbi +++ b/rbi/stripe/params/tax/settings_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Tax - class SettingsRetrieveParams < Stripe::RequestParams + class SettingsRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/tax/settings_update_params.rbi b/rbi/stripe/params/tax/settings_update_params.rbi index e5754c51..5c4a1223 100644 --- a/rbi/stripe/params/tax/settings_update_params.rbi +++ b/rbi/stripe/params/tax/settings_update_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Tax - class SettingsUpdateParams < Stripe::RequestParams - class Defaults < Stripe::RequestParams + class SettingsUpdateParams < ::Stripe::RequestParams + class Defaults < ::Stripe::RequestParams # Specifies the default [tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#tax-behavior) to be used when the item's price has unspecified tax behavior. One of inclusive, exclusive, or inferred_by_currency. Once specified, it cannot be changed back to null. sig { returns(T.nilable(String)) } def tax_behavior; end @@ -19,8 +19,8 @@ module Stripe sig { params(tax_behavior: T.nilable(String), tax_code: T.nilable(String)).void } def initialize(tax_behavior: nil, tax_code: nil); end end - class HeadOffice < Stripe::RequestParams - class Address < Stripe::RequestParams + class HeadOffice < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end diff --git a/rbi/stripe/params/tax/transaction_create_from_calculation_params.rbi b/rbi/stripe/params/tax/transaction_create_from_calculation_params.rbi index 8b67923a..4180b3ed 100644 --- a/rbi/stripe/params/tax/transaction_create_from_calculation_params.rbi +++ b/rbi/stripe/params/tax/transaction_create_from_calculation_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Tax - class TransactionCreateFromCalculationParams < Stripe::RequestParams + class TransactionCreateFromCalculationParams < ::Stripe::RequestParams # Tax Calculation ID to be used as input when creating the transaction. sig { returns(String) } def calculation; end diff --git a/rbi/stripe/params/tax/transaction_create_reversal_params.rbi b/rbi/stripe/params/tax/transaction_create_reversal_params.rbi index cff27b75..43a4ef94 100644 --- a/rbi/stripe/params/tax/transaction_create_reversal_params.rbi +++ b/rbi/stripe/params/tax/transaction_create_reversal_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Tax - class TransactionCreateReversalParams < Stripe::RequestParams - class LineItem < Stripe::RequestParams + class TransactionCreateReversalParams < ::Stripe::RequestParams + class LineItem < ::Stripe::RequestParams # The amount to reverse, in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) in negative. sig { returns(Integer) } def amount; end @@ -50,7 +50,7 @@ module Stripe reference: nil ); end end - class ShippingCost < Stripe::RequestParams + class ShippingCost < ::Stripe::RequestParams # The amount to reverse, in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) in negative. sig { returns(Integer) } def amount; end diff --git a/rbi/stripe/params/tax/transaction_line_item_list_params.rbi b/rbi/stripe/params/tax/transaction_line_item_list_params.rbi index 01555967..d72578e9 100644 --- a/rbi/stripe/params/tax/transaction_line_item_list_params.rbi +++ b/rbi/stripe/params/tax/transaction_line_item_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Tax - class TransactionLineItemListParams < Stripe::RequestParams + class TransactionLineItemListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/tax/transaction_list_line_items_params.rbi b/rbi/stripe/params/tax/transaction_list_line_items_params.rbi index c29876c2..74e414a5 100644 --- a/rbi/stripe/params/tax/transaction_list_line_items_params.rbi +++ b/rbi/stripe/params/tax/transaction_list_line_items_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Tax - class TransactionListLineItemsParams < Stripe::RequestParams + class TransactionListLineItemsParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/tax/transaction_retrieve_params.rbi b/rbi/stripe/params/tax/transaction_retrieve_params.rbi index 45873506..c497a485 100644 --- a/rbi/stripe/params/tax/transaction_retrieve_params.rbi +++ b/rbi/stripe/params/tax/transaction_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Tax - class TransactionRetrieveParams < Stripe::RequestParams + class TransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/tax_code_list_params.rbi b/rbi/stripe/params/tax_code_list_params.rbi index 622c5620..8625d36e 100644 --- a/rbi/stripe/params/tax_code_list_params.rbi +++ b/rbi/stripe/params/tax_code_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class TaxCodeListParams < Stripe::RequestParams + class TaxCodeListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/tax_code_retrieve_params.rbi b/rbi/stripe/params/tax_code_retrieve_params.rbi index 217a769c..32fff4e6 100644 --- a/rbi/stripe/params/tax_code_retrieve_params.rbi +++ b/rbi/stripe/params/tax_code_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class TaxCodeRetrieveParams < Stripe::RequestParams + class TaxCodeRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/tax_id_create_params.rbi b/rbi/stripe/params/tax_id_create_params.rbi index 03ee7629..77d2e9cd 100644 --- a/rbi/stripe/params/tax_id_create_params.rbi +++ b/rbi/stripe/params/tax_id_create_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class TaxIdCreateParams < Stripe::RequestParams - class Owner < Stripe::RequestParams + class TaxIdCreateParams < ::Stripe::RequestParams + class Owner < ::Stripe::RequestParams # Account the tax ID belongs to. Required when `type=account` sig { returns(T.nilable(String)) } def account; end diff --git a/rbi/stripe/params/tax_id_delete_params.rbi b/rbi/stripe/params/tax_id_delete_params.rbi index 87519dfb..1124cae0 100644 --- a/rbi/stripe/params/tax_id_delete_params.rbi +++ b/rbi/stripe/params/tax_id_delete_params.rbi @@ -3,5 +3,5 @@ # typed: true module Stripe - class TaxIdDeleteParams < Stripe::RequestParams; end + class TaxIdDeleteParams < ::Stripe::RequestParams; end end \ No newline at end of file diff --git a/rbi/stripe/params/tax_id_list_params.rbi b/rbi/stripe/params/tax_id_list_params.rbi index c9e1f908..72549439 100644 --- a/rbi/stripe/params/tax_id_list_params.rbi +++ b/rbi/stripe/params/tax_id_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class TaxIdListParams < Stripe::RequestParams - class Owner < Stripe::RequestParams + class TaxIdListParams < ::Stripe::RequestParams + class Owner < ::Stripe::RequestParams # Account the tax ID belongs to. Required when `type=account` sig { returns(T.nilable(String)) } def account; end diff --git a/rbi/stripe/params/tax_id_retrieve_params.rbi b/rbi/stripe/params/tax_id_retrieve_params.rbi index 60723c46..33e1d7bb 100644 --- a/rbi/stripe/params/tax_id_retrieve_params.rbi +++ b/rbi/stripe/params/tax_id_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class TaxIdRetrieveParams < Stripe::RequestParams + class TaxIdRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/tax_rate_create_params.rbi b/rbi/stripe/params/tax_rate_create_params.rbi index f019dbb4..893d78e5 100644 --- a/rbi/stripe/params/tax_rate_create_params.rbi +++ b/rbi/stripe/params/tax_rate_create_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class TaxRateCreateParams < Stripe::RequestParams + class TaxRateCreateParams < ::Stripe::RequestParams # Flag determining whether the tax rate is active or inactive (archived). Inactive tax rates cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set. sig { returns(T.nilable(T::Boolean)) } def active; end diff --git a/rbi/stripe/params/tax_rate_list_params.rbi b/rbi/stripe/params/tax_rate_list_params.rbi index d834b565..d6adf14a 100644 --- a/rbi/stripe/params/tax_rate_list_params.rbi +++ b/rbi/stripe/params/tax_rate_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class TaxRateListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class TaxRateListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/tax_rate_retrieve_params.rbi b/rbi/stripe/params/tax_rate_retrieve_params.rbi index 512e283b..d582bb1f 100644 --- a/rbi/stripe/params/tax_rate_retrieve_params.rbi +++ b/rbi/stripe/params/tax_rate_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class TaxRateRetrieveParams < Stripe::RequestParams + class TaxRateRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/tax_rate_update_params.rbi b/rbi/stripe/params/tax_rate_update_params.rbi index cb2aad59..cb4f93b8 100644 --- a/rbi/stripe/params/tax_rate_update_params.rbi +++ b/rbi/stripe/params/tax_rate_update_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class TaxRateUpdateParams < Stripe::RequestParams + class TaxRateUpdateParams < ::Stripe::RequestParams # Flag determining whether the tax rate is active or inactive (archived). Inactive tax rates cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set. sig { returns(T.nilable(T::Boolean)) } def active; end diff --git a/rbi/stripe/params/terminal/configuration_create_params.rbi b/rbi/stripe/params/terminal/configuration_create_params.rbi index b0be7784..6b3ab028 100644 --- a/rbi/stripe/params/terminal/configuration_create_params.rbi +++ b/rbi/stripe/params/terminal/configuration_create_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Terminal - class ConfigurationCreateParams < Stripe::RequestParams - class BbposWisepad3 < Stripe::RequestParams + class ConfigurationCreateParams < ::Stripe::RequestParams + class BbposWisepad3 < ::Stripe::RequestParams # A File ID representing an image you would like displayed on the reader. sig { returns(T.nilable(String)) } def splashscreen; end @@ -14,7 +14,7 @@ module Stripe sig { params(splashscreen: T.nilable(String)).void } def initialize(splashscreen: nil); end end - class BbposWiseposE < Stripe::RequestParams + class BbposWiseposE < ::Stripe::RequestParams # A File ID representing an image to display on the reader sig { returns(T.nilable(String)) } def splashscreen; end @@ -23,7 +23,7 @@ module Stripe sig { params(splashscreen: T.nilable(String)).void } def initialize(splashscreen: nil); end end - class Offline < Stripe::RequestParams + class Offline < ::Stripe::RequestParams # Determines whether to allow transactions to be collected while reader is offline. Defaults to false. sig { returns(T::Boolean) } def enabled; end @@ -32,7 +32,7 @@ module Stripe sig { params(enabled: T::Boolean).void } def initialize(enabled: nil); end end - class RebootWindow < Stripe::RequestParams + class RebootWindow < ::Stripe::RequestParams # Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour. sig { returns(Integer) } def end_hour; end @@ -46,7 +46,7 @@ module Stripe sig { params(end_hour: Integer, start_hour: Integer).void } def initialize(end_hour: nil, start_hour: nil); end end - class StripeS700 < Stripe::RequestParams + class StripeS700 < ::Stripe::RequestParams # A File ID representing an image you would like displayed on the reader. sig { returns(T.nilable(String)) } def splashscreen; end @@ -55,8 +55,8 @@ module Stripe sig { params(splashscreen: T.nilable(String)).void } def initialize(splashscreen: nil); end end - class Tipping < Stripe::RequestParams - class Aed < Stripe::RequestParams + class Tipping < ::Stripe::RequestParams + class Aed < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -81,7 +81,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Aud < Stripe::RequestParams + class Aud < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -106,7 +106,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Bgn < Stripe::RequestParams + class Bgn < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -131,7 +131,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Cad < Stripe::RequestParams + class Cad < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -156,7 +156,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Chf < Stripe::RequestParams + class Chf < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -181,7 +181,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Czk < Stripe::RequestParams + class Czk < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -206,7 +206,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Dkk < Stripe::RequestParams + class Dkk < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -231,7 +231,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Eur < Stripe::RequestParams + class Eur < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -256,7 +256,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Gbp < Stripe::RequestParams + class Gbp < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -281,7 +281,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Hkd < Stripe::RequestParams + class Gip < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -306,7 +306,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Huf < Stripe::RequestParams + class Hkd < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -331,7 +331,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Jpy < Stripe::RequestParams + class Huf < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -356,7 +356,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Mxn < Stripe::RequestParams + class Jpy < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -381,7 +381,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Myr < Stripe::RequestParams + class Mxn < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -406,7 +406,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Nok < Stripe::RequestParams + class Myr < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -431,7 +431,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Nzd < Stripe::RequestParams + class Nok < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -456,7 +456,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Pln < Stripe::RequestParams + class Nzd < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -481,7 +481,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Ron < Stripe::RequestParams + class Pln < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -506,7 +506,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Sek < Stripe::RequestParams + class Ron < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -531,7 +531,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Sgd < Stripe::RequestParams + class Sek < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -556,7 +556,32 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Usd < Stripe::RequestParams + class Sgd < ::Stripe::RequestParams + # Fixed amounts displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def fixed_amounts; end + sig { + params(_fixed_amounts: T.nilable(T::Array[Integer])).returns(T.nilable(T::Array[Integer])) + } + def fixed_amounts=(_fixed_amounts); end + # Percentages displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def percentages; end + sig { + params(_percentages: T.nilable(T::Array[Integer])).returns(T.nilable(T::Array[Integer])) + } + def percentages=(_percentages); end + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + sig { returns(T.nilable(Integer)) } + def smart_tip_threshold; end + sig { params(_smart_tip_threshold: T.nilable(Integer)).returns(T.nilable(Integer)) } + def smart_tip_threshold=(_smart_tip_threshold); end + sig { + params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void + } + def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end + end + class Usd < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -644,6 +669,13 @@ module Stripe params(_gbp: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gbp)).returns(T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gbp)) } def gbp=(_gbp); end + # Tipping configuration for GIP + sig { returns(T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gip)) } + def gip; end + sig { + params(_gip: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gip)).returns(T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gip)) + } + def gip=(_gip); end # Tipping configuration for HKD sig { returns(T.nilable(Terminal::ConfigurationCreateParams::Tipping::Hkd)) } def hkd; end @@ -729,7 +761,7 @@ module Stripe } def usd=(_usd); end sig { - params(aed: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Aed), aud: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Aud), bgn: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Bgn), cad: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Cad), chf: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Chf), czk: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Czk), dkk: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Dkk), eur: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Eur), gbp: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gbp), hkd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Hkd), huf: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Huf), jpy: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Jpy), mxn: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Mxn), myr: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Myr), nok: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Nok), nzd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Nzd), pln: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Pln), ron: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Ron), sek: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Sek), sgd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Sgd), usd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Usd)).void + params(aed: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Aed), aud: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Aud), bgn: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Bgn), cad: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Cad), chf: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Chf), czk: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Czk), dkk: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Dkk), eur: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Eur), gbp: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gbp), gip: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Gip), hkd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Hkd), huf: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Huf), jpy: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Jpy), mxn: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Mxn), myr: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Myr), nok: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Nok), nzd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Nzd), pln: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Pln), ron: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Ron), sek: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Sek), sgd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Sgd), usd: T.nilable(Terminal::ConfigurationCreateParams::Tipping::Usd)).void } def initialize( aed: nil, @@ -741,6 +773,7 @@ module Stripe dkk: nil, eur: nil, gbp: nil, + gip: nil, hkd: nil, huf: nil, jpy: nil, @@ -755,7 +788,7 @@ module Stripe usd: nil ); end end - class VerifoneP400 < Stripe::RequestParams + class VerifoneP400 < ::Stripe::RequestParams # A File ID representing an image you would like displayed on the reader. sig { returns(T.nilable(String)) } def splashscreen; end @@ -764,8 +797,8 @@ module Stripe sig { params(splashscreen: T.nilable(String)).void } def initialize(splashscreen: nil); end end - class Wifi < Stripe::RequestParams - class EnterpriseEapPeap < Stripe::RequestParams + class Wifi < ::Stripe::RequestParams + class EnterpriseEapPeap < ::Stripe::RequestParams # A File ID representing a PEM file containing the server certificate sig { returns(T.nilable(String)) } def ca_certificate_file; end @@ -791,7 +824,7 @@ module Stripe } def initialize(ca_certificate_file: nil, password: nil, ssid: nil, username: nil); end end - class EnterpriseEapTls < Stripe::RequestParams + class EnterpriseEapTls < ::Stripe::RequestParams # A File ID representing a PEM file containing the server certificate sig { returns(T.nilable(String)) } def ca_certificate_file; end @@ -828,7 +861,7 @@ module Stripe ssid: nil ); end end - class PersonalPsk < Stripe::RequestParams + class PersonalPsk < ::Stripe::RequestParams # Password for connecting to the WiFi network sig { returns(String) } def password; end diff --git a/rbi/stripe/params/terminal/configuration_delete_params.rbi b/rbi/stripe/params/terminal/configuration_delete_params.rbi index 1efb49d0..0bc7b24a 100644 --- a/rbi/stripe/params/terminal/configuration_delete_params.rbi +++ b/rbi/stripe/params/terminal/configuration_delete_params.rbi @@ -4,6 +4,6 @@ # typed: true module Stripe module Terminal - class ConfigurationDeleteParams < Stripe::RequestParams; end + class ConfigurationDeleteParams < ::Stripe::RequestParams; end end end \ No newline at end of file diff --git a/rbi/stripe/params/terminal/configuration_list_params.rbi b/rbi/stripe/params/terminal/configuration_list_params.rbi index b958122a..28e54adb 100644 --- a/rbi/stripe/params/terminal/configuration_list_params.rbi +++ b/rbi/stripe/params/terminal/configuration_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Terminal - class ConfigurationListParams < Stripe::RequestParams + class ConfigurationListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/terminal/configuration_retrieve_params.rbi b/rbi/stripe/params/terminal/configuration_retrieve_params.rbi index 10a9ac71..179f4d78 100644 --- a/rbi/stripe/params/terminal/configuration_retrieve_params.rbi +++ b/rbi/stripe/params/terminal/configuration_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Terminal - class ConfigurationRetrieveParams < Stripe::RequestParams + class ConfigurationRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/terminal/configuration_update_params.rbi b/rbi/stripe/params/terminal/configuration_update_params.rbi index e6b75926..1c3ec6f4 100644 --- a/rbi/stripe/params/terminal/configuration_update_params.rbi +++ b/rbi/stripe/params/terminal/configuration_update_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Terminal - class ConfigurationUpdateParams < Stripe::RequestParams - class BbposWisepad3 < Stripe::RequestParams + class ConfigurationUpdateParams < ::Stripe::RequestParams + class BbposWisepad3 < ::Stripe::RequestParams # A File ID representing an image you would like displayed on the reader. sig { returns(T.nilable(String)) } def splashscreen; end @@ -14,7 +14,7 @@ module Stripe sig { params(splashscreen: T.nilable(String)).void } def initialize(splashscreen: nil); end end - class BbposWiseposE < Stripe::RequestParams + class BbposWiseposE < ::Stripe::RequestParams # A File ID representing an image to display on the reader sig { returns(T.nilable(String)) } def splashscreen; end @@ -23,7 +23,7 @@ module Stripe sig { params(splashscreen: T.nilable(String)).void } def initialize(splashscreen: nil); end end - class Offline < Stripe::RequestParams + class Offline < ::Stripe::RequestParams # Determines whether to allow transactions to be collected while reader is offline. Defaults to false. sig { returns(T::Boolean) } def enabled; end @@ -32,7 +32,7 @@ module Stripe sig { params(enabled: T::Boolean).void } def initialize(enabled: nil); end end - class RebootWindow < Stripe::RequestParams + class RebootWindow < ::Stripe::RequestParams # Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour. sig { returns(Integer) } def end_hour; end @@ -46,7 +46,7 @@ module Stripe sig { params(end_hour: Integer, start_hour: Integer).void } def initialize(end_hour: nil, start_hour: nil); end end - class StripeS700 < Stripe::RequestParams + class StripeS700 < ::Stripe::RequestParams # A File ID representing an image you would like displayed on the reader. sig { returns(T.nilable(String)) } def splashscreen; end @@ -55,8 +55,8 @@ module Stripe sig { params(splashscreen: T.nilable(String)).void } def initialize(splashscreen: nil); end end - class Tipping < Stripe::RequestParams - class Aed < Stripe::RequestParams + class Tipping < ::Stripe::RequestParams + class Aed < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -81,7 +81,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Aud < Stripe::RequestParams + class Aud < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -106,7 +106,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Bgn < Stripe::RequestParams + class Bgn < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -131,7 +131,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Cad < Stripe::RequestParams + class Cad < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -156,7 +156,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Chf < Stripe::RequestParams + class Chf < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -181,7 +181,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Czk < Stripe::RequestParams + class Czk < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -206,7 +206,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Dkk < Stripe::RequestParams + class Dkk < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -231,7 +231,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Eur < Stripe::RequestParams + class Eur < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -256,7 +256,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Gbp < Stripe::RequestParams + class Gbp < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -281,7 +281,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Hkd < Stripe::RequestParams + class Gip < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -306,7 +306,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Huf < Stripe::RequestParams + class Hkd < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -331,7 +331,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Jpy < Stripe::RequestParams + class Huf < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -356,7 +356,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Mxn < Stripe::RequestParams + class Jpy < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -381,7 +381,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Myr < Stripe::RequestParams + class Mxn < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -406,7 +406,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Nok < Stripe::RequestParams + class Myr < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -431,7 +431,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Nzd < Stripe::RequestParams + class Nok < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -456,7 +456,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Pln < Stripe::RequestParams + class Nzd < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -481,7 +481,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Ron < Stripe::RequestParams + class Pln < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -506,7 +506,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Sek < Stripe::RequestParams + class Ron < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -531,7 +531,7 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Sgd < Stripe::RequestParams + class Sek < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -556,7 +556,32 @@ module Stripe } def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end end - class Usd < Stripe::RequestParams + class Sgd < ::Stripe::RequestParams + # Fixed amounts displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def fixed_amounts; end + sig { + params(_fixed_amounts: T.nilable(T::Array[Integer])).returns(T.nilable(T::Array[Integer])) + } + def fixed_amounts=(_fixed_amounts); end + # Percentages displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def percentages; end + sig { + params(_percentages: T.nilable(T::Array[Integer])).returns(T.nilable(T::Array[Integer])) + } + def percentages=(_percentages); end + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + sig { returns(T.nilable(Integer)) } + def smart_tip_threshold; end + sig { params(_smart_tip_threshold: T.nilable(Integer)).returns(T.nilable(Integer)) } + def smart_tip_threshold=(_smart_tip_threshold); end + sig { + params(fixed_amounts: T.nilable(T::Array[Integer]), percentages: T.nilable(T::Array[Integer]), smart_tip_threshold: T.nilable(Integer)).void + } + def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil); end + end + class Usd < ::Stripe::RequestParams # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -644,6 +669,13 @@ module Stripe params(_gbp: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gbp)).returns(T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gbp)) } def gbp=(_gbp); end + # Tipping configuration for GIP + sig { returns(T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gip)) } + def gip; end + sig { + params(_gip: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gip)).returns(T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gip)) + } + def gip=(_gip); end # Tipping configuration for HKD sig { returns(T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Hkd)) } def hkd; end @@ -729,7 +761,7 @@ module Stripe } def usd=(_usd); end sig { - params(aed: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Aed), aud: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Aud), bgn: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Bgn), cad: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Cad), chf: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Chf), czk: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Czk), dkk: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Dkk), eur: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Eur), gbp: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gbp), hkd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Hkd), huf: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Huf), jpy: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Jpy), mxn: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Mxn), myr: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Myr), nok: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Nok), nzd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Nzd), pln: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Pln), ron: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Ron), sek: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Sek), sgd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Sgd), usd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Usd)).void + params(aed: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Aed), aud: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Aud), bgn: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Bgn), cad: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Cad), chf: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Chf), czk: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Czk), dkk: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Dkk), eur: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Eur), gbp: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gbp), gip: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Gip), hkd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Hkd), huf: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Huf), jpy: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Jpy), mxn: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Mxn), myr: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Myr), nok: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Nok), nzd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Nzd), pln: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Pln), ron: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Ron), sek: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Sek), sgd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Sgd), usd: T.nilable(Terminal::ConfigurationUpdateParams::Tipping::Usd)).void } def initialize( aed: nil, @@ -741,6 +773,7 @@ module Stripe dkk: nil, eur: nil, gbp: nil, + gip: nil, hkd: nil, huf: nil, jpy: nil, @@ -755,7 +788,7 @@ module Stripe usd: nil ); end end - class VerifoneP400 < Stripe::RequestParams + class VerifoneP400 < ::Stripe::RequestParams # A File ID representing an image you would like displayed on the reader. sig { returns(T.nilable(String)) } def splashscreen; end @@ -764,8 +797,8 @@ module Stripe sig { params(splashscreen: T.nilable(String)).void } def initialize(splashscreen: nil); end end - class Wifi < Stripe::RequestParams - class EnterpriseEapPeap < Stripe::RequestParams + class Wifi < ::Stripe::RequestParams + class EnterpriseEapPeap < ::Stripe::RequestParams # A File ID representing a PEM file containing the server certificate sig { returns(T.nilable(String)) } def ca_certificate_file; end @@ -791,7 +824,7 @@ module Stripe } def initialize(ca_certificate_file: nil, password: nil, ssid: nil, username: nil); end end - class EnterpriseEapTls < Stripe::RequestParams + class EnterpriseEapTls < ::Stripe::RequestParams # A File ID representing a PEM file containing the server certificate sig { returns(T.nilable(String)) } def ca_certificate_file; end @@ -828,7 +861,7 @@ module Stripe ssid: nil ); end end - class PersonalPsk < Stripe::RequestParams + class PersonalPsk < ::Stripe::RequestParams # Password for connecting to the WiFi network sig { returns(String) } def password; end diff --git a/rbi/stripe/params/terminal/connection_token_create_params.rbi b/rbi/stripe/params/terminal/connection_token_create_params.rbi index d919693f..e0859b3a 100644 --- a/rbi/stripe/params/terminal/connection_token_create_params.rbi +++ b/rbi/stripe/params/terminal/connection_token_create_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Terminal - class ConnectionTokenCreateParams < Stripe::RequestParams + class ConnectionTokenCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/terminal/location_create_params.rbi b/rbi/stripe/params/terminal/location_create_params.rbi index f35b89c5..0386de82 100644 --- a/rbi/stripe/params/terminal/location_create_params.rbi +++ b/rbi/stripe/params/terminal/location_create_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Terminal - class LocationCreateParams < Stripe::RequestParams - class Address < Stripe::RequestParams + class LocationCreateParams < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -48,7 +48,7 @@ module Stripe state: nil ); end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -97,7 +97,7 @@ module Stripe town: nil ); end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end diff --git a/rbi/stripe/params/terminal/location_delete_params.rbi b/rbi/stripe/params/terminal/location_delete_params.rbi index 2fdde84d..8c11f4c7 100644 --- a/rbi/stripe/params/terminal/location_delete_params.rbi +++ b/rbi/stripe/params/terminal/location_delete_params.rbi @@ -4,6 +4,6 @@ # typed: true module Stripe module Terminal - class LocationDeleteParams < Stripe::RequestParams; end + class LocationDeleteParams < ::Stripe::RequestParams; end end end \ No newline at end of file diff --git a/rbi/stripe/params/terminal/location_list_params.rbi b/rbi/stripe/params/terminal/location_list_params.rbi index edc85eaf..1d597d62 100644 --- a/rbi/stripe/params/terminal/location_list_params.rbi +++ b/rbi/stripe/params/terminal/location_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Terminal - class LocationListParams < Stripe::RequestParams + class LocationListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/terminal/location_retrieve_params.rbi b/rbi/stripe/params/terminal/location_retrieve_params.rbi index cbf78b10..482bfda0 100644 --- a/rbi/stripe/params/terminal/location_retrieve_params.rbi +++ b/rbi/stripe/params/terminal/location_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Terminal - class LocationRetrieveParams < Stripe::RequestParams + class LocationRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/terminal/location_update_params.rbi b/rbi/stripe/params/terminal/location_update_params.rbi index 9e3e66f3..e8013bc4 100644 --- a/rbi/stripe/params/terminal/location_update_params.rbi +++ b/rbi/stripe/params/terminal/location_update_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Terminal - class LocationUpdateParams < Stripe::RequestParams - class Address < Stripe::RequestParams + class LocationUpdateParams < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -48,7 +48,7 @@ module Stripe state: nil ); end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -97,7 +97,7 @@ module Stripe town: nil ); end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end diff --git a/rbi/stripe/params/terminal/reader_cancel_action_params.rbi b/rbi/stripe/params/terminal/reader_cancel_action_params.rbi index a25c2471..d49512c5 100644 --- a/rbi/stripe/params/terminal/reader_cancel_action_params.rbi +++ b/rbi/stripe/params/terminal/reader_cancel_action_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Terminal - class ReaderCancelActionParams < Stripe::RequestParams + class ReaderCancelActionParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/terminal/reader_collect_inputs_params.rbi b/rbi/stripe/params/terminal/reader_collect_inputs_params.rbi index 85a18840..2a36caa9 100644 --- a/rbi/stripe/params/terminal/reader_collect_inputs_params.rbi +++ b/rbi/stripe/params/terminal/reader_collect_inputs_params.rbi @@ -4,20 +4,20 @@ # typed: true module Stripe module Terminal - class ReaderCollectInputsParams < Stripe::RequestParams - class Input < Stripe::RequestParams - class CustomText < Stripe::RequestParams + class ReaderCollectInputsParams < ::Stripe::RequestParams + class Input < ::Stripe::RequestParams + class CustomText < ::Stripe::RequestParams # The description which will be displayed when collecting this input sig { returns(T.nilable(String)) } def description; end sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } def description=(_description); end - # The skip button text + # Custom text for the skip button. Maximum 14 characters. sig { returns(T.nilable(String)) } def skip_button; end sig { params(_skip_button: T.nilable(String)).returns(T.nilable(String)) } def skip_button=(_skip_button); end - # The submit button text + # Custom text for the submit button. Maximum 30 characters. sig { returns(T.nilable(String)) } def submit_button; end sig { params(_submit_button: T.nilable(String)).returns(T.nilable(String)) } @@ -32,14 +32,14 @@ module Stripe } def initialize(description: nil, skip_button: nil, submit_button: nil, title: nil); end end - class Selection < Stripe::RequestParams - class Choice < Stripe::RequestParams + class Selection < ::Stripe::RequestParams + class Choice < ::Stripe::RequestParams # The unique identifier for this choice sig { returns(String) } def id; end sig { params(_id: String).returns(String) } def id=(_id); end - # The style of the button which will be shown for this choice + # The style of the button which will be shown for this choice. Can be `primary` or `secondary`. sig { returns(T.nilable(String)) } def style; end sig { params(_style: T.nilable(String)).returns(T.nilable(String)) } @@ -64,18 +64,18 @@ module Stripe } def initialize(choices: nil); end end - class Toggle < Stripe::RequestParams - # The default value of the toggle + class Toggle < ::Stripe::RequestParams + # The default value of the toggle. Can be `enabled` or `disabled`. sig { returns(T.nilable(String)) } def default_value; end sig { params(_default_value: T.nilable(String)).returns(T.nilable(String)) } def default_value=(_default_value); end - # The description which will be displayed for the toggle + # The description which will be displayed for the toggle. Maximum 50 characters. At least one of title or description must be provided. sig { returns(T.nilable(String)) } def description; end sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } def description=(_description); end - # The title which will be displayed for the toggle + # The title which will be displayed for the toggle. Maximum 50 characters. At least one of title or description must be provided. sig { returns(T.nilable(String)) } def title; end sig { params(_title: T.nilable(String)).returns(T.nilable(String)) } @@ -132,7 +132,7 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # List of inputs to be collected using the Reader + # List of inputs to be collected from the customer using the Reader. Maximum 5 inputs. sig { returns(T::Array[Terminal::ReaderCollectInputsParams::Input]) } def inputs; end sig { diff --git a/rbi/stripe/params/terminal/reader_collect_payment_method_params.rbi b/rbi/stripe/params/terminal/reader_collect_payment_method_params.rbi index 9c2760bd..f69f924f 100644 --- a/rbi/stripe/params/terminal/reader_collect_payment_method_params.rbi +++ b/rbi/stripe/params/terminal/reader_collect_payment_method_params.rbi @@ -4,9 +4,9 @@ # typed: true module Stripe module Terminal - class ReaderCollectPaymentMethodParams < Stripe::RequestParams - class CollectConfig < Stripe::RequestParams - class Tipping < Stripe::RequestParams + class ReaderCollectPaymentMethodParams < ::Stripe::RequestParams + class CollectConfig < ::Stripe::RequestParams + class Tipping < ::Stripe::RequestParams # Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency). sig { returns(T.nilable(Integer)) } def amount_eligible; end @@ -51,7 +51,7 @@ module Stripe tipping: nil ); end end - # Configuration overrides. + # Configuration overrides for this collection, such as tipping, surcharging, and customer cancellation settings. sig { returns(T.nilable(Terminal::ReaderCollectPaymentMethodParams::CollectConfig)) } def collect_config; end sig { @@ -63,7 +63,7 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # PaymentIntent ID. + # The ID of the PaymentIntent to collect a payment method for. sig { returns(String) } def payment_intent; end sig { params(_payment_intent: String).returns(String) } diff --git a/rbi/stripe/params/terminal/reader_confirm_payment_intent_params.rbi b/rbi/stripe/params/terminal/reader_confirm_payment_intent_params.rbi index 61594d44..f09fac44 100644 --- a/rbi/stripe/params/terminal/reader_confirm_payment_intent_params.rbi +++ b/rbi/stripe/params/terminal/reader_confirm_payment_intent_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Terminal - class ReaderConfirmPaymentIntentParams < Stripe::RequestParams - class ConfirmConfig < Stripe::RequestParams + class ReaderConfirmPaymentIntentParams < ::Stripe::RequestParams + class ConfirmConfig < ::Stripe::RequestParams # The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. sig { returns(T.nilable(String)) } def return_url; end @@ -14,7 +14,7 @@ module Stripe sig { params(return_url: T.nilable(String)).void } def initialize(return_url: nil); end end - # Configuration overrides. + # Configuration overrides for this confirmation, such as surcharge settings and return URL. sig { returns(T.nilable(Terminal::ReaderConfirmPaymentIntentParams::ConfirmConfig)) } def confirm_config; end sig { @@ -26,7 +26,7 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # PaymentIntent ID. + # The ID of the PaymentIntent to confirm. sig { returns(String) } def payment_intent; end sig { params(_payment_intent: String).returns(String) } diff --git a/rbi/stripe/params/terminal/reader_create_params.rbi b/rbi/stripe/params/terminal/reader_create_params.rbi index 2658a8d3..8cbc7a8c 100644 --- a/rbi/stripe/params/terminal/reader_create_params.rbi +++ b/rbi/stripe/params/terminal/reader_create_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Terminal - class ReaderCreateParams < Stripe::RequestParams + class ReaderCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/terminal/reader_delete_params.rbi b/rbi/stripe/params/terminal/reader_delete_params.rbi index 5b269571..ce0f84b8 100644 --- a/rbi/stripe/params/terminal/reader_delete_params.rbi +++ b/rbi/stripe/params/terminal/reader_delete_params.rbi @@ -4,6 +4,6 @@ # typed: true module Stripe module Terminal - class ReaderDeleteParams < Stripe::RequestParams; end + class ReaderDeleteParams < ::Stripe::RequestParams; end end end \ No newline at end of file diff --git a/rbi/stripe/params/terminal/reader_list_params.rbi b/rbi/stripe/params/terminal/reader_list_params.rbi index e52d40a9..92a02e1b 100644 --- a/rbi/stripe/params/terminal/reader_list_params.rbi +++ b/rbi/stripe/params/terminal/reader_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Terminal - class ReaderListParams < Stripe::RequestParams + class ReaderListParams < ::Stripe::RequestParams # Filters readers by device type sig { returns(T.nilable(String)) } def device_type; end diff --git a/rbi/stripe/params/terminal/reader_present_payment_method_params.rbi b/rbi/stripe/params/terminal/reader_present_payment_method_params.rbi index 3aa785dd..07236256 100644 --- a/rbi/stripe/params/terminal/reader_present_payment_method_params.rbi +++ b/rbi/stripe/params/terminal/reader_present_payment_method_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Terminal - class ReaderPresentPaymentMethodParams < Stripe::RequestParams - class Card < Stripe::RequestParams + class ReaderPresentPaymentMethodParams < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams # Card security code. sig { returns(T.nilable(String)) } def cvc; end @@ -31,7 +31,7 @@ module Stripe } def initialize(cvc: nil, exp_month: nil, exp_year: nil, number: nil); end end - class CardPresent < Stripe::RequestParams + class CardPresent < ::Stripe::RequestParams # The card number, as a string without any separators. sig { returns(T.nilable(String)) } def number; end @@ -40,8 +40,8 @@ module Stripe sig { params(number: T.nilable(String)).void } def initialize(number: nil); end end - class InteracPresent < Stripe::RequestParams - # Card Number + class InteracPresent < ::Stripe::RequestParams + # The Interac card number. sig { returns(T.nilable(String)) } def number; end sig { params(_number: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/terminal/reader_process_payment_intent_params.rbi b/rbi/stripe/params/terminal/reader_process_payment_intent_params.rbi index 15773612..877de8e9 100644 --- a/rbi/stripe/params/terminal/reader_process_payment_intent_params.rbi +++ b/rbi/stripe/params/terminal/reader_process_payment_intent_params.rbi @@ -4,9 +4,9 @@ # typed: true module Stripe module Terminal - class ReaderProcessPaymentIntentParams < Stripe::RequestParams - class ProcessConfig < Stripe::RequestParams - class Tipping < Stripe::RequestParams + class ReaderProcessPaymentIntentParams < ::Stripe::RequestParams + class ProcessConfig < ::Stripe::RequestParams + class Tipping < ::Stripe::RequestParams # Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency). sig { returns(T.nilable(Integer)) } def amount_eligible; end @@ -62,12 +62,12 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # PaymentIntent ID + # The ID of the PaymentIntent to process on the reader. sig { returns(String) } def payment_intent; end sig { params(_payment_intent: String).returns(String) } def payment_intent=(_payment_intent); end - # Configuration overrides + # Configuration overrides for this transaction, such as tipping and customer cancellation settings. sig { returns(T.nilable(Terminal::ReaderProcessPaymentIntentParams::ProcessConfig)) } def process_config; end sig { diff --git a/rbi/stripe/params/terminal/reader_process_setup_intent_params.rbi b/rbi/stripe/params/terminal/reader_process_setup_intent_params.rbi index 66a8be6d..a52d55db 100644 --- a/rbi/stripe/params/terminal/reader_process_setup_intent_params.rbi +++ b/rbi/stripe/params/terminal/reader_process_setup_intent_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Terminal - class ReaderProcessSetupIntentParams < Stripe::RequestParams - class ProcessConfig < Stripe::RequestParams + class ReaderProcessSetupIntentParams < ::Stripe::RequestParams + class ProcessConfig < ::Stripe::RequestParams # Enables cancel button on transaction screens. sig { returns(T.nilable(T::Boolean)) } def enable_customer_cancellation; end @@ -26,14 +26,14 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # Configuration overrides + # Configuration overrides for this setup, such as MOTO and customer cancellation settings. sig { returns(T.nilable(Terminal::ReaderProcessSetupIntentParams::ProcessConfig)) } def process_config; end sig { params(_process_config: T.nilable(Terminal::ReaderProcessSetupIntentParams::ProcessConfig)).returns(T.nilable(Terminal::ReaderProcessSetupIntentParams::ProcessConfig)) } def process_config=(_process_config); end - # SetupIntent ID + # The ID of the SetupIntent to process on the reader. sig { returns(String) } def setup_intent; end sig { params(_setup_intent: String).returns(String) } diff --git a/rbi/stripe/params/terminal/reader_refund_payment_params.rbi b/rbi/stripe/params/terminal/reader_refund_payment_params.rbi index b75fbf37..0855432d 100644 --- a/rbi/stripe/params/terminal/reader_refund_payment_params.rbi +++ b/rbi/stripe/params/terminal/reader_refund_payment_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Terminal - class ReaderRefundPaymentParams < Stripe::RequestParams - class RefundPaymentConfig < Stripe::RequestParams + class ReaderRefundPaymentParams < ::Stripe::RequestParams + class RefundPaymentConfig < ::Stripe::RequestParams # Enables cancel button on transaction screens. sig { returns(T.nilable(T::Boolean)) } def enable_customer_cancellation; end @@ -48,7 +48,7 @@ module Stripe def refund_application_fee; end sig { params(_refund_application_fee: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } def refund_application_fee=(_refund_application_fee); end - # Configuration overrides + # Configuration overrides for this refund, such as customer cancellation settings. sig { returns(T.nilable(Terminal::ReaderRefundPaymentParams::RefundPaymentConfig)) } def refund_payment_config; end sig { diff --git a/rbi/stripe/params/terminal/reader_retrieve_params.rbi b/rbi/stripe/params/terminal/reader_retrieve_params.rbi index 2ceace4a..e5f201e8 100644 --- a/rbi/stripe/params/terminal/reader_retrieve_params.rbi +++ b/rbi/stripe/params/terminal/reader_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Terminal - class ReaderRetrieveParams < Stripe::RequestParams + class ReaderRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/terminal/reader_set_reader_display_params.rbi b/rbi/stripe/params/terminal/reader_set_reader_display_params.rbi index 22e527d7..b8cb5e2e 100644 --- a/rbi/stripe/params/terminal/reader_set_reader_display_params.rbi +++ b/rbi/stripe/params/terminal/reader_set_reader_display_params.rbi @@ -4,10 +4,10 @@ # typed: true module Stripe module Terminal - class ReaderSetReaderDisplayParams < Stripe::RequestParams - class Cart < Stripe::RequestParams - class LineItem < Stripe::RequestParams - # The price of the item in cents. + class ReaderSetReaderDisplayParams < ::Stripe::RequestParams + class Cart < ::Stripe::RequestParams + class LineItem < ::Stripe::RequestParams + # The price of the item in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). sig { returns(Integer) } def amount; end sig { params(_amount: Integer).returns(Integer) } @@ -30,19 +30,19 @@ module Stripe def currency; end sig { params(_currency: String).returns(String) } def currency=(_currency); end - # Array of line items that were purchased. + # Array of line items to display. sig { returns(T::Array[Terminal::ReaderSetReaderDisplayParams::Cart::LineItem]) } def line_items; end sig { params(_line_items: T::Array[Terminal::ReaderSetReaderDisplayParams::Cart::LineItem]).returns(T::Array[Terminal::ReaderSetReaderDisplayParams::Cart::LineItem]) } def line_items=(_line_items); end - # The amount of tax in cents. + # The amount of tax in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). sig { returns(T.nilable(Integer)) } def tax; end sig { params(_tax: T.nilable(Integer)).returns(T.nilable(Integer)) } def tax=(_tax); end - # Total balance of cart due in cents. + # Total balance of cart due in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). sig { returns(Integer) } def total; end sig { params(_total: Integer).returns(Integer) } @@ -52,7 +52,7 @@ module Stripe } def initialize(currency: nil, line_items: nil, tax: nil, total: nil); end end - # Cart + # Cart details to display on the reader screen, including line items, amounts, and currency. sig { returns(T.nilable(Terminal::ReaderSetReaderDisplayParams::Cart)) } def cart; end sig { @@ -64,7 +64,7 @@ module Stripe def expand; end sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } def expand=(_expand); end - # Type + # Type of information to display. Only `cart` is currently supported. sig { returns(String) } def type; end sig { params(_type: String).returns(String) } diff --git a/rbi/stripe/params/terminal/reader_succeed_input_collection_params.rbi b/rbi/stripe/params/terminal/reader_succeed_input_collection_params.rbi index 53e8b62f..666a60fa 100644 --- a/rbi/stripe/params/terminal/reader_succeed_input_collection_params.rbi +++ b/rbi/stripe/params/terminal/reader_succeed_input_collection_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Terminal - class ReaderSucceedInputCollectionParams < Stripe::RequestParams + class ReaderSucceedInputCollectionParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/terminal/reader_timeout_input_collection_params.rbi b/rbi/stripe/params/terminal/reader_timeout_input_collection_params.rbi index ce5da365..76603a4f 100644 --- a/rbi/stripe/params/terminal/reader_timeout_input_collection_params.rbi +++ b/rbi/stripe/params/terminal/reader_timeout_input_collection_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Terminal - class ReaderTimeoutInputCollectionParams < Stripe::RequestParams + class ReaderTimeoutInputCollectionParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/terminal/reader_update_params.rbi b/rbi/stripe/params/terminal/reader_update_params.rbi index 563ca56c..f3dfe65a 100644 --- a/rbi/stripe/params/terminal/reader_update_params.rbi +++ b/rbi/stripe/params/terminal/reader_update_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Terminal - class ReaderUpdateParams < Stripe::RequestParams + class ReaderUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/confirmation_token_create_params.rbi b/rbi/stripe/params/test_helpers/confirmation_token_create_params.rbi index d44521d6..d378a734 100644 --- a/rbi/stripe/params/test_helpers/confirmation_token_create_params.rbi +++ b/rbi/stripe/params/test_helpers/confirmation_token_create_params.rbi @@ -4,9 +4,9 @@ # typed: true module Stripe module TestHelpers - class ConfirmationTokenCreateParams < Stripe::RequestParams - class PaymentMethodData < Stripe::RequestParams - class AcssDebit < Stripe::RequestParams + class ConfirmationTokenCreateParams < ::Stripe::RequestParams + class PaymentMethodData < ::Stripe::RequestParams + class AcssDebit < ::Stripe::RequestParams # Customer's bank account number. sig { returns(String) } def account_number; end @@ -27,12 +27,12 @@ module Stripe } def initialize(account_number: nil, institution_number: nil, transit_number: nil); end end - class Affirm < Stripe::RequestParams; end - class AfterpayClearpay < Stripe::RequestParams; end - class Alipay < Stripe::RequestParams; end - class Alma < Stripe::RequestParams; end - class AmazonPay < Stripe::RequestParams; end - class AuBecsDebit < Stripe::RequestParams + class Affirm < ::Stripe::RequestParams; end + class AfterpayClearpay < ::Stripe::RequestParams; end + class Alipay < ::Stripe::RequestParams; end + class Alma < ::Stripe::RequestParams; end + class AmazonPay < ::Stripe::RequestParams; end + class AuBecsDebit < ::Stripe::RequestParams # The account number for the bank account. sig { returns(String) } def account_number; end @@ -46,7 +46,7 @@ module Stripe sig { params(account_number: String, bsb_number: String).void } def initialize(account_number: nil, bsb_number: nil); end end - class BacsDebit < Stripe::RequestParams + class BacsDebit < ::Stripe::RequestParams # Account number of the bank account that the funds will be debited from. sig { returns(T.nilable(String)) } def account_number; end @@ -60,10 +60,10 @@ module Stripe sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void } def initialize(account_number: nil, sort_code: nil); end end - class Bancontact < Stripe::RequestParams; end - class Billie < Stripe::RequestParams; end - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class Bancontact < ::Stripe::RequestParams; end + class Billie < ::Stripe::RequestParams; end + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -140,8 +140,8 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end end - class Blik < Stripe::RequestParams; end - class Boleto < Stripe::RequestParams + class Blik < ::Stripe::RequestParams; end + class Boleto < ::Stripe::RequestParams # The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers) sig { returns(String) } def tax_id; end @@ -150,10 +150,10 @@ module Stripe sig { params(tax_id: String).void } def initialize(tax_id: nil); end end - class Cashapp < Stripe::RequestParams; end - class Crypto < Stripe::RequestParams; end - class CustomerBalance < Stripe::RequestParams; end - class Eps < Stripe::RequestParams + class Cashapp < ::Stripe::RequestParams; end + class Crypto < ::Stripe::RequestParams; end + class CustomerBalance < ::Stripe::RequestParams; end + class Eps < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -162,7 +162,7 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class Fpx < Stripe::RequestParams + class Fpx < ::Stripe::RequestParams # Account holder type for FPX transaction sig { returns(T.nilable(String)) } def account_holder_type; end @@ -176,9 +176,9 @@ module Stripe sig { params(account_holder_type: T.nilable(String), bank: String).void } def initialize(account_holder_type: nil, bank: nil); end end - class Giropay < Stripe::RequestParams; end - class Grabpay < Stripe::RequestParams; end - class Ideal < Stripe::RequestParams + class Giropay < ::Stripe::RequestParams; end + class Grabpay < ::Stripe::RequestParams; end + class Ideal < ::Stripe::RequestParams # The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. sig { returns(T.nilable(String)) } def bank; end @@ -187,10 +187,10 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class InteracPresent < Stripe::RequestParams; end - class KakaoPay < Stripe::RequestParams; end - class Klarna < Stripe::RequestParams - class Dob < Stripe::RequestParams + class InteracPresent < ::Stripe::RequestParams; end + class KakaoPay < ::Stripe::RequestParams; end + class Klarna < ::Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -223,13 +223,13 @@ module Stripe } def initialize(dob: nil); end end - class Konbini < Stripe::RequestParams; end - class KrCard < Stripe::RequestParams; end - class Link < Stripe::RequestParams; end - class MbWay < Stripe::RequestParams; end - class Mobilepay < Stripe::RequestParams; end - class Multibanco < Stripe::RequestParams; end - class NaverPay < Stripe::RequestParams + class Konbini < ::Stripe::RequestParams; end + class KrCard < ::Stripe::RequestParams; end + class Link < ::Stripe::RequestParams; end + class MbWay < ::Stripe::RequestParams; end + class Mobilepay < ::Stripe::RequestParams; end + class Multibanco < ::Stripe::RequestParams; end + class NaverPay < ::Stripe::RequestParams # Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. sig { returns(T.nilable(String)) } def funding; end @@ -238,7 +238,7 @@ module Stripe sig { params(funding: T.nilable(String)).void } def initialize(funding: nil); end end - class NzBankAccount < Stripe::RequestParams + class NzBankAccount < ::Stripe::RequestParams # The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -281,8 +281,8 @@ module Stripe suffix: nil ); end end - class Oxxo < Stripe::RequestParams; end - class P24 < Stripe::RequestParams + class Oxxo < ::Stripe::RequestParams; end + class P24 < ::Stripe::RequestParams # The customer's bank. sig { returns(T.nilable(String)) } def bank; end @@ -291,13 +291,13 @@ module Stripe sig { params(bank: T.nilable(String)).void } def initialize(bank: nil); end end - class PayByBank < Stripe::RequestParams; end - class Payco < Stripe::RequestParams; end - class Paynow < Stripe::RequestParams; end - class Paypal < Stripe::RequestParams; end - class Pix < Stripe::RequestParams; end - class Promptpay < Stripe::RequestParams; end - class RadarOptions < Stripe::RequestParams + class PayByBank < ::Stripe::RequestParams; end + class Payco < ::Stripe::RequestParams; end + class Paynow < ::Stripe::RequestParams; end + class Paypal < ::Stripe::RequestParams; end + class Pix < ::Stripe::RequestParams; end + class Promptpay < ::Stripe::RequestParams; end + class RadarOptions < ::Stripe::RequestParams # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -306,10 +306,10 @@ module Stripe sig { params(session: T.nilable(String)).void } def initialize(session: nil); end end - class RevolutPay < Stripe::RequestParams; end - class SamsungPay < Stripe::RequestParams; end - class Satispay < Stripe::RequestParams; end - class SepaDebit < Stripe::RequestParams + class RevolutPay < ::Stripe::RequestParams; end + class SamsungPay < ::Stripe::RequestParams; end + class Satispay < ::Stripe::RequestParams; end + class SepaDebit < ::Stripe::RequestParams # IBAN of the bank account. sig { returns(String) } def iban; end @@ -318,7 +318,7 @@ module Stripe sig { params(iban: String).void } def initialize(iban: nil); end end - class Sofort < Stripe::RequestParams + class Sofort < ::Stripe::RequestParams # Two-letter ISO code representing the country the bank account is located in. sig { returns(String) } def country; end @@ -327,9 +327,9 @@ module Stripe sig { params(country: String).void } def initialize(country: nil); end end - class Swish < Stripe::RequestParams; end - class Twint < Stripe::RequestParams; end - class UsBankAccount < Stripe::RequestParams + class Swish < ::Stripe::RequestParams; end + class Twint < ::Stripe::RequestParams; end + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -368,8 +368,8 @@ module Stripe routing_number: nil ); end end - class WechatPay < Stripe::RequestParams; end - class Zip < Stripe::RequestParams; end + class WechatPay < ::Stripe::RequestParams; end + class Zip < ::Stripe::RequestParams; end # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method. sig { returns(T.nilable(TestHelpers::ConfirmationTokenCreateParams::PaymentMethodData::AcssDebit)) @@ -906,10 +906,10 @@ module Stripe zip: nil ); end end - class PaymentMethodOptions < Stripe::RequestParams - class Card < Stripe::RequestParams - class Installments < Stripe::RequestParams - class Plan < Stripe::RequestParams + class PaymentMethodOptions < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Installments < ::Stripe::RequestParams + class Plan < ::Stripe::RequestParams # For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card. sig { returns(T.nilable(Integer)) } def count; end @@ -974,8 +974,8 @@ module Stripe } def initialize(card: nil); end end - class Shipping < Stripe::RequestParams - class Address < Stripe::RequestParams + class Shipping < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end diff --git a/rbi/stripe/params/test_helpers/customer_fund_cash_balance_params.rbi b/rbi/stripe/params/test_helpers/customer_fund_cash_balance_params.rbi index fbcc5efe..713df3fb 100644 --- a/rbi/stripe/params/test_helpers/customer_fund_cash_balance_params.rbi +++ b/rbi/stripe/params/test_helpers/customer_fund_cash_balance_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module TestHelpers - class CustomerFundCashBalanceParams < Stripe::RequestParams + class CustomerFundCashBalanceParams < ::Stripe::RequestParams # Amount to be used for this test cash balance transaction. A positive integer representing how much to fund in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to fund $1.00 or 100 to fund ¥100, a zero-decimal currency). sig { returns(Integer) } def amount; end diff --git a/rbi/stripe/params/test_helpers/issuing/authorization_capture_params.rbi b/rbi/stripe/params/test_helpers/issuing/authorization_capture_params.rbi index aa934e9f..f48eb2ce 100644 --- a/rbi/stripe/params/test_helpers/issuing/authorization_capture_params.rbi +++ b/rbi/stripe/params/test_helpers/issuing/authorization_capture_params.rbi @@ -5,10 +5,10 @@ module Stripe module TestHelpers module Issuing - class AuthorizationCaptureParams < Stripe::RequestParams - class PurchaseDetails < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class AuthorizationCaptureParams < ::Stripe::RequestParams + class PurchaseDetails < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. sig { returns(T.nilable(String)) } def driver_id; end @@ -45,8 +45,8 @@ module Stripe vehicle_number: nil ); end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -55,7 +55,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -64,7 +64,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -152,8 +152,8 @@ module Stripe service_type: nil ); end end - class Flight < Stripe::RequestParams - class Segment < Stripe::RequestParams + class Flight < ::Stripe::RequestParams + class Segment < ::Stripe::RequestParams # The three-letter IATA airport code of the flight's destination. sig { returns(T.nilable(String)) } def arrival_airport_code; end @@ -238,7 +238,7 @@ module Stripe travel_agency: nil ); end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end @@ -275,7 +275,7 @@ module Stripe unit_cost_decimal: nil ); end end - class Lodging < Stripe::RequestParams + class Lodging < ::Stripe::RequestParams # The time of checking into the lodging. sig { returns(T.nilable(Integer)) } def check_in_at; end @@ -289,7 +289,7 @@ module Stripe sig { params(check_in_at: T.nilable(Integer), nights: T.nilable(Integer)).void } def initialize(check_in_at: nil, nights: nil); end end - class Receipt < Stripe::RequestParams + class Receipt < ::Stripe::RequestParams # Attribute for param field description sig { returns(T.nilable(String)) } def description; end diff --git a/rbi/stripe/params/test_helpers/issuing/authorization_create_params.rbi b/rbi/stripe/params/test_helpers/issuing/authorization_create_params.rbi index 852ec77e..a2d2206d 100644 --- a/rbi/stripe/params/test_helpers/issuing/authorization_create_params.rbi +++ b/rbi/stripe/params/test_helpers/issuing/authorization_create_params.rbi @@ -5,8 +5,8 @@ module Stripe module TestHelpers module Issuing - class AuthorizationCreateParams < Stripe::RequestParams - class AmountDetails < Stripe::RequestParams + class AuthorizationCreateParams < ::Stripe::RequestParams + class AmountDetails < ::Stripe::RequestParams # The ATM withdrawal fee. sig { returns(T.nilable(Integer)) } def atm_fee; end @@ -20,8 +20,8 @@ module Stripe sig { params(atm_fee: T.nilable(Integer), cashback_amount: T.nilable(Integer)).void } def initialize(atm_fee: nil, cashback_amount: nil); end end - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. sig { returns(T.nilable(String)) } def driver_id; end @@ -58,8 +58,8 @@ module Stripe vehicle_number: nil ); end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -68,7 +68,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -77,7 +77,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -163,7 +163,7 @@ module Stripe service_type: nil ); end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end @@ -200,7 +200,7 @@ module Stripe unit_cost_decimal: nil ); end end - class MerchantData < Stripe::RequestParams + class MerchantData < ::Stripe::RequestParams # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. sig { returns(T.nilable(String)) } def category; end @@ -261,7 +261,7 @@ module Stripe url: nil ); end end - class NetworkData < Stripe::RequestParams + class NetworkData < ::Stripe::RequestParams # Identifier assigned to the acquirer by the card network. sig { returns(T.nilable(String)) } def acquiring_institution_id; end @@ -270,8 +270,8 @@ module Stripe sig { params(acquiring_institution_id: T.nilable(String)).void } def initialize(acquiring_institution_id: nil); end end - class RiskAssessment < Stripe::RequestParams - class CardTestingRisk < Stripe::RequestParams + class RiskAssessment < ::Stripe::RequestParams + class CardTestingRisk < ::Stripe::RequestParams # The % of declines due to a card number not existing in the past hour, taking place at the same merchant. Higher rates correspond to a greater probability of card testing activity, meaning bad actors may be attempting different card number combinations to guess a correct one. Takes on values between 0 and 100. sig { returns(T.nilable(Integer)) } def invalid_account_number_decline_rate_past_hour; end @@ -304,7 +304,7 @@ module Stripe risk_level: nil ); end end - class MerchantDisputeRisk < Stripe::RequestParams + class MerchantDisputeRisk < ::Stripe::RequestParams # The dispute rate observed across all Stripe Issuing authorizations for this merchant. For example, a value of 50 means 50% of authorizations from this merchant on Stripe Issuing have resulted in a dispute. Higher values mean a higher likelihood the authorization is disputed. Takes on values between 0 and 100. sig { returns(T.nilable(Integer)) } def dispute_rate; end @@ -341,8 +341,8 @@ module Stripe } def initialize(card_testing_risk: nil, merchant_dispute_risk: nil); end end - class VerificationData < Stripe::RequestParams - class AuthenticationExemption < Stripe::RequestParams + class VerificationData < ::Stripe::RequestParams + class AuthenticationExemption < ::Stripe::RequestParams # The entity that requested the exemption, either the acquiring merchant or the Issuing user. sig { returns(String) } def claimed_by; end @@ -356,7 +356,7 @@ module Stripe sig { params(claimed_by: String, type: String).void } def initialize(claimed_by: nil, type: nil); end end - class ThreeDSecure < Stripe::RequestParams + class ThreeDSecure < ::Stripe::RequestParams # The outcome of the 3D Secure authentication request. sig { returns(String) } def result; end diff --git a/rbi/stripe/params/test_helpers/issuing/authorization_expire_params.rbi b/rbi/stripe/params/test_helpers/issuing/authorization_expire_params.rbi index 32574c8f..f3190ad3 100644 --- a/rbi/stripe/params/test_helpers/issuing/authorization_expire_params.rbi +++ b/rbi/stripe/params/test_helpers/issuing/authorization_expire_params.rbi @@ -5,7 +5,7 @@ module Stripe module TestHelpers module Issuing - class AuthorizationExpireParams < Stripe::RequestParams + class AuthorizationExpireParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rbi b/rbi/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rbi index 66736e3e..f00767d5 100644 --- a/rbi/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rbi +++ b/rbi/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rbi @@ -5,9 +5,9 @@ module Stripe module TestHelpers module Issuing - class AuthorizationFinalizeAmountParams < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class AuthorizationFinalizeAmountParams < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. sig { returns(T.nilable(String)) } def driver_id; end @@ -44,8 +44,8 @@ module Stripe vehicle_number: nil ); end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -54,7 +54,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -63,7 +63,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -149,7 +149,7 @@ module Stripe service_type: nil ); end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end diff --git a/rbi/stripe/params/test_helpers/issuing/authorization_increment_params.rbi b/rbi/stripe/params/test_helpers/issuing/authorization_increment_params.rbi index 564f49a0..703ff1e9 100644 --- a/rbi/stripe/params/test_helpers/issuing/authorization_increment_params.rbi +++ b/rbi/stripe/params/test_helpers/issuing/authorization_increment_params.rbi @@ -5,7 +5,7 @@ module Stripe module TestHelpers module Issuing - class AuthorizationIncrementParams < Stripe::RequestParams + class AuthorizationIncrementParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/issuing/authorization_respond_params.rbi b/rbi/stripe/params/test_helpers/issuing/authorization_respond_params.rbi index 47f39041..f404ccdc 100644 --- a/rbi/stripe/params/test_helpers/issuing/authorization_respond_params.rbi +++ b/rbi/stripe/params/test_helpers/issuing/authorization_respond_params.rbi @@ -5,7 +5,7 @@ module Stripe module TestHelpers module Issuing - class AuthorizationRespondParams < Stripe::RequestParams + class AuthorizationRespondParams < ::Stripe::RequestParams # Whether to simulate the user confirming that the transaction was legitimate (true) or telling Stripe that it was fraudulent (false). sig { returns(T::Boolean) } def confirmed; end diff --git a/rbi/stripe/params/test_helpers/issuing/authorization_reverse_params.rbi b/rbi/stripe/params/test_helpers/issuing/authorization_reverse_params.rbi index 0f0ce904..f141ce0e 100644 --- a/rbi/stripe/params/test_helpers/issuing/authorization_reverse_params.rbi +++ b/rbi/stripe/params/test_helpers/issuing/authorization_reverse_params.rbi @@ -5,7 +5,7 @@ module Stripe module TestHelpers module Issuing - class AuthorizationReverseParams < Stripe::RequestParams + class AuthorizationReverseParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/issuing/card_deliver_card_params.rbi b/rbi/stripe/params/test_helpers/issuing/card_deliver_card_params.rbi index 384b66f3..865d76a7 100644 --- a/rbi/stripe/params/test_helpers/issuing/card_deliver_card_params.rbi +++ b/rbi/stripe/params/test_helpers/issuing/card_deliver_card_params.rbi @@ -5,7 +5,7 @@ module Stripe module TestHelpers module Issuing - class CardDeliverCardParams < Stripe::RequestParams + class CardDeliverCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/issuing/card_fail_card_params.rbi b/rbi/stripe/params/test_helpers/issuing/card_fail_card_params.rbi index 18559a0a..a77e2ac1 100644 --- a/rbi/stripe/params/test_helpers/issuing/card_fail_card_params.rbi +++ b/rbi/stripe/params/test_helpers/issuing/card_fail_card_params.rbi @@ -5,7 +5,7 @@ module Stripe module TestHelpers module Issuing - class CardFailCardParams < Stripe::RequestParams + class CardFailCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/issuing/card_return_card_params.rbi b/rbi/stripe/params/test_helpers/issuing/card_return_card_params.rbi index 43926798..d1d898d2 100644 --- a/rbi/stripe/params/test_helpers/issuing/card_return_card_params.rbi +++ b/rbi/stripe/params/test_helpers/issuing/card_return_card_params.rbi @@ -5,7 +5,7 @@ module Stripe module TestHelpers module Issuing - class CardReturnCardParams < Stripe::RequestParams + class CardReturnCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/issuing/card_ship_card_params.rbi b/rbi/stripe/params/test_helpers/issuing/card_ship_card_params.rbi index 17238f86..dfe55fc4 100644 --- a/rbi/stripe/params/test_helpers/issuing/card_ship_card_params.rbi +++ b/rbi/stripe/params/test_helpers/issuing/card_ship_card_params.rbi @@ -5,7 +5,7 @@ module Stripe module TestHelpers module Issuing - class CardShipCardParams < Stripe::RequestParams + class CardShipCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/issuing/card_submit_card_params.rbi b/rbi/stripe/params/test_helpers/issuing/card_submit_card_params.rbi index 26e15464..ab0a97f0 100644 --- a/rbi/stripe/params/test_helpers/issuing/card_submit_card_params.rbi +++ b/rbi/stripe/params/test_helpers/issuing/card_submit_card_params.rbi @@ -5,7 +5,7 @@ module Stripe module TestHelpers module Issuing - class CardSubmitCardParams < Stripe::RequestParams + class CardSubmitCardParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/issuing/personalization_design_activate_params.rbi b/rbi/stripe/params/test_helpers/issuing/personalization_design_activate_params.rbi index 56c7e916..e6bc2145 100644 --- a/rbi/stripe/params/test_helpers/issuing/personalization_design_activate_params.rbi +++ b/rbi/stripe/params/test_helpers/issuing/personalization_design_activate_params.rbi @@ -5,7 +5,7 @@ module Stripe module TestHelpers module Issuing - class PersonalizationDesignActivateParams < Stripe::RequestParams + class PersonalizationDesignActivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rbi b/rbi/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rbi index 9798f7f7..042af440 100644 --- a/rbi/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rbi +++ b/rbi/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rbi @@ -5,7 +5,7 @@ module Stripe module TestHelpers module Issuing - class PersonalizationDesignDeactivateParams < Stripe::RequestParams + class PersonalizationDesignDeactivateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/issuing/personalization_design_reject_params.rbi b/rbi/stripe/params/test_helpers/issuing/personalization_design_reject_params.rbi index 4402fb36..e6bf5b22 100644 --- a/rbi/stripe/params/test_helpers/issuing/personalization_design_reject_params.rbi +++ b/rbi/stripe/params/test_helpers/issuing/personalization_design_reject_params.rbi @@ -5,8 +5,8 @@ module Stripe module TestHelpers module Issuing - class PersonalizationDesignRejectParams < Stripe::RequestParams - class RejectionReasons < Stripe::RequestParams + class PersonalizationDesignRejectParams < ::Stripe::RequestParams + class RejectionReasons < ::Stripe::RequestParams # The reason(s) the card logo was rejected. sig { returns(T.nilable(T::Array[String])) } def card_logo; end diff --git a/rbi/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rbi b/rbi/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rbi index 8ec478fd..49bfc06a 100644 --- a/rbi/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rbi +++ b/rbi/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rbi @@ -5,8 +5,8 @@ module Stripe module TestHelpers module Issuing - class TransactionCreateForceCaptureParams < Stripe::RequestParams - class MerchantData < Stripe::RequestParams + class TransactionCreateForceCaptureParams < ::Stripe::RequestParams + class MerchantData < ::Stripe::RequestParams # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. sig { returns(T.nilable(String)) } def category; end @@ -67,9 +67,9 @@ module Stripe url: nil ); end end - class PurchaseDetails < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class PurchaseDetails < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. sig { returns(T.nilable(String)) } def driver_id; end @@ -106,8 +106,8 @@ module Stripe vehicle_number: nil ); end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -116,7 +116,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -125,7 +125,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -213,8 +213,8 @@ module Stripe service_type: nil ); end end - class Flight < Stripe::RequestParams - class Segment < Stripe::RequestParams + class Flight < ::Stripe::RequestParams + class Segment < ::Stripe::RequestParams # The three-letter IATA airport code of the flight's destination. sig { returns(T.nilable(String)) } def arrival_airport_code; end @@ -299,7 +299,7 @@ module Stripe travel_agency: nil ); end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end @@ -336,7 +336,7 @@ module Stripe unit_cost_decimal: nil ); end end - class Lodging < Stripe::RequestParams + class Lodging < ::Stripe::RequestParams # The time of checking into the lodging. sig { returns(T.nilable(Integer)) } def check_in_at; end @@ -350,7 +350,7 @@ module Stripe sig { params(check_in_at: T.nilable(Integer), nights: T.nilable(Integer)).void } def initialize(check_in_at: nil, nights: nil); end end - class Receipt < Stripe::RequestParams + class Receipt < ::Stripe::RequestParams # Attribute for param field description sig { returns(T.nilable(String)) } def description; end diff --git a/rbi/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rbi b/rbi/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rbi index 41dc8480..dccb219c 100644 --- a/rbi/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rbi +++ b/rbi/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rbi @@ -5,8 +5,8 @@ module Stripe module TestHelpers module Issuing - class TransactionCreateUnlinkedRefundParams < Stripe::RequestParams - class MerchantData < Stripe::RequestParams + class TransactionCreateUnlinkedRefundParams < ::Stripe::RequestParams + class MerchantData < ::Stripe::RequestParams # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. sig { returns(T.nilable(String)) } def category; end @@ -67,9 +67,9 @@ module Stripe url: nil ); end end - class PurchaseDetails < Stripe::RequestParams - class Fleet < Stripe::RequestParams - class CardholderPromptData < Stripe::RequestParams + class PurchaseDetails < ::Stripe::RequestParams + class Fleet < ::Stripe::RequestParams + class CardholderPromptData < ::Stripe::RequestParams # Driver ID. sig { returns(T.nilable(String)) } def driver_id; end @@ -106,8 +106,8 @@ module Stripe vehicle_number: nil ); end end - class ReportedBreakdown < Stripe::RequestParams - class Fuel < Stripe::RequestParams + class ReportedBreakdown < ::Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -116,7 +116,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class NonFuel < Stripe::RequestParams + class NonFuel < ::Stripe::RequestParams # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -125,7 +125,7 @@ module Stripe sig { params(gross_amount_decimal: T.nilable(String)).void } def initialize(gross_amount_decimal: nil); end end - class Tax < Stripe::RequestParams + class Tax < ::Stripe::RequestParams # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -213,8 +213,8 @@ module Stripe service_type: nil ); end end - class Flight < Stripe::RequestParams - class Segment < Stripe::RequestParams + class Flight < ::Stripe::RequestParams + class Segment < ::Stripe::RequestParams # The three-letter IATA airport code of the flight's destination. sig { returns(T.nilable(String)) } def arrival_airport_code; end @@ -299,7 +299,7 @@ module Stripe travel_agency: nil ); end end - class Fuel < Stripe::RequestParams + class Fuel < ::Stripe::RequestParams # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end @@ -336,7 +336,7 @@ module Stripe unit_cost_decimal: nil ); end end - class Lodging < Stripe::RequestParams + class Lodging < ::Stripe::RequestParams # The time of checking into the lodging. sig { returns(T.nilable(Integer)) } def check_in_at; end @@ -350,7 +350,7 @@ module Stripe sig { params(check_in_at: T.nilable(Integer), nights: T.nilable(Integer)).void } def initialize(check_in_at: nil, nights: nil); end end - class Receipt < Stripe::RequestParams + class Receipt < ::Stripe::RequestParams # Attribute for param field description sig { returns(T.nilable(String)) } def description; end diff --git a/rbi/stripe/params/test_helpers/issuing/transaction_refund_params.rbi b/rbi/stripe/params/test_helpers/issuing/transaction_refund_params.rbi index 80104628..4127db4c 100644 --- a/rbi/stripe/params/test_helpers/issuing/transaction_refund_params.rbi +++ b/rbi/stripe/params/test_helpers/issuing/transaction_refund_params.rbi @@ -5,7 +5,7 @@ module Stripe module TestHelpers module Issuing - class TransactionRefundParams < Stripe::RequestParams + class TransactionRefundParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/refund_expire_params.rbi b/rbi/stripe/params/test_helpers/refund_expire_params.rbi index 4d34f4a9..af2a1460 100644 --- a/rbi/stripe/params/test_helpers/refund_expire_params.rbi +++ b/rbi/stripe/params/test_helpers/refund_expire_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module TestHelpers - class RefundExpireParams < Stripe::RequestParams + class RefundExpireParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rbi b/rbi/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rbi index 810624c3..5afb7572 100644 --- a/rbi/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rbi +++ b/rbi/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rbi @@ -5,8 +5,8 @@ module Stripe module TestHelpers module Terminal - class ReaderPresentPaymentMethodParams < Stripe::RequestParams - class Card < Stripe::RequestParams + class ReaderPresentPaymentMethodParams < ::Stripe::RequestParams + class Card < ::Stripe::RequestParams # Card security code. sig { returns(T.nilable(String)) } def cvc; end @@ -32,7 +32,7 @@ module Stripe } def initialize(cvc: nil, exp_month: nil, exp_year: nil, number: nil); end end - class CardPresent < Stripe::RequestParams + class CardPresent < ::Stripe::RequestParams # The card number, as a string without any separators. sig { returns(T.nilable(String)) } def number; end @@ -41,8 +41,8 @@ module Stripe sig { params(number: T.nilable(String)).void } def initialize(number: nil); end end - class InteracPresent < Stripe::RequestParams - # Card Number + class InteracPresent < ::Stripe::RequestParams + # The Interac card number. sig { returns(T.nilable(String)) } def number; end sig { params(_number: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rbi b/rbi/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rbi index 17853605..c4dff2f0 100644 --- a/rbi/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rbi +++ b/rbi/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rbi @@ -5,7 +5,7 @@ module Stripe module TestHelpers module Terminal - class ReaderSucceedInputCollectionParams < Stripe::RequestParams + class ReaderSucceedInputCollectionParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rbi b/rbi/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rbi index a7fc00a0..4976310f 100644 --- a/rbi/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rbi +++ b/rbi/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rbi @@ -5,7 +5,7 @@ module Stripe module TestHelpers module Terminal - class ReaderTimeoutInputCollectionParams < Stripe::RequestParams + class ReaderTimeoutInputCollectionParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/test_clock_advance_params.rbi b/rbi/stripe/params/test_helpers/test_clock_advance_params.rbi index 8cfb25ac..714887fa 100644 --- a/rbi/stripe/params/test_helpers/test_clock_advance_params.rbi +++ b/rbi/stripe/params/test_helpers/test_clock_advance_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module TestHelpers - class TestClockAdvanceParams < Stripe::RequestParams + class TestClockAdvanceParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/test_clock_create_params.rbi b/rbi/stripe/params/test_helpers/test_clock_create_params.rbi index 0d8d863b..0f5d155f 100644 --- a/rbi/stripe/params/test_helpers/test_clock_create_params.rbi +++ b/rbi/stripe/params/test_helpers/test_clock_create_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module TestHelpers - class TestClockCreateParams < Stripe::RequestParams + class TestClockCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/test_clock_delete_params.rbi b/rbi/stripe/params/test_helpers/test_clock_delete_params.rbi index 4e3403c5..d6f4df8f 100644 --- a/rbi/stripe/params/test_helpers/test_clock_delete_params.rbi +++ b/rbi/stripe/params/test_helpers/test_clock_delete_params.rbi @@ -4,6 +4,6 @@ # typed: true module Stripe module TestHelpers - class TestClockDeleteParams < Stripe::RequestParams; end + class TestClockDeleteParams < ::Stripe::RequestParams; end end end \ No newline at end of file diff --git a/rbi/stripe/params/test_helpers/test_clock_list_params.rbi b/rbi/stripe/params/test_helpers/test_clock_list_params.rbi index 5424fc43..651053a3 100644 --- a/rbi/stripe/params/test_helpers/test_clock_list_params.rbi +++ b/rbi/stripe/params/test_helpers/test_clock_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module TestHelpers - class TestClockListParams < Stripe::RequestParams + class TestClockListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/test_helpers/test_clock_retrieve_params.rbi b/rbi/stripe/params/test_helpers/test_clock_retrieve_params.rbi index da01d427..b93edb7f 100644 --- a/rbi/stripe/params/test_helpers/test_clock_retrieve_params.rbi +++ b/rbi/stripe/params/test_helpers/test_clock_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module TestHelpers - class TestClockRetrieveParams < Stripe::RequestParams + class TestClockRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rbi b/rbi/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rbi index 3e5cba4d..a18da2d7 100644 --- a/rbi/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rbi +++ b/rbi/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rbi @@ -5,8 +5,8 @@ module Stripe module TestHelpers module Treasury - class InboundTransferFailParams < Stripe::RequestParams - class FailureDetails < Stripe::RequestParams + class InboundTransferFailParams < ::Stripe::RequestParams + class FailureDetails < ::Stripe::RequestParams # Reason for the failure. sig { returns(T.nilable(String)) } def code; end diff --git a/rbi/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rbi b/rbi/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rbi index fb233287..81e07e65 100644 --- a/rbi/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rbi +++ b/rbi/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rbi @@ -5,7 +5,7 @@ module Stripe module TestHelpers module Treasury - class InboundTransferReturnInboundTransferParams < Stripe::RequestParams + class InboundTransferReturnInboundTransferParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rbi b/rbi/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rbi index 0bd5470e..3c8ea94a 100644 --- a/rbi/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rbi +++ b/rbi/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rbi @@ -5,7 +5,7 @@ module Stripe module TestHelpers module Treasury - class InboundTransferSucceedParams < Stripe::RequestParams + class InboundTransferSucceedParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rbi b/rbi/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rbi index d9869952..e7f2dd3d 100644 --- a/rbi/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rbi +++ b/rbi/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rbi @@ -5,7 +5,7 @@ module Stripe module TestHelpers module Treasury - class OutboundPaymentFailParams < Stripe::RequestParams + class OutboundPaymentFailParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/treasury/outbound_payment_post_params.rbi b/rbi/stripe/params/test_helpers/treasury/outbound_payment_post_params.rbi index 6a762e13..148de828 100644 --- a/rbi/stripe/params/test_helpers/treasury/outbound_payment_post_params.rbi +++ b/rbi/stripe/params/test_helpers/treasury/outbound_payment_post_params.rbi @@ -5,7 +5,7 @@ module Stripe module TestHelpers module Treasury - class OutboundPaymentPostParams < Stripe::RequestParams + class OutboundPaymentPostParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rbi b/rbi/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rbi index f9bba187..6e8e85d8 100644 --- a/rbi/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rbi +++ b/rbi/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rbi @@ -5,8 +5,8 @@ module Stripe module TestHelpers module Treasury - class OutboundPaymentReturnOutboundPaymentParams < Stripe::RequestParams - class ReturnedDetails < Stripe::RequestParams + class OutboundPaymentReturnOutboundPaymentParams < ::Stripe::RequestParams + class ReturnedDetails < ::Stripe::RequestParams # The return code to be set on the OutboundPayment object. sig { returns(T.nilable(String)) } def code; end diff --git a/rbi/stripe/params/test_helpers/treasury/outbound_payment_update_params.rbi b/rbi/stripe/params/test_helpers/treasury/outbound_payment_update_params.rbi index fce73d18..f264bd8f 100644 --- a/rbi/stripe/params/test_helpers/treasury/outbound_payment_update_params.rbi +++ b/rbi/stripe/params/test_helpers/treasury/outbound_payment_update_params.rbi @@ -5,9 +5,9 @@ module Stripe module TestHelpers module Treasury - class OutboundPaymentUpdateParams < Stripe::RequestParams - class TrackingDetails < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundPaymentUpdateParams < ::Stripe::RequestParams + class TrackingDetails < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # ACH trace ID for funds sent over the `ach` network. sig { returns(String) } def trace_id; end @@ -16,7 +16,7 @@ module Stripe sig { params(trace_id: String).void } def initialize(trace_id: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # CHIPS System Sequence Number (SSN) for funds sent over the `us_domestic_wire` network. sig { returns(T.nilable(String)) } def chips; end diff --git a/rbi/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rbi b/rbi/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rbi index d2139545..d5814ab4 100644 --- a/rbi/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rbi +++ b/rbi/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rbi @@ -5,7 +5,7 @@ module Stripe module TestHelpers module Treasury - class OutboundTransferFailParams < Stripe::RequestParams + class OutboundTransferFailParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rbi b/rbi/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rbi index 2abb6ab4..c342fdd7 100644 --- a/rbi/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rbi +++ b/rbi/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rbi @@ -5,7 +5,7 @@ module Stripe module TestHelpers module Treasury - class OutboundTransferPostParams < Stripe::RequestParams + class OutboundTransferPostParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rbi b/rbi/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rbi index fc581c7f..ac66d915 100644 --- a/rbi/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rbi +++ b/rbi/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rbi @@ -5,8 +5,8 @@ module Stripe module TestHelpers module Treasury - class OutboundTransferReturnOutboundTransferParams < Stripe::RequestParams - class ReturnedDetails < Stripe::RequestParams + class OutboundTransferReturnOutboundTransferParams < ::Stripe::RequestParams + class ReturnedDetails < ::Stripe::RequestParams # Reason for the return. sig { returns(T.nilable(String)) } def code; end diff --git a/rbi/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rbi b/rbi/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rbi index 5d6b10a9..7998dfb5 100644 --- a/rbi/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rbi +++ b/rbi/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rbi @@ -5,9 +5,9 @@ module Stripe module TestHelpers module Treasury - class OutboundTransferUpdateParams < Stripe::RequestParams - class TrackingDetails < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundTransferUpdateParams < ::Stripe::RequestParams + class TrackingDetails < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # ACH trace ID for funds sent over the `ach` network. sig { returns(String) } def trace_id; end @@ -16,7 +16,7 @@ module Stripe sig { params(trace_id: String).void } def initialize(trace_id: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # CHIPS System Sequence Number (SSN) for funds sent over the `us_domestic_wire` network. sig { returns(T.nilable(String)) } def chips; end diff --git a/rbi/stripe/params/test_helpers/treasury/received_credit_create_params.rbi b/rbi/stripe/params/test_helpers/treasury/received_credit_create_params.rbi index 4537e39b..84a6cf4a 100644 --- a/rbi/stripe/params/test_helpers/treasury/received_credit_create_params.rbi +++ b/rbi/stripe/params/test_helpers/treasury/received_credit_create_params.rbi @@ -5,9 +5,9 @@ module Stripe module TestHelpers module Treasury - class ReceivedCreditCreateParams < Stripe::RequestParams - class InitiatingPaymentMethodDetails < Stripe::RequestParams - class UsBankAccount < Stripe::RequestParams + class ReceivedCreditCreateParams < ::Stripe::RequestParams + class InitiatingPaymentMethodDetails < ::Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # The bank account holder's name. sig { returns(T.nilable(String)) } def account_holder_name; end diff --git a/rbi/stripe/params/test_helpers/treasury/received_debit_create_params.rbi b/rbi/stripe/params/test_helpers/treasury/received_debit_create_params.rbi index 43529ca1..c5b5694f 100644 --- a/rbi/stripe/params/test_helpers/treasury/received_debit_create_params.rbi +++ b/rbi/stripe/params/test_helpers/treasury/received_debit_create_params.rbi @@ -5,9 +5,9 @@ module Stripe module TestHelpers module Treasury - class ReceivedDebitCreateParams < Stripe::RequestParams - class InitiatingPaymentMethodDetails < Stripe::RequestParams - class UsBankAccount < Stripe::RequestParams + class ReceivedDebitCreateParams < ::Stripe::RequestParams + class InitiatingPaymentMethodDetails < ::Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # The bank account holder's name. sig { returns(T.nilable(String)) } def account_holder_name; end diff --git a/rbi/stripe/params/token_create_params.rbi b/rbi/stripe/params/token_create_params.rbi index 2ed80f24..a1c8b05a 100644 --- a/rbi/stripe/params/token_create_params.rbi +++ b/rbi/stripe/params/token_create_params.rbi @@ -3,10 +3,10 @@ # typed: true module Stripe - class TokenCreateParams < Stripe::RequestParams - class Account < Stripe::RequestParams - class Company < Stripe::RequestParams - class Address < Stripe::RequestParams + class TokenCreateParams < ::Stripe::RequestParams + class Account < ::Stripe::RequestParams + class Company < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -49,7 +49,7 @@ module Stripe state: nil ); end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -98,7 +98,7 @@ module Stripe town: nil ); end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -147,7 +147,7 @@ module Stripe town: nil ); end end - class DirectorshipDeclaration < Stripe::RequestParams + class DirectorshipDeclaration < ::Stripe::RequestParams # The Unix timestamp marking when the directorship declaration attestation was made. sig { returns(T.nilable(Integer)) } def date; end @@ -168,7 +168,7 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end - class OwnershipDeclaration < Stripe::RequestParams + class OwnershipDeclaration < ::Stripe::RequestParams # The Unix timestamp marking when the beneficial owner attestation was made. sig { returns(T.nilable(Integer)) } def date; end @@ -189,7 +189,7 @@ module Stripe } def initialize(date: nil, ip: nil, user_agent: nil); end end - class RegistrationDate < Stripe::RequestParams + class RegistrationDate < ::Stripe::RequestParams # The day of registration, between 1 and 31. sig { returns(Integer) } def day; end @@ -208,8 +208,29 @@ module Stripe sig { params(day: Integer, month: Integer, year: Integer).void } def initialize(day: nil, month: nil, year: nil); end end - class Verification < Stripe::RequestParams - class Document < Stripe::RequestParams + class RepresentativeDeclaration < ::Stripe::RequestParams + # The Unix timestamp marking when the representative declaration attestation was made. + sig { returns(T.nilable(Integer)) } + def date; end + sig { params(_date: T.nilable(Integer)).returns(T.nilable(Integer)) } + def date=(_date); end + # The IP address from which the representative declaration attestation was made. + sig { returns(T.nilable(String)) } + def ip; end + sig { params(_ip: T.nilable(String)).returns(T.nilable(String)) } + def ip=(_ip); end + # The user agent of the browser from which the representative declaration attestation was made. + sig { returns(T.nilable(String)) } + def user_agent; end + sig { params(_user_agent: T.nilable(String)).returns(T.nilable(String)) } + def user_agent=(_user_agent); end + sig { + params(date: T.nilable(Integer), ip: T.nilable(String), user_agent: T.nilable(String)).void + } + def initialize(date: nil, ip: nil, user_agent: nil); end + end + class Verification < ::Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -343,6 +364,13 @@ module Stripe def registration_number; end sig { params(_registration_number: T.nilable(String)).returns(T.nilable(String)) } def registration_number=(_registration_number); end + # This hash is used to attest that the representative is authorized to act as the representative of their legal entity. + sig { returns(T.nilable(TokenCreateParams::Account::Company::RepresentativeDeclaration)) } + def representative_declaration; end + sig { + params(_representative_declaration: T.nilable(TokenCreateParams::Account::Company::RepresentativeDeclaration)).returns(T.nilable(TokenCreateParams::Account::Company::RepresentativeDeclaration)) + } + def representative_declaration=(_representative_declaration); end # The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value. sig { returns(T.nilable(T.any(String, String))) } def structure; end @@ -373,7 +401,7 @@ module Stripe } def verification=(_verification); end sig { - params(address: T.nilable(TokenCreateParams::Account::Company::Address), address_kana: T.nilable(TokenCreateParams::Account::Company::AddressKana), address_kanji: T.nilable(TokenCreateParams::Account::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(TokenCreateParams::Account::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(TokenCreateParams::Account::Company::OwnershipDeclaration), ownership_declaration_shown_and_signed: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, TokenCreateParams::Account::Company::RegistrationDate)), registration_number: T.nilable(String), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(TokenCreateParams::Account::Company::Verification)).void + params(address: T.nilable(TokenCreateParams::Account::Company::Address), address_kana: T.nilable(TokenCreateParams::Account::Company::AddressKana), address_kanji: T.nilable(TokenCreateParams::Account::Company::AddressKanji), directors_provided: T.nilable(T::Boolean), directorship_declaration: T.nilable(TokenCreateParams::Account::Company::DirectorshipDeclaration), executives_provided: T.nilable(T::Boolean), export_license_id: T.nilable(String), export_purpose_code: T.nilable(String), name: T.nilable(String), name_kana: T.nilable(String), name_kanji: T.nilable(String), owners_provided: T.nilable(T::Boolean), ownership_declaration: T.nilable(TokenCreateParams::Account::Company::OwnershipDeclaration), ownership_declaration_shown_and_signed: T.nilable(T::Boolean), ownership_exemption_reason: T.nilable(T.any(String, String)), phone: T.nilable(String), registration_date: T.nilable(T.any(String, TokenCreateParams::Account::Company::RegistrationDate)), registration_number: T.nilable(String), representative_declaration: T.nilable(TokenCreateParams::Account::Company::RepresentativeDeclaration), structure: T.nilable(T.any(String, String)), tax_id: T.nilable(String), tax_id_registrar: T.nilable(String), vat_id: T.nilable(String), verification: T.nilable(TokenCreateParams::Account::Company::Verification)).void } def initialize( address: nil, @@ -394,6 +422,7 @@ module Stripe phone: nil, registration_date: nil, registration_number: nil, + representative_declaration: nil, structure: nil, tax_id: nil, tax_id_registrar: nil, @@ -401,8 +430,8 @@ module Stripe verification: nil ); end end - class Individual < Stripe::RequestParams - class Address < Stripe::RequestParams + class Individual < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -445,7 +474,7 @@ module Stripe state: nil ); end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -494,7 +523,7 @@ module Stripe town: nil ); end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -543,7 +572,7 @@ module Stripe town: nil ); end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -562,7 +591,7 @@ module Stripe sig { params(day: Integer, month: Integer, year: Integer).void } def initialize(day: nil, month: nil, year: nil); end end - class RegisteredAddress < Stripe::RequestParams + class RegisteredAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -605,7 +634,7 @@ module Stripe state: nil ); end end - class Relationship < Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. sig { returns(T.nilable(T::Boolean)) } def director; end @@ -644,8 +673,8 @@ module Stripe title: nil ); end end - class Verification < Stripe::RequestParams - class AdditionalDocument < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class AdditionalDocument < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -659,7 +688,7 @@ module Stripe sig { params(back: T.nilable(String), front: T.nilable(String)).void } def initialize(back: nil, front: nil); end end - class Document < Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -890,7 +919,7 @@ module Stripe tos_shown_and_accepted: nil ); end end - class BankAccount < Stripe::RequestParams + class BankAccount < ::Stripe::RequestParams # The name of the person or business that owns the bank account. This field is required when attaching the bank account to a `Customer` object. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -945,8 +974,8 @@ module Stripe routing_number: nil ); end end - class Card < Stripe::RequestParams - class Networks < Stripe::RequestParams + class Card < ::Stripe::RequestParams + class Networks < ::Stripe::RequestParams # The customer's preferred card network for co-branded cards. Supports `cartes_bancaires`, `mastercard`, or `visa`. Selection of a network that does not apply to the card will be stored as `invalid_preference` on the card. sig { returns(T.nilable(String)) } def preferred; end @@ -1041,7 +1070,7 @@ module Stripe number: nil ); end end - class CvcUpdate < Stripe::RequestParams + class CvcUpdate < ::Stripe::RequestParams # The CVC value, in string form. sig { returns(String) } def cvc; end @@ -1050,9 +1079,9 @@ module Stripe sig { params(cvc: String).void } def initialize(cvc: nil); end end - class Person < Stripe::RequestParams - class AdditionalTosAcceptances < Stripe::RequestParams - class Account < Stripe::RequestParams + class Person < ::Stripe::RequestParams + class AdditionalTosAcceptances < ::Stripe::RequestParams + class Account < ::Stripe::RequestParams # The Unix timestamp marking when the account representative accepted the service agreement. sig { returns(T.nilable(Integer)) } def date; end @@ -1085,7 +1114,7 @@ module Stripe } def initialize(account: nil); end end - class Address < Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -1128,7 +1157,7 @@ module Stripe state: nil ); end end - class AddressKana < Stripe::RequestParams + class AddressKana < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -1177,7 +1206,7 @@ module Stripe town: nil ); end end - class AddressKanji < Stripe::RequestParams + class AddressKanji < ::Stripe::RequestParams # City or ward. sig { returns(T.nilable(String)) } def city; end @@ -1226,7 +1255,7 @@ module Stripe town: nil ); end end - class Dob < Stripe::RequestParams + class Dob < ::Stripe::RequestParams # The day of birth, between 1 and 31. sig { returns(Integer) } def day; end @@ -1245,8 +1274,8 @@ module Stripe sig { params(day: Integer, month: Integer, year: Integer).void } def initialize(day: nil, month: nil, year: nil); end end - class Documents < Stripe::RequestParams - class CompanyAuthorization < Stripe::RequestParams + class Documents < ::Stripe::RequestParams + class CompanyAuthorization < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -1255,7 +1284,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class Passport < Stripe::RequestParams + class Passport < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -1264,7 +1293,7 @@ module Stripe sig { params(files: T.nilable(T::Array[String])).void } def initialize(files: nil); end end - class Visa < Stripe::RequestParams + class Visa < ::Stripe::RequestParams # One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`. sig { returns(T.nilable(T::Array[String])) } def files; end @@ -1299,7 +1328,7 @@ module Stripe } def initialize(company_authorization: nil, passport: nil, visa: nil); end end - class RegisteredAddress < Stripe::RequestParams + class RegisteredAddress < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -1342,7 +1371,7 @@ module Stripe state: nil ); end end - class Relationship < Stripe::RequestParams + class Relationship < ::Stripe::RequestParams # Whether the person is the authorizer of the account's representative. sig { returns(T.nilable(T::Boolean)) } def authorizer; end @@ -1399,8 +1428,8 @@ module Stripe title: nil ); end end - class UsCfpbData < Stripe::RequestParams - class EthnicityDetails < Stripe::RequestParams + class UsCfpbData < ::Stripe::RequestParams + class EthnicityDetails < ::Stripe::RequestParams # The persons ethnicity sig { returns(T.nilable(T::Array[String])) } def ethnicity; end @@ -1418,7 +1447,7 @@ module Stripe } def initialize(ethnicity: nil, ethnicity_other: nil); end end - class RaceDetails < Stripe::RequestParams + class RaceDetails < ::Stripe::RequestParams # The persons race. sig { returns(T.nilable(T::Array[String])) } def race; end @@ -1456,8 +1485,8 @@ module Stripe } def initialize(ethnicity_details: nil, race_details: nil, self_identified_gender: nil); end end - class Verification < Stripe::RequestParams - class AdditionalDocument < Stripe::RequestParams + class Verification < ::Stripe::RequestParams + class AdditionalDocument < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -1471,7 +1500,7 @@ module Stripe sig { params(back: T.nilable(String), front: T.nilable(String)).void } def initialize(back: nil, front: nil); end end - class Document < Stripe::RequestParams + class Document < ::Stripe::RequestParams # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. sig { returns(T.nilable(String)) } def back; end @@ -1696,7 +1725,7 @@ module Stripe verification: nil ); end end - class Pii < Stripe::RequestParams + class Pii < ::Stripe::RequestParams # The `id_number` for the PII, in string form. sig { returns(T.nilable(String)) } def id_number; end diff --git a/rbi/stripe/params/token_retrieve_params.rbi b/rbi/stripe/params/token_retrieve_params.rbi index f23102e1..09081a3a 100644 --- a/rbi/stripe/params/token_retrieve_params.rbi +++ b/rbi/stripe/params/token_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class TokenRetrieveParams < Stripe::RequestParams + class TokenRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/topup_cancel_params.rbi b/rbi/stripe/params/topup_cancel_params.rbi index 12f4967c..705e7353 100644 --- a/rbi/stripe/params/topup_cancel_params.rbi +++ b/rbi/stripe/params/topup_cancel_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class TopupCancelParams < Stripe::RequestParams + class TopupCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/topup_create_params.rbi b/rbi/stripe/params/topup_create_params.rbi index c1064a0e..4592d49e 100644 --- a/rbi/stripe/params/topup_create_params.rbi +++ b/rbi/stripe/params/topup_create_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class TopupCreateParams < Stripe::RequestParams + class TopupCreateParams < ::Stripe::RequestParams # A positive integer representing how much to transfer. sig { returns(Integer) } def amount; end diff --git a/rbi/stripe/params/topup_list_params.rbi b/rbi/stripe/params/topup_list_params.rbi index 9b078955..46549721 100644 --- a/rbi/stripe/params/topup_list_params.rbi +++ b/rbi/stripe/params/topup_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class TopupListParams < Stripe::RequestParams - class Amount < Stripe::RequestParams + class TopupListParams < ::Stripe::RequestParams + class Amount < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -30,7 +30,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class Created < Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/topup_retrieve_params.rbi b/rbi/stripe/params/topup_retrieve_params.rbi index 900f5d08..74b258cb 100644 --- a/rbi/stripe/params/topup_retrieve_params.rbi +++ b/rbi/stripe/params/topup_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class TopupRetrieveParams < Stripe::RequestParams + class TopupRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/topup_update_params.rbi b/rbi/stripe/params/topup_update_params.rbi index b7fd683e..439db88b 100644 --- a/rbi/stripe/params/topup_update_params.rbi +++ b/rbi/stripe/params/topup_update_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class TopupUpdateParams < Stripe::RequestParams + class TopupUpdateParams < ::Stripe::RequestParams # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } def description; end diff --git a/rbi/stripe/params/transfer_create_params.rbi b/rbi/stripe/params/transfer_create_params.rbi index dbab375f..1c48a3e2 100644 --- a/rbi/stripe/params/transfer_create_params.rbi +++ b/rbi/stripe/params/transfer_create_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class TransferCreateParams < Stripe::RequestParams + class TransferCreateParams < ::Stripe::RequestParams # A positive integer in cents (or local equivalent) representing how much to transfer. sig { returns(T.nilable(Integer)) } def amount; end diff --git a/rbi/stripe/params/transfer_list_params.rbi b/rbi/stripe/params/transfer_list_params.rbi index 60883e77..439e2de5 100644 --- a/rbi/stripe/params/transfer_list_params.rbi +++ b/rbi/stripe/params/transfer_list_params.rbi @@ -3,8 +3,8 @@ # typed: true module Stripe - class TransferListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class TransferListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/transfer_retrieve_params.rbi b/rbi/stripe/params/transfer_retrieve_params.rbi index 9d8661a6..70aef151 100644 --- a/rbi/stripe/params/transfer_retrieve_params.rbi +++ b/rbi/stripe/params/transfer_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class TransferRetrieveParams < Stripe::RequestParams + class TransferRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/transfer_reversal_create_params.rbi b/rbi/stripe/params/transfer_reversal_create_params.rbi index 17d997cd..e924d290 100644 --- a/rbi/stripe/params/transfer_reversal_create_params.rbi +++ b/rbi/stripe/params/transfer_reversal_create_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class TransferReversalCreateParams < Stripe::RequestParams + class TransferReversalCreateParams < ::Stripe::RequestParams # A positive integer in cents (or local equivalent) representing how much of this transfer to reverse. Can only reverse up to the unreversed amount remaining of the transfer. Partial transfer reversals are only allowed for transfers to Stripe Accounts. Defaults to the entire transfer amount. sig { returns(T.nilable(Integer)) } def amount; end diff --git a/rbi/stripe/params/transfer_reversal_list_params.rbi b/rbi/stripe/params/transfer_reversal_list_params.rbi index f7236889..6b542b19 100644 --- a/rbi/stripe/params/transfer_reversal_list_params.rbi +++ b/rbi/stripe/params/transfer_reversal_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class TransferReversalListParams < Stripe::RequestParams + class TransferReversalListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/transfer_reversal_retrieve_params.rbi b/rbi/stripe/params/transfer_reversal_retrieve_params.rbi index 65dd279b..66069f58 100644 --- a/rbi/stripe/params/transfer_reversal_retrieve_params.rbi +++ b/rbi/stripe/params/transfer_reversal_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class TransferReversalRetrieveParams < Stripe::RequestParams + class TransferReversalRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/transfer_reversal_update_params.rbi b/rbi/stripe/params/transfer_reversal_update_params.rbi index 5c5721bf..cd81f830 100644 --- a/rbi/stripe/params/transfer_reversal_update_params.rbi +++ b/rbi/stripe/params/transfer_reversal_update_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class TransferReversalUpdateParams < Stripe::RequestParams + class TransferReversalUpdateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/transfer_update_params.rbi b/rbi/stripe/params/transfer_update_params.rbi index cb30bb69..25dcb627 100644 --- a/rbi/stripe/params/transfer_update_params.rbi +++ b/rbi/stripe/params/transfer_update_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class TransferUpdateParams < Stripe::RequestParams + class TransferUpdateParams < ::Stripe::RequestParams # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } def description; end diff --git a/rbi/stripe/params/treasury/credit_reversal_create_params.rbi b/rbi/stripe/params/treasury/credit_reversal_create_params.rbi index e4fd57a7..9e5b4be5 100644 --- a/rbi/stripe/params/treasury/credit_reversal_create_params.rbi +++ b/rbi/stripe/params/treasury/credit_reversal_create_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class CreditReversalCreateParams < Stripe::RequestParams + class CreditReversalCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/treasury/credit_reversal_list_params.rbi b/rbi/stripe/params/treasury/credit_reversal_list_params.rbi index dc31ddd1..62fc0003 100644 --- a/rbi/stripe/params/treasury/credit_reversal_list_params.rbi +++ b/rbi/stripe/params/treasury/credit_reversal_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class CreditReversalListParams < Stripe::RequestParams + class CreditReversalListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/treasury/credit_reversal_retrieve_params.rbi b/rbi/stripe/params/treasury/credit_reversal_retrieve_params.rbi index 5cef1026..982e1f28 100644 --- a/rbi/stripe/params/treasury/credit_reversal_retrieve_params.rbi +++ b/rbi/stripe/params/treasury/credit_reversal_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class CreditReversalRetrieveParams < Stripe::RequestParams + class CreditReversalRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/treasury/debit_reversal_create_params.rbi b/rbi/stripe/params/treasury/debit_reversal_create_params.rbi index 6fd4c1fb..3972317b 100644 --- a/rbi/stripe/params/treasury/debit_reversal_create_params.rbi +++ b/rbi/stripe/params/treasury/debit_reversal_create_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class DebitReversalCreateParams < Stripe::RequestParams + class DebitReversalCreateParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/treasury/debit_reversal_list_params.rbi b/rbi/stripe/params/treasury/debit_reversal_list_params.rbi index 369e38dd..ac11fad2 100644 --- a/rbi/stripe/params/treasury/debit_reversal_list_params.rbi +++ b/rbi/stripe/params/treasury/debit_reversal_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class DebitReversalListParams < Stripe::RequestParams + class DebitReversalListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/treasury/debit_reversal_retrieve_params.rbi b/rbi/stripe/params/treasury/debit_reversal_retrieve_params.rbi index 02f36808..12737f5c 100644 --- a/rbi/stripe/params/treasury/debit_reversal_retrieve_params.rbi +++ b/rbi/stripe/params/treasury/debit_reversal_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class DebitReversalRetrieveParams < Stripe::RequestParams + class DebitReversalRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/treasury/financial_account_close_params.rbi b/rbi/stripe/params/treasury/financial_account_close_params.rbi index c9d28389..a06d872d 100644 --- a/rbi/stripe/params/treasury/financial_account_close_params.rbi +++ b/rbi/stripe/params/treasury/financial_account_close_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Treasury - class FinancialAccountCloseParams < Stripe::RequestParams - class ForwardingSettings < Stripe::RequestParams + class FinancialAccountCloseParams < ::Stripe::RequestParams + class ForwardingSettings < ::Stripe::RequestParams # The financial_account id sig { returns(T.nilable(String)) } def financial_account; end diff --git a/rbi/stripe/params/treasury/financial_account_create_params.rbi b/rbi/stripe/params/treasury/financial_account_create_params.rbi index f76e459e..19aff058 100644 --- a/rbi/stripe/params/treasury/financial_account_create_params.rbi +++ b/rbi/stripe/params/treasury/financial_account_create_params.rbi @@ -4,9 +4,9 @@ # typed: true module Stripe module Treasury - class FinancialAccountCreateParams < Stripe::RequestParams - class Features < Stripe::RequestParams - class CardIssuing < Stripe::RequestParams + class FinancialAccountCreateParams < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -15,7 +15,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class DepositInsurance < Stripe::RequestParams + class DepositInsurance < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -24,8 +24,8 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class FinancialAddresses < Stripe::RequestParams - class Aba < Stripe::RequestParams + class FinancialAddresses < ::Stripe::RequestParams + class Aba < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -48,8 +48,8 @@ module Stripe } def initialize(aba: nil); end end - class InboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class InboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -72,7 +72,7 @@ module Stripe } def initialize(ach: nil); end end - class IntraStripeFlows < Stripe::RequestParams + class IntraStripeFlows < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -81,8 +81,8 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class OutboundPayments < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundPayments < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -91,7 +91,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -123,8 +123,8 @@ module Stripe } def initialize(ach: nil, us_domestic_wire: nil); end end - class OutboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -133,7 +133,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -239,7 +239,7 @@ module Stripe outbound_transfers: nil ); end end - class PlatformRestrictions < Stripe::RequestParams + class PlatformRestrictions < ::Stripe::RequestParams # Restricts all inbound money movement. sig { returns(T.nilable(String)) } def inbound_flows; end diff --git a/rbi/stripe/params/treasury/financial_account_features_retrieve_params.rbi b/rbi/stripe/params/treasury/financial_account_features_retrieve_params.rbi index 8ecd5fa8..2143d0aa 100644 --- a/rbi/stripe/params/treasury/financial_account_features_retrieve_params.rbi +++ b/rbi/stripe/params/treasury/financial_account_features_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class FinancialAccountFeaturesRetrieveParams < Stripe::RequestParams + class FinancialAccountFeaturesRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/treasury/financial_account_features_update_params.rbi b/rbi/stripe/params/treasury/financial_account_features_update_params.rbi index 6f5f69be..c683d329 100644 --- a/rbi/stripe/params/treasury/financial_account_features_update_params.rbi +++ b/rbi/stripe/params/treasury/financial_account_features_update_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Treasury - class FinancialAccountFeaturesUpdateParams < Stripe::RequestParams - class CardIssuing < Stripe::RequestParams + class FinancialAccountFeaturesUpdateParams < ::Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -14,7 +14,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class DepositInsurance < Stripe::RequestParams + class DepositInsurance < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -23,8 +23,8 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class FinancialAddresses < Stripe::RequestParams - class Aba < Stripe::RequestParams + class FinancialAddresses < ::Stripe::RequestParams + class Aba < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -47,8 +47,8 @@ module Stripe } def initialize(aba: nil); end end - class InboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class InboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -71,7 +71,7 @@ module Stripe } def initialize(ach: nil); end end - class IntraStripeFlows < Stripe::RequestParams + class IntraStripeFlows < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -80,8 +80,8 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class OutboundPayments < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundPayments < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -90,7 +90,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -122,8 +122,8 @@ module Stripe } def initialize(ach: nil, us_domestic_wire: nil); end end - class OutboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -132,7 +132,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end diff --git a/rbi/stripe/params/treasury/financial_account_list_params.rbi b/rbi/stripe/params/treasury/financial_account_list_params.rbi index 8565052e..5a9dd443 100644 --- a/rbi/stripe/params/treasury/financial_account_list_params.rbi +++ b/rbi/stripe/params/treasury/financial_account_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Treasury - class FinancialAccountListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class FinancialAccountListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/treasury/financial_account_retrieve_features_params.rbi b/rbi/stripe/params/treasury/financial_account_retrieve_features_params.rbi index d72d65f8..40b3b734 100644 --- a/rbi/stripe/params/treasury/financial_account_retrieve_features_params.rbi +++ b/rbi/stripe/params/treasury/financial_account_retrieve_features_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class FinancialAccountRetrieveFeaturesParams < Stripe::RequestParams + class FinancialAccountRetrieveFeaturesParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/treasury/financial_account_retrieve_params.rbi b/rbi/stripe/params/treasury/financial_account_retrieve_params.rbi index d472f450..d94bbcf5 100644 --- a/rbi/stripe/params/treasury/financial_account_retrieve_params.rbi +++ b/rbi/stripe/params/treasury/financial_account_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class FinancialAccountRetrieveParams < Stripe::RequestParams + class FinancialAccountRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/treasury/financial_account_update_features_params.rbi b/rbi/stripe/params/treasury/financial_account_update_features_params.rbi index 0aa8accd..db06cf2d 100644 --- a/rbi/stripe/params/treasury/financial_account_update_features_params.rbi +++ b/rbi/stripe/params/treasury/financial_account_update_features_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Treasury - class FinancialAccountUpdateFeaturesParams < Stripe::RequestParams - class CardIssuing < Stripe::RequestParams + class FinancialAccountUpdateFeaturesParams < ::Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -14,7 +14,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class DepositInsurance < Stripe::RequestParams + class DepositInsurance < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -23,8 +23,8 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class FinancialAddresses < Stripe::RequestParams - class Aba < Stripe::RequestParams + class FinancialAddresses < ::Stripe::RequestParams + class Aba < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -47,8 +47,8 @@ module Stripe } def initialize(aba: nil); end end - class InboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class InboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -71,7 +71,7 @@ module Stripe } def initialize(ach: nil); end end - class IntraStripeFlows < Stripe::RequestParams + class IntraStripeFlows < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -80,8 +80,8 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class OutboundPayments < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundPayments < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -90,7 +90,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -122,8 +122,8 @@ module Stripe } def initialize(ach: nil, us_domestic_wire: nil); end end - class OutboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -132,7 +132,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end diff --git a/rbi/stripe/params/treasury/financial_account_update_params.rbi b/rbi/stripe/params/treasury/financial_account_update_params.rbi index 4af50caa..0cb96ccc 100644 --- a/rbi/stripe/params/treasury/financial_account_update_params.rbi +++ b/rbi/stripe/params/treasury/financial_account_update_params.rbi @@ -4,9 +4,9 @@ # typed: true module Stripe module Treasury - class FinancialAccountUpdateParams < Stripe::RequestParams - class Features < Stripe::RequestParams - class CardIssuing < Stripe::RequestParams + class FinancialAccountUpdateParams < ::Stripe::RequestParams + class Features < ::Stripe::RequestParams + class CardIssuing < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -15,7 +15,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class DepositInsurance < Stripe::RequestParams + class DepositInsurance < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -24,8 +24,8 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class FinancialAddresses < Stripe::RequestParams - class Aba < Stripe::RequestParams + class FinancialAddresses < ::Stripe::RequestParams + class Aba < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -48,8 +48,8 @@ module Stripe } def initialize(aba: nil); end end - class InboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class InboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -72,7 +72,7 @@ module Stripe } def initialize(ach: nil); end end - class IntraStripeFlows < Stripe::RequestParams + class IntraStripeFlows < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -81,8 +81,8 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class OutboundPayments < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundPayments < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -91,7 +91,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -123,8 +123,8 @@ module Stripe } def initialize(ach: nil, us_domestic_wire: nil); end end - class OutboundTransfers < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundTransfers < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -133,7 +133,7 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # Whether the FinancialAccount should have the Feature. sig { returns(T::Boolean) } def requested; end @@ -239,7 +239,7 @@ module Stripe outbound_transfers: nil ); end end - class ForwardingSettings < Stripe::RequestParams + class ForwardingSettings < ::Stripe::RequestParams # The financial_account id sig { returns(T.nilable(String)) } def financial_account; end @@ -260,7 +260,7 @@ module Stripe } def initialize(financial_account: nil, payment_method: nil, type: nil); end end - class PlatformRestrictions < Stripe::RequestParams + class PlatformRestrictions < ::Stripe::RequestParams # Restricts all inbound money movement. sig { returns(T.nilable(String)) } def inbound_flows; end diff --git a/rbi/stripe/params/treasury/inbound_transfer_cancel_params.rbi b/rbi/stripe/params/treasury/inbound_transfer_cancel_params.rbi index 63de6718..78a2da01 100644 --- a/rbi/stripe/params/treasury/inbound_transfer_cancel_params.rbi +++ b/rbi/stripe/params/treasury/inbound_transfer_cancel_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class InboundTransferCancelParams < Stripe::RequestParams + class InboundTransferCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/treasury/inbound_transfer_create_params.rbi b/rbi/stripe/params/treasury/inbound_transfer_create_params.rbi index a6dc512e..8d2c69d1 100644 --- a/rbi/stripe/params/treasury/inbound_transfer_create_params.rbi +++ b/rbi/stripe/params/treasury/inbound_transfer_create_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class InboundTransferCreateParams < Stripe::RequestParams + class InboundTransferCreateParams < ::Stripe::RequestParams # Amount (in cents) to be transferred. sig { returns(Integer) } def amount; end diff --git a/rbi/stripe/params/treasury/inbound_transfer_fail_params.rbi b/rbi/stripe/params/treasury/inbound_transfer_fail_params.rbi index 3fcac96e..4d0575e5 100644 --- a/rbi/stripe/params/treasury/inbound_transfer_fail_params.rbi +++ b/rbi/stripe/params/treasury/inbound_transfer_fail_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Treasury - class InboundTransferFailParams < Stripe::RequestParams - class FailureDetails < Stripe::RequestParams + class InboundTransferFailParams < ::Stripe::RequestParams + class FailureDetails < ::Stripe::RequestParams # Reason for the failure. sig { returns(T.nilable(String)) } def code; end diff --git a/rbi/stripe/params/treasury/inbound_transfer_list_params.rbi b/rbi/stripe/params/treasury/inbound_transfer_list_params.rbi index 06b9cefa..69ce1f1a 100644 --- a/rbi/stripe/params/treasury/inbound_transfer_list_params.rbi +++ b/rbi/stripe/params/treasury/inbound_transfer_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class InboundTransferListParams < Stripe::RequestParams + class InboundTransferListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/treasury/inbound_transfer_retrieve_params.rbi b/rbi/stripe/params/treasury/inbound_transfer_retrieve_params.rbi index 1194b411..a5e35ea0 100644 --- a/rbi/stripe/params/treasury/inbound_transfer_retrieve_params.rbi +++ b/rbi/stripe/params/treasury/inbound_transfer_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class InboundTransferRetrieveParams < Stripe::RequestParams + class InboundTransferRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rbi b/rbi/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rbi index 2d91986a..438eebe8 100644 --- a/rbi/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rbi +++ b/rbi/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class InboundTransferReturnInboundTransferParams < Stripe::RequestParams + class InboundTransferReturnInboundTransferParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/treasury/inbound_transfer_succeed_params.rbi b/rbi/stripe/params/treasury/inbound_transfer_succeed_params.rbi index 538b51c2..5b71ec8f 100644 --- a/rbi/stripe/params/treasury/inbound_transfer_succeed_params.rbi +++ b/rbi/stripe/params/treasury/inbound_transfer_succeed_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class InboundTransferSucceedParams < Stripe::RequestParams + class InboundTransferSucceedParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/treasury/outbound_payment_cancel_params.rbi b/rbi/stripe/params/treasury/outbound_payment_cancel_params.rbi index 8c0fc000..cbeae94c 100644 --- a/rbi/stripe/params/treasury/outbound_payment_cancel_params.rbi +++ b/rbi/stripe/params/treasury/outbound_payment_cancel_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class OutboundPaymentCancelParams < Stripe::RequestParams + class OutboundPaymentCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/treasury/outbound_payment_create_params.rbi b/rbi/stripe/params/treasury/outbound_payment_create_params.rbi index 169e54ec..8ed52ef7 100644 --- a/rbi/stripe/params/treasury/outbound_payment_create_params.rbi +++ b/rbi/stripe/params/treasury/outbound_payment_create_params.rbi @@ -4,10 +4,10 @@ # typed: true module Stripe module Treasury - class OutboundPaymentCreateParams < Stripe::RequestParams - class DestinationPaymentMethodData < Stripe::RequestParams - class BillingDetails < Stripe::RequestParams - class Address < Stripe::RequestParams + class OutboundPaymentCreateParams < ::Stripe::RequestParams + class DestinationPaymentMethodData < ::Stripe::RequestParams + class BillingDetails < ::Stripe::RequestParams + class Address < ::Stripe::RequestParams # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -79,7 +79,7 @@ module Stripe } def initialize(address: nil, email: nil, name: nil, phone: nil); end end - class UsBankAccount < Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -164,8 +164,8 @@ module Stripe us_bank_account: nil ); end end - class DestinationPaymentMethodOptions < Stripe::RequestParams - class UsBankAccount < Stripe::RequestParams + class DestinationPaymentMethodOptions < ::Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://stripe.com/docs/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. sig { returns(T.nilable(String)) } def network; end @@ -188,7 +188,7 @@ module Stripe } def initialize(us_bank_account: nil); end end - class EndUserDetails < Stripe::RequestParams + class EndUserDetails < ::Stripe::RequestParams # IP address of the user initiating the OutboundPayment. Must be supplied if `present` is set to `true`. sig { returns(T.nilable(String)) } def ip_address; end diff --git a/rbi/stripe/params/treasury/outbound_payment_fail_params.rbi b/rbi/stripe/params/treasury/outbound_payment_fail_params.rbi index 2df0786c..73eecc64 100644 --- a/rbi/stripe/params/treasury/outbound_payment_fail_params.rbi +++ b/rbi/stripe/params/treasury/outbound_payment_fail_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class OutboundPaymentFailParams < Stripe::RequestParams + class OutboundPaymentFailParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/treasury/outbound_payment_list_params.rbi b/rbi/stripe/params/treasury/outbound_payment_list_params.rbi index 71c64863..9d9e5522 100644 --- a/rbi/stripe/params/treasury/outbound_payment_list_params.rbi +++ b/rbi/stripe/params/treasury/outbound_payment_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Treasury - class OutboundPaymentListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class OutboundPaymentListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/treasury/outbound_payment_post_params.rbi b/rbi/stripe/params/treasury/outbound_payment_post_params.rbi index 957ec91d..c41ce148 100644 --- a/rbi/stripe/params/treasury/outbound_payment_post_params.rbi +++ b/rbi/stripe/params/treasury/outbound_payment_post_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class OutboundPaymentPostParams < Stripe::RequestParams + class OutboundPaymentPostParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/treasury/outbound_payment_retrieve_params.rbi b/rbi/stripe/params/treasury/outbound_payment_retrieve_params.rbi index c39e7cd6..9259df7f 100644 --- a/rbi/stripe/params/treasury/outbound_payment_retrieve_params.rbi +++ b/rbi/stripe/params/treasury/outbound_payment_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class OutboundPaymentRetrieveParams < Stripe::RequestParams + class OutboundPaymentRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rbi b/rbi/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rbi index c0364c78..a7516930 100644 --- a/rbi/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rbi +++ b/rbi/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Treasury - class OutboundPaymentReturnOutboundPaymentParams < Stripe::RequestParams - class ReturnedDetails < Stripe::RequestParams + class OutboundPaymentReturnOutboundPaymentParams < ::Stripe::RequestParams + class ReturnedDetails < ::Stripe::RequestParams # The return code to be set on the OutboundPayment object. sig { returns(T.nilable(String)) } def code; end diff --git a/rbi/stripe/params/treasury/outbound_payment_update_params.rbi b/rbi/stripe/params/treasury/outbound_payment_update_params.rbi index a39e2b30..1c9cec4e 100644 --- a/rbi/stripe/params/treasury/outbound_payment_update_params.rbi +++ b/rbi/stripe/params/treasury/outbound_payment_update_params.rbi @@ -4,9 +4,9 @@ # typed: true module Stripe module Treasury - class OutboundPaymentUpdateParams < Stripe::RequestParams - class TrackingDetails < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundPaymentUpdateParams < ::Stripe::RequestParams + class TrackingDetails < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # ACH trace ID for funds sent over the `ach` network. sig { returns(String) } def trace_id; end @@ -15,7 +15,7 @@ module Stripe sig { params(trace_id: String).void } def initialize(trace_id: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # CHIPS System Sequence Number (SSN) for funds sent over the `us_domestic_wire` network. sig { returns(T.nilable(String)) } def chips; end diff --git a/rbi/stripe/params/treasury/outbound_transfer_cancel_params.rbi b/rbi/stripe/params/treasury/outbound_transfer_cancel_params.rbi index 86aac71b..ecc75c67 100644 --- a/rbi/stripe/params/treasury/outbound_transfer_cancel_params.rbi +++ b/rbi/stripe/params/treasury/outbound_transfer_cancel_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class OutboundTransferCancelParams < Stripe::RequestParams + class OutboundTransferCancelParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/treasury/outbound_transfer_create_params.rbi b/rbi/stripe/params/treasury/outbound_transfer_create_params.rbi index 8d0f4759..cccce8f9 100644 --- a/rbi/stripe/params/treasury/outbound_transfer_create_params.rbi +++ b/rbi/stripe/params/treasury/outbound_transfer_create_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Treasury - class OutboundTransferCreateParams < Stripe::RequestParams - class DestinationPaymentMethodData < Stripe::RequestParams + class OutboundTransferCreateParams < ::Stripe::RequestParams + class DestinationPaymentMethodData < ::Stripe::RequestParams # Required if type is set to `financial_account`. The FinancialAccount ID to send funds to. sig { returns(T.nilable(String)) } def financial_account; end @@ -19,8 +19,8 @@ module Stripe sig { params(financial_account: T.nilable(String), type: String).void } def initialize(financial_account: nil, type: nil); end end - class DestinationPaymentMethodOptions < Stripe::RequestParams - class UsBankAccount < Stripe::RequestParams + class DestinationPaymentMethodOptions < ::Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # Specifies the network rails to be used. If not set, will default to the PaymentMethod's preferred network. See the [docs](https://stripe.com/docs/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. sig { returns(T.nilable(String)) } def network; end diff --git a/rbi/stripe/params/treasury/outbound_transfer_fail_params.rbi b/rbi/stripe/params/treasury/outbound_transfer_fail_params.rbi index 8b734492..1fafd1aa 100644 --- a/rbi/stripe/params/treasury/outbound_transfer_fail_params.rbi +++ b/rbi/stripe/params/treasury/outbound_transfer_fail_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class OutboundTransferFailParams < Stripe::RequestParams + class OutboundTransferFailParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/treasury/outbound_transfer_list_params.rbi b/rbi/stripe/params/treasury/outbound_transfer_list_params.rbi index 86157044..bd5fff92 100644 --- a/rbi/stripe/params/treasury/outbound_transfer_list_params.rbi +++ b/rbi/stripe/params/treasury/outbound_transfer_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class OutboundTransferListParams < Stripe::RequestParams + class OutboundTransferListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/treasury/outbound_transfer_post_params.rbi b/rbi/stripe/params/treasury/outbound_transfer_post_params.rbi index 15e16ab0..8efb444c 100644 --- a/rbi/stripe/params/treasury/outbound_transfer_post_params.rbi +++ b/rbi/stripe/params/treasury/outbound_transfer_post_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class OutboundTransferPostParams < Stripe::RequestParams + class OutboundTransferPostParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/treasury/outbound_transfer_retrieve_params.rbi b/rbi/stripe/params/treasury/outbound_transfer_retrieve_params.rbi index 11c2f42e..36f14af3 100644 --- a/rbi/stripe/params/treasury/outbound_transfer_retrieve_params.rbi +++ b/rbi/stripe/params/treasury/outbound_transfer_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class OutboundTransferRetrieveParams < Stripe::RequestParams + class OutboundTransferRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rbi b/rbi/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rbi index 42ae2c4a..accd65e1 100644 --- a/rbi/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rbi +++ b/rbi/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Treasury - class OutboundTransferReturnOutboundTransferParams < Stripe::RequestParams - class ReturnedDetails < Stripe::RequestParams + class OutboundTransferReturnOutboundTransferParams < ::Stripe::RequestParams + class ReturnedDetails < ::Stripe::RequestParams # Reason for the return. sig { returns(T.nilable(String)) } def code; end diff --git a/rbi/stripe/params/treasury/outbound_transfer_update_params.rbi b/rbi/stripe/params/treasury/outbound_transfer_update_params.rbi index 7d88e7d6..c880f16e 100644 --- a/rbi/stripe/params/treasury/outbound_transfer_update_params.rbi +++ b/rbi/stripe/params/treasury/outbound_transfer_update_params.rbi @@ -4,9 +4,9 @@ # typed: true module Stripe module Treasury - class OutboundTransferUpdateParams < Stripe::RequestParams - class TrackingDetails < Stripe::RequestParams - class Ach < Stripe::RequestParams + class OutboundTransferUpdateParams < ::Stripe::RequestParams + class TrackingDetails < ::Stripe::RequestParams + class Ach < ::Stripe::RequestParams # ACH trace ID for funds sent over the `ach` network. sig { returns(String) } def trace_id; end @@ -15,7 +15,7 @@ module Stripe sig { params(trace_id: String).void } def initialize(trace_id: nil); end end - class UsDomesticWire < Stripe::RequestParams + class UsDomesticWire < ::Stripe::RequestParams # CHIPS System Sequence Number (SSN) for funds sent over the `us_domestic_wire` network. sig { returns(T.nilable(String)) } def chips; end diff --git a/rbi/stripe/params/treasury/received_credit_create_params.rbi b/rbi/stripe/params/treasury/received_credit_create_params.rbi index ac0b81e9..7dd6da47 100644 --- a/rbi/stripe/params/treasury/received_credit_create_params.rbi +++ b/rbi/stripe/params/treasury/received_credit_create_params.rbi @@ -4,9 +4,9 @@ # typed: true module Stripe module Treasury - class ReceivedCreditCreateParams < Stripe::RequestParams - class InitiatingPaymentMethodDetails < Stripe::RequestParams - class UsBankAccount < Stripe::RequestParams + class ReceivedCreditCreateParams < ::Stripe::RequestParams + class InitiatingPaymentMethodDetails < ::Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # The bank account holder's name. sig { returns(T.nilable(String)) } def account_holder_name; end diff --git a/rbi/stripe/params/treasury/received_credit_list_params.rbi b/rbi/stripe/params/treasury/received_credit_list_params.rbi index e02598cd..32f64c94 100644 --- a/rbi/stripe/params/treasury/received_credit_list_params.rbi +++ b/rbi/stripe/params/treasury/received_credit_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Treasury - class ReceivedCreditListParams < Stripe::RequestParams - class LinkedFlows < Stripe::RequestParams + class ReceivedCreditListParams < ::Stripe::RequestParams + class LinkedFlows < ::Stripe::RequestParams # The source flow type. sig { returns(String) } def source_flow_type; end diff --git a/rbi/stripe/params/treasury/received_credit_retrieve_params.rbi b/rbi/stripe/params/treasury/received_credit_retrieve_params.rbi index bebcd875..89ffe43c 100644 --- a/rbi/stripe/params/treasury/received_credit_retrieve_params.rbi +++ b/rbi/stripe/params/treasury/received_credit_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class ReceivedCreditRetrieveParams < Stripe::RequestParams + class ReceivedCreditRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/treasury/received_debit_create_params.rbi b/rbi/stripe/params/treasury/received_debit_create_params.rbi index 4a37f263..be1d5601 100644 --- a/rbi/stripe/params/treasury/received_debit_create_params.rbi +++ b/rbi/stripe/params/treasury/received_debit_create_params.rbi @@ -4,9 +4,9 @@ # typed: true module Stripe module Treasury - class ReceivedDebitCreateParams < Stripe::RequestParams - class InitiatingPaymentMethodDetails < Stripe::RequestParams - class UsBankAccount < Stripe::RequestParams + class ReceivedDebitCreateParams < ::Stripe::RequestParams + class InitiatingPaymentMethodDetails < ::Stripe::RequestParams + class UsBankAccount < ::Stripe::RequestParams # The bank account holder's name. sig { returns(T.nilable(String)) } def account_holder_name; end diff --git a/rbi/stripe/params/treasury/received_debit_list_params.rbi b/rbi/stripe/params/treasury/received_debit_list_params.rbi index a2c1eb85..5a462f85 100644 --- a/rbi/stripe/params/treasury/received_debit_list_params.rbi +++ b/rbi/stripe/params/treasury/received_debit_list_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class ReceivedDebitListParams < Stripe::RequestParams + class ReceivedDebitListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/treasury/received_debit_retrieve_params.rbi b/rbi/stripe/params/treasury/received_debit_retrieve_params.rbi index d2d0c22b..6e7ed96d 100644 --- a/rbi/stripe/params/treasury/received_debit_retrieve_params.rbi +++ b/rbi/stripe/params/treasury/received_debit_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class ReceivedDebitRetrieveParams < Stripe::RequestParams + class ReceivedDebitRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/treasury/transaction_entry_list_params.rbi b/rbi/stripe/params/treasury/transaction_entry_list_params.rbi index 05a6415e..89f94e6d 100644 --- a/rbi/stripe/params/treasury/transaction_entry_list_params.rbi +++ b/rbi/stripe/params/treasury/transaction_entry_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Treasury - class TransactionEntryListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class TransactionEntryListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -31,7 +31,7 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class EffectiveAt < Stripe::RequestParams + class EffectiveAt < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/treasury/transaction_entry_retrieve_params.rbi b/rbi/stripe/params/treasury/transaction_entry_retrieve_params.rbi index 64e82f48..a2552b78 100644 --- a/rbi/stripe/params/treasury/transaction_entry_retrieve_params.rbi +++ b/rbi/stripe/params/treasury/transaction_entry_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class TransactionEntryRetrieveParams < Stripe::RequestParams + class TransactionEntryRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/treasury/transaction_list_params.rbi b/rbi/stripe/params/treasury/transaction_list_params.rbi index f96cf0a7..11f612b5 100644 --- a/rbi/stripe/params/treasury/transaction_list_params.rbi +++ b/rbi/stripe/params/treasury/transaction_list_params.rbi @@ -4,8 +4,8 @@ # typed: true module Stripe module Treasury - class TransactionListParams < Stripe::RequestParams - class Created < Stripe::RequestParams + class TransactionListParams < ::Stripe::RequestParams + class Created < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end @@ -31,8 +31,8 @@ module Stripe } def initialize(gt: nil, gte: nil, lt: nil, lte: nil); end end - class StatusTransitions < Stripe::RequestParams - class PostedAt < Stripe::RequestParams + class StatusTransitions < ::Stripe::RequestParams + class PostedAt < ::Stripe::RequestParams # Minimum value to filter by (exclusive) sig { returns(T.nilable(Integer)) } def gt; end diff --git a/rbi/stripe/params/treasury/transaction_retrieve_params.rbi b/rbi/stripe/params/treasury/transaction_retrieve_params.rbi index 0b09f18c..b2b296ad 100644 --- a/rbi/stripe/params/treasury/transaction_retrieve_params.rbi +++ b/rbi/stripe/params/treasury/transaction_retrieve_params.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe module Treasury - class TransactionRetrieveParams < Stripe::RequestParams + class TransactionRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/v2/billing/meter_event_adjustment_create_params.rbi b/rbi/stripe/params/v2/billing/meter_event_adjustment_create_params.rbi index 1fa67be2..5e1c94f5 100644 --- a/rbi/stripe/params/v2/billing/meter_event_adjustment_create_params.rbi +++ b/rbi/stripe/params/v2/billing/meter_event_adjustment_create_params.rbi @@ -5,8 +5,8 @@ module Stripe module V2 module Billing - class MeterEventAdjustmentCreateParams < Stripe::RequestParams - class Cancel < Stripe::RequestParams + class MeterEventAdjustmentCreateParams < ::Stripe::RequestParams + class Cancel < ::Stripe::RequestParams # Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them. sig { returns(String) } def identifier; end diff --git a/rbi/stripe/params/v2/billing/meter_event_create_params.rbi b/rbi/stripe/params/v2/billing/meter_event_create_params.rbi index 0689c68a..49a86423 100644 --- a/rbi/stripe/params/v2/billing/meter_event_create_params.rbi +++ b/rbi/stripe/params/v2/billing/meter_event_create_params.rbi @@ -5,7 +5,7 @@ module Stripe module V2 module Billing - class MeterEventCreateParams < Stripe::RequestParams + class MeterEventCreateParams < ::Stripe::RequestParams # The name of the meter event. Corresponds with the `event_name` field on a meter. sig { returns(String) } def event_name; end diff --git a/rbi/stripe/params/v2/billing/meter_event_session_create_params.rbi b/rbi/stripe/params/v2/billing/meter_event_session_create_params.rbi index fe781330..0544b21e 100644 --- a/rbi/stripe/params/v2/billing/meter_event_session_create_params.rbi +++ b/rbi/stripe/params/v2/billing/meter_event_session_create_params.rbi @@ -5,7 +5,7 @@ module Stripe module V2 module Billing - class MeterEventSessionCreateParams < Stripe::RequestParams; end + class MeterEventSessionCreateParams < ::Stripe::RequestParams; end end end end \ No newline at end of file diff --git a/rbi/stripe/params/v2/billing/meter_event_stream_create_params.rbi b/rbi/stripe/params/v2/billing/meter_event_stream_create_params.rbi index 5544db66..2ce4e082 100644 --- a/rbi/stripe/params/v2/billing/meter_event_stream_create_params.rbi +++ b/rbi/stripe/params/v2/billing/meter_event_stream_create_params.rbi @@ -5,8 +5,8 @@ module Stripe module V2 module Billing - class MeterEventStreamCreateParams < Stripe::RequestParams - class Event < Stripe::RequestParams + class MeterEventStreamCreateParams < ::Stripe::RequestParams + class Event < ::Stripe::RequestParams # The name of the meter event. Corresponds with the `event_name` field on a meter. sig { returns(String) } def event_name; end diff --git a/rbi/stripe/params/v2/core/event_destination_create_params.rbi b/rbi/stripe/params/v2/core/event_destination_create_params.rbi index 007ebb98..af404fbf 100644 --- a/rbi/stripe/params/v2/core/event_destination_create_params.rbi +++ b/rbi/stripe/params/v2/core/event_destination_create_params.rbi @@ -5,8 +5,8 @@ module Stripe module V2 module Core - class EventDestinationCreateParams < Stripe::RequestParams - class AmazonEventbridge < Stripe::RequestParams + class EventDestinationCreateParams < ::Stripe::RequestParams + class AmazonEventbridge < ::Stripe::RequestParams # The AWS account ID. sig { returns(String) } def aws_account_id; end @@ -20,7 +20,7 @@ module Stripe sig { params(aws_account_id: String, aws_region: String).void } def initialize(aws_account_id: nil, aws_region: nil); end end - class WebhookEndpoint < Stripe::RequestParams + class WebhookEndpoint < ::Stripe::RequestParams # The URL of the webhook endpoint. sig { returns(String) } def url; end diff --git a/rbi/stripe/params/v2/core/event_destination_delete_params.rbi b/rbi/stripe/params/v2/core/event_destination_delete_params.rbi index 35e6368c..cd9b0788 100644 --- a/rbi/stripe/params/v2/core/event_destination_delete_params.rbi +++ b/rbi/stripe/params/v2/core/event_destination_delete_params.rbi @@ -5,7 +5,7 @@ module Stripe module V2 module Core - class EventDestinationDeleteParams < Stripe::RequestParams; end + class EventDestinationDeleteParams < ::Stripe::RequestParams; end end end end \ No newline at end of file diff --git a/rbi/stripe/params/v2/core/event_destination_disable_params.rbi b/rbi/stripe/params/v2/core/event_destination_disable_params.rbi index 6c68fbf3..3b66cecf 100644 --- a/rbi/stripe/params/v2/core/event_destination_disable_params.rbi +++ b/rbi/stripe/params/v2/core/event_destination_disable_params.rbi @@ -5,7 +5,7 @@ module Stripe module V2 module Core - class EventDestinationDisableParams < Stripe::RequestParams; end + class EventDestinationDisableParams < ::Stripe::RequestParams; end end end end \ No newline at end of file diff --git a/rbi/stripe/params/v2/core/event_destination_enable_params.rbi b/rbi/stripe/params/v2/core/event_destination_enable_params.rbi index 9186c679..eb5c804d 100644 --- a/rbi/stripe/params/v2/core/event_destination_enable_params.rbi +++ b/rbi/stripe/params/v2/core/event_destination_enable_params.rbi @@ -5,7 +5,7 @@ module Stripe module V2 module Core - class EventDestinationEnableParams < Stripe::RequestParams; end + class EventDestinationEnableParams < ::Stripe::RequestParams; end end end end \ No newline at end of file diff --git a/rbi/stripe/params/v2/core/event_destination_list_params.rbi b/rbi/stripe/params/v2/core/event_destination_list_params.rbi index d226492d..08607a6c 100644 --- a/rbi/stripe/params/v2/core/event_destination_list_params.rbi +++ b/rbi/stripe/params/v2/core/event_destination_list_params.rbi @@ -5,7 +5,7 @@ module Stripe module V2 module Core - class EventDestinationListParams < Stripe::RequestParams + class EventDestinationListParams < ::Stripe::RequestParams # Additional fields to include in the response. Currently supports `webhook_endpoint.url`. sig { returns(T.nilable(T::Array[String])) } def include; end diff --git a/rbi/stripe/params/v2/core/event_destination_ping_params.rbi b/rbi/stripe/params/v2/core/event_destination_ping_params.rbi index e2b9185c..e2559b5f 100644 --- a/rbi/stripe/params/v2/core/event_destination_ping_params.rbi +++ b/rbi/stripe/params/v2/core/event_destination_ping_params.rbi @@ -5,7 +5,7 @@ module Stripe module V2 module Core - class EventDestinationPingParams < Stripe::RequestParams; end + class EventDestinationPingParams < ::Stripe::RequestParams; end end end end \ No newline at end of file diff --git a/rbi/stripe/params/v2/core/event_destination_retrieve_params.rbi b/rbi/stripe/params/v2/core/event_destination_retrieve_params.rbi index 1087090e..f2686cef 100644 --- a/rbi/stripe/params/v2/core/event_destination_retrieve_params.rbi +++ b/rbi/stripe/params/v2/core/event_destination_retrieve_params.rbi @@ -5,7 +5,7 @@ module Stripe module V2 module Core - class EventDestinationRetrieveParams < Stripe::RequestParams + class EventDestinationRetrieveParams < ::Stripe::RequestParams # Additional fields to include in the response. sig { returns(T.nilable(T::Array[String])) } def include; end diff --git a/rbi/stripe/params/v2/core/event_destination_update_params.rbi b/rbi/stripe/params/v2/core/event_destination_update_params.rbi index dac58e8b..3b951174 100644 --- a/rbi/stripe/params/v2/core/event_destination_update_params.rbi +++ b/rbi/stripe/params/v2/core/event_destination_update_params.rbi @@ -5,8 +5,8 @@ module Stripe module V2 module Core - class EventDestinationUpdateParams < Stripe::RequestParams - class WebhookEndpoint < Stripe::RequestParams + class EventDestinationUpdateParams < ::Stripe::RequestParams + class WebhookEndpoint < ::Stripe::RequestParams # The URL of the webhook endpoint. sig { returns(String) } def url; end diff --git a/rbi/stripe/params/v2/core/event_list_params.rbi b/rbi/stripe/params/v2/core/event_list_params.rbi index e8331689..050cab4f 100644 --- a/rbi/stripe/params/v2/core/event_list_params.rbi +++ b/rbi/stripe/params/v2/core/event_list_params.rbi @@ -5,21 +5,56 @@ module Stripe module V2 module Core - class EventListParams < Stripe::RequestParams + class EventListParams < ::Stripe::RequestParams + # Filter for events created after the specified timestamp. + sig { returns(T.nilable(String)) } + def gt; end + sig { params(_gt: T.nilable(String)).returns(T.nilable(String)) } + def gt=(_gt); end + # Filter for events created at or after the specified timestamp. + sig { returns(T.nilable(String)) } + def gte; end + sig { params(_gte: T.nilable(String)).returns(T.nilable(String)) } + def gte=(_gte); end # The page size. sig { returns(T.nilable(Integer)) } def limit; end sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) } def limit=(_limit); end + # Filter for events created before the specified timestamp. + sig { returns(T.nilable(String)) } + def lt; end + sig { params(_lt: T.nilable(String)).returns(T.nilable(String)) } + def lt=(_lt); end + # Filter for events created at or before the specified timestamp. + sig { returns(T.nilable(String)) } + def lte; end + sig { params(_lte: T.nilable(String)).returns(T.nilable(String)) } + def lte=(_lte); end # Primary object ID used to retrieve related events. # # To avoid conflict with Ruby's ':object_id', this attribute has been renamed. If using a hash parameter map instead, please use the original name ':object_id' with NO trailing underscore as the provided param key. - sig { returns(String) } + sig { returns(T.nilable(String)) } def object_id_; end - sig { params(_object_id_: String).returns(String) } + sig { params(_object_id_: T.nilable(String)).returns(T.nilable(String)) } def object_id_=(_object_id_); end - sig { params(limit: T.nilable(Integer), object_id_: String).void } - def initialize(limit: nil, object_id_: nil); end + # An array of up to 20 strings containing specific event names. + sig { returns(T.nilable(T::Array[String])) } + def types; end + sig { params(_types: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def types=(_types); end + sig { + params(gt: T.nilable(String), gte: T.nilable(String), limit: T.nilable(Integer), lt: T.nilable(String), lte: T.nilable(String), object_id_: T.nilable(String), types: T.nilable(T::Array[String])).void + } + def initialize( + gt: nil, + gte: nil, + limit: nil, + lt: nil, + lte: nil, + object_id_: nil, + types: nil + ); end end end end diff --git a/rbi/stripe/params/v2/core/event_retrieve_params.rbi b/rbi/stripe/params/v2/core/event_retrieve_params.rbi index 12b4c6c0..87384e05 100644 --- a/rbi/stripe/params/v2/core/event_retrieve_params.rbi +++ b/rbi/stripe/params/v2/core/event_retrieve_params.rbi @@ -5,7 +5,7 @@ module Stripe module V2 module Core - class EventRetrieveParams < Stripe::RequestParams; end + class EventRetrieveParams < ::Stripe::RequestParams; end end end end \ No newline at end of file diff --git a/rbi/stripe/params/webhook_endpoint_create_params.rbi b/rbi/stripe/params/webhook_endpoint_create_params.rbi index 34ef1acd..798dbbca 100644 --- a/rbi/stripe/params/webhook_endpoint_create_params.rbi +++ b/rbi/stripe/params/webhook_endpoint_create_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class WebhookEndpointCreateParams < Stripe::RequestParams + class WebhookEndpointCreateParams < ::Stripe::RequestParams # Events sent to this endpoint will be generated with this Stripe Version instead of your account's default Stripe Version. sig { returns(T.nilable(String)) } def api_version; end diff --git a/rbi/stripe/params/webhook_endpoint_delete_params.rbi b/rbi/stripe/params/webhook_endpoint_delete_params.rbi index d8c6125f..f1719b39 100644 --- a/rbi/stripe/params/webhook_endpoint_delete_params.rbi +++ b/rbi/stripe/params/webhook_endpoint_delete_params.rbi @@ -3,5 +3,5 @@ # typed: true module Stripe - class WebhookEndpointDeleteParams < Stripe::RequestParams; end + class WebhookEndpointDeleteParams < ::Stripe::RequestParams; end end \ No newline at end of file diff --git a/rbi/stripe/params/webhook_endpoint_list_params.rbi b/rbi/stripe/params/webhook_endpoint_list_params.rbi index 9adbf16a..c8dfdd84 100644 --- a/rbi/stripe/params/webhook_endpoint_list_params.rbi +++ b/rbi/stripe/params/webhook_endpoint_list_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class WebhookEndpointListParams < Stripe::RequestParams + class WebhookEndpointListParams < ::Stripe::RequestParams # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. sig { returns(T.nilable(String)) } def ending_before; end diff --git a/rbi/stripe/params/webhook_endpoint_retrieve_params.rbi b/rbi/stripe/params/webhook_endpoint_retrieve_params.rbi index 425706dd..a04b4322 100644 --- a/rbi/stripe/params/webhook_endpoint_retrieve_params.rbi +++ b/rbi/stripe/params/webhook_endpoint_retrieve_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class WebhookEndpointRetrieveParams < Stripe::RequestParams + class WebhookEndpointRetrieveParams < ::Stripe::RequestParams # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end diff --git a/rbi/stripe/params/webhook_endpoint_update_params.rbi b/rbi/stripe/params/webhook_endpoint_update_params.rbi index 23dfc449..699b2ae8 100644 --- a/rbi/stripe/params/webhook_endpoint_update_params.rbi +++ b/rbi/stripe/params/webhook_endpoint_update_params.rbi @@ -3,7 +3,7 @@ # typed: true module Stripe - class WebhookEndpointUpdateParams < Stripe::RequestParams + class WebhookEndpointUpdateParams < ::Stripe::RequestParams # An optional description of what the webhook is used for. sig { returns(T.nilable(String)) } def description; end diff --git a/rbi/stripe/resources/account.rbi b/rbi/stripe/resources/account.rbi index ed7e80c6..005137ac 100644 --- a/rbi/stripe/resources/account.rbi +++ b/rbi/stripe/resources/account.rbi @@ -16,8 +16,8 @@ module Stripe # until you create an [Account Link](https://docs.stripe.com/api/account_links) or [Account Session](https://docs.stripe.com/api/account_sessions) # to start Connect Onboarding. Learn about the [differences between accounts](https://docs.stripe.com/connect/accounts). class Account < APIResource - class BusinessProfile < Stripe::StripeObject - class AnnualRevenue < Stripe::StripeObject + class BusinessProfile < ::Stripe::StripeObject + class AnnualRevenue < ::Stripe::StripeObject # A non-negative integer representing the amount in the [smallest currency unit](/currencies#zero-decimal). sig { returns(T.nilable(Integer)) } def amount; end @@ -34,7 +34,7 @@ module Stripe @field_remappings = {} end end - class MonthlyEstimatedRevenue < Stripe::StripeObject + class MonthlyEstimatedRevenue < ::Stripe::StripeObject # A non-negative integer representing how much to charge in the [smallest currency unit](/currencies#zero-decimal). sig { returns(Integer) } def amount; end @@ -48,7 +48,7 @@ module Stripe @field_remappings = {} end end - class SupportAddress < Stripe::StripeObject + class SupportAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -121,7 +121,7 @@ module Stripe @field_remappings = {} end end - class Capabilities < Stripe::StripeObject + class Capabilities < ::Stripe::StripeObject # The status of the Canadian pre-authorized debits payments capability of the account, or whether the account can directly process Canadian pre-authorized debits charges. sig { returns(T.nilable(String)) } def acss_debit_payments; end @@ -309,8 +309,8 @@ module Stripe @field_remappings = {} end end - class Company < Stripe::StripeObject - class Address < Stripe::StripeObject + class Company < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -336,7 +336,7 @@ module Stripe @field_remappings = {} end end - class AddressKana < Stripe::StripeObject + class AddressKana < ::Stripe::StripeObject # City/Ward. sig { returns(T.nilable(String)) } def city; end @@ -365,7 +365,7 @@ module Stripe @field_remappings = {} end end - class AddressKanji < Stripe::StripeObject + class AddressKanji < ::Stripe::StripeObject # City/Ward. sig { returns(T.nilable(String)) } def city; end @@ -394,7 +394,7 @@ module Stripe @field_remappings = {} end end - class DirectorshipDeclaration < Stripe::StripeObject + class DirectorshipDeclaration < ::Stripe::StripeObject # The Unix timestamp marking when the directorship declaration attestation was made. sig { returns(T.nilable(Integer)) } def date; end @@ -411,7 +411,7 @@ module Stripe @field_remappings = {} end end - class OwnershipDeclaration < Stripe::StripeObject + class OwnershipDeclaration < ::Stripe::StripeObject # The Unix timestamp marking when the beneficial owner attestation was made. sig { returns(T.nilable(Integer)) } def date; end @@ -428,7 +428,7 @@ module Stripe @field_remappings = {} end end - class RegistrationDate < Stripe::StripeObject + class RegistrationDate < ::Stripe::StripeObject # The day of registration, between 1 and 31. sig { returns(T.nilable(Integer)) } def day; end @@ -445,10 +445,27 @@ module Stripe @field_remappings = {} end end - class Verification < Stripe::StripeObject - class Document < Stripe::StripeObject + class RepresentativeDeclaration < ::Stripe::StripeObject + # The Unix timestamp marking when the representative declaration attestation was made. + sig { returns(T.nilable(Integer)) } + def date; end + # The IP address from which the representative declaration attestation was made. + sig { returns(T.nilable(String)) } + def ip; end + # The user-agent string from the browser where the representative declaration attestation was made. + sig { returns(T.nilable(String)) } + def user_agent; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Verification < ::Stripe::StripeObject + class Document < ::Stripe::StripeObject # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](/file-upload#uploading-a-file). - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def back; end # A user-displayable string describing the verification state of this document. sig { returns(T.nilable(String)) } @@ -457,7 +474,7 @@ module Stripe sig { returns(T.nilable(String)) } def details_code; end # The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](/file-upload#uploading-a-file). - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def front; end def self.inner_class_types @inner_class_types = {} @@ -524,6 +541,9 @@ module Stripe # Attribute for field registration_date sig { returns(T.nilable(RegistrationDate)) } def registration_date; end + # This hash is used to attest that the representative is authorized to act as the representative of their legal entity. + sig { returns(T.nilable(RepresentativeDeclaration)) } + def representative_declaration; end # The category identifying the legal structure of the company or legal entity. Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details. sig { returns(T.nilable(String)) } def structure; end @@ -547,6 +567,7 @@ module Stripe directorship_declaration: DirectorshipDeclaration, ownership_declaration: OwnershipDeclaration, registration_date: RegistrationDate, + representative_declaration: RepresentativeDeclaration, verification: Verification, } end @@ -554,8 +575,8 @@ module Stripe @field_remappings = {} end end - class Controller < Stripe::StripeObject - class Fees < Stripe::StripeObject + class Controller < ::Stripe::StripeObject + class Fees < ::Stripe::StripeObject # A value indicating the responsible payer of a bundle of Stripe fees for pricing-control eligible products on this account. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior). sig { returns(String) } def payer; end @@ -566,7 +587,7 @@ module Stripe @field_remappings = {} end end - class Losses < Stripe::StripeObject + class Losses < ::Stripe::StripeObject # A value indicating who is liable when this account can't pay back negative balances from payments. sig { returns(String) } def payments; end @@ -577,7 +598,7 @@ module Stripe @field_remappings = {} end end - class StripeDashboard < Stripe::StripeObject + class StripeDashboard < ::Stripe::StripeObject # A value indicating the Stripe dashboard this account has access to independent of the Connect application. sig { returns(String) } def type; end @@ -613,8 +634,8 @@ module Stripe @field_remappings = {} end end - class FutureRequirements < Stripe::StripeObject - class Alternative < Stripe::StripeObject + class FutureRequirements < ::Stripe::StripeObject + class Alternative < ::Stripe::StripeObject # Fields that can be provided to satisfy all fields in `original_fields_due`. sig { returns(T::Array[String]) } def alternative_fields_due; end @@ -628,7 +649,7 @@ module Stripe @field_remappings = {} end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. sig { returns(String) } def code; end @@ -676,7 +697,7 @@ module Stripe @field_remappings = {} end end - class Groups < Stripe::StripeObject + class Groups < ::Stripe::StripeObject # The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details. sig { returns(T.nilable(String)) } def payments_pricing; end @@ -687,8 +708,8 @@ module Stripe @field_remappings = {} end end - class Requirements < Stripe::StripeObject - class Alternative < Stripe::StripeObject + class Requirements < ::Stripe::StripeObject + class Alternative < ::Stripe::StripeObject # Fields that can be provided to satisfy all fields in `original_fields_due`. sig { returns(T::Array[String]) } def alternative_fields_due; end @@ -702,7 +723,7 @@ module Stripe @field_remappings = {} end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. sig { returns(String) } def code; end @@ -750,8 +771,8 @@ module Stripe @field_remappings = {} end end - class Settings < Stripe::StripeObject - class BacsDebitPayments < Stripe::StripeObject + class Settings < ::Stripe::StripeObject + class BacsDebitPayments < ::Stripe::StripeObject # The Bacs Direct Debit display name for this account. For payments made with Bacs Direct Debit, this name appears on the mandate as the statement descriptor. Mobile banking apps display it as the name of the business. To use custom branding, set the Bacs Direct Debit Display Name during or right after creation. Custom branding incurs an additional monthly fee for the platform. The fee appears 5 business days after requesting Bacs. If you don't set the display name before requesting Bacs capability, it's automatically set as "Stripe" and the account is onboarded to Stripe branding, which is free. sig { returns(T.nilable(String)) } def display_name; end @@ -765,12 +786,12 @@ module Stripe @field_remappings = {} end end - class Branding < Stripe::StripeObject + class Branding < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def icon; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A logo for the account that will be used in Checkout instead of the icon and without the account's name next to it if provided. Must be at least 128px x 128px. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def logo; end # A CSS hex color value representing the primary branding color for this account sig { returns(T.nilable(String)) } @@ -785,8 +806,8 @@ module Stripe @field_remappings = {} end end - class CardIssuing < Stripe::StripeObject - class TosAcceptance < Stripe::StripeObject + class CardIssuing < ::Stripe::StripeObject + class TosAcceptance < ::Stripe::StripeObject # The Unix timestamp marking when the account representative accepted the service agreement. sig { returns(T.nilable(Integer)) } def date; end @@ -813,8 +834,8 @@ module Stripe @field_remappings = {} end end - class CardPayments < Stripe::StripeObject - class DeclineOn < Stripe::StripeObject + class CardPayments < ::Stripe::StripeObject + class DeclineOn < ::Stripe::StripeObject # Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification. sig { returns(T::Boolean) } def avs_failure; end @@ -847,7 +868,7 @@ module Stripe @field_remappings = {} end end - class Dashboard < Stripe::StripeObject + class Dashboard < ::Stripe::StripeObject # The display name for this account. This is used on the Stripe Dashboard to differentiate between accounts. sig { returns(T.nilable(String)) } def display_name; end @@ -861,9 +882,9 @@ module Stripe @field_remappings = {} end end - class Invoices < Stripe::StripeObject + class Invoices < ::Stripe::StripeObject # The list of default Account Tax IDs to automatically include on invoices. Account Tax IDs get added when an invoice is finalized. - sig { returns(T.nilable(T::Array[T.any(String, Stripe::TaxId)])) } + sig { returns(T.nilable(T::Array[T.any(String, ::Stripe::TaxId)])) } def default_account_tax_ids; end # Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page. sig { returns(T.nilable(String)) } @@ -875,7 +896,7 @@ module Stripe @field_remappings = {} end end - class Payments < Stripe::StripeObject + class Payments < ::Stripe::StripeObject # The default text that appears on credit card statements when a charge is made. This field prefixes any dynamic `statement_descriptor` specified on the charge. sig { returns(T.nilable(String)) } def statement_descriptor; end @@ -898,8 +919,8 @@ module Stripe @field_remappings = {} end end - class Payouts < Stripe::StripeObject - class Schedule < Stripe::StripeObject + class Payouts < ::Stripe::StripeObject + class Schedule < ::Stripe::StripeObject # The number of days charges for the account will be held before being paid out. sig { returns(Integer) } def delay_days; end @@ -941,7 +962,7 @@ module Stripe @field_remappings = {} end end - class SepaDebitPayments < Stripe::StripeObject + class SepaDebitPayments < ::Stripe::StripeObject # SEPA creditor identifier that identifies the company making the payment. sig { returns(T.nilable(String)) } def creditor_id; end @@ -952,8 +973,8 @@ module Stripe @field_remappings = {} end end - class Treasury < Stripe::StripeObject - class TosAcceptance < Stripe::StripeObject + class Treasury < ::Stripe::StripeObject + class TosAcceptance < ::Stripe::StripeObject # The Unix timestamp marking when the account representative accepted the service agreement. sig { returns(T.nilable(Integer)) } def date; end @@ -1028,7 +1049,7 @@ module Stripe @field_remappings = {} end end - class TosAcceptance < Stripe::StripeObject + class TosAcceptance < ::Stripe::StripeObject # The Unix timestamp marking when the account representative accepted their service agreement sig { returns(T.nilable(Integer)) } def date; end @@ -1082,7 +1103,7 @@ module Stripe sig { returns(T.nilable(String)) } def email; end # External accounts (bank accounts and debit cards) currently attached to this account. External accounts are only returned for requests where `controller[is_controller]` is true. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def external_accounts; end # Attribute for field future_requirements sig { returns(T.nilable(FutureRequirements)) } @@ -1098,7 +1119,7 @@ module Stripe # A platform can only access a subset of data in a person for an account where [account.controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`, which includes Standard and Express accounts, after creating an Account Link or Account Session to start Connect onboarding. # # See the [Standard onboarding](/connect/standard-accounts) or [Express onboarding](/connect/express-accounts) documentation for information about prefilling information and account onboarding steps. Learn more about [handling identity verification with the API](/connect/handling-api-verification#person-information). - sig { returns(T.nilable(Stripe::Person)) } + sig { returns(T.nilable(::Stripe::Person)) } def individual; end # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. sig { returns(T.nilable(T::Hash[String, String])) } @@ -1131,7 +1152,7 @@ module Stripe # creating the account. Connect Onboarding won't ask for the prefilled information during account onboarding. # You can prefill any information on the account. sig { - params(params: T.any(::Stripe::AccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(params: T.any(::Stripe::AccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def self.create(params = {}, opts = {}); end @@ -1143,7 +1164,7 @@ module Stripe # # If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead. sig { - params(account: String, params: T.any(::Stripe::AccountDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(account: String, params: T.any(::Stripe::AccountDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def self.delete(account, params = {}, opts = {}); end @@ -1155,25 +1176,25 @@ module Stripe # # If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead. sig { - params(params: T.any(::Stripe::AccountDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(params: T.any(::Stripe::AccountDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def delete(params = {}, opts = {}); end # Returns a list of accounts connected to your platform via [Connect](https://docs.stripe.com/docs/connect). If you're not a platform, the list is empty. sig { - params(params: T.any(::Stripe::AccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::AccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Returns a list of people associated with the account's legal entity. The people are returned sorted by creation date, with the most recent people appearing first. sig { - params(params: T.any(::Stripe::AccountPersonsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::AccountPersonsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def persons(params = {}, opts = {}); end # Returns a list of people associated with the account's legal entity. The people are returned sorted by creation date, with the most recent people appearing first. sig { - params(account: String, params: T.any(::Stripe::AccountPersonsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(account: String, params: T.any(::Stripe::AccountPersonsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.persons(account, params = {}, opts = {}); end @@ -1181,7 +1202,7 @@ module Stripe # # Only accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time. Live-mode accounts can only be rejected after all balances are zero. sig { - params(params: T.any(::Stripe::AccountRejectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(params: T.any(::Stripe::AccountRejectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def reject(params = {}, opts = {}); end @@ -1189,7 +1210,7 @@ module Stripe # # Only accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time. Live-mode accounts can only be rejected after all balances are zero. sig { - params(account: String, params: T.any(::Stripe::AccountRejectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(account: String, params: T.any(::Stripe::AccountRejectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def self.reject(account, params = {}, opts = {}); end @@ -1207,7 +1228,7 @@ module Stripe # To update your own account, use the [Dashboard](https://dashboard.stripe.com/settings/account). Refer to our # [Connect](https://docs.stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts. sig { - params(account: String, params: T.any(::Stripe::AccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(account: String, params: T.any(::Stripe::AccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def self.update(account, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/account_link.rbi b/rbi/stripe/resources/account_link.rbi index b0faa0ef..cfccb0ee 100644 --- a/rbi/stripe/resources/account_link.rbi +++ b/rbi/stripe/resources/account_link.rbi @@ -22,7 +22,7 @@ module Stripe def url; end # Creates an AccountLink object that includes a single-use Stripe URL that the platform can redirect their user to in order to take them through the Connect Onboarding flow. sig { - params(params: T.any(::Stripe::AccountLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::AccountLink) + params(params: T.any(::Stripe::AccountLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::AccountLink) } def self.create(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/account_session.rbi b/rbi/stripe/resources/account_session.rbi index 01e9dad6..afb3aaa5 100644 --- a/rbi/stripe/resources/account_session.rbi +++ b/rbi/stripe/resources/account_session.rbi @@ -11,9 +11,9 @@ module Stripe # # Related guide: [Connect embedded components](https://stripe.com/docs/connect/get-started-connect-embedded-components) class AccountSession < APIResource - class Components < Stripe::StripeObject - class AccountManagement < Stripe::StripeObject - class Features < Stripe::StripeObject + class Components < ::Stripe::StripeObject + class AccountManagement < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T::Boolean) } def disable_stripe_user_authentication; end @@ -40,8 +40,8 @@ module Stripe @field_remappings = {} end end - class AccountOnboarding < Stripe::StripeObject - class Features < Stripe::StripeObject + class AccountOnboarding < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T::Boolean) } def disable_stripe_user_authentication; end @@ -68,8 +68,8 @@ module Stripe @field_remappings = {} end end - class Balances < Stripe::StripeObject - class Features < Stripe::StripeObject + class Balances < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T::Boolean) } def disable_stripe_user_authentication; end @@ -105,8 +105,8 @@ module Stripe @field_remappings = {} end end - class DisputesList < Stripe::StripeObject - class Features < Stripe::StripeObject + class DisputesList < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether to allow capturing and cancelling payment intents. This is `true` by default. sig { returns(T::Boolean) } def capture_payments; end @@ -139,8 +139,8 @@ module Stripe @field_remappings = {} end end - class Documents < Stripe::StripeObject - class Features < Stripe::StripeObject + class Documents < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -161,8 +161,8 @@ module Stripe @field_remappings = {} end end - class FinancialAccount < Stripe::StripeObject - class Features < Stripe::StripeObject + class FinancialAccount < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T::Boolean) } def disable_stripe_user_authentication; end @@ -195,8 +195,8 @@ module Stripe @field_remappings = {} end end - class FinancialAccountTransactions < Stripe::StripeObject - class Features < Stripe::StripeObject + class FinancialAccountTransactions < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether to allow card spend dispute management features. sig { returns(T::Boolean) } def card_spend_dispute_management; end @@ -220,8 +220,8 @@ module Stripe @field_remappings = {} end end - class InstantPayoutsPromotion < Stripe::StripeObject - class Features < Stripe::StripeObject + class InstantPayoutsPromotion < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T::Boolean) } def disable_stripe_user_authentication; end @@ -251,8 +251,8 @@ module Stripe @field_remappings = {} end end - class IssuingCard < Stripe::StripeObject - class Features < Stripe::StripeObject + class IssuingCard < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether to allow card management features. sig { returns(T::Boolean) } def card_management; end @@ -285,8 +285,8 @@ module Stripe @field_remappings = {} end end - class IssuingCardsList < Stripe::StripeObject - class Features < Stripe::StripeObject + class IssuingCardsList < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether to allow card management features. sig { returns(T::Boolean) } def card_management; end @@ -322,8 +322,8 @@ module Stripe @field_remappings = {} end end - class NotificationBanner < Stripe::StripeObject - class Features < Stripe::StripeObject + class NotificationBanner < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T::Boolean) } def disable_stripe_user_authentication; end @@ -350,8 +350,8 @@ module Stripe @field_remappings = {} end end - class PaymentDetails < Stripe::StripeObject - class Features < Stripe::StripeObject + class PaymentDetails < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether to allow capturing and cancelling payment intents. This is `true` by default. sig { returns(T::Boolean) } def capture_payments; end @@ -384,8 +384,8 @@ module Stripe @field_remappings = {} end end - class PaymentDisputes < Stripe::StripeObject - class Features < Stripe::StripeObject + class PaymentDisputes < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default. sig { returns(T::Boolean) } def destination_on_behalf_of_charge_management; end @@ -415,8 +415,8 @@ module Stripe @field_remappings = {} end end - class Payments < Stripe::StripeObject - class Features < Stripe::StripeObject + class Payments < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether to allow capturing and cancelling payment intents. This is `true` by default. sig { returns(T::Boolean) } def capture_payments; end @@ -449,8 +449,8 @@ module Stripe @field_remappings = {} end end - class PayoutDetails < Stripe::StripeObject - class Features < Stripe::StripeObject + class PayoutDetails < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -471,8 +471,8 @@ module Stripe @field_remappings = {} end end - class Payouts < Stripe::StripeObject - class Features < Stripe::StripeObject + class Payouts < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`. sig { returns(T::Boolean) } def disable_stripe_user_authentication; end @@ -508,8 +508,8 @@ module Stripe @field_remappings = {} end end - class PayoutsList < Stripe::StripeObject - class Features < Stripe::StripeObject + class PayoutsList < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -530,8 +530,8 @@ module Stripe @field_remappings = {} end end - class TaxRegistrations < Stripe::StripeObject - class Features < Stripe::StripeObject + class TaxRegistrations < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -552,8 +552,8 @@ module Stripe @field_remappings = {} end end - class TaxSettings < Stripe::StripeObject - class Features < Stripe::StripeObject + class TaxSettings < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -682,7 +682,7 @@ module Stripe def object; end # Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access. sig { - params(params: T.any(::Stripe::AccountSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::AccountSession) + params(params: T.any(::Stripe::AccountSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::AccountSession) } def self.create(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/apple_pay_domain.rbi b/rbi/stripe/resources/apple_pay_domain.rbi index 18c945d6..28c995fc 100644 --- a/rbi/stripe/resources/apple_pay_domain.rbi +++ b/rbi/stripe/resources/apple_pay_domain.rbi @@ -25,25 +25,25 @@ module Stripe def deleted; end # Create an apple pay domain. sig { - params(params: T.any(::Stripe::ApplePayDomainCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ApplePayDomain) + params(params: T.any(::Stripe::ApplePayDomainCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ApplePayDomain) } def self.create(params = {}, opts = {}); end # Delete an apple pay domain. sig { - params(domain: String, params: T.any(::Stripe::ApplePayDomainDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ApplePayDomain) + params(domain: String, params: T.any(::Stripe::ApplePayDomainDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ApplePayDomain) } def self.delete(domain, params = {}, opts = {}); end # Delete an apple pay domain. sig { - params(params: T.any(::Stripe::ApplePayDomainDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ApplePayDomain) + params(params: T.any(::Stripe::ApplePayDomainDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ApplePayDomain) } def delete(params = {}, opts = {}); end # List apple pay domains. sig { - params(params: T.any(::Stripe::ApplePayDomainListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ApplePayDomainListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/application_fee.rbi b/rbi/stripe/resources/application_fee.rbi index e1a5a8f9..b7165ed9 100644 --- a/rbi/stripe/resources/application_fee.rbi +++ b/rbi/stripe/resources/application_fee.rbi @@ -4,7 +4,7 @@ # typed: true module Stripe class ApplicationFee < APIResource - class FeeSource < Stripe::StripeObject + class FeeSource < ::Stripe::StripeObject # Charge ID that created this application fee. sig { returns(T.nilable(String)) } def charge; end @@ -22,7 +22,7 @@ module Stripe end end # ID of the Stripe account this fee was taken from. - sig { returns(T.any(String, Stripe::Account)) } + sig { returns(T.any(String, ::Stripe::Account)) } def account; end # Amount earned, in cents (or local equivalent). sig { returns(Integer) } @@ -31,13 +31,13 @@ module Stripe sig { returns(Integer) } def amount_refunded; end # ID of the Connect application that earned the fee. - sig { returns(T.any(String, Stripe::Application)) } + sig { returns(T.any(String, ::Stripe::Application)) } def application; end # Balance transaction that describes the impact of this collected application fee on your account balance (not including refunds). - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def balance_transaction; end # ID of the charge that the application fee was taken from. - sig { returns(T.any(String, Stripe::Charge)) } + sig { returns(T.any(String, ::Stripe::Charge)) } def charge; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -58,17 +58,17 @@ module Stripe sig { returns(String) } def object; end # ID of the corresponding charge on the platform account, if this fee was the result of a charge using the `destination` parameter. - sig { returns(T.nilable(T.any(String, Stripe::Charge))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Charge))) } def originating_transaction; end # Whether the fee has been fully refunded. If the fee is only partially refunded, this attribute will still be false. sig { returns(T::Boolean) } def refunded; end # A list of refunds that have been applied to the fee. - sig { returns(Stripe::ListObject) } + sig { returns(::Stripe::ListObject) } def refunds; end # Returns a list of application fees you've previously collected. The application fees are returned in sorted order, with the most recent fees appearing first. sig { - params(params: T.any(::Stripe::ApplicationFeeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ApplicationFeeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/application_fee_refund.rbi b/rbi/stripe/resources/application_fee_refund.rbi index 6051132b..88eb9578 100644 --- a/rbi/stripe/resources/application_fee_refund.rbi +++ b/rbi/stripe/resources/application_fee_refund.rbi @@ -13,7 +13,7 @@ module Stripe sig { returns(Integer) } def amount; end # Balance transaction that describes the impact on your account balance. - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def balance_transaction; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -22,7 +22,7 @@ module Stripe sig { returns(String) } def currency; end # ID of the application fee that was refunded. - sig { returns(T.any(String, Stripe::ApplicationFee)) } + sig { returns(T.any(String, ::Stripe::ApplicationFee)) } def fee; end # Unique identifier for the object. sig { returns(String) } diff --git a/rbi/stripe/resources/apps/secret.rbi b/rbi/stripe/resources/apps/secret.rbi index 6027187f..3fe6ca57 100644 --- a/rbi/stripe/resources/apps/secret.rbi +++ b/rbi/stripe/resources/apps/secret.rbi @@ -14,7 +14,7 @@ module Stripe # # Related guide: [Store data between page reloads](https://stripe.com/docs/stripe-apps/store-auth-data-custom-objects) class Secret < APIResource - class Scope < Stripe::StripeObject + class Scope < ::Stripe::StripeObject # The secret scope type. sig { returns(String) } def type; end @@ -57,25 +57,25 @@ module Stripe def scope; end # Create or replace a secret in the secret store. sig { - params(params: T.any(::Stripe::Apps::SecretCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Apps::Secret) + params(params: T.any(::Stripe::Apps::SecretCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Apps::Secret) } def self.create(params = {}, opts = {}); end # Deletes a secret from the secret store by name and scope. sig { - params(params: T.any(::Stripe::Apps::SecretDeleteWhereParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Apps::Secret) + params(params: T.any(::Stripe::Apps::SecretDeleteWhereParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Apps::Secret) } def self.delete_where(params = {}, opts = {}); end # Finds a secret in the secret store by name and scope. sig { - params(params: T.any(::Stripe::Apps::SecretFindParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Apps::Secret) + params(params: T.any(::Stripe::Apps::SecretFindParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Apps::Secret) } def self.find(params = {}, opts = {}); end # List all secrets stored on the given scope. sig { - params(params: T.any(::Stripe::Apps::SecretListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Apps::SecretListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/balance.rbi b/rbi/stripe/resources/balance.rbi index de12a6aa..124562fb 100644 --- a/rbi/stripe/resources/balance.rbi +++ b/rbi/stripe/resources/balance.rbi @@ -10,8 +10,8 @@ module Stripe # # Related guide: [Balances and settlement time](https://stripe.com/docs/payments/balances), [Understanding Connect account balances](https://stripe.com/docs/connect/account-balances) class Balance < SingletonAPIResource - class Available < Stripe::StripeObject - class SourceTypes < Stripe::StripeObject + class Available < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). sig { returns(T.nilable(Integer)) } def bank_account; end @@ -44,8 +44,8 @@ module Stripe @field_remappings = {} end end - class ConnectReserved < Stripe::StripeObject - class SourceTypes < Stripe::StripeObject + class ConnectReserved < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). sig { returns(T.nilable(Integer)) } def bank_account; end @@ -78,9 +78,9 @@ module Stripe @field_remappings = {} end end - class InstantAvailable < Stripe::StripeObject - class NetAvailable < Stripe::StripeObject - class SourceTypes < Stripe::StripeObject + class InstantAvailable < ::Stripe::StripeObject + class NetAvailable < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). sig { returns(T.nilable(Integer)) } def bank_account; end @@ -113,7 +113,7 @@ module Stripe @field_remappings = {} end end - class SourceTypes < Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). sig { returns(T.nilable(Integer)) } def bank_account; end @@ -149,9 +149,9 @@ module Stripe @field_remappings = {} end end - class Issuing < Stripe::StripeObject - class Available < Stripe::StripeObject - class SourceTypes < Stripe::StripeObject + class Issuing < ::Stripe::StripeObject + class Available < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). sig { returns(T.nilable(Integer)) } def bank_account; end @@ -194,8 +194,8 @@ module Stripe @field_remappings = {} end end - class Pending < Stripe::StripeObject - class SourceTypes < Stripe::StripeObject + class Pending < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). sig { returns(T.nilable(Integer)) } def bank_account; end @@ -228,9 +228,9 @@ module Stripe @field_remappings = {} end end - class RefundAndDisputePrefunding < Stripe::StripeObject - class Available < Stripe::StripeObject - class SourceTypes < Stripe::StripeObject + class RefundAndDisputePrefunding < ::Stripe::StripeObject + class Available < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). sig { returns(T.nilable(Integer)) } def bank_account; end @@ -263,8 +263,8 @@ module Stripe @field_remappings = {} end end - class Pending < Stripe::StripeObject - class SourceTypes < Stripe::StripeObject + class Pending < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). sig { returns(T.nilable(Integer)) } def bank_account; end diff --git a/rbi/stripe/resources/balance_settings.rbi b/rbi/stripe/resources/balance_settings.rbi index 34d5dfc2..1d0552ce 100644 --- a/rbi/stripe/resources/balance_settings.rbi +++ b/rbi/stripe/resources/balance_settings.rbi @@ -5,9 +5,9 @@ module Stripe # Options for customizing account balances and payout settings for a Stripe platform's connected accounts. class BalanceSettings < SingletonAPIResource - class Payments < Stripe::StripeObject - class Payouts < Stripe::StripeObject - class Schedule < Stripe::StripeObject + class Payments < ::Stripe::StripeObject + class Payouts < ::Stripe::StripeObject + class Schedule < ::Stripe::StripeObject # How frequently funds will be paid out. One of `manual` (payouts only created via API call), `daily`, `weekly`, or `monthly`. sig { returns(T.nilable(String)) } def interval; end @@ -43,7 +43,7 @@ module Stripe @field_remappings = {} end end - class SettlementTiming < Stripe::StripeObject + class SettlementTiming < ::Stripe::StripeObject # The number of days charge funds are held before becoming available. sig { returns(Integer) } def delay_days; end diff --git a/rbi/stripe/resources/balance_transaction.rbi b/rbi/stripe/resources/balance_transaction.rbi index 808cc2ba..d435c6d5 100644 --- a/rbi/stripe/resources/balance_transaction.rbi +++ b/rbi/stripe/resources/balance_transaction.rbi @@ -8,7 +8,7 @@ module Stripe # # Related guide: [Balance transaction types](https://stripe.com/docs/reports/balance-transaction-types) class BalanceTransaction < APIResource - class FeeDetail < Stripe::StripeObject + class FeeDetail < ::Stripe::StripeObject # Amount of the fee, in cents. sig { returns(Integer) } def amount; end @@ -72,7 +72,7 @@ module Stripe def reporting_category; end # This transaction relates to the Stripe object. sig { - returns(T.nilable(T.any(String, T.any(Stripe::ApplicationFee, Stripe::Charge, Stripe::ConnectCollectionTransfer, Stripe::CustomerCashBalanceTransaction, Stripe::Dispute, Stripe::ApplicationFeeRefund, Stripe::Issuing::Authorization, Stripe::Issuing::Dispute, Stripe::Issuing::Transaction, Stripe::Payout, Stripe::Refund, Stripe::ReserveTransaction, Stripe::TaxDeductedAtSource, Stripe::Topup, Stripe::Transfer, Stripe::Reversal)))) + returns(T.nilable(T.any(String, T.any(::Stripe::ApplicationFee, ::Stripe::Charge, ::Stripe::ConnectCollectionTransfer, ::Stripe::CustomerCashBalanceTransaction, ::Stripe::Dispute, ::Stripe::ApplicationFeeRefund, ::Stripe::Issuing::Authorization, ::Stripe::Issuing::Dispute, ::Stripe::Issuing::Transaction, ::Stripe::Payout, ::Stripe::Refund, ::Stripe::ReserveTransaction, ::Stripe::TaxDeductedAtSource, ::Stripe::Topup, ::Stripe::Transfer, ::Stripe::Reversal)))) } def source; end # The transaction's net funds status in the Stripe balance, which are either `available` or `pending`. @@ -85,7 +85,7 @@ module Stripe # # Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history. sig { - params(params: T.any(::Stripe::BalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::BalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/bank_account.rbi b/rbi/stripe/resources/bank_account.rbi index d3770bc2..f5752226 100644 --- a/rbi/stripe/resources/bank_account.rbi +++ b/rbi/stripe/resources/bank_account.rbi @@ -11,8 +11,8 @@ module Stripe # # Related guide: [Bank debits and transfers](https://docs.stripe.com/payments/bank-debits-transfers) class BankAccount < APIResource - class FutureRequirements < Stripe::StripeObject - class Error < Stripe::StripeObject + class FutureRequirements < ::Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. sig { returns(String) } def code; end @@ -48,8 +48,8 @@ module Stripe @field_remappings = {} end end - class Requirements < Stripe::StripeObject - class Error < Stripe::StripeObject + class Requirements < ::Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. sig { returns(String) } def code; end @@ -86,7 +86,7 @@ module Stripe end end # The account this bank account belongs to. Only applicable on Accounts (not customers or recipients) This property is only available when returned as an [External Account](/api/external_account_bank_accounts/object) where [controller.is_controller](/api/accounts/object#account_object-controller-is_controller) is `true`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # The name of the person or business that owns the bank account. sig { returns(T.nilable(String)) } @@ -110,7 +110,7 @@ module Stripe sig { returns(String) } def currency; end # The ID of the customer that the bank account is associated with. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # Whether this bank account is the default external account for its currency. sig { returns(T.nilable(T::Boolean)) } diff --git a/rbi/stripe/resources/billing/alert.rbi b/rbi/stripe/resources/billing/alert.rbi index 91f60430..2084a35d 100644 --- a/rbi/stripe/resources/billing/alert.rbi +++ b/rbi/stripe/resources/billing/alert.rbi @@ -6,10 +6,10 @@ module Stripe module Billing # A billing alert is a resource that notifies you when a certain usage threshold on a meter is crossed. For example, you might create a billing alert to notify you when a certain user made 100 API requests. class Alert < APIResource - class UsageThreshold < Stripe::StripeObject - class Filter < Stripe::StripeObject + class UsageThreshold < ::Stripe::StripeObject + class Filter < ::Stripe::StripeObject # Limit the scope of the alert to this customer ID - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # Attribute for field type sig { returns(String) } @@ -28,7 +28,7 @@ module Stripe sig { returns(Integer) } def gte; end # The [Billing Meter](/api/billing/meter) ID whose usage is monitored. - sig { returns(T.any(String, Stripe::Billing::Meter)) } + sig { returns(T.any(String, ::Stripe::Billing::Meter)) } def meter; end # Defines how the alert will behave. sig { returns(String) } @@ -63,49 +63,49 @@ module Stripe def usage_threshold; end # Reactivates this alert, allowing it to trigger again. sig { - params(params: T.any(::Stripe::Billing::AlertActivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(params: T.any(::Stripe::Billing::AlertActivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def activate(params = {}, opts = {}); end # Reactivates this alert, allowing it to trigger again. sig { - params(id: String, params: T.any(::Stripe::Billing::AlertActivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(id: String, params: T.any(::Stripe::Billing::AlertActivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def self.activate(id, params = {}, opts = {}); end # Archives this alert, removing it from the list view and APIs. This is non-reversible. sig { - params(params: T.any(::Stripe::Billing::AlertArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(params: T.any(::Stripe::Billing::AlertArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def archive(params = {}, opts = {}); end # Archives this alert, removing it from the list view and APIs. This is non-reversible. sig { - params(id: String, params: T.any(::Stripe::Billing::AlertArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(id: String, params: T.any(::Stripe::Billing::AlertArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def self.archive(id, params = {}, opts = {}); end # Creates a billing alert sig { - params(params: T.any(::Stripe::Billing::AlertCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(params: T.any(::Stripe::Billing::AlertCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def self.create(params = {}, opts = {}); end # Deactivates this alert, preventing it from triggering. sig { - params(params: T.any(::Stripe::Billing::AlertDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(params: T.any(::Stripe::Billing::AlertDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def deactivate(params = {}, opts = {}); end # Deactivates this alert, preventing it from triggering. sig { - params(id: String, params: T.any(::Stripe::Billing::AlertDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(id: String, params: T.any(::Stripe::Billing::AlertDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def self.deactivate(id, params = {}, opts = {}); end # Lists billing active and inactive alerts sig { - params(params: T.any(::Stripe::Billing::AlertListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Billing::AlertListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/billing/alert_triggered.rbi b/rbi/stripe/resources/billing/alert_triggered.rbi index b3ebb6a4..5510e36a 100644 --- a/rbi/stripe/resources/billing/alert_triggered.rbi +++ b/rbi/stripe/resources/billing/alert_triggered.rbi @@ -6,7 +6,7 @@ module Stripe module Billing class AlertTriggered < APIResource # A billing alert is a resource that notifies you when a certain usage threshold on a meter is crossed. For example, you might create a billing alert to notify you when a certain user made 100 API requests. - sig { returns(Stripe::Billing::Alert) } + sig { returns(::Stripe::Billing::Alert) } def alert; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } diff --git a/rbi/stripe/resources/billing/credit_balance_summary.rbi b/rbi/stripe/resources/billing/credit_balance_summary.rbi index 9439ab0e..4d3e79db 100644 --- a/rbi/stripe/resources/billing/credit_balance_summary.rbi +++ b/rbi/stripe/resources/billing/credit_balance_summary.rbi @@ -6,9 +6,9 @@ module Stripe module Billing # Indicates the billing credit balance for billing credits granted to a customer. class CreditBalanceSummary < SingletonAPIResource - class Balance < Stripe::StripeObject - class AvailableBalance < Stripe::StripeObject - class Monetary < Stripe::StripeObject + class Balance < ::Stripe::StripeObject + class AvailableBalance < ::Stripe::StripeObject + class Monetary < ::Stripe::StripeObject # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -35,8 +35,8 @@ module Stripe @field_remappings = {} end end - class LedgerBalance < Stripe::StripeObject - class Monetary < Stripe::StripeObject + class LedgerBalance < ::Stripe::StripeObject + class Monetary < ::Stripe::StripeObject # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -80,7 +80,7 @@ module Stripe sig { returns(T::Array[Balance]) } def balances; end # The customer the balance is for. - sig { returns(T.any(String, Stripe::Customer)) } + sig { returns(T.any(String, ::Stripe::Customer)) } def customer; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } diff --git a/rbi/stripe/resources/billing/credit_balance_transaction.rbi b/rbi/stripe/resources/billing/credit_balance_transaction.rbi index 6ae0e61f..e4950001 100644 --- a/rbi/stripe/resources/billing/credit_balance_transaction.rbi +++ b/rbi/stripe/resources/billing/credit_balance_transaction.rbi @@ -6,9 +6,9 @@ module Stripe module Billing # A credit balance transaction is a resource representing a transaction (either a credit or a debit) against an existing credit grant. class CreditBalanceTransaction < APIResource - class Credit < Stripe::StripeObject - class Amount < Stripe::StripeObject - class Monetary < Stripe::StripeObject + class Credit < ::Stripe::StripeObject + class Amount < ::Stripe::StripeObject + class Monetary < ::Stripe::StripeObject # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -35,9 +35,9 @@ module Stripe @field_remappings = {} end end - class CreditsApplicationInvoiceVoided < Stripe::StripeObject + class CreditsApplicationInvoiceVoided < ::Stripe::StripeObject # The invoice to which the reinstated billing credits were originally applied. - sig { returns(T.any(String, Stripe::Invoice)) } + sig { returns(T.any(String, ::Stripe::Invoice)) } def invoice; end # The invoice line item to which the reinstated billing credits were originally applied. sig { returns(String) } @@ -68,9 +68,9 @@ module Stripe @field_remappings = {} end end - class Debit < Stripe::StripeObject - class Amount < Stripe::StripeObject - class Monetary < Stripe::StripeObject + class Debit < ::Stripe::StripeObject + class Amount < ::Stripe::StripeObject + class Monetary < ::Stripe::StripeObject # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -97,9 +97,9 @@ module Stripe @field_remappings = {} end end - class CreditsApplied < Stripe::StripeObject + class CreditsApplied < ::Stripe::StripeObject # The invoice to which the billing credits were applied. - sig { returns(T.any(String, Stripe::Invoice)) } + sig { returns(T.any(String, ::Stripe::Invoice)) } def invoice; end # The invoice line item to which the billing credits were applied. sig { returns(String) } @@ -134,7 +134,7 @@ module Stripe sig { returns(T.nilable(Credit)) } def credit; end # The credit grant associated with this credit balance transaction. - sig { returns(T.any(String, Stripe::Billing::CreditGrant)) } + sig { returns(T.any(String, ::Stripe::Billing::CreditGrant)) } def credit_grant; end # Debit details for this credit balance transaction. Only present if type is `debit`. sig { returns(T.nilable(Debit)) } @@ -152,14 +152,14 @@ module Stripe sig { returns(String) } def object; end # ID of the test clock this credit balance transaction belongs to. - sig { returns(T.nilable(T.any(String, Stripe::TestHelpers::TestClock))) } + sig { returns(T.nilable(T.any(String, ::Stripe::TestHelpers::TestClock))) } def test_clock; end # The type of credit balance transaction (credit or debit). sig { returns(T.nilable(String)) } def type; end # Retrieve a list of credit balance transactions. sig { - params(params: T.any(::Stripe::Billing::CreditBalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Billing::CreditBalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/billing/credit_grant.rbi b/rbi/stripe/resources/billing/credit_grant.rbi index bd42596e..a73dd3fb 100644 --- a/rbi/stripe/resources/billing/credit_grant.rbi +++ b/rbi/stripe/resources/billing/credit_grant.rbi @@ -8,8 +8,8 @@ module Stripe # # Related guide: [Billing credits](https://docs.stripe.com/billing/subscriptions/usage-based/billing-credits) class CreditGrant < APIResource - class Amount < Stripe::StripeObject - class Monetary < Stripe::StripeObject + class Amount < ::Stripe::StripeObject + class Monetary < ::Stripe::StripeObject # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end @@ -36,9 +36,9 @@ module Stripe @field_remappings = {} end end - class ApplicabilityConfig < Stripe::StripeObject - class Scope < Stripe::StripeObject - class Price < Stripe::StripeObject + class ApplicabilityConfig < ::Stripe::StripeObject + class Scope < ::Stripe::StripeObject + class Price < ::Stripe::StripeObject # Unique identifier for the object. sig { returns(T.nilable(String)) } def id; end @@ -85,7 +85,7 @@ module Stripe sig { returns(Integer) } def created; end # ID of the customer receiving the billing credits. - sig { returns(T.any(String, Stripe::Customer)) } + sig { returns(T.any(String, ::Stripe::Customer)) } def customer; end # The time when the billing credits become effective-when they're eligible for use. sig { returns(T.nilable(Integer)) } @@ -112,7 +112,7 @@ module Stripe sig { returns(T.nilable(Integer)) } def priority; end # ID of the test clock this credit grant belongs to. - sig { returns(T.nilable(T.any(String, Stripe::TestHelpers::TestClock))) } + sig { returns(T.nilable(T.any(String, ::Stripe::TestHelpers::TestClock))) } def test_clock; end # Time at which the object was last updated. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -122,43 +122,43 @@ module Stripe def voided_at; end # Creates a credit grant. sig { - params(params: T.any(::Stripe::Billing::CreditGrantCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditGrant) + params(params: T.any(::Stripe::Billing::CreditGrantCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditGrant) } def self.create(params = {}, opts = {}); end # Expires a credit grant. sig { - params(params: T.any(::Stripe::Billing::CreditGrantExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditGrant) + params(params: T.any(::Stripe::Billing::CreditGrantExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditGrant) } def expire(params = {}, opts = {}); end # Expires a credit grant. sig { - params(id: String, params: T.any(::Stripe::Billing::CreditGrantExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditGrant) + params(id: String, params: T.any(::Stripe::Billing::CreditGrantExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditGrant) } def self.expire(id, params = {}, opts = {}); end # Retrieve a list of credit grants. sig { - params(params: T.any(::Stripe::Billing::CreditGrantListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Billing::CreditGrantListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates a credit grant. sig { - params(id: String, params: T.any(::Stripe::Billing::CreditGrantUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditGrant) + params(id: String, params: T.any(::Stripe::Billing::CreditGrantUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditGrant) } def self.update(id, params = {}, opts = {}); end # Voids a credit grant. sig { - params(params: T.any(::Stripe::Billing::CreditGrantVoidGrantParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditGrant) + params(params: T.any(::Stripe::Billing::CreditGrantVoidGrantParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditGrant) } def void_grant(params = {}, opts = {}); end # Voids a credit grant. sig { - params(id: String, params: T.any(::Stripe::Billing::CreditGrantVoidGrantParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditGrant) + params(id: String, params: T.any(::Stripe::Billing::CreditGrantVoidGrantParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditGrant) } def self.void_grant(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/billing/meter.rbi b/rbi/stripe/resources/billing/meter.rbi index f4cfe679..4bbee016 100644 --- a/rbi/stripe/resources/billing/meter.rbi +++ b/rbi/stripe/resources/billing/meter.rbi @@ -8,7 +8,7 @@ module Stripe # # Related guide: [Usage based billing](https://docs.stripe.com/billing/subscriptions/usage-based) class Meter < APIResource - class CustomerMapping < Stripe::StripeObject + class CustomerMapping < ::Stripe::StripeObject # The key in the meter event payload to use for mapping the event to a customer. sig { returns(String) } def event_payload_key; end @@ -22,7 +22,7 @@ module Stripe @field_remappings = {} end end - class DefaultAggregation < Stripe::StripeObject + class DefaultAggregation < ::Stripe::StripeObject # Specifies how events are aggregated. sig { returns(String) } def formula; end @@ -33,7 +33,7 @@ module Stripe @field_remappings = {} end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # The time the meter was deactivated, if any. Measured in seconds since Unix epoch. sig { returns(T.nilable(Integer)) } def deactivated_at; end @@ -44,7 +44,7 @@ module Stripe @field_remappings = {} end end - class ValueSettings < Stripe::StripeObject + class ValueSettings < ::Stripe::StripeObject # The key in the meter event payload to use as the value for this meter. sig { returns(String) } def event_payload_key; end @@ -96,43 +96,43 @@ module Stripe def value_settings; end # Creates a billing meter. sig { - params(params: T.any(::Stripe::Billing::MeterCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Meter) + params(params: T.any(::Stripe::Billing::MeterCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) } def self.create(params = {}, opts = {}); end # When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price. sig { - params(params: T.any(::Stripe::Billing::MeterDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Meter) + params(params: T.any(::Stripe::Billing::MeterDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) } def deactivate(params = {}, opts = {}); end # When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price. sig { - params(id: String, params: T.any(::Stripe::Billing::MeterDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Meter) + params(id: String, params: T.any(::Stripe::Billing::MeterDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) } def self.deactivate(id, params = {}, opts = {}); end # Retrieve a list of billing meters. sig { - params(params: T.any(::Stripe::Billing::MeterListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Billing::MeterListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price. sig { - params(params: T.any(::Stripe::Billing::MeterReactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Meter) + params(params: T.any(::Stripe::Billing::MeterReactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) } def reactivate(params = {}, opts = {}); end # When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price. sig { - params(id: String, params: T.any(::Stripe::Billing::MeterReactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Meter) + params(id: String, params: T.any(::Stripe::Billing::MeterReactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) } def self.reactivate(id, params = {}, opts = {}); end # Updates a billing meter. sig { - params(id: String, params: T.any(::Stripe::Billing::MeterUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Meter) + params(id: String, params: T.any(::Stripe::Billing::MeterUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) } def self.update(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/billing/meter_event.rbi b/rbi/stripe/resources/billing/meter_event.rbi index 13c7163c..1d36c589 100644 --- a/rbi/stripe/resources/billing/meter_event.rbi +++ b/rbi/stripe/resources/billing/meter_event.rbi @@ -29,7 +29,7 @@ module Stripe def timestamp; end # Creates a billing meter event. sig { - params(params: T.any(::Stripe::Billing::MeterEventCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::MeterEvent) + params(params: T.any(::Stripe::Billing::MeterEventCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::MeterEvent) } def self.create(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/billing/meter_event_adjustment.rbi b/rbi/stripe/resources/billing/meter_event_adjustment.rbi index be7145f5..0e48a5e7 100644 --- a/rbi/stripe/resources/billing/meter_event_adjustment.rbi +++ b/rbi/stripe/resources/billing/meter_event_adjustment.rbi @@ -6,7 +6,7 @@ module Stripe module Billing # A billing meter event adjustment is a resource that allows you to cancel a meter event. For example, you might create a billing meter event adjustment to cancel a meter event that was created in error or attached to the wrong customer. class MeterEventAdjustment < APIResource - class Cancel < Stripe::StripeObject + class Cancel < ::Stripe::StripeObject # Unique identifier for the event. sig { returns(T.nilable(String)) } def identifier; end @@ -37,7 +37,7 @@ module Stripe def type; end # Creates a billing meter event adjustment. sig { - params(params: T.any(::Stripe::Billing::MeterEventAdjustmentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::MeterEventAdjustment) + params(params: T.any(::Stripe::Billing::MeterEventAdjustmentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::MeterEventAdjustment) } def self.create(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/billing_portal/configuration.rbi b/rbi/stripe/resources/billing_portal/configuration.rbi index 00386769..b0f0d552 100644 --- a/rbi/stripe/resources/billing_portal/configuration.rbi +++ b/rbi/stripe/resources/billing_portal/configuration.rbi @@ -4,9 +4,9 @@ # typed: true module Stripe module BillingPortal - # A portal configuration describes the functionality and behavior of a portal session. + # A portal configuration describes the functionality and behavior you embed in a portal session. Related guide: [Configure the customer portal](https://docs.stripe.com/customer-management/configure-portal). class Configuration < APIResource - class BusinessProfile < Stripe::StripeObject + class BusinessProfile < ::Stripe::StripeObject # The messaging shown to customers in the portal. sig { returns(T.nilable(String)) } def headline; end @@ -23,8 +23,8 @@ module Stripe @field_remappings = {} end end - class Features < Stripe::StripeObject - class CustomerUpdate < Stripe::StripeObject + class Features < ::Stripe::StripeObject + class CustomerUpdate < ::Stripe::StripeObject # The types of customer updates that are supported. When empty, customers are not updateable. sig { returns(T::Array[String]) } def allowed_updates; end @@ -38,7 +38,7 @@ module Stripe @field_remappings = {} end end - class InvoiceHistory < Stripe::StripeObject + class InvoiceHistory < ::Stripe::StripeObject # Whether the feature is enabled. sig { returns(T::Boolean) } def enabled; end @@ -49,7 +49,7 @@ module Stripe @field_remappings = {} end end - class PaymentMethodUpdate < Stripe::StripeObject + class PaymentMethodUpdate < ::Stripe::StripeObject # Whether the feature is enabled. sig { returns(T::Boolean) } def enabled; end @@ -60,8 +60,8 @@ module Stripe @field_remappings = {} end end - class SubscriptionCancel < Stripe::StripeObject - class CancellationReason < Stripe::StripeObject + class SubscriptionCancel < ::Stripe::StripeObject + class CancellationReason < ::Stripe::StripeObject # Whether the feature is enabled. sig { returns(T::Boolean) } def enabled; end @@ -94,9 +94,9 @@ module Stripe @field_remappings = {} end end - class SubscriptionUpdate < Stripe::StripeObject - class Product < Stripe::StripeObject - class AdjustableQuantity < Stripe::StripeObject + class SubscriptionUpdate < ::Stripe::StripeObject + class Product < ::Stripe::StripeObject + class AdjustableQuantity < ::Stripe::StripeObject # If true, the quantity can be adjusted to any non-negative integer. sig { returns(T::Boolean) } def enabled; end @@ -129,8 +129,8 @@ module Stripe @field_remappings = {} end end - class ScheduleAtPeriodEnd < Stripe::StripeObject - class Condition < Stripe::StripeObject + class ScheduleAtPeriodEnd < ::Stripe::StripeObject + class Condition < ::Stripe::StripeObject # The type of condition. sig { returns(String) } def type; end @@ -204,7 +204,7 @@ module Stripe @field_remappings = {} end end - class LoginPage < Stripe::StripeObject + class LoginPage < ::Stripe::StripeObject # If `true`, a shareable `url` will be generated that will take your customers to a hosted login page for the customer portal. # # If `false`, the previously generated `url`, if any, will be deactivated. @@ -224,7 +224,7 @@ module Stripe sig { returns(T::Boolean) } def active; end # ID of the Connect Application that created the configuration. - sig { returns(T.nilable(T.any(String, Stripe::Application))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Application))) } def application; end # Attribute for field business_profile sig { returns(BusinessProfile) } @@ -264,19 +264,19 @@ module Stripe def updated; end # Creates a configuration that describes the functionality and behavior of a PortalSession sig { - params(params: T.any(::Stripe::BillingPortal::ConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BillingPortal::Configuration) + params(params: T.any(::Stripe::BillingPortal::ConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::BillingPortal::Configuration) } def self.create(params = {}, opts = {}); end # Returns a list of configurations that describe the functionality of the customer portal. sig { - params(params: T.any(::Stripe::BillingPortal::ConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::BillingPortal::ConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates a configuration that describes the functionality of the customer portal. sig { - params(configuration: String, params: T.any(::Stripe::BillingPortal::ConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BillingPortal::Configuration) + params(configuration: String, params: T.any(::Stripe::BillingPortal::ConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::BillingPortal::Configuration) } def self.update(configuration, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/billing_portal/session.rbi b/rbi/stripe/resources/billing_portal/session.rbi index 229eef57..fb4197c1 100644 --- a/rbi/stripe/resources/billing_portal/session.rbi +++ b/rbi/stripe/resources/billing_portal/session.rbi @@ -19,9 +19,9 @@ module Stripe # # Related guide: [Customer management](https://docs.stripe.com/customer-management) class Session < APIResource - class Flow < Stripe::StripeObject - class AfterCompletion < Stripe::StripeObject - class HostedConfirmation < Stripe::StripeObject + class Flow < ::Stripe::StripeObject + class AfterCompletion < ::Stripe::StripeObject + class HostedConfirmation < ::Stripe::StripeObject # A custom message to display to the customer after the flow is completed. sig { returns(T.nilable(String)) } def custom_message; end @@ -32,7 +32,7 @@ module Stripe @field_remappings = {} end end - class Redirect < Stripe::StripeObject + class Redirect < ::Stripe::StripeObject # The URL the customer will be redirected to after the flow is completed. sig { returns(String) } def return_url; end @@ -59,9 +59,9 @@ module Stripe @field_remappings = {} end end - class SubscriptionCancel < Stripe::StripeObject - class Retention < Stripe::StripeObject - class CouponOffer < Stripe::StripeObject + class SubscriptionCancel < ::Stripe::StripeObject + class Retention < ::Stripe::StripeObject + class CouponOffer < ::Stripe::StripeObject # The ID of the coupon to be offered. sig { returns(String) } def coupon; end @@ -98,7 +98,7 @@ module Stripe @field_remappings = {} end end - class SubscriptionUpdate < Stripe::StripeObject + class SubscriptionUpdate < ::Stripe::StripeObject # The ID of the subscription to be updated. sig { returns(String) } def subscription; end @@ -109,8 +109,8 @@ module Stripe @field_remappings = {} end end - class SubscriptionUpdateConfirm < Stripe::StripeObject - class Discount < Stripe::StripeObject + class SubscriptionUpdateConfirm < ::Stripe::StripeObject + class Discount < ::Stripe::StripeObject # The ID of the coupon to apply to this subscription update. sig { returns(T.nilable(String)) } def coupon; end @@ -124,7 +124,7 @@ module Stripe @field_remappings = {} end end - class Item < Stripe::StripeObject + class Item < ::Stripe::StripeObject # The ID of the [subscription item](https://stripe.com/docs/api/subscriptions/object#subscription_object-items-data-id) to be updated. sig { returns(T.nilable(String)) } def id; end @@ -185,7 +185,7 @@ module Stripe end end # The configuration used by this session, describing the features available. - sig { returns(T.any(String, Stripe::BillingPortal::Configuration)) } + sig { returns(T.any(String, ::Stripe::BillingPortal::Configuration)) } def configuration; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -219,7 +219,7 @@ module Stripe def url; end # Creates a session of the customer portal. sig { - params(params: T.any(::Stripe::BillingPortal::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BillingPortal::Session) + params(params: T.any(::Stripe::BillingPortal::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::BillingPortal::Session) } def self.create(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/capability.rbi b/rbi/stripe/resources/capability.rbi index 4951e8e8..334eea0a 100644 --- a/rbi/stripe/resources/capability.rbi +++ b/rbi/stripe/resources/capability.rbi @@ -7,8 +7,8 @@ module Stripe # # Related guide: [Account capabilities](https://stripe.com/docs/connect/account-capabilities) class Capability < APIResource - class FutureRequirements < Stripe::StripeObject - class Alternative < Stripe::StripeObject + class FutureRequirements < ::Stripe::StripeObject + class Alternative < ::Stripe::StripeObject # Fields that can be provided to satisfy all fields in `original_fields_due`. sig { returns(T::Array[String]) } def alternative_fields_due; end @@ -22,7 +22,7 @@ module Stripe @field_remappings = {} end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. sig { returns(String) } def code; end @@ -70,8 +70,8 @@ module Stripe @field_remappings = {} end end - class Requirements < Stripe::StripeObject - class Alternative < Stripe::StripeObject + class Requirements < ::Stripe::StripeObject + class Alternative < ::Stripe::StripeObject # Fields that can be provided to satisfy all fields in `original_fields_due`. sig { returns(T::Array[String]) } def alternative_fields_due; end @@ -85,7 +85,7 @@ module Stripe @field_remappings = {} end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. sig { returns(String) } def code; end @@ -134,7 +134,7 @@ module Stripe end end # The account for which the capability enables functionality. - sig { returns(T.any(String, Stripe::Account)) } + sig { returns(T.any(String, ::Stripe::Account)) } def account; end # Attribute for field future_requirements sig { returns(T.nilable(FutureRequirements)) } diff --git a/rbi/stripe/resources/card.rbi b/rbi/stripe/resources/card.rbi index 218ad66a..c3e60274 100644 --- a/rbi/stripe/resources/card.rbi +++ b/rbi/stripe/resources/card.rbi @@ -9,7 +9,7 @@ module Stripe # # Related guide: [Card payments with Sources](https://stripe.com/docs/sources/cards) class Card < APIResource - class Networks < Stripe::StripeObject + class Networks < ::Stripe::StripeObject # The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card. sig { returns(T.nilable(String)) } def preferred; end @@ -21,7 +21,7 @@ module Stripe end end # Attribute for field account - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # City/District/Suburb/Town/Village. sig { returns(T.nilable(String)) } @@ -63,7 +63,7 @@ module Stripe sig { returns(T.nilable(String)) } def currency; end # The customer that this card belongs to. This attribute will not be in the card object if the card belongs to an account or recipient instead. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # If a CVC was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`. A result of unchecked indicates that CVC was provided but hasn't been checked yet. Checks are typically performed when attaching a card to a Customer object, or when creating a charge. For more details, see [Check if a card is valid without a charge](https://support.stripe.com/questions/check-if-a-card-is-valid-without-a-charge). sig { returns(T.nilable(String)) } diff --git a/rbi/stripe/resources/cash_balance.rbi b/rbi/stripe/resources/cash_balance.rbi index 0d07a217..e8ae642b 100644 --- a/rbi/stripe/resources/cash_balance.rbi +++ b/rbi/stripe/resources/cash_balance.rbi @@ -5,7 +5,7 @@ module Stripe # A customer's `Cash balance` represents real funds. Customers can add funds to their cash balance by sending a bank transfer. These funds can be used for payment and can eventually be paid out to your bank account. class CashBalance < APIResource - class Settings < Stripe::StripeObject + class Settings < ::Stripe::StripeObject # The configuration for how funds that land in the customer cash balance are reconciled. sig { returns(String) } def reconciliation_mode; end diff --git a/rbi/stripe/resources/charge.rbi b/rbi/stripe/resources/charge.rbi index 8ffeae70..cd827e41 100644 --- a/rbi/stripe/resources/charge.rbi +++ b/rbi/stripe/resources/charge.rbi @@ -7,8 +7,8 @@ module Stripe # PaymentIntent confirmation is the most common way to create Charges, but [Account Debits](https://stripe.com/docs/connect/account-debits) may also create Charges. # Some legacy payment flows create Charges directly, which is not recommended for new integrations. class Charge < APIResource - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -56,7 +56,7 @@ module Stripe @field_remappings = {} end end - class FraudDetails < Stripe::StripeObject + class FraudDetails < ::Stripe::StripeObject # Assessments from Stripe. If set, the value is `fraudulent`. sig { returns(T.nilable(String)) } def stripe_report; end @@ -70,8 +70,8 @@ module Stripe @field_remappings = {} end end - class Level3 < Stripe::StripeObject - class LineItem < Stripe::StripeObject + class Level3 < ::Stripe::StripeObject + class LineItem < ::Stripe::StripeObject # Attribute for field discount_amount sig { returns(T.nilable(Integer)) } def discount_amount; end @@ -122,8 +122,8 @@ module Stripe @field_remappings = {} end end - class Outcome < Stripe::StripeObject - class Rule < Stripe::StripeObject + class Outcome < ::Stripe::StripeObject + class Rule < ::Stripe::StripeObject # The action taken on the payment. sig { returns(String) } def action; end @@ -177,8 +177,8 @@ module Stripe @field_remappings = {} end end - class PaymentMethodDetails < Stripe::StripeObject - class AchCreditTransfer < Stripe::StripeObject + class PaymentMethodDetails < ::Stripe::StripeObject + class AchCreditTransfer < ::Stripe::StripeObject # Account number to transfer funds to. sig { returns(T.nilable(String)) } def account_number; end @@ -198,7 +198,7 @@ module Stripe @field_remappings = {} end end - class AchDebit < Stripe::StripeObject + class AchDebit < ::Stripe::StripeObject # Type of entity that holds the account. This can be either `individual` or `company`. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -224,7 +224,7 @@ module Stripe @field_remappings = {} end end - class AcssDebit < Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject # Name of the bank associated with the bank account. sig { returns(T.nilable(String)) } def bank_name; end @@ -250,7 +250,7 @@ module Stripe @field_remappings = {} end end - class Affirm < Stripe::StripeObject + class Affirm < ::Stripe::StripeObject # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. sig { returns(T.nilable(String)) } def location; end @@ -267,7 +267,7 @@ module Stripe @field_remappings = {} end end - class AfterpayClearpay < Stripe::StripeObject + class AfterpayClearpay < ::Stripe::StripeObject # The Afterpay order ID associated with this payment intent. sig { returns(T.nilable(String)) } def order_id; end @@ -281,7 +281,7 @@ module Stripe @field_remappings = {} end end - class Alipay < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same. sig { returns(T.nilable(String)) } def buyer_id; end @@ -298,8 +298,8 @@ module Stripe @field_remappings = {} end end - class Alma < Stripe::StripeObject - class Installments < Stripe::StripeObject + class Alma < ::Stripe::StripeObject + class Installments < ::Stripe::StripeObject # The number of installments. sig { returns(Integer) } def count; end @@ -323,9 +323,9 @@ module Stripe @field_remappings = {} end end - class AmazonPay < Stripe::StripeObject - class Funding < Stripe::StripeObject - class Card < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject + class Funding < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. sig { returns(T.nilable(String)) } def brand; end @@ -377,7 +377,7 @@ module Stripe @field_remappings = {} end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject # Bank-State-Branch number of the bank account. sig { returns(T.nilable(String)) } def bsb_number; end @@ -397,7 +397,7 @@ module Stripe @field_remappings = {} end end - class BacsDebit < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. sig { returns(T.nilable(String)) } def fingerprint; end @@ -417,7 +417,7 @@ module Stripe @field_remappings = {} end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject # Bank code of bank associated with the bank account. sig { returns(T.nilable(String)) } def bank_code; end @@ -428,10 +428,10 @@ module Stripe sig { returns(T.nilable(String)) } def bic; end # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def generated_sepa_debit; end # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def generated_sepa_debit_mandate; end # Last four characters of the IBAN. sig { returns(T.nilable(String)) } @@ -451,7 +451,7 @@ module Stripe @field_remappings = {} end end - class Billie < Stripe::StripeObject + class Billie < ::Stripe::StripeObject # The Billie transaction ID associated with this payment. sig { returns(T.nilable(String)) } def transaction_id; end @@ -462,7 +462,7 @@ module Stripe @field_remappings = {} end end - class Blik < Stripe::StripeObject + class Blik < ::Stripe::StripeObject # A unique and immutable identifier assigned by BLIK to every buyer. sig { returns(T.nilable(String)) } def buyer_id; end @@ -473,7 +473,7 @@ module Stripe @field_remappings = {} end end - class Boleto < Stripe::StripeObject + class Boleto < ::Stripe::StripeObject # The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses consumers) sig { returns(String) } def tax_id; end @@ -484,8 +484,8 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject - class Checks < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Checks < ::Stripe::StripeObject # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. sig { returns(T.nilable(String)) } def address_line1_check; end @@ -502,7 +502,7 @@ module Stripe @field_remappings = {} end end - class ExtendedAuthorization < Stripe::StripeObject + class ExtendedAuthorization < ::Stripe::StripeObject # Indicates whether or not the capture window is extended beyond the standard authorization. sig { returns(String) } def status; end @@ -513,7 +513,7 @@ module Stripe @field_remappings = {} end end - class IncrementalAuthorization < Stripe::StripeObject + class IncrementalAuthorization < ::Stripe::StripeObject # Indicates whether or not the incremental authorization feature is supported. sig { returns(String) } def status; end @@ -524,8 +524,8 @@ module Stripe @field_remappings = {} end end - class Installments < Stripe::StripeObject - class Plan < Stripe::StripeObject + class Installments < ::Stripe::StripeObject + class Plan < ::Stripe::StripeObject # For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card. sig { returns(T.nilable(Integer)) } def count; end @@ -553,7 +553,7 @@ module Stripe @field_remappings = {} end end - class Multicapture < Stripe::StripeObject + class Multicapture < ::Stripe::StripeObject # Indicates whether or not multiple captures are supported. sig { returns(String) } def status; end @@ -564,7 +564,7 @@ module Stripe @field_remappings = {} end end - class NetworkToken < Stripe::StripeObject + class NetworkToken < ::Stripe::StripeObject # Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction. sig { returns(T::Boolean) } def used; end @@ -575,7 +575,7 @@ module Stripe @field_remappings = {} end end - class Overcapture < Stripe::StripeObject + class Overcapture < ::Stripe::StripeObject # The maximum amount that can be captured. sig { returns(Integer) } def maximum_amount_capturable; end @@ -589,7 +589,7 @@ module Stripe @field_remappings = {} end end - class ThreeDSecure < Stripe::StripeObject + class ThreeDSecure < ::Stripe::StripeObject # For authenticated transactions: how the customer was authenticated by # the issuing bank. sig { returns(T.nilable(String)) } @@ -626,8 +626,8 @@ module Stripe @field_remappings = {} end end - class Wallet < Stripe::StripeObject - class AmexExpressCheckout < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject + class AmexExpressCheckout < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -635,7 +635,7 @@ module Stripe @field_remappings = {} end end - class ApplePay < Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -643,7 +643,7 @@ module Stripe @field_remappings = {} end end - class GooglePay < Stripe::StripeObject + class GooglePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -651,7 +651,7 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -659,8 +659,8 @@ module Stripe @field_remappings = {} end end - class Masterpass < Stripe::StripeObject - class BillingAddress < Stripe::StripeObject + class Masterpass < ::Stripe::StripeObject + class BillingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -686,7 +686,7 @@ module Stripe @field_remappings = {} end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -734,7 +734,7 @@ module Stripe @field_remappings = {} end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -742,8 +742,8 @@ module Stripe @field_remappings = {} end end - class VisaCheckout < Stripe::StripeObject - class BillingAddress < Stripe::StripeObject + class VisaCheckout < ::Stripe::StripeObject + class BillingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -769,7 +769,7 @@ module Stripe @field_remappings = {} end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -961,8 +961,8 @@ module Stripe @field_remappings = {} end end - class CardPresent < Stripe::StripeObject - class Offline < Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject + class Offline < ::Stripe::StripeObject # Time at which the payment was collected while offline sig { returns(T.nilable(Integer)) } def stored_at; end @@ -976,7 +976,7 @@ module Stripe @field_remappings = {} end end - class Receipt < Stripe::StripeObject + class Receipt < ::Stripe::StripeObject # The type of account being debited or credited sig { returns(T.nilable(String)) } def account_type; end @@ -1011,7 +1011,7 @@ module Stripe @field_remappings = {} end end - class Wallet < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. sig { returns(String) } def type; end @@ -1106,7 +1106,7 @@ module Stripe @field_remappings = {} end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject # A unique and immutable identifier assigned by Cash App to every buyer. sig { returns(T.nilable(String)) } def buyer_id; end @@ -1123,7 +1123,7 @@ module Stripe @field_remappings = {} end end - class Crypto < Stripe::StripeObject + class Crypto < ::Stripe::StripeObject # The wallet address of the customer. sig { returns(T.nilable(String)) } def buyer_address; end @@ -1143,7 +1143,7 @@ module Stripe @field_remappings = {} end end - class CustomerBalance < Stripe::StripeObject + class CustomerBalance < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1151,7 +1151,7 @@ module Stripe @field_remappings = {} end end - class Eps < Stripe::StripeObject + class Eps < ::Stripe::StripeObject # The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. sig { returns(T.nilable(String)) } def bank; end @@ -1167,7 +1167,7 @@ module Stripe @field_remappings = {} end end - class Fpx < Stripe::StripeObject + class Fpx < ::Stripe::StripeObject # Account holder type, if provided. Can be one of `individual` or `company`. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -1184,7 +1184,7 @@ module Stripe @field_remappings = {} end end - class Giropay < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject # Bank code of bank associated with the bank account. sig { returns(T.nilable(String)) } def bank_code; end @@ -1206,7 +1206,7 @@ module Stripe @field_remappings = {} end end - class Grabpay < Stripe::StripeObject + class Grabpay < ::Stripe::StripeObject # Unique transaction id generated by GrabPay sig { returns(T.nilable(String)) } def transaction_id; end @@ -1217,7 +1217,7 @@ module Stripe @field_remappings = {} end end - class Ideal < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject # The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. sig { returns(T.nilable(String)) } def bank; end @@ -1225,10 +1225,10 @@ module Stripe sig { returns(T.nilable(String)) } def bic; end # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def generated_sepa_debit; end # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def generated_sepa_debit_mandate; end # Last four characters of the IBAN. sig { returns(T.nilable(String)) } @@ -1244,8 +1244,8 @@ module Stripe @field_remappings = {} end end - class InteracPresent < Stripe::StripeObject - class Receipt < Stripe::StripeObject + class InteracPresent < ::Stripe::StripeObject + class Receipt < ::Stripe::StripeObject # The type of account being debited or credited sig { returns(T.nilable(String)) } def account_type; end @@ -1343,7 +1343,7 @@ module Stripe @field_remappings = {} end end - class KakaoPay < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject # A unique identifier for the buyer as determined by the local payment processor. sig { returns(T.nilable(String)) } def buyer_id; end @@ -1357,9 +1357,9 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject - class PayerDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject + class PayerDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # The payer address country sig { returns(T.nilable(String)) } def country; end @@ -1398,8 +1398,8 @@ module Stripe @field_remappings = {} end end - class Konbini < Stripe::StripeObject - class Store < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject + class Store < ::Stripe::StripeObject # The name of the convenience store chain where the payment was completed. sig { returns(T.nilable(String)) } def chain; end @@ -1420,7 +1420,7 @@ module Stripe @field_remappings = {} end end - class KrCard < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject # The local credit or debit card brand. sig { returns(T.nilable(String)) } def brand; end @@ -1440,7 +1440,7 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject # Two-letter ISO code representing the funding source country beneath the Link payment. # You could use this attribute to get a sense of international fees. sig { returns(T.nilable(String)) } @@ -1452,7 +1452,7 @@ module Stripe @field_remappings = {} end end - class MbWay < Stripe::StripeObject + class MbWay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1460,8 +1460,8 @@ module Stripe @field_remappings = {} end end - class Mobilepay < Stripe::StripeObject - class Card < Stripe::StripeObject + class Mobilepay < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject # Brand of the card used in the transaction sig { returns(T.nilable(String)) } def brand; end @@ -1494,7 +1494,7 @@ module Stripe @field_remappings = {} end end - class Multibanco < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject # Entity number associated with this Multibanco payment. sig { returns(T.nilable(String)) } def entity; end @@ -1508,7 +1508,7 @@ module Stripe @field_remappings = {} end end - class NaverPay < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject # A unique identifier for the buyer as determined by the local payment processor. sig { returns(T.nilable(String)) } def buyer_id; end @@ -1522,7 +1522,7 @@ module Stripe @field_remappings = {} end end - class NzBankAccount < Stripe::StripeObject + class NzBankAccount < ::Stripe::StripeObject # The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -1548,7 +1548,7 @@ module Stripe @field_remappings = {} end end - class Oxxo < Stripe::StripeObject + class Oxxo < ::Stripe::StripeObject # OXXO reference number sig { returns(T.nilable(String)) } def number; end @@ -1559,7 +1559,7 @@ module Stripe @field_remappings = {} end end - class P24 < Stripe::StripeObject + class P24 < ::Stripe::StripeObject # The customer's bank. Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `velobank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`. sig { returns(T.nilable(String)) } def bank; end @@ -1578,7 +1578,7 @@ module Stripe @field_remappings = {} end end - class PayByBank < Stripe::StripeObject + class PayByBank < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1586,7 +1586,7 @@ module Stripe @field_remappings = {} end end - class Payco < Stripe::StripeObject + class Payco < ::Stripe::StripeObject # A unique identifier for the buyer as determined by the local payment processor. sig { returns(T.nilable(String)) } def buyer_id; end @@ -1600,7 +1600,7 @@ module Stripe @field_remappings = {} end end - class Paynow < Stripe::StripeObject + class Paynow < ::Stripe::StripeObject # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. sig { returns(T.nilable(String)) } def location; end @@ -1617,8 +1617,8 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject - class SellerProtection < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject + class SellerProtection < ::Stripe::StripeObject # An array of conditions that are covered for the transaction, if applicable. sig { returns(T.nilable(T::Array[String])) } def dispute_categories; end @@ -1659,7 +1659,7 @@ module Stripe @field_remappings = {} end end - class Pix < Stripe::StripeObject + class Pix < ::Stripe::StripeObject # Unique transaction id generated by BCB sig { returns(T.nilable(String)) } def bank_transaction_id; end @@ -1670,7 +1670,7 @@ module Stripe @field_remappings = {} end end - class Promptpay < Stripe::StripeObject + class Promptpay < ::Stripe::StripeObject # Bill reference generated by PromptPay sig { returns(T.nilable(String)) } def reference; end @@ -1681,9 +1681,9 @@ module Stripe @field_remappings = {} end end - class RevolutPay < Stripe::StripeObject - class Funding < Stripe::StripeObject - class Card < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject + class Funding < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. sig { returns(T.nilable(String)) } def brand; end @@ -1735,7 +1735,7 @@ module Stripe @field_remappings = {} end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject # A unique identifier for the buyer as determined by the local payment processor. sig { returns(T.nilable(String)) } def buyer_id; end @@ -1749,7 +1749,7 @@ module Stripe @field_remappings = {} end end - class Satispay < Stripe::StripeObject + class Satispay < ::Stripe::StripeObject # The Satispay transaction ID associated with this payment. sig { returns(T.nilable(String)) } def transaction_id; end @@ -1760,7 +1760,7 @@ module Stripe @field_remappings = {} end end - class SepaCreditTransfer < Stripe::StripeObject + class SepaCreditTransfer < ::Stripe::StripeObject # Name of the bank associated with the bank account. sig { returns(T.nilable(String)) } def bank_name; end @@ -1777,7 +1777,7 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject # Bank code of bank associated with the bank account. sig { returns(T.nilable(String)) } def bank_code; end @@ -1803,7 +1803,7 @@ module Stripe @field_remappings = {} end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject # Bank code of bank associated with the bank account. sig { returns(T.nilable(String)) } def bank_code; end @@ -1817,10 +1817,10 @@ module Stripe sig { returns(T.nilable(String)) } def country; end # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def generated_sepa_debit; end # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def generated_sepa_debit_mandate; end # Last four characters of the IBAN. sig { returns(T.nilable(String)) } @@ -1840,7 +1840,7 @@ module Stripe @field_remappings = {} end end - class StripeAccount < Stripe::StripeObject + class StripeAccount < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1848,7 +1848,7 @@ module Stripe @field_remappings = {} end end - class Swish < Stripe::StripeObject + class Swish < ::Stripe::StripeObject # Uniquely identifies the payer's Swish account. You can use this attribute to check whether two Swish transactions were paid for by the same payer sig { returns(T.nilable(String)) } def fingerprint; end @@ -1865,7 +1865,7 @@ module Stripe @field_remappings = {} end end - class Twint < Stripe::StripeObject + class Twint < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1873,7 +1873,7 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -1890,7 +1890,7 @@ module Stripe sig { returns(T.nilable(String)) } def last4; end # ID of the mandate used to make this payment. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def mandate; end # Reference number to locate ACH payments with customer's bank. sig { returns(T.nilable(String)) } @@ -1905,7 +1905,7 @@ module Stripe @field_remappings = {} end end - class Wechat < Stripe::StripeObject + class Wechat < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1913,7 +1913,7 @@ module Stripe @field_remappings = {} end end - class WechatPay < Stripe::StripeObject + class WechatPay < ::Stripe::StripeObject # Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same. sig { returns(T.nilable(String)) } def fingerprint; end @@ -1933,7 +1933,7 @@ module Stripe @field_remappings = {} end end - class Zip < Stripe::StripeObject + class Zip < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -2178,7 +2178,7 @@ module Stripe @field_remappings = {} end end - class PresentmentDetails < Stripe::StripeObject + class PresentmentDetails < ::Stripe::StripeObject # Amount intended to be collected by this payment, denominated in `presentment_currency`. sig { returns(Integer) } def presentment_amount; end @@ -2192,7 +2192,7 @@ module Stripe @field_remappings = {} end end - class RadarOptions < Stripe::StripeObject + class RadarOptions < ::Stripe::StripeObject # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -2203,8 +2203,8 @@ module Stripe @field_remappings = {} end end - class Shipping < Stripe::StripeObject - class Address < Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -2252,12 +2252,12 @@ module Stripe @field_remappings = {} end end - class TransferData < Stripe::StripeObject + class TransferData < ::Stripe::StripeObject # The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account. sig { returns(T.nilable(Integer)) } def amount; end # ID of an existing, connected Stripe account to transfer funds to if `transfer_data` was specified in the charge request. - sig { returns(T.any(String, Stripe::Account)) } + sig { returns(T.any(String, ::Stripe::Account)) } def destination; end def self.inner_class_types @inner_class_types = {} @@ -2276,10 +2276,10 @@ module Stripe sig { returns(Integer) } def amount_refunded; end # ID of the Connect application that created the charge. - sig { returns(T.nilable(T.any(String, Stripe::Application))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Application))) } def application; end # The application fee (if any) for the charge. [See the Connect documentation](https://stripe.com/docs/connect/direct-charges#collect-fees) for details. - sig { returns(T.nilable(T.any(String, Stripe::ApplicationFee))) } + sig { returns(T.nilable(T.any(String, ::Stripe::ApplicationFee))) } def application_fee; end # The amount of the application fee (if any) requested for the charge. [See the Connect documentation](https://stripe.com/docs/connect/direct-charges#collect-fees) for details. sig { returns(T.nilable(Integer)) } @@ -2288,7 +2288,7 @@ module Stripe sig { returns(T.nilable(String)) } def authorization_code; end # ID of the balance transaction that describes the impact of this charge on your account balance (not including refunds or disputes). - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def balance_transaction; end # Attribute for field billing_details sig { returns(BillingDetails) } @@ -2306,7 +2306,7 @@ module Stripe sig { returns(String) } def currency; end # ID of the customer this charge is for if one exists. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } @@ -2315,7 +2315,7 @@ module Stripe sig { returns(T::Boolean) } def disputed; end # ID of the balance transaction that describes the reversal of the balance on your account due to payment failure. - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def failure_balance_transaction; end # Error code explaining reason for charge failure if available (see [the errors section](https://stripe.com/docs/error-codes) for a list of codes). sig { returns(T.nilable(String)) } @@ -2342,7 +2342,7 @@ module Stripe sig { returns(String) } def object; end # The account (if any) the charge was made on behalf of without triggering an automatic transfer. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers) for details. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def on_behalf_of; end # Details about whether the payment was accepted, and why. See [understanding declines](https://stripe.com/docs/declines) for details. sig { returns(T.nilable(Outcome)) } @@ -2351,7 +2351,7 @@ module Stripe sig { returns(T::Boolean) } def paid; end # ID of the PaymentIntent associated with this charge, if one exists. - sig { returns(T.nilable(T.any(String, Stripe::PaymentIntent))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntent))) } def payment_intent; end # ID of the payment method used in this charge. sig { returns(T.nilable(String)) } @@ -2378,21 +2378,21 @@ module Stripe sig { returns(T::Boolean) } def refunded; end # A list of refunds that have been applied to the charge. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def refunds; end # ID of the review associated with this charge if one exists. - sig { returns(T.nilable(T.any(String, Stripe::Review))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Review))) } def review; end # Shipping information for the charge. sig { returns(T.nilable(Shipping)) } def shipping; end # This is a legacy field that will be removed in the future. It contains the Source, Card, or BankAccount object used for the charge. For details about the payment method used for this charge, refer to `payment_method` or `payment_method_details` instead. sig { - returns(T.nilable(T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source))) + returns(T.nilable(T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source))) } def source; end # The transfer ID which created this charge. Only present if the charge came from another Stripe account. [See the Connect documentation](https://docs.stripe.com/connect/destination-charges) for details. - sig { returns(T.nilable(T.any(String, Stripe::Transfer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Transfer))) } def source_transfer; end # For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). # @@ -2406,7 +2406,7 @@ module Stripe sig { returns(String) } def status; end # ID of the transfer to the `destination` account (only applicable if the charge was created using the `destination` parameter). - sig { returns(T.nilable(T.any(String, Stripe::Transfer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Transfer))) } def transfer; end # An optional dictionary including the account to automatically transfer to as part of a destination charge. [See the Connect documentation](https://stripe.com/docs/connect/destination-charges) for details. sig { returns(T.nilable(TransferData)) } @@ -2420,7 +2420,7 @@ module Stripe # # Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture). sig { - params(params: T.any(::Stripe::ChargeCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Charge) + params(params: T.any(::Stripe::ChargeCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Charge) } def capture(params = {}, opts = {}); end @@ -2430,7 +2430,7 @@ module Stripe # # Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture). sig { - params(charge: String, params: T.any(::Stripe::ChargeCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Charge) + params(charge: String, params: T.any(::Stripe::ChargeCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Charge) } def self.capture(charge, params = {}, opts = {}); end @@ -2438,29 +2438,29 @@ module Stripe # to initiate a new payment instead. Confirmation of the PaymentIntent creates the Charge # object used to request payment. sig { - params(params: T.any(::Stripe::ChargeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Charge) + params(params: T.any(::Stripe::ChargeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Charge) } def self.create(params = {}, opts = {}); end # Returns a list of charges you've previously created. The charges are returned in sorted order, with the most recent charges appearing first. sig { - params(params: T.any(::Stripe::ChargeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ChargeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::ChargeSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::ChargeSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def self.search(params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::ChargeSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::ChargeSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(::Stripe::SearchResultObject) } def self.search_auto_paging_each(params = {}, opts = {}, &blk); end # Updates the specified charge by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(charge: String, params: T.any(::Stripe::ChargeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Charge) + params(charge: String, params: T.any(::Stripe::ChargeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Charge) } def self.update(charge, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/checkout/session.rbi b/rbi/stripe/resources/checkout/session.rbi index dc3dacd6..d90ce9e5 100644 --- a/rbi/stripe/resources/checkout/session.rbi +++ b/rbi/stripe/resources/checkout/session.rbi @@ -19,7 +19,7 @@ module Stripe # # Related guide: [Checkout quickstart](https://stripe.com/docs/checkout/quickstart) class Session < APIResource - class AdaptivePricing < Stripe::StripeObject + class AdaptivePricing < ::Stripe::StripeObject # If enabled, Adaptive Pricing is available on [eligible sessions](https://docs.stripe.com/payments/currencies/localize-prices/adaptive-pricing?payment-ui=stripe-hosted#restrictions). sig { returns(T::Boolean) } def enabled; end @@ -30,8 +30,8 @@ module Stripe @field_remappings = {} end end - class AfterExpiration < Stripe::StripeObject - class Recovery < Stripe::StripeObject + class AfterExpiration < ::Stripe::StripeObject + class Recovery < ::Stripe::StripeObject # Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults to `false` sig { returns(T::Boolean) } def allow_promotion_codes; end @@ -63,10 +63,10 @@ module Stripe @field_remappings = {} end end - class AutomaticTax < Stripe::StripeObject - class Liability < Stripe::StripeObject + class AutomaticTax < ::Stripe::StripeObject + class Liability < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -97,8 +97,8 @@ module Stripe @field_remappings = {} end end - class BrandingSettings < Stripe::StripeObject - class Icon < Stripe::StripeObject + class BrandingSettings < ::Stripe::StripeObject + class Icon < ::Stripe::StripeObject # The ID of a [File upload](https://stripe.com/docs/api/files) representing the icon. Purpose must be `business_icon`. Required if `type` is `file` and disallowed otherwise. sig { returns(T.nilable(String)) } def file; end @@ -115,7 +115,7 @@ module Stripe @field_remappings = {} end end - class Logo < Stripe::StripeObject + class Logo < ::Stripe::StripeObject # The ID of a [File upload](https://stripe.com/docs/api/files) representing the logo. Purpose must be `business_logo`. Required if `type` is `file` and disallowed otherwise. sig { returns(T.nilable(String)) } def file; end @@ -160,9 +160,9 @@ module Stripe @field_remappings = {} end end - class CollectedInformation < Stripe::StripeObject - class ShippingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class CollectedInformation < ::Stripe::StripeObject + class ShippingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -217,7 +217,7 @@ module Stripe @field_remappings = {} end end - class Consent < Stripe::StripeObject + class Consent < ::Stripe::StripeObject # If `opt_in`, the customer consents to receiving promotional communications # from the merchant about this Checkout Session. sig { returns(T.nilable(String)) } @@ -232,8 +232,8 @@ module Stripe @field_remappings = {} end end - class ConsentCollection < Stripe::StripeObject - class PaymentMethodReuseAgreement < Stripe::StripeObject + class ConsentCollection < ::Stripe::StripeObject + class PaymentMethodReuseAgreement < ::Stripe::StripeObject # Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's defaults will be used. # # When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI. @@ -264,7 +264,7 @@ module Stripe @field_remappings = {} end end - class CurrencyConversion < Stripe::StripeObject + class CurrencyConversion < ::Stripe::StripeObject # Total of all items in source currency before discounts or taxes are applied. sig { returns(Integer) } def amount_subtotal; end @@ -284,9 +284,9 @@ module Stripe @field_remappings = {} end end - class CustomField < Stripe::StripeObject - class Dropdown < Stripe::StripeObject - class Option < Stripe::StripeObject + class CustomField < ::Stripe::StripeObject + class Dropdown < ::Stripe::StripeObject + class Option < ::Stripe::StripeObject # The label for the option, displayed to the customer. Up to 100 characters. sig { returns(String) } def label; end @@ -316,7 +316,7 @@ module Stripe @field_remappings = {} end end - class Label < Stripe::StripeObject + class Label < ::Stripe::StripeObject # Custom text for the label, displayed to the customer. Up to 50 characters. sig { returns(T.nilable(String)) } def custom; end @@ -330,7 +330,7 @@ module Stripe @field_remappings = {} end end - class Numeric < Stripe::StripeObject + class Numeric < ::Stripe::StripeObject # The value that will pre-fill the field on the payment page. sig { returns(T.nilable(String)) } def default_value; end @@ -350,7 +350,7 @@ module Stripe @field_remappings = {} end end - class Text < Stripe::StripeObject + class Text < ::Stripe::StripeObject # The value that will pre-fill the field on the payment page. sig { returns(T.nilable(String)) } def default_value; end @@ -398,8 +398,8 @@ module Stripe @field_remappings = {} end end - class CustomText < Stripe::StripeObject - class AfterSubmit < Stripe::StripeObject + class CustomText < ::Stripe::StripeObject + class AfterSubmit < ::Stripe::StripeObject # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -410,7 +410,7 @@ module Stripe @field_remappings = {} end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -421,7 +421,7 @@ module Stripe @field_remappings = {} end end - class Submit < Stripe::StripeObject + class Submit < ::Stripe::StripeObject # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -432,7 +432,7 @@ module Stripe @field_remappings = {} end end - class TermsOfServiceAcceptance < Stripe::StripeObject + class TermsOfServiceAcceptance < ::Stripe::StripeObject # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -467,8 +467,8 @@ module Stripe @field_remappings = {} end end - class CustomerDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class CustomerDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -494,7 +494,7 @@ module Stripe @field_remappings = {} end end - class TaxId < Stripe::StripeObject + class TaxId < ::Stripe::StripeObject # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` sig { returns(String) } def type; end @@ -540,12 +540,12 @@ module Stripe @field_remappings = {} end end - class Discount < Stripe::StripeObject + class Discount < ::Stripe::StripeObject # Coupon attached to the Checkout Session. - sig { returns(T.nilable(T.any(String, Stripe::Coupon))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Coupon))) } def coupon; end # Promotion code attached to the Checkout Session. - sig { returns(T.nilable(T.any(String, Stripe::PromotionCode))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PromotionCode))) } def promotion_code; end def self.inner_class_types @inner_class_types = {} @@ -554,9 +554,9 @@ module Stripe @field_remappings = {} end end - class InvoiceCreation < Stripe::StripeObject - class InvoiceData < Stripe::StripeObject - class CustomField < Stripe::StripeObject + class InvoiceCreation < ::Stripe::StripeObject + class InvoiceData < ::Stripe::StripeObject + class CustomField < ::Stripe::StripeObject # The name of the custom field. sig { returns(String) } def name; end @@ -570,9 +570,9 @@ module Stripe @field_remappings = {} end end - class Issuer < Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -584,7 +584,7 @@ module Stripe @field_remappings = {} end end - class RenderingOptions < Stripe::StripeObject + class RenderingOptions < ::Stripe::StripeObject # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. sig { returns(T.nilable(String)) } def amount_tax_display; end @@ -599,7 +599,7 @@ module Stripe end end # The account tax IDs associated with the invoice. - sig { returns(T.nilable(T::Array[T.any(String, Stripe::TaxId)])) } + sig { returns(T.nilable(T::Array[T.any(String, ::Stripe::TaxId)])) } def account_tax_ids; end # Custom fields displayed on the invoice. sig { returns(T.nilable(T::Array[CustomField])) } @@ -643,8 +643,8 @@ module Stripe @field_remappings = {} end end - class NameCollection < Stripe::StripeObject - class Business < Stripe::StripeObject + class NameCollection < ::Stripe::StripeObject + class Business < ::Stripe::StripeObject # Indicates whether business name collection is enabled for the session sig { returns(T::Boolean) } def enabled; end @@ -658,7 +658,7 @@ module Stripe @field_remappings = {} end end - class Individual < Stripe::StripeObject + class Individual < ::Stripe::StripeObject # Indicates whether individual name collection is enabled for the session sig { returns(T::Boolean) } def enabled; end @@ -685,8 +685,8 @@ module Stripe @field_remappings = {} end end - class OptionalItem < Stripe::StripeObject - class AdjustableQuantity < Stripe::StripeObject + class OptionalItem < ::Stripe::StripeObject + class AdjustableQuantity < ::Stripe::StripeObject # Set to true if the quantity can be adjusted to any non-negative integer. sig { returns(T::Boolean) } def enabled; end @@ -719,7 +719,7 @@ module Stripe @field_remappings = {} end end - class PaymentMethodConfigurationDetails < Stripe::StripeObject + class PaymentMethodConfigurationDetails < ::Stripe::StripeObject # ID of the payment method configuration used. sig { returns(String) } def id; end @@ -733,9 +733,9 @@ module Stripe @field_remappings = {} end end - class PaymentMethodOptions < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class PaymentMethodOptions < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # A URL for custom mandate text sig { returns(T.nilable(String)) } def custom_mandate_url; end @@ -786,7 +786,7 @@ module Stripe @field_remappings = {} end end - class Affirm < Stripe::StripeObject + class Affirm < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -806,7 +806,7 @@ module Stripe @field_remappings = {} end end - class AfterpayClearpay < Stripe::StripeObject + class AfterpayClearpay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -826,7 +826,7 @@ module Stripe @field_remappings = {} end end - class Alipay < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -843,7 +843,7 @@ module Stripe @field_remappings = {} end end - class Alma < Stripe::StripeObject + class Alma < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -854,7 +854,7 @@ module Stripe @field_remappings = {} end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -874,7 +874,7 @@ module Stripe @field_remappings = {} end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -894,8 +894,8 @@ module Stripe @field_remappings = {} end end - class BacsDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -928,7 +928,7 @@ module Stripe @field_remappings = {} end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -945,7 +945,7 @@ module Stripe @field_remappings = {} end end - class Billie < Stripe::StripeObject + class Billie < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -956,7 +956,7 @@ module Stripe @field_remappings = {} end end - class Boleto < Stripe::StripeObject + class Boleto < ::Stripe::StripeObject # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto voucher will expire on Wednesday at 23:59 America/Sao_Paulo time. sig { returns(Integer) } def expires_after_days; end @@ -976,8 +976,8 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject - class Installments < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Installments < ::Stripe::StripeObject # Indicates if installments are enabled sig { returns(T.nilable(T::Boolean)) } def enabled; end @@ -988,7 +988,7 @@ module Stripe @field_remappings = {} end end - class Restrictions < Stripe::StripeObject + class Restrictions < ::Stripe::StripeObject # Specify the card brands to block in the Checkout Session. If a customer enters or selects a card belonging to a blocked brand, they can't complete the Session. sig { returns(T.nilable(T::Array[String])) } def brands_blocked; end @@ -1045,7 +1045,7 @@ module Stripe @field_remappings = {} end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1065,9 +1065,9 @@ module Stripe @field_remappings = {} end end - class CustomerBalance < Stripe::StripeObject - class BankTransfer < Stripe::StripeObject - class EuBankTransfer < Stripe::StripeObject + class CustomerBalance < ::Stripe::StripeObject + class BankTransfer < ::Stripe::StripeObject + class EuBankTransfer < ::Stripe::StripeObject # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -1118,7 +1118,7 @@ module Stripe @field_remappings = {} end end - class Eps < Stripe::StripeObject + class Eps < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1135,7 +1135,7 @@ module Stripe @field_remappings = {} end end - class Fpx < Stripe::StripeObject + class Fpx < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1152,7 +1152,7 @@ module Stripe @field_remappings = {} end end - class Giropay < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1169,7 +1169,7 @@ module Stripe @field_remappings = {} end end - class Grabpay < Stripe::StripeObject + class Grabpay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1186,7 +1186,7 @@ module Stripe @field_remappings = {} end end - class Ideal < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1203,7 +1203,7 @@ module Stripe @field_remappings = {} end end - class KakaoPay < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1223,7 +1223,7 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1243,7 +1243,7 @@ module Stripe @field_remappings = {} end end - class Konbini < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject # The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. sig { returns(T.nilable(Integer)) } def expires_after_days; end @@ -1263,7 +1263,7 @@ module Stripe @field_remappings = {} end end - class KrCard < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1283,7 +1283,7 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1303,7 +1303,7 @@ module Stripe @field_remappings = {} end end - class Mobilepay < Stripe::StripeObject + class Mobilepay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1323,7 +1323,7 @@ module Stripe @field_remappings = {} end end - class Multibanco < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1340,7 +1340,7 @@ module Stripe @field_remappings = {} end end - class NaverPay < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1360,7 +1360,7 @@ module Stripe @field_remappings = {} end end - class Oxxo < Stripe::StripeObject + class Oxxo < ::Stripe::StripeObject # The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. sig { returns(Integer) } def expires_after_days; end @@ -1380,7 +1380,7 @@ module Stripe @field_remappings = {} end end - class P24 < Stripe::StripeObject + class P24 < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1397,7 +1397,7 @@ module Stripe @field_remappings = {} end end - class Payco < Stripe::StripeObject + class Payco < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1408,7 +1408,7 @@ module Stripe @field_remappings = {} end end - class Paynow < Stripe::StripeObject + class Paynow < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1425,7 +1425,7 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1451,7 +1451,7 @@ module Stripe @field_remappings = {} end end - class Pix < Stripe::StripeObject + class Pix < ::Stripe::StripeObject # Determines if the amount includes the IOF tax. sig { returns(T.nilable(String)) } def amount_includes_iof; end @@ -1474,7 +1474,7 @@ module Stripe @field_remappings = {} end end - class RevolutPay < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1494,7 +1494,7 @@ module Stripe @field_remappings = {} end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1505,7 +1505,7 @@ module Stripe @field_remappings = {} end end - class Satispay < Stripe::StripeObject + class Satispay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1516,8 +1516,8 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -1550,7 +1550,7 @@ module Stripe @field_remappings = {} end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1567,7 +1567,7 @@ module Stripe @field_remappings = {} end end - class Swish < Stripe::StripeObject + class Swish < ::Stripe::StripeObject # The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent. sig { returns(T.nilable(String)) } def reference; end @@ -1578,9 +1578,26 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject - class FinancialConnections < Stripe::StripeObject - class Filters < Stripe::StripeObject + class Twint < ::Stripe::StripeObject + # Indicates that you intend to make future payments with this PaymentIntent's payment method. + # + # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + # + # If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + # + # When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](/strong-customer-authentication). + sig { returns(T.nilable(String)) } + def setup_future_usage; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class UsBankAccount < ::Stripe::StripeObject + class FinancialConnections < ::Stripe::StripeObject + class Filters < ::Stripe::StripeObject # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -1752,6 +1769,9 @@ module Stripe # Attribute for field swish sig { returns(T.nilable(Swish)) } def swish; end + # Attribute for field twint + sig { returns(T.nilable(Twint)) } + def twint; end # Attribute for field us_bank_account sig { returns(T.nilable(UsBankAccount)) } def us_bank_account; end @@ -1796,6 +1816,7 @@ module Stripe sepa_debit: SepaDebit, sofort: Sofort, swish: Swish, + twint: Twint, us_bank_account: UsBankAccount, } end @@ -1803,7 +1824,7 @@ module Stripe @field_remappings = {} end end - class Permissions < Stripe::StripeObject + class Permissions < ::Stripe::StripeObject # Determines which entity is allowed to update the shipping details. # # Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details. @@ -1818,7 +1839,7 @@ module Stripe @field_remappings = {} end end - class PhoneNumberCollection < Stripe::StripeObject + class PhoneNumberCollection < ::Stripe::StripeObject # Indicates whether phone number collection is enabled for the session sig { returns(T::Boolean) } def enabled; end @@ -1829,7 +1850,7 @@ module Stripe @field_remappings = {} end end - class PresentmentDetails < Stripe::StripeObject + class PresentmentDetails < ::Stripe::StripeObject # Amount intended to be collected by this payment, denominated in `presentment_currency`. sig { returns(Integer) } def presentment_amount; end @@ -1843,7 +1864,7 @@ module Stripe @field_remappings = {} end end - class SavedPaymentMethodOptions < Stripe::StripeObject + class SavedPaymentMethodOptions < ::Stripe::StripeObject # Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with ’allow_redisplay: ‘always’ are shown in Checkout. sig { returns(T.nilable(T::Array[String])) } def allow_redisplay_filters; end @@ -1860,7 +1881,7 @@ module Stripe @field_remappings = {} end end - class ShippingAddressCollection < Stripe::StripeObject + class ShippingAddressCollection < ::Stripe::StripeObject # An array of two-letter ISO country codes representing which countries Checkout should provide as options for # shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SY, UM, VI`. sig { returns(T::Array[String]) } @@ -1872,15 +1893,15 @@ module Stripe @field_remappings = {} end end - class ShippingCost < Stripe::StripeObject - class Tax < Stripe::StripeObject + class ShippingCost < ::Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. sig { returns(Integer) } def amount; end # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # # Related guide: [Tax rates](/billing/taxes/tax-rates) - sig { returns(Stripe::TaxRate) } + sig { returns(::Stripe::TaxRate) } def rate; end # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. sig { returns(T.nilable(String)) } @@ -1905,7 +1926,7 @@ module Stripe sig { returns(Integer) } def amount_total; end # The ID of the ShippingRate for this order. - sig { returns(T.nilable(T.any(String, Stripe::ShippingRate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::ShippingRate))) } def shipping_rate; end # The taxes applied to the shipping rate. sig { returns(T.nilable(T::Array[Tax])) } @@ -1917,12 +1938,12 @@ module Stripe @field_remappings = {} end end - class ShippingOption < Stripe::StripeObject + class ShippingOption < ::Stripe::StripeObject # A non-negative integer in cents representing how much to charge. sig { returns(Integer) } def shipping_amount; end # The shipping rate. - sig { returns(T.any(String, Stripe::ShippingRate)) } + sig { returns(T.any(String, ::Stripe::ShippingRate)) } def shipping_rate; end def self.inner_class_types @inner_class_types = {} @@ -1931,7 +1952,7 @@ module Stripe @field_remappings = {} end end - class TaxIdCollection < Stripe::StripeObject + class TaxIdCollection < ::Stripe::StripeObject # Indicates whether tax ID collection is enabled for the session sig { returns(T::Boolean) } def enabled; end @@ -1945,9 +1966,9 @@ module Stripe @field_remappings = {} end end - class TotalDetails < Stripe::StripeObject - class Breakdown < Stripe::StripeObject - class Discount < Stripe::StripeObject + class TotalDetails < ::Stripe::StripeObject + class Breakdown < ::Stripe::StripeObject + class Discount < ::Stripe::StripeObject # The amount discounted. sig { returns(Integer) } def amount; end @@ -1955,7 +1976,7 @@ module Stripe # It contains information about when the discount began, when it will end, and what it is applied to. # # Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts) - sig { returns(Stripe::Discount) } + sig { returns(::Stripe::Discount) } def discount; end def self.inner_class_types @inner_class_types = {} @@ -1964,14 +1985,14 @@ module Stripe @field_remappings = {} end end - class Tax < Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. sig { returns(Integer) } def amount; end # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # # Related guide: [Tax rates](/billing/taxes/tax-rates) - sig { returns(Stripe::TaxRate) } + sig { returns(::Stripe::TaxRate) } def rate; end # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. sig { returns(T.nilable(String)) } @@ -2018,8 +2039,8 @@ module Stripe @field_remappings = {} end end - class WalletOptions < Stripe::StripeObject - class Link < Stripe::StripeObject + class WalletOptions < ::Stripe::StripeObject + class Link < ::Stripe::StripeObject # Describes whether Checkout should display Link. Defaults to `auto`. sig { returns(T.nilable(String)) } def display; end @@ -2105,7 +2126,7 @@ module Stripe # will create a new customer object based on information provided # during the payment flow unless an existing customer was provided when # the Session was created. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # Configure whether a Checkout Session creates a Customer when the Checkout Session completes. sig { returns(T.nilable(String)) } @@ -2133,13 +2154,13 @@ module Stripe sig { returns(String) } def id; end # ID of the invoice created by the Checkout Session, if it exists. - sig { returns(T.nilable(T.any(String, Stripe::Invoice))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Invoice))) } def invoice; end # Details on the state of invoice creation for the Checkout Session. sig { returns(T.nilable(InvoiceCreation)) } def invoice_creation; end # The line items purchased by the customer. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def line_items; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -2166,10 +2187,10 @@ module Stripe sig { returns(T.nilable(String)) } def origin_context; end # The ID of the PaymentIntent for Checkout Sessions in `payment` mode. You can't confirm or cancel the PaymentIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead. - sig { returns(T.nilable(T.any(String, Stripe::PaymentIntent))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntent))) } def payment_intent; end # The ID of the Payment Link that created this Session. - sig { returns(T.nilable(T.any(String, Stripe::PaymentLink))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentLink))) } def payment_link; end # Configure whether a Checkout Session should collect a payment method. Defaults to `always`. sig { returns(T.nilable(String)) } @@ -2212,7 +2233,7 @@ module Stripe sig { returns(T.nilable(SavedPaymentMethodOptions)) } def saved_payment_method_options; end # The ID of the SetupIntent for Checkout Sessions in `setup` mode. You can't confirm or cancel the SetupIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://stripe.com/docs/api/checkout/sessions/expire) instead. - sig { returns(T.nilable(T.any(String, Stripe::SetupIntent))) } + sig { returns(T.nilable(T.any(String, ::Stripe::SetupIntent))) } def setup_intent; end # When set, provides configuration for Checkout to collect a shipping address from a customer. sig { returns(T.nilable(ShippingAddressCollection)) } @@ -2232,7 +2253,7 @@ module Stripe sig { returns(T.nilable(String)) } def submit_type; end # The ID of the [Subscription](https://stripe.com/docs/api/subscriptions) for Checkout Sessions in `subscription` mode. - sig { returns(T.nilable(T.any(String, Stripe::Subscription))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Subscription))) } def subscription; end # The URL the customer will be directed to after the payment or # subscription creation is successful. @@ -2256,7 +2277,7 @@ module Stripe def wallet_options; end # Creates a Checkout Session object. sig { - params(params: T.any(::Stripe::Checkout::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session) + params(params: T.any(::Stripe::Checkout::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Checkout::Session) } def self.create(params = {}, opts = {}); end @@ -2264,7 +2285,7 @@ module Stripe # # After it expires, a customer can't complete a Checkout Session and customers loading the Checkout Session see a message saying the Checkout Session is expired. sig { - params(params: T.any(::Stripe::Checkout::SessionExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session) + params(params: T.any(::Stripe::Checkout::SessionExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Checkout::Session) } def expire(params = {}, opts = {}); end @@ -2272,25 +2293,25 @@ module Stripe # # After it expires, a customer can't complete a Checkout Session and customers loading the Checkout Session see a message saying the Checkout Session is expired. sig { - params(session: String, params: T.any(::Stripe::Checkout::SessionExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session) + params(session: String, params: T.any(::Stripe::Checkout::SessionExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Checkout::Session) } def self.expire(session, params = {}, opts = {}); end # Returns a list of Checkout Sessions. sig { - params(params: T.any(::Stripe::Checkout::SessionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Checkout::SessionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # When retrieving a Checkout Session, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. sig { - params(params: T.any(::Stripe::Checkout::SessionListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Checkout::SessionListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list_line_items(params = {}, opts = {}); end # When retrieving a Checkout Session, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. sig { - params(session: String, params: T.any(::Stripe::Checkout::SessionListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(session: String, params: T.any(::Stripe::Checkout::SessionListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list_line_items(session, params = {}, opts = {}); end @@ -2298,7 +2319,7 @@ module Stripe # # Related guide: [Dynamically update Checkout](https://docs.stripe.com/payments/checkout/dynamic-updates) sig { - params(session: String, params: T.any(::Stripe::Checkout::SessionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session) + params(session: String, params: T.any(::Stripe::Checkout::SessionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Checkout::Session) } def self.update(session, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/climate/order.rbi b/rbi/stripe/resources/climate/order.rbi index e4c557e6..905a2bb0 100644 --- a/rbi/stripe/resources/climate/order.rbi +++ b/rbi/stripe/resources/climate/order.rbi @@ -7,7 +7,7 @@ module Stripe # Orders represent your intent to purchase a particular Climate product. When you create an order, the # payment is deducted from your merchant balance. class Order < APIResource - class Beneficiary < Stripe::StripeObject + class Beneficiary < ::Stripe::StripeObject # Publicly displayable name for the end beneficiary of carbon removal. sig { returns(String) } def public_name; end @@ -18,8 +18,8 @@ module Stripe @field_remappings = {} end end - class DeliveryDetail < Stripe::StripeObject - class Location < Stripe::StripeObject + class DeliveryDetail < ::Stripe::StripeObject + class Location < ::Stripe::StripeObject # The city where the supplier is located. sig { returns(T.nilable(String)) } def city; end @@ -55,7 +55,7 @@ module Stripe sig { returns(T.nilable(String)) } def registry_url; end # A supplier of carbon removal. - sig { returns(Stripe::Climate::Supplier) } + sig { returns(::Stripe::Climate::Supplier) } def supplier; end def self.inner_class_types @inner_class_types = {location: Location} @@ -122,7 +122,7 @@ module Stripe sig { returns(String) } def object; end # Unique ID for the Climate `Product` this order is purchasing. - sig { returns(T.any(String, Stripe::Climate::Product)) } + sig { returns(T.any(String, ::Stripe::Climate::Product)) } def product; end # Time at which the order's product was substituted for a different product. Measured in seconds since the Unix epoch. sig { returns(T.nilable(Integer)) } @@ -135,7 +135,7 @@ module Stripe # might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe # provides 90 days advance notice and refunds the amount_total. sig { - params(params: T.any(::Stripe::Climate::OrderCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Climate::Order) + params(params: T.any(::Stripe::Climate::OrderCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Climate::Order) } def cancel(params = {}, opts = {}); end @@ -144,27 +144,27 @@ module Stripe # might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe # provides 90 days advance notice and refunds the amount_total. sig { - params(order: String, params: T.any(::Stripe::Climate::OrderCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Climate::Order) + params(order: String, params: T.any(::Stripe::Climate::OrderCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Climate::Order) } def self.cancel(order, params = {}, opts = {}); end # Creates a Climate order object for a given Climate product. The order will be processed immediately # after creation and payment will be deducted your Stripe balance. sig { - params(params: T.any(::Stripe::Climate::OrderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Climate::Order) + params(params: T.any(::Stripe::Climate::OrderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Climate::Order) } def self.create(params = {}, opts = {}); end # Lists all Climate order objects. The orders are returned sorted by creation date, with the # most recently created orders appearing first. sig { - params(params: T.any(::Stripe::Climate::OrderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Climate::OrderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the specified order by setting the values of the parameters passed. sig { - params(order: String, params: T.any(::Stripe::Climate::OrderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Climate::Order) + params(order: String, params: T.any(::Stripe::Climate::OrderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Climate::Order) } def self.update(order, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/climate/product.rbi b/rbi/stripe/resources/climate/product.rbi index 35157774..e2186342 100644 --- a/rbi/stripe/resources/climate/product.rbi +++ b/rbi/stripe/resources/climate/product.rbi @@ -7,7 +7,7 @@ module Stripe # A Climate product represents a type of carbon removal unit available for reservation. # You can retrieve it to see the current price and availability. class Product < APIResource - class CurrentPricesPerMetricTon < Stripe::StripeObject + class CurrentPricesPerMetricTon < ::Stripe::StripeObject # Fees for one metric ton of carbon removal in the currency's smallest unit. sig { returns(Integer) } def amount_fees; end @@ -51,11 +51,11 @@ module Stripe sig { returns(String) } def object; end # The carbon removal suppliers that fulfill orders for this Climate product. - sig { returns(T::Array[Stripe::Climate::Supplier]) } + sig { returns(T::Array[::Stripe::Climate::Supplier]) } def suppliers; end # Lists all available Climate product objects. sig { - params(params: T.any(::Stripe::Climate::ProductListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Climate::ProductListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/climate/supplier.rbi b/rbi/stripe/resources/climate/supplier.rbi index eada09a2..b7341ebd 100644 --- a/rbi/stripe/resources/climate/supplier.rbi +++ b/rbi/stripe/resources/climate/supplier.rbi @@ -6,7 +6,7 @@ module Stripe module Climate # A supplier of carbon removal. class Supplier < APIResource - class Location < Stripe::StripeObject + class Location < ::Stripe::StripeObject # The city where the supplier is located. sig { returns(T.nilable(String)) } def city; end @@ -52,7 +52,7 @@ module Stripe def removal_pathway; end # Lists all available Climate supplier objects. sig { - params(params: T.any(::Stripe::Climate::SupplierListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Climate::SupplierListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/confirmation_token.rbi b/rbi/stripe/resources/confirmation_token.rbi index 00bc6fd4..07fc320d 100644 --- a/rbi/stripe/resources/confirmation_token.rbi +++ b/rbi/stripe/resources/confirmation_token.rbi @@ -11,9 +11,9 @@ module Stripe # - [Finalize payments on the server](https://stripe.com/docs/payments/finalize-payments-on-the-server) # - [Build two-step confirmation](https://stripe.com/docs/payments/build-a-two-step-confirmation). class ConfirmationToken < APIResource - class MandateData < Stripe::StripeObject - class CustomerAcceptance < Stripe::StripeObject - class Online < Stripe::StripeObject + class MandateData < ::Stripe::StripeObject + class CustomerAcceptance < ::Stripe::StripeObject + class Online < ::Stripe::StripeObject # The IP address from which the Mandate was accepted by the customer. sig { returns(T.nilable(String)) } def ip_address; end @@ -50,10 +50,10 @@ module Stripe @field_remappings = {} end end - class PaymentMethodOptions < Stripe::StripeObject - class Card < Stripe::StripeObject - class Installments < Stripe::StripeObject - class Plan < Stripe::StripeObject + class PaymentMethodOptions < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Installments < ::Stripe::StripeObject + class Plan < ::Stripe::StripeObject # For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card. sig { returns(T.nilable(Integer)) } def count; end @@ -104,8 +104,8 @@ module Stripe @field_remappings = {} end end - class PaymentMethodPreview < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject + class PaymentMethodPreview < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject # Name of the bank associated with the bank account. sig { returns(T.nilable(String)) } def bank_name; end @@ -128,7 +128,7 @@ module Stripe @field_remappings = {} end end - class Affirm < Stripe::StripeObject + class Affirm < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -136,7 +136,7 @@ module Stripe @field_remappings = {} end end - class AfterpayClearpay < Stripe::StripeObject + class AfterpayClearpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -144,7 +144,7 @@ module Stripe @field_remappings = {} end end - class Alipay < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -152,7 +152,7 @@ module Stripe @field_remappings = {} end end - class Alma < Stripe::StripeObject + class Alma < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -160,7 +160,7 @@ module Stripe @field_remappings = {} end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -168,7 +168,7 @@ module Stripe @field_remappings = {} end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject # Six-digit number identifying bank and branch associated with this bank account. sig { returns(T.nilable(String)) } def bsb_number; end @@ -185,7 +185,7 @@ module Stripe @field_remappings = {} end end - class BacsDebit < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. sig { returns(T.nilable(String)) } def fingerprint; end @@ -202,7 +202,7 @@ module Stripe @field_remappings = {} end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -210,7 +210,7 @@ module Stripe @field_remappings = {} end end - class Billie < Stripe::StripeObject + class Billie < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -218,8 +218,8 @@ module Stripe @field_remappings = {} end end - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -267,7 +267,7 @@ module Stripe @field_remappings = {} end end - class Blik < Stripe::StripeObject + class Blik < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -275,7 +275,7 @@ module Stripe @field_remappings = {} end end - class Boleto < Stripe::StripeObject + class Boleto < ::Stripe::StripeObject # Uniquely identifies the customer tax id (CNPJ or CPF) sig { returns(String) } def tax_id; end @@ -286,8 +286,8 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject - class Checks < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Checks < ::Stripe::StripeObject # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. sig { returns(T.nilable(String)) } def address_line1_check; end @@ -304,10 +304,10 @@ module Stripe @field_remappings = {} end end - class GeneratedFrom < Stripe::StripeObject - class PaymentMethodDetails < Stripe::StripeObject - class CardPresent < Stripe::StripeObject - class Offline < Stripe::StripeObject + class GeneratedFrom < ::Stripe::StripeObject + class PaymentMethodDetails < ::Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject + class Offline < ::Stripe::StripeObject # Time at which the payment was collected while offline sig { returns(T.nilable(Integer)) } def stored_at; end @@ -321,7 +321,7 @@ module Stripe @field_remappings = {} end end - class Receipt < Stripe::StripeObject + class Receipt < ::Stripe::StripeObject # The type of account being debited or credited sig { returns(T.nilable(String)) } def account_type; end @@ -356,7 +356,7 @@ module Stripe @field_remappings = {} end end - class Wallet < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. sig { returns(String) } def type; end @@ -471,7 +471,7 @@ module Stripe sig { returns(T.nilable(PaymentMethodDetails)) } def payment_method_details; end # The ID of the SetupAttempt that generated this PaymentMethod, if any. - sig { returns(T.nilable(T.any(String, Stripe::SetupAttempt))) } + sig { returns(T.nilable(T.any(String, ::Stripe::SetupAttempt))) } def setup_attempt; end def self.inner_class_types @inner_class_types = {payment_method_details: PaymentMethodDetails} @@ -480,7 +480,7 @@ module Stripe @field_remappings = {} end end - class Networks < Stripe::StripeObject + class Networks < ::Stripe::StripeObject # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). sig { returns(T::Array[String]) } def available; end @@ -494,7 +494,7 @@ module Stripe @field_remappings = {} end end - class ThreeDSecureUsage < Stripe::StripeObject + class ThreeDSecureUsage < ::Stripe::StripeObject # Whether 3D Secure is supported on this card. sig { returns(T::Boolean) } def supported; end @@ -505,8 +505,8 @@ module Stripe @field_remappings = {} end end - class Wallet < Stripe::StripeObject - class AmexExpressCheckout < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject + class AmexExpressCheckout < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -514,7 +514,7 @@ module Stripe @field_remappings = {} end end - class ApplePay < Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -522,7 +522,7 @@ module Stripe @field_remappings = {} end end - class GooglePay < Stripe::StripeObject + class GooglePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -530,7 +530,7 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -538,8 +538,8 @@ module Stripe @field_remappings = {} end end - class Masterpass < Stripe::StripeObject - class BillingAddress < Stripe::StripeObject + class Masterpass < ::Stripe::StripeObject + class BillingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -565,7 +565,7 @@ module Stripe @field_remappings = {} end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -613,7 +613,7 @@ module Stripe @field_remappings = {} end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -621,8 +621,8 @@ module Stripe @field_remappings = {} end end - class VisaCheckout < Stripe::StripeObject - class BillingAddress < Stripe::StripeObject + class VisaCheckout < ::Stripe::StripeObject + class BillingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -648,7 +648,7 @@ module Stripe @field_remappings = {} end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -804,8 +804,8 @@ module Stripe @field_remappings = {} end end - class CardPresent < Stripe::StripeObject - class Networks < Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject + class Networks < ::Stripe::StripeObject # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). sig { returns(T::Array[String]) } def available; end @@ -819,7 +819,7 @@ module Stripe @field_remappings = {} end end - class Offline < Stripe::StripeObject + class Offline < ::Stripe::StripeObject # Time at which the payment was collected while offline sig { returns(T.nilable(Integer)) } def stored_at; end @@ -833,7 +833,7 @@ module Stripe @field_remappings = {} end end - class Wallet < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. sig { returns(String) } def type; end @@ -904,7 +904,7 @@ module Stripe @field_remappings = {} end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject # A unique and immutable identifier assigned by Cash App to every buyer. sig { returns(T.nilable(String)) } def buyer_id; end @@ -918,7 +918,7 @@ module Stripe @field_remappings = {} end end - class Crypto < Stripe::StripeObject + class Crypto < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -926,7 +926,7 @@ module Stripe @field_remappings = {} end end - class CustomerBalance < Stripe::StripeObject + class CustomerBalance < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -934,7 +934,7 @@ module Stripe @field_remappings = {} end end - class Eps < Stripe::StripeObject + class Eps < ::Stripe::StripeObject # The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. sig { returns(T.nilable(String)) } def bank; end @@ -945,7 +945,7 @@ module Stripe @field_remappings = {} end end - class Fpx < Stripe::StripeObject + class Fpx < ::Stripe::StripeObject # Account holder type, if provided. Can be one of `individual` or `company`. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -959,7 +959,7 @@ module Stripe @field_remappings = {} end end - class Giropay < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -967,7 +967,7 @@ module Stripe @field_remappings = {} end end - class Grabpay < Stripe::StripeObject + class Grabpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -975,7 +975,7 @@ module Stripe @field_remappings = {} end end - class Ideal < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject # The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. sig { returns(T.nilable(String)) } def bank; end @@ -989,8 +989,8 @@ module Stripe @field_remappings = {} end end - class InteracPresent < Stripe::StripeObject - class Networks < Stripe::StripeObject + class InteracPresent < ::Stripe::StripeObject + class Networks < ::Stripe::StripeObject # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). sig { returns(T::Array[String]) } def available; end @@ -1055,7 +1055,7 @@ module Stripe @field_remappings = {} end end - class KakaoPay < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1063,8 +1063,8 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject - class Dob < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject + class Dob < ::Stripe::StripeObject # The day of birth, between 1 and 31. sig { returns(T.nilable(Integer)) } def day; end @@ -1091,7 +1091,7 @@ module Stripe @field_remappings = {} end end - class Konbini < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1099,7 +1099,7 @@ module Stripe @field_remappings = {} end end - class KrCard < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject # The local credit or debit card brand. sig { returns(T.nilable(String)) } def brand; end @@ -1113,7 +1113,7 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject # Account owner's email address. sig { returns(T.nilable(String)) } def email; end @@ -1127,7 +1127,7 @@ module Stripe @field_remappings = {} end end - class MbWay < Stripe::StripeObject + class MbWay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1135,7 +1135,7 @@ module Stripe @field_remappings = {} end end - class Mobilepay < Stripe::StripeObject + class Mobilepay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1143,7 +1143,7 @@ module Stripe @field_remappings = {} end end - class Multibanco < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1151,7 +1151,7 @@ module Stripe @field_remappings = {} end end - class NaverPay < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject # Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same. sig { returns(T.nilable(String)) } def buyer_id; end @@ -1165,7 +1165,7 @@ module Stripe @field_remappings = {} end end - class NzBankAccount < Stripe::StripeObject + class NzBankAccount < ::Stripe::StripeObject # The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -1191,7 +1191,7 @@ module Stripe @field_remappings = {} end end - class Oxxo < Stripe::StripeObject + class Oxxo < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1199,7 +1199,7 @@ module Stripe @field_remappings = {} end end - class P24 < Stripe::StripeObject + class P24 < ::Stripe::StripeObject # The customer's bank, if provided. sig { returns(T.nilable(String)) } def bank; end @@ -1210,7 +1210,7 @@ module Stripe @field_remappings = {} end end - class PayByBank < Stripe::StripeObject + class PayByBank < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1218,7 +1218,7 @@ module Stripe @field_remappings = {} end end - class Payco < Stripe::StripeObject + class Payco < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1226,7 +1226,7 @@ module Stripe @field_remappings = {} end end - class Paynow < Stripe::StripeObject + class Paynow < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1234,7 +1234,7 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. sig { returns(T.nilable(String)) } def country; end @@ -1252,7 +1252,7 @@ module Stripe @field_remappings = {} end end - class Pix < Stripe::StripeObject + class Pix < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1260,7 +1260,7 @@ module Stripe @field_remappings = {} end end - class Promptpay < Stripe::StripeObject + class Promptpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1268,7 +1268,7 @@ module Stripe @field_remappings = {} end end - class RevolutPay < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1276,7 +1276,7 @@ module Stripe @field_remappings = {} end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1284,7 +1284,7 @@ module Stripe @field_remappings = {} end end - class Satispay < Stripe::StripeObject + class Satispay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1292,13 +1292,13 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject - class GeneratedFrom < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject + class GeneratedFrom < ::Stripe::StripeObject # The ID of the Charge that generated this PaymentMethod, if any. - sig { returns(T.nilable(T.any(String, Stripe::Charge))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Charge))) } def charge; end # The ID of the SetupAttempt that generated this PaymentMethod, if any. - sig { returns(T.nilable(T.any(String, Stripe::SetupAttempt))) } + sig { returns(T.nilable(T.any(String, ::Stripe::SetupAttempt))) } def setup_attempt; end def self.inner_class_types @inner_class_types = {} @@ -1332,7 +1332,7 @@ module Stripe @field_remappings = {} end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject # Two-letter ISO code representing the country the bank account is located in. sig { returns(T.nilable(String)) } def country; end @@ -1343,7 +1343,7 @@ module Stripe @field_remappings = {} end end - class Swish < Stripe::StripeObject + class Swish < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1351,7 +1351,7 @@ module Stripe @field_remappings = {} end end - class Twint < Stripe::StripeObject + class Twint < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1359,8 +1359,8 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject - class Networks < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject + class Networks < ::Stripe::StripeObject # The preferred network. sig { returns(T.nilable(String)) } def preferred; end @@ -1374,8 +1374,8 @@ module Stripe @field_remappings = {} end end - class StatusDetails < Stripe::StripeObject - class Blocked < Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject + class Blocked < ::Stripe::StripeObject # The ACH network code that resulted in this block. sig { returns(T.nilable(String)) } def network_code; end @@ -1433,7 +1433,7 @@ module Stripe @field_remappings = {} end end - class WechatPay < Stripe::StripeObject + class WechatPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1441,7 +1441,7 @@ module Stripe @field_remappings = {} end end - class Zip < Stripe::StripeObject + class Zip < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1504,7 +1504,7 @@ module Stripe sig { returns(T.nilable(Crypto)) } def crypto; end # The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # Attribute for field customer_balance sig { returns(T.nilable(CustomerBalance)) } @@ -1674,8 +1674,8 @@ module Stripe @field_remappings = {} end end - class Shipping < Stripe::StripeObject - class Address < Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end diff --git a/rbi/stripe/resources/connect_collection_transfer.rbi b/rbi/stripe/resources/connect_collection_transfer.rbi index 60aa7217..5a9639f2 100644 --- a/rbi/stripe/resources/connect_collection_transfer.rbi +++ b/rbi/stripe/resources/connect_collection_transfer.rbi @@ -11,7 +11,7 @@ module Stripe sig { returns(String) } def currency; end # ID of the account that funds are being collected for. - sig { returns(T.any(String, Stripe::Account)) } + sig { returns(T.any(String, ::Stripe::Account)) } def destination; end # Unique identifier for the object. sig { returns(String) } diff --git a/rbi/stripe/resources/country_spec.rbi b/rbi/stripe/resources/country_spec.rbi index 190d07c3..b127b146 100644 --- a/rbi/stripe/resources/country_spec.rbi +++ b/rbi/stripe/resources/country_spec.rbi @@ -10,8 +10,8 @@ module Stripe # You can also view the information from this API call as [an online # guide](https://docs.stripe.com/docs/connect/required-verification-information). class CountrySpec < APIResource - class VerificationFields < Stripe::StripeObject - class Company < Stripe::StripeObject + class VerificationFields < ::Stripe::StripeObject + class Company < ::Stripe::StripeObject # Additional fields which are only required for some users. sig { returns(T::Array[String]) } def additional; end @@ -25,7 +25,7 @@ module Stripe @field_remappings = {} end end - class Individual < Stripe::StripeObject + class Individual < ::Stripe::StripeObject # Additional fields which are only required for some users. sig { returns(T::Array[String]) } def additional; end @@ -78,7 +78,7 @@ module Stripe def verification_fields; end # Lists all Country Spec objects available in the API. sig { - params(params: T.any(::Stripe::CountrySpecListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::CountrySpecListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/coupon.rbi b/rbi/stripe/resources/coupon.rbi index a1fd8cbb..bffad6a7 100644 --- a/rbi/stripe/resources/coupon.rbi +++ b/rbi/stripe/resources/coupon.rbi @@ -7,7 +7,7 @@ module Stripe # might want to apply to a customer. Coupons may be applied to [subscriptions](https://stripe.com/docs/api#subscriptions), [invoices](https://stripe.com/docs/api#invoices), # [checkout sessions](https://stripe.com/docs/api/checkout/sessions), [quotes](https://stripe.com/docs/api#quotes), and more. Coupons do not work with conventional one-off [charges](https://stripe.com/docs/api#create_charge) or [payment intents](https://stripe.com/docs/api/payment_intents). class Coupon < APIResource - class AppliesTo < Stripe::StripeObject + class AppliesTo < ::Stripe::StripeObject # A list of product IDs this coupon applies to sig { returns(T::Array[String]) } def products; end @@ -18,7 +18,7 @@ module Stripe @field_remappings = {} end end - class CurrencyOptions < Stripe::StripeObject + class CurrencyOptions < ::Stripe::StripeObject # Amount (in the `currency` specified) that will be taken off the subtotal of any invoices for this customer. sig { returns(Integer) } def amount_off; end @@ -87,31 +87,31 @@ module Stripe # # A coupon has either a percent_off or an amount_off and currency. If you set an amount_off, that amount will be subtracted from any invoice's subtotal. For example, an invoice with a subtotal of 100 will have a final total of 0 if a coupon with an amount_off of 200 is applied to it and an invoice with a subtotal of 300 will have a final total of 100 if a coupon with an amount_off of 200 is applied to it. sig { - params(params: T.any(::Stripe::CouponCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Coupon) + params(params: T.any(::Stripe::CouponCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Coupon) } def self.create(params = {}, opts = {}); end # You can delete coupons via the [coupon management](https://dashboard.stripe.com/coupons) page of the Stripe dashboard. However, deleting a coupon does not affect any customers who have already applied the coupon; it means that new customers can't redeem the coupon. You can also delete coupons via the API. sig { - params(coupon: String, params: T.any(::Stripe::CouponDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Coupon) + params(coupon: String, params: T.any(::Stripe::CouponDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Coupon) } def self.delete(coupon, params = {}, opts = {}); end # You can delete coupons via the [coupon management](https://dashboard.stripe.com/coupons) page of the Stripe dashboard. However, deleting a coupon does not affect any customers who have already applied the coupon; it means that new customers can't redeem the coupon. You can also delete coupons via the API. sig { - params(params: T.any(::Stripe::CouponDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Coupon) + params(params: T.any(::Stripe::CouponDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Coupon) } def delete(params = {}, opts = {}); end # Returns a list of your coupons. sig { - params(params: T.any(::Stripe::CouponListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::CouponListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the metadata of a coupon. Other coupon details (currency, duration, amount_off) are, by design, not editable. sig { - params(coupon: String, params: T.any(::Stripe::CouponUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Coupon) + params(coupon: String, params: T.any(::Stripe::CouponUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Coupon) } def self.update(coupon, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/credit_note.rbi b/rbi/stripe/resources/credit_note.rbi index efebbfed..e6b17460 100644 --- a/rbi/stripe/resources/credit_note.rbi +++ b/rbi/stripe/resources/credit_note.rbi @@ -7,12 +7,12 @@ module Stripe # # Related guide: [Credit notes](https://stripe.com/docs/billing/invoices/credit-notes) class CreditNote < APIResource - class DiscountAmount < Stripe::StripeObject + class DiscountAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the discount. sig { returns(Integer) } def amount; end # The discount that was applied to get this discount amount. - sig { returns(T.any(String, Stripe::Discount)) } + sig { returns(T.any(String, ::Stripe::Discount)) } def discount; end def self.inner_class_types @inner_class_types = {} @@ -21,15 +21,15 @@ module Stripe @field_remappings = {} end end - class PretaxCreditAmount < Stripe::StripeObject + class PretaxCreditAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the pretax credit amount. sig { returns(Integer) } def amount; end # The credit balance transaction that was applied to get this pretax credit amount. - sig { returns(T.nilable(T.any(String, Stripe::Billing::CreditBalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Billing::CreditBalanceTransaction))) } def credit_balance_transaction; end # The discount that was applied to get this pretax credit amount. - sig { returns(T.nilable(T.any(String, Stripe::Discount))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Discount))) } def discount; end # Type of the pretax credit amount referenced. sig { returns(String) } @@ -41,29 +41,49 @@ module Stripe @field_remappings = {} end end - class Refund < Stripe::StripeObject + class Refund < ::Stripe::StripeObject + class PaymentRecordRefund < ::Stripe::StripeObject + # ID of the payment record. + sig { returns(String) } + def payment_record; end + # ID of the refund group. + sig { returns(String) } + def refund_group; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # Amount of the refund that applies to this credit note, in cents (or local equivalent). sig { returns(Integer) } def amount_refunded; end + # The PaymentRecord refund details associated with this credit note refund. + sig { returns(T.nilable(PaymentRecordRefund)) } + def payment_record_refund; end # ID of the refund. - sig { returns(T.any(String, Stripe::Refund)) } + sig { returns(T.any(String, ::Stripe::Refund)) } def refund; end + # Type of the refund, one of `refund` or `payment_record_refund`. + sig { returns(T.nilable(String)) } + def type; end def self.inner_class_types - @inner_class_types = {} + @inner_class_types = {payment_record_refund: PaymentRecordRefund} end def self.field_remappings @field_remappings = {} end end - class ShippingCost < Stripe::StripeObject - class Tax < Stripe::StripeObject + class ShippingCost < ::Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. sig { returns(Integer) } def amount; end # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # # Related guide: [Tax rates](/billing/taxes/tax-rates) - sig { returns(Stripe::TaxRate) } + sig { returns(::Stripe::TaxRate) } def rate; end # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. sig { returns(T.nilable(String)) } @@ -88,7 +108,7 @@ module Stripe sig { returns(Integer) } def amount_total; end # The ID of the ShippingRate for this invoice. - sig { returns(T.nilable(T.any(String, Stripe::ShippingRate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::ShippingRate))) } def shipping_rate; end # The taxes applied to the shipping rate. sig { returns(T.nilable(T::Array[Tax])) } @@ -100,8 +120,8 @@ module Stripe @field_remappings = {} end end - class TotalTax < Stripe::StripeObject - class TaxRateDetails < Stripe::StripeObject + class TotalTax < ::Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject # Attribute for field tax_rate sig { returns(String) } def tax_rate; end @@ -150,10 +170,10 @@ module Stripe sig { returns(String) } def currency; end # ID of the customer. - sig { returns(T.any(String, Stripe::Customer)) } + sig { returns(T.any(String, ::Stripe::Customer)) } def customer; end # Customer balance transaction related to this credit note. - sig { returns(T.nilable(T.any(String, Stripe::CustomerBalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::CustomerBalanceTransaction))) } def customer_balance_transaction; end # The integer amount in cents (or local equivalent) representing the total amount of discount that was credited. sig { returns(Integer) } @@ -168,10 +188,10 @@ module Stripe sig { returns(String) } def id; end # ID of the invoice. - sig { returns(T.any(String, Stripe::Invoice)) } + sig { returns(T.any(String, ::Stripe::Invoice)) } def invoice; end # Line items that make up the credit note - sig { returns(Stripe::ListObject) } + sig { returns(::Stripe::ListObject) } def lines; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -250,43 +270,43 @@ module Stripe # You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount, # post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation. sig { - params(params: T.any(::Stripe::CreditNoteCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote) + params(params: T.any(::Stripe::CreditNoteCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } def self.create(params = {}, opts = {}); end # Returns a list of credit notes. sig { - params(params: T.any(::Stripe::CreditNoteListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::CreditNoteListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # When retrieving a credit note preview, you'll get a lines property containing the first handful of those items. This URL you can retrieve the full (paginated) list of line items. sig { - params(params: T.any(::Stripe::CreditNoteListPreviewLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::CreditNoteListPreviewLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list_preview_line_items(params = {}, opts = {}); end # Get a preview of a credit note without creating it. sig { - params(params: T.any(::Stripe::CreditNotePreviewParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote) + params(params: T.any(::Stripe::CreditNotePreviewParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } def self.preview(params = {}, opts = {}); end # Updates an existing credit note. sig { - params(id: String, params: T.any(::Stripe::CreditNoteUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote) + params(id: String, params: T.any(::Stripe::CreditNoteUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } def self.update(id, params = {}, opts = {}); end # Marks a credit note as void. Learn more about [voiding credit notes](https://docs.stripe.com/docs/billing/invoices/credit-notes#voiding). sig { - params(params: T.any(::Stripe::CreditNoteVoidCreditNoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote) + params(params: T.any(::Stripe::CreditNoteVoidCreditNoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } def void_credit_note(params = {}, opts = {}); end # Marks a credit note as void. Learn more about [voiding credit notes](https://docs.stripe.com/docs/billing/invoices/credit-notes#voiding). sig { - params(id: String, params: T.any(::Stripe::CreditNoteVoidCreditNoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote) + params(id: String, params: T.any(::Stripe::CreditNoteVoidCreditNoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } def self.void_credit_note(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/credit_note_line_item.rbi b/rbi/stripe/resources/credit_note_line_item.rbi index 664dc05d..61c062f1 100644 --- a/rbi/stripe/resources/credit_note_line_item.rbi +++ b/rbi/stripe/resources/credit_note_line_item.rbi @@ -5,12 +5,12 @@ module Stripe # The credit note line item object class CreditNoteLineItem < StripeObject - class DiscountAmount < Stripe::StripeObject + class DiscountAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the discount. sig { returns(Integer) } def amount; end # The discount that was applied to get this discount amount. - sig { returns(T.any(String, Stripe::Discount)) } + sig { returns(T.any(String, ::Stripe::Discount)) } def discount; end def self.inner_class_types @inner_class_types = {} @@ -19,15 +19,15 @@ module Stripe @field_remappings = {} end end - class PretaxCreditAmount < Stripe::StripeObject + class PretaxCreditAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the pretax credit amount. sig { returns(Integer) } def amount; end # The credit balance transaction that was applied to get this pretax credit amount. - sig { returns(T.nilable(T.any(String, Stripe::Billing::CreditBalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Billing::CreditBalanceTransaction))) } def credit_balance_transaction; end # The discount that was applied to get this pretax credit amount. - sig { returns(T.nilable(T.any(String, Stripe::Discount))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Discount))) } def discount; end # Type of the pretax credit amount referenced. sig { returns(String) } @@ -39,8 +39,8 @@ module Stripe @field_remappings = {} end end - class Tax < Stripe::StripeObject - class TaxRateDetails < Stripe::StripeObject + class Tax < ::Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject # Attribute for field tax_rate sig { returns(String) } def tax_rate; end @@ -107,7 +107,7 @@ module Stripe sig { returns(T.nilable(Integer)) } def quantity; end # The tax rates which apply to the line item. - sig { returns(T::Array[Stripe::TaxRate]) } + sig { returns(T::Array[::Stripe::TaxRate]) } def tax_rates; end # The tax information of the line item. sig { returns(T.nilable(T::Array[Tax])) } diff --git a/rbi/stripe/resources/customer.rbi b/rbi/stripe/resources/customer.rbi index caabbbd6..abb6ad76 100644 --- a/rbi/stripe/resources/customer.rbi +++ b/rbi/stripe/resources/customer.rbi @@ -6,7 +6,7 @@ module Stripe # This object represents a customer of your business. Use it to [create recurring charges](https://stripe.com/docs/invoicing/customer), [save payment](https://stripe.com/docs/payments/save-during-payment) and contact information, # and track payments that belong to the same customer. class Customer < APIResource - class Address < Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -32,8 +32,8 @@ module Stripe @field_remappings = {} end end - class InvoiceSettings < Stripe::StripeObject - class CustomField < Stripe::StripeObject + class InvoiceSettings < ::Stripe::StripeObject + class CustomField < ::Stripe::StripeObject # The name of the custom field. sig { returns(String) } def name; end @@ -47,7 +47,7 @@ module Stripe @field_remappings = {} end end - class RenderingOptions < Stripe::StripeObject + class RenderingOptions < ::Stripe::StripeObject # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. sig { returns(T.nilable(String)) } def amount_tax_display; end @@ -65,7 +65,7 @@ module Stripe sig { returns(T.nilable(T::Array[CustomField])) } def custom_fields; end # ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def default_payment_method; end # Default footer to be displayed on invoices for this customer. sig { returns(T.nilable(String)) } @@ -80,8 +80,8 @@ module Stripe @field_remappings = {} end end - class Shipping < Stripe::StripeObject - class Address < Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -129,8 +129,8 @@ module Stripe @field_remappings = {} end end - class Tax < Stripe::StripeObject - class Location < Stripe::StripeObject + class Tax < ::Stripe::StripeObject + class Location < ::Stripe::StripeObject # The identified tax country of the customer. sig { returns(String) } def country; end @@ -156,6 +156,9 @@ module Stripe # The identified tax location of the customer. sig { returns(T.nilable(Location)) } def location; end + # The tax calculation provider used for location resolution. Defaults to `stripe` when not using a [third-party provider](/tax/third-party-apps). + sig { returns(String) } + def provider; end def self.inner_class_types @inner_class_types = {location: Location} end @@ -173,7 +176,7 @@ module Stripe sig { returns(T.nilable(String)) } def business_name; end # The current funds being held by Stripe on behalf of the customer. You can apply these funds towards payment intents when the source is "cash_balance". The `settings[reconciliation_mode]` field describes if these funds apply to these payment intents manually or automatically. - sig { returns(T.nilable(Stripe::CashBalance)) } + sig { returns(T.nilable(::Stripe::CashBalance)) } def cash_balance; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -185,7 +188,7 @@ module Stripe # # If you use payment methods created through the PaymentMethods API, see the [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method) field instead. sig { - returns(T.nilable(T.any(String, T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source)))) + returns(T.nilable(T.any(String, T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source)))) } def default_source; end # Tracks the most recent state change on any invoice belonging to the customer. Paying an invoice or marking it uncollectible via the API will set this field to false. An automatic payment failure or passing the `invoice.due_date` will set this field to `true`. @@ -199,7 +202,7 @@ module Stripe sig { returns(T.nilable(String)) } def description; end # Describes the current discount active on the customer, if there is one. - sig { returns(T.nilable(Stripe::Discount)) } + sig { returns(T.nilable(::Stripe::Discount)) } def discount; end # The customer's email address. sig { returns(T.nilable(String)) } @@ -244,10 +247,10 @@ module Stripe sig { returns(T.nilable(Shipping)) } def shipping; end # The customer's payment sources, if any. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def sources; end # The customer's current subscriptions, if any. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def subscriptions; end # Attribute for field tax sig { returns(T.nilable(Tax)) } @@ -256,17 +259,17 @@ module Stripe sig { returns(T.nilable(String)) } def tax_exempt; end # The customer's tax IDs. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def tax_ids; end # ID of the test clock that this customer belongs to. - sig { returns(T.nilable(T.any(String, Stripe::TestHelpers::TestClock))) } + sig { returns(T.nilable(T.any(String, ::Stripe::TestHelpers::TestClock))) } def test_clock; end # Always true for a deleted object sig { returns(T.nilable(T::Boolean)) } def deleted; end # Creates a new customer object. sig { - params(params: T.any(::Stripe::CustomerCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer) + params(params: T.any(::Stripe::CustomerCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Customer) } def self.create(params = {}, opts = {}); end @@ -274,7 +277,7 @@ module Stripe # funding instructions will be created. If funding instructions have already been created for a given customer, the same # funding instructions will be retrieved. In other words, we will return the same funding instructions each time. sig { - params(params: T.any(::Stripe::CustomerCreateFundingInstructionsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FundingInstructions) + params(params: T.any(::Stripe::CustomerCreateFundingInstructionsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FundingInstructions) } def create_funding_instructions(params = {}, opts = {}); end @@ -282,49 +285,49 @@ module Stripe # funding instructions will be created. If funding instructions have already been created for a given customer, the same # funding instructions will be retrieved. In other words, we will return the same funding instructions each time. sig { - params(customer: String, params: T.any(::Stripe::CustomerCreateFundingInstructionsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FundingInstructions) + params(customer: String, params: T.any(::Stripe::CustomerCreateFundingInstructionsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FundingInstructions) } def self.create_funding_instructions(customer, params = {}, opts = {}); end # Permanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer. sig { - params(customer: String, params: T.any(::Stripe::CustomerDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer) + params(customer: String, params: T.any(::Stripe::CustomerDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Customer) } def self.delete(customer, params = {}, opts = {}); end # Permanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer. sig { - params(params: T.any(::Stripe::CustomerDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer) + params(params: T.any(::Stripe::CustomerDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Customer) } def delete(params = {}, opts = {}); end # Removes the currently applied discount on a customer. sig { - params(params: T.any(::Stripe::CustomerDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Discount) + params(params: T.any(::Stripe::CustomerDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Discount) } def delete_discount(params = {}, opts = {}); end # Removes the currently applied discount on a customer. sig { - params(customer: String, params: T.any(::Stripe::CustomerDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Discount) + params(customer: String, params: T.any(::Stripe::CustomerDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Discount) } def self.delete_discount(customer, params = {}, opts = {}); end # Returns a list of your customers. The customers are returned sorted by creation date, with the most recent customers appearing first. sig { - params(params: T.any(::Stripe::CustomerListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::CustomerListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Returns a list of PaymentMethods for a given Customer sig { - params(params: T.any(::Stripe::CustomerListPaymentMethodsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::CustomerListPaymentMethodsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list_payment_methods(params = {}, opts = {}); end # Returns a list of PaymentMethods for a given Customer sig { - params(customer: String, params: T.any(::Stripe::CustomerListPaymentMethodsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(customer: String, params: T.any(::Stripe::CustomerListPaymentMethodsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list_payment_methods(customer, params = {}, opts = {}); end @@ -336,23 +339,23 @@ module Stripe # Retrieves a PaymentMethod object for a given Customer. sig { - params(payment_method: String, params: T.any(::Stripe::CustomerRetrievePaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(payment_method: String, params: T.any(::Stripe::CustomerRetrievePaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def retrieve_payment_method(payment_method, params = {}, opts = {}); end # Retrieves a PaymentMethod object for a given Customer. sig { - params(customer: String, payment_method: String, params: T.any(::Stripe::CustomerRetrievePaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(customer: String, payment_method: String, params: T.any(::Stripe::CustomerRetrievePaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def self.retrieve_payment_method(customer, payment_method, params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::CustomerSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::CustomerSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def self.search(params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::CustomerSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::CustomerSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(::Stripe::SearchResultObject) } def self.search_auto_paging_each(params = {}, opts = {}, &blk); end @@ -360,7 +363,7 @@ module Stripe # # This request accepts mostly the same arguments as the customer creation call. sig { - params(customer: String, params: T.any(::Stripe::CustomerUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer) + params(customer: String, params: T.any(::Stripe::CustomerUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Customer) } def self.update(customer, params = {}, opts = {}); end diff --git a/rbi/stripe/resources/customer_balance_transaction.rbi b/rbi/stripe/resources/customer_balance_transaction.rbi index 113a3dc5..b410afe7 100644 --- a/rbi/stripe/resources/customer_balance_transaction.rbi +++ b/rbi/stripe/resources/customer_balance_transaction.rbi @@ -14,19 +14,19 @@ module Stripe sig { returns(Integer) } def amount; end # The ID of the checkout session (if any) that created the transaction. - sig { returns(T.nilable(T.any(String, Stripe::Checkout::Session))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Checkout::Session))) } def checkout_session; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } def created; end # The ID of the credit note (if any) related to the transaction. - sig { returns(T.nilable(T.any(String, Stripe::CreditNote))) } + sig { returns(T.nilable(T.any(String, ::Stripe::CreditNote))) } def credit_note; end # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). sig { returns(String) } def currency; end # The ID of the customer the transaction belongs to. - sig { returns(T.any(String, Stripe::Customer)) } + sig { returns(T.any(String, ::Stripe::Customer)) } def customer; end # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } @@ -38,7 +38,7 @@ module Stripe sig { returns(String) } def id; end # The ID of the invoice (if any) related to the transaction. - sig { returns(T.nilable(T.any(String, Stripe::Invoice))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Invoice))) } def invoice; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } diff --git a/rbi/stripe/resources/customer_cash_balance_transaction.rbi b/rbi/stripe/resources/customer_cash_balance_transaction.rbi index 2c607b78..825d393b 100644 --- a/rbi/stripe/resources/customer_cash_balance_transaction.rbi +++ b/rbi/stripe/resources/customer_cash_balance_transaction.rbi @@ -8,12 +8,12 @@ module Stripe # represent when funds are moved into or out of this balance. This includes funding by the customer, allocation # to payments, and refunds to the customer. class CustomerCashBalanceTransaction < APIResource - class AdjustedForOverdraft < Stripe::StripeObject + class AdjustedForOverdraft < ::Stripe::StripeObject # The [Balance Transaction](https://stripe.com/docs/api/balance_transactions/object) that corresponds to funds taken out of your Stripe balance. - sig { returns(T.any(String, Stripe::BalanceTransaction)) } + sig { returns(T.any(String, ::Stripe::BalanceTransaction)) } def balance_transaction; end # The [Cash Balance Transaction](https://stripe.com/docs/api/cash_balance_transactions/object) that brought the customer balance negative, triggering the clawback of funds. - sig { returns(T.any(String, Stripe::CustomerCashBalanceTransaction)) } + sig { returns(T.any(String, ::Stripe::CustomerCashBalanceTransaction)) } def linked_transaction; end def self.inner_class_types @inner_class_types = {} @@ -22,9 +22,9 @@ module Stripe @field_remappings = {} end end - class AppliedToPayment < Stripe::StripeObject + class AppliedToPayment < ::Stripe::StripeObject # The [Payment Intent](https://stripe.com/docs/api/payment_intents/object) that funds were applied to. - sig { returns(T.any(String, Stripe::PaymentIntent)) } + sig { returns(T.any(String, ::Stripe::PaymentIntent)) } def payment_intent; end def self.inner_class_types @inner_class_types = {} @@ -33,9 +33,9 @@ module Stripe @field_remappings = {} end end - class Funded < Stripe::StripeObject - class BankTransfer < Stripe::StripeObject - class EuBankTransfer < Stripe::StripeObject + class Funded < ::Stripe::StripeObject + class BankTransfer < ::Stripe::StripeObject + class EuBankTransfer < ::Stripe::StripeObject # The BIC of the bank of the sender of the funding. sig { returns(T.nilable(String)) } def bic; end @@ -52,7 +52,7 @@ module Stripe @field_remappings = {} end end - class GbBankTransfer < Stripe::StripeObject + class GbBankTransfer < ::Stripe::StripeObject # The last 4 digits of the account number of the sender of the funding. sig { returns(T.nilable(String)) } def account_number_last4; end @@ -69,7 +69,7 @@ module Stripe @field_remappings = {} end end - class JpBankTransfer < Stripe::StripeObject + class JpBankTransfer < ::Stripe::StripeObject # The name of the bank of the sender of the funding. sig { returns(T.nilable(String)) } def sender_bank; end @@ -86,7 +86,7 @@ module Stripe @field_remappings = {} end end - class UsBankTransfer < Stripe::StripeObject + class UsBankTransfer < ::Stripe::StripeObject # The banking network used for this funding. sig { returns(T.nilable(String)) } def network; end @@ -140,9 +140,9 @@ module Stripe @field_remappings = {} end end - class RefundedFromPayment < Stripe::StripeObject + class RefundedFromPayment < ::Stripe::StripeObject # The [Refund](https://stripe.com/docs/api/refunds/object) that moved these funds into the customer's cash balance. - sig { returns(T.any(String, Stripe::Refund)) } + sig { returns(T.any(String, ::Stripe::Refund)) } def refund; end def self.inner_class_types @inner_class_types = {} @@ -151,9 +151,9 @@ module Stripe @field_remappings = {} end end - class TransferredToBalance < Stripe::StripeObject + class TransferredToBalance < ::Stripe::StripeObject # The [Balance Transaction](https://stripe.com/docs/api/balance_transactions/object) that corresponds to funds transferred to your Stripe balance. - sig { returns(T.any(String, Stripe::BalanceTransaction)) } + sig { returns(T.any(String, ::Stripe::BalanceTransaction)) } def balance_transaction; end def self.inner_class_types @inner_class_types = {} @@ -162,9 +162,9 @@ module Stripe @field_remappings = {} end end - class UnappliedFromPayment < Stripe::StripeObject + class UnappliedFromPayment < ::Stripe::StripeObject # The [Payment Intent](https://stripe.com/docs/api/payment_intents/object) that funds were unapplied from. - sig { returns(T.any(String, Stripe::PaymentIntent)) } + sig { returns(T.any(String, ::Stripe::PaymentIntent)) } def payment_intent; end def self.inner_class_types @inner_class_types = {} @@ -186,7 +186,7 @@ module Stripe sig { returns(String) } def currency; end # The customer whose available cash balance changed as a result of this transaction. - sig { returns(T.any(String, Stripe::Customer)) } + sig { returns(T.any(String, ::Stripe::Customer)) } def customer; end # The total available cash balance for the specified currency after this transaction was applied. Represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). sig { returns(Integer) } diff --git a/rbi/stripe/resources/customer_session.rbi b/rbi/stripe/resources/customer_session.rbi index 4fa13ef8..29a4c5e5 100644 --- a/rbi/stripe/resources/customer_session.rbi +++ b/rbi/stripe/resources/customer_session.rbi @@ -10,8 +10,8 @@ module Stripe # [Customer Session with the Pricing Table](https://docs.stripe.com/payments/checkout/pricing-table#customer-session), # [Customer Session with the Buy Button](https://docs.stripe.com/payment-links/buy-button#pass-an-existing-customer). class CustomerSession < APIResource - class Components < Stripe::StripeObject - class BuyButton < Stripe::StripeObject + class Components < ::Stripe::StripeObject + class BuyButton < ::Stripe::StripeObject # Whether the buy button is enabled. sig { returns(T::Boolean) } def enabled; end @@ -22,8 +22,85 @@ module Stripe @field_remappings = {} end end - class PaymentElement < Stripe::StripeObject - class Features < Stripe::StripeObject + class CustomerSheet < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject + # A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the customer sheet displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list. + # + # If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"]. + sig { returns(T.nilable(T::Array[String])) } + def payment_method_allow_redisplay_filters; end + # Controls whether the customer sheet displays the option to remove a saved payment method." + # + # Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods). + sig { returns(T.nilable(String)) } + def payment_method_remove; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the customer sheet is enabled. + sig { returns(T::Boolean) } + def enabled; end + # This hash defines whether the customer sheet supports certain features. + sig { returns(T.nilable(Features)) } + def features; end + def self.inner_class_types + @inner_class_types = {features: Features} + end + def self.field_remappings + @field_remappings = {} + end + end + class MobilePaymentElement < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject + # A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the mobile payment element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list. + # + # If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"]. + sig { returns(T.nilable(T::Array[String])) } + def payment_method_allow_redisplay_filters; end + # Controls whether or not the mobile payment element shows saved payment methods. + sig { returns(T.nilable(String)) } + def payment_method_redisplay; end + # Controls whether the mobile payment element displays the option to remove a saved payment method." + # + # Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the [`customer` object](https://docs.stripe.com/api/payment_methods/object#payment_method_object-customer) from that [PaymentMethod](https://docs.stripe.com/api/payment_methods). + sig { returns(T.nilable(String)) } + def payment_method_remove; end + # Controls whether the mobile payment element displays a checkbox offering to save a new payment method. + # + # If a customer checks the box, the [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) value on the PaymentMethod is set to `'always'` at confirmation time. For PaymentIntents, the [`setup_future_usage`](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-setup_future_usage) value is also set to the value defined in `payment_method_save_usage`. + sig { returns(T.nilable(String)) } + def payment_method_save; end + # Allows overriding the value of allow_override when saving a new payment method when payment_method_save is set to disabled. Use values: "always", "limited", or "unspecified". + # + # If not specified, defaults to `nil` (no override value). + sig { returns(T.nilable(String)) } + def payment_method_save_allow_redisplay_override; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the mobile payment element is enabled. + sig { returns(T::Boolean) } + def enabled; end + # This hash defines whether the mobile payment element supports certain features. + sig { returns(T.nilable(Features)) } + def features; end + def self.inner_class_types + @inner_class_types = {features: Features} + end + def self.field_remappings + @field_remappings = {} + end + end + class PaymentElement < ::Stripe::StripeObject + class Features < ::Stripe::StripeObject # A list of [`allow_redisplay`](https://docs.stripe.com/api/payment_methods/object#payment_method_object-allow_redisplay) values that controls which saved payment methods the Payment Element displays by filtering to only show payment methods with an `allow_redisplay` value that is present in this list. # # If not specified, defaults to ["always"]. In order to display all saved payment methods, specify ["always", "limited", "unspecified"]. @@ -70,7 +147,7 @@ module Stripe @field_remappings = {} end end - class PricingTable < Stripe::StripeObject + class PricingTable < ::Stripe::StripeObject # Whether the pricing table is enabled. sig { returns(T::Boolean) } def enabled; end @@ -84,6 +161,12 @@ module Stripe # This hash contains whether the buy button is enabled. sig { returns(BuyButton) } def buy_button; end + # This hash contains whether the customer sheet is enabled and the features it supports. + sig { returns(CustomerSheet) } + def customer_sheet; end + # This hash contains whether the mobile payment element is enabled and the features it supports. + sig { returns(MobilePaymentElement) } + def mobile_payment_element; end # This hash contains whether the Payment Element is enabled and the features it supports. sig { returns(PaymentElement) } def payment_element; end @@ -93,6 +176,8 @@ module Stripe def self.inner_class_types @inner_class_types = { buy_button: BuyButton, + customer_sheet: CustomerSheet, + mobile_payment_element: MobilePaymentElement, payment_element: PaymentElement, pricing_table: PricingTable, } @@ -113,7 +198,7 @@ module Stripe sig { returns(Integer) } def created; end # The Customer the Customer Session was created for. - sig { returns(T.any(String, Stripe::Customer)) } + sig { returns(T.any(String, ::Stripe::Customer)) } def customer; end # The timestamp at which this Customer Session will expire. sig { returns(Integer) } @@ -126,7 +211,7 @@ module Stripe def object; end # Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources. sig { - params(params: T.any(::Stripe::CustomerSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CustomerSession) + params(params: T.any(::Stripe::CustomerSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CustomerSession) } def self.create(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/discount.rbi b/rbi/stripe/resources/discount.rbi index 07ecd1ea..c1d1abe5 100644 --- a/rbi/stripe/resources/discount.rbi +++ b/rbi/stripe/resources/discount.rbi @@ -8,9 +8,9 @@ module Stripe # # Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts) class Discount < StripeObject - class Source < Stripe::StripeObject + class Source < ::Stripe::StripeObject # The coupon that was redeemed to create this discount. - sig { returns(T.nilable(T.any(String, Stripe::Coupon))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Coupon))) } def coupon; end # The source type of the discount. sig { returns(String) } @@ -26,7 +26,7 @@ module Stripe sig { returns(T.nilable(String)) } def checkout_session; end # The ID of the customer associated with this discount. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # If the coupon has a duration of `repeating`, the date that this discount will end. If the coupon has a duration of `once` or `forever`, this attribute will be null. sig { returns(T.nilable(Integer)) } @@ -44,7 +44,7 @@ module Stripe sig { returns(String) } def object; end # The promotion code applied to create this discount. - sig { returns(T.nilable(T.any(String, Stripe::PromotionCode))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PromotionCode))) } def promotion_code; end # Attribute for field source sig { returns(Source) } diff --git a/rbi/stripe/resources/dispute.rbi b/rbi/stripe/resources/dispute.rbi index 43b92d35..6d6e8651 100644 --- a/rbi/stripe/resources/dispute.rbi +++ b/rbi/stripe/resources/dispute.rbi @@ -9,11 +9,11 @@ module Stripe # # Related guide: [Disputes and fraud](https://stripe.com/docs/disputes) class Dispute < APIResource - class Evidence < Stripe::StripeObject - class EnhancedEvidence < Stripe::StripeObject - class VisaCompellingEvidence3 < Stripe::StripeObject - class DisputedTransaction < Stripe::StripeObject - class ShippingAddress < Stripe::StripeObject + class Evidence < ::Stripe::StripeObject + class EnhancedEvidence < ::Stripe::StripeObject + class VisaCompellingEvidence3 < ::Stripe::StripeObject + class DisputedTransaction < ::Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -70,8 +70,8 @@ module Stripe @field_remappings = {} end end - class PriorUndisputedTransaction < Stripe::StripeObject - class ShippingAddress < Stripe::StripeObject + class PriorUndisputedTransaction < ::Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -144,7 +144,7 @@ module Stripe @field_remappings = {} end end - class VisaCompliance < Stripe::StripeObject + class VisaCompliance < ::Stripe::StripeObject # A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute. sig { returns(T::Boolean) } def fee_acknowledged; end @@ -178,7 +178,7 @@ module Stripe sig { returns(T.nilable(String)) } def billing_address; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Your subscription cancellation policy, as shown to the customer. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def cancellation_policy; end # An explanation of how and when the customer was shown your refund policy prior to purchase. sig { returns(T.nilable(String)) } @@ -187,7 +187,7 @@ module Stripe sig { returns(T.nilable(String)) } def cancellation_rebuttal; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any communication with the customer that you feel is relevant to your case. Examples include emails proving that the customer received the product or service, or demonstrating their use of or satisfaction with the product or service. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def customer_communication; end # The email address of the customer. sig { returns(T.nilable(String)) } @@ -199,10 +199,10 @@ module Stripe sig { returns(T.nilable(String)) } def customer_purchase_ip; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) A relevant document or contract showing the customer's signature. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def customer_signature; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Documentation for the prior charge that can uniquely identify the charge, such as a receipt, shipping label, work order, etc. This document should be paired with a similar document from the disputed payment that proves the two payments are separate. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def duplicate_charge_documentation; end # An explanation of the difference between the disputed charge versus the prior charge that appears to be a duplicate. sig { returns(T.nilable(String)) } @@ -217,10 +217,10 @@ module Stripe sig { returns(T.nilable(String)) } def product_description; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any receipt or message sent to the customer notifying them of the charge. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def receipt; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Your refund policy, as shown to the customer. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def refund_policy; end # Documentation demonstrating that the customer was shown your refund policy prior to purchase. sig { returns(T.nilable(String)) } @@ -232,7 +232,7 @@ module Stripe sig { returns(T.nilable(String)) } def service_date; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Documentation showing proof that a service was provided to the customer. This could include a copy of a signed contract, work order, or other form of written agreement. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def service_documentation; end # The address to which a physical product was shipped. You should try to include as complete address information as possible. sig { returns(T.nilable(String)) } @@ -244,13 +244,13 @@ module Stripe sig { returns(T.nilable(String)) } def shipping_date; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Documentation showing proof that a product was shipped to the customer at the same address the customer provided to you. This could include a copy of the shipment receipt, shipping label, etc. It should show the customer's full shipping address, if possible. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def shipping_documentation; end # The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas. sig { returns(T.nilable(String)) } def shipping_tracking_number; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Any additional evidence or statements. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def uncategorized_file; end # Any additional evidence or statements. sig { returns(T.nilable(String)) } @@ -262,9 +262,9 @@ module Stripe @field_remappings = {} end end - class EvidenceDetails < Stripe::StripeObject - class EnhancedEligibility < Stripe::StripeObject - class VisaCompellingEvidence3 < Stripe::StripeObject + class EvidenceDetails < ::Stripe::StripeObject + class EnhancedEligibility < ::Stripe::StripeObject + class VisaCompellingEvidence3 < ::Stripe::StripeObject # List of actions required to qualify dispute for Visa Compelling Evidence 3.0 evidence submission. sig { returns(T::Array[String]) } def required_actions; end @@ -278,7 +278,7 @@ module Stripe @field_remappings = {} end end - class VisaCompliance < Stripe::StripeObject + class VisaCompliance < ::Stripe::StripeObject # Visa compliance eligibility status. sig { returns(String) } def status; end @@ -327,8 +327,8 @@ module Stripe @field_remappings = {} end end - class PaymentMethodDetails < Stripe::StripeObject - class AmazonPay < Stripe::StripeObject + class PaymentMethodDetails < ::Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject # The AmazonPay dispute type, chargeback or claim sig { returns(T.nilable(String)) } def dispute_type; end @@ -339,7 +339,7 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject + class Card < ::Stripe::StripeObject # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. sig { returns(String) } def brand; end @@ -356,7 +356,7 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject # Chargeback loss reason mapped by Stripe from Klarna's chargeback loss reason sig { returns(T.nilable(String)) } def chargeback_loss_reason_code; end @@ -370,7 +370,7 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # The ID of the dispute in PayPal. sig { returns(T.nilable(String)) } def case_id; end @@ -410,10 +410,10 @@ module Stripe sig { returns(Integer) } def amount; end # List of zero, one, or two balance transactions that show funds withdrawn and reinstated to your Stripe account as a result of this dispute. - sig { returns(T::Array[Stripe::BalanceTransaction]) } + sig { returns(T::Array[::Stripe::BalanceTransaction]) } def balance_transactions; end # ID of the charge that's disputed. - sig { returns(T.any(String, Stripe::Charge)) } + sig { returns(T.any(String, ::Stripe::Charge)) } def charge; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -449,7 +449,7 @@ module Stripe sig { returns(String) } def object; end # ID of the PaymentIntent that's disputed. - sig { returns(T.nilable(T.any(String, Stripe::PaymentIntent))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntent))) } def payment_intent; end # Attribute for field payment_method_details sig { returns(T.nilable(PaymentMethodDetails)) } @@ -464,7 +464,7 @@ module Stripe # # The status of the dispute will change from needs_response to lost. Closing a dispute is irreversible. sig { - params(params: T.any(::Stripe::DisputeCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Dispute) + params(params: T.any(::Stripe::DisputeCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Dispute) } def close(params = {}, opts = {}); end @@ -472,13 +472,13 @@ module Stripe # # The status of the dispute will change from needs_response to lost. Closing a dispute is irreversible. sig { - params(dispute: String, params: T.any(::Stripe::DisputeCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Dispute) + params(dispute: String, params: T.any(::Stripe::DisputeCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Dispute) } def self.close(dispute, params = {}, opts = {}); end # Returns a list of your disputes. sig { - params(params: T.any(::Stripe::DisputeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::DisputeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end @@ -486,7 +486,7 @@ module Stripe # # Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our [guide to dispute types](https://docs.stripe.com/docs/disputes/categories). sig { - params(dispute: String, params: T.any(::Stripe::DisputeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Dispute) + params(dispute: String, params: T.any(::Stripe::DisputeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Dispute) } def self.update(dispute, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/entitlements/active_entitlement.rbi b/rbi/stripe/resources/entitlements/active_entitlement.rbi index 29e73ca2..ae3acb7f 100644 --- a/rbi/stripe/resources/entitlements/active_entitlement.rbi +++ b/rbi/stripe/resources/entitlements/active_entitlement.rbi @@ -7,7 +7,7 @@ module Stripe # An active entitlement describes access to a feature for a customer. class ActiveEntitlement < APIResource # The [Feature](https://stripe.com/docs/api/entitlements/feature) that the customer is entitled to. - sig { returns(T.any(String, Stripe::Entitlements::Feature)) } + sig { returns(T.any(String, ::Stripe::Entitlements::Feature)) } def feature; end # Unique identifier for the object. sig { returns(String) } @@ -23,7 +23,7 @@ module Stripe def object; end # Retrieve a list of active entitlements for a customer sig { - params(params: T.any(::Stripe::Entitlements::ActiveEntitlementListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Entitlements::ActiveEntitlementListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi b/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi index f43325a4..50549afd 100644 --- a/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +++ b/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi @@ -10,7 +10,7 @@ module Stripe sig { returns(String) } def customer; end # The list of entitlements this customer has. - sig { returns(Stripe::ListObject) } + sig { returns(::Stripe::ListObject) } def entitlements; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } diff --git a/rbi/stripe/resources/entitlements/feature.rbi b/rbi/stripe/resources/entitlements/feature.rbi index ff30b347..bfa39ca9 100644 --- a/rbi/stripe/resources/entitlements/feature.rbi +++ b/rbi/stripe/resources/entitlements/feature.rbi @@ -30,19 +30,19 @@ module Stripe def object; end # Creates a feature sig { - params(params: T.any(::Stripe::Entitlements::FeatureCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Entitlements::Feature) + params(params: T.any(::Stripe::Entitlements::FeatureCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Entitlements::Feature) } def self.create(params = {}, opts = {}); end # Retrieve a list of features sig { - params(params: T.any(::Stripe::Entitlements::FeatureListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Entitlements::FeatureListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Update a feature's metadata or permanently deactivate it. sig { - params(id: String, params: T.any(::Stripe::Entitlements::FeatureUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Entitlements::Feature) + params(id: String, params: T.any(::Stripe::Entitlements::FeatureUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Entitlements::Feature) } def self.update(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/ephemeral_key.rbi b/rbi/stripe/resources/ephemeral_key.rbi index d95e7b66..596b0cf1 100644 --- a/rbi/stripe/resources/ephemeral_key.rbi +++ b/rbi/stripe/resources/ephemeral_key.rbi @@ -24,13 +24,13 @@ module Stripe def secret; end # Invalidates a short-lived API key for a given resource. sig { - params(key: String, params: T.any(::Stripe::EphemeralKeyDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::EphemeralKey) + params(key: String, params: T.any(::Stripe::EphemeralKeyDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::EphemeralKey) } def self.delete(key, params = {}, opts = {}); end # Invalidates a short-lived API key for a given resource. sig { - params(params: T.any(::Stripe::EphemeralKeyDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::EphemeralKey) + params(params: T.any(::Stripe::EphemeralKeyDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::EphemeralKey) } def delete(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/event.rbi b/rbi/stripe/resources/event.rbi index 2a28296f..40f160eb 100644 --- a/rbi/stripe/resources/event.rbi +++ b/rbi/stripe/resources/event.rbi @@ -22,7 +22,7 @@ module Stripe # You can access events through the [Retrieve Event API](https://docs.stripe.com/api/events#retrieve_event) # for 30 days. class Event < APIResource - class Data < Stripe::StripeObject + class Data < ::Stripe::StripeObject # Object containing the API resource relevant to the event. For example, an `invoice.created` event will have a full [invoice object](https://stripe.com/docs/api#invoice_object) as the value of the object key. sig { returns(T::Hash[String, T.untyped]) } def object; end @@ -36,7 +36,7 @@ module Stripe @field_remappings = {} end end - class Request < Stripe::StripeObject + class Request < ::Stripe::StripeObject # ID of the API request that caused the event. If null, the event was automatic (e.g., Stripe's automatic subscription handling). Request logs are available in the [dashboard](https://dashboard.stripe.com/logs), but currently not in the API. sig { returns(T.nilable(String)) } def id; end @@ -85,7 +85,7 @@ module Stripe def type; end # List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://docs.stripe.com/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header). sig { - params(params: T.any(::Stripe::EventListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::EventListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/exchange_rate.rbi b/rbi/stripe/resources/exchange_rate.rbi index c1884cfe..9eda43df 100644 --- a/rbi/stripe/resources/exchange_rate.rbi +++ b/rbi/stripe/resources/exchange_rate.rbi @@ -45,7 +45,7 @@ module Stripe # # Returns a list of objects that contain the rates at which foreign currencies are converted to one another. Only shows the currencies for which Stripe supports. sig { - params(params: T.any(::Stripe::ExchangeRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ExchangeRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/file.rbi b/rbi/stripe/resources/file.rbi index 269e5c1a..610e64d6 100644 --- a/rbi/stripe/resources/file.rbi +++ b/rbi/stripe/resources/file.rbi @@ -24,7 +24,7 @@ module Stripe sig { returns(String) } def id; end # A list of [file links](https://stripe.com/docs/api#file_links) that point at this file. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def links; end # String representing the object's type. Objects of the same type share the same value. sig { returns(String) } @@ -48,13 +48,13 @@ module Stripe # # All of Stripe's officially supported Client libraries support sending multipart/form-data. sig { - params(params: T.any(::Stripe::FileCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::File) + params(params: T.any(::Stripe::FileCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::File) } def self.create(params = {}, opts = {}); end # Returns a list of the files that your account has access to. Stripe sorts and returns the files by their creation dates, placing the most recently created files at the top. sig { - params(params: T.any(::Stripe::FileListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::FileListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/file_link.rbi b/rbi/stripe/resources/file_link.rbi index 02699742..b10551cf 100644 --- a/rbi/stripe/resources/file_link.rbi +++ b/rbi/stripe/resources/file_link.rbi @@ -17,7 +17,7 @@ module Stripe sig { returns(T.nilable(Integer)) } def expires_at; end # The file object this link points to. - sig { returns(T.any(String, Stripe::File)) } + sig { returns(T.any(String, ::Stripe::File)) } def file; end # Unique identifier for the object. sig { returns(String) } @@ -36,19 +36,19 @@ module Stripe def url; end # Creates a new file link object. sig { - params(params: T.any(::Stripe::FileLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FileLink) + params(params: T.any(::Stripe::FileLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FileLink) } def self.create(params = {}, opts = {}); end # Returns a list of file links. sig { - params(params: T.any(::Stripe::FileLinkListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::FileLinkListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates an existing file link object. Expired links can no longer be updated. sig { - params(link: String, params: T.any(::Stripe::FileLinkUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FileLink) + params(link: String, params: T.any(::Stripe::FileLinkUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FileLink) } def self.update(link, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/financial_connections/account.rbi b/rbi/stripe/resources/financial_connections/account.rbi index 4f2bb07e..90846591 100644 --- a/rbi/stripe/resources/financial_connections/account.rbi +++ b/rbi/stripe/resources/financial_connections/account.rbi @@ -6,12 +6,12 @@ module Stripe module FinancialConnections # A Financial Connections Account represents an account that exists outside of Stripe, to which you have been granted some degree of access. class Account < APIResource - class AccountHolder < Stripe::StripeObject + class AccountHolder < ::Stripe::StripeObject # The ID of the Stripe account this account belongs to. Should only be present if `account_holder.type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # ID of the Stripe customer this account belongs to. Present if and only if `account_holder.type` is `customer`. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # Type of account holder that this account belongs to. sig { returns(String) } @@ -23,8 +23,8 @@ module Stripe @field_remappings = {} end end - class Balance < Stripe::StripeObject - class Cash < Stripe::StripeObject + class Balance < ::Stripe::StripeObject + class Cash < ::Stripe::StripeObject # The funds available to the account holder. Typically this is the current balance after subtracting any outbound pending transactions and adding any inbound pending transactions. # # Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. @@ -39,7 +39,7 @@ module Stripe @field_remappings = {} end end - class Credit < Stripe::StripeObject + class Credit < ::Stripe::StripeObject # The credit that has been used by the account holder. # # Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. @@ -80,7 +80,7 @@ module Stripe @field_remappings = {} end end - class BalanceRefresh < Stripe::StripeObject + class BalanceRefresh < ::Stripe::StripeObject # The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch. sig { returns(Integer) } def last_attempted_at; end @@ -97,7 +97,7 @@ module Stripe @field_remappings = {} end end - class OwnershipRefresh < Stripe::StripeObject + class OwnershipRefresh < ::Stripe::StripeObject # The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch. sig { returns(Integer) } def last_attempted_at; end @@ -114,7 +114,7 @@ module Stripe @field_remappings = {} end end - class TransactionRefresh < Stripe::StripeObject + class TransactionRefresh < ::Stripe::StripeObject # Unique identifier for the object. sig { returns(String) } def id; end @@ -168,7 +168,7 @@ module Stripe sig { returns(String) } def object; end # The most recent information about the account's owners. - sig { returns(T.nilable(T.any(String, Stripe::FinancialConnections::AccountOwnership))) } + sig { returns(T.nilable(T.any(String, ::Stripe::FinancialConnections::AccountOwnership))) } def ownership; end # The state of the most recent attempt to refresh the account owners. sig { returns(T.nilable(OwnershipRefresh)) } @@ -206,67 +206,67 @@ module Stripe def transaction_refresh; end # Disables your access to a Financial Connections Account. You will no longer be able to access data associated with the account (e.g. balances, transactions). sig { - params(params: T.any(::Stripe::FinancialConnections::AccountDisconnectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(params: T.any(::Stripe::FinancialConnections::AccountDisconnectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def disconnect(params = {}, opts = {}); end # Disables your access to a Financial Connections Account. You will no longer be able to access data associated with the account (e.g. balances, transactions). sig { - params(account: String, params: T.any(::Stripe::FinancialConnections::AccountDisconnectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(account: String, params: T.any(::Stripe::FinancialConnections::AccountDisconnectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def self.disconnect(account, params = {}, opts = {}); end # Returns a list of Financial Connections Account objects. sig { - params(params: T.any(::Stripe::FinancialConnections::AccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::FinancialConnections::AccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Lists all owners for a given Account sig { - params(params: T.any(::Stripe::FinancialConnections::AccountListOwnersParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::FinancialConnections::AccountListOwnersParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list_owners(params = {}, opts = {}); end # Lists all owners for a given Account sig { - params(account: String, params: T.any(::Stripe::FinancialConnections::AccountListOwnersParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(account: String, params: T.any(::Stripe::FinancialConnections::AccountListOwnersParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list_owners(account, params = {}, opts = {}); end # Refreshes the data associated with a Financial Connections Account. sig { - params(params: T.any(::Stripe::FinancialConnections::AccountRefreshAccountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(params: T.any(::Stripe::FinancialConnections::AccountRefreshAccountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def refresh_account(params = {}, opts = {}); end # Refreshes the data associated with a Financial Connections Account. sig { - params(account: String, params: T.any(::Stripe::FinancialConnections::AccountRefreshAccountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(account: String, params: T.any(::Stripe::FinancialConnections::AccountRefreshAccountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def self.refresh_account(account, params = {}, opts = {}); end - # Subscribes to periodic refreshes of data associated with a Financial Connections Account. + # Subscribes to periodic refreshes of data associated with a Financial Connections Account. When the account status is active, data is typically refreshed once a day. sig { - params(params: T.any(::Stripe::FinancialConnections::AccountSubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(params: T.any(::Stripe::FinancialConnections::AccountSubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def subscribe(params = {}, opts = {}); end - # Subscribes to periodic refreshes of data associated with a Financial Connections Account. + # Subscribes to periodic refreshes of data associated with a Financial Connections Account. When the account status is active, data is typically refreshed once a day. sig { - params(account: String, params: T.any(::Stripe::FinancialConnections::AccountSubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(account: String, params: T.any(::Stripe::FinancialConnections::AccountSubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def self.subscribe(account, params = {}, opts = {}); end # Unsubscribes from periodic refreshes of data associated with a Financial Connections Account. sig { - params(params: T.any(::Stripe::FinancialConnections::AccountUnsubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(params: T.any(::Stripe::FinancialConnections::AccountUnsubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def unsubscribe(params = {}, opts = {}); end # Unsubscribes from periodic refreshes of data associated with a Financial Connections Account. sig { - params(account: String, params: T.any(::Stripe::FinancialConnections::AccountUnsubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(account: String, params: T.any(::Stripe::FinancialConnections::AccountUnsubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def self.unsubscribe(account, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/financial_connections/account_ownership.rbi b/rbi/stripe/resources/financial_connections/account_ownership.rbi index 3e0321cc..f72300c1 100644 --- a/rbi/stripe/resources/financial_connections/account_ownership.rbi +++ b/rbi/stripe/resources/financial_connections/account_ownership.rbi @@ -16,7 +16,7 @@ module Stripe sig { returns(String) } def object; end # A paginated list of owners for this account. - sig { returns(Stripe::ListObject) } + sig { returns(::Stripe::ListObject) } def owners; end end end diff --git a/rbi/stripe/resources/financial_connections/session.rbi b/rbi/stripe/resources/financial_connections/session.rbi index e229e50b..e112ef71 100644 --- a/rbi/stripe/resources/financial_connections/session.rbi +++ b/rbi/stripe/resources/financial_connections/session.rbi @@ -6,12 +6,12 @@ module Stripe module FinancialConnections # A Financial Connections Session is the secure way to programmatically launch the client-side Stripe.js modal that lets your users link their accounts. class Session < APIResource - class AccountHolder < Stripe::StripeObject + class AccountHolder < ::Stripe::StripeObject # The ID of the Stripe account this account belongs to. Should only be present if `account_holder.type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # ID of the Stripe customer this account belongs to. Present if and only if `account_holder.type` is `customer`. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # Type of account holder that this account belongs to. sig { returns(String) } @@ -23,7 +23,7 @@ module Stripe @field_remappings = {} end end - class Filters < Stripe::StripeObject + class Filters < ::Stripe::StripeObject # Restricts the Session to subcategories of accounts that can be linked. Valid subcategories are: `checking`, `savings`, `mortgage`, `line_of_credit`, `credit_card`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -41,7 +41,7 @@ module Stripe sig { returns(T.nilable(AccountHolder)) } def account_holder; end # The accounts that were collected as part of this Session. - sig { returns(Stripe::ListObject) } + sig { returns(::Stripe::ListObject) } def accounts; end # A value that will be passed to the client to launch the authentication flow. sig { returns(String) } @@ -69,7 +69,7 @@ module Stripe def return_url; end # To launch the Financial Connections authorization flow, create a Session. The session's client_secret can be used to launch the flow using Stripe.js. sig { - params(params: T.any(::Stripe::FinancialConnections::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Session) + params(params: T.any(::Stripe::FinancialConnections::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Session) } def self.create(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/financial_connections/transaction.rbi b/rbi/stripe/resources/financial_connections/transaction.rbi index 3cf0f057..b2926588 100644 --- a/rbi/stripe/resources/financial_connections/transaction.rbi +++ b/rbi/stripe/resources/financial_connections/transaction.rbi @@ -6,7 +6,7 @@ module Stripe module FinancialConnections # A Transaction represents a real transaction that affects a Financial Connections Account balance. class Transaction < APIResource - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # Time at which this transaction posted. Measured in seconds since the Unix epoch. sig { returns(T.nilable(Integer)) } def posted_at; end @@ -58,7 +58,7 @@ module Stripe def updated; end # Returns a list of Financial Connections Transaction objects. sig { - params(params: T.any(::Stripe::FinancialConnections::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::FinancialConnections::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/forwarding/request.rbi b/rbi/stripe/resources/forwarding/request.rbi index 53d68ac7..c4b43b92 100644 --- a/rbi/stripe/resources/forwarding/request.rbi +++ b/rbi/stripe/resources/forwarding/request.rbi @@ -21,7 +21,7 @@ module Stripe # # Related guide: [Forward card details to third-party API endpoints](https://docs.stripe.com/payments/forwarding). class Request < APIResource - class RequestContext < Stripe::StripeObject + class RequestContext < ::Stripe::StripeObject # The time it took in milliseconds for the destination endpoint to respond. sig { returns(Integer) } def destination_duration; end @@ -35,8 +35,8 @@ module Stripe @field_remappings = {} end end - class RequestDetails < Stripe::StripeObject - class Header < Stripe::StripeObject + class RequestDetails < ::Stripe::StripeObject + class Header < ::Stripe::StripeObject # The header name. sig { returns(String) } def name; end @@ -66,8 +66,8 @@ module Stripe @field_remappings = {} end end - class ResponseDetails < Stripe::StripeObject - class Header < Stripe::StripeObject + class ResponseDetails < ::Stripe::StripeObject + class Header < ::Stripe::StripeObject # The header name. sig { returns(String) } def name; end @@ -132,13 +132,13 @@ module Stripe def url; end # Creates a ForwardingRequest object. sig { - params(params: T.any(::Stripe::Forwarding::RequestCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Forwarding::Request) + params(params: T.any(::Stripe::Forwarding::RequestCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Forwarding::Request) } def self.create(params = {}, opts = {}); end # Lists all ForwardingRequest objects. sig { - params(params: T.any(::Stripe::Forwarding::RequestListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Forwarding::RequestListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/funding_instructions.rbi b/rbi/stripe/resources/funding_instructions.rbi index 53a650fb..aeb7ffb8 100644 --- a/rbi/stripe/resources/funding_instructions.rbi +++ b/rbi/stripe/resources/funding_instructions.rbi @@ -9,10 +9,10 @@ module Stripe # `financial_addresses` field. # Related guide: [Customer balance funding instructions](https://stripe.com/docs/payments/customer-balance/funding-instructions) class FundingInstructions < APIResource - class BankTransfer < Stripe::StripeObject - class FinancialAddress < Stripe::StripeObject - class Aba < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class BankTransfer < ::Stripe::StripeObject + class FinancialAddress < ::Stripe::StripeObject + class Aba < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -38,7 +38,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -95,8 +95,8 @@ module Stripe @field_remappings = {} end end - class Iban < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Iban < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -122,7 +122,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -176,8 +176,8 @@ module Stripe @field_remappings = {} end end - class SortCode < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class SortCode < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -203,7 +203,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -254,8 +254,8 @@ module Stripe @field_remappings = {} end end - class Spei < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Spei < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -281,7 +281,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -335,8 +335,8 @@ module Stripe @field_remappings = {} end end - class Swift < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Swift < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -362,7 +362,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -419,8 +419,8 @@ module Stripe @field_remappings = {} end end - class Zengin < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Zengin < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -446,7 +446,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end diff --git a/rbi/stripe/resources/identity/verification_report.rbi b/rbi/stripe/resources/identity/verification_report.rbi index e9212974..37eb73f7 100644 --- a/rbi/stripe/resources/identity/verification_report.rbi +++ b/rbi/stripe/resources/identity/verification_report.rbi @@ -16,8 +16,8 @@ module Stripe # # Related guide: [Accessing verification results](https://stripe.com/docs/identity/verification-sessions#results). class VerificationReport < APIResource - class Document < Stripe::StripeObject - class Address < Stripe::StripeObject + class Document < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -43,7 +43,7 @@ module Stripe @field_remappings = {} end end - class Dob < Stripe::StripeObject + class Dob < ::Stripe::StripeObject # Numerical day between 1 and 31. sig { returns(T.nilable(Integer)) } def day; end @@ -60,7 +60,7 @@ module Stripe @field_remappings = {} end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # A short machine-readable string giving the reason for the verification failure. sig { returns(T.nilable(String)) } def code; end @@ -74,7 +74,7 @@ module Stripe @field_remappings = {} end end - class ExpirationDate < Stripe::StripeObject + class ExpirationDate < ::Stripe::StripeObject # Numerical day between 1 and 31. sig { returns(T.nilable(Integer)) } def day; end @@ -91,7 +91,7 @@ module Stripe @field_remappings = {} end end - class IssuedDate < Stripe::StripeObject + class IssuedDate < ::Stripe::StripeObject # Numerical day between 1 and 31. sig { returns(T.nilable(Integer)) } def day; end @@ -166,8 +166,8 @@ module Stripe @field_remappings = {} end end - class Email < Stripe::StripeObject - class Error < Stripe::StripeObject + class Email < ::Stripe::StripeObject + class Error < ::Stripe::StripeObject # A short machine-readable string giving the reason for the verification failure. sig { returns(T.nilable(String)) } def code; end @@ -197,8 +197,8 @@ module Stripe @field_remappings = {} end end - class IdNumber < Stripe::StripeObject - class Dob < Stripe::StripeObject + class IdNumber < ::Stripe::StripeObject + class Dob < ::Stripe::StripeObject # Numerical day between 1 and 31. sig { returns(T.nilable(Integer)) } def day; end @@ -215,7 +215,7 @@ module Stripe @field_remappings = {} end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # A short machine-readable string giving the reason for the verification failure. sig { returns(T.nilable(String)) } def code; end @@ -257,8 +257,8 @@ module Stripe @field_remappings = {} end end - class Options < Stripe::StripeObject - class Document < Stripe::StripeObject + class Options < ::Stripe::StripeObject + class Document < ::Stripe::StripeObject # Array of strings of allowed identity document types. If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code. sig { returns(T.nilable(T::Array[String])) } def allowed_types; end @@ -278,7 +278,7 @@ module Stripe @field_remappings = {} end end - class IdNumber < Stripe::StripeObject + class IdNumber < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -299,8 +299,8 @@ module Stripe @field_remappings = {} end end - class Phone < Stripe::StripeObject - class Error < Stripe::StripeObject + class Phone < ::Stripe::StripeObject + class Error < ::Stripe::StripeObject # A short machine-readable string giving the reason for the verification failure. sig { returns(T.nilable(String)) } def code; end @@ -330,8 +330,8 @@ module Stripe @field_remappings = {} end end - class Selfie < Stripe::StripeObject - class Error < Stripe::StripeObject + class Selfie < ::Stripe::StripeObject + class Error < ::Stripe::StripeObject # A short machine-readable string giving the reason for the verification failure. sig { returns(T.nilable(String)) } def code; end @@ -408,7 +408,7 @@ module Stripe def verification_session; end # List all verification reports. sig { - params(params: T.any(::Stripe::Identity::VerificationReportListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Identity::VerificationReportListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/identity/verification_session.rbi b/rbi/stripe/resources/identity/verification_session.rbi index 3980a5b8..f6d62bc5 100644 --- a/rbi/stripe/resources/identity/verification_session.rbi +++ b/rbi/stripe/resources/identity/verification_session.rbi @@ -16,7 +16,7 @@ module Stripe # # Related guide: [The Verification Sessions API](https://stripe.com/docs/identity/verification-sessions) class VerificationSession < APIResource - class LastError < Stripe::StripeObject + class LastError < ::Stripe::StripeObject # A short machine-readable string giving the reason for the verification or user-session failure. sig { returns(T.nilable(String)) } def code; end @@ -30,8 +30,8 @@ module Stripe @field_remappings = {} end end - class Options < Stripe::StripeObject - class Document < Stripe::StripeObject + class Options < ::Stripe::StripeObject + class Document < ::Stripe::StripeObject # Array of strings of allowed identity document types. If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code. sig { returns(T.nilable(T::Array[String])) } def allowed_types; end @@ -51,7 +51,7 @@ module Stripe @field_remappings = {} end end - class Email < Stripe::StripeObject + class Email < ::Stripe::StripeObject # Request one time password verification of `provided_details.email`. sig { returns(T.nilable(T::Boolean)) } def require_verification; end @@ -62,7 +62,7 @@ module Stripe @field_remappings = {} end end - class IdNumber < Stripe::StripeObject + class IdNumber < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -70,7 +70,7 @@ module Stripe @field_remappings = {} end end - class Matching < Stripe::StripeObject + class Matching < ::Stripe::StripeObject # Strictness of the DOB matching policy to apply. sig { returns(T.nilable(String)) } def dob; end @@ -84,7 +84,7 @@ module Stripe @field_remappings = {} end end - class Phone < Stripe::StripeObject + class Phone < ::Stripe::StripeObject # Request one time password verification of `provided_details.phone`. sig { returns(T.nilable(T::Boolean)) } def require_verification; end @@ -123,7 +123,7 @@ module Stripe @field_remappings = {} end end - class ProvidedDetails < Stripe::StripeObject + class ProvidedDetails < ::Stripe::StripeObject # Email of user being verified sig { returns(T.nilable(String)) } def email; end @@ -137,7 +137,7 @@ module Stripe @field_remappings = {} end end - class Redaction < Stripe::StripeObject + class Redaction < ::Stripe::StripeObject # Indicates whether this object and its related objects have been redacted or not. sig { returns(String) } def status; end @@ -148,7 +148,7 @@ module Stripe @field_remappings = {} end end - class RelatedPerson < Stripe::StripeObject + class RelatedPerson < ::Stripe::StripeObject # Token referencing the associated Account of the related Person resource. sig { returns(String) } def account; end @@ -162,8 +162,8 @@ module Stripe @field_remappings = {} end end - class VerifiedOutputs < Stripe::StripeObject - class Address < Stripe::StripeObject + class VerifiedOutputs < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -189,7 +189,7 @@ module Stripe @field_remappings = {} end end - class Dob < Stripe::StripeObject + class Dob < ::Stripe::StripeObject # Numerical day between 1 and 31. sig { returns(T.nilable(Integer)) } def day; end @@ -262,7 +262,7 @@ module Stripe sig { returns(T.nilable(LastError)) } def last_error; end # ID of the most recent VerificationReport. [Learn more about accessing detailed verification results.](https://stripe.com/docs/identity/verification-sessions#results) - sig { returns(T.nilable(T.any(String, Stripe::Identity::VerificationReport))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Identity::VerificationReport))) } def last_verification_report; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -307,7 +307,7 @@ module Stripe # # Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#cancel). sig { - params(params: T.any(::Stripe::Identity::VerificationSessionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(params: T.any(::Stripe::Identity::VerificationSessionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationSession) } def cancel(params = {}, opts = {}); end @@ -315,7 +315,7 @@ module Stripe # # Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#cancel). sig { - params(session: String, params: T.any(::Stripe::Identity::VerificationSessionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(session: String, params: T.any(::Stripe::Identity::VerificationSessionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationSession) } def self.cancel(session, params = {}, opts = {}); end @@ -327,13 +327,13 @@ module Stripe # # Related guide: [Verify your users' identity documents](https://docs.stripe.com/docs/identity/verify-identity-documents) sig { - params(params: T.any(::Stripe::Identity::VerificationSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(params: T.any(::Stripe::Identity::VerificationSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationSession) } def self.create(params = {}, opts = {}); end # Returns a list of VerificationSessions sig { - params(params: T.any(::Stripe::Identity::VerificationSessionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Identity::VerificationSessionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end @@ -357,7 +357,7 @@ module Stripe # # [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#redact). sig { - params(params: T.any(::Stripe::Identity::VerificationSessionRedactParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(params: T.any(::Stripe::Identity::VerificationSessionRedactParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationSession) } def redact(params = {}, opts = {}); end @@ -381,7 +381,7 @@ module Stripe # # [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#redact). sig { - params(session: String, params: T.any(::Stripe::Identity::VerificationSessionRedactParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(session: String, params: T.any(::Stripe::Identity::VerificationSessionRedactParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationSession) } def self.redact(session, params = {}, opts = {}); end @@ -390,7 +390,7 @@ module Stripe # When the session status is requires_input, you can use this method to update the # verification check and options. sig { - params(session: String, params: T.any(::Stripe::Identity::VerificationSessionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(session: String, params: T.any(::Stripe::Identity::VerificationSessionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationSession) } def self.update(session, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/invoice.rbi b/rbi/stripe/resources/invoice.rbi index a064d3c9..0e5a1597 100644 --- a/rbi/stripe/resources/invoice.rbi +++ b/rbi/stripe/resources/invoice.rbi @@ -36,10 +36,10 @@ module Stripe # # Related guide: [Send invoices to customers](https://stripe.com/docs/billing/invoices/sending) class Invoice < APIResource - class AutomaticTax < Stripe::StripeObject - class Liability < Stripe::StripeObject + class AutomaticTax < ::Stripe::StripeObject + class Liability < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -73,7 +73,7 @@ module Stripe @field_remappings = {} end end - class ConfirmationSecret < Stripe::StripeObject + class ConfirmationSecret < ::Stripe::StripeObject # The client_secret of the payment that Stripe creates for the invoice after finalization. sig { returns(String) } def client_secret; end @@ -87,7 +87,7 @@ module Stripe @field_remappings = {} end end - class CustomField < Stripe::StripeObject + class CustomField < ::Stripe::StripeObject # The name of the custom field. sig { returns(String) } def name; end @@ -101,7 +101,7 @@ module Stripe @field_remappings = {} end end - class CustomerAddress < Stripe::StripeObject + class CustomerAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -127,8 +127,8 @@ module Stripe @field_remappings = {} end end - class CustomerShipping < Stripe::StripeObject - class Address < Stripe::StripeObject + class CustomerShipping < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -176,7 +176,7 @@ module Stripe @field_remappings = {} end end - class CustomerTaxId < Stripe::StripeObject + class CustomerTaxId < ::Stripe::StripeObject # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` sig { returns(String) } def type; end @@ -190,12 +190,12 @@ module Stripe @field_remappings = {} end end - class FromInvoice < Stripe::StripeObject + class FromInvoice < ::Stripe::StripeObject # The relation between this invoice and the cloned invoice sig { returns(String) } def action; end # The invoice that was cloned. - sig { returns(T.any(String, Stripe::Invoice)) } + sig { returns(T.any(String, ::Stripe::Invoice)) } def invoice; end def self.inner_class_types @inner_class_types = {} @@ -204,9 +204,9 @@ module Stripe @field_remappings = {} end end - class Issuer < Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -218,7 +218,7 @@ module Stripe @field_remappings = {} end end - class LastFinalizationError < Stripe::StripeObject + class LastFinalizationError < ::Stripe::StripeObject # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one. sig { returns(T.nilable(String)) } def advice_code; end @@ -257,14 +257,14 @@ module Stripe # authentication flows and ultimately creates at most one successful charge. # # Related guide: [Payment Intents API](https://stripe.com/docs/payments/payment-intents) - sig { returns(T.nilable(Stripe::PaymentIntent)) } + sig { returns(T.nilable(::Stripe::PaymentIntent)) } def payment_intent; end # PaymentMethod objects represent your customer's payment instruments. # You can use them with [PaymentIntents](https://stripe.com/docs/payments/payment-intents) to collect payments or save them to # Customer objects to store instrument details for future payments. # # Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios). - sig { returns(T.nilable(Stripe::PaymentMethod)) } + sig { returns(T.nilable(::Stripe::PaymentMethod)) } def payment_method; end # If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors. sig { returns(T.nilable(String)) } @@ -293,11 +293,11 @@ module Stripe # By using SetupIntents, you can reduce friction for your customers, even as regulations change over time. # # Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) - sig { returns(T.nilable(Stripe::SetupIntent)) } + sig { returns(T.nilable(::Stripe::SetupIntent)) } def setup_intent; end # Attribute for field source sig { - returns(T.nilable(T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source))) + returns(T.nilable(T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source))) } def source; end # The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error` @@ -310,8 +310,8 @@ module Stripe @field_remappings = {} end end - class Parent < Stripe::StripeObject - class QuoteDetails < Stripe::StripeObject + class Parent < ::Stripe::StripeObject + class QuoteDetails < ::Stripe::StripeObject # The quote that generated this invoice sig { returns(String) } def quote; end @@ -322,13 +322,13 @@ module Stripe @field_remappings = {} end end - class SubscriptionDetails < Stripe::StripeObject + class SubscriptionDetails < ::Stripe::StripeObject # Set of [key-value pairs](https://stripe.com/docs/api/metadata) defined as subscription metadata when an invoice is created. Becomes an immutable snapshot of the subscription metadata at the time of invoice finalization. # *Note: This attribute is populated only for invoices created on or after June 29, 2023.* sig { returns(T.nilable(T::Hash[String, String])) } def metadata; end # The subscription that generated this invoice - sig { returns(T.any(String, Stripe::Subscription)) } + sig { returns(T.any(String, ::Stripe::Subscription)) } def subscription; end # Only set for upcoming invoices that preview prorations. The time used to calculate prorations. sig { returns(T.nilable(Integer)) } @@ -359,10 +359,10 @@ module Stripe @field_remappings = {} end end - class PaymentSettings < Stripe::StripeObject - class PaymentMethodOptions < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class PaymentSettings < ::Stripe::StripeObject + class PaymentMethodOptions < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Transaction type of the mandate. sig { returns(T.nilable(String)) } def transaction_type; end @@ -386,7 +386,7 @@ module Stripe @field_remappings = {} end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject # Preferred language of the Bancontact authorization page that the customer is redirected to. sig { returns(String) } def preferred_language; end @@ -397,8 +397,8 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject - class Installments < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Installments < ::Stripe::StripeObject # Whether Installments are enabled for this Invoice. sig { returns(T.nilable(T::Boolean)) } def enabled; end @@ -422,9 +422,9 @@ module Stripe @field_remappings = {} end end - class CustomerBalance < Stripe::StripeObject - class BankTransfer < Stripe::StripeObject - class EuBankTransfer < Stripe::StripeObject + class CustomerBalance < ::Stripe::StripeObject + class BankTransfer < ::Stripe::StripeObject + class EuBankTransfer < ::Stripe::StripeObject # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -461,7 +461,7 @@ module Stripe @field_remappings = {} end end - class Konbini < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -469,7 +469,7 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -477,9 +477,9 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject - class FinancialConnections < Stripe::StripeObject - class Filters < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject + class FinancialConnections < ::Stripe::StripeObject + class Filters < ::Stripe::StripeObject # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -571,8 +571,8 @@ module Stripe @field_remappings = {} end end - class Rendering < Stripe::StripeObject - class Pdf < Stripe::StripeObject + class Rendering < ::Stripe::StripeObject + class Pdf < ::Stripe::StripeObject # Page size of invoice pdf. Options include a4, letter, and auto. If set to auto, page size will be switched to a4 or letter based on customer locale. sig { returns(T.nilable(String)) } def page_size; end @@ -602,15 +602,15 @@ module Stripe @field_remappings = {} end end - class ShippingCost < Stripe::StripeObject - class Tax < Stripe::StripeObject + class ShippingCost < ::Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. sig { returns(Integer) } def amount; end # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # # Related guide: [Tax rates](/billing/taxes/tax-rates) - sig { returns(Stripe::TaxRate) } + sig { returns(::Stripe::TaxRate) } def rate; end # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. sig { returns(T.nilable(String)) } @@ -635,7 +635,7 @@ module Stripe sig { returns(Integer) } def amount_total; end # The ID of the ShippingRate for this invoice. - sig { returns(T.nilable(T.any(String, Stripe::ShippingRate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::ShippingRate))) } def shipping_rate; end # The taxes applied to the shipping rate. sig { returns(T.nilable(T::Array[Tax])) } @@ -647,8 +647,8 @@ module Stripe @field_remappings = {} end end - class ShippingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class ShippingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -696,7 +696,7 @@ module Stripe @field_remappings = {} end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # The time that the invoice draft was finalized. sig { returns(T.nilable(Integer)) } def finalized_at; end @@ -716,8 +716,8 @@ module Stripe @field_remappings = {} end end - class ThresholdReason < Stripe::StripeObject - class ItemReason < Stripe::StripeObject + class ThresholdReason < ::Stripe::StripeObject + class ItemReason < ::Stripe::StripeObject # The IDs of the line items that triggered the threshold invoice. sig { returns(T::Array[String]) } def line_item_ids; end @@ -744,12 +744,12 @@ module Stripe @field_remappings = {} end end - class TotalDiscountAmount < Stripe::StripeObject + class TotalDiscountAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the discount. sig { returns(Integer) } def amount; end # The discount that was applied to get this discount amount. - sig { returns(T.any(String, Stripe::Discount)) } + sig { returns(T.any(String, ::Stripe::Discount)) } def discount; end def self.inner_class_types @inner_class_types = {} @@ -758,15 +758,15 @@ module Stripe @field_remappings = {} end end - class TotalPretaxCreditAmount < Stripe::StripeObject + class TotalPretaxCreditAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the pretax credit amount. sig { returns(Integer) } def amount; end # The credit balance transaction that was applied to get this pretax credit amount. - sig { returns(T.nilable(T.any(String, Stripe::Billing::CreditBalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Billing::CreditBalanceTransaction))) } def credit_balance_transaction; end # The discount that was applied to get this pretax credit amount. - sig { returns(T.nilable(T.any(String, Stripe::Discount))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Discount))) } def discount; end # Type of the pretax credit amount referenced. sig { returns(String) } @@ -778,8 +778,8 @@ module Stripe @field_remappings = {} end end - class TotalTax < Stripe::StripeObject - class TaxRateDetails < Stripe::StripeObject + class TotalTax < ::Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject # Attribute for field tax_rate sig { returns(String) } def tax_rate; end @@ -822,7 +822,7 @@ module Stripe sig { returns(T.nilable(String)) } def account_name; end # The account tax IDs associated with the invoice. Only editable when the invoice is a draft. - sig { returns(T.nilable(T::Array[T.any(String, Stripe::TaxId)])) } + sig { returns(T.nilable(T::Array[T.any(String, ::Stripe::TaxId)])) } def account_tax_ids; end # Final amount due at this time for this invoice. If the invoice's total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the `amount_due` may be 0. If there is a positive `starting_balance` for the invoice (the customer owes money), the `amount_due` will also take that into account. The charge that gets generated for the invoice will be for the amount specified in `amount_due`. sig { returns(Integer) } @@ -840,7 +840,7 @@ module Stripe sig { returns(Integer) } def amount_shipping; end # ID of the Connect Application that created the invoice. - sig { returns(T.nilable(T.any(String, Stripe::Application))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Application))) } def application; end # Number of payment attempts made for this invoice, from the perspective of the payment retry schedule. Any payment attempt counts as the first attempt, and subsequently only automatic retries increment the attempt count. In other words, manual payment attempts after the first attempt do not affect the retry schedule. If a failure is returned with a non-retryable return code, the invoice can no longer be retried unless a new payment method is obtained. Retries will continue to be scheduled, and attempt_count will continue to increment, but retries will only be executed if a new payment method is obtained. sig { returns(Integer) } @@ -884,7 +884,7 @@ module Stripe sig { returns(T.nilable(T::Array[CustomField])) } def custom_fields; end # The ID of the customer who will be billed. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # The customer's address. Until the invoice is finalized, this field will equal `customer.address`. Once the invoice is finalized, this field will no longer be updated. sig { returns(T.nilable(CustomerAddress)) } @@ -908,21 +908,21 @@ module Stripe sig { returns(T.nilable(T::Array[CustomerTaxId])) } def customer_tax_ids; end # ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def default_payment_method; end # ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source. sig { - returns(T.nilable(T.any(String, T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source)))) + returns(T.nilable(T.any(String, T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source)))) } def default_source; end # The tax rates applied to this invoice, if any. - sig { returns(T::Array[Stripe::TaxRate]) } + sig { returns(T::Array[::Stripe::TaxRate]) } def default_tax_rates; end # An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard. sig { returns(T.nilable(String)) } def description; end # The discounts applied to the invoice. Line item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount. - sig { returns(T::Array[T.any(String, Stripe::Discount)]) } + sig { returns(T::Array[T.any(String, ::Stripe::Discount)]) } def discounts; end # The date on which payment for this invoice is due. This value will be `null` for invoices where `collection_method=charge_automatically`. sig { returns(T.nilable(Integer)) } @@ -955,10 +955,10 @@ module Stripe sig { returns(T.nilable(LastFinalizationError)) } def last_finalization_error; end # The ID of the most recent non-draft revision of this invoice - sig { returns(T.nilable(T.any(String, Stripe::Invoice))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Invoice))) } def latest_revision; end # The individual line items that make up the invoice. `lines` is sorted as follows: (1) pending invoice items (including prorations) in reverse chronological order, (2) subscription items in reverse chronological order, and (3) invoice items added after invoice creation in chronological order. - sig { returns(Stripe::ListObject) } + sig { returns(::Stripe::ListObject) } def lines; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -976,7 +976,7 @@ module Stripe sig { returns(String) } def object; end # The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def on_behalf_of; end # The parent that generated this invoice sig { returns(T.nilable(Parent)) } @@ -985,7 +985,7 @@ module Stripe sig { returns(PaymentSettings) } def payment_settings; end # Payments for this invoice - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def payments; end # End of the usage period during which invoice items were added to this invoice. This looks back one period for a subscription invoice. Use the [line item period](/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price. sig { returns(Integer) } @@ -1030,7 +1030,7 @@ module Stripe sig { returns(T.nilable(Integer)) } def subtotal_excluding_tax; end # ID of the test clock this invoice belongs to. - sig { returns(T.nilable(T.any(String, Stripe::TestHelpers::TestClock))) } + sig { returns(T.nilable(T.any(String, ::Stripe::TestHelpers::TestClock))) } def test_clock; end # Attribute for field threshold_reason sig { returns(T.nilable(ThresholdReason)) } @@ -1058,13 +1058,13 @@ module Stripe def deleted; end # Adds multiple line items to an invoice. This is only possible when an invoice is still a draft. sig { - params(params: T.any(::Stripe::InvoiceAddLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceAddLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def add_lines(params = {}, opts = {}); end # Adds multiple line items to an invoice. This is only possible when an invoice is still a draft. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceAddLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceAddLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.add_lines(invoice, params = {}, opts = {}); end @@ -1079,7 +1079,7 @@ module Stripe # # See: [Partial payments](https://docs.stripe.com/docs/invoicing/partial-payments) to learn more. sig { - params(params: T.any(::Stripe::InvoiceAttachPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceAttachPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def attach_payment(params = {}, opts = {}); end @@ -1094,13 +1094,13 @@ module Stripe # # See: [Partial payments](https://docs.stripe.com/docs/invoicing/partial-payments) to learn more. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceAttachPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceAttachPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.attach_payment(invoice, params = {}, opts = {}); end # This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](#pay_invoice) or send](https://docs.stripe.com/api#finalize_invoice) the invoice to your customers. sig { - params(params: T.any(::Stripe::InvoiceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.create(params = {}, opts = {}); end @@ -1114,83 +1114,83 @@ module Stripe # # Note: Currency conversion calculations use the latest exchange rates. Exchange rates may vary between the time of the preview and the time of the actual invoice creation. [Learn more](https://docs.stripe.com/currencies/conversions) sig { - params(params: T.any(::Stripe::InvoiceCreatePreviewParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceCreatePreviewParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.create_preview(params = {}, opts = {}); end # Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api#void_invoice). sig { - params(invoice: String, params: T.any(::Stripe::InvoiceDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.delete(invoice, params = {}, opts = {}); end # Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api#void_invoice). sig { - params(params: T.any(::Stripe::InvoiceDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def delete(params = {}, opts = {}); end # Stripe automatically finalizes drafts before sending and attempting payment on invoices. However, if you'd like to finalize a draft invoice manually, you can do so using this method. sig { - params(params: T.any(::Stripe::InvoiceFinalizeInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceFinalizeInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def finalize_invoice(params = {}, opts = {}); end # Stripe automatically finalizes drafts before sending and attempting payment on invoices. However, if you'd like to finalize a draft invoice manually, you can do so using this method. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceFinalizeInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceFinalizeInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.finalize_invoice(invoice, params = {}, opts = {}); end # You can list all invoices, or list the invoices for a specific customer. The invoices are returned sorted by creation date, with the most recently created invoices appearing first. sig { - params(params: T.any(::Stripe::InvoiceListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::InvoiceListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Marking an invoice as uncollectible is useful for keeping track of bad debts that can be written off for accounting purposes. sig { - params(params: T.any(::Stripe::InvoiceMarkUncollectibleParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceMarkUncollectibleParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def mark_uncollectible(params = {}, opts = {}); end # Marking an invoice as uncollectible is useful for keeping track of bad debts that can be written off for accounting purposes. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceMarkUncollectibleParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceMarkUncollectibleParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.mark_uncollectible(invoice, params = {}, opts = {}); end # Stripe automatically creates and then attempts to collect payment on invoices for customers on subscriptions according to your [subscriptions settings](https://dashboard.stripe.com/account/billing/automatic). However, if you'd like to attempt payment on an invoice out of the normal collection schedule or for some other reason, you can do so. sig { - params(params: T.any(::Stripe::InvoicePayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoicePayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def pay(params = {}, opts = {}); end # Stripe automatically creates and then attempts to collect payment on invoices for customers on subscriptions according to your [subscriptions settings](https://dashboard.stripe.com/account/billing/automatic). However, if you'd like to attempt payment on an invoice out of the normal collection schedule or for some other reason, you can do so. sig { - params(invoice: String, params: T.any(::Stripe::InvoicePayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoicePayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.pay(invoice, params = {}, opts = {}); end # Removes multiple line items from an invoice. This is only possible when an invoice is still a draft. sig { - params(params: T.any(::Stripe::InvoiceRemoveLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceRemoveLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def remove_lines(params = {}, opts = {}); end # Removes multiple line items from an invoice. This is only possible when an invoice is still a draft. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceRemoveLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceRemoveLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.remove_lines(invoice, params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::InvoiceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::InvoiceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def self.search(params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::InvoiceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::InvoiceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(::Stripe::SearchResultObject) } def self.search_auto_paging_each(params = {}, opts = {}, &blk); end @@ -1198,7 +1198,7 @@ module Stripe # # Requests made in test-mode result in no emails being sent, despite sending an invoice.sent event. sig { - params(params: T.any(::Stripe::InvoiceSendInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceSendInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def send_invoice(params = {}, opts = {}); end @@ -1206,7 +1206,7 @@ module Stripe # # Requests made in test-mode result in no emails being sent, despite sending an invoice.sent event. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceSendInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceSendInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.send_invoice(invoice, params = {}, opts = {}); end @@ -1217,19 +1217,19 @@ module Stripe # sending reminders for, or [automatically reconciling](https://docs.stripe.com/docs/billing/invoices/reconciliation) invoices, pass # auto_advance=false. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.update(invoice, params = {}, opts = {}); end # Updates multiple line items on an invoice. This is only possible when an invoice is still a draft. sig { - params(params: T.any(::Stripe::InvoiceUpdateLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceUpdateLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def update_lines(params = {}, opts = {}); end # Updates multiple line items on an invoice. This is only possible when an invoice is still a draft. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceUpdateLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceUpdateLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.update_lines(invoice, params = {}, opts = {}); end @@ -1237,7 +1237,7 @@ module Stripe # # Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api#create_invoice) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business. sig { - params(params: T.any(::Stripe::InvoiceVoidInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceVoidInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def void_invoice(params = {}, opts = {}); end @@ -1245,7 +1245,7 @@ module Stripe # # Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api#create_invoice) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceVoidInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceVoidInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def self.void_invoice(invoice, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/invoice_item.rbi b/rbi/stripe/resources/invoice_item.rbi index 34c76689..95215190 100644 --- a/rbi/stripe/resources/invoice_item.rbi +++ b/rbi/stripe/resources/invoice_item.rbi @@ -12,8 +12,8 @@ module Stripe # # Related guides: [Integrate with the Invoicing API](https://stripe.com/docs/invoicing/integration), [Subscription Invoices](https://stripe.com/docs/billing/invoices/subscription#adding-upcoming-invoice-items). class InvoiceItem < APIResource - class Parent < Stripe::StripeObject - class SubscriptionDetails < Stripe::StripeObject + class Parent < ::Stripe::StripeObject + class SubscriptionDetails < ::Stripe::StripeObject # The subscription that generated this invoice item sig { returns(String) } def subscription; end @@ -40,7 +40,7 @@ module Stripe @field_remappings = {} end end - class Period < Stripe::StripeObject + class Period < ::Stripe::StripeObject # The end of the period, which must be greater than or equal to the start. This value is inclusive. sig { returns(Integer) } def end; end @@ -54,8 +54,8 @@ module Stripe @field_remappings = {} end end - class Pricing < Stripe::StripeObject - class PriceDetails < Stripe::StripeObject + class Pricing < ::Stripe::StripeObject + class PriceDetails < ::Stripe::StripeObject # The ID of the price this item is associated with. sig { returns(String) } def price; end @@ -85,13 +85,13 @@ module Stripe @field_remappings = {} end end - class ProrationDetails < Stripe::StripeObject - class DiscountAmount < Stripe::StripeObject + class ProrationDetails < ::Stripe::StripeObject + class DiscountAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the discount. sig { returns(Integer) } def amount; end # The discount that was applied to get this discount amount. - sig { returns(T.any(String, Stripe::Discount)) } + sig { returns(T.any(String, ::Stripe::Discount)) } def discount; end def self.inner_class_types @inner_class_types = {} @@ -117,7 +117,7 @@ module Stripe sig { returns(String) } def currency; end # The ID of the customer who will be billed when this invoice item is billed. - sig { returns(T.any(String, Stripe::Customer)) } + sig { returns(T.any(String, ::Stripe::Customer)) } def customer; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -129,13 +129,13 @@ module Stripe sig { returns(T::Boolean) } def discountable; end # The discounts which apply to the invoice item. Item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount. - sig { returns(T.nilable(T::Array[T.any(String, Stripe::Discount)])) } + sig { returns(T.nilable(T::Array[T.any(String, ::Stripe::Discount)])) } def discounts; end # Unique identifier for the object. sig { returns(String) } def id; end # The ID of the invoice this invoice item belongs to. - sig { returns(T.nilable(T.any(String, Stripe::Invoice))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Invoice))) } def invoice; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -168,41 +168,41 @@ module Stripe sig { returns(Integer) } def quantity; end # The tax rates which apply to the invoice item. When set, the `default_tax_rates` on the invoice do not apply to this invoice item. - sig { returns(T.nilable(T::Array[Stripe::TaxRate])) } + sig { returns(T.nilable(T::Array[::Stripe::TaxRate])) } def tax_rates; end # ID of the test clock this invoice item belongs to. - sig { returns(T.nilable(T.any(String, Stripe::TestHelpers::TestClock))) } + sig { returns(T.nilable(T.any(String, ::Stripe::TestHelpers::TestClock))) } def test_clock; end # Always true for a deleted object sig { returns(T.nilable(T::Boolean)) } def deleted; end # Creates an item to be added to a draft invoice (up to 250 items per invoice). If no invoice is specified, the item will be on the next invoice created for the customer specified. sig { - params(params: T.any(::Stripe::InvoiceItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceItem) + params(params: T.any(::Stripe::InvoiceItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceItem) } def self.create(params = {}, opts = {}); end # Deletes an invoice item, removing it from an invoice. Deleting invoice items is only possible when they're not attached to invoices, or if it's attached to a draft invoice. sig { - params(invoiceitem: String, params: T.any(::Stripe::InvoiceItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceItem) + params(invoiceitem: String, params: T.any(::Stripe::InvoiceItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceItem) } def self.delete(invoiceitem, params = {}, opts = {}); end # Deletes an invoice item, removing it from an invoice. Deleting invoice items is only possible when they're not attached to invoices, or if it's attached to a draft invoice. sig { - params(params: T.any(::Stripe::InvoiceItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceItem) + params(params: T.any(::Stripe::InvoiceItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceItem) } def delete(params = {}, opts = {}); end # Returns a list of your invoice items. Invoice items are returned sorted by creation date, with the most recently created invoice items appearing first. sig { - params(params: T.any(::Stripe::InvoiceItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::InvoiceItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the amount or description of an invoice item on an upcoming invoice. Updating an invoice item is only possible before the invoice it's attached to is closed. sig { - params(invoiceitem: String, params: T.any(::Stripe::InvoiceItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceItem) + params(invoiceitem: String, params: T.any(::Stripe::InvoiceItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceItem) } def self.update(invoiceitem, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/invoice_line_item.rbi b/rbi/stripe/resources/invoice_line_item.rbi index 0b148dd8..20892a62 100644 --- a/rbi/stripe/resources/invoice_line_item.rbi +++ b/rbi/stripe/resources/invoice_line_item.rbi @@ -7,12 +7,12 @@ module Stripe # # Each line item is backed by either an [invoice item](https://stripe.com/docs/api/invoiceitems) or a [subscription item](https://stripe.com/docs/api/subscription_items). class InvoiceLineItem < APIResource - class DiscountAmount < Stripe::StripeObject + class DiscountAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the discount. sig { returns(Integer) } def amount; end # The discount that was applied to get this discount amount. - sig { returns(T.any(String, Stripe::Discount)) } + sig { returns(T.any(String, ::Stripe::Discount)) } def discount; end def self.inner_class_types @inner_class_types = {} @@ -21,10 +21,10 @@ module Stripe @field_remappings = {} end end - class Parent < Stripe::StripeObject - class InvoiceItemDetails < Stripe::StripeObject - class ProrationDetails < Stripe::StripeObject - class CreditedItems < Stripe::StripeObject + class Parent < ::Stripe::StripeObject + class InvoiceItemDetails < ::Stripe::StripeObject + class ProrationDetails < ::Stripe::StripeObject + class CreditedItems < ::Stripe::StripeObject # Invoice containing the credited invoice line items sig { returns(String) } def invoice; end @@ -67,9 +67,9 @@ module Stripe @field_remappings = {} end end - class SubscriptionItemDetails < Stripe::StripeObject - class ProrationDetails < Stripe::StripeObject - class CreditedItems < Stripe::StripeObject + class SubscriptionItemDetails < ::Stripe::StripeObject + class ProrationDetails < ::Stripe::StripeObject + class CreditedItems < ::Stripe::StripeObject # Invoice containing the credited invoice line items sig { returns(String) } def invoice; end @@ -134,7 +134,7 @@ module Stripe @field_remappings = {} end end - class Period < Stripe::StripeObject + class Period < ::Stripe::StripeObject # The end of the period, which must be greater than or equal to the start. This value is inclusive. sig { returns(Integer) } def end; end @@ -148,15 +148,15 @@ module Stripe @field_remappings = {} end end - class PretaxCreditAmount < Stripe::StripeObject + class PretaxCreditAmount < ::Stripe::StripeObject # The amount, in cents (or local equivalent), of the pretax credit amount. sig { returns(Integer) } def amount; end # The credit balance transaction that was applied to get this pretax credit amount. - sig { returns(T.nilable(T.any(String, Stripe::Billing::CreditBalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Billing::CreditBalanceTransaction))) } def credit_balance_transaction; end # The discount that was applied to get this pretax credit amount. - sig { returns(T.nilable(T.any(String, Stripe::Discount))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Discount))) } def discount; end # Type of the pretax credit amount referenced. sig { returns(String) } @@ -168,8 +168,8 @@ module Stripe @field_remappings = {} end end - class Pricing < Stripe::StripeObject - class PriceDetails < Stripe::StripeObject + class Pricing < ::Stripe::StripeObject + class PriceDetails < ::Stripe::StripeObject # The ID of the price this item is associated with. sig { returns(String) } def price; end @@ -199,8 +199,8 @@ module Stripe @field_remappings = {} end end - class Tax < Stripe::StripeObject - class TaxRateDetails < Stripe::StripeObject + class Tax < ::Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject # Attribute for field tax_rate sig { returns(String) } def tax_rate; end @@ -252,7 +252,7 @@ module Stripe sig { returns(T::Boolean) } def discountable; end # The discounts applied to the invoice line item. Line item discounts are applied before invoice discounts. Use `expand[]=discounts` to expand each discount. - sig { returns(T::Array[T.any(String, Stripe::Discount)]) } + sig { returns(T::Array[T.any(String, ::Stripe::Discount)]) } def discounts; end # Unique identifier for the object. sig { returns(String) } @@ -285,7 +285,7 @@ module Stripe sig { returns(T.nilable(Integer)) } def quantity; end # Attribute for field subscription - sig { returns(T.nilable(T.any(String, Stripe::Subscription))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Subscription))) } def subscription; end # The tax information of the line item. sig { returns(T.nilable(T::Array[Tax])) } @@ -295,7 +295,7 @@ module Stripe # item and the invoice line item, so updates on this endpoint will propagate to the invoice item as well. # Updating an invoice's line item is only possible before the invoice is finalized. sig { - params(invoice: String, line_item_id: String, params: T.any(::Stripe::InvoiceLineItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceLineItem) + params(invoice: String, line_item_id: String, params: T.any(::Stripe::InvoiceLineItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceLineItem) } def self.update(invoice, line_item_id, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/invoice_payment.rbi b/rbi/stripe/resources/invoice_payment.rbi index b99d1474..dd764652 100644 --- a/rbi/stripe/resources/invoice_payment.rbi +++ b/rbi/stripe/resources/invoice_payment.rbi @@ -12,13 +12,16 @@ module Stripe # This resource and its endpoints allows you to easily track if a payment is associated with a specific invoice and # monitor the allocation details of the payments. class InvoicePayment < APIResource - class Payment < Stripe::StripeObject + class Payment < ::Stripe::StripeObject # ID of the successful charge for this payment when `type` is `charge`.Note: charge is only surfaced if the charge object is not associated with a payment intent. If the charge object does have a payment intent, the Invoice Payment surfaces the payment intent instead. - sig { returns(T.nilable(T.any(String, Stripe::Charge))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Charge))) } def charge; end # ID of the PaymentIntent associated with this payment when `type` is `payment_intent`. Note: This property is only populated for invoices finalized on or after March 15th, 2019. - sig { returns(T.nilable(T.any(String, Stripe::PaymentIntent))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntent))) } def payment_intent; end + # ID of the PaymentRecord associated with this payment when `type` is `payment_record`. + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentRecord))) } + def payment_record; end # Type of payment object associated with this invoice payment. sig { returns(String) } def type; end @@ -29,7 +32,7 @@ module Stripe @field_remappings = {} end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # The time that the payment was canceled. sig { returns(T.nilable(Integer)) } def canceled_at; end @@ -59,7 +62,7 @@ module Stripe sig { returns(String) } def id; end # The invoice that was paid. - sig { returns(T.any(String, Stripe::Invoice)) } + sig { returns(T.any(String, ::Stripe::Invoice)) } def invoice; end # Stripe automatically creates a default InvoicePayment when the invoice is finalized, and keeps it synchronized with the invoice’s `amount_remaining`. The PaymentIntent associated with the default payment can’t be edited or canceled directly. sig { returns(T::Boolean) } @@ -81,7 +84,7 @@ module Stripe def status_transitions; end # When retrieving an invoice, there is an includable payments property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of payments. sig { - params(params: T.any(::Stripe::InvoicePaymentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::InvoicePaymentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/invoice_rendering_template.rbi b/rbi/stripe/resources/invoice_rendering_template.rbi index aa2b307f..5324efd6 100644 --- a/rbi/stripe/resources/invoice_rendering_template.rbi +++ b/rbi/stripe/resources/invoice_rendering_template.rbi @@ -32,31 +32,31 @@ module Stripe def version; end # Updates the status of an invoice rendering template to ‘archived' so no new Stripe objects (customers, invoices, etc.) can reference it. The template can also no longer be updated. However, if the template is already set on a Stripe object, it will continue to be applied on invoices generated by it. sig { - params(params: T.any(::Stripe::InvoiceRenderingTemplateArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceRenderingTemplate) + params(params: T.any(::Stripe::InvoiceRenderingTemplateArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceRenderingTemplate) } def archive(params = {}, opts = {}); end # Updates the status of an invoice rendering template to ‘archived' so no new Stripe objects (customers, invoices, etc.) can reference it. The template can also no longer be updated. However, if the template is already set on a Stripe object, it will continue to be applied on invoices generated by it. sig { - params(template: String, params: T.any(::Stripe::InvoiceRenderingTemplateArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceRenderingTemplate) + params(template: String, params: T.any(::Stripe::InvoiceRenderingTemplateArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceRenderingTemplate) } def self.archive(template, params = {}, opts = {}); end # List all templates, ordered by creation date, with the most recently created template appearing first. sig { - params(params: T.any(::Stripe::InvoiceRenderingTemplateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::InvoiceRenderingTemplateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Unarchive an invoice rendering template so it can be used on new Stripe objects again. sig { - params(params: T.any(::Stripe::InvoiceRenderingTemplateUnarchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceRenderingTemplate) + params(params: T.any(::Stripe::InvoiceRenderingTemplateUnarchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceRenderingTemplate) } def unarchive(params = {}, opts = {}); end # Unarchive an invoice rendering template so it can be used on new Stripe objects again. sig { - params(template: String, params: T.any(::Stripe::InvoiceRenderingTemplateUnarchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceRenderingTemplate) + params(template: String, params: T.any(::Stripe::InvoiceRenderingTemplateUnarchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceRenderingTemplate) } def self.unarchive(template, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/issuing/authorization.rbi b/rbi/stripe/resources/issuing/authorization.rbi index cac35f78..5396b167 100644 --- a/rbi/stripe/resources/issuing/authorization.rbi +++ b/rbi/stripe/resources/issuing/authorization.rbi @@ -10,7 +10,7 @@ module Stripe # # Related guide: [Issued card authorizations](https://stripe.com/docs/issuing/purchases/authorizations) class Authorization < APIResource - class AmountDetails < Stripe::StripeObject + class AmountDetails < ::Stripe::StripeObject # The fee charged by the ATM for the cash withdrawal. sig { returns(T.nilable(Integer)) } def atm_fee; end @@ -24,8 +24,8 @@ module Stripe @field_remappings = {} end end - class Fleet < Stripe::StripeObject - class CardholderPromptData < Stripe::StripeObject + class Fleet < ::Stripe::StripeObject + class CardholderPromptData < ::Stripe::StripeObject # [Deprecated] An alphanumeric ID, though typical point of sales only support numeric entry. The card program can be configured to prompt for a vehicle ID, driver ID, or generic ID. sig { returns(T.nilable(String)) } def alphanumeric_id; end @@ -51,8 +51,8 @@ module Stripe @field_remappings = {} end end - class ReportedBreakdown < Stripe::StripeObject - class Fuel < Stripe::StripeObject + class ReportedBreakdown < ::Stripe::StripeObject + class Fuel < ::Stripe::StripeObject # Gross fuel amount that should equal Fuel Quantity multiplied by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -63,7 +63,7 @@ module Stripe @field_remappings = {} end end - class NonFuel < Stripe::StripeObject + class NonFuel < ::Stripe::StripeObject # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -74,7 +74,7 @@ module Stripe @field_remappings = {} end end - class Tax < Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of state or provincial Sales Tax included in the transaction amount. `null` if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -126,7 +126,7 @@ module Stripe @field_remappings = {} end end - class FraudChallenge < Stripe::StripeObject + class FraudChallenge < ::Stripe::StripeObject # The method by which the fraud challenge was delivered to the cardholder. sig { returns(String) } def channel; end @@ -143,7 +143,7 @@ module Stripe @field_remappings = {} end end - class Fuel < Stripe::StripeObject + class Fuel < ::Stripe::StripeObject # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end @@ -166,7 +166,7 @@ module Stripe @field_remappings = {} end end - class MerchantData < Stripe::StripeObject + class MerchantData < ::Stripe::StripeObject # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. sig { returns(String) } def category; end @@ -207,7 +207,7 @@ module Stripe @field_remappings = {} end end - class NetworkData < Stripe::StripeObject + class NetworkData < ::Stripe::StripeObject # Identifier assigned to the acquirer by the card network. Sometimes this value is not provided by the network; in this case, the value will be `null`. sig { returns(T.nilable(String)) } def acquiring_institution_id; end @@ -224,8 +224,8 @@ module Stripe @field_remappings = {} end end - class PendingRequest < Stripe::StripeObject - class AmountDetails < Stripe::StripeObject + class PendingRequest < ::Stripe::StripeObject + class AmountDetails < ::Stripe::StripeObject # The fee charged by the ATM for the cash withdrawal. sig { returns(T.nilable(Integer)) } def atm_fee; end @@ -267,8 +267,8 @@ module Stripe @field_remappings = {} end end - class RequestHistory < Stripe::StripeObject - class AmountDetails < Stripe::StripeObject + class RequestHistory < ::Stripe::StripeObject + class AmountDetails < ::Stripe::StripeObject # The fee charged by the ATM for the cash withdrawal. sig { returns(T.nilable(Integer)) } def atm_fee; end @@ -325,7 +325,7 @@ module Stripe @field_remappings = {} end end - class Treasury < Stripe::StripeObject + class Treasury < ::Stripe::StripeObject # The array of [ReceivedCredits](https://stripe.com/docs/api/treasury/received_credits) associated with this authorization sig { returns(T::Array[String]) } def received_credits; end @@ -342,8 +342,8 @@ module Stripe @field_remappings = {} end end - class VerificationData < Stripe::StripeObject - class AuthenticationExemption < Stripe::StripeObject + class VerificationData < ::Stripe::StripeObject + class AuthenticationExemption < ::Stripe::StripeObject # The entity that requested the exemption, either the acquiring merchant or the Issuing user. sig { returns(String) } def claimed_by; end @@ -357,7 +357,7 @@ module Stripe @field_remappings = {} end end - class ThreeDSecure < Stripe::StripeObject + class ThreeDSecure < ::Stripe::StripeObject # The outcome of the 3D Secure authentication request. sig { returns(String) } def result; end @@ -412,13 +412,13 @@ module Stripe sig { returns(String) } def authorization_method; end # List of balance transactions associated with this authorization. - sig { returns(T::Array[Stripe::BalanceTransaction]) } + sig { returns(T::Array[::Stripe::BalanceTransaction]) } def balance_transactions; end # You can [create physical or virtual cards](https://stripe.com/docs/issuing) that are issued to cardholders. - sig { returns(Stripe::Issuing::Card) } + sig { returns(::Stripe::Issuing::Card) } def card; end # The cardholder to whom this authorization belongs. - sig { returns(T.nilable(T.any(String, Stripe::Issuing::Cardholder))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Issuing::Cardholder))) } def cardholder; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -469,10 +469,10 @@ module Stripe sig { returns(String) } def status; end # [Token](https://stripe.com/docs/api/issuing/tokens/object) object used for this authorization. If a network token was not used for this authorization, this field will be null. - sig { returns(T.nilable(T.any(String, Stripe::Issuing::Token))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Issuing::Token))) } def token; end # List of [transactions](https://stripe.com/docs/api/issuing/transactions) associated with this authorization. - sig { returns(T::Array[Stripe::Issuing::Transaction]) } + sig { returns(T::Array[::Stripe::Issuing::Transaction]) } def transactions; end # [Treasury](https://stripe.com/docs/api/treasury) details related to this authorization if it was created on a [FinancialAccount](https://stripe.com/docs/api/treasury/financial_accounts). sig { returns(T.nilable(Treasury)) } @@ -489,40 +489,40 @@ module Stripe # [Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations) flow. # This method is deprecated. Instead, [respond directly to the webhook request to approve an authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). sig { - params(params: T.any(::Stripe::Issuing::AuthorizationApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(params: T.any(::Stripe::Issuing::AuthorizationApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def approve(params = {}, opts = {}); end # [Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations) flow. # This method is deprecated. Instead, [respond directly to the webhook request to approve an authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). sig { - params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def self.approve(authorization, params = {}, opts = {}); end # [Deprecated] Declines a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations) flow. # This method is deprecated. Instead, [respond directly to the webhook request to decline an authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). sig { - params(params: T.any(::Stripe::Issuing::AuthorizationDeclineParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(params: T.any(::Stripe::Issuing::AuthorizationDeclineParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def decline(params = {}, opts = {}); end # [Deprecated] Declines a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations) flow. # This method is deprecated. Instead, [respond directly to the webhook request to decline an authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). sig { - params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationDeclineParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationDeclineParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def self.decline(authorization, params = {}, opts = {}); end # Returns a list of Issuing Authorization objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::AuthorizationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::AuthorizationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the specified Issuing Authorization object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def self.update(authorization, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/issuing/card.rbi b/rbi/stripe/resources/issuing/card.rbi index 01b1ed7f..16f08cf9 100644 --- a/rbi/stripe/resources/issuing/card.rbi +++ b/rbi/stripe/resources/issuing/card.rbi @@ -6,8 +6,8 @@ module Stripe module Issuing # You can [create physical or virtual cards](https://stripe.com/docs/issuing) that are issued to cardholders. class Card < APIResource - class Shipping < Stripe::StripeObject - class Address < Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -33,8 +33,8 @@ module Stripe @field_remappings = {} end end - class AddressValidation < Stripe::StripeObject - class NormalizedAddress < Stripe::StripeObject + class AddressValidation < ::Stripe::StripeObject + class NormalizedAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -76,7 +76,7 @@ module Stripe @field_remappings = {} end end - class Customs < Stripe::StripeObject + class Customs < ::Stripe::StripeObject # A registration number used for customs in Europe. See [https://www.gov.uk/eori](https://www.gov.uk/eori) for the UK and [https://ec.europa.eu/taxation_customs/business/customs-procedures-import-and-export/customs-procedures/economic-operators-registration-and-identification-number-eori_en](https://ec.europa.eu/taxation_customs/business/customs-procedures-import-and-export/customs-procedures/economic-operators-registration-and-identification-number-eori_en) for the EU. sig { returns(T.nilable(String)) } def eori_number; end @@ -137,8 +137,8 @@ module Stripe @field_remappings = {} end end - class SpendingControls < Stripe::StripeObject - class SpendingLimit < Stripe::StripeObject + class SpendingControls < ::Stripe::StripeObject + class SpendingLimit < ::Stripe::StripeObject # Maximum amount allowed to spend per interval. This amount is in the card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). sig { returns(Integer) } def amount; end @@ -180,8 +180,8 @@ module Stripe @field_remappings = {} end end - class Wallets < Stripe::StripeObject - class ApplePay < Stripe::StripeObject + class Wallets < ::Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject # Apple Pay Eligibility sig { returns(T::Boolean) } def eligible; end @@ -195,7 +195,7 @@ module Stripe @field_remappings = {} end end - class GooglePay < Stripe::StripeObject + class GooglePay < ::Stripe::StripeObject # Google Pay Eligibility sig { returns(T::Boolean) } def eligible; end @@ -234,7 +234,7 @@ module Stripe # An Issuing `Cardholder` object represents an individual or business entity who is [issued](https://stripe.com/docs/issuing) cards. # # Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards/virtual/issue-cards#create-cardholder) - sig { returns(Stripe::Issuing::Cardholder) } + sig { returns(::Stripe::Issuing::Cardholder) } def cardholder; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -273,13 +273,13 @@ module Stripe sig { returns(String) } def object; end # The personalization design object belonging to this card. - sig { returns(T.nilable(T.any(String, Stripe::Issuing::PersonalizationDesign))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Issuing::PersonalizationDesign))) } def personalization_design; end # The latest card that replaces this card, if any. - sig { returns(T.nilable(T.any(String, Stripe::Issuing::Card))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Issuing::Card))) } def replaced_by; end # The card this card replaces, if any. - sig { returns(T.nilable(T.any(String, Stripe::Issuing::Card))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Issuing::Card))) } def replacement_for; end # The reason why the previous card needed to be replaced. sig { returns(T.nilable(String)) } @@ -304,19 +304,19 @@ module Stripe def wallets; end # Creates an Issuing Card object. sig { - params(params: T.any(::Stripe::Issuing::CardCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Card) + params(params: T.any(::Stripe::Issuing::CardCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Card) } def self.create(params = {}, opts = {}); end # Returns a list of Issuing Card objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::CardListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::CardListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the specified Issuing Card object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(card: String, params: T.any(::Stripe::Issuing::CardUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Card) + params(card: String, params: T.any(::Stripe::Issuing::CardUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Card) } def self.update(card, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/issuing/cardholder.rbi b/rbi/stripe/resources/issuing/cardholder.rbi index 1cd8b310..d4be5b6f 100644 --- a/rbi/stripe/resources/issuing/cardholder.rbi +++ b/rbi/stripe/resources/issuing/cardholder.rbi @@ -8,8 +8,8 @@ module Stripe # # Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards/virtual/issue-cards#create-cardholder) class Cardholder < APIResource - class Billing < Stripe::StripeObject - class Address < Stripe::StripeObject + class Billing < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -45,7 +45,7 @@ module Stripe @field_remappings = {} end end - class Company < Stripe::StripeObject + class Company < ::Stripe::StripeObject # Whether the company's business ID number was provided. sig { returns(T::Boolean) } def tax_id_provided; end @@ -56,9 +56,9 @@ module Stripe @field_remappings = {} end end - class Individual < Stripe::StripeObject - class CardIssuing < Stripe::StripeObject - class UserTermsAcceptance < Stripe::StripeObject + class Individual < ::Stripe::StripeObject + class CardIssuing < ::Stripe::StripeObject + class UserTermsAcceptance < ::Stripe::StripeObject # The Unix timestamp marking when the cardholder accepted the Authorized User Terms. sig { returns(T.nilable(Integer)) } def date; end @@ -85,7 +85,7 @@ module Stripe @field_remappings = {} end end - class Dob < Stripe::StripeObject + class Dob < ::Stripe::StripeObject # The day of birth, between 1 and 31. sig { returns(T.nilable(Integer)) } def day; end @@ -102,13 +102,13 @@ module Stripe @field_remappings = {} end end - class Verification < Stripe::StripeObject - class Document < Stripe::StripeObject + class Verification < ::Stripe::StripeObject + class Document < ::Stripe::StripeObject # The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def back; end # The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def front; end def self.inner_class_types @inner_class_types = {} @@ -149,7 +149,7 @@ module Stripe @field_remappings = {} end end - class Requirements < Stripe::StripeObject + class Requirements < ::Stripe::StripeObject # If `disabled_reason` is present, all cards will decline authorizations with `cardholder_verification_required` reason. sig { returns(T.nilable(String)) } def disabled_reason; end @@ -163,8 +163,8 @@ module Stripe @field_remappings = {} end end - class SpendingControls < Stripe::StripeObject - class SpendingLimit < Stripe::StripeObject + class SpendingControls < ::Stripe::StripeObject + class SpendingLimit < ::Stripe::StripeObject # Maximum amount allowed to spend per interval. This amount is in the card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). sig { returns(Integer) } def amount; end @@ -257,19 +257,19 @@ module Stripe def type; end # Creates a new Issuing Cardholder object that can be issued cards. sig { - params(params: T.any(::Stripe::Issuing::CardholderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Cardholder) + params(params: T.any(::Stripe::Issuing::CardholderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Cardholder) } def self.create(params = {}, opts = {}); end # Returns a list of Issuing Cardholder objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::CardholderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::CardholderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the specified Issuing Cardholder object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(cardholder: String, params: T.any(::Stripe::Issuing::CardholderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Cardholder) + params(cardholder: String, params: T.any(::Stripe::Issuing::CardholderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Cardholder) } def self.update(cardholder, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/issuing/dispute.rbi b/rbi/stripe/resources/issuing/dispute.rbi index 004076c8..28a8bd05 100644 --- a/rbi/stripe/resources/issuing/dispute.rbi +++ b/rbi/stripe/resources/issuing/dispute.rbi @@ -8,10 +8,10 @@ module Stripe # # Related guide: [Issuing disputes](https://stripe.com/docs/issuing/purchases/disputes) class Dispute < APIResource - class Evidence < Stripe::StripeObject - class Canceled < Stripe::StripeObject + class Evidence < ::Stripe::StripeObject + class Canceled < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def additional_documentation; end # Date when order was canceled. sig { returns(T.nilable(Integer)) } @@ -47,18 +47,18 @@ module Stripe @field_remappings = {} end end - class Duplicate < Stripe::StripeObject + class Duplicate < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def additional_documentation; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the card statement showing that the product had already been paid for. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def card_statement; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the receipt showing that the product had been paid for in cash. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def cash_receipt; end # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Image of the front and back of the check that was used to pay for the product. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def check_image; end # Explanation of why the cardholder is disputing this transaction. sig { returns(T.nilable(String)) } @@ -73,9 +73,9 @@ module Stripe @field_remappings = {} end end - class Fraudulent < Stripe::StripeObject + class Fraudulent < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def additional_documentation; end # Explanation of why the cardholder is disputing this transaction. sig { returns(T.nilable(String)) } @@ -87,9 +87,9 @@ module Stripe @field_remappings = {} end end - class MerchandiseNotAsDescribed < Stripe::StripeObject + class MerchandiseNotAsDescribed < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def additional_documentation; end # Explanation of why the cardholder is disputing this transaction. sig { returns(T.nilable(String)) } @@ -113,9 +113,9 @@ module Stripe @field_remappings = {} end end - class NoValidAuthorization < Stripe::StripeObject + class NoValidAuthorization < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def additional_documentation; end # Explanation of why the cardholder is disputing this transaction. sig { returns(T.nilable(String)) } @@ -127,9 +127,9 @@ module Stripe @field_remappings = {} end end - class NotReceived < Stripe::StripeObject + class NotReceived < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def additional_documentation; end # Date when the cardholder expected to receive the product. sig { returns(T.nilable(Integer)) } @@ -150,9 +150,9 @@ module Stripe @field_remappings = {} end end - class Other < Stripe::StripeObject + class Other < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def additional_documentation; end # Explanation of why the cardholder is disputing this transaction. sig { returns(T.nilable(String)) } @@ -170,9 +170,9 @@ module Stripe @field_remappings = {} end end - class ServiceNotAsDescribed < Stripe::StripeObject + class ServiceNotAsDescribed < ::Stripe::StripeObject # (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def additional_documentation; end # Date when order was canceled. sig { returns(T.nilable(Integer)) } @@ -236,7 +236,7 @@ module Stripe @field_remappings = {} end end - class Treasury < Stripe::StripeObject + class Treasury < ::Stripe::StripeObject # The Treasury [DebitReversal](https://stripe.com/docs/api/treasury/debit_reversals) representing this Issuing dispute sig { returns(T.nilable(String)) } def debit_reversal; end @@ -254,7 +254,7 @@ module Stripe sig { returns(Integer) } def amount; end # List of balance transactions associated with the dispute. - sig { returns(T.nilable(T::Array[Stripe::BalanceTransaction])) } + sig { returns(T.nilable(T::Array[::Stripe::BalanceTransaction])) } def balance_transactions; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -284,38 +284,38 @@ module Stripe sig { returns(String) } def status; end # The transaction being disputed. - sig { returns(T.any(String, Stripe::Issuing::Transaction)) } + sig { returns(T.any(String, ::Stripe::Issuing::Transaction)) } def transaction; end # [Treasury](https://stripe.com/docs/api/treasury) details related to this dispute if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts sig { returns(T.nilable(Treasury)) } def treasury; end # Creates an Issuing Dispute object. Individual pieces of evidence within the evidence object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to [Dispute reasons and evidence](https://docs.stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence) for more details about evidence requirements. sig { - params(params: T.any(::Stripe::Issuing::DisputeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Dispute) + params(params: T.any(::Stripe::Issuing::DisputeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Dispute) } def self.create(params = {}, opts = {}); end # Returns a list of Issuing Dispute objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::DisputeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::DisputeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Submits an Issuing Dispute to the card network. Stripe validates that all evidence fields required for the dispute's reason are present. For more details, see [Dispute reasons and evidence](https://docs.stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence). sig { - params(params: T.any(::Stripe::Issuing::DisputeSubmitParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Dispute) + params(params: T.any(::Stripe::Issuing::DisputeSubmitParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Dispute) } def submit(params = {}, opts = {}); end # Submits an Issuing Dispute to the card network. Stripe validates that all evidence fields required for the dispute's reason are present. For more details, see [Dispute reasons and evidence](https://docs.stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence). sig { - params(dispute: String, params: T.any(::Stripe::Issuing::DisputeSubmitParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Dispute) + params(dispute: String, params: T.any(::Stripe::Issuing::DisputeSubmitParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Dispute) } def self.submit(dispute, params = {}, opts = {}); end # Updates the specified Issuing Dispute object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on the evidence object can be unset by passing in an empty string. sig { - params(dispute: String, params: T.any(::Stripe::Issuing::DisputeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Dispute) + params(dispute: String, params: T.any(::Stripe::Issuing::DisputeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Dispute) } def self.update(dispute, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/issuing/personalization_design.rbi b/rbi/stripe/resources/issuing/personalization_design.rbi index dc70af2a..a66895e9 100644 --- a/rbi/stripe/resources/issuing/personalization_design.rbi +++ b/rbi/stripe/resources/issuing/personalization_design.rbi @@ -6,7 +6,7 @@ module Stripe module Issuing # A Personalization Design is a logical grouping of a Physical Bundle, card logo, and carrier text that represents a product line. class PersonalizationDesign < APIResource - class CarrierText < Stripe::StripeObject + class CarrierText < ::Stripe::StripeObject # The footer body text of the carrier letter. sig { returns(T.nilable(String)) } def footer_body; end @@ -26,7 +26,7 @@ module Stripe @field_remappings = {} end end - class Preferences < Stripe::StripeObject + class Preferences < ::Stripe::StripeObject # Whether we use this personalization design to create cards when one isn't specified. A connected account uses the Connect platform's default design if no personalization design is set as the default design. sig { returns(T::Boolean) } def is_default; end @@ -40,7 +40,7 @@ module Stripe @field_remappings = {} end end - class RejectionReasons < Stripe::StripeObject + class RejectionReasons < ::Stripe::StripeObject # The reason(s) the card logo was rejected. sig { returns(T.nilable(T::Array[String])) } def card_logo; end @@ -55,7 +55,7 @@ module Stripe end end # The file for the card logo to use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def card_logo; end # Hash containing carrier text, for use with physical bundles that support carrier text. sig { returns(T.nilable(CarrierText)) } @@ -82,7 +82,7 @@ module Stripe sig { returns(String) } def object; end # The physical bundle object belonging to this personalization design. - sig { returns(T.any(String, Stripe::Issuing::PhysicalBundle)) } + sig { returns(T.any(String, ::Stripe::Issuing::PhysicalBundle)) } def physical_bundle; end # Attribute for field preferences sig { returns(Preferences) } @@ -95,19 +95,19 @@ module Stripe def status; end # Creates a personalization design object. sig { - params(params: T.any(::Stripe::Issuing::PersonalizationDesignCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::PersonalizationDesign) + params(params: T.any(::Stripe::Issuing::PersonalizationDesignCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::PersonalizationDesign) } def self.create(params = {}, opts = {}); end # Returns a list of personalization design objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::PersonalizationDesignListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::PersonalizationDesignListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates a card personalization object. sig { - params(personalization_design: String, params: T.any(::Stripe::Issuing::PersonalizationDesignUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::PersonalizationDesign) + params(personalization_design: String, params: T.any(::Stripe::Issuing::PersonalizationDesignUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::PersonalizationDesign) } def self.update(personalization_design, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/issuing/physical_bundle.rbi b/rbi/stripe/resources/issuing/physical_bundle.rbi index 4a239e94..d6ed04db 100644 --- a/rbi/stripe/resources/issuing/physical_bundle.rbi +++ b/rbi/stripe/resources/issuing/physical_bundle.rbi @@ -6,7 +6,7 @@ module Stripe module Issuing # A Physical Bundle represents the bundle of physical items - card stock, carrier letter, and envelope - that is shipped to a cardholder when you create a physical card. class PhysicalBundle < APIResource - class Features < Stripe::StripeObject + class Features < ::Stripe::StripeObject # The policy for how to use card logo images in a card design with this physical bundle. sig { returns(String) } def card_logo; end @@ -46,7 +46,7 @@ module Stripe def type; end # Returns a list of physical bundle objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::PhysicalBundleListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::PhysicalBundleListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/issuing/token.rbi b/rbi/stripe/resources/issuing/token.rbi index ea47a0c8..a9a48d41 100644 --- a/rbi/stripe/resources/issuing/token.rbi +++ b/rbi/stripe/resources/issuing/token.rbi @@ -6,8 +6,8 @@ module Stripe module Issuing # An issuing token object is created when an issued card is added to a digital wallet. As a [card issuer](https://stripe.com/docs/issuing), you can [view and manage these tokens](https://stripe.com/docs/issuing/controls/token-management) through Stripe. class Token < APIResource - class NetworkData < Stripe::StripeObject - class Device < Stripe::StripeObject + class NetworkData < ::Stripe::StripeObject + class Device < ::Stripe::StripeObject # An obfuscated ID derived from the device ID. sig { returns(T.nilable(String)) } def device_fingerprint; end @@ -33,7 +33,7 @@ module Stripe @field_remappings = {} end end - class Mastercard < Stripe::StripeObject + class Mastercard < ::Stripe::StripeObject # A unique reference ID from MasterCard to represent the card account number. sig { returns(T.nilable(String)) } def card_reference_id; end @@ -53,7 +53,7 @@ module Stripe @field_remappings = {} end end - class Visa < Stripe::StripeObject + class Visa < ::Stripe::StripeObject # A unique reference ID from Visa to represent the card account number. sig { returns(String) } def card_reference_id; end @@ -73,8 +73,8 @@ module Stripe @field_remappings = {} end end - class WalletProvider < Stripe::StripeObject - class CardholderAddress < Stripe::StripeObject + class WalletProvider < ::Stripe::StripeObject + class CardholderAddress < ::Stripe::StripeObject # The street address of the cardholder tokenizing the card. sig { returns(String) } def line1; end @@ -153,7 +153,7 @@ module Stripe end end # Card associated with this token. - sig { returns(T.any(String, Stripe::Issuing::Card)) } + sig { returns(T.any(String, ::Stripe::Issuing::Card)) } def card; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -190,13 +190,13 @@ module Stripe def wallet_provider; end # Lists all Issuing Token objects for a given card. sig { - params(params: T.any(::Stripe::Issuing::TokenListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::TokenListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Attempts to update the specified Issuing Token object to the status specified. sig { - params(token: String, params: T.any(::Stripe::Issuing::TokenUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Token) + params(token: String, params: T.any(::Stripe::Issuing::TokenUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Token) } def self.update(token, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/issuing/transaction.rbi b/rbi/stripe/resources/issuing/transaction.rbi index ed08ec9d..daa98af1 100644 --- a/rbi/stripe/resources/issuing/transaction.rbi +++ b/rbi/stripe/resources/issuing/transaction.rbi @@ -10,7 +10,7 @@ module Stripe # # Related guide: [Issued card transactions](https://stripe.com/docs/issuing/purchases/transactions) class Transaction < APIResource - class AmountDetails < Stripe::StripeObject + class AmountDetails < ::Stripe::StripeObject # The fee charged by the ATM for the cash withdrawal. sig { returns(T.nilable(Integer)) } def atm_fee; end @@ -24,7 +24,7 @@ module Stripe @field_remappings = {} end end - class MerchantData < Stripe::StripeObject + class MerchantData < ::Stripe::StripeObject # A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values. sig { returns(String) } def category; end @@ -65,7 +65,7 @@ module Stripe @field_remappings = {} end end - class NetworkData < Stripe::StripeObject + class NetworkData < ::Stripe::StripeObject # A code created by Stripe which is shared with the merchant to validate the authorization. This field will be populated if the authorization message was approved. The code typically starts with the letter "S", followed by a six-digit number. For example, "S498162". Please note that the code is not guaranteed to be unique across authorizations. sig { returns(T.nilable(String)) } def authorization_code; end @@ -82,9 +82,9 @@ module Stripe @field_remappings = {} end end - class PurchaseDetails < Stripe::StripeObject - class Fleet < Stripe::StripeObject - class CardholderPromptData < Stripe::StripeObject + class PurchaseDetails < ::Stripe::StripeObject + class Fleet < ::Stripe::StripeObject + class CardholderPromptData < ::Stripe::StripeObject # Driver ID. sig { returns(T.nilable(String)) } def driver_id; end @@ -107,8 +107,8 @@ module Stripe @field_remappings = {} end end - class ReportedBreakdown < Stripe::StripeObject - class Fuel < Stripe::StripeObject + class ReportedBreakdown < ::Stripe::StripeObject + class Fuel < ::Stripe::StripeObject # Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -119,7 +119,7 @@ module Stripe @field_remappings = {} end end - class NonFuel < Stripe::StripeObject + class NonFuel < ::Stripe::StripeObject # Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. sig { returns(T.nilable(String)) } def gross_amount_decimal; end @@ -130,7 +130,7 @@ module Stripe @field_remappings = {} end end - class Tax < Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. sig { returns(T.nilable(String)) } def local_amount_decimal; end @@ -182,8 +182,8 @@ module Stripe @field_remappings = {} end end - class Flight < Stripe::StripeObject - class Segment < Stripe::StripeObject + class Flight < ::Stripe::StripeObject + class Segment < ::Stripe::StripeObject # The three-letter IATA airport code of the flight's destination. sig { returns(T.nilable(String)) } def arrival_airport_code; end @@ -231,7 +231,7 @@ module Stripe @field_remappings = {} end end - class Fuel < Stripe::StripeObject + class Fuel < ::Stripe::StripeObject # [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. sig { returns(T.nilable(String)) } def industry_product_code; end @@ -254,7 +254,7 @@ module Stripe @field_remappings = {} end end - class Lodging < Stripe::StripeObject + class Lodging < ::Stripe::StripeObject # The time of checking into the lodging. sig { returns(T.nilable(Integer)) } def check_in_at; end @@ -268,7 +268,7 @@ module Stripe @field_remappings = {} end end - class Receipt < Stripe::StripeObject + class Receipt < ::Stripe::StripeObject # The description of the item. The maximum length of this field is 26 characters. sig { returns(T.nilable(String)) } def description; end @@ -319,7 +319,7 @@ module Stripe @field_remappings = {} end end - class Treasury < Stripe::StripeObject + class Treasury < ::Stripe::StripeObject # The Treasury [ReceivedCredit](https://stripe.com/docs/api/treasury/received_credits) representing this Issuing transaction if it is a refund sig { returns(T.nilable(String)) } def received_credit; end @@ -340,16 +340,16 @@ module Stripe sig { returns(T.nilable(AmountDetails)) } def amount_details; end # The `Authorization` object that led to this transaction. - sig { returns(T.nilable(T.any(String, Stripe::Issuing::Authorization))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Issuing::Authorization))) } def authorization; end # ID of the [balance transaction](https://stripe.com/docs/api/balance_transactions) associated with this transaction. - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def balance_transaction; end # The card used to make this transaction. - sig { returns(T.any(String, Stripe::Issuing::Card)) } + sig { returns(T.any(String, ::Stripe::Issuing::Card)) } def card; end # The cardholder to whom this transaction belongs. - sig { returns(T.nilable(T.any(String, Stripe::Issuing::Cardholder))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Issuing::Cardholder))) } def cardholder; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -358,7 +358,7 @@ module Stripe sig { returns(String) } def currency; end # If you've disputed the transaction, the ID of the dispute. - sig { returns(T.nilable(T.any(String, Stripe::Issuing::Dispute))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Issuing::Dispute))) } def dispute; end # Unique identifier for the object. sig { returns(String) } @@ -388,7 +388,7 @@ module Stripe sig { returns(T.nilable(PurchaseDetails)) } def purchase_details; end # [Token](https://stripe.com/docs/api/issuing/tokens/object) object used for this transaction. If a network token was not used for this transaction, this field will be null. - sig { returns(T.nilable(T.any(String, Stripe::Issuing::Token))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Issuing::Token))) } def token; end # [Treasury](https://stripe.com/docs/api/treasury) details related to this transaction if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts sig { returns(T.nilable(Treasury)) } @@ -401,13 +401,13 @@ module Stripe def wallet; end # Returns a list of Issuing Transaction objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the specified Issuing Transaction object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(transaction: String, params: T.any(::Stripe::Issuing::TransactionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Transaction) + params(transaction: String, params: T.any(::Stripe::Issuing::TransactionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Transaction) } def self.update(transaction, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/line_item.rbi b/rbi/stripe/resources/line_item.rbi index 9c8cbbb9..6ee12400 100644 --- a/rbi/stripe/resources/line_item.rbi +++ b/rbi/stripe/resources/line_item.rbi @@ -5,7 +5,7 @@ module Stripe # A line item. class LineItem < APIResource - class Discount < Stripe::StripeObject + class Discount < ::Stripe::StripeObject # The amount discounted. sig { returns(Integer) } def amount; end @@ -13,7 +13,7 @@ module Stripe # It contains information about when the discount began, when it will end, and what it is applied to. # # Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts) - sig { returns(Stripe::Discount) } + sig { returns(::Stripe::Discount) } def discount; end def self.inner_class_types @inner_class_types = {} @@ -22,14 +22,14 @@ module Stripe @field_remappings = {} end end - class Tax < Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. sig { returns(Integer) } def amount; end # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # # Related guide: [Tax rates](/billing/taxes/tax-rates) - sig { returns(Stripe::TaxRate) } + sig { returns(::Stripe::TaxRate) } def rate; end # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. sig { returns(T.nilable(String)) } @@ -72,7 +72,7 @@ module Stripe sig { returns(String) } def object; end # The price used to generate the line item. - sig { returns(T.nilable(Stripe::Price)) } + sig { returns(T.nilable(::Stripe::Price)) } def price; end # The quantity of products being purchased. sig { returns(T.nilable(Integer)) } diff --git a/rbi/stripe/resources/mandate.rbi b/rbi/stripe/resources/mandate.rbi index 9e317616..d1c2fb36 100644 --- a/rbi/stripe/resources/mandate.rbi +++ b/rbi/stripe/resources/mandate.rbi @@ -5,8 +5,8 @@ module Stripe # A Mandate is a record of the permission that your customer gives you to debit their payment method. class Mandate < APIResource - class CustomerAcceptance < Stripe::StripeObject - class Offline < Stripe::StripeObject + class CustomerAcceptance < ::Stripe::StripeObject + class Offline < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -14,7 +14,7 @@ module Stripe @field_remappings = {} end end - class Online < Stripe::StripeObject + class Online < ::Stripe::StripeObject # The customer accepts the mandate from this IP address. sig { returns(T.nilable(String)) } def ip_address; end @@ -47,7 +47,7 @@ module Stripe @field_remappings = {} end end - class MultiUse < Stripe::StripeObject + class MultiUse < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -55,8 +55,8 @@ module Stripe @field_remappings = {} end end - class PaymentMethodDetails < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject + class PaymentMethodDetails < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject # List of Stripe products where this mandate can be selected automatically. sig { returns(T.nilable(T::Array[String])) } def default_for; end @@ -76,7 +76,7 @@ module Stripe @field_remappings = {} end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -84,7 +84,7 @@ module Stripe @field_remappings = {} end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject # The URL of the mandate. This URL generally contains sensitive information about the customer and should be shared with them exclusively. sig { returns(String) } def url; end @@ -95,7 +95,7 @@ module Stripe @field_remappings = {} end end - class BacsDebit < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject # The status of the mandate on the Bacs network. Can be one of `pending`, `revoked`, `refused`, or `accepted`. sig { returns(String) } def network_status; end @@ -115,7 +115,7 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject + class Card < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -123,7 +123,7 @@ module Stripe @field_remappings = {} end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -131,7 +131,7 @@ module Stripe @field_remappings = {} end end - class KakaoPay < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -139,7 +139,7 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -147,7 +147,7 @@ module Stripe @field_remappings = {} end end - class KrCard < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -155,7 +155,7 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -163,7 +163,7 @@ module Stripe @field_remappings = {} end end - class NaverPay < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -171,7 +171,7 @@ module Stripe @field_remappings = {} end end - class NzBankAccount < Stripe::StripeObject + class NzBankAccount < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -179,7 +179,7 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer. sig { returns(T.nilable(String)) } def billing_agreement_id; end @@ -193,7 +193,7 @@ module Stripe @field_remappings = {} end end - class RevolutPay < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -201,7 +201,7 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject # The unique reference of the mandate. sig { returns(String) } def reference; end @@ -215,7 +215,7 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject # Mandate collection method sig { returns(T.nilable(String)) } def collection_method; end @@ -301,7 +301,7 @@ module Stripe @field_remappings = {} end end - class SingleUse < Stripe::StripeObject + class SingleUse < ::Stripe::StripeObject # The amount of the payment on a single use mandate. sig { returns(Integer) } def amount; end @@ -334,7 +334,7 @@ module Stripe sig { returns(T.nilable(String)) } def on_behalf_of; end # ID of the payment method associated with this mandate. - sig { returns(T.any(String, Stripe::PaymentMethod)) } + sig { returns(T.any(String, ::Stripe::PaymentMethod)) } def payment_method; end # Attribute for field payment_method_details sig { returns(PaymentMethodDetails) } diff --git a/rbi/stripe/resources/payment_attempt_record.rbi b/rbi/stripe/resources/payment_attempt_record.rbi new file mode 100644 index 00000000..9b99f383 --- /dev/null +++ b/rbi/stripe/resources/payment_attempt_record.rbi @@ -0,0 +1,2012 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + # A Payment Attempt Record represents an individual attempt at making a payment, on or off Stripe. + # Each payment attempt tries to collect a fixed amount of money from a fixed customer and payment + # method. Payment Attempt Records are attached to Payment Records. Only one attempt per Payment Record + # can have guaranteed funds. + class PaymentAttemptRecord < APIResource + class Amount < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountAuthorized < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountCanceled < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountFailed < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountGuaranteed < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountRefunded < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountRequested < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class CustomerDetails < ::Stripe::StripeObject + # ID of the Stripe Customer associated with this payment. + sig { returns(T.nilable(String)) } + def customer; end + # The customer's email address. + sig { returns(T.nilable(String)) } + def email; end + # The customer's name. + sig { returns(T.nilable(String)) } + def name; end + # The customer's phone number. + sig { returns(T.nilable(String)) } + def phone; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class PaymentMethodDetails < ::Stripe::StripeObject + class AchCreditTransfer < ::Stripe::StripeObject + # Account number to transfer funds to. + sig { returns(T.nilable(String)) } + def account_number; end + # Name of the bank associated with the routing number. + sig { returns(T.nilable(String)) } + def bank_name; end + # Routing transit number for the bank account to transfer funds to. + sig { returns(T.nilable(String)) } + def routing_number; end + # SWIFT code of the bank associated with the routing number. + sig { returns(T.nilable(String)) } + def swift_code; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AchDebit < ::Stripe::StripeObject + # Type of entity that holds the account. This can be either `individual` or `company`. + sig { returns(T.nilable(String)) } + def account_holder_type; end + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Two-letter ISO code representing the country the bank account is located in. + sig { returns(T.nilable(String)) } + def country; end + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Last four digits of the bank account number. + sig { returns(T.nilable(String)) } + def last4; end + # Routing transit number of the bank account. + sig { returns(T.nilable(String)) } + def routing_number; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AcssDebit < ::Stripe::StripeObject + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Institution number of the bank account + sig { returns(T.nilable(String)) } + def institution_number; end + # Last four digits of the bank account number. + sig { returns(T.nilable(String)) } + def last4; end + # ID of the mandate used to make this payment. + sig { returns(T.nilable(String)) } + def mandate; end + # Transit number of the bank account. + sig { returns(T.nilable(String)) } + def transit_number; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Affirm < ::Stripe::StripeObject + # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. + sig { returns(T.nilable(String)) } + def location; end + # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. + sig { returns(T.nilable(String)) } + def reader; end + # The Affirm transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AfterpayClearpay < ::Stripe::StripeObject + # The Afterpay order ID associated with this payment intent. + sig { returns(T.nilable(String)) } + def order_id; end + # Order identifier shown to the merchant in Afterpay’s online portal. + sig { returns(T.nilable(String)) } + def reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Alipay < ::Stripe::StripeObject + # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same. + sig { returns(T.nilable(String)) } + def buyer_id; end + # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Transaction ID of this particular Alipay transaction. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Alma < ::Stripe::StripeObject + class Installments < ::Stripe::StripeObject + # The number of installments. + sig { returns(Integer) } + def count; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field installments + sig { returns(T.nilable(Installments)) } + def installments; end + # The Alma transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {installments: Installments} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmazonPay < ::Stripe::StripeObject + class Funding < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + sig { returns(T.nilable(String)) } + def brand; end + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + sig { returns(T.nilable(String)) } + def country; end + # Two-digit number representing the card's expiration month. + sig { returns(T.nilable(Integer)) } + def exp_month; end + # Four-digit number representing the card's expiration year. + sig { returns(T.nilable(Integer)) } + def exp_year; end + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + sig { returns(T.nilable(String)) } + def funding; end + # The last four digits of the card. + sig { returns(T.nilable(String)) } + def last4; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field card + sig { returns(T.nilable(Card)) } + def card; end + # funding type of the underlying payment method. + sig { returns(T.nilable(String)) } + def type; end + def self.inner_class_types + @inner_class_types = {card: Card} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field funding + sig { returns(T.nilable(Funding)) } + def funding; end + # The Amazon Pay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {funding: Funding} + end + def self.field_remappings + @field_remappings = {} + end + end + class AuBecsDebit < ::Stripe::StripeObject + # Bank-State-Branch number of the bank account. + sig { returns(T.nilable(String)) } + def bsb_number; end + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Last four digits of the bank account number. + sig { returns(T.nilable(String)) } + def last4; end + # ID of the mandate used to make this payment. + sig { returns(T.nilable(String)) } + def mandate; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class BacsDebit < ::Stripe::StripeObject + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Last four digits of the bank account number. + sig { returns(T.nilable(String)) } + def last4; end + # ID of the mandate used to make this payment. + sig { returns(T.nilable(String)) } + def mandate; end + # Sort code of the bank account. (e.g., `10-20-30`) + sig { returns(T.nilable(String)) } + def sort_code; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Bancontact < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_code; end + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Bank Identifier Code of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bic; end + # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } + def generated_sepa_debit; end + # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } + def generated_sepa_debit_mandate; end + # Last four characters of the IBAN. + sig { returns(T.nilable(String)) } + def iban_last4; end + # Preferred language of the Bancontact authorization page that the customer is redirected to. + # Can be one of `en`, `de`, `fr`, or `nl` + sig { returns(T.nilable(String)) } + def preferred_language; end + # Owner's verified full name. Values are verified or provided by Bancontact directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Billie < ::Stripe::StripeObject + # The Billie transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(T.nilable(String)) } + def line1; end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # A representation of a physical address. + sig { returns(Address) } + def address; end + # The billing email associated with the method of payment. + sig { returns(T.nilable(String)) } + def email; end + # The billing name associated with the method of payment. + sig { returns(T.nilable(String)) } + def name; end + # The billing phone number associated with the method of payment. + sig { returns(T.nilable(String)) } + def phone; end + def self.inner_class_types + @inner_class_types = {address: Address} + end + def self.field_remappings + @field_remappings = {} + end + end + class Blik < ::Stripe::StripeObject + # A unique and immutable identifier assigned by BLIK to every buyer. + sig { returns(T.nilable(String)) } + def buyer_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Boleto < ::Stripe::StripeObject + # The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses consumers) + sig { returns(String) } + def tax_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Card < ::Stripe::StripeObject + class Checks < ::Stripe::StripeObject + # Attribute for field address_line1_check + sig { returns(T.nilable(String)) } + def address_line1_check; end + # Attribute for field address_postal_code_check + sig { returns(T.nilable(String)) } + def address_postal_code_check; end + # Attribute for field cvc_check + sig { returns(T.nilable(String)) } + def cvc_check; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class NetworkToken < ::Stripe::StripeObject + # Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction. + sig { returns(T::Boolean) } + def used; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class ThreeDSecure < ::Stripe::StripeObject + # Attribute for field authentication_flow + sig { returns(T.nilable(String)) } + def authentication_flow; end + # Attribute for field result + sig { returns(T.nilable(String)) } + def result; end + # Attribute for field result_reason + sig { returns(T.nilable(String)) } + def result_reason; end + # Attribute for field version + sig { returns(T.nilable(String)) } + def version; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Wallet < ::Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject + # Type of the apple_pay transaction, one of `apple_pay` or `apple_pay_later`. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class GooglePay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field apple_pay + sig { returns(T.nilable(ApplePay)) } + def apple_pay; end + # (For tokenized numbers only.) The last four digits of the device account number. + sig { returns(T.nilable(String)) } + def dynamic_last4; end + # Attribute for field google_pay + sig { returns(T.nilable(GooglePay)) } + def google_pay; end + # The type of the card wallet, one of `apple_pay` or `google_pay`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {apple_pay: ApplePay, google_pay: GooglePay} + end + def self.field_remappings + @field_remappings = {} + end + end + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + sig { returns(String) } + def brand; end + # When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured. + sig { returns(T.nilable(Integer)) } + def capture_before; end + # Check results by Card networks on Card address and CVC at time of payment. + sig { returns(T.nilable(Checks)) } + def checks; end + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + sig { returns(T.nilable(String)) } + def country; end + # Two-digit number representing the card's expiration month. + sig { returns(Integer) } + def exp_month; end + # Four-digit number representing the card's expiration year. + sig { returns(Integer) } + def exp_year; end + # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + # + # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + sig { returns(T.nilable(String)) } + def fingerprint; end + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + sig { returns(String) } + def funding; end + # The last four digits of the card. + sig { returns(String) } + def last4; end + # True if this payment was marked as MOTO and out of scope for SCA. + sig { returns(T.nilable(T::Boolean)) } + def moto; end + # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + sig { returns(T.nilable(String)) } + def network; end + # If this card has network token credentials, this contains the details of the network token credentials. + sig { returns(T.nilable(NetworkToken)) } + def network_token; end + # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + sig { returns(T.nilable(String)) } + def network_transaction_id; end + # Populated if this transaction used 3D Secure authentication. + sig { returns(T.nilable(ThreeDSecure)) } + def three_d_secure; end + # If this Card is part of a card wallet, this contains the details of the card wallet. + sig { returns(T.nilable(Wallet)) } + def wallet; end + def self.inner_class_types + @inner_class_types = { + checks: Checks, + network_token: NetworkToken, + three_d_secure: ThreeDSecure, + wallet: Wallet, + } + end + def self.field_remappings + @field_remappings = {} + end + end + class CardPresent < ::Stripe::StripeObject + class Offline < ::Stripe::StripeObject + # Time at which the payment was collected while offline + sig { returns(T.nilable(Integer)) } + def stored_at; end + # The method used to process this payment method offline. Only deferred is allowed. + sig { returns(T.nilable(String)) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Receipt < ::Stripe::StripeObject + # The type of account being debited or credited + sig { returns(T.nilable(String)) } + def account_type; end + # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers. + sig { returns(T.nilable(String)) } + def application_cryptogram; end + # The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip. + sig { returns(T.nilable(String)) } + def application_preferred_name; end + # Identifier for this transaction. + sig { returns(T.nilable(String)) } + def authorization_code; end + # EMV tag 8A. A code returned by the card issuer. + sig { returns(T.nilable(String)) } + def authorization_response_code; end + # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`. + sig { returns(T.nilable(String)) } + def cardholder_verification_method; end + # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84. + sig { returns(T.nilable(String)) } + def dedicated_file_name; end + # A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95. + sig { returns(T.nilable(String)) } + def terminal_verification_results; end + # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B. + sig { returns(T.nilable(String)) } + def transaction_status_information; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Wallet < ::Stripe::StripeObject + # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The authorized amount + sig { returns(T.nilable(Integer)) } + def amount_authorized; end + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + sig { returns(T.nilable(String)) } + def brand; end + # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. + sig { returns(T.nilable(String)) } + def brand_product; end + # When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured. + sig { returns(T.nilable(Integer)) } + def capture_before; end + # The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay. + sig { returns(T.nilable(String)) } + def cardholder_name; end + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + sig { returns(T.nilable(String)) } + def country; end + # A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def description; end + # Authorization response cryptogram. + sig { returns(T.nilable(String)) } + def emv_auth_data; end + # Two-digit number representing the card's expiration month. + sig { returns(Integer) } + def exp_month; end + # Four-digit number representing the card's expiration year. + sig { returns(Integer) } + def exp_year; end + # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + # + # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + sig { returns(T.nilable(String)) } + def fingerprint; end + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + sig { returns(T.nilable(String)) } + def funding; end + # ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod. + sig { returns(T.nilable(String)) } + def generated_card; end + # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def iin; end + # Whether this [PaymentIntent](https://stripe.com/docs/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support). + sig { returns(T::Boolean) } + def incremental_authorization_supported; end + # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def issuer; end + # The last four digits of the card. + sig { returns(T.nilable(String)) } + def last4; end + # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + sig { returns(T.nilable(String)) } + def network; end + # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + sig { returns(T.nilable(String)) } + def network_transaction_id; end + # Details about payments collected offline. + sig { returns(T.nilable(Offline)) } + def offline; end + # Defines whether the authorized amount can be over-captured or not + sig { returns(T::Boolean) } + def overcapture_supported; end + # The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip. + sig { returns(T.nilable(T::Array[String])) } + def preferred_locales; end + # How card details were read in this transaction. + sig { returns(T.nilable(String)) } + def read_method; end + # A collection of fields required to be displayed on receipts. Only required for EMV transactions. + sig { returns(T.nilable(Receipt)) } + def receipt; end + # Attribute for field wallet + sig { returns(T.nilable(Wallet)) } + def wallet; end + def self.inner_class_types + @inner_class_types = {offline: Offline, receipt: Receipt, wallet: Wallet} + end + def self.field_remappings + @field_remappings = {} + end + end + class Cashapp < ::Stripe::StripeObject + # A unique and immutable identifier assigned by Cash App to every buyer. + sig { returns(T.nilable(String)) } + def buyer_id; end + # A public identifier for buyers using Cash App. + sig { returns(T.nilable(String)) } + def cashtag; end + # A unique and immutable identifier of payments assigned by Cash App + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Crypto < ::Stripe::StripeObject + # The wallet address of the customer. + sig { returns(T.nilable(String)) } + def buyer_address; end + # The blockchain network that the transaction was sent on. + sig { returns(T.nilable(String)) } + def network; end + # The token currency that the transaction was sent with. + sig { returns(T.nilable(String)) } + def token_currency; end + # The blockchain transaction hash of the crypto payment. + sig { returns(T.nilable(String)) } + def transaction_hash; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Custom < ::Stripe::StripeObject + # Display name for the custom (user-defined) payment method type used to make this payment. + sig { returns(String) } + def display_name; end + # The custom payment method type associated with this payment. + sig { returns(T.nilable(String)) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class CustomerBalance < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Eps < ::Stripe::StripeObject + # The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. + sig { returns(T.nilable(String)) } + def bank; end + # Owner's verified full name. Values are verified or provided by EPS directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + # EPS rarely provides this information so the attribute is usually empty. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Fpx < ::Stripe::StripeObject + # Account holder type, if provided. Can be one of `individual` or `company`. + sig { returns(T.nilable(String)) } + def account_holder_type; end + # The customer's bank. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`. + sig { returns(String) } + def bank; end + # Unique transaction id generated by FPX for every request from the merchant + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Giropay < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_code; end + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Bank Identifier Code of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bic; end + # Owner's verified full name. Values are verified or provided by Giropay directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + # Giropay rarely provides this information so the attribute is usually empty. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Grabpay < ::Stripe::StripeObject + # Unique transaction id generated by GrabPay + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Ideal < ::Stripe::StripeObject + # The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. + sig { returns(T.nilable(String)) } + def bank; end + # The Bank Identifier Code of the customer's bank. + sig { returns(T.nilable(String)) } + def bic; end + # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } + def generated_sepa_debit; end + # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } + def generated_sepa_debit_mandate; end + # Last four characters of the IBAN. + sig { returns(T.nilable(String)) } + def iban_last4; end + # Owner's verified full name. Values are verified or provided by iDEAL directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class InteracPresent < ::Stripe::StripeObject + class Receipt < ::Stripe::StripeObject + # The type of account being debited or credited + sig { returns(T.nilable(String)) } + def account_type; end + # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers. + sig { returns(T.nilable(String)) } + def application_cryptogram; end + # The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip. + sig { returns(T.nilable(String)) } + def application_preferred_name; end + # Identifier for this transaction. + sig { returns(T.nilable(String)) } + def authorization_code; end + # EMV tag 8A. A code returned by the card issuer. + sig { returns(T.nilable(String)) } + def authorization_response_code; end + # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`. + sig { returns(T.nilable(String)) } + def cardholder_verification_method; end + # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84. + sig { returns(T.nilable(String)) } + def dedicated_file_name; end + # A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95. + sig { returns(T.nilable(String)) } + def terminal_verification_results; end + # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B. + sig { returns(T.nilable(String)) } + def transaction_status_information; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Card brand. Can be `interac`, `mastercard` or `visa`. + sig { returns(T.nilable(String)) } + def brand; end + # The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay. + sig { returns(T.nilable(String)) } + def cardholder_name; end + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + sig { returns(T.nilable(String)) } + def country; end + # A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def description; end + # Authorization response cryptogram. + sig { returns(T.nilable(String)) } + def emv_auth_data; end + # Two-digit number representing the card's expiration month. + sig { returns(Integer) } + def exp_month; end + # Four-digit number representing the card's expiration year. + sig { returns(Integer) } + def exp_year; end + # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + # + # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + sig { returns(T.nilable(String)) } + def fingerprint; end + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + sig { returns(T.nilable(String)) } + def funding; end + # ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod. + sig { returns(T.nilable(String)) } + def generated_card; end + # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def iin; end + # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def issuer; end + # The last four digits of the card. + sig { returns(T.nilable(String)) } + def last4; end + # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + sig { returns(T.nilable(String)) } + def network; end + # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + sig { returns(T.nilable(String)) } + def network_transaction_id; end + # The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip. + sig { returns(T.nilable(T::Array[String])) } + def preferred_locales; end + # How card details were read in this transaction. + sig { returns(T.nilable(String)) } + def read_method; end + # A collection of fields required to be displayed on receipts. Only required for EMV transactions. + sig { returns(T.nilable(Receipt)) } + def receipt; end + def self.inner_class_types + @inner_class_types = {receipt: Receipt} + end + def self.field_remappings + @field_remappings = {} + end + end + class KakaoPay < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end + # The Kakao Pay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Klarna < ::Stripe::StripeObject + class PayerDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject + # The payer address country + sig { returns(T.nilable(String)) } + def country; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The payer's address + sig { returns(T.nilable(Address)) } + def address; end + def self.inner_class_types + @inner_class_types = {address: Address} + end + def self.field_remappings + @field_remappings = {} + end + end + # The payer details for this transaction. + sig { returns(T.nilable(PayerDetails)) } + def payer_details; end + # The Klarna payment method used for this transaction. + # Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` + sig { returns(T.nilable(String)) } + def payment_method_category; end + # Preferred language of the Klarna authorization page that the customer is redirected to. + # Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` + sig { returns(T.nilable(String)) } + def preferred_locale; end + def self.inner_class_types + @inner_class_types = {payer_details: PayerDetails} + end + def self.field_remappings + @field_remappings = {} + end + end + class Konbini < ::Stripe::StripeObject + class Store < ::Stripe::StripeObject + # The name of the convenience store chain where the payment was completed. + sig { returns(T.nilable(String)) } + def chain; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # If the payment succeeded, this contains the details of the convenience store where the payment was completed. + sig { returns(T.nilable(Store)) } + def store; end + def self.inner_class_types + @inner_class_types = {store: Store} + end + def self.field_remappings + @field_remappings = {} + end + end + class KrCard < ::Stripe::StripeObject + # The local credit or debit card brand. + sig { returns(T.nilable(String)) } + def brand; end + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end + # The last four digits of the card. This may not be present for American Express cards. + sig { returns(T.nilable(String)) } + def last4; end + # The Korean Card transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Link < ::Stripe::StripeObject + # Two-letter ISO code representing the funding source country beneath the Link payment. + # You could use this attribute to get a sense of international fees. + sig { returns(T.nilable(String)) } + def country; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class MbWay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Mobilepay < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + # Brand of the card used in the transaction + sig { returns(T.nilable(String)) } + def brand; end + # Two-letter ISO code representing the country of the card + sig { returns(T.nilable(String)) } + def country; end + # Two digit number representing the card's expiration month + sig { returns(T.nilable(Integer)) } + def exp_month; end + # Two digit number representing the card's expiration year + sig { returns(T.nilable(Integer)) } + def exp_year; end + # The last 4 digits of the card + sig { returns(T.nilable(String)) } + def last4; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Internal card details + sig { returns(T.nilable(Card)) } + def card; end + def self.inner_class_types + @inner_class_types = {card: Card} + end + def self.field_remappings + @field_remappings = {} + end + end + class Multibanco < ::Stripe::StripeObject + # Entity number associated with this Multibanco payment. + sig { returns(T.nilable(String)) } + def entity; end + # Reference number associated with this Multibanco payment. + sig { returns(T.nilable(String)) } + def reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class NaverPay < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end + # The Naver Pay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class NzBankAccount < ::Stripe::StripeObject + # The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. + sig { returns(T.nilable(String)) } + def account_holder_name; end + # The numeric code for the bank account's bank. + sig { returns(String) } + def bank_code; end + # The name of the bank. + sig { returns(String) } + def bank_name; end + # The numeric code for the bank account's bank branch. + sig { returns(String) } + def branch_code; end + # Last four digits of the bank account number. + sig { returns(String) } + def last4; end + # The suffix of the bank account number. + sig { returns(T.nilable(String)) } + def suffix; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Oxxo < ::Stripe::StripeObject + # OXXO reference number + sig { returns(T.nilable(String)) } + def number; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class P24 < ::Stripe::StripeObject + # The customer's bank. Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `velobank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`. + sig { returns(T.nilable(String)) } + def bank; end + # Unique reference for this Przelewy24 payment. + sig { returns(T.nilable(String)) } + def reference; end + # Owner's verified full name. Values are verified or provided by Przelewy24 directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + # Przelewy24 rarely provides this information so the attribute is usually empty. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class PayByBank < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Payco < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end + # The Payco transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Paynow < ::Stripe::StripeObject + # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. + sig { returns(T.nilable(String)) } + def location; end + # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. + sig { returns(T.nilable(String)) } + def reader; end + # Reference number associated with this PayNow payment + sig { returns(T.nilable(String)) } + def reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Paypal < ::Stripe::StripeObject + class SellerProtection < ::Stripe::StripeObject + # An array of conditions that are covered for the transaction, if applicable. + sig { returns(T.nilable(T::Array[String])) } + def dispute_categories; end + # Indicates whether the transaction is eligible for PayPal's seller protection. + sig { returns(String) } + def status; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def country; end + # Owner's email. Values are provided by PayPal directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def payer_email; end + # PayPal account PayerID. This identifier uniquely identifies the PayPal customer. + sig { returns(T.nilable(String)) } + def payer_id; end + # Owner's full name. Values provided by PayPal directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def payer_name; end + # The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction. + sig { returns(T.nilable(SellerProtection)) } + def seller_protection; end + # A unique ID generated by PayPal for this transaction. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {seller_protection: SellerProtection} + end + def self.field_remappings + @field_remappings = {} + end + end + class Pix < ::Stripe::StripeObject + # Unique transaction id generated by BCB + sig { returns(T.nilable(String)) } + def bank_transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Promptpay < ::Stripe::StripeObject + # Bill reference generated by PromptPay + sig { returns(T.nilable(String)) } + def reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class RevolutPay < ::Stripe::StripeObject + class Funding < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + sig { returns(T.nilable(String)) } + def brand; end + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + sig { returns(T.nilable(String)) } + def country; end + # Two-digit number representing the card's expiration month. + sig { returns(T.nilable(Integer)) } + def exp_month; end + # Four-digit number representing the card's expiration year. + sig { returns(T.nilable(Integer)) } + def exp_year; end + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + sig { returns(T.nilable(String)) } + def funding; end + # The last four digits of the card. + sig { returns(T.nilable(String)) } + def last4; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field card + sig { returns(T.nilable(Card)) } + def card; end + # funding type of the underlying payment method. + sig { returns(T.nilable(String)) } + def type; end + def self.inner_class_types + @inner_class_types = {card: Card} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field funding + sig { returns(T.nilable(Funding)) } + def funding; end + # The Revolut Pay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {funding: Funding} + end + def self.field_remappings + @field_remappings = {} + end + end + class SamsungPay < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end + # The Samsung Pay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Satispay < ::Stripe::StripeObject + # The Satispay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class SepaCreditTransfer < ::Stripe::StripeObject + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Bank Identifier Code of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bic; end + # IBAN of the bank account to transfer funds to. + sig { returns(T.nilable(String)) } + def iban; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class SepaDebit < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_code; end + # Branch code of bank associated with the bank account. + sig { returns(T.nilable(String)) } + def branch_code; end + # Two-letter ISO code representing the country the bank account is located in. + sig { returns(T.nilable(String)) } + def country; end + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Last four characters of the IBAN. + sig { returns(T.nilable(String)) } + def last4; end + # Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://stripe.com/docs/api/mandates/retrieve). + sig { returns(T.nilable(String)) } + def mandate; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Sofort < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_code; end + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Bank Identifier Code of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bic; end + # Two-letter ISO code representing the country the bank account is located in. + sig { returns(T.nilable(String)) } + def country; end + # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } + def generated_sepa_debit; end + # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } + def generated_sepa_debit_mandate; end + # Last four characters of the IBAN. + sig { returns(T.nilable(String)) } + def iban_last4; end + # Preferred language of the SOFORT authorization page that the customer is redirected to. + # Can be one of `de`, `en`, `es`, `fr`, `it`, `nl`, or `pl` + sig { returns(T.nilable(String)) } + def preferred_language; end + # Owner's verified full name. Values are verified or provided by SOFORT directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class StripeAccount < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Swish < ::Stripe::StripeObject + # Uniquely identifies the payer's Swish account. You can use this attribute to check whether two Swish transactions were paid for by the same payer + sig { returns(T.nilable(String)) } + def fingerprint; end + # Payer bank reference number for the payment + sig { returns(T.nilable(String)) } + def payment_reference; end + # The last four digits of the Swish account phone number + sig { returns(T.nilable(String)) } + def verified_phone_last4; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Twint < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class UsBankAccount < ::Stripe::StripeObject + # Attribute for field account_holder_type + sig { returns(T.nilable(String)) } + def account_holder_type; end + # Attribute for field account_type + sig { returns(T.nilable(String)) } + def account_type; end + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Last four digits of the bank account number. + sig { returns(T.nilable(String)) } + def last4; end + # ID of the mandate used to make this payment. + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } + def mandate; end + # Reference number to locate ACH payments with customer’s bank. + sig { returns(T.nilable(String)) } + def payment_reference; end + # Routing number of the bank account. + sig { returns(T.nilable(String)) } + def routing_number; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Wechat < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class WechatPay < ::Stripe::StripeObject + # Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. + sig { returns(T.nilable(String)) } + def location; end + # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. + sig { returns(T.nilable(String)) } + def reader; end + # Transaction ID of this particular WeChat Pay transaction. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Zip < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field ach_credit_transfer + sig { returns(T.nilable(AchCreditTransfer)) } + def ach_credit_transfer; end + # Attribute for field ach_debit + sig { returns(T.nilable(AchDebit)) } + def ach_debit; end + # Attribute for field acss_debit + sig { returns(T.nilable(AcssDebit)) } + def acss_debit; end + # Attribute for field affirm + sig { returns(T.nilable(Affirm)) } + def affirm; end + # Attribute for field afterpay_clearpay + sig { returns(T.nilable(AfterpayClearpay)) } + def afterpay_clearpay; end + # Attribute for field alipay + sig { returns(T.nilable(Alipay)) } + def alipay; end + # Attribute for field alma + sig { returns(T.nilable(Alma)) } + def alma; end + # Attribute for field amazon_pay + sig { returns(T.nilable(AmazonPay)) } + def amazon_pay; end + # Attribute for field au_becs_debit + sig { returns(T.nilable(AuBecsDebit)) } + def au_becs_debit; end + # Attribute for field bacs_debit + sig { returns(T.nilable(BacsDebit)) } + def bacs_debit; end + # Attribute for field bancontact + sig { returns(T.nilable(Bancontact)) } + def bancontact; end + # Attribute for field billie + sig { returns(T.nilable(Billie)) } + def billie; end + # The billing details associated with the method of payment. + sig { returns(T.nilable(BillingDetails)) } + def billing_details; end + # Attribute for field blik + sig { returns(T.nilable(Blik)) } + def blik; end + # Attribute for field boleto + sig { returns(T.nilable(Boleto)) } + def boleto; end + # Details of the card used for this payment attempt. + sig { returns(T.nilable(Card)) } + def card; end + # Attribute for field card_present + sig { returns(T.nilable(CardPresent)) } + def card_present; end + # Attribute for field cashapp + sig { returns(T.nilable(Cashapp)) } + def cashapp; end + # Attribute for field crypto + sig { returns(T.nilable(Crypto)) } + def crypto; end + # Custom Payment Methods represent Payment Method types not modeled directly in + # the Stripe API. This resource consists of details about the custom payment method + # used for this payment attempt. + sig { returns(T.nilable(Custom)) } + def custom; end + # Attribute for field customer_balance + sig { returns(T.nilable(CustomerBalance)) } + def customer_balance; end + # Attribute for field eps + sig { returns(T.nilable(Eps)) } + def eps; end + # Attribute for field fpx + sig { returns(T.nilable(Fpx)) } + def fpx; end + # Attribute for field giropay + sig { returns(T.nilable(Giropay)) } + def giropay; end + # Attribute for field grabpay + sig { returns(T.nilable(Grabpay)) } + def grabpay; end + # Attribute for field ideal + sig { returns(T.nilable(Ideal)) } + def ideal; end + # Attribute for field interac_present + sig { returns(T.nilable(InteracPresent)) } + def interac_present; end + # Attribute for field kakao_pay + sig { returns(T.nilable(KakaoPay)) } + def kakao_pay; end + # Attribute for field klarna + sig { returns(T.nilable(Klarna)) } + def klarna; end + # Attribute for field konbini + sig { returns(T.nilable(Konbini)) } + def konbini; end + # Attribute for field kr_card + sig { returns(T.nilable(KrCard)) } + def kr_card; end + # Attribute for field link + sig { returns(T.nilable(Link)) } + def link; end + # Attribute for field mb_way + sig { returns(T.nilable(MbWay)) } + def mb_way; end + # Attribute for field mobilepay + sig { returns(T.nilable(Mobilepay)) } + def mobilepay; end + # Attribute for field multibanco + sig { returns(T.nilable(Multibanco)) } + def multibanco; end + # Attribute for field naver_pay + sig { returns(T.nilable(NaverPay)) } + def naver_pay; end + # Attribute for field nz_bank_account + sig { returns(T.nilable(NzBankAccount)) } + def nz_bank_account; end + # Attribute for field oxxo + sig { returns(T.nilable(Oxxo)) } + def oxxo; end + # Attribute for field p24 + sig { returns(T.nilable(P24)) } + def p24; end + # Attribute for field pay_by_bank + sig { returns(T.nilable(PayByBank)) } + def pay_by_bank; end + # Attribute for field payco + sig { returns(T.nilable(Payco)) } + def payco; end + # ID of the Stripe PaymentMethod used to make this payment. + sig { returns(T.nilable(String)) } + def payment_method; end + # Attribute for field paynow + sig { returns(T.nilable(Paynow)) } + def paynow; end + # Attribute for field paypal + sig { returns(T.nilable(Paypal)) } + def paypal; end + # Attribute for field pix + sig { returns(T.nilable(Pix)) } + def pix; end + # Attribute for field promptpay + sig { returns(T.nilable(Promptpay)) } + def promptpay; end + # Attribute for field revolut_pay + sig { returns(T.nilable(RevolutPay)) } + def revolut_pay; end + # Attribute for field samsung_pay + sig { returns(T.nilable(SamsungPay)) } + def samsung_pay; end + # Attribute for field satispay + sig { returns(T.nilable(Satispay)) } + def satispay; end + # Attribute for field sepa_credit_transfer + sig { returns(T.nilable(SepaCreditTransfer)) } + def sepa_credit_transfer; end + # Attribute for field sepa_debit + sig { returns(T.nilable(SepaDebit)) } + def sepa_debit; end + # Attribute for field sofort + sig { returns(T.nilable(Sofort)) } + def sofort; end + # Attribute for field stripe_account + sig { returns(T.nilable(StripeAccount)) } + def stripe_account; end + # Attribute for field swish + sig { returns(T.nilable(Swish)) } + def swish; end + # Attribute for field twint + sig { returns(T.nilable(Twint)) } + def twint; end + # The type of transaction-specific details of the payment method used in the payment. See [PaymentMethod.type](https://stripe.com/docs/api/payment_methods/object#payment_method_object-type) for the full list of possible types. + # An additional hash is included on `payment_method_details` with a name matching this value. + # It contains information specific to the payment method. + sig { returns(String) } + def type; end + # Details of the US Bank Account used for this payment attempt. + sig { returns(T.nilable(UsBankAccount)) } + def us_bank_account; end + # Attribute for field wechat + sig { returns(T.nilable(Wechat)) } + def wechat; end + # Attribute for field wechat_pay + sig { returns(T.nilable(WechatPay)) } + def wechat_pay; end + # Attribute for field zip + sig { returns(T.nilable(Zip)) } + def zip; end + def self.inner_class_types + @inner_class_types = { + ach_credit_transfer: AchCreditTransfer, + ach_debit: AchDebit, + acss_debit: AcssDebit, + affirm: Affirm, + afterpay_clearpay: AfterpayClearpay, + alipay: Alipay, + alma: Alma, + amazon_pay: AmazonPay, + au_becs_debit: AuBecsDebit, + bacs_debit: BacsDebit, + bancontact: Bancontact, + billie: Billie, + billing_details: BillingDetails, + blik: Blik, + boleto: Boleto, + card: Card, + card_present: CardPresent, + cashapp: Cashapp, + crypto: Crypto, + custom: Custom, + customer_balance: CustomerBalance, + eps: Eps, + fpx: Fpx, + giropay: Giropay, + grabpay: Grabpay, + ideal: Ideal, + interac_present: InteracPresent, + kakao_pay: KakaoPay, + klarna: Klarna, + konbini: Konbini, + kr_card: KrCard, + link: Link, + mb_way: MbWay, + mobilepay: Mobilepay, + multibanco: Multibanco, + naver_pay: NaverPay, + nz_bank_account: NzBankAccount, + oxxo: Oxxo, + p24: P24, + pay_by_bank: PayByBank, + payco: Payco, + paynow: Paynow, + paypal: Paypal, + pix: Pix, + promptpay: Promptpay, + revolut_pay: RevolutPay, + samsung_pay: SamsungPay, + satispay: Satispay, + sepa_credit_transfer: SepaCreditTransfer, + sepa_debit: SepaDebit, + sofort: Sofort, + stripe_account: StripeAccount, + swish: Swish, + twint: Twint, + us_bank_account: UsBankAccount, + wechat: Wechat, + wechat_pay: WechatPay, + zip: Zip, + } + end + def self.field_remappings + @field_remappings = {} + end + end + class ProcessorDetails < ::Stripe::StripeObject + class Custom < ::Stripe::StripeObject + # An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID. + sig { returns(T.nilable(String)) } + def payment_reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Custom processors represent payment processors not modeled directly in + # the Stripe API. This resource consists of details about the custom processor + # used for this payment attempt. + sig { returns(T.nilable(Custom)) } + def custom; end + # The processor used for this payment attempt. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {custom: Custom} + end + def self.field_remappings + @field_remappings = {} + end + end + class ShippingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(T.nilable(String)) } + def line1; end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # A representation of a physical address. + sig { returns(Address) } + def address; end + # The shipping recipient's name. + sig { returns(T.nilable(String)) } + def name; end + # The shipping recipient's phone number. + sig { returns(T.nilable(String)) } + def phone; end + def self.inner_class_types + @inner_class_types = {address: Address} + end + def self.field_remappings + @field_remappings = {} + end + end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(Amount) } + def amount; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountAuthorized) } + def amount_authorized; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountCanceled) } + def amount_canceled; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountFailed) } + def amount_failed; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountGuaranteed) } + def amount_guaranteed; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountRefunded) } + def amount_refunded; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountRequested) } + def amount_requested; end + # ID of the Connect application that created the PaymentAttemptRecord. + sig { returns(T.nilable(String)) } + def application; end + # Time at which the object was created. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def created; end + # Customer information for this payment. + sig { returns(T.nilable(CustomerDetails)) } + def customer_details; end + # Indicates whether the customer was present in your checkout flow during this payment. + sig { returns(T.nilable(String)) } + def customer_presence; end + # An arbitrary string attached to the object. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + # Unique identifier for the object. + sig { returns(String) } + def id; end + # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + sig { returns(T::Boolean) } + def livemode; end + # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + sig { returns(T::Hash[String, String]) } + def metadata; end + # String representing the object's type. Objects of the same type share the same value. + sig { returns(String) } + def object; end + # Information about the Payment Method debited for this payment. + sig { returns(T.nilable(PaymentMethodDetails)) } + def payment_method_details; end + # ID of the Payment Record this Payment Attempt Record belongs to. + sig { returns(T.nilable(String)) } + def payment_record; end + # Processor information associated with this payment. + sig { returns(ProcessorDetails) } + def processor_details; end + # Indicates who reported the payment. + sig { returns(String) } + def reported_by; end + # Shipping information for this payment. + sig { returns(T.nilable(ShippingDetails)) } + def shipping_details; end + # List all the Payment Attempt Records attached to the specified Payment Record. + sig { + params(params: T.any(::Stripe::PaymentAttemptRecordListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) + } + def self.list(params = {}, opts = {}); end + end +end \ No newline at end of file diff --git a/rbi/stripe/resources/payment_intent.rbi b/rbi/stripe/resources/payment_intent.rbi index 9727e970..7dc1ef6e 100644 --- a/rbi/stripe/resources/payment_intent.rbi +++ b/rbi/stripe/resources/payment_intent.rbi @@ -15,8 +15,36 @@ module Stripe # # Related guide: [Payment Intents API](https://stripe.com/docs/payments/payment-intents) class PaymentIntent < APIResource - class AmountDetails < Stripe::StripeObject - class Tip < Stripe::StripeObject + class AmountDetails < ::Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + # Portion of the amount that is for shipping. + sig { returns(T.nilable(Integer)) } + def amount; end + # The postal code that represents the shipping source. + sig { returns(T.nilable(String)) } + def from_postal_code; end + # The postal code that represents the shipping destination. + sig { returns(T.nilable(String)) } + def to_postal_code; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Tax < ::Stripe::StripeObject + # Total portion of the amount that is for tax. + sig { returns(T.nilable(Integer)) } + def total_tax_amount; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Tip < ::Stripe::StripeObject # Portion of the amount that corresponds to a tip. sig { returns(T.nilable(Integer)) } def amount; end @@ -27,17 +55,29 @@ module Stripe @field_remappings = {} end end + # The total discount applied on the transaction. + sig { returns(T.nilable(Integer)) } + def discount_amount; end + # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. + sig { returns(T.nilable(::Stripe::ListObject)) } + def line_items; end + # Attribute for field shipping + sig { returns(T.nilable(Shipping)) } + def shipping; end + # Attribute for field tax + sig { returns(T.nilable(Tax)) } + def tax; end # Attribute for field tip sig { returns(T.nilable(Tip)) } def tip; end def self.inner_class_types - @inner_class_types = {tip: Tip} + @inner_class_types = {shipping: Shipping, tax: Tax, tip: Tip} end def self.field_remappings @field_remappings = {} end end - class AutomaticPaymentMethods < Stripe::StripeObject + class AutomaticPaymentMethods < ::Stripe::StripeObject # Controls whether this PaymentIntent will accept redirect-based payment methods. # # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/payment_intents/confirm) this PaymentIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the payment. @@ -53,7 +93,7 @@ module Stripe @field_remappings = {} end end - class LastPaymentError < Stripe::StripeObject + class LastPaymentError < ::Stripe::StripeObject # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one. sig { returns(T.nilable(String)) } def advice_code; end @@ -92,14 +132,14 @@ module Stripe # authentication flows and ultimately creates at most one successful charge. # # Related guide: [Payment Intents API](https://stripe.com/docs/payments/payment-intents) - sig { returns(T.nilable(Stripe::PaymentIntent)) } + sig { returns(T.nilable(::Stripe::PaymentIntent)) } def payment_intent; end # PaymentMethod objects represent your customer's payment instruments. # You can use them with [PaymentIntents](https://stripe.com/docs/payments/payment-intents) to collect payments or save them to # Customer objects to store instrument details for future payments. # # Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios). - sig { returns(T.nilable(Stripe::PaymentMethod)) } + sig { returns(T.nilable(::Stripe::PaymentMethod)) } def payment_method; end # If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors. sig { returns(T.nilable(String)) } @@ -128,11 +168,11 @@ module Stripe # By using SetupIntents, you can reduce friction for your customers, even as regulations change over time. # # Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) - sig { returns(T.nilable(Stripe::SetupIntent)) } + sig { returns(T.nilable(::Stripe::SetupIntent)) } def setup_intent; end # Attribute for field source sig { - returns(T.nilable(T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source))) + returns(T.nilable(T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source))) } def source; end # The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error` @@ -145,8 +185,8 @@ module Stripe @field_remappings = {} end end - class NextAction < Stripe::StripeObject - class AlipayHandleRedirect < Stripe::StripeObject + class NextAction < ::Stripe::StripeObject + class AlipayHandleRedirect < ::Stripe::StripeObject # The native data to be used with Alipay SDK you must redirect your customer to in order to authenticate the payment in an Android App. sig { returns(T.nilable(String)) } def native_data; end @@ -166,7 +206,7 @@ module Stripe @field_remappings = {} end end - class BoletoDisplayDetails < Stripe::StripeObject + class BoletoDisplayDetails < ::Stripe::StripeObject # The timestamp after which the boleto expires. sig { returns(T.nilable(Integer)) } def expires_at; end @@ -186,7 +226,7 @@ module Stripe @field_remappings = {} end end - class CardAwaitNotification < Stripe::StripeObject + class CardAwaitNotification < ::Stripe::StripeObject # The time that payment will be attempted. If customer approval is required, they need to provide approval before this time. sig { returns(T.nilable(Integer)) } def charge_attempt_at; end @@ -200,8 +240,8 @@ module Stripe @field_remappings = {} end end - class CashappHandleRedirectOrDisplayQrCode < Stripe::StripeObject - class QrCode < Stripe::StripeObject + class CashappHandleRedirectOrDisplayQrCode < ::Stripe::StripeObject + class QrCode < ::Stripe::StripeObject # The date (unix timestamp) when the QR code expires. sig { returns(Integer) } def expires_at; end @@ -234,10 +274,10 @@ module Stripe @field_remappings = {} end end - class DisplayBankTransferInstructions < Stripe::StripeObject - class FinancialAddress < Stripe::StripeObject - class Aba < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class DisplayBankTransferInstructions < ::Stripe::StripeObject + class FinancialAddress < ::Stripe::StripeObject + class Aba < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -263,7 +303,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -320,8 +360,8 @@ module Stripe @field_remappings = {} end end - class Iban < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Iban < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -347,7 +387,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -401,8 +441,8 @@ module Stripe @field_remappings = {} end end - class SortCode < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class SortCode < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -428,7 +468,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -479,8 +519,8 @@ module Stripe @field_remappings = {} end end - class Spei < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Spei < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -506,7 +546,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -560,8 +600,8 @@ module Stripe @field_remappings = {} end end - class Swift < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Swift < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -587,7 +627,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -644,8 +684,8 @@ module Stripe @field_remappings = {} end end - class Zengin < Stripe::StripeObject - class AccountHolderAddress < Stripe::StripeObject + class Zengin < ::Stripe::StripeObject + class AccountHolderAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -671,7 +711,7 @@ module Stripe @field_remappings = {} end end - class BankAddress < Stripe::StripeObject + class BankAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -797,9 +837,9 @@ module Stripe @field_remappings = {} end end - class KonbiniDisplayDetails < Stripe::StripeObject - class Stores < Stripe::StripeObject - class Familymart < Stripe::StripeObject + class KonbiniDisplayDetails < ::Stripe::StripeObject + class Stores < ::Stripe::StripeObject + class Familymart < ::Stripe::StripeObject # The confirmation number. sig { returns(T.nilable(String)) } def confirmation_number; end @@ -813,7 +853,7 @@ module Stripe @field_remappings = {} end end - class Lawson < Stripe::StripeObject + class Lawson < ::Stripe::StripeObject # The confirmation number. sig { returns(T.nilable(String)) } def confirmation_number; end @@ -827,7 +867,7 @@ module Stripe @field_remappings = {} end end - class Ministop < Stripe::StripeObject + class Ministop < ::Stripe::StripeObject # The confirmation number. sig { returns(T.nilable(String)) } def confirmation_number; end @@ -841,7 +881,7 @@ module Stripe @field_remappings = {} end end - class Seicomart < Stripe::StripeObject + class Seicomart < ::Stripe::StripeObject # The confirmation number. sig { returns(T.nilable(String)) } def confirmation_number; end @@ -895,7 +935,7 @@ module Stripe @field_remappings = {} end end - class MultibancoDisplayDetails < Stripe::StripeObject + class MultibancoDisplayDetails < ::Stripe::StripeObject # Entity number associated with this Multibanco payment. sig { returns(T.nilable(String)) } def entity; end @@ -915,7 +955,7 @@ module Stripe @field_remappings = {} end end - class OxxoDisplayDetails < Stripe::StripeObject + class OxxoDisplayDetails < ::Stripe::StripeObject # The timestamp after which the OXXO voucher expires. sig { returns(T.nilable(Integer)) } def expires_after; end @@ -932,7 +972,7 @@ module Stripe @field_remappings = {} end end - class PaynowDisplayQrCode < Stripe::StripeObject + class PaynowDisplayQrCode < ::Stripe::StripeObject # The raw data string used to generate QR code, it should be used together with QR code library. sig { returns(String) } def data; end @@ -952,7 +992,7 @@ module Stripe @field_remappings = {} end end - class PixDisplayQrCode < Stripe::StripeObject + class PixDisplayQrCode < ::Stripe::StripeObject # The raw data string used to generate QR code, it should be used together with QR code library. sig { returns(T.nilable(String)) } def data; end @@ -975,7 +1015,7 @@ module Stripe @field_remappings = {} end end - class PromptpayDisplayQrCode < Stripe::StripeObject + class PromptpayDisplayQrCode < ::Stripe::StripeObject # The raw data string used to generate QR code, it should be used together with QR code library. sig { returns(String) } def data; end @@ -995,7 +1035,7 @@ module Stripe @field_remappings = {} end end - class RedirectToUrl < Stripe::StripeObject + class RedirectToUrl < ::Stripe::StripeObject # If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion. sig { returns(T.nilable(String)) } def return_url; end @@ -1009,8 +1049,8 @@ module Stripe @field_remappings = {} end end - class SwishHandleRedirectOrDisplayQrCode < Stripe::StripeObject - class QrCode < Stripe::StripeObject + class SwishHandleRedirectOrDisplayQrCode < ::Stripe::StripeObject + class QrCode < ::Stripe::StripeObject # The raw data string used to generate QR code, it should be used together with QR code library. sig { returns(String) } def data; end @@ -1043,7 +1083,7 @@ module Stripe @field_remappings = {} end end - class VerifyWithMicrodeposits < Stripe::StripeObject + class VerifyWithMicrodeposits < ::Stripe::StripeObject # The timestamp when the microdeposits are expected to land. sig { returns(Integer) } def arrival_date; end @@ -1060,7 +1100,7 @@ module Stripe @field_remappings = {} end end - class WechatPayDisplayQrCode < Stripe::StripeObject + class WechatPayDisplayQrCode < ::Stripe::StripeObject # The data being used to generate QR code sig { returns(String) } def data; end @@ -1083,7 +1123,7 @@ module Stripe @field_remappings = {} end end - class WechatPayRedirectToAndroidApp < Stripe::StripeObject + class WechatPayRedirectToAndroidApp < ::Stripe::StripeObject # app_id is the APP ID registered on WeChat open platform sig { returns(String) } def app_id; end @@ -1112,7 +1152,7 @@ module Stripe @field_remappings = {} end end - class WechatPayRedirectToIosApp < Stripe::StripeObject + class WechatPayRedirectToIosApp < ::Stripe::StripeObject # An universal link that redirect to WeChat Pay app sig { returns(String) } def native_url; end @@ -1205,7 +1245,21 @@ module Stripe @field_remappings = {} end end - class PaymentMethodConfigurationDetails < Stripe::StripeObject + class PaymentDetails < ::Stripe::StripeObject + # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + sig { returns(T.nilable(String)) } + def customer_reference; end + # A unique value assigned by the business to identify the transaction. + sig { returns(T.nilable(String)) } + def order_reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class PaymentMethodConfigurationDetails < ::Stripe::StripeObject # ID of the payment method configuration used. sig { returns(String) } def id; end @@ -1219,9 +1273,9 @@ module Stripe @field_remappings = {} end end - class PaymentMethodOptions < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class PaymentMethodOptions < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # A URL for custom mandate text sig { returns(T.nilable(String)) } def custom_mandate_url; end @@ -1266,7 +1320,7 @@ module Stripe @field_remappings = {} end end - class Affirm < Stripe::StripeObject + class Affirm < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1289,7 +1343,7 @@ module Stripe @field_remappings = {} end end - class AfterpayClearpay < Stripe::StripeObject + class AfterpayClearpay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1313,7 +1367,7 @@ module Stripe @field_remappings = {} end end - class Alipay < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1330,7 +1384,7 @@ module Stripe @field_remappings = {} end end - class Alma < Stripe::StripeObject + class Alma < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1341,7 +1395,7 @@ module Stripe @field_remappings = {} end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1361,7 +1415,7 @@ module Stripe @field_remappings = {} end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1381,8 +1435,8 @@ module Stripe @field_remappings = {} end end - class BacsDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -1415,7 +1469,7 @@ module Stripe @field_remappings = {} end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject # Preferred language of the Bancontact authorization page that the customer is redirected to. sig { returns(String) } def preferred_language; end @@ -1435,7 +1489,7 @@ module Stripe @field_remappings = {} end end - class Billie < Stripe::StripeObject + class Billie < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1446,7 +1500,7 @@ module Stripe @field_remappings = {} end end - class Blik < Stripe::StripeObject + class Blik < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1463,7 +1517,7 @@ module Stripe @field_remappings = {} end end - class Boleto < Stripe::StripeObject + class Boleto < ::Stripe::StripeObject # The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto voucher will expire on Wednesday at 23:59 America/Sao_Paulo time. sig { returns(Integer) } def expires_after_days; end @@ -1483,9 +1537,9 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject - class Installments < Stripe::StripeObject - class AvailablePlan < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Installments < ::Stripe::StripeObject + class AvailablePlan < ::Stripe::StripeObject # For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card. sig { returns(T.nilable(Integer)) } def count; end @@ -1503,7 +1557,7 @@ module Stripe @field_remappings = {} end end - class Plan < Stripe::StripeObject + class Plan < ::Stripe::StripeObject # For `fixed_count` installment plans, this is the number of installment payments your customer will make to their credit card. sig { returns(T.nilable(Integer)) } def count; end @@ -1537,7 +1591,7 @@ module Stripe @field_remappings = {} end end - class MandateOptions < Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Amount to be charged for future payments. sig { returns(Integer) } def amount; end @@ -1626,8 +1680,8 @@ module Stripe @field_remappings = {} end end - class CardPresent < Stripe::StripeObject - class Routing < Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject + class Routing < ::Stripe::StripeObject # Requested routing priority sig { returns(T.nilable(String)) } def requested_priority; end @@ -1654,7 +1708,7 @@ module Stripe @field_remappings = {} end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1674,7 +1728,7 @@ module Stripe @field_remappings = {} end end - class Crypto < Stripe::StripeObject + class Crypto < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1691,9 +1745,9 @@ module Stripe @field_remappings = {} end end - class CustomerBalance < Stripe::StripeObject - class BankTransfer < Stripe::StripeObject - class EuBankTransfer < Stripe::StripeObject + class CustomerBalance < ::Stripe::StripeObject + class BankTransfer < ::Stripe::StripeObject + class EuBankTransfer < ::Stripe::StripeObject # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -1744,7 +1798,7 @@ module Stripe @field_remappings = {} end end - class Eps < Stripe::StripeObject + class Eps < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1761,7 +1815,7 @@ module Stripe @field_remappings = {} end end - class Fpx < Stripe::StripeObject + class Fpx < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1778,7 +1832,7 @@ module Stripe @field_remappings = {} end end - class Giropay < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1795,7 +1849,7 @@ module Stripe @field_remappings = {} end end - class Grabpay < Stripe::StripeObject + class Grabpay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1812,7 +1866,7 @@ module Stripe @field_remappings = {} end end - class Ideal < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1829,7 +1883,7 @@ module Stripe @field_remappings = {} end end - class InteracPresent < Stripe::StripeObject + class InteracPresent < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1837,7 +1891,7 @@ module Stripe @field_remappings = {} end end - class KakaoPay < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1857,7 +1911,7 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1880,7 +1934,7 @@ module Stripe @field_remappings = {} end end - class Konbini < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject # An optional 10 to 11 digit numeric-only string determining the confirmation code at applicable convenience stores. sig { returns(T.nilable(String)) } def confirmation_number; end @@ -1909,7 +1963,7 @@ module Stripe @field_remappings = {} end end - class KrCard < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1929,7 +1983,7 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1952,7 +2006,7 @@ module Stripe @field_remappings = {} end end - class MbWay < Stripe::StripeObject + class MbWay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -1969,7 +2023,7 @@ module Stripe @field_remappings = {} end end - class Mobilepay < Stripe::StripeObject + class Mobilepay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -1989,7 +2043,7 @@ module Stripe @field_remappings = {} end end - class Multibanco < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2006,7 +2060,7 @@ module Stripe @field_remappings = {} end end - class NaverPay < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -2026,7 +2080,7 @@ module Stripe @field_remappings = {} end end - class NzBankAccount < Stripe::StripeObject + class NzBankAccount < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2046,7 +2100,7 @@ module Stripe @field_remappings = {} end end - class Oxxo < Stripe::StripeObject + class Oxxo < ::Stripe::StripeObject # The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. sig { returns(Integer) } def expires_after_days; end @@ -2066,7 +2120,7 @@ module Stripe @field_remappings = {} end end - class P24 < Stripe::StripeObject + class P24 < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2083,7 +2137,7 @@ module Stripe @field_remappings = {} end end - class PayByBank < Stripe::StripeObject + class PayByBank < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -2091,7 +2145,7 @@ module Stripe @field_remappings = {} end end - class Payco < Stripe::StripeObject + class Payco < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -2102,7 +2156,7 @@ module Stripe @field_remappings = {} end end - class Paynow < Stripe::StripeObject + class Paynow < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2119,7 +2173,7 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -2145,7 +2199,7 @@ module Stripe @field_remappings = {} end end - class Pix < Stripe::StripeObject + class Pix < ::Stripe::StripeObject # Determines if the amount includes the IOF tax. sig { returns(T.nilable(String)) } def amount_includes_iof; end @@ -2171,7 +2225,7 @@ module Stripe @field_remappings = {} end end - class Promptpay < Stripe::StripeObject + class Promptpay < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2188,7 +2242,7 @@ module Stripe @field_remappings = {} end end - class RevolutPay < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -2208,7 +2262,7 @@ module Stripe @field_remappings = {} end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -2219,7 +2273,7 @@ module Stripe @field_remappings = {} end end - class Satispay < Stripe::StripeObject + class Satispay < ::Stripe::StripeObject # Controls when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -2230,8 +2284,8 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -2264,7 +2318,7 @@ module Stripe @field_remappings = {} end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject # Preferred language of the SOFORT authorization page that the customer is redirected to. sig { returns(T.nilable(String)) } def preferred_language; end @@ -2284,7 +2338,7 @@ module Stripe @field_remappings = {} end end - class Swish < Stripe::StripeObject + class Swish < ::Stripe::StripeObject # A reference for this payment to be displayed in the Swish app. sig { returns(T.nilable(String)) } def reference; end @@ -2304,7 +2358,7 @@ module Stripe @field_remappings = {} end end - class Twint < Stripe::StripeObject + class Twint < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2321,9 +2375,9 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject - class FinancialConnections < Stripe::StripeObject - class Filters < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject + class FinancialConnections < ::Stripe::StripeObject + class Filters < ::Stripe::StripeObject # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -2353,7 +2407,7 @@ module Stripe @field_remappings = {} end end - class MandateOptions < Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Mandate collection method sig { returns(T.nilable(String)) } def collection_method; end @@ -2398,7 +2452,7 @@ module Stripe @field_remappings = {} end end - class WechatPay < Stripe::StripeObject + class WechatPay < ::Stripe::StripeObject # The app ID registered with WeChat Pay. Only required when client is ios or android. sig { returns(T.nilable(String)) } def app_id; end @@ -2421,7 +2475,7 @@ module Stripe @field_remappings = {} end end - class Zip < Stripe::StripeObject + class Zip < ::Stripe::StripeObject # Indicates that you intend to make future payments with this PaymentIntent's payment method. # # If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](/api/payment_methods/attach) the payment method to a Customer after the transaction completes. @@ -2650,7 +2704,7 @@ module Stripe @field_remappings = {} end end - class PresentmentDetails < Stripe::StripeObject + class PresentmentDetails < ::Stripe::StripeObject # Amount intended to be collected by this payment, denominated in `presentment_currency`. sig { returns(Integer) } def presentment_amount; end @@ -2664,9 +2718,9 @@ module Stripe @field_remappings = {} end end - class Processing < Stripe::StripeObject - class Card < Stripe::StripeObject - class CustomerNotification < Stripe::StripeObject + class Processing < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + class CustomerNotification < ::Stripe::StripeObject # Whether customer approval has been requested for this payment. For payments greater than INR 15000 or mandate amount, the customer must provide explicit approval of the payment with their bank. sig { returns(T.nilable(T::Boolean)) } def approval_requested; end @@ -2703,8 +2757,8 @@ module Stripe @field_remappings = {} end end - class Shipping < Stripe::StripeObject - class Address < Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -2752,14 +2806,14 @@ module Stripe @field_remappings = {} end end - class TransferData < Stripe::StripeObject + class TransferData < ::Stripe::StripeObject # The amount transferred to the destination account. This transfer will occur automatically after the payment succeeds. If no amount is specified, by default the entire payment amount is transferred to the destination account. # The amount must be less than or equal to the [amount](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-amount), and must be a positive integer # representing how much to transfer in the smallest currency unit (e.g., 100 cents to charge $1.00). sig { returns(T.nilable(Integer)) } def amount; end # The account (if any) that the payment is attributed to for tax reporting, and where funds from the payment are transferred to after payment success. - sig { returns(T.any(String, Stripe::Account)) } + sig { returns(T.any(String, ::Stripe::Account)) } def destination; end def self.inner_class_types @inner_class_types = {} @@ -2781,7 +2835,7 @@ module Stripe sig { returns(Integer) } def amount_received; end # ID of the Connect application that created the PaymentIntent. - sig { returns(T.nilable(T.any(String, Stripe::Application))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Application))) } def application; end # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. The amount of the application fee collected will be capped at the total amount captured. For more information, see the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts). sig { returns(T.nilable(Integer)) } @@ -2819,7 +2873,7 @@ module Stripe # Payment methods attached to other Customers cannot be used with this PaymentIntent. # # If [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) is set and this PaymentIntent's payment method is not `card_present`, then the payment method attaches to the Customer after the PaymentIntent has been confirmed and any required actions from the user are complete. If the payment method is `card_present` and isn't a digital wallet, then a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card is created and attached to the Customer instead. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } @@ -2834,7 +2888,7 @@ module Stripe sig { returns(T.nilable(LastPaymentError)) } def last_payment_error; end # ID of the latest [Charge object](https://stripe.com/docs/api/charges) created by this PaymentIntent. This property is `null` until PaymentIntent confirmation is attempted. - sig { returns(T.nilable(T.any(String, Stripe::Charge))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Charge))) } def latest_charge; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -2849,10 +2903,13 @@ module Stripe sig { returns(String) } def object; end # The account (if any) for which the funds of the PaymentIntent are intended. See the PaymentIntents [use case for connected accounts](https://stripe.com/docs/payments/connected-accounts) for details. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def on_behalf_of; end + # Attribute for field payment_details + sig { returns(T.nilable(PaymentDetails)) } + def payment_details; end # ID of the payment method used in this PaymentIntent. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def payment_method; end # Information about the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) used for this PaymentIntent. sig { returns(T.nilable(PaymentMethodConfigurationDetails)) } @@ -2873,7 +2930,7 @@ module Stripe sig { returns(T.nilable(String)) } def receipt_email; end # ID of the review associated with this PaymentIntent, if any. - sig { returns(T.nilable(T.any(String, Stripe::Review))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Review))) } def review; end # Indicates that you intend to make future payments with this PaymentIntent's payment method. # @@ -2889,7 +2946,7 @@ module Stripe def shipping; end # This is a legacy field that will be removed in the future. It is the ID of the Source object that is associated with this PaymentIntent, if one was supplied. sig { - returns(T.nilable(T.any(String, T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source)))) + returns(T.nilable(T.any(String, T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source)))) } def source; end # Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). @@ -2911,13 +2968,13 @@ module Stripe def transfer_group; end # Manually reconcile the remaining amount for a customer_balance PaymentIntent. sig { - params(params: T.any(::Stripe::PaymentIntentApplyCustomerBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(params: T.any(::Stripe::PaymentIntentApplyCustomerBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def apply_customer_balance(params = {}, opts = {}); end # Manually reconcile the remaining amount for a customer_balance PaymentIntent. sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentApplyCustomerBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentApplyCustomerBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def self.apply_customer_balance(intent, params = {}, opts = {}); end @@ -2927,7 +2984,7 @@ module Stripe # # You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead. sig { - params(params: T.any(::Stripe::PaymentIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(params: T.any(::Stripe::PaymentIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def cancel(params = {}, opts = {}); end @@ -2937,7 +2994,7 @@ module Stripe # # You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead. sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def self.cancel(intent, params = {}, opts = {}); end @@ -2947,7 +3004,7 @@ module Stripe # # Learn more about [separate authorization and capture](https://docs.stripe.com/docs/payments/capture-later). sig { - params(params: T.any(::Stripe::PaymentIntentCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(params: T.any(::Stripe::PaymentIntentCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def capture(params = {}, opts = {}); end @@ -2957,7 +3014,7 @@ module Stripe # # Learn more about [separate authorization and capture](https://docs.stripe.com/docs/payments/capture-later). sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def self.capture(intent, params = {}, opts = {}); end @@ -2992,7 +3049,7 @@ module Stripe # After this limit is reached, any further calls to this endpoint will # transition the PaymentIntent to the canceled state. sig { - params(params: T.any(::Stripe::PaymentIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(params: T.any(::Stripe::PaymentIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def confirm(params = {}, opts = {}); end @@ -3027,7 +3084,7 @@ module Stripe # After this limit is reached, any further calls to this endpoint will # transition the PaymentIntent to the canceled state. sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def self.confirm(intent, params = {}, opts = {}); end @@ -3042,7 +3099,7 @@ module Stripe # available in the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) when you supply # confirm=true. sig { - params(params: T.any(::Stripe::PaymentIntentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(params: T.any(::Stripe::PaymentIntentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def self.create(params = {}, opts = {}); end @@ -3071,7 +3128,7 @@ module Stripe # # Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). sig { - params(params: T.any(::Stripe::PaymentIntentIncrementAuthorizationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(params: T.any(::Stripe::PaymentIntentIncrementAuthorizationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def increment_authorization(params = {}, opts = {}); end @@ -3100,23 +3157,23 @@ module Stripe # # Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentIncrementAuthorizationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentIncrementAuthorizationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def self.increment_authorization(intent, params = {}, opts = {}); end # Returns a list of PaymentIntents. sig { - params(params: T.any(::Stripe::PaymentIntentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PaymentIntentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::PaymentIntentSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::PaymentIntentSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def self.search(params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::PaymentIntentSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::PaymentIntentSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(::Stripe::SearchResultObject) } def self.search_auto_paging_each(params = {}, opts = {}, &blk); end @@ -3128,19 +3185,19 @@ module Stripe # update and confirm at the same time, we recommend updating properties through # the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) instead. sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def self.update(intent, params = {}, opts = {}); end # Verifies microdeposits on a PaymentIntent object. sig { - params(params: T.any(::Stripe::PaymentIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(params: T.any(::Stripe::PaymentIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def verify_microdeposits(params = {}, opts = {}); end # Verifies microdeposits on a PaymentIntent object. sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def self.verify_microdeposits(intent, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/payment_intent_amount_details_line_item.rbi b/rbi/stripe/resources/payment_intent_amount_details_line_item.rbi new file mode 100644 index 00000000..8ff3747d --- /dev/null +++ b/rbi/stripe/resources/payment_intent_amount_details_line_item.rbi @@ -0,0 +1,128 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + class PaymentIntentAmountDetailsLineItem < APIResource + class PaymentMethodOptions < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + # Attribute for field commodity_code + sig { returns(T.nilable(String)) } + def commodity_code; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class CardPresent < ::Stripe::StripeObject + # Attribute for field commodity_code + sig { returns(T.nilable(String)) } + def commodity_code; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Klarna < ::Stripe::StripeObject + # Attribute for field image_url + sig { returns(T.nilable(String)) } + def image_url; end + # Attribute for field product_url + sig { returns(T.nilable(String)) } + def product_url; end + # Attribute for field reference + sig { returns(T.nilable(String)) } + def reference; end + # Attribute for field subscription_reference + sig { returns(T.nilable(String)) } + def subscription_reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Paypal < ::Stripe::StripeObject + # Type of the line item. + sig { returns(T.nilable(String)) } + def category; end + # Description of the line item. + sig { returns(T.nilable(String)) } + def description; end + # The Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers). + sig { returns(T.nilable(String)) } + def sold_by; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field card + sig { returns(T.nilable(Card)) } + def card; end + # Attribute for field card_present + sig { returns(T.nilable(CardPresent)) } + def card_present; end + # Attribute for field klarna + sig { returns(T.nilable(Klarna)) } + def klarna; end + # Attribute for field paypal + sig { returns(T.nilable(Paypal)) } + def paypal; end + def self.inner_class_types + @inner_class_types = {card: Card, card_present: CardPresent, klarna: Klarna, paypal: Paypal} + end + def self.field_remappings + @field_remappings = {} + end + end + class Tax < ::Stripe::StripeObject + # Total portion of the amount that is for tax. + sig { returns(Integer) } + def total_tax_amount; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The amount an item was discounted for. Positive integer. + sig { returns(T.nilable(Integer)) } + def discount_amount; end + # Unique identifier for the object. + sig { returns(String) } + def id; end + # String representing the object's type. Objects of the same type share the same value. + sig { returns(String) } + def object; end + # Payment method-specific information for line items. + sig { returns(T.nilable(PaymentMethodOptions)) } + def payment_method_options; end + # Unique identifier of the product. At most 12 characters long. + sig { returns(T.nilable(String)) } + def product_code; end + # Name of the product. At most 100 characters long. + sig { returns(String) } + def product_name; end + # Number of items of the product. Positive integer. + sig { returns(Integer) } + def quantity; end + # Contains information about the tax on the item. + sig { returns(T.nilable(Tax)) } + def tax; end + # Cost of the product. Non-negative integer. + sig { returns(Integer) } + def unit_cost; end + # A unit of measure for the line item, such as gallons, feet, meters, etc. + sig { returns(T.nilable(String)) } + def unit_of_measure; end + end +end \ No newline at end of file diff --git a/rbi/stripe/resources/payment_link.rbi b/rbi/stripe/resources/payment_link.rbi index ddf83105..d7320811 100644 --- a/rbi/stripe/resources/payment_link.rbi +++ b/rbi/stripe/resources/payment_link.rbi @@ -9,8 +9,8 @@ module Stripe # # Related guide: [Payment Links API](https://stripe.com/docs/payment-links) class PaymentLink < APIResource - class AfterCompletion < Stripe::StripeObject - class HostedConfirmation < Stripe::StripeObject + class AfterCompletion < ::Stripe::StripeObject + class HostedConfirmation < ::Stripe::StripeObject # The custom message that is displayed to the customer after the purchase is complete. sig { returns(T.nilable(String)) } def custom_message; end @@ -21,7 +21,7 @@ module Stripe @field_remappings = {} end end - class Redirect < Stripe::StripeObject + class Redirect < ::Stripe::StripeObject # The URL the customer will be redirected to after the purchase is complete. sig { returns(String) } def url; end @@ -48,10 +48,10 @@ module Stripe @field_remappings = {} end end - class AutomaticTax < Stripe::StripeObject - class Liability < Stripe::StripeObject + class AutomaticTax < ::Stripe::StripeObject + class Liability < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -76,8 +76,8 @@ module Stripe @field_remappings = {} end end - class ConsentCollection < Stripe::StripeObject - class PaymentMethodReuseAgreement < Stripe::StripeObject + class ConsentCollection < ::Stripe::StripeObject + class PaymentMethodReuseAgreement < ::Stripe::StripeObject # Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's defaults will be used. # # When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI. @@ -106,9 +106,9 @@ module Stripe @field_remappings = {} end end - class CustomField < Stripe::StripeObject - class Dropdown < Stripe::StripeObject - class Option < Stripe::StripeObject + class CustomField < ::Stripe::StripeObject + class Dropdown < ::Stripe::StripeObject + class Option < ::Stripe::StripeObject # The label for the option, displayed to the customer. Up to 100 characters. sig { returns(String) } def label; end @@ -135,7 +135,7 @@ module Stripe @field_remappings = {} end end - class Label < Stripe::StripeObject + class Label < ::Stripe::StripeObject # Custom text for the label, displayed to the customer. Up to 50 characters. sig { returns(T.nilable(String)) } def custom; end @@ -149,7 +149,7 @@ module Stripe @field_remappings = {} end end - class Numeric < Stripe::StripeObject + class Numeric < ::Stripe::StripeObject # The value that will pre-fill the field on the payment page. sig { returns(T.nilable(String)) } def default_value; end @@ -166,7 +166,7 @@ module Stripe @field_remappings = {} end end - class Text < Stripe::StripeObject + class Text < ::Stripe::StripeObject # The value that will pre-fill the field on the payment page. sig { returns(T.nilable(String)) } def default_value; end @@ -211,8 +211,8 @@ module Stripe @field_remappings = {} end end - class CustomText < Stripe::StripeObject - class AfterSubmit < Stripe::StripeObject + class CustomText < ::Stripe::StripeObject + class AfterSubmit < ::Stripe::StripeObject # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -223,7 +223,7 @@ module Stripe @field_remappings = {} end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -234,7 +234,7 @@ module Stripe @field_remappings = {} end end - class Submit < Stripe::StripeObject + class Submit < ::Stripe::StripeObject # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -245,7 +245,7 @@ module Stripe @field_remappings = {} end end - class TermsOfServiceAcceptance < Stripe::StripeObject + class TermsOfServiceAcceptance < ::Stripe::StripeObject # Text may be up to 1200 characters in length. sig { returns(String) } def message; end @@ -280,9 +280,9 @@ module Stripe @field_remappings = {} end end - class InvoiceCreation < Stripe::StripeObject - class InvoiceData < Stripe::StripeObject - class CustomField < Stripe::StripeObject + class InvoiceCreation < ::Stripe::StripeObject + class InvoiceData < ::Stripe::StripeObject + class CustomField < ::Stripe::StripeObject # The name of the custom field. sig { returns(String) } def name; end @@ -296,9 +296,9 @@ module Stripe @field_remappings = {} end end - class Issuer < Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -310,7 +310,7 @@ module Stripe @field_remappings = {} end end - class RenderingOptions < Stripe::StripeObject + class RenderingOptions < ::Stripe::StripeObject # How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. sig { returns(T.nilable(String)) } def amount_tax_display; end @@ -325,7 +325,7 @@ module Stripe end end # The account tax IDs associated with the invoice. - sig { returns(T.nilable(T::Array[T.any(String, Stripe::TaxId)])) } + sig { returns(T.nilable(T::Array[T.any(String, ::Stripe::TaxId)])) } def account_tax_ids; end # A list of up to 4 custom fields to be displayed on the invoice. sig { returns(T.nilable(T::Array[CustomField])) } @@ -369,8 +369,50 @@ module Stripe @field_remappings = {} end end - class OptionalItem < Stripe::StripeObject - class AdjustableQuantity < Stripe::StripeObject + class NameCollection < ::Stripe::StripeObject + class Business < ::Stripe::StripeObject + # Indicates whether business name collection is enabled for the payment link. + sig { returns(T::Boolean) } + def enabled; end + # Whether the customer is required to complete the field before checking out. Defaults to `false`. + sig { returns(T::Boolean) } + def optional; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Individual < ::Stripe::StripeObject + # Indicates whether individual name collection is enabled for the payment link. + sig { returns(T::Boolean) } + def enabled; end + # Whether the customer is required to complete the field before checking out. Defaults to `false`. + sig { returns(T::Boolean) } + def optional; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field business + sig { returns(T.nilable(Business)) } + def business; end + # Attribute for field individual + sig { returns(T.nilable(Individual)) } + def individual; end + def self.inner_class_types + @inner_class_types = {business: Business, individual: Individual} + end + def self.field_remappings + @field_remappings = {} + end + end + class OptionalItem < ::Stripe::StripeObject + class AdjustableQuantity < ::Stripe::StripeObject # Set to true if the quantity can be adjusted to any non-negative integer. sig { returns(T::Boolean) } def enabled; end @@ -403,7 +445,7 @@ module Stripe @field_remappings = {} end end - class PaymentIntentData < Stripe::StripeObject + class PaymentIntentData < ::Stripe::StripeObject # Indicates when the funds will be captured from the customer's account. sig { returns(T.nilable(String)) } def capture_method; end @@ -432,7 +474,7 @@ module Stripe @field_remappings = {} end end - class PhoneNumberCollection < Stripe::StripeObject + class PhoneNumberCollection < ::Stripe::StripeObject # If `true`, a phone number will be collected during checkout. sig { returns(T::Boolean) } def enabled; end @@ -443,8 +485,8 @@ module Stripe @field_remappings = {} end end - class Restrictions < Stripe::StripeObject - class CompletedSessions < Stripe::StripeObject + class Restrictions < ::Stripe::StripeObject + class CompletedSessions < ::Stripe::StripeObject # The current number of checkout sessions that have been completed on the payment link which count towards the `completed_sessions` restriction to be met. sig { returns(Integer) } def count; end @@ -468,7 +510,7 @@ module Stripe @field_remappings = {} end end - class ShippingAddressCollection < Stripe::StripeObject + class ShippingAddressCollection < ::Stripe::StripeObject # An array of two-letter ISO country codes representing which countries Checkout should provide as options for shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI`. sig { returns(T::Array[String]) } def allowed_countries; end @@ -479,12 +521,12 @@ module Stripe @field_remappings = {} end end - class ShippingOption < Stripe::StripeObject + class ShippingOption < ::Stripe::StripeObject # A non-negative integer in cents representing how much to charge. sig { returns(Integer) } def shipping_amount; end # The ID of the Shipping Rate to use for this shipping option. - sig { returns(T.any(String, Stripe::ShippingRate)) } + sig { returns(T.any(String, ::Stripe::ShippingRate)) } def shipping_rate; end def self.inner_class_types @inner_class_types = {} @@ -493,11 +535,11 @@ module Stripe @field_remappings = {} end end - class SubscriptionData < Stripe::StripeObject - class InvoiceSettings < Stripe::StripeObject - class Issuer < Stripe::StripeObject + class SubscriptionData < ::Stripe::StripeObject + class InvoiceSettings < ::Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -519,8 +561,8 @@ module Stripe @field_remappings = {} end end - class TrialSettings < Stripe::StripeObject - class EndBehavior < Stripe::StripeObject + class TrialSettings < ::Stripe::StripeObject + class EndBehavior < ::Stripe::StripeObject # Indicates how the subscription should change when the trial ends if the user did not provide a payment method. sig { returns(String) } def missing_payment_method; end @@ -563,7 +605,7 @@ module Stripe @field_remappings = {} end end - class TaxIdCollection < Stripe::StripeObject + class TaxIdCollection < ::Stripe::StripeObject # Indicates whether tax ID collection is enabled for the session. sig { returns(T::Boolean) } def enabled; end @@ -577,12 +619,12 @@ module Stripe @field_remappings = {} end end - class TransferData < Stripe::StripeObject + class TransferData < ::Stripe::StripeObject # The amount in cents (or local equivalent) that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Integer)) } def amount; end # The connected account receiving the transfer. - sig { returns(T.any(String, Stripe::Account)) } + sig { returns(T.any(String, ::Stripe::Account)) } def destination; end def self.inner_class_types @inner_class_types = {} @@ -601,7 +643,7 @@ module Stripe sig { returns(T::Boolean) } def allow_promotion_codes; end # The ID of the Connect application that created the Payment Link. - sig { returns(T.nilable(T.any(String, Stripe::Application))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Application))) } def application; end # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. sig { returns(T.nilable(Integer)) } @@ -640,7 +682,7 @@ module Stripe sig { returns(T.nilable(InvoiceCreation)) } def invoice_creation; end # The line items representing what is being sold. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def line_items; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -648,11 +690,14 @@ module Stripe # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. sig { returns(T::Hash[String, String]) } def metadata; end + # Attribute for field name_collection + sig { returns(T.nilable(NameCollection)) } + def name_collection; end # String representing the object's type. Objects of the same type share the same value. sig { returns(String) } def object; end # The account on behalf of which to charge. See the [Connect documentation](https://support.stripe.com/questions/sending-invoices-on-behalf-of-connected-accounts) for details. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def on_behalf_of; end # The optional items presented to the customer at checkout. sig { returns(T.nilable(T::Array[OptionalItem])) } @@ -695,31 +740,31 @@ module Stripe def url; end # Creates a payment link. sig { - params(params: T.any(::Stripe::PaymentLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentLink) + params(params: T.any(::Stripe::PaymentLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentLink) } def self.create(params = {}, opts = {}); end # Returns a list of your payment links. sig { - params(params: T.any(::Stripe::PaymentLinkListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PaymentLinkListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # When retrieving a payment link, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. sig { - params(params: T.any(::Stripe::PaymentLinkListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PaymentLinkListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list_line_items(params = {}, opts = {}); end # When retrieving a payment link, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. sig { - params(payment_link: String, params: T.any(::Stripe::PaymentLinkListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(payment_link: String, params: T.any(::Stripe::PaymentLinkListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list_line_items(payment_link, params = {}, opts = {}); end # Updates a payment link. sig { - params(payment_link: String, params: T.any(::Stripe::PaymentLinkUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentLink) + params(payment_link: String, params: T.any(::Stripe::PaymentLinkUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentLink) } def self.update(payment_link, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/payment_method.rbi b/rbi/stripe/resources/payment_method.rbi index 0a8bf13d..bc935ea8 100644 --- a/rbi/stripe/resources/payment_method.rbi +++ b/rbi/stripe/resources/payment_method.rbi @@ -9,7 +9,7 @@ module Stripe # # Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios). class PaymentMethod < APIResource - class AcssDebit < Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject # Name of the bank associated with the bank account. sig { returns(T.nilable(String)) } def bank_name; end @@ -32,7 +32,7 @@ module Stripe @field_remappings = {} end end - class Affirm < Stripe::StripeObject + class Affirm < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -40,7 +40,7 @@ module Stripe @field_remappings = {} end end - class AfterpayClearpay < Stripe::StripeObject + class AfterpayClearpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -48,7 +48,7 @@ module Stripe @field_remappings = {} end end - class Alipay < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -56,7 +56,7 @@ module Stripe @field_remappings = {} end end - class Alma < Stripe::StripeObject + class Alma < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -64,7 +64,7 @@ module Stripe @field_remappings = {} end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -72,7 +72,7 @@ module Stripe @field_remappings = {} end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject # Six-digit number identifying bank and branch associated with this bank account. sig { returns(T.nilable(String)) } def bsb_number; end @@ -89,7 +89,7 @@ module Stripe @field_remappings = {} end end - class BacsDebit < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. sig { returns(T.nilable(String)) } def fingerprint; end @@ -106,7 +106,7 @@ module Stripe @field_remappings = {} end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -114,7 +114,7 @@ module Stripe @field_remappings = {} end end - class Billie < Stripe::StripeObject + class Billie < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -122,8 +122,8 @@ module Stripe @field_remappings = {} end end - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -171,7 +171,7 @@ module Stripe @field_remappings = {} end end - class Blik < Stripe::StripeObject + class Blik < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -179,7 +179,7 @@ module Stripe @field_remappings = {} end end - class Boleto < Stripe::StripeObject + class Boleto < ::Stripe::StripeObject # Uniquely identifies the customer tax id (CNPJ or CPF) sig { returns(String) } def tax_id; end @@ -190,8 +190,8 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject - class Checks < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Checks < ::Stripe::StripeObject # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. sig { returns(T.nilable(String)) } def address_line1_check; end @@ -208,10 +208,10 @@ module Stripe @field_remappings = {} end end - class GeneratedFrom < Stripe::StripeObject - class PaymentMethodDetails < Stripe::StripeObject - class CardPresent < Stripe::StripeObject - class Offline < Stripe::StripeObject + class GeneratedFrom < ::Stripe::StripeObject + class PaymentMethodDetails < ::Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject + class Offline < ::Stripe::StripeObject # Time at which the payment was collected while offline sig { returns(T.nilable(Integer)) } def stored_at; end @@ -225,7 +225,7 @@ module Stripe @field_remappings = {} end end - class Receipt < Stripe::StripeObject + class Receipt < ::Stripe::StripeObject # The type of account being debited or credited sig { returns(T.nilable(String)) } def account_type; end @@ -260,7 +260,7 @@ module Stripe @field_remappings = {} end end - class Wallet < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. sig { returns(String) } def type; end @@ -375,7 +375,7 @@ module Stripe sig { returns(T.nilable(PaymentMethodDetails)) } def payment_method_details; end # The ID of the SetupAttempt that generated this PaymentMethod, if any. - sig { returns(T.nilable(T.any(String, Stripe::SetupAttempt))) } + sig { returns(T.nilable(T.any(String, ::Stripe::SetupAttempt))) } def setup_attempt; end def self.inner_class_types @inner_class_types = {payment_method_details: PaymentMethodDetails} @@ -384,7 +384,7 @@ module Stripe @field_remappings = {} end end - class Networks < Stripe::StripeObject + class Networks < ::Stripe::StripeObject # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). sig { returns(T::Array[String]) } def available; end @@ -398,7 +398,7 @@ module Stripe @field_remappings = {} end end - class ThreeDSecureUsage < Stripe::StripeObject + class ThreeDSecureUsage < ::Stripe::StripeObject # Whether 3D Secure is supported on this card. sig { returns(T::Boolean) } def supported; end @@ -409,8 +409,8 @@ module Stripe @field_remappings = {} end end - class Wallet < Stripe::StripeObject - class AmexExpressCheckout < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject + class AmexExpressCheckout < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -418,7 +418,7 @@ module Stripe @field_remappings = {} end end - class ApplePay < Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -426,7 +426,7 @@ module Stripe @field_remappings = {} end end - class GooglePay < Stripe::StripeObject + class GooglePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -434,7 +434,7 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -442,8 +442,8 @@ module Stripe @field_remappings = {} end end - class Masterpass < Stripe::StripeObject - class BillingAddress < Stripe::StripeObject + class Masterpass < ::Stripe::StripeObject + class BillingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -469,7 +469,7 @@ module Stripe @field_remappings = {} end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -517,7 +517,7 @@ module Stripe @field_remappings = {} end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -525,8 +525,8 @@ module Stripe @field_remappings = {} end end - class VisaCheckout < Stripe::StripeObject - class BillingAddress < Stripe::StripeObject + class VisaCheckout < ::Stripe::StripeObject + class BillingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -552,7 +552,7 @@ module Stripe @field_remappings = {} end end - class ShippingAddress < Stripe::StripeObject + class ShippingAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -708,8 +708,8 @@ module Stripe @field_remappings = {} end end - class CardPresent < Stripe::StripeObject - class Networks < Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject + class Networks < ::Stripe::StripeObject # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). sig { returns(T::Array[String]) } def available; end @@ -723,7 +723,7 @@ module Stripe @field_remappings = {} end end - class Offline < Stripe::StripeObject + class Offline < ::Stripe::StripeObject # Time at which the payment was collected while offline sig { returns(T.nilable(Integer)) } def stored_at; end @@ -737,7 +737,7 @@ module Stripe @field_remappings = {} end end - class Wallet < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. sig { returns(String) } def type; end @@ -808,7 +808,7 @@ module Stripe @field_remappings = {} end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject # A unique and immutable identifier assigned by Cash App to every buyer. sig { returns(T.nilable(String)) } def buyer_id; end @@ -822,7 +822,7 @@ module Stripe @field_remappings = {} end end - class Crypto < Stripe::StripeObject + class Crypto < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -830,7 +830,38 @@ module Stripe @field_remappings = {} end end - class CustomerBalance < Stripe::StripeObject + class Custom < ::Stripe::StripeObject + class Logo < ::Stripe::StripeObject + # Content type of the Dashboard-only CustomPaymentMethodType logo. + sig { returns(T.nilable(String)) } + def content_type; end + # URL of the Dashboard-only CustomPaymentMethodType logo. + sig { returns(String) } + def url; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Display name of the Dashboard-only CustomPaymentMethodType. + sig { returns(T.nilable(String)) } + def display_name; end + # Contains information about the Dashboard-only CustomPaymentMethodType logo. + sig { returns(T.nilable(Logo)) } + def logo; end + # ID of the Dashboard-only CustomPaymentMethodType. Not expandable. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {logo: Logo} + end + def self.field_remappings + @field_remappings = {} + end + end + class CustomerBalance < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -838,7 +869,7 @@ module Stripe @field_remappings = {} end end - class Eps < Stripe::StripeObject + class Eps < ::Stripe::StripeObject # The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. sig { returns(T.nilable(String)) } def bank; end @@ -849,7 +880,7 @@ module Stripe @field_remappings = {} end end - class Fpx < Stripe::StripeObject + class Fpx < ::Stripe::StripeObject # Account holder type, if provided. Can be one of `individual` or `company`. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -863,7 +894,7 @@ module Stripe @field_remappings = {} end end - class Giropay < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -871,7 +902,7 @@ module Stripe @field_remappings = {} end end - class Grabpay < Stripe::StripeObject + class Grabpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -879,7 +910,7 @@ module Stripe @field_remappings = {} end end - class Ideal < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject # The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. sig { returns(T.nilable(String)) } def bank; end @@ -893,8 +924,8 @@ module Stripe @field_remappings = {} end end - class InteracPresent < Stripe::StripeObject - class Networks < Stripe::StripeObject + class InteracPresent < ::Stripe::StripeObject + class Networks < ::Stripe::StripeObject # All networks available for selection via [payment_method_options.card.network](/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). sig { returns(T::Array[String]) } def available; end @@ -959,7 +990,7 @@ module Stripe @field_remappings = {} end end - class KakaoPay < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -967,8 +998,8 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject - class Dob < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject + class Dob < ::Stripe::StripeObject # The day of birth, between 1 and 31. sig { returns(T.nilable(Integer)) } def day; end @@ -995,7 +1026,7 @@ module Stripe @field_remappings = {} end end - class Konbini < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1003,7 +1034,7 @@ module Stripe @field_remappings = {} end end - class KrCard < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject # The local credit or debit card brand. sig { returns(T.nilable(String)) } def brand; end @@ -1017,7 +1048,7 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject # Account owner's email address. sig { returns(T.nilable(String)) } def email; end @@ -1031,7 +1062,7 @@ module Stripe @field_remappings = {} end end - class MbWay < Stripe::StripeObject + class MbWay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1039,7 +1070,7 @@ module Stripe @field_remappings = {} end end - class Mobilepay < Stripe::StripeObject + class Mobilepay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1047,7 +1078,7 @@ module Stripe @field_remappings = {} end end - class Multibanco < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1055,7 +1086,7 @@ module Stripe @field_remappings = {} end end - class NaverPay < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject # Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same. sig { returns(T.nilable(String)) } def buyer_id; end @@ -1069,7 +1100,7 @@ module Stripe @field_remappings = {} end end - class NzBankAccount < Stripe::StripeObject + class NzBankAccount < ::Stripe::StripeObject # The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. sig { returns(T.nilable(String)) } def account_holder_name; end @@ -1095,7 +1126,7 @@ module Stripe @field_remappings = {} end end - class Oxxo < Stripe::StripeObject + class Oxxo < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1103,7 +1134,7 @@ module Stripe @field_remappings = {} end end - class P24 < Stripe::StripeObject + class P24 < ::Stripe::StripeObject # The customer's bank, if provided. sig { returns(T.nilable(String)) } def bank; end @@ -1114,7 +1145,7 @@ module Stripe @field_remappings = {} end end - class PayByBank < Stripe::StripeObject + class PayByBank < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1122,7 +1153,7 @@ module Stripe @field_remappings = {} end end - class Payco < Stripe::StripeObject + class Payco < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1130,7 +1161,7 @@ module Stripe @field_remappings = {} end end - class Paynow < Stripe::StripeObject + class Paynow < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1138,7 +1169,7 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. sig { returns(T.nilable(String)) } def country; end @@ -1156,7 +1187,7 @@ module Stripe @field_remappings = {} end end - class Pix < Stripe::StripeObject + class Pix < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1164,7 +1195,7 @@ module Stripe @field_remappings = {} end end - class Promptpay < Stripe::StripeObject + class Promptpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1172,7 +1203,7 @@ module Stripe @field_remappings = {} end end - class RadarOptions < Stripe::StripeObject + class RadarOptions < ::Stripe::StripeObject # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. sig { returns(T.nilable(String)) } def session; end @@ -1183,7 +1214,7 @@ module Stripe @field_remappings = {} end end - class RevolutPay < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1191,7 +1222,7 @@ module Stripe @field_remappings = {} end end - class SamsungPay < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1199,7 +1230,7 @@ module Stripe @field_remappings = {} end end - class Satispay < Stripe::StripeObject + class Satispay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1207,13 +1238,13 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject - class GeneratedFrom < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject + class GeneratedFrom < ::Stripe::StripeObject # The ID of the Charge that generated this PaymentMethod, if any. - sig { returns(T.nilable(T.any(String, Stripe::Charge))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Charge))) } def charge; end # The ID of the SetupAttempt that generated this PaymentMethod, if any. - sig { returns(T.nilable(T.any(String, Stripe::SetupAttempt))) } + sig { returns(T.nilable(T.any(String, ::Stripe::SetupAttempt))) } def setup_attempt; end def self.inner_class_types @inner_class_types = {} @@ -1247,7 +1278,7 @@ module Stripe @field_remappings = {} end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject # Two-letter ISO code representing the country the bank account is located in. sig { returns(T.nilable(String)) } def country; end @@ -1258,7 +1289,7 @@ module Stripe @field_remappings = {} end end - class Swish < Stripe::StripeObject + class Swish < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1266,7 +1297,7 @@ module Stripe @field_remappings = {} end end - class Twint < Stripe::StripeObject + class Twint < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1274,8 +1305,8 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject - class Networks < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject + class Networks < ::Stripe::StripeObject # The preferred network. sig { returns(T.nilable(String)) } def preferred; end @@ -1289,8 +1320,8 @@ module Stripe @field_remappings = {} end end - class StatusDetails < Stripe::StripeObject - class Blocked < Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject + class Blocked < ::Stripe::StripeObject # The ACH network code that resulted in this block. sig { returns(T.nilable(String)) } def network_code; end @@ -1348,7 +1379,7 @@ module Stripe @field_remappings = {} end end - class WechatPay < Stripe::StripeObject + class WechatPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1356,7 +1387,7 @@ module Stripe @field_remappings = {} end end - class Zip < Stripe::StripeObject + class Zip < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -1421,8 +1452,11 @@ module Stripe # Attribute for field crypto sig { returns(T.nilable(Crypto)) } def crypto; end + # Attribute for field custom + sig { returns(T.nilable(Custom)) } + def custom; end # The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # Attribute for field customer_balance sig { returns(T.nilable(CustomerBalance)) } @@ -1561,7 +1595,7 @@ module Stripe # set [invoice_settings.default_payment_method](https://docs.stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method), # on the Customer to the PaymentMethod's ID. sig { - params(params: T.any(::Stripe::PaymentMethodAttachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(params: T.any(::Stripe::PaymentMethodAttachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def attach(params = {}, opts = {}); end @@ -1579,7 +1613,7 @@ module Stripe # set [invoice_settings.default_payment_method](https://docs.stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method), # on the Customer to the PaymentMethod's ID. sig { - params(payment_method: String, params: T.any(::Stripe::PaymentMethodAttachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(payment_method: String, params: T.any(::Stripe::PaymentMethodAttachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def self.attach(payment_method, params = {}, opts = {}); end @@ -1587,31 +1621,31 @@ module Stripe # # Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the SetupIntent](https://docs.stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment. sig { - params(params: T.any(::Stripe::PaymentMethodCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(params: T.any(::Stripe::PaymentMethodCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def self.create(params = {}, opts = {}); end # Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer. sig { - params(params: T.any(::Stripe::PaymentMethodDetachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(params: T.any(::Stripe::PaymentMethodDetachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def detach(params = {}, opts = {}); end # Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer. sig { - params(payment_method: String, params: T.any(::Stripe::PaymentMethodDetachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(payment_method: String, params: T.any(::Stripe::PaymentMethodDetachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def self.detach(payment_method, params = {}, opts = {}); end # Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://docs.stripe.com/docs/api/payment_methods/customer_list) API instead. sig { - params(params: T.any(::Stripe::PaymentMethodListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PaymentMethodListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated. sig { - params(payment_method: String, params: T.any(::Stripe::PaymentMethodUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(payment_method: String, params: T.any(::Stripe::PaymentMethodUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def self.update(payment_method, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/payment_method_configuration.rbi b/rbi/stripe/resources/payment_method_configuration.rbi index 210d472f..895a975b 100644 --- a/rbi/stripe/resources/payment_method_configuration.rbi +++ b/rbi/stripe/resources/payment_method_configuration.rbi @@ -18,8 +18,8 @@ module Stripe # - [Multiple configurations on dynamic payment methods](https://stripe.com/docs/payments/multiple-payment-method-configs) # - [Multiple configurations for your Connect accounts](https://stripe.com/docs/connect/multiple-payment-method-configurations) class PaymentMethodConfiguration < APIResource - class AcssDebit < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -49,8 +49,8 @@ module Stripe @field_remappings = {} end end - class Affirm < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Affirm < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -80,8 +80,8 @@ module Stripe @field_remappings = {} end end - class AfterpayClearpay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class AfterpayClearpay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -111,8 +111,8 @@ module Stripe @field_remappings = {} end end - class Alipay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -142,8 +142,8 @@ module Stripe @field_remappings = {} end end - class Alma < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Alma < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -173,8 +173,8 @@ module Stripe @field_remappings = {} end end - class AmazonPay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -204,8 +204,8 @@ module Stripe @field_remappings = {} end end - class ApplePay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -235,8 +235,8 @@ module Stripe @field_remappings = {} end end - class AuBecsDebit < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -266,8 +266,8 @@ module Stripe @field_remappings = {} end end - class BacsDebit < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -297,8 +297,8 @@ module Stripe @field_remappings = {} end end - class Bancontact < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -328,8 +328,8 @@ module Stripe @field_remappings = {} end end - class Billie < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Billie < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -359,8 +359,8 @@ module Stripe @field_remappings = {} end end - class Blik < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Blik < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -390,8 +390,8 @@ module Stripe @field_remappings = {} end end - class Boleto < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Boleto < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -421,8 +421,8 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -452,8 +452,8 @@ module Stripe @field_remappings = {} end end - class CartesBancaires < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class CartesBancaires < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -483,8 +483,8 @@ module Stripe @field_remappings = {} end end - class Cashapp < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -514,8 +514,8 @@ module Stripe @field_remappings = {} end end - class CustomerBalance < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Crypto < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -545,8 +545,8 @@ module Stripe @field_remappings = {} end end - class Eps < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class CustomerBalance < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -576,8 +576,8 @@ module Stripe @field_remappings = {} end end - class Fpx < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Eps < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -607,8 +607,8 @@ module Stripe @field_remappings = {} end end - class Giropay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Fpx < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -638,8 +638,8 @@ module Stripe @field_remappings = {} end end - class GooglePay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -669,8 +669,8 @@ module Stripe @field_remappings = {} end end - class Grabpay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class GooglePay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -700,8 +700,8 @@ module Stripe @field_remappings = {} end end - class Ideal < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Grabpay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -731,8 +731,8 @@ module Stripe @field_remappings = {} end end - class Jcb < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -762,8 +762,8 @@ module Stripe @field_remappings = {} end end - class KakaoPay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Jcb < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -793,8 +793,8 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -824,8 +824,8 @@ module Stripe @field_remappings = {} end end - class Konbini < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -855,8 +855,8 @@ module Stripe @field_remappings = {} end end - class KrCard < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -886,8 +886,8 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -917,8 +917,8 @@ module Stripe @field_remappings = {} end end - class Mobilepay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Link < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -948,8 +948,8 @@ module Stripe @field_remappings = {} end end - class Multibanco < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class MbWay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -979,8 +979,8 @@ module Stripe @field_remappings = {} end end - class NaverPay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Mobilepay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -1010,8 +1010,8 @@ module Stripe @field_remappings = {} end end - class NzBankAccount < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -1041,8 +1041,8 @@ module Stripe @field_remappings = {} end end - class Oxxo < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -1072,8 +1072,8 @@ module Stripe @field_remappings = {} end end - class P24 < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class NzBankAccount < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -1103,8 +1103,8 @@ module Stripe @field_remappings = {} end end - class PayByBank < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Oxxo < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -1134,8 +1134,8 @@ module Stripe @field_remappings = {} end end - class Payco < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class P24 < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -1165,8 +1165,8 @@ module Stripe @field_remappings = {} end end - class Paynow < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class PayByBank < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -1196,8 +1196,8 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Payco < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -1227,8 +1227,8 @@ module Stripe @field_remappings = {} end end - class Pix < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Paynow < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -1258,8 +1258,8 @@ module Stripe @field_remappings = {} end end - class Promptpay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -1289,8 +1289,8 @@ module Stripe @field_remappings = {} end end - class RevolutPay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Pix < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -1320,8 +1320,8 @@ module Stripe @field_remappings = {} end end - class SamsungPay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Promptpay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -1351,8 +1351,8 @@ module Stripe @field_remappings = {} end end - class Satispay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -1382,8 +1382,8 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class SamsungPay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -1413,8 +1413,8 @@ module Stripe @field_remappings = {} end end - class Sofort < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Satispay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -1444,8 +1444,8 @@ module Stripe @field_remappings = {} end end - class Swish < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -1475,8 +1475,8 @@ module Stripe @field_remappings = {} end end - class Twint < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -1506,8 +1506,8 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Swish < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -1537,8 +1537,8 @@ module Stripe @field_remappings = {} end end - class WechatPay < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class Twint < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -1568,8 +1568,70 @@ module Stripe @field_remappings = {} end end - class Zip < Stripe::StripeObject - class DisplayPreference < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject + # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + sig { returns(T.nilable(T::Boolean)) } + def overridable; end + # The account's display preference. + sig { returns(String) } + def preference; end + # The effective display preference value. + sig { returns(String) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + sig { returns(T::Boolean) } + def available; end + # Attribute for field display_preference + sig { returns(DisplayPreference) } + def display_preference; end + def self.inner_class_types + @inner_class_types = {display_preference: DisplayPreference} + end + def self.field_remappings + @field_remappings = {} + end + end + class WechatPay < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject + # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. + sig { returns(T.nilable(T::Boolean)) } + def overridable; end + # The account's display preference. + sig { returns(String) } + def preference; end + # The effective display preference value. + sig { returns(String) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. + sig { returns(T::Boolean) } + def available; end + # Attribute for field display_preference + sig { returns(DisplayPreference) } + def display_preference; end + def self.inner_class_types + @inner_class_types = {display_preference: DisplayPreference} + end + def self.field_remappings + @field_remappings = {} + end + end + class Zip < ::Stripe::StripeObject + class DisplayPreference < ::Stripe::StripeObject # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used. sig { returns(T.nilable(T::Boolean)) } def overridable; end @@ -1653,6 +1715,9 @@ module Stripe # Attribute for field cashapp sig { returns(T.nilable(Cashapp)) } def cashapp; end + # Attribute for field crypto + sig { returns(T.nilable(Crypto)) } + def crypto; end # Attribute for field customer_balance sig { returns(T.nilable(CustomerBalance)) } def customer_balance; end @@ -1701,6 +1766,9 @@ module Stripe # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } def livemode; end + # Attribute for field mb_way + sig { returns(T.nilable(MbWay)) } + def mb_way; end # Attribute for field mobilepay sig { returns(T.nilable(Mobilepay)) } def mobilepay; end @@ -1778,19 +1846,19 @@ module Stripe def zip; end # Creates a payment method configuration sig { - params(params: T.any(::Stripe::PaymentMethodConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodConfiguration) + params(params: T.any(::Stripe::PaymentMethodConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodConfiguration) } def self.create(params = {}, opts = {}); end # List payment method configurations sig { - params(params: T.any(::Stripe::PaymentMethodConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PaymentMethodConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Update payment method configuration sig { - params(configuration: String, params: T.any(::Stripe::PaymentMethodConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodConfiguration) + params(configuration: String, params: T.any(::Stripe::PaymentMethodConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodConfiguration) } def self.update(configuration, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/payment_method_domain.rbi b/rbi/stripe/resources/payment_method_domain.rbi index 2a32e25a..0a27cbcf 100644 --- a/rbi/stripe/resources/payment_method_domain.rbi +++ b/rbi/stripe/resources/payment_method_domain.rbi @@ -8,8 +8,8 @@ module Stripe # # Related guide: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration). class PaymentMethodDomain < APIResource - class AmazonPay < Stripe::StripeObject - class StatusDetails < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject # The error message associated with the status of the payment method on the domain. sig { returns(String) } def error_message; end @@ -33,8 +33,8 @@ module Stripe @field_remappings = {} end end - class ApplePay < Stripe::StripeObject - class StatusDetails < Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject # The error message associated with the status of the payment method on the domain. sig { returns(String) } def error_message; end @@ -58,8 +58,8 @@ module Stripe @field_remappings = {} end end - class GooglePay < Stripe::StripeObject - class StatusDetails < Stripe::StripeObject + class GooglePay < ::Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject # The error message associated with the status of the payment method on the domain. sig { returns(String) } def error_message; end @@ -83,8 +83,8 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject - class StatusDetails < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject # The error message associated with the status of the payment method on the domain. sig { returns(String) } def error_message; end @@ -108,8 +108,8 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject - class StatusDetails < Stripe::StripeObject + class Link < ::Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject # The error message associated with the status of the payment method on the domain. sig { returns(String) } def error_message; end @@ -133,8 +133,8 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject - class StatusDetails < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject # The error message associated with the status of the payment method on the domain. sig { returns(String) } def error_message; end @@ -196,19 +196,19 @@ module Stripe def paypal; end # Creates a payment method domain. sig { - params(params: T.any(::Stripe::PaymentMethodDomainCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodDomain) + params(params: T.any(::Stripe::PaymentMethodDomainCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodDomain) } def self.create(params = {}, opts = {}); end # Lists the details of existing payment method domains. sig { - params(params: T.any(::Stripe::PaymentMethodDomainListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PaymentMethodDomainListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates an existing payment method domain. sig { - params(payment_method_domain: String, params: T.any(::Stripe::PaymentMethodDomainUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodDomain) + params(payment_method_domain: String, params: T.any(::Stripe::PaymentMethodDomainUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodDomain) } def self.update(payment_method_domain, params = {}, opts = {}); end @@ -219,7 +219,7 @@ module Stripe # # Related guides: [Payment method domains](https://docs.stripe.com/docs/payments/payment-methods/pmd-registration). sig { - params(params: T.any(::Stripe::PaymentMethodDomainValidateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodDomain) + params(params: T.any(::Stripe::PaymentMethodDomainValidateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodDomain) } def validate(params = {}, opts = {}); end @@ -230,7 +230,7 @@ module Stripe # # Related guides: [Payment method domains](https://docs.stripe.com/docs/payments/payment-methods/pmd-registration). sig { - params(payment_method_domain: String, params: T.any(::Stripe::PaymentMethodDomainValidateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodDomain) + params(payment_method_domain: String, params: T.any(::Stripe::PaymentMethodDomainValidateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodDomain) } def self.validate(payment_method_domain, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/payment_record.rbi b/rbi/stripe/resources/payment_record.rbi new file mode 100644 index 00000000..d794b4bd --- /dev/null +++ b/rbi/stripe/resources/payment_record.rbi @@ -0,0 +1,2093 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + # A Payment Record is a resource that allows you to represent payments that occur on- or off-Stripe. + # For example, you can create a Payment Record to model a payment made on a different payment processor, + # in order to mark an Invoice as paid and a Subscription as active. Payment Records consist of one or + # more Payment Attempt Records, which represent individual attempts made on a payment network. + class PaymentRecord < APIResource + class Amount < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountAuthorized < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountCanceled < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountFailed < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountGuaranteed < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountRefunded < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmountRequested < ::Stripe::StripeObject + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY. + sig { returns(Integer) } + def value; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class CustomerDetails < ::Stripe::StripeObject + # ID of the Stripe Customer associated with this payment. + sig { returns(T.nilable(String)) } + def customer; end + # The customer's email address. + sig { returns(T.nilable(String)) } + def email; end + # The customer's name. + sig { returns(T.nilable(String)) } + def name; end + # The customer's phone number. + sig { returns(T.nilable(String)) } + def phone; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class PaymentMethodDetails < ::Stripe::StripeObject + class AchCreditTransfer < ::Stripe::StripeObject + # Account number to transfer funds to. + sig { returns(T.nilable(String)) } + def account_number; end + # Name of the bank associated with the routing number. + sig { returns(T.nilable(String)) } + def bank_name; end + # Routing transit number for the bank account to transfer funds to. + sig { returns(T.nilable(String)) } + def routing_number; end + # SWIFT code of the bank associated with the routing number. + sig { returns(T.nilable(String)) } + def swift_code; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AchDebit < ::Stripe::StripeObject + # Type of entity that holds the account. This can be either `individual` or `company`. + sig { returns(T.nilable(String)) } + def account_holder_type; end + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Two-letter ISO code representing the country the bank account is located in. + sig { returns(T.nilable(String)) } + def country; end + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Last four digits of the bank account number. + sig { returns(T.nilable(String)) } + def last4; end + # Routing transit number of the bank account. + sig { returns(T.nilable(String)) } + def routing_number; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AcssDebit < ::Stripe::StripeObject + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Institution number of the bank account + sig { returns(T.nilable(String)) } + def institution_number; end + # Last four digits of the bank account number. + sig { returns(T.nilable(String)) } + def last4; end + # ID of the mandate used to make this payment. + sig { returns(T.nilable(String)) } + def mandate; end + # Transit number of the bank account. + sig { returns(T.nilable(String)) } + def transit_number; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Affirm < ::Stripe::StripeObject + # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. + sig { returns(T.nilable(String)) } + def location; end + # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. + sig { returns(T.nilable(String)) } + def reader; end + # The Affirm transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class AfterpayClearpay < ::Stripe::StripeObject + # The Afterpay order ID associated with this payment intent. + sig { returns(T.nilable(String)) } + def order_id; end + # Order identifier shown to the merchant in Afterpay’s online portal. + sig { returns(T.nilable(String)) } + def reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Alipay < ::Stripe::StripeObject + # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same. + sig { returns(T.nilable(String)) } + def buyer_id; end + # Uniquely identifies this particular Alipay account. You can use this attribute to check whether two Alipay accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Transaction ID of this particular Alipay transaction. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Alma < ::Stripe::StripeObject + class Installments < ::Stripe::StripeObject + # The number of installments. + sig { returns(Integer) } + def count; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field installments + sig { returns(T.nilable(Installments)) } + def installments; end + # The Alma transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {installments: Installments} + end + def self.field_remappings + @field_remappings = {} + end + end + class AmazonPay < ::Stripe::StripeObject + class Funding < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + sig { returns(T.nilable(String)) } + def brand; end + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + sig { returns(T.nilable(String)) } + def country; end + # Two-digit number representing the card's expiration month. + sig { returns(T.nilable(Integer)) } + def exp_month; end + # Four-digit number representing the card's expiration year. + sig { returns(T.nilable(Integer)) } + def exp_year; end + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + sig { returns(T.nilable(String)) } + def funding; end + # The last four digits of the card. + sig { returns(T.nilable(String)) } + def last4; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field card + sig { returns(T.nilable(Card)) } + def card; end + # funding type of the underlying payment method. + sig { returns(T.nilable(String)) } + def type; end + def self.inner_class_types + @inner_class_types = {card: Card} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field funding + sig { returns(T.nilable(Funding)) } + def funding; end + # The Amazon Pay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {funding: Funding} + end + def self.field_remappings + @field_remappings = {} + end + end + class AuBecsDebit < ::Stripe::StripeObject + # Bank-State-Branch number of the bank account. + sig { returns(T.nilable(String)) } + def bsb_number; end + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Last four digits of the bank account number. + sig { returns(T.nilable(String)) } + def last4; end + # ID of the mandate used to make this payment. + sig { returns(T.nilable(String)) } + def mandate; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class BacsDebit < ::Stripe::StripeObject + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Last four digits of the bank account number. + sig { returns(T.nilable(String)) } + def last4; end + # ID of the mandate used to make this payment. + sig { returns(T.nilable(String)) } + def mandate; end + # Sort code of the bank account. (e.g., `10-20-30`) + sig { returns(T.nilable(String)) } + def sort_code; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Bancontact < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_code; end + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Bank Identifier Code of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bic; end + # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } + def generated_sepa_debit; end + # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } + def generated_sepa_debit_mandate; end + # Last four characters of the IBAN. + sig { returns(T.nilable(String)) } + def iban_last4; end + # Preferred language of the Bancontact authorization page that the customer is redirected to. + # Can be one of `en`, `de`, `fr`, or `nl` + sig { returns(T.nilable(String)) } + def preferred_language; end + # Owner's verified full name. Values are verified or provided by Bancontact directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Billie < ::Stripe::StripeObject + # The Billie transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(T.nilable(String)) } + def line1; end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # A representation of a physical address. + sig { returns(Address) } + def address; end + # The billing email associated with the method of payment. + sig { returns(T.nilable(String)) } + def email; end + # The billing name associated with the method of payment. + sig { returns(T.nilable(String)) } + def name; end + # The billing phone number associated with the method of payment. + sig { returns(T.nilable(String)) } + def phone; end + def self.inner_class_types + @inner_class_types = {address: Address} + end + def self.field_remappings + @field_remappings = {} + end + end + class Blik < ::Stripe::StripeObject + # A unique and immutable identifier assigned by BLIK to every buyer. + sig { returns(T.nilable(String)) } + def buyer_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Boleto < ::Stripe::StripeObject + # The tax ID of the customer (CPF for individuals consumers or CNPJ for businesses consumers) + sig { returns(String) } + def tax_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Card < ::Stripe::StripeObject + class Checks < ::Stripe::StripeObject + # Attribute for field address_line1_check + sig { returns(T.nilable(String)) } + def address_line1_check; end + # Attribute for field address_postal_code_check + sig { returns(T.nilable(String)) } + def address_postal_code_check; end + # Attribute for field cvc_check + sig { returns(T.nilable(String)) } + def cvc_check; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class NetworkToken < ::Stripe::StripeObject + # Indicates if Stripe used a network token, either user provided or Stripe managed when processing the transaction. + sig { returns(T::Boolean) } + def used; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class ThreeDSecure < ::Stripe::StripeObject + # Attribute for field authentication_flow + sig { returns(T.nilable(String)) } + def authentication_flow; end + # Attribute for field result + sig { returns(T.nilable(String)) } + def result; end + # Attribute for field result_reason + sig { returns(T.nilable(String)) } + def result_reason; end + # Attribute for field version + sig { returns(T.nilable(String)) } + def version; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Wallet < ::Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject + # Type of the apple_pay transaction, one of `apple_pay` or `apple_pay_later`. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class GooglePay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field apple_pay + sig { returns(T.nilable(ApplePay)) } + def apple_pay; end + # (For tokenized numbers only.) The last four digits of the device account number. + sig { returns(T.nilable(String)) } + def dynamic_last4; end + # Attribute for field google_pay + sig { returns(T.nilable(GooglePay)) } + def google_pay; end + # The type of the card wallet, one of `apple_pay` or `google_pay`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {apple_pay: ApplePay, google_pay: GooglePay} + end + def self.field_remappings + @field_remappings = {} + end + end + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + sig { returns(String) } + def brand; end + # When using manual capture, a future timestamp at which the charge will be automatically refunded if uncaptured. + sig { returns(T.nilable(Integer)) } + def capture_before; end + # Check results by Card networks on Card address and CVC at time of payment. + sig { returns(T.nilable(Checks)) } + def checks; end + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + sig { returns(T.nilable(String)) } + def country; end + # Two-digit number representing the card's expiration month. + sig { returns(Integer) } + def exp_month; end + # Four-digit number representing the card's expiration year. + sig { returns(Integer) } + def exp_year; end + # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + # + # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + sig { returns(T.nilable(String)) } + def fingerprint; end + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + sig { returns(String) } + def funding; end + # The last four digits of the card. + sig { returns(String) } + def last4; end + # True if this payment was marked as MOTO and out of scope for SCA. + sig { returns(T.nilable(T::Boolean)) } + def moto; end + # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + sig { returns(T.nilable(String)) } + def network; end + # If this card has network token credentials, this contains the details of the network token credentials. + sig { returns(T.nilable(NetworkToken)) } + def network_token; end + # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + sig { returns(T.nilable(String)) } + def network_transaction_id; end + # Populated if this transaction used 3D Secure authentication. + sig { returns(T.nilable(ThreeDSecure)) } + def three_d_secure; end + # If this Card is part of a card wallet, this contains the details of the card wallet. + sig { returns(T.nilable(Wallet)) } + def wallet; end + def self.inner_class_types + @inner_class_types = { + checks: Checks, + network_token: NetworkToken, + three_d_secure: ThreeDSecure, + wallet: Wallet, + } + end + def self.field_remappings + @field_remappings = {} + end + end + class CardPresent < ::Stripe::StripeObject + class Offline < ::Stripe::StripeObject + # Time at which the payment was collected while offline + sig { returns(T.nilable(Integer)) } + def stored_at; end + # The method used to process this payment method offline. Only deferred is allowed. + sig { returns(T.nilable(String)) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Receipt < ::Stripe::StripeObject + # The type of account being debited or credited + sig { returns(T.nilable(String)) } + def account_type; end + # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers. + sig { returns(T.nilable(String)) } + def application_cryptogram; end + # The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip. + sig { returns(T.nilable(String)) } + def application_preferred_name; end + # Identifier for this transaction. + sig { returns(T.nilable(String)) } + def authorization_code; end + # EMV tag 8A. A code returned by the card issuer. + sig { returns(T.nilable(String)) } + def authorization_response_code; end + # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`. + sig { returns(T.nilable(String)) } + def cardholder_verification_method; end + # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84. + sig { returns(T.nilable(String)) } + def dedicated_file_name; end + # A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95. + sig { returns(T.nilable(String)) } + def terminal_verification_results; end + # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B. + sig { returns(T.nilable(String)) } + def transaction_status_information; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Wallet < ::Stripe::StripeObject + # The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The authorized amount + sig { returns(T.nilable(Integer)) } + def amount_authorized; end + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + sig { returns(T.nilable(String)) } + def brand; end + # The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. + sig { returns(T.nilable(String)) } + def brand_product; end + # When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured. + sig { returns(T.nilable(Integer)) } + def capture_before; end + # The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay. + sig { returns(T.nilable(String)) } + def cardholder_name; end + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + sig { returns(T.nilable(String)) } + def country; end + # A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def description; end + # Authorization response cryptogram. + sig { returns(T.nilable(String)) } + def emv_auth_data; end + # Two-digit number representing the card's expiration month. + sig { returns(Integer) } + def exp_month; end + # Four-digit number representing the card's expiration year. + sig { returns(Integer) } + def exp_year; end + # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + # + # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + sig { returns(T.nilable(String)) } + def fingerprint; end + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + sig { returns(T.nilable(String)) } + def funding; end + # ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod. + sig { returns(T.nilable(String)) } + def generated_card; end + # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def iin; end + # Whether this [PaymentIntent](https://stripe.com/docs/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support). + sig { returns(T::Boolean) } + def incremental_authorization_supported; end + # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def issuer; end + # The last four digits of the card. + sig { returns(T.nilable(String)) } + def last4; end + # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + sig { returns(T.nilable(String)) } + def network; end + # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + sig { returns(T.nilable(String)) } + def network_transaction_id; end + # Details about payments collected offline. + sig { returns(T.nilable(Offline)) } + def offline; end + # Defines whether the authorized amount can be over-captured or not + sig { returns(T::Boolean) } + def overcapture_supported; end + # The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip. + sig { returns(T.nilable(T::Array[String])) } + def preferred_locales; end + # How card details were read in this transaction. + sig { returns(T.nilable(String)) } + def read_method; end + # A collection of fields required to be displayed on receipts. Only required for EMV transactions. + sig { returns(T.nilable(Receipt)) } + def receipt; end + # Attribute for field wallet + sig { returns(T.nilable(Wallet)) } + def wallet; end + def self.inner_class_types + @inner_class_types = {offline: Offline, receipt: Receipt, wallet: Wallet} + end + def self.field_remappings + @field_remappings = {} + end + end + class Cashapp < ::Stripe::StripeObject + # A unique and immutable identifier assigned by Cash App to every buyer. + sig { returns(T.nilable(String)) } + def buyer_id; end + # A public identifier for buyers using Cash App. + sig { returns(T.nilable(String)) } + def cashtag; end + # A unique and immutable identifier of payments assigned by Cash App + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Crypto < ::Stripe::StripeObject + # The wallet address of the customer. + sig { returns(T.nilable(String)) } + def buyer_address; end + # The blockchain network that the transaction was sent on. + sig { returns(T.nilable(String)) } + def network; end + # The token currency that the transaction was sent with. + sig { returns(T.nilable(String)) } + def token_currency; end + # The blockchain transaction hash of the crypto payment. + sig { returns(T.nilable(String)) } + def transaction_hash; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Custom < ::Stripe::StripeObject + # Display name for the custom (user-defined) payment method type used to make this payment. + sig { returns(String) } + def display_name; end + # The custom payment method type associated with this payment. + sig { returns(T.nilable(String)) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class CustomerBalance < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Eps < ::Stripe::StripeObject + # The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. + sig { returns(T.nilable(String)) } + def bank; end + # Owner's verified full name. Values are verified or provided by EPS directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + # EPS rarely provides this information so the attribute is usually empty. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Fpx < ::Stripe::StripeObject + # Account holder type, if provided. Can be one of `individual` or `company`. + sig { returns(T.nilable(String)) } + def account_holder_type; end + # The customer's bank. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`. + sig { returns(String) } + def bank; end + # Unique transaction id generated by FPX for every request from the merchant + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Giropay < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_code; end + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Bank Identifier Code of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bic; end + # Owner's verified full name. Values are verified or provided by Giropay directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + # Giropay rarely provides this information so the attribute is usually empty. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Grabpay < ::Stripe::StripeObject + # Unique transaction id generated by GrabPay + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Ideal < ::Stripe::StripeObject + # The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. + sig { returns(T.nilable(String)) } + def bank; end + # The Bank Identifier Code of the customer's bank. + sig { returns(T.nilable(String)) } + def bic; end + # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } + def generated_sepa_debit; end + # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } + def generated_sepa_debit_mandate; end + # Last four characters of the IBAN. + sig { returns(T.nilable(String)) } + def iban_last4; end + # Owner's verified full name. Values are verified or provided by iDEAL directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class InteracPresent < ::Stripe::StripeObject + class Receipt < ::Stripe::StripeObject + # The type of account being debited or credited + sig { returns(T.nilable(String)) } + def account_type; end + # The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers. + sig { returns(T.nilable(String)) } + def application_cryptogram; end + # The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip. + sig { returns(T.nilable(String)) } + def application_preferred_name; end + # Identifier for this transaction. + sig { returns(T.nilable(String)) } + def authorization_code; end + # EMV tag 8A. A code returned by the card issuer. + sig { returns(T.nilable(String)) } + def authorization_response_code; end + # Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`. + sig { returns(T.nilable(String)) } + def cardholder_verification_method; end + # Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84. + sig { returns(T.nilable(String)) } + def dedicated_file_name; end + # A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95. + sig { returns(T.nilable(String)) } + def terminal_verification_results; end + # An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B. + sig { returns(T.nilable(String)) } + def transaction_status_information; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Card brand. Can be `interac`, `mastercard` or `visa`. + sig { returns(T.nilable(String)) } + def brand; end + # The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay. + sig { returns(T.nilable(String)) } + def cardholder_name; end + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + sig { returns(T.nilable(String)) } + def country; end + # A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def description; end + # Authorization response cryptogram. + sig { returns(T.nilable(String)) } + def emv_auth_data; end + # Two-digit number representing the card's expiration month. + sig { returns(Integer) } + def exp_month; end + # Four-digit number representing the card's expiration year. + sig { returns(Integer) } + def exp_year; end + # Uniquely identifies this particular card number. You can use this attribute to check whether two customers who’ve signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + # + # *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + sig { returns(T.nilable(String)) } + def fingerprint; end + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + sig { returns(T.nilable(String)) } + def funding; end + # ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod. + sig { returns(T.nilable(String)) } + def generated_card; end + # Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def iin; end + # The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) + sig { returns(T.nilable(String)) } + def issuer; end + # The last four digits of the card. + sig { returns(T.nilable(String)) } + def last4; end + # Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + sig { returns(T.nilable(String)) } + def network; end + # This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. This value will be present if it is returned by the financial network in the authorization response, and null otherwise. + sig { returns(T.nilable(String)) } + def network_transaction_id; end + # The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip. + sig { returns(T.nilable(T::Array[String])) } + def preferred_locales; end + # How card details were read in this transaction. + sig { returns(T.nilable(String)) } + def read_method; end + # A collection of fields required to be displayed on receipts. Only required for EMV transactions. + sig { returns(T.nilable(Receipt)) } + def receipt; end + def self.inner_class_types + @inner_class_types = {receipt: Receipt} + end + def self.field_remappings + @field_remappings = {} + end + end + class KakaoPay < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end + # The Kakao Pay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Klarna < ::Stripe::StripeObject + class PayerDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject + # The payer address country + sig { returns(T.nilable(String)) } + def country; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # The payer's address + sig { returns(T.nilable(Address)) } + def address; end + def self.inner_class_types + @inner_class_types = {address: Address} + end + def self.field_remappings + @field_remappings = {} + end + end + # The payer details for this transaction. + sig { returns(T.nilable(PayerDetails)) } + def payer_details; end + # The Klarna payment method used for this transaction. + # Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments` + sig { returns(T.nilable(String)) } + def payment_method_category; end + # Preferred language of the Klarna authorization page that the customer is redirected to. + # Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` + sig { returns(T.nilable(String)) } + def preferred_locale; end + def self.inner_class_types + @inner_class_types = {payer_details: PayerDetails} + end + def self.field_remappings + @field_remappings = {} + end + end + class Konbini < ::Stripe::StripeObject + class Store < ::Stripe::StripeObject + # The name of the convenience store chain where the payment was completed. + sig { returns(T.nilable(String)) } + def chain; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # If the payment succeeded, this contains the details of the convenience store where the payment was completed. + sig { returns(T.nilable(Store)) } + def store; end + def self.inner_class_types + @inner_class_types = {store: Store} + end + def self.field_remappings + @field_remappings = {} + end + end + class KrCard < ::Stripe::StripeObject + # The local credit or debit card brand. + sig { returns(T.nilable(String)) } + def brand; end + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end + # The last four digits of the card. This may not be present for American Express cards. + sig { returns(T.nilable(String)) } + def last4; end + # The Korean Card transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Link < ::Stripe::StripeObject + # Two-letter ISO code representing the funding source country beneath the Link payment. + # You could use this attribute to get a sense of international fees. + sig { returns(T.nilable(String)) } + def country; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class MbWay < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Mobilepay < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + # Brand of the card used in the transaction + sig { returns(T.nilable(String)) } + def brand; end + # Two-letter ISO code representing the country of the card + sig { returns(T.nilable(String)) } + def country; end + # Two digit number representing the card's expiration month + sig { returns(T.nilable(Integer)) } + def exp_month; end + # Two digit number representing the card's expiration year + sig { returns(T.nilable(Integer)) } + def exp_year; end + # The last 4 digits of the card + sig { returns(T.nilable(String)) } + def last4; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Internal card details + sig { returns(T.nilable(Card)) } + def card; end + def self.inner_class_types + @inner_class_types = {card: Card} + end + def self.field_remappings + @field_remappings = {} + end + end + class Multibanco < ::Stripe::StripeObject + # Entity number associated with this Multibanco payment. + sig { returns(T.nilable(String)) } + def entity; end + # Reference number associated with this Multibanco payment. + sig { returns(T.nilable(String)) } + def reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class NaverPay < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end + # The Naver Pay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class NzBankAccount < ::Stripe::StripeObject + # The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod’s billing details. + sig { returns(T.nilable(String)) } + def account_holder_name; end + # The numeric code for the bank account's bank. + sig { returns(String) } + def bank_code; end + # The name of the bank. + sig { returns(String) } + def bank_name; end + # The numeric code for the bank account's bank branch. + sig { returns(String) } + def branch_code; end + # Last four digits of the bank account number. + sig { returns(String) } + def last4; end + # The suffix of the bank account number. + sig { returns(T.nilable(String)) } + def suffix; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Oxxo < ::Stripe::StripeObject + # OXXO reference number + sig { returns(T.nilable(String)) } + def number; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class P24 < ::Stripe::StripeObject + # The customer's bank. Can be one of `ing`, `citi_handlowy`, `tmobile_usbugi_bankowe`, `plus_bank`, `etransfer_pocztowy24`, `banki_spbdzielcze`, `bank_nowy_bfg_sa`, `getin_bank`, `velobank`, `blik`, `noble_pay`, `ideabank`, `envelobank`, `santander_przelew24`, `nest_przelew`, `mbank_mtransfer`, `inteligo`, `pbac_z_ipko`, `bnp_paribas`, `credit_agricole`, `toyota_bank`, `bank_pekao_sa`, `volkswagen_bank`, `bank_millennium`, `alior_bank`, or `boz`. + sig { returns(T.nilable(String)) } + def bank; end + # Unique reference for this Przelewy24 payment. + sig { returns(T.nilable(String)) } + def reference; end + # Owner's verified full name. Values are verified or provided by Przelewy24 directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + # Przelewy24 rarely provides this information so the attribute is usually empty. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class PayByBank < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Payco < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end + # The Payco transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Paynow < ::Stripe::StripeObject + # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. + sig { returns(T.nilable(String)) } + def location; end + # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. + sig { returns(T.nilable(String)) } + def reader; end + # Reference number associated with this PayNow payment + sig { returns(T.nilable(String)) } + def reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Paypal < ::Stripe::StripeObject + class SellerProtection < ::Stripe::StripeObject + # An array of conditions that are covered for the transaction, if applicable. + sig { returns(T.nilable(T::Array[String])) } + def dispute_categories; end + # Indicates whether the transaction is eligible for PayPal's seller protection. + sig { returns(String) } + def status; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def country; end + # Owner's email. Values are provided by PayPal directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def payer_email; end + # PayPal account PayerID. This identifier uniquely identifies the PayPal customer. + sig { returns(T.nilable(String)) } + def payer_id; end + # Owner's full name. Values provided by PayPal directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def payer_name; end + # The level of protection offered as defined by PayPal Seller Protection for Merchants, for this transaction. + sig { returns(T.nilable(SellerProtection)) } + def seller_protection; end + # A unique ID generated by PayPal for this transaction. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {seller_protection: SellerProtection} + end + def self.field_remappings + @field_remappings = {} + end + end + class Pix < ::Stripe::StripeObject + # Unique transaction id generated by BCB + sig { returns(T.nilable(String)) } + def bank_transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Promptpay < ::Stripe::StripeObject + # Bill reference generated by PromptPay + sig { returns(T.nilable(String)) } + def reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class RevolutPay < ::Stripe::StripeObject + class Funding < ::Stripe::StripeObject + class Card < ::Stripe::StripeObject + # Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + sig { returns(T.nilable(String)) } + def brand; end + # Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + sig { returns(T.nilable(String)) } + def country; end + # Two-digit number representing the card's expiration month. + sig { returns(T.nilable(Integer)) } + def exp_month; end + # Four-digit number representing the card's expiration year. + sig { returns(T.nilable(Integer)) } + def exp_year; end + # Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + sig { returns(T.nilable(String)) } + def funding; end + # The last four digits of the card. + sig { returns(T.nilable(String)) } + def last4; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field card + sig { returns(T.nilable(Card)) } + def card; end + # funding type of the underlying payment method. + sig { returns(T.nilable(String)) } + def type; end + def self.inner_class_types + @inner_class_types = {card: Card} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field funding + sig { returns(T.nilable(Funding)) } + def funding; end + # The Revolut Pay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {funding: Funding} + end + def self.field_remappings + @field_remappings = {} + end + end + class SamsungPay < ::Stripe::StripeObject + # A unique identifier for the buyer as determined by the local payment processor. + sig { returns(T.nilable(String)) } + def buyer_id; end + # The Samsung Pay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Satispay < ::Stripe::StripeObject + # The Satispay transaction ID associated with this payment. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class SepaCreditTransfer < ::Stripe::StripeObject + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Bank Identifier Code of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bic; end + # IBAN of the bank account to transfer funds to. + sig { returns(T.nilable(String)) } + def iban; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class SepaDebit < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_code; end + # Branch code of bank associated with the bank account. + sig { returns(T.nilable(String)) } + def branch_code; end + # Two-letter ISO code representing the country the bank account is located in. + sig { returns(T.nilable(String)) } + def country; end + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Last four characters of the IBAN. + sig { returns(T.nilable(String)) } + def last4; end + # Find the ID of the mandate used for this payment under the [payment_method_details.sepa_debit.mandate](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-sepa_debit-mandate) property on the Charge. Use this mandate ID to [retrieve the Mandate](https://stripe.com/docs/api/mandates/retrieve). + sig { returns(T.nilable(String)) } + def mandate; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Sofort < ::Stripe::StripeObject + # Bank code of bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_code; end + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Bank Identifier Code of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bic; end + # Two-letter ISO code representing the country the bank account is located in. + sig { returns(T.nilable(String)) } + def country; end + # The ID of the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } + def generated_sepa_debit; end + # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this Charge. + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } + def generated_sepa_debit_mandate; end + # Last four characters of the IBAN. + sig { returns(T.nilable(String)) } + def iban_last4; end + # Preferred language of the SOFORT authorization page that the customer is redirected to. + # Can be one of `de`, `en`, `es`, `fr`, `it`, `nl`, or `pl` + sig { returns(T.nilable(String)) } + def preferred_language; end + # Owner's verified full name. Values are verified or provided by SOFORT directly + # (if supported) at the time of authorization or settlement. They cannot be set or mutated. + sig { returns(T.nilable(String)) } + def verified_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class StripeAccount < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Swish < ::Stripe::StripeObject + # Uniquely identifies the payer's Swish account. You can use this attribute to check whether two Swish transactions were paid for by the same payer + sig { returns(T.nilable(String)) } + def fingerprint; end + # Payer bank reference number for the payment + sig { returns(T.nilable(String)) } + def payment_reference; end + # The last four digits of the Swish account phone number + sig { returns(T.nilable(String)) } + def verified_phone_last4; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Twint < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class UsBankAccount < ::Stripe::StripeObject + # Attribute for field account_holder_type + sig { returns(T.nilable(String)) } + def account_holder_type; end + # Attribute for field account_type + sig { returns(T.nilable(String)) } + def account_type; end + # Name of the bank associated with the bank account. + sig { returns(T.nilable(String)) } + def bank_name; end + # Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # Last four digits of the bank account number. + sig { returns(T.nilable(String)) } + def last4; end + # ID of the mandate used to make this payment. + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } + def mandate; end + # Reference number to locate ACH payments with customer’s bank. + sig { returns(T.nilable(String)) } + def payment_reference; end + # Routing number of the bank account. + sig { returns(T.nilable(String)) } + def routing_number; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Wechat < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class WechatPay < ::Stripe::StripeObject + # Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same. + sig { returns(T.nilable(String)) } + def fingerprint; end + # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to. + sig { returns(T.nilable(String)) } + def location; end + # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on. + sig { returns(T.nilable(String)) } + def reader; end + # Transaction ID of this particular WeChat Pay transaction. + sig { returns(T.nilable(String)) } + def transaction_id; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Zip < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Attribute for field ach_credit_transfer + sig { returns(T.nilable(AchCreditTransfer)) } + def ach_credit_transfer; end + # Attribute for field ach_debit + sig { returns(T.nilable(AchDebit)) } + def ach_debit; end + # Attribute for field acss_debit + sig { returns(T.nilable(AcssDebit)) } + def acss_debit; end + # Attribute for field affirm + sig { returns(T.nilable(Affirm)) } + def affirm; end + # Attribute for field afterpay_clearpay + sig { returns(T.nilable(AfterpayClearpay)) } + def afterpay_clearpay; end + # Attribute for field alipay + sig { returns(T.nilable(Alipay)) } + def alipay; end + # Attribute for field alma + sig { returns(T.nilable(Alma)) } + def alma; end + # Attribute for field amazon_pay + sig { returns(T.nilable(AmazonPay)) } + def amazon_pay; end + # Attribute for field au_becs_debit + sig { returns(T.nilable(AuBecsDebit)) } + def au_becs_debit; end + # Attribute for field bacs_debit + sig { returns(T.nilable(BacsDebit)) } + def bacs_debit; end + # Attribute for field bancontact + sig { returns(T.nilable(Bancontact)) } + def bancontact; end + # Attribute for field billie + sig { returns(T.nilable(Billie)) } + def billie; end + # The billing details associated with the method of payment. + sig { returns(T.nilable(BillingDetails)) } + def billing_details; end + # Attribute for field blik + sig { returns(T.nilable(Blik)) } + def blik; end + # Attribute for field boleto + sig { returns(T.nilable(Boleto)) } + def boleto; end + # Details of the card used for this payment attempt. + sig { returns(T.nilable(Card)) } + def card; end + # Attribute for field card_present + sig { returns(T.nilable(CardPresent)) } + def card_present; end + # Attribute for field cashapp + sig { returns(T.nilable(Cashapp)) } + def cashapp; end + # Attribute for field crypto + sig { returns(T.nilable(Crypto)) } + def crypto; end + # Custom Payment Methods represent Payment Method types not modeled directly in + # the Stripe API. This resource consists of details about the custom payment method + # used for this payment attempt. + sig { returns(T.nilable(Custom)) } + def custom; end + # Attribute for field customer_balance + sig { returns(T.nilable(CustomerBalance)) } + def customer_balance; end + # Attribute for field eps + sig { returns(T.nilable(Eps)) } + def eps; end + # Attribute for field fpx + sig { returns(T.nilable(Fpx)) } + def fpx; end + # Attribute for field giropay + sig { returns(T.nilable(Giropay)) } + def giropay; end + # Attribute for field grabpay + sig { returns(T.nilable(Grabpay)) } + def grabpay; end + # Attribute for field ideal + sig { returns(T.nilable(Ideal)) } + def ideal; end + # Attribute for field interac_present + sig { returns(T.nilable(InteracPresent)) } + def interac_present; end + # Attribute for field kakao_pay + sig { returns(T.nilable(KakaoPay)) } + def kakao_pay; end + # Attribute for field klarna + sig { returns(T.nilable(Klarna)) } + def klarna; end + # Attribute for field konbini + sig { returns(T.nilable(Konbini)) } + def konbini; end + # Attribute for field kr_card + sig { returns(T.nilable(KrCard)) } + def kr_card; end + # Attribute for field link + sig { returns(T.nilable(Link)) } + def link; end + # Attribute for field mb_way + sig { returns(T.nilable(MbWay)) } + def mb_way; end + # Attribute for field mobilepay + sig { returns(T.nilable(Mobilepay)) } + def mobilepay; end + # Attribute for field multibanco + sig { returns(T.nilable(Multibanco)) } + def multibanco; end + # Attribute for field naver_pay + sig { returns(T.nilable(NaverPay)) } + def naver_pay; end + # Attribute for field nz_bank_account + sig { returns(T.nilable(NzBankAccount)) } + def nz_bank_account; end + # Attribute for field oxxo + sig { returns(T.nilable(Oxxo)) } + def oxxo; end + # Attribute for field p24 + sig { returns(T.nilable(P24)) } + def p24; end + # Attribute for field pay_by_bank + sig { returns(T.nilable(PayByBank)) } + def pay_by_bank; end + # Attribute for field payco + sig { returns(T.nilable(Payco)) } + def payco; end + # ID of the Stripe PaymentMethod used to make this payment. + sig { returns(T.nilable(String)) } + def payment_method; end + # Attribute for field paynow + sig { returns(T.nilable(Paynow)) } + def paynow; end + # Attribute for field paypal + sig { returns(T.nilable(Paypal)) } + def paypal; end + # Attribute for field pix + sig { returns(T.nilable(Pix)) } + def pix; end + # Attribute for field promptpay + sig { returns(T.nilable(Promptpay)) } + def promptpay; end + # Attribute for field revolut_pay + sig { returns(T.nilable(RevolutPay)) } + def revolut_pay; end + # Attribute for field samsung_pay + sig { returns(T.nilable(SamsungPay)) } + def samsung_pay; end + # Attribute for field satispay + sig { returns(T.nilable(Satispay)) } + def satispay; end + # Attribute for field sepa_credit_transfer + sig { returns(T.nilable(SepaCreditTransfer)) } + def sepa_credit_transfer; end + # Attribute for field sepa_debit + sig { returns(T.nilable(SepaDebit)) } + def sepa_debit; end + # Attribute for field sofort + sig { returns(T.nilable(Sofort)) } + def sofort; end + # Attribute for field stripe_account + sig { returns(T.nilable(StripeAccount)) } + def stripe_account; end + # Attribute for field swish + sig { returns(T.nilable(Swish)) } + def swish; end + # Attribute for field twint + sig { returns(T.nilable(Twint)) } + def twint; end + # The type of transaction-specific details of the payment method used in the payment. See [PaymentMethod.type](https://stripe.com/docs/api/payment_methods/object#payment_method_object-type) for the full list of possible types. + # An additional hash is included on `payment_method_details` with a name matching this value. + # It contains information specific to the payment method. + sig { returns(String) } + def type; end + # Details of the US Bank Account used for this payment attempt. + sig { returns(T.nilable(UsBankAccount)) } + def us_bank_account; end + # Attribute for field wechat + sig { returns(T.nilable(Wechat)) } + def wechat; end + # Attribute for field wechat_pay + sig { returns(T.nilable(WechatPay)) } + def wechat_pay; end + # Attribute for field zip + sig { returns(T.nilable(Zip)) } + def zip; end + def self.inner_class_types + @inner_class_types = { + ach_credit_transfer: AchCreditTransfer, + ach_debit: AchDebit, + acss_debit: AcssDebit, + affirm: Affirm, + afterpay_clearpay: AfterpayClearpay, + alipay: Alipay, + alma: Alma, + amazon_pay: AmazonPay, + au_becs_debit: AuBecsDebit, + bacs_debit: BacsDebit, + bancontact: Bancontact, + billie: Billie, + billing_details: BillingDetails, + blik: Blik, + boleto: Boleto, + card: Card, + card_present: CardPresent, + cashapp: Cashapp, + crypto: Crypto, + custom: Custom, + customer_balance: CustomerBalance, + eps: Eps, + fpx: Fpx, + giropay: Giropay, + grabpay: Grabpay, + ideal: Ideal, + interac_present: InteracPresent, + kakao_pay: KakaoPay, + klarna: Klarna, + konbini: Konbini, + kr_card: KrCard, + link: Link, + mb_way: MbWay, + mobilepay: Mobilepay, + multibanco: Multibanco, + naver_pay: NaverPay, + nz_bank_account: NzBankAccount, + oxxo: Oxxo, + p24: P24, + pay_by_bank: PayByBank, + payco: Payco, + paynow: Paynow, + paypal: Paypal, + pix: Pix, + promptpay: Promptpay, + revolut_pay: RevolutPay, + samsung_pay: SamsungPay, + satispay: Satispay, + sepa_credit_transfer: SepaCreditTransfer, + sepa_debit: SepaDebit, + sofort: Sofort, + stripe_account: StripeAccount, + swish: Swish, + twint: Twint, + us_bank_account: UsBankAccount, + wechat: Wechat, + wechat_pay: WechatPay, + zip: Zip, + } + end + def self.field_remappings + @field_remappings = {} + end + end + class ProcessorDetails < ::Stripe::StripeObject + class Custom < ::Stripe::StripeObject + # An opaque string for manual reconciliation of this payment, for example a check number or a payment processor ID. + sig { returns(T.nilable(String)) } + def payment_reference; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Custom processors represent payment processors not modeled directly in + # the Stripe API. This resource consists of details about the custom processor + # used for this payment attempt. + sig { returns(T.nilable(Custom)) } + def custom; end + # The processor used for this payment attempt. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {custom: Custom} + end + def self.field_remappings + @field_remappings = {} + end + end + class ShippingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject + # City, district, suburb, town, or village. + sig { returns(T.nilable(String)) } + def city; end + # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + sig { returns(T.nilable(String)) } + def country; end + # Address line 1, such as the street, PO Box, or company name. + sig { returns(T.nilable(String)) } + def line1; end + # Address line 2, such as the apartment, suite, unit, or building. + sig { returns(T.nilable(String)) } + def line2; end + # ZIP or postal code. + sig { returns(T.nilable(String)) } + def postal_code; end + # State, county, province, or region. + sig { returns(T.nilable(String)) } + def state; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # A representation of a physical address. + sig { returns(Address) } + def address; end + # The shipping recipient's name. + sig { returns(T.nilable(String)) } + def name; end + # The shipping recipient's phone number. + sig { returns(T.nilable(String)) } + def phone; end + def self.inner_class_types + @inner_class_types = {address: Address} + end + def self.field_remappings + @field_remappings = {} + end + end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(Amount) } + def amount; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountAuthorized) } + def amount_authorized; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountCanceled) } + def amount_canceled; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountFailed) } + def amount_failed; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountGuaranteed) } + def amount_guaranteed; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountRefunded) } + def amount_refunded; end + # A representation of an amount of money, consisting of an amount and a currency. + sig { returns(AmountRequested) } + def amount_requested; end + # ID of the Connect application that created the PaymentRecord. + sig { returns(T.nilable(String)) } + def application; end + # Time at which the object was created. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def created; end + # Customer information for this payment. + sig { returns(T.nilable(CustomerDetails)) } + def customer_details; end + # Indicates whether the customer was present in your checkout flow during this payment. + sig { returns(T.nilable(String)) } + def customer_presence; end + # An arbitrary string attached to the object. Often useful for displaying to users. + sig { returns(T.nilable(String)) } + def description; end + # Unique identifier for the object. + sig { returns(String) } + def id; end + # ID of the latest Payment Attempt Record attached to this Payment Record. + sig { returns(T.nilable(String)) } + def latest_payment_attempt_record; end + # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + sig { returns(T::Boolean) } + def livemode; end + # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + sig { returns(T::Hash[String, String]) } + def metadata; end + # String representing the object's type. Objects of the same type share the same value. + sig { returns(String) } + def object; end + # Information about the Payment Method debited for this payment. + sig { returns(T.nilable(PaymentMethodDetails)) } + def payment_method_details; end + # Processor information associated with this payment. + sig { returns(ProcessorDetails) } + def processor_details; end + # Shipping information for this payment. + sig { returns(T.nilable(ShippingDetails)) } + def shipping_details; end + # Report a new Payment Record. You may report a Payment Record as it is + # initialized and later report updates through the other report_* methods, or report Payment + # Records in a terminal state directly, through this method. + sig { + params(params: T.any(::Stripe::PaymentRecordReportPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def self.report_payment(params = {}, opts = {}); end + + # Report a new payment attempt on the specified Payment Record. A new payment + # attempt can only be specified if all other payment attempts are canceled or failed. + sig { + params(params: T.any(::Stripe::PaymentRecordReportPaymentAttemptParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_payment_attempt(params = {}, opts = {}); end + + # Report a new payment attempt on the specified Payment Record. A new payment + # attempt can only be specified if all other payment attempts are canceled or failed. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportPaymentAttemptParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def self.report_payment_attempt(id, params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # was canceled. + sig { + params(params: T.any(::Stripe::PaymentRecordReportPaymentAttemptCanceledParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_payment_attempt_canceled(params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # was canceled. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportPaymentAttemptCanceledParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def self.report_payment_attempt_canceled(id, params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # failed or errored. + sig { + params(params: T.any(::Stripe::PaymentRecordReportPaymentAttemptFailedParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_payment_attempt_failed(params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # failed or errored. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportPaymentAttemptFailedParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def self.report_payment_attempt_failed(id, params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # was guaranteed. + sig { + params(params: T.any(::Stripe::PaymentRecordReportPaymentAttemptGuaranteedParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_payment_attempt_guaranteed(params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # was guaranteed. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportPaymentAttemptGuaranteedParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def self.report_payment_attempt_guaranteed(id, params = {}, opts = {}); end + + # Report informational updates on the specified Payment Record. + sig { + params(params: T.any(::Stripe::PaymentRecordReportPaymentAttemptInformationalParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_payment_attempt_informational(params = {}, opts = {}); end + + # Report informational updates on the specified Payment Record. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportPaymentAttemptInformationalParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def self.report_payment_attempt_informational(id, params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # was refunded. + sig { + params(params: T.any(::Stripe::PaymentRecordReportRefundParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_refund(params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # was refunded. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportRefundParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def self.report_refund(id, params = {}, opts = {}); end + end +end \ No newline at end of file diff --git a/rbi/stripe/resources/payout.rbi b/rbi/stripe/resources/payout.rbi index c0324e96..5b8cde9f 100644 --- a/rbi/stripe/resources/payout.rbi +++ b/rbi/stripe/resources/payout.rbi @@ -12,7 +12,7 @@ module Stripe # # Related guide: [Receiving payouts](https://stripe.com/docs/payouts) class Payout < APIResource - class TraceId < Stripe::StripeObject + class TraceId < ::Stripe::StripeObject # Possible values are `pending`, `supported`, and `unsupported`. When `payout.status` is `pending` or `in_transit`, this will be `pending`. When the payout transitions to `paid`, `failed`, or `canceled`, this status will become `supported` or `unsupported` shortly after in most cases. In some cases, this may appear as `pending` for up to 10 days after `arrival_date` until transitioning to `supported` or `unsupported`. sig { returns(String) } def status; end @@ -30,7 +30,7 @@ module Stripe sig { returns(Integer) } def amount; end # The application fee (if any) for the payout. [See the Connect documentation](https://stripe.com/docs/connect/instant-payouts#monetization-and-fees) for details. - sig { returns(T.nilable(T.any(String, Stripe::ApplicationFee))) } + sig { returns(T.nilable(T.any(String, ::Stripe::ApplicationFee))) } def application_fee; end # The amount of the application fee (if any) requested for the payout. [See the Connect documentation](https://stripe.com/docs/connect/instant-payouts#monetization-and-fees) for details. sig { returns(T.nilable(Integer)) } @@ -42,7 +42,7 @@ module Stripe sig { returns(T::Boolean) } def automatic; end # ID of the balance transaction that describes the impact of this payout on your account balance. - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def balance_transaction; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -54,10 +54,10 @@ module Stripe sig { returns(T.nilable(String)) } def description; end # ID of the bank account or card the payout is sent to. - sig { returns(T.nilable(T.any(String, T.any(Stripe::BankAccount, Stripe::Card)))) } + sig { returns(T.nilable(T.any(String, T.any(::Stripe::BankAccount, ::Stripe::Card)))) } def destination; end # If the payout fails or cancels, this is the ID of the balance transaction that reverses the initial balance transaction and returns the funds from the failed payout back in your balance. - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def failure_balance_transaction; end # Error code that provides a reason for a payout failure, if available. View our [list of failure codes](https://stripe.com/docs/api#payout_failures). sig { returns(T.nilable(String)) } @@ -81,7 +81,7 @@ module Stripe sig { returns(String) } def object; end # If the payout reverses another, this is the ID of the original payout. - sig { returns(T.nilable(T.any(String, Stripe::Payout))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Payout))) } def original_payout; end # ID of the v2 FinancialAccount the funds are sent to. sig { returns(T.nilable(String)) } @@ -90,7 +90,7 @@ module Stripe sig { returns(String) } def reconciliation_status; end # If the payout reverses, this is the ID of the payout that reverses this payout. - sig { returns(T.nilable(T.any(String, Stripe::Payout))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Payout))) } def reversed_by; end # The source balance this payout came from, which can be one of the following: `card`, `fpx`, or `bank_account`. sig { returns(String) } @@ -109,13 +109,13 @@ module Stripe def type; end # You can cancel a previously created payout if its status is pending. Stripe refunds the funds to your available balance. You can't cancel automatic Stripe payouts. sig { - params(params: T.any(::Stripe::PayoutCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(params: T.any(::Stripe::PayoutCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Payout) } def cancel(params = {}, opts = {}); end # You can cancel a previously created payout if its status is pending. Stripe refunds the funds to your available balance. You can't cancel automatic Stripe payouts. sig { - params(payout: String, params: T.any(::Stripe::PayoutCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(payout: String, params: T.any(::Stripe::PayoutCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Payout) } def self.cancel(payout, params = {}, opts = {}); end @@ -125,35 +125,35 @@ module Stripe # # If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://docs.stripe.com/api#balance_object) details available and pending amounts by source type. sig { - params(params: T.any(::Stripe::PayoutCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(params: T.any(::Stripe::PayoutCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Payout) } def self.create(params = {}, opts = {}); end # Returns a list of existing payouts sent to third-party bank accounts or payouts that Stripe sent to you. The payouts return in sorted order, with the most recently created payouts appearing first. sig { - params(params: T.any(::Stripe::PayoutListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PayoutListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end - # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead. + # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead. # # By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required. sig { - params(params: T.any(::Stripe::PayoutReverseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(params: T.any(::Stripe::PayoutReverseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Payout) } def reverse(params = {}, opts = {}); end - # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead. + # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead. # # By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required. sig { - params(payout: String, params: T.any(::Stripe::PayoutReverseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(payout: String, params: T.any(::Stripe::PayoutReverseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Payout) } def self.reverse(payout, params = {}, opts = {}); end # Updates the specified payout by setting the values of the parameters you pass. We don't change parameters that you don't provide. This request only accepts the metadata as arguments. sig { - params(payout: String, params: T.any(::Stripe::PayoutUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(payout: String, params: T.any(::Stripe::PayoutUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Payout) } def self.update(payout, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/person.rbi b/rbi/stripe/resources/person.rbi index 38c92f91..c8e71367 100644 --- a/rbi/stripe/resources/person.rbi +++ b/rbi/stripe/resources/person.rbi @@ -9,8 +9,8 @@ module Stripe # # See the [Standard onboarding](https://docs.stripe.com/connect/standard-accounts) or [Express onboarding](https://docs.stripe.com/connect/express-accounts) documentation for information about prefilling information and account onboarding steps. Learn more about [handling identity verification with the API](https://docs.stripe.com/connect/handling-api-verification#person-information). class Person < APIResource - class AdditionalTosAcceptances < Stripe::StripeObject - class Account < Stripe::StripeObject + class AdditionalTosAcceptances < ::Stripe::StripeObject + class Account < ::Stripe::StripeObject # The Unix timestamp marking when the legal guardian accepted the service agreement. sig { returns(T.nilable(Integer)) } def date; end @@ -37,7 +37,7 @@ module Stripe @field_remappings = {} end end - class Address < Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -63,7 +63,7 @@ module Stripe @field_remappings = {} end end - class AddressKana < Stripe::StripeObject + class AddressKana < ::Stripe::StripeObject # City/Ward. sig { returns(T.nilable(String)) } def city; end @@ -92,7 +92,7 @@ module Stripe @field_remappings = {} end end - class AddressKanji < Stripe::StripeObject + class AddressKanji < ::Stripe::StripeObject # City/Ward. sig { returns(T.nilable(String)) } def city; end @@ -121,7 +121,7 @@ module Stripe @field_remappings = {} end end - class Dob < Stripe::StripeObject + class Dob < ::Stripe::StripeObject # The day of birth, between 1 and 31. sig { returns(T.nilable(Integer)) } def day; end @@ -138,8 +138,8 @@ module Stripe @field_remappings = {} end end - class FutureRequirements < Stripe::StripeObject - class Alternative < Stripe::StripeObject + class FutureRequirements < ::Stripe::StripeObject + class Alternative < ::Stripe::StripeObject # Fields that can be provided to satisfy all fields in `original_fields_due`. sig { returns(T::Array[String]) } def alternative_fields_due; end @@ -153,7 +153,7 @@ module Stripe @field_remappings = {} end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. sig { returns(String) } def code; end @@ -195,7 +195,7 @@ module Stripe @field_remappings = {} end end - class RegisteredAddress < Stripe::StripeObject + class RegisteredAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -221,7 +221,7 @@ module Stripe @field_remappings = {} end end - class Relationship < Stripe::StripeObject + class Relationship < ::Stripe::StripeObject # Whether the person is the authorizer of the account's representative. sig { returns(T.nilable(T::Boolean)) } def authorizer; end @@ -253,8 +253,8 @@ module Stripe @field_remappings = {} end end - class Requirements < Stripe::StripeObject - class Alternative < Stripe::StripeObject + class Requirements < ::Stripe::StripeObject + class Alternative < ::Stripe::StripeObject # Fields that can be provided to satisfy all fields in `original_fields_due`. sig { returns(T::Array[String]) } def alternative_fields_due; end @@ -268,7 +268,7 @@ module Stripe @field_remappings = {} end end - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # The code for the type of error. sig { returns(String) } def code; end @@ -310,8 +310,8 @@ module Stripe @field_remappings = {} end end - class UsCfpbData < Stripe::StripeObject - class EthnicityDetails < Stripe::StripeObject + class UsCfpbData < ::Stripe::StripeObject + class EthnicityDetails < ::Stripe::StripeObject # The persons ethnicity sig { returns(T.nilable(T::Array[String])) } def ethnicity; end @@ -325,7 +325,7 @@ module Stripe @field_remappings = {} end end - class RaceDetails < Stripe::StripeObject + class RaceDetails < ::Stripe::StripeObject # The persons race. sig { returns(T.nilable(T::Array[String])) } def race; end @@ -355,10 +355,10 @@ module Stripe @field_remappings = {} end end - class Verification < Stripe::StripeObject - class AdditionalDocument < Stripe::StripeObject + class Verification < ::Stripe::StripeObject + class AdditionalDocument < ::Stripe::StripeObject # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def back; end # A user-displayable string describing the verification state of this document. For example, if a document is uploaded and the picture is too fuzzy, this may say "Identity document is too unclear to read". sig { returns(T.nilable(String)) } @@ -367,7 +367,7 @@ module Stripe sig { returns(T.nilable(String)) } def details_code; end # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def front; end def self.inner_class_types @inner_class_types = {} @@ -376,9 +376,9 @@ module Stripe @field_remappings = {} end end - class Document < Stripe::StripeObject + class Document < ::Stripe::StripeObject # The back of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def back; end # A user-displayable string describing the verification state of this document. For example, if a document is uploaded and the picture is too fuzzy, this may say "Identity document is too unclear to read". sig { returns(T.nilable(String)) } @@ -387,7 +387,7 @@ module Stripe sig { returns(T.nilable(String)) } def details_code; end # The front of an ID returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `identity_document`. - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def front; end def self.inner_class_types @inner_class_types = {} diff --git a/rbi/stripe/resources/plan.rbi b/rbi/stripe/resources/plan.rbi index 769efa53..5a32033b 100644 --- a/rbi/stripe/resources/plan.rbi +++ b/rbi/stripe/resources/plan.rbi @@ -12,7 +12,7 @@ module Stripe # # Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription) and more about [products and prices](https://stripe.com/docs/products-prices/overview). class Plan < APIResource - class Tier < Stripe::StripeObject + class Tier < ::Stripe::StripeObject # Price for the entire tier. sig { returns(T.nilable(Integer)) } def flat_amount; end @@ -35,7 +35,7 @@ module Stripe @field_remappings = {} end end - class TransformUsage < Stripe::StripeObject + class TransformUsage < ::Stripe::StripeObject # Divide usage by this number. sig { returns(Integer) } def divide_by; end @@ -92,7 +92,7 @@ module Stripe sig { returns(String) } def object; end # The product whose pricing this plan determines. - sig { returns(T.nilable(T.any(String, Stripe::Product))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Product))) } def product; end # Each element represents a pricing tier. This parameter requires `billing_scheme` to be set to `tiered`. See also the documentation for `billing_scheme`. sig { returns(T.nilable(T::Array[Tier])) } @@ -114,31 +114,31 @@ module Stripe def deleted; end # You can now model subscriptions more flexibly using the [Prices API](https://docs.stripe.com/api#prices). It replaces the Plans API and is backwards compatible to simplify your migration. sig { - params(params: T.any(::Stripe::PlanCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan) + params(params: T.any(::Stripe::PlanCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Plan) } def self.create(params = {}, opts = {}); end # Deleting plans means new subscribers can't be added. Existing subscribers aren't affected. sig { - params(plan: String, params: T.any(::Stripe::PlanDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan) + params(plan: String, params: T.any(::Stripe::PlanDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Plan) } def self.delete(plan, params = {}, opts = {}); end # Deleting plans means new subscribers can't be added. Existing subscribers aren't affected. sig { - params(params: T.any(::Stripe::PlanDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan) + params(params: T.any(::Stripe::PlanDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Plan) } def delete(params = {}, opts = {}); end # Returns a list of your plans. sig { - params(params: T.any(::Stripe::PlanListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PlanListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the specified plan by setting the values of the parameters passed. Any parameters not provided are left unchanged. By design, you cannot change a plan's ID, amount, currency, or billing cycle. sig { - params(plan: String, params: T.any(::Stripe::PlanUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan) + params(plan: String, params: T.any(::Stripe::PlanUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Plan) } def self.update(plan, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/price.rbi b/rbi/stripe/resources/price.rbi index bc6bb250..1b785a4d 100644 --- a/rbi/stripe/resources/price.rbi +++ b/rbi/stripe/resources/price.rbi @@ -10,8 +10,8 @@ module Stripe # # Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription), [create an invoice](https://stripe.com/docs/billing/invoices/create), and more about [products and prices](https://stripe.com/docs/products-prices/overview). class Price < APIResource - class CurrencyOptions < Stripe::StripeObject - class CustomUnitAmount < Stripe::StripeObject + class CurrencyOptions < ::Stripe::StripeObject + class CustomUnitAmount < ::Stripe::StripeObject # The maximum unit amount the customer can specify for this item. sig { returns(T.nilable(Integer)) } def maximum; end @@ -28,7 +28,7 @@ module Stripe @field_remappings = {} end end - class Tier < Stripe::StripeObject + class Tier < ::Stripe::StripeObject # Price for the entire tier. sig { returns(T.nilable(Integer)) } def flat_amount; end @@ -73,7 +73,7 @@ module Stripe @field_remappings = {} end end - class CustomUnitAmount < Stripe::StripeObject + class CustomUnitAmount < ::Stripe::StripeObject # The maximum unit amount the customer can specify for this item. sig { returns(T.nilable(Integer)) } def maximum; end @@ -90,7 +90,7 @@ module Stripe @field_remappings = {} end end - class Recurring < Stripe::StripeObject + class Recurring < ::Stripe::StripeObject # The frequency at which a subscription is billed. One of `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -113,7 +113,7 @@ module Stripe @field_remappings = {} end end - class Tier < Stripe::StripeObject + class Tier < ::Stripe::StripeObject # Price for the entire tier. sig { returns(T.nilable(Integer)) } def flat_amount; end @@ -136,7 +136,7 @@ module Stripe @field_remappings = {} end end - class TransformQuantity < Stripe::StripeObject + class TransformQuantity < ::Stripe::StripeObject # Divide usage by this number. sig { returns(Integer) } def divide_by; end @@ -187,7 +187,7 @@ module Stripe sig { returns(String) } def object; end # The ID of the product this price is associated with. - sig { returns(T.any(String, Stripe::Product)) } + sig { returns(T.any(String, ::Stripe::Product)) } def product; end # The recurring components of a price such as `interval` and `usage_type`. sig { returns(T.nilable(Recurring)) } @@ -218,29 +218,29 @@ module Stripe def deleted; end # Creates a new [Price for an existing Product](https://docs.stripe.com/api/prices). The Price can be recurring or one-time. sig { - params(params: T.any(::Stripe::PriceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Price) + params(params: T.any(::Stripe::PriceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Price) } def self.create(params = {}, opts = {}); end # Returns a list of your active prices, excluding [inline prices](https://docs.stripe.com/docs/products-prices/pricing-models#inline-pricing). For the list of inactive prices, set active to false. sig { - params(params: T.any(::Stripe::PriceListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PriceListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::PriceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::PriceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def self.search(params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::PriceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::PriceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(::Stripe::SearchResultObject) } def self.search_auto_paging_each(params = {}, opts = {}, &blk); end # Updates the specified price by setting the values of the parameters passed. Any parameters not provided are left unchanged. sig { - params(price: String, params: T.any(::Stripe::PriceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Price) + params(price: String, params: T.any(::Stripe::PriceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Price) } def self.update(price, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/product.rbi b/rbi/stripe/resources/product.rbi index 9015966c..f0187856 100644 --- a/rbi/stripe/resources/product.rbi +++ b/rbi/stripe/resources/product.rbi @@ -12,7 +12,7 @@ module Stripe # [accept payments with Checkout](https://stripe.com/docs/payments/accept-a-payment#create-product-prices-upfront), # and more about [Products and Prices](https://stripe.com/docs/products-prices/overview) class Product < APIResource - class MarketingFeature < Stripe::StripeObject + class MarketingFeature < ::Stripe::StripeObject # The marketing feature name. Up to 80 characters long. sig { returns(T.nilable(String)) } def name; end @@ -23,7 +23,7 @@ module Stripe @field_remappings = {} end end - class PackageDimensions < Stripe::StripeObject + class PackageDimensions < ::Stripe::StripeObject # Height, in inches. sig { returns(Float) } def height; end @@ -50,7 +50,7 @@ module Stripe sig { returns(Integer) } def created; end # The ID of the [Price](https://stripe.com/docs/api/prices) object that is the default price for this product. - sig { returns(T.nilable(T.any(String, Stripe::Price))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Price))) } def default_price; end # The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. sig { returns(T.nilable(String)) } @@ -86,7 +86,7 @@ module Stripe sig { returns(T.nilable(String)) } def statement_descriptor; end # A [tax code](https://stripe.com/docs/tax/tax-categories) ID. - sig { returns(T.nilable(T.any(String, Stripe::TaxCode))) } + sig { returns(T.nilable(T.any(String, ::Stripe::TaxCode))) } def tax_code; end # The type of the product. The product is either of type `good`, which is eligible for use with Orders and SKUs, or `service`, which is eligible for use with Subscriptions and Plans. sig { returns(String) } @@ -105,41 +105,41 @@ module Stripe def deleted; end # Creates a new product object. sig { - params(params: T.any(::Stripe::ProductCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Product) + params(params: T.any(::Stripe::ProductCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Product) } def self.create(params = {}, opts = {}); end # Delete a product. Deleting a product is only possible if it has no prices associated with it. Additionally, deleting a product with type=good is only possible if it has no SKUs associated with it. sig { - params(id: String, params: T.any(::Stripe::ProductDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Product) + params(id: String, params: T.any(::Stripe::ProductDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Product) } def self.delete(id, params = {}, opts = {}); end # Delete a product. Deleting a product is only possible if it has no prices associated with it. Additionally, deleting a product with type=good is only possible if it has no SKUs associated with it. sig { - params(params: T.any(::Stripe::ProductDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Product) + params(params: T.any(::Stripe::ProductDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Product) } def delete(params = {}, opts = {}); end # Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first. sig { - params(params: T.any(::Stripe::ProductListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ProductListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::ProductSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::ProductSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def self.search(params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::ProductSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::ProductSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(::Stripe::SearchResultObject) } def self.search_auto_paging_each(params = {}, opts = {}, &blk); end # Updates the specific product by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(id: String, params: T.any(::Stripe::ProductUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Product) + params(id: String, params: T.any(::Stripe::ProductUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Product) } def self.update(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/product_feature.rbi b/rbi/stripe/resources/product_feature.rbi index 9c445c9b..e73fe3ec 100644 --- a/rbi/stripe/resources/product_feature.rbi +++ b/rbi/stripe/resources/product_feature.rbi @@ -8,7 +8,7 @@ module Stripe class ProductFeature < APIResource # A feature represents a monetizable ability or functionality in your system. # Features can be assigned to products, and when those products are purchased, Stripe will create an entitlement to the feature for the purchasing customer. - sig { returns(Stripe::Entitlements::Feature) } + sig { returns(::Stripe::Entitlements::Feature) } def entitlement_feature; end # Unique identifier for the object. sig { returns(String) } diff --git a/rbi/stripe/resources/promotion_code.rbi b/rbi/stripe/resources/promotion_code.rbi index d3fee455..6455a503 100644 --- a/rbi/stripe/resources/promotion_code.rbi +++ b/rbi/stripe/resources/promotion_code.rbi @@ -9,9 +9,9 @@ module Stripe # If you enable promotion codes in your [customer portal configuration](https://stripe.com/docs/customer-management/configure-portal), then customers can redeem a code themselves when updating a subscription in the portal. # Customers can also view the currently active promotion codes and coupons on each of their subscriptions in the portal. class PromotionCode < APIResource - class Promotion < Stripe::StripeObject + class Promotion < ::Stripe::StripeObject # If promotion `type` is `coupon`, the coupon for this promotion. - sig { returns(T.nilable(T.any(String, Stripe::Coupon))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Coupon))) } def coupon; end # The type of promotion. sig { returns(String) } @@ -23,8 +23,8 @@ module Stripe @field_remappings = {} end end - class Restrictions < Stripe::StripeObject - class CurrencyOptions < Stripe::StripeObject + class Restrictions < ::Stripe::StripeObject + class CurrencyOptions < ::Stripe::StripeObject # Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work). sig { returns(Integer) } def minimum_amount; end @@ -64,7 +64,7 @@ module Stripe sig { returns(Integer) } def created; end # The customer that this promotion code can be used by. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # Date at which the promotion code can no longer be redeemed. sig { returns(T.nilable(Integer)) } @@ -95,19 +95,19 @@ module Stripe def times_redeemed; end # A promotion code points to an underlying promotion. You can optionally restrict the code to a specific customer, redemption limit, and expiration date. sig { - params(params: T.any(::Stripe::PromotionCodeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PromotionCode) + params(params: T.any(::Stripe::PromotionCodeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PromotionCode) } def self.create(params = {}, opts = {}); end # Returns a list of your promotion codes. sig { - params(params: T.any(::Stripe::PromotionCodeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PromotionCodeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the specified promotion code by setting the values of the parameters passed. Most fields are, by design, not editable. sig { - params(promotion_code: String, params: T.any(::Stripe::PromotionCodeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PromotionCode) + params(promotion_code: String, params: T.any(::Stripe::PromotionCodeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PromotionCode) } def self.update(promotion_code, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/quote.rbi b/rbi/stripe/resources/quote.rbi index e214fbb2..7552bec2 100644 --- a/rbi/stripe/resources/quote.rbi +++ b/rbi/stripe/resources/quote.rbi @@ -6,10 +6,10 @@ module Stripe # A Quote is a way to model prices that you'd like to provide to a customer. # Once accepted, it will automatically create an invoice, subscription or subscription schedule. class Quote < APIResource - class AutomaticTax < Stripe::StripeObject - class Liability < Stripe::StripeObject + class AutomaticTax < ::Stripe::StripeObject + class Liability < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -40,11 +40,11 @@ module Stripe @field_remappings = {} end end - class Computed < Stripe::StripeObject - class Recurring < Stripe::StripeObject - class TotalDetails < Stripe::StripeObject - class Breakdown < Stripe::StripeObject - class Discount < Stripe::StripeObject + class Computed < ::Stripe::StripeObject + class Recurring < ::Stripe::StripeObject + class TotalDetails < ::Stripe::StripeObject + class Breakdown < ::Stripe::StripeObject + class Discount < ::Stripe::StripeObject # The amount discounted. sig { returns(Integer) } def amount; end @@ -52,7 +52,7 @@ module Stripe # It contains information about when the discount began, when it will end, and what it is applied to. # # Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts) - sig { returns(Stripe::Discount) } + sig { returns(::Stripe::Discount) } def discount; end def self.inner_class_types @inner_class_types = {} @@ -61,14 +61,14 @@ module Stripe @field_remappings = {} end end - class Tax < Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. sig { returns(Integer) } def amount; end # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # # Related guide: [Tax rates](/billing/taxes/tax-rates) - sig { returns(Stripe::TaxRate) } + sig { returns(::Stripe::TaxRate) } def rate; end # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. sig { returns(T.nilable(String)) } @@ -137,10 +137,10 @@ module Stripe @field_remappings = {} end end - class Upfront < Stripe::StripeObject - class TotalDetails < Stripe::StripeObject - class Breakdown < Stripe::StripeObject - class Discount < Stripe::StripeObject + class Upfront < ::Stripe::StripeObject + class TotalDetails < ::Stripe::StripeObject + class Breakdown < ::Stripe::StripeObject + class Discount < ::Stripe::StripeObject # The amount discounted. sig { returns(Integer) } def amount; end @@ -148,7 +148,7 @@ module Stripe # It contains information about when the discount began, when it will end, and what it is applied to. # # Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts) - sig { returns(Stripe::Discount) } + sig { returns(::Stripe::Discount) } def discount; end def self.inner_class_types @inner_class_types = {} @@ -157,14 +157,14 @@ module Stripe @field_remappings = {} end end - class Tax < Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. sig { returns(Integer) } def amount; end # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # # Related guide: [Tax rates](/billing/taxes/tax-rates) - sig { returns(Stripe::TaxRate) } + sig { returns(::Stripe::TaxRate) } def rate; end # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. sig { returns(T.nilable(String)) } @@ -218,7 +218,7 @@ module Stripe sig { returns(Integer) } def amount_total; end # The line items that will appear on the next invoice after this quote is accepted. This does not include pending invoice items that exist on the customer but may still be included in the next invoice. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def line_items; end # Attribute for field total_details sig { returns(TotalDetails) } @@ -243,12 +243,12 @@ module Stripe @field_remappings = {} end end - class FromQuote < Stripe::StripeObject + class FromQuote < ::Stripe::StripeObject # Whether this quote is a revision of a different quote. sig { returns(T::Boolean) } def is_revision; end # The quote that was cloned. - sig { returns(T.any(String, Stripe::Quote)) } + sig { returns(T.any(String, ::Stripe::Quote)) } def quote; end def self.inner_class_types @inner_class_types = {} @@ -257,10 +257,10 @@ module Stripe @field_remappings = {} end end - class InvoiceSettings < Stripe::StripeObject - class Issuer < Stripe::StripeObject + class InvoiceSettings < ::Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -285,7 +285,7 @@ module Stripe @field_remappings = {} end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # The time that the quote was accepted. Measured in seconds since Unix epoch. sig { returns(T.nilable(Integer)) } def accepted_at; end @@ -302,9 +302,9 @@ module Stripe @field_remappings = {} end end - class SubscriptionData < Stripe::StripeObject - class BillingMode < Stripe::StripeObject - class Flexible < Stripe::StripeObject + class SubscriptionData < ::Stripe::StripeObject + class BillingMode < ::Stripe::StripeObject + class Flexible < ::Stripe::StripeObject # Controls how invoices and invoice items display proration amounts and discount amounts. sig { returns(T.nilable(String)) } def proration_discounts; end @@ -350,9 +350,9 @@ module Stripe @field_remappings = {} end end - class TotalDetails < Stripe::StripeObject - class Breakdown < Stripe::StripeObject - class Discount < Stripe::StripeObject + class TotalDetails < ::Stripe::StripeObject + class Breakdown < ::Stripe::StripeObject + class Discount < ::Stripe::StripeObject # The amount discounted. sig { returns(Integer) } def amount; end @@ -360,7 +360,7 @@ module Stripe # It contains information about when the discount began, when it will end, and what it is applied to. # # Related guide: [Applying discounts to subscriptions](https://stripe.com/docs/billing/subscriptions/discounts) - sig { returns(Stripe::Discount) } + sig { returns(::Stripe::Discount) } def discount; end def self.inner_class_types @inner_class_types = {} @@ -369,14 +369,14 @@ module Stripe @field_remappings = {} end end - class Tax < Stripe::StripeObject + class Tax < ::Stripe::StripeObject # Amount of tax applied for this rate. sig { returns(Integer) } def amount; end # Tax rates can be applied to [invoices](/invoicing/taxes/tax-rates), [subscriptions](/billing/taxes/tax-rates) and [Checkout Sessions](/payments/checkout/use-manual-tax-rates) to collect tax. # # Related guide: [Tax rates](/billing/taxes/tax-rates) - sig { returns(Stripe::TaxRate) } + sig { returns(::Stripe::TaxRate) } def rate; end # The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. sig { returns(T.nilable(String)) } @@ -423,7 +423,7 @@ module Stripe @field_remappings = {} end end - class TransferData < Stripe::StripeObject + class TransferData < ::Stripe::StripeObject # The amount in cents (or local equivalent) that will be transferred to the destination account when the invoice is paid. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Integer)) } def amount; end @@ -431,7 +431,7 @@ module Stripe sig { returns(T.nilable(Float)) } def amount_percent; end # The account where funds from the payment will be transferred to upon payment success. - sig { returns(T.any(String, Stripe::Account)) } + sig { returns(T.any(String, ::Stripe::Account)) } def destination; end def self.inner_class_types @inner_class_types = {} @@ -447,7 +447,7 @@ module Stripe sig { returns(Integer) } def amount_total; end # ID of the Connect Application that created the quote. - sig { returns(T.nilable(T.any(String, Stripe::Application))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Application))) } def application; end # The amount of the application fee (if any) that will be requested to be applied to the payment and transferred to the application owner's Stripe account. Only applicable if there are no line items with recurring prices on the quote. sig { returns(T.nilable(Integer)) } @@ -471,16 +471,16 @@ module Stripe sig { returns(T.nilable(String)) } def currency; end # The customer which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # The tax rates applied to this quote. - sig { returns(T.nilable(T::Array[T.any(String, Stripe::TaxRate)])) } + sig { returns(T.nilable(T::Array[T.any(String, ::Stripe::TaxRate)])) } def default_tax_rates; end # A description that will be displayed on the quote PDF. sig { returns(T.nilable(String)) } def description; end # The discounts applied to this quote. - sig { returns(T::Array[T.any(String, Stripe::Discount)]) } + sig { returns(T::Array[T.any(String, ::Stripe::Discount)]) } def discounts; end # The date on which the quote will be canceled if in `open` or `draft` status. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -498,13 +498,13 @@ module Stripe sig { returns(String) } def id; end # The invoice that was created from this quote. - sig { returns(T.nilable(T.any(String, Stripe::Invoice))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Invoice))) } def invoice; end # Attribute for field invoice_settings sig { returns(InvoiceSettings) } def invoice_settings; end # A list of items the customer is being quoted for. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def line_items; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -519,7 +519,7 @@ module Stripe sig { returns(String) } def object; end # The account on behalf of which to charge. See the [Connect documentation](https://support.stripe.com/questions/sending-invoices-on-behalf-of-connected-accounts) for details. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def on_behalf_of; end # The status of the quote. sig { returns(String) } @@ -528,16 +528,16 @@ module Stripe sig { returns(StatusTransitions) } def status_transitions; end # The subscription that was created or updated from this quote. - sig { returns(T.nilable(T.any(String, Stripe::Subscription))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Subscription))) } def subscription; end # Attribute for field subscription_data sig { returns(SubscriptionData) } def subscription_data; end # The subscription schedule that was created or updated from this quote. - sig { returns(T.nilable(T.any(String, Stripe::SubscriptionSchedule))) } + sig { returns(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule))) } def subscription_schedule; end # ID of the test clock this quote belongs to. - sig { returns(T.nilable(T.any(String, Stripe::TestHelpers::TestClock))) } + sig { returns(T.nilable(T.any(String, ::Stripe::TestHelpers::TestClock))) } def test_clock; end # Attribute for field total_details sig { returns(TotalDetails) } @@ -547,73 +547,73 @@ module Stripe def transfer_data; end # Accepts the specified quote. sig { - params(params: T.any(::Stripe::QuoteAcceptParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(params: T.any(::Stripe::QuoteAcceptParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def accept(params = {}, opts = {}); end # Accepts the specified quote. sig { - params(quote: String, params: T.any(::Stripe::QuoteAcceptParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(quote: String, params: T.any(::Stripe::QuoteAcceptParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def self.accept(quote, params = {}, opts = {}); end # Cancels the quote. sig { - params(params: T.any(::Stripe::QuoteCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(params: T.any(::Stripe::QuoteCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def cancel(params = {}, opts = {}); end # Cancels the quote. sig { - params(quote: String, params: T.any(::Stripe::QuoteCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(quote: String, params: T.any(::Stripe::QuoteCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def self.cancel(quote, params = {}, opts = {}); end # A quote models prices and services for a customer. Default options for header, description, footer, and expires_at can be set in the dashboard via the [quote template](https://dashboard.stripe.com/settings/billing/quote). sig { - params(params: T.any(::Stripe::QuoteCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(params: T.any(::Stripe::QuoteCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def self.create(params = {}, opts = {}); end # Finalizes the quote. sig { - params(params: T.any(::Stripe::QuoteFinalizeQuoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(params: T.any(::Stripe::QuoteFinalizeQuoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def finalize_quote(params = {}, opts = {}); end # Finalizes the quote. sig { - params(quote: String, params: T.any(::Stripe::QuoteFinalizeQuoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(quote: String, params: T.any(::Stripe::QuoteFinalizeQuoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def self.finalize_quote(quote, params = {}, opts = {}); end # Returns a list of your quotes. sig { - params(params: T.any(::Stripe::QuoteListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::QuoteListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # When retrieving a quote, there is an includable [computed.upfront.line_items](https://stripe.com/docs/api/quotes/object#quote_object-computed-upfront-line_items) property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of upfront line items. sig { - params(params: T.any(::Stripe::QuoteListComputedUpfrontLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::QuoteListComputedUpfrontLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list_computed_upfront_line_items(params = {}, opts = {}); end # When retrieving a quote, there is an includable [computed.upfront.line_items](https://stripe.com/docs/api/quotes/object#quote_object-computed-upfront-line_items) property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of upfront line items. sig { - params(quote: String, params: T.any(::Stripe::QuoteListComputedUpfrontLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(quote: String, params: T.any(::Stripe::QuoteListComputedUpfrontLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list_computed_upfront_line_items(quote, params = {}, opts = {}); end # When retrieving a quote, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. sig { - params(params: T.any(::Stripe::QuoteListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::QuoteListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list_line_items(params = {}, opts = {}); end # When retrieving a quote, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. sig { - params(quote: String, params: T.any(::Stripe::QuoteListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(quote: String, params: T.any(::Stripe::QuoteListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list_line_items(quote, params = {}, opts = {}); end @@ -631,7 +631,7 @@ module Stripe # A quote models prices and services for a customer. sig { - params(quote: String, params: T.any(::Stripe::QuoteUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(quote: String, params: T.any(::Stripe::QuoteUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def self.update(quote, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/radar/early_fraud_warning.rbi b/rbi/stripe/resources/radar/early_fraud_warning.rbi index 17b56bc4..ac870610 100644 --- a/rbi/stripe/resources/radar/early_fraud_warning.rbi +++ b/rbi/stripe/resources/radar/early_fraud_warning.rbi @@ -13,7 +13,7 @@ module Stripe sig { returns(T::Boolean) } def actionable; end # ID of the charge this early fraud warning is for, optionally expanded. - sig { returns(T.any(String, Stripe::Charge)) } + sig { returns(T.any(String, ::Stripe::Charge)) } def charge; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -31,11 +31,11 @@ module Stripe sig { returns(String) } def object; end # ID of the Payment Intent this early fraud warning is for, optionally expanded. - sig { returns(T.nilable(T.any(String, Stripe::PaymentIntent))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntent))) } def payment_intent; end # Returns a list of early fraud warnings. sig { - params(params: T.any(::Stripe::Radar::EarlyFraudWarningListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Radar::EarlyFraudWarningListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/radar/value_list.rbi b/rbi/stripe/resources/radar/value_list.rbi index 23c8d8a9..cd4cdd5c 100644 --- a/rbi/stripe/resources/radar/value_list.rbi +++ b/rbi/stripe/resources/radar/value_list.rbi @@ -24,7 +24,7 @@ module Stripe sig { returns(String) } def item_type; end # List of items contained within this value list. - sig { returns(Stripe::ListObject) } + sig { returns(::Stripe::ListObject) } def list_items; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -43,31 +43,31 @@ module Stripe def deleted; end # Creates a new ValueList object, which can then be referenced in rules. sig { - params(params: T.any(::Stripe::Radar::ValueListCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueList) + params(params: T.any(::Stripe::Radar::ValueListCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueList) } def self.create(params = {}, opts = {}); end # Deletes a ValueList object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules. sig { - params(value_list: String, params: T.any(::Stripe::Radar::ValueListDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueList) + params(value_list: String, params: T.any(::Stripe::Radar::ValueListDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueList) } def self.delete(value_list, params = {}, opts = {}); end # Deletes a ValueList object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules. sig { - params(params: T.any(::Stripe::Radar::ValueListDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueList) + params(params: T.any(::Stripe::Radar::ValueListDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueList) } def delete(params = {}, opts = {}); end # Returns a list of ValueList objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Radar::ValueListListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Radar::ValueListListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates a ValueList object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note that item_type is immutable. sig { - params(value_list: String, params: T.any(::Stripe::Radar::ValueListUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueList) + params(value_list: String, params: T.any(::Stripe::Radar::ValueListUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueList) } def self.update(value_list, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/radar/value_list_item.rbi b/rbi/stripe/resources/radar/value_list_item.rbi index b72c0ec1..3d7aa094 100644 --- a/rbi/stripe/resources/radar/value_list_item.rbi +++ b/rbi/stripe/resources/radar/value_list_item.rbi @@ -34,25 +34,25 @@ module Stripe def deleted; end # Creates a new ValueListItem object, which is added to the specified parent value list. sig { - params(params: T.any(::Stripe::Radar::ValueListItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueListItem) + params(params: T.any(::Stripe::Radar::ValueListItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueListItem) } def self.create(params = {}, opts = {}); end # Deletes a ValueListItem object, removing it from its parent value list. sig { - params(item: String, params: T.any(::Stripe::Radar::ValueListItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueListItem) + params(item: String, params: T.any(::Stripe::Radar::ValueListItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueListItem) } def self.delete(item, params = {}, opts = {}); end # Deletes a ValueListItem object, removing it from its parent value list. sig { - params(params: T.any(::Stripe::Radar::ValueListItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueListItem) + params(params: T.any(::Stripe::Radar::ValueListItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueListItem) } def delete(params = {}, opts = {}); end # Returns a list of ValueListItem objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Radar::ValueListItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Radar::ValueListItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/refund.rbi b/rbi/stripe/resources/refund.rbi index 5e434446..94ec7f81 100644 --- a/rbi/stripe/resources/refund.rbi +++ b/rbi/stripe/resources/refund.rbi @@ -9,8 +9,8 @@ module Stripe # # Related guide: [Refunds](https://stripe.com/docs/refunds) class Refund < APIResource - class DestinationDetails < Stripe::StripeObject - class Affirm < Stripe::StripeObject + class DestinationDetails < ::Stripe::StripeObject + class Affirm < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -18,7 +18,7 @@ module Stripe @field_remappings = {} end end - class AfterpayClearpay < Stripe::StripeObject + class AfterpayClearpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -26,7 +26,7 @@ module Stripe @field_remappings = {} end end - class Alipay < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -34,7 +34,7 @@ module Stripe @field_remappings = {} end end - class Alma < Stripe::StripeObject + class Alma < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -42,7 +42,7 @@ module Stripe @field_remappings = {} end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -50,7 +50,7 @@ module Stripe @field_remappings = {} end end - class AuBankTransfer < Stripe::StripeObject + class AuBankTransfer < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -58,7 +58,7 @@ module Stripe @field_remappings = {} end end - class Blik < Stripe::StripeObject + class Blik < ::Stripe::StripeObject # For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed. sig { returns(T.nilable(String)) } def network_decline_code; end @@ -75,7 +75,7 @@ module Stripe @field_remappings = {} end end - class BrBankTransfer < Stripe::StripeObject + class BrBankTransfer < ::Stripe::StripeObject # The reference assigned to the refund. sig { returns(T.nilable(String)) } def reference; end @@ -89,7 +89,7 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject + class Card < ::Stripe::StripeObject # Value of the reference number assigned to the refund. sig { returns(T.nilable(String)) } def reference; end @@ -109,7 +109,7 @@ module Stripe @field_remappings = {} end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -117,7 +117,10 @@ module Stripe @field_remappings = {} end end - class CustomerCashBalance < Stripe::StripeObject + class Crypto < ::Stripe::StripeObject + # The transaction hash of the refund. + sig { returns(T.nilable(String)) } + def reference; end def self.inner_class_types @inner_class_types = {} end @@ -125,7 +128,7 @@ module Stripe @field_remappings = {} end end - class Eps < Stripe::StripeObject + class CustomerCashBalance < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -133,7 +136,15 @@ module Stripe @field_remappings = {} end end - class EuBankTransfer < Stripe::StripeObject + class Eps < ::Stripe::StripeObject + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class EuBankTransfer < ::Stripe::StripeObject # The reference assigned to the refund. sig { returns(T.nilable(String)) } def reference; end @@ -147,7 +158,7 @@ module Stripe @field_remappings = {} end end - class GbBankTransfer < Stripe::StripeObject + class GbBankTransfer < ::Stripe::StripeObject # The reference assigned to the refund. sig { returns(T.nilable(String)) } def reference; end @@ -161,7 +172,7 @@ module Stripe @field_remappings = {} end end - class Giropay < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -169,7 +180,7 @@ module Stripe @field_remappings = {} end end - class Grabpay < Stripe::StripeObject + class Grabpay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -177,7 +188,7 @@ module Stripe @field_remappings = {} end end - class JpBankTransfer < Stripe::StripeObject + class JpBankTransfer < ::Stripe::StripeObject # The reference assigned to the refund. sig { returns(T.nilable(String)) } def reference; end @@ -191,7 +202,7 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -199,7 +210,7 @@ module Stripe @field_remappings = {} end end - class Multibanco < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject # The reference assigned to the refund. sig { returns(T.nilable(String)) } def reference; end @@ -213,7 +224,7 @@ module Stripe @field_remappings = {} end end - class MxBankTransfer < Stripe::StripeObject + class MxBankTransfer < ::Stripe::StripeObject # The reference assigned to the refund. sig { returns(T.nilable(String)) } def reference; end @@ -227,7 +238,7 @@ module Stripe @field_remappings = {} end end - class NzBankTransfer < Stripe::StripeObject + class NzBankTransfer < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -235,7 +246,7 @@ module Stripe @field_remappings = {} end end - class P24 < Stripe::StripeObject + class P24 < ::Stripe::StripeObject # The reference assigned to the refund. sig { returns(T.nilable(String)) } def reference; end @@ -249,7 +260,7 @@ module Stripe @field_remappings = {} end end - class Paynow < Stripe::StripeObject + class Paynow < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -257,7 +268,7 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed. sig { returns(T.nilable(String)) } def network_decline_code; end @@ -268,7 +279,7 @@ module Stripe @field_remappings = {} end end - class Pix < Stripe::StripeObject + class Pix < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -276,7 +287,7 @@ module Stripe @field_remappings = {} end end - class Revolut < Stripe::StripeObject + class Revolut < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -284,7 +295,7 @@ module Stripe @field_remappings = {} end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -292,7 +303,7 @@ module Stripe @field_remappings = {} end end - class Swish < Stripe::StripeObject + class Swish < ::Stripe::StripeObject # For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed. sig { returns(T.nilable(String)) } def network_decline_code; end @@ -309,7 +320,7 @@ module Stripe @field_remappings = {} end end - class ThBankTransfer < Stripe::StripeObject + class ThBankTransfer < ::Stripe::StripeObject # The reference assigned to the refund. sig { returns(T.nilable(String)) } def reference; end @@ -323,7 +334,7 @@ module Stripe @field_remappings = {} end end - class UsBankTransfer < Stripe::StripeObject + class UsBankTransfer < ::Stripe::StripeObject # The reference assigned to the refund. sig { returns(T.nilable(String)) } def reference; end @@ -337,7 +348,7 @@ module Stripe @field_remappings = {} end end - class WechatPay < Stripe::StripeObject + class WechatPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -345,7 +356,7 @@ module Stripe @field_remappings = {} end end - class Zip < Stripe::StripeObject + class Zip < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -383,6 +394,9 @@ module Stripe # Attribute for field cashapp sig { returns(T.nilable(Cashapp)) } def cashapp; end + # Attribute for field crypto + sig { returns(T.nilable(Crypto)) } + def crypto; end # Attribute for field customer_cash_balance sig { returns(T.nilable(CustomerCashBalance)) } def customer_cash_balance; end @@ -464,6 +478,7 @@ module Stripe br_bank_transfer: BrBankTransfer, card: Card, cashapp: Cashapp, + crypto: Crypto, customer_cash_balance: CustomerCashBalance, eps: Eps, eu_bank_transfer: EuBankTransfer, @@ -492,9 +507,9 @@ module Stripe @field_remappings = {} end end - class NextAction < Stripe::StripeObject - class DisplayDetails < Stripe::StripeObject - class EmailSent < Stripe::StripeObject + class NextAction < ::Stripe::StripeObject + class DisplayDetails < ::Stripe::StripeObject + class EmailSent < ::Stripe::StripeObject # The timestamp when the email was sent. sig { returns(Integer) } def email_sent_at; end @@ -534,7 +549,7 @@ module Stripe @field_remappings = {} end end - class PresentmentDetails < Stripe::StripeObject + class PresentmentDetails < ::Stripe::StripeObject # Amount intended to be collected by this payment, denominated in `presentment_currency`. sig { returns(Integer) } def presentment_amount; end @@ -552,10 +567,10 @@ module Stripe sig { returns(Integer) } def amount; end # Balance transaction that describes the impact on your account balance. - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def balance_transaction; end # ID of the charge that's refunded. - sig { returns(T.nilable(T.any(String, Stripe::Charge))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Charge))) } def charge; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -570,7 +585,7 @@ module Stripe sig { returns(T.nilable(DestinationDetails)) } def destination_details; end # After the refund fails, this balance transaction describes the adjustment made on your account balance that reverses the initial balance transaction. - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def failure_balance_transaction; end # Provides the reason for the refund failure. Possible values are: `lost_or_stolen_card`, `expired_or_canceled_card`, `charge_for_pending_refund_disputed`, `insufficient_funds`, `declined`, `merchant_request`, or `unknown`. sig { returns(T.nilable(String)) } @@ -591,7 +606,7 @@ module Stripe sig { returns(String) } def object; end # ID of the PaymentIntent that's refunded. - sig { returns(T.nilable(T.any(String, Stripe::PaymentIntent))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntent))) } def payment_intent; end # Provides the reason for why the refund is pending. Possible values are: `processing`, `insufficient_funds`, or `charge_pending`. sig { returns(T.nilable(String)) } @@ -606,19 +621,19 @@ module Stripe sig { returns(T.nilable(String)) } def receipt_number; end # The transfer reversal that's associated with the refund. Only present if the charge came from another Stripe account. - sig { returns(T.nilable(T.any(String, Stripe::Reversal))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Reversal))) } def source_transfer_reversal; end # Status of the refund. This can be `pending`, `requires_action`, `succeeded`, `failed`, or `canceled`. Learn more about [failed refunds](https://stripe.com/docs/refunds#failed-refunds). sig { returns(T.nilable(String)) } def status; end # This refers to the transfer reversal object if the accompanying transfer reverses. This is only applicable if the charge was created using the destination parameter. - sig { returns(T.nilable(T.any(String, Stripe::Reversal))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Reversal))) } def transfer_reversal; end # Cancels a refund with a status of requires_action. # # You can't cancel refunds in other states. Only refunds for payment methods that require customer action can enter the requires_action state. sig { - params(params: T.any(::Stripe::RefundCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Refund) + params(params: T.any(::Stripe::RefundCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Refund) } def cancel(params = {}, opts = {}); end @@ -626,7 +641,7 @@ module Stripe # # You can't cancel refunds in other states. Only refunds for payment methods that require customer action can enter the requires_action state. sig { - params(refund: String, params: T.any(::Stripe::RefundCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Refund) + params(refund: String, params: T.any(::Stripe::RefundCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Refund) } def self.cancel(refund, params = {}, opts = {}); end @@ -642,13 +657,13 @@ module Stripe # This method will raise an error when called on an already-refunded charge, # or when trying to refund more money than is left on a charge. sig { - params(params: T.any(::Stripe::RefundCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Refund) + params(params: T.any(::Stripe::RefundCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Refund) } def self.create(params = {}, opts = {}); end # Returns a list of all refunds you created. We return the refunds in sorted order, with the most recent refunds appearing first. The 10 most recent refunds are always available by default on the Charge object. sig { - params(params: T.any(::Stripe::RefundListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::RefundListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end @@ -656,7 +671,7 @@ module Stripe # # This request only accepts metadata as an argument. sig { - params(refund: String, params: T.any(::Stripe::RefundUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Refund) + params(refund: String, params: T.any(::Stripe::RefundUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Refund) } def self.update(refund, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/reporting/report_run.rbi b/rbi/stripe/resources/reporting/report_run.rbi index c7b59f2e..f4ca0f57 100644 --- a/rbi/stripe/resources/reporting/report_run.rbi +++ b/rbi/stripe/resources/reporting/report_run.rbi @@ -13,7 +13,7 @@ module Stripe # Note that certain report types can only be run based on your live-mode data (not test-mode # data), and will error when queried without a [live-mode API key](https://stripe.com/docs/keys#test-live-modes). class ReportRun < APIResource - class Parameters < Stripe::StripeObject + class Parameters < ::Stripe::StripeObject # The set of output columns requested for inclusion in the report run. sig { returns(T.nilable(T::Array[String])) } def columns; end @@ -69,7 +69,7 @@ module Stripe def report_type; end # The file object representing the result of the report run (populated when # `status=succeeded`). - sig { returns(T.nilable(Stripe::File)) } + sig { returns(T.nilable(::Stripe::File)) } def result; end # Status of this report run. This will be `pending` when the run is initially created. # When the run finishes, this will be set to `succeeded` and the `result` field will be populated. @@ -82,13 +82,13 @@ module Stripe def succeeded_at; end # Creates a new object and begin running the report. (Certain report types require a [live-mode API key](https://stripe.com/docs/keys#test-live-modes).) sig { - params(params: T.any(::Stripe::Reporting::ReportRunCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Reporting::ReportRun) + params(params: T.any(::Stripe::Reporting::ReportRunCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Reporting::ReportRun) } def self.create(params = {}, opts = {}); end # Returns a list of Report Runs, with the most recent appearing first. sig { - params(params: T.any(::Stripe::Reporting::ReportRunListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Reporting::ReportRunListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/reporting/report_type.rbi b/rbi/stripe/resources/reporting/report_type.rbi index fe463a44..ba437e97 100644 --- a/rbi/stripe/resources/reporting/report_type.rbi +++ b/rbi/stripe/resources/reporting/report_type.rbi @@ -42,7 +42,7 @@ module Stripe def version; end # Returns a full list of Report Types. sig { - params(params: T.any(::Stripe::Reporting::ReportTypeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Reporting::ReportTypeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/reversal.rbi b/rbi/stripe/resources/reversal.rbi index 36a99129..84f16017 100644 --- a/rbi/stripe/resources/reversal.rbi +++ b/rbi/stripe/resources/reversal.rbi @@ -21,7 +21,7 @@ module Stripe sig { returns(Integer) } def amount; end # Balance transaction that describes the impact on your account balance. - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def balance_transaction; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -30,7 +30,7 @@ module Stripe sig { returns(String) } def currency; end # Linked payment refund for the transfer reversal. - sig { returns(T.nilable(T.any(String, Stripe::Refund))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Refund))) } def destination_payment_refund; end # Unique identifier for the object. sig { returns(String) } @@ -42,10 +42,10 @@ module Stripe sig { returns(String) } def object; end # ID of the refund responsible for the transfer reversal. - sig { returns(T.nilable(T.any(String, Stripe::Refund))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Refund))) } def source_refund; end # ID of the transfer that was reversed. - sig { returns(T.any(String, Stripe::Transfer)) } + sig { returns(T.any(String, ::Stripe::Transfer)) } def transfer; end end end \ No newline at end of file diff --git a/rbi/stripe/resources/review.rbi b/rbi/stripe/resources/review.rbi index beb83dbe..6ab79791 100644 --- a/rbi/stripe/resources/review.rbi +++ b/rbi/stripe/resources/review.rbi @@ -8,7 +8,7 @@ module Stripe # Learn more about [Radar](https://docs.stripe.com/radar) and reviewing payments # [here](https://stripe.com/docs/radar/reviews). class Review < APIResource - class IpAddressLocation < Stripe::StripeObject + class IpAddressLocation < ::Stripe::StripeObject # The city where the payment originated. sig { returns(T.nilable(String)) } def city; end @@ -31,7 +31,7 @@ module Stripe @field_remappings = {} end end - class Session < Stripe::StripeObject + class Session < ::Stripe::StripeObject # The browser used in this browser session (e.g., `Chrome`). sig { returns(T.nilable(String)) } def browser; end @@ -55,7 +55,7 @@ module Stripe sig { returns(T.nilable(String)) } def billing_zip; end # The charge associated with this review. - sig { returns(T.nilable(T.any(String, Stripe::Charge))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Charge))) } def charge; end # The reason the review was closed, or null if it has not yet been closed. One of `approved`, `refunded`, `refunded_as_fraud`, `disputed`, `redacted`, `canceled`, `payment_never_settled`, or `acknowledged`. sig { returns(T.nilable(String)) } @@ -85,7 +85,7 @@ module Stripe sig { returns(String) } def opened_reason; end # The PaymentIntent ID associated with this review, if one exists. - sig { returns(T.nilable(T.any(String, Stripe::PaymentIntent))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntent))) } def payment_intent; end # The reason the review is currently open or closed. One of `rule`, `manual`, `approved`, `refunded`, `refunded_as_fraud`, `disputed`, `redacted`, `canceled`, `payment_never_settled`, or `acknowledged`. sig { returns(String) } @@ -95,19 +95,19 @@ module Stripe def session; end # Approves a Review object, closing it and removing it from the list of reviews. sig { - params(params: T.any(::Stripe::ReviewApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Review) + params(params: T.any(::Stripe::ReviewApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Review) } def approve(params = {}, opts = {}); end # Approves a Review object, closing it and removing it from the list of reviews. sig { - params(review: String, params: T.any(::Stripe::ReviewApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Review) + params(review: String, params: T.any(::Stripe::ReviewApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Review) } def self.approve(review, params = {}, opts = {}); end # Returns a list of Review objects that have open set to true. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::ReviewListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ReviewListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/setup_attempt.rbi b/rbi/stripe/resources/setup_attempt.rbi index 1eab7508..a1722446 100644 --- a/rbi/stripe/resources/setup_attempt.rbi +++ b/rbi/stripe/resources/setup_attempt.rbi @@ -8,8 +8,8 @@ module Stripe # SetupAttempts to inspect details of a specific attempt at setting up a # payment method using a SetupIntent. class SetupAttempt < APIResource - class PaymentMethodDetails < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject + class PaymentMethodDetails < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -17,7 +17,7 @@ module Stripe @field_remappings = {} end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -25,7 +25,7 @@ module Stripe @field_remappings = {} end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -33,7 +33,7 @@ module Stripe @field_remappings = {} end end - class BacsDebit < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -41,7 +41,7 @@ module Stripe @field_remappings = {} end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject # Bank code of bank associated with the bank account. sig { returns(T.nilable(String)) } def bank_code; end @@ -52,10 +52,10 @@ module Stripe sig { returns(T.nilable(String)) } def bic; end # The ID of the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def generated_sepa_debit; end # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def generated_sepa_debit_mandate; end # Last four characters of the IBAN. sig { returns(T.nilable(String)) } @@ -75,7 +75,7 @@ module Stripe @field_remappings = {} end end - class Boleto < Stripe::StripeObject + class Boleto < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -83,8 +83,8 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject - class Checks < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class Checks < ::Stripe::StripeObject # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. sig { returns(T.nilable(String)) } def address_line1_check; end @@ -101,7 +101,7 @@ module Stripe @field_remappings = {} end end - class ThreeDSecure < Stripe::StripeObject + class ThreeDSecure < ::Stripe::StripeObject # For authenticated transactions: how the customer was authenticated by # the issuing bank. sig { returns(T.nilable(String)) } @@ -131,8 +131,8 @@ module Stripe @field_remappings = {} end end - class Wallet < Stripe::StripeObject - class ApplePay < Stripe::StripeObject + class Wallet < ::Stripe::StripeObject + class ApplePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -140,7 +140,7 @@ module Stripe @field_remappings = {} end end - class GooglePay < Stripe::StripeObject + class GooglePay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -215,8 +215,8 @@ module Stripe @field_remappings = {} end end - class CardPresent < Stripe::StripeObject - class Offline < Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject + class Offline < ::Stripe::StripeObject # Time at which the payment was collected while offline sig { returns(T.nilable(Integer)) } def stored_at; end @@ -231,7 +231,7 @@ module Stripe end end # The ID of the Card PaymentMethod which was generated by this SetupAttempt. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def generated_card; end # Details about payments collected offline. sig { returns(T.nilable(Offline)) } @@ -243,7 +243,7 @@ module Stripe @field_remappings = {} end end - class Cashapp < Stripe::StripeObject + class Cashapp < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -251,7 +251,7 @@ module Stripe @field_remappings = {} end end - class Ideal < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject # The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. sig { returns(T.nilable(String)) } def bank; end @@ -259,10 +259,10 @@ module Stripe sig { returns(T.nilable(String)) } def bic; end # The ID of the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def generated_sepa_debit; end # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def generated_sepa_debit_mandate; end # Last four characters of the IBAN. sig { returns(T.nilable(String)) } @@ -278,7 +278,7 @@ module Stripe @field_remappings = {} end end - class KakaoPay < Stripe::StripeObject + class KakaoPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -286,7 +286,7 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -294,7 +294,7 @@ module Stripe @field_remappings = {} end end - class KrCard < Stripe::StripeObject + class KrCard < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -302,7 +302,7 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -310,7 +310,7 @@ module Stripe @field_remappings = {} end end - class NaverPay < Stripe::StripeObject + class NaverPay < ::Stripe::StripeObject # Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same. sig { returns(T.nilable(String)) } def buyer_id; end @@ -321,7 +321,7 @@ module Stripe @field_remappings = {} end end - class NzBankAccount < Stripe::StripeObject + class NzBankAccount < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -329,7 +329,7 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -337,7 +337,7 @@ module Stripe @field_remappings = {} end end - class RevolutPay < Stripe::StripeObject + class RevolutPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -345,7 +345,7 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -353,7 +353,7 @@ module Stripe @field_remappings = {} end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject # Bank code of bank associated with the bank account. sig { returns(T.nilable(String)) } def bank_code; end @@ -364,10 +364,10 @@ module Stripe sig { returns(T.nilable(String)) } def bic; end # The ID of the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def generated_sepa_debit; end # The mandate for the SEPA Direct Debit PaymentMethod which was generated by this SetupAttempt. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def generated_sepa_debit_mandate; end # Last four characters of the IBAN. sig { returns(T.nilable(String)) } @@ -387,7 +387,7 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -490,7 +490,7 @@ module Stripe @field_remappings = {} end end - class SetupError < Stripe::StripeObject + class SetupError < ::Stripe::StripeObject # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one. sig { returns(T.nilable(String)) } def advice_code; end @@ -529,14 +529,14 @@ module Stripe # authentication flows and ultimately creates at most one successful charge. # # Related guide: [Payment Intents API](https://stripe.com/docs/payments/payment-intents) - sig { returns(T.nilable(Stripe::PaymentIntent)) } + sig { returns(T.nilable(::Stripe::PaymentIntent)) } def payment_intent; end # PaymentMethod objects represent your customer's payment instruments. # You can use them with [PaymentIntents](https://stripe.com/docs/payments/payment-intents) to collect payments or save them to # Customer objects to store instrument details for future payments. # # Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios). - sig { returns(T.nilable(Stripe::PaymentMethod)) } + sig { returns(T.nilable(::Stripe::PaymentMethod)) } def payment_method; end # If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors. sig { returns(T.nilable(String)) } @@ -565,11 +565,11 @@ module Stripe # By using SetupIntents, you can reduce friction for your customers, even as regulations change over time. # # Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) - sig { returns(T.nilable(Stripe::SetupIntent)) } + sig { returns(T.nilable(::Stripe::SetupIntent)) } def setup_intent; end # Attribute for field source sig { - returns(T.nilable(T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source))) + returns(T.nilable(T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source))) } def source; end # The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error` @@ -583,7 +583,7 @@ module Stripe end end # The value of [application](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-application) on the SetupIntent at the time of this confirmation. - sig { returns(T.nilable(T.any(String, Stripe::Application))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Application))) } def application; end # If present, the SetupIntent's payment method will be attached to the in-context Stripe Account. # @@ -594,7 +594,7 @@ module Stripe sig { returns(Integer) } def created; end # The value of [customer](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-customer) on the SetupIntent at the time of this confirmation. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # Indicates the directions of money movement for which this payment method is intended to be used. # @@ -611,10 +611,10 @@ module Stripe sig { returns(String) } def object; end # The value of [on_behalf_of](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-on_behalf_of) on the SetupIntent at the time of this confirmation. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def on_behalf_of; end # ID of the payment method used with this SetupAttempt. - sig { returns(T.any(String, Stripe::PaymentMethod)) } + sig { returns(T.any(String, ::Stripe::PaymentMethod)) } def payment_method; end # Attribute for field payment_method_details sig { returns(PaymentMethodDetails) } @@ -623,7 +623,7 @@ module Stripe sig { returns(T.nilable(SetupError)) } def setup_error; end # ID of the SetupIntent that this attempt belongs to. - sig { returns(T.any(String, Stripe::SetupIntent)) } + sig { returns(T.any(String, ::Stripe::SetupIntent)) } def setup_intent; end # Status of this SetupAttempt, one of `requires_confirmation`, `requires_action`, `processing`, `succeeded`, `failed`, or `abandoned`. sig { returns(String) } @@ -633,7 +633,7 @@ module Stripe def usage; end # Returns a list of SetupAttempts that associate with a provided SetupIntent. sig { - params(params: T.any(::Stripe::SetupAttemptListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::SetupAttemptListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/setup_intent.rbi b/rbi/stripe/resources/setup_intent.rbi index 2a74ce3a..604cd41d 100644 --- a/rbi/stripe/resources/setup_intent.rbi +++ b/rbi/stripe/resources/setup_intent.rbi @@ -25,7 +25,7 @@ module Stripe # # Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) class SetupIntent < APIResource - class AutomaticPaymentMethods < Stripe::StripeObject + class AutomaticPaymentMethods < ::Stripe::StripeObject # Controls whether this SetupIntent will accept redirect-based payment methods. # # Redirect-based payment methods may require your customer to be redirected to a payment method's app or site for authentication or additional steps. To [confirm](https://stripe.com/docs/api/setup_intents/confirm) this SetupIntent, you may be required to provide a `return_url` to redirect customers back to your site after they authenticate or complete the setup. @@ -41,7 +41,7 @@ module Stripe @field_remappings = {} end end - class LastSetupError < Stripe::StripeObject + class LastSetupError < ::Stripe::StripeObject # For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://stripe.com/docs/declines#retrying-issuer-declines) if they provide one. sig { returns(T.nilable(String)) } def advice_code; end @@ -80,14 +80,14 @@ module Stripe # authentication flows and ultimately creates at most one successful charge. # # Related guide: [Payment Intents API](https://stripe.com/docs/payments/payment-intents) - sig { returns(T.nilable(Stripe::PaymentIntent)) } + sig { returns(T.nilable(::Stripe::PaymentIntent)) } def payment_intent; end # PaymentMethod objects represent your customer's payment instruments. # You can use them with [PaymentIntents](https://stripe.com/docs/payments/payment-intents) to collect payments or save them to # Customer objects to store instrument details for future payments. # # Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios). - sig { returns(T.nilable(Stripe::PaymentMethod)) } + sig { returns(T.nilable(::Stripe::PaymentMethod)) } def payment_method; end # If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors. sig { returns(T.nilable(String)) } @@ -116,11 +116,11 @@ module Stripe # By using SetupIntents, you can reduce friction for your customers, even as regulations change over time. # # Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) - sig { returns(T.nilable(Stripe::SetupIntent)) } + sig { returns(T.nilable(::Stripe::SetupIntent)) } def setup_intent; end # Attribute for field source sig { - returns(T.nilable(T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source))) + returns(T.nilable(T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source))) } def source; end # The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error` @@ -133,9 +133,9 @@ module Stripe @field_remappings = {} end end - class NextAction < Stripe::StripeObject - class CashappHandleRedirectOrDisplayQrCode < Stripe::StripeObject - class QrCode < Stripe::StripeObject + class NextAction < ::Stripe::StripeObject + class CashappHandleRedirectOrDisplayQrCode < ::Stripe::StripeObject + class QrCode < ::Stripe::StripeObject # The date (unix timestamp) when the QR code expires. sig { returns(Integer) } def expires_at; end @@ -168,7 +168,7 @@ module Stripe @field_remappings = {} end end - class RedirectToUrl < Stripe::StripeObject + class RedirectToUrl < ::Stripe::StripeObject # If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion. sig { returns(T.nilable(String)) } def return_url; end @@ -182,7 +182,7 @@ module Stripe @field_remappings = {} end end - class VerifyWithMicrodeposits < Stripe::StripeObject + class VerifyWithMicrodeposits < ::Stripe::StripeObject # The timestamp when the microdeposits are expected to land. sig { returns(Integer) } def arrival_date; end @@ -225,7 +225,7 @@ module Stripe @field_remappings = {} end end - class PaymentMethodConfigurationDetails < Stripe::StripeObject + class PaymentMethodConfigurationDetails < ::Stripe::StripeObject # ID of the payment method configuration used. sig { returns(String) } def id; end @@ -239,9 +239,9 @@ module Stripe @field_remappings = {} end end - class PaymentMethodOptions < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class PaymentMethodOptions < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # A URL for custom mandate text sig { returns(T.nilable(String)) } def custom_mandate_url; end @@ -280,7 +280,7 @@ module Stripe @field_remappings = {} end end - class AmazonPay < Stripe::StripeObject + class AmazonPay < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -288,8 +288,8 @@ module Stripe @field_remappings = {} end end - class BacsDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -310,8 +310,8 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Amount to be charged for future payments. sig { returns(Integer) } def amount; end @@ -365,7 +365,7 @@ module Stripe @field_remappings = {} end end - class CardPresent < Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -373,7 +373,7 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject # The currency of the setup intent. Three letter ISO currency code. sig { returns(T.nilable(String)) } def currency; end @@ -387,7 +387,7 @@ module Stripe @field_remappings = {} end end - class Link < Stripe::StripeObject + class Link < ::Stripe::StripeObject # [Deprecated] This is a legacy parameter that no longer has any function. sig { returns(T.nilable(String)) } def persistent_token; end @@ -398,7 +398,7 @@ module Stripe @field_remappings = {} end end - class Paypal < Stripe::StripeObject + class Paypal < ::Stripe::StripeObject # The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer. sig { returns(T.nilable(String)) } def billing_agreement_id; end @@ -409,8 +409,8 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. sig { returns(T.nilable(String)) } def reference_prefix; end @@ -431,9 +431,9 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject - class FinancialConnections < Stripe::StripeObject - class Filters < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject + class FinancialConnections < ::Stripe::StripeObject + class Filters < ::Stripe::StripeObject # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -463,7 +463,7 @@ module Stripe @field_remappings = {} end end - class MandateOptions < Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Mandate collection method sig { returns(T.nilable(String)) } def collection_method; end @@ -542,7 +542,7 @@ module Stripe end end # ID of the Connect application that created the SetupIntent. - sig { returns(T.nilable(T.any(String, Stripe::Application))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Application))) } def application; end # If present, the SetupIntent's payment method will be attached to the in-context Stripe Account. # @@ -566,11 +566,14 @@ module Stripe # ID of the Customer this SetupIntent belongs to, if one exists. # # If present, the SetupIntent's payment method will be attached to the Customer on successful setup. Payment methods attached to other Customers cannot be used with this SetupIntent. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # An arbitrary string attached to the object. Often useful for displaying to users. sig { returns(T.nilable(String)) } def description; end + # Payment method types that are excluded from this SetupIntent. + sig { returns(T.nilable(T::Array[String])) } + def excluded_payment_method_types; end # Indicates the directions of money movement for which this payment method is intended to be used. # # Include `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes. @@ -583,13 +586,13 @@ module Stripe sig { returns(T.nilable(LastSetupError)) } def last_setup_error; end # The most recent SetupAttempt for this SetupIntent. - sig { returns(T.nilable(T.any(String, Stripe::SetupAttempt))) } + sig { returns(T.nilable(T.any(String, ::Stripe::SetupAttempt))) } def latest_attempt; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } def livemode; end # ID of the multi use Mandate generated by the SetupIntent. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def mandate; end # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. sig { returns(T.nilable(T::Hash[String, String])) } @@ -601,10 +604,10 @@ module Stripe sig { returns(String) } def object; end # The account (if any) for which the setup is intended. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def on_behalf_of; end # ID of the payment method used with this SetupIntent. If the payment method is `card_present` and isn't a digital wallet, then the [generated_card](https://docs.stripe.com/api/setup_attempts/object#setup_attempt_object-payment_method_details-card_present-generated_card) associated with the `latest_attempt` is attached to the Customer instead. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def payment_method; end # Information about the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) used for this Setup Intent. sig { returns(T.nilable(PaymentMethodConfigurationDetails)) } @@ -616,7 +619,7 @@ module Stripe sig { returns(T::Array[String]) } def payment_method_types; end # ID of the single_use Mandate generated by the SetupIntent. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def single_use_mandate; end # [Status](https://stripe.com/docs/payments/intents#intent-statuses) of this SetupIntent, one of `requires_payment_method`, `requires_confirmation`, `requires_action`, `processing`, `canceled`, or `succeeded`. sig { returns(String) } @@ -630,7 +633,7 @@ module Stripe # # After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can't cancel the SetupIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead. sig { - params(params: T.any(::Stripe::SetupIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(params: T.any(::Stripe::SetupIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def cancel(params = {}, opts = {}); end @@ -638,7 +641,7 @@ module Stripe # # After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can't cancel the SetupIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead. sig { - params(intent: String, params: T.any(::Stripe::SetupIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(intent: String, params: T.any(::Stripe::SetupIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def self.cancel(intent, params = {}, opts = {}); end @@ -657,7 +660,7 @@ module Stripe # requires_payment_method status or the canceled status if the # confirmation limit is reached. sig { - params(params: T.any(::Stripe::SetupIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(params: T.any(::Stripe::SetupIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def confirm(params = {}, opts = {}); end @@ -676,7 +679,7 @@ module Stripe # requires_payment_method status or the canceled status if the # confirmation limit is reached. sig { - params(intent: String, params: T.any(::Stripe::SetupIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(intent: String, params: T.any(::Stripe::SetupIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def self.confirm(intent, params = {}, opts = {}); end @@ -685,31 +688,31 @@ module Stripe # After you create the SetupIntent, attach a payment method and [confirm](https://docs.stripe.com/docs/api/setup_intents/confirm) # it to collect any required permissions to charge the payment method later. sig { - params(params: T.any(::Stripe::SetupIntentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(params: T.any(::Stripe::SetupIntentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def self.create(params = {}, opts = {}); end # Returns a list of SetupIntents. sig { - params(params: T.any(::Stripe::SetupIntentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::SetupIntentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates a SetupIntent object. sig { - params(intent: String, params: T.any(::Stripe::SetupIntentUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(intent: String, params: T.any(::Stripe::SetupIntentUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def self.update(intent, params = {}, opts = {}); end # Verifies microdeposits on a SetupIntent object. sig { - params(params: T.any(::Stripe::SetupIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(params: T.any(::Stripe::SetupIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def verify_microdeposits(params = {}, opts = {}); end # Verifies microdeposits on a SetupIntent object. sig { - params(intent: String, params: T.any(::Stripe::SetupIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(intent: String, params: T.any(::Stripe::SetupIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def self.verify_microdeposits(intent, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/shipping_rate.rbi b/rbi/stripe/resources/shipping_rate.rbi index c081e7fd..dfe7ddc0 100644 --- a/rbi/stripe/resources/shipping_rate.rbi +++ b/rbi/stripe/resources/shipping_rate.rbi @@ -6,8 +6,8 @@ module Stripe # Shipping rates describe the price of shipping presented to your customers and # applied to a purchase. For more information, see [Charge for shipping](https://stripe.com/docs/payments/during-payment/charge-shipping). class ShippingRate < APIResource - class DeliveryEstimate < Stripe::StripeObject - class Maximum < Stripe::StripeObject + class DeliveryEstimate < ::Stripe::StripeObject + class Maximum < ::Stripe::StripeObject # A unit of time. sig { returns(String) } def unit; end @@ -21,7 +21,7 @@ module Stripe @field_remappings = {} end end - class Minimum < Stripe::StripeObject + class Minimum < ::Stripe::StripeObject # A unit of time. sig { returns(String) } def unit; end @@ -48,8 +48,8 @@ module Stripe @field_remappings = {} end end - class FixedAmount < Stripe::StripeObject - class CurrencyOptions < Stripe::StripeObject + class FixedAmount < ::Stripe::StripeObject + class CurrencyOptions < ::Stripe::StripeObject # A non-negative integer in cents representing how much to charge. sig { returns(Integer) } def amount; end @@ -110,26 +110,26 @@ module Stripe sig { returns(T.nilable(String)) } def tax_behavior; end # A [tax code](https://stripe.com/docs/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`. - sig { returns(T.nilable(T.any(String, Stripe::TaxCode))) } + sig { returns(T.nilable(T.any(String, ::Stripe::TaxCode))) } def tax_code; end # The type of calculation to use on the shipping rate. sig { returns(String) } def type; end # Creates a new shipping rate object. sig { - params(params: T.any(::Stripe::ShippingRateCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ShippingRate) + params(params: T.any(::Stripe::ShippingRateCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ShippingRate) } def self.create(params = {}, opts = {}); end # Returns a list of your shipping rates. sig { - params(params: T.any(::Stripe::ShippingRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ShippingRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates an existing shipping rate object. sig { - params(shipping_rate_token: String, params: T.any(::Stripe::ShippingRateUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ShippingRate) + params(shipping_rate_token: String, params: T.any(::Stripe::ShippingRateUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ShippingRate) } def self.update(shipping_rate_token, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/sigma/scheduled_query_run.rbi b/rbi/stripe/resources/sigma/scheduled_query_run.rbi index 3debf549..d3009213 100644 --- a/rbi/stripe/resources/sigma/scheduled_query_run.rbi +++ b/rbi/stripe/resources/sigma/scheduled_query_run.rbi @@ -9,7 +9,7 @@ module Stripe # runs. The webhook contains a `ScheduledQueryRun` object, which you can use to # retrieve the query results. class ScheduledQueryRun < APIResource - class Error < Stripe::StripeObject + class Error < ::Stripe::StripeObject # Information about the run failure. sig { returns(String) } def message; end @@ -30,7 +30,7 @@ module Stripe sig { returns(T.nilable(Error)) } def error; end # The file object representing the results of the query. - sig { returns(T.nilable(Stripe::File)) } + sig { returns(T.nilable(::Stripe::File)) } def file; end # Unique identifier for the object. sig { returns(String) } @@ -55,7 +55,7 @@ module Stripe def title; end # Returns a list of scheduled query runs. sig { - params(params: T.any(::Stripe::Sigma::ScheduledQueryRunListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Sigma::ScheduledQueryRunListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/source.rbi b/rbi/stripe/resources/source.rbi index b03f8562..c1989d30 100644 --- a/rbi/stripe/resources/source.rbi +++ b/rbi/stripe/resources/source.rbi @@ -14,7 +14,7 @@ module Stripe # # Related guides: [Sources API](https://stripe.com/docs/sources) and [Sources & Customers](https://stripe.com/docs/sources/customers). class Source < APIResource - class AchCreditTransfer < Stripe::StripeObject + class AchCreditTransfer < ::Stripe::StripeObject # Attribute for field account_number sig { returns(T.nilable(String)) } def account_number; end @@ -46,7 +46,7 @@ module Stripe @field_remappings = {} end end - class AchDebit < Stripe::StripeObject + class AchDebit < ::Stripe::StripeObject # Attribute for field bank_name sig { returns(T.nilable(String)) } def bank_name; end @@ -72,7 +72,7 @@ module Stripe @field_remappings = {} end end - class AcssDebit < Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject # Attribute for field bank_address_city sig { returns(T.nilable(String)) } def bank_address_city; end @@ -110,7 +110,7 @@ module Stripe @field_remappings = {} end end - class Alipay < Stripe::StripeObject + class Alipay < ::Stripe::StripeObject # Attribute for field data_string sig { returns(T.nilable(String)) } def data_string; end @@ -127,7 +127,7 @@ module Stripe @field_remappings = {} end end - class AuBecsDebit < Stripe::StripeObject + class AuBecsDebit < ::Stripe::StripeObject # Attribute for field bsb_number sig { returns(T.nilable(String)) } def bsb_number; end @@ -144,7 +144,7 @@ module Stripe @field_remappings = {} end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject # Attribute for field bank_code sig { returns(T.nilable(String)) } def bank_code; end @@ -170,7 +170,7 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject + class Card < ::Stripe::StripeObject # Attribute for field address_line1_check sig { returns(T.nilable(String)) } def address_line1_check; end @@ -229,7 +229,7 @@ module Stripe @field_remappings = {} end end - class CardPresent < Stripe::StripeObject + class CardPresent < ::Stripe::StripeObject # Attribute for field application_cryptogram sig { returns(T.nilable(String)) } def application_cryptogram; end @@ -315,7 +315,7 @@ module Stripe @field_remappings = {} end end - class CodeVerification < Stripe::StripeObject + class CodeVerification < ::Stripe::StripeObject # The number of attempts remaining to authenticate the source object with a verification code. sig { returns(Integer) } def attempts_remaining; end @@ -329,7 +329,7 @@ module Stripe @field_remappings = {} end end - class Eps < Stripe::StripeObject + class Eps < ::Stripe::StripeObject # Attribute for field reference sig { returns(T.nilable(String)) } def reference; end @@ -343,7 +343,7 @@ module Stripe @field_remappings = {} end end - class Giropay < Stripe::StripeObject + class Giropay < ::Stripe::StripeObject # Attribute for field bank_code sig { returns(T.nilable(String)) } def bank_code; end @@ -363,7 +363,7 @@ module Stripe @field_remappings = {} end end - class Ideal < Stripe::StripeObject + class Ideal < ::Stripe::StripeObject # Attribute for field bank sig { returns(T.nilable(String)) } def bank; end @@ -383,7 +383,7 @@ module Stripe @field_remappings = {} end end - class Klarna < Stripe::StripeObject + class Klarna < ::Stripe::StripeObject # Attribute for field background_image_url sig { returns(T.nilable(String)) } def background_image_url; end @@ -469,7 +469,7 @@ module Stripe @field_remappings = {} end end - class Multibanco < Stripe::StripeObject + class Multibanco < ::Stripe::StripeObject # Attribute for field entity sig { returns(T.nilable(String)) } def entity; end @@ -507,8 +507,8 @@ module Stripe @field_remappings = {} end end - class Owner < Stripe::StripeObject - class Address < Stripe::StripeObject + class Owner < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -534,7 +534,7 @@ module Stripe @field_remappings = {} end end - class VerifiedAddress < Stripe::StripeObject + class VerifiedAddress < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -591,7 +591,7 @@ module Stripe @field_remappings = {} end end - class P24 < Stripe::StripeObject + class P24 < ::Stripe::StripeObject # Attribute for field reference sig { returns(T.nilable(String)) } def reference; end @@ -602,7 +602,7 @@ module Stripe @field_remappings = {} end end - class Receiver < Stripe::StripeObject + class Receiver < ::Stripe::StripeObject # The address of the receiver source. This is the value that should be communicated to the customer to send their funds to. sig { returns(T.nilable(String)) } def address; end @@ -628,7 +628,7 @@ module Stripe @field_remappings = {} end end - class Redirect < Stripe::StripeObject + class Redirect < ::Stripe::StripeObject # The failure reason for the redirect, either `user_abort` (the customer aborted or dropped out of the redirect flow), `declined` (the authentication failed or the transaction was declined), or `processing_error` (the redirect failed due to a technical error). Present only if the redirect status is `failed`. sig { returns(T.nilable(String)) } def failure_reason; end @@ -648,7 +648,7 @@ module Stripe @field_remappings = {} end end - class SepaCreditTransfer < Stripe::StripeObject + class SepaCreditTransfer < ::Stripe::StripeObject # Attribute for field bank_name sig { returns(T.nilable(String)) } def bank_name; end @@ -689,7 +689,7 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject # Attribute for field bank_code sig { returns(T.nilable(String)) } def bank_code; end @@ -718,7 +718,7 @@ module Stripe @field_remappings = {} end end - class Sofort < Stripe::StripeObject + class Sofort < ::Stripe::StripeObject # Attribute for field bank_code sig { returns(T.nilable(String)) } def bank_code; end @@ -747,8 +747,8 @@ module Stripe @field_remappings = {} end end - class SourceOrder < Stripe::StripeObject - class Item < Stripe::StripeObject + class SourceOrder < ::Stripe::StripeObject + class Item < ::Stripe::StripeObject # The amount (price) for this order item. sig { returns(T.nilable(Integer)) } def amount; end @@ -774,8 +774,8 @@ module Stripe @field_remappings = {} end end - class Shipping < Stripe::StripeObject - class Address < Stripe::StripeObject + class Shipping < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -845,7 +845,7 @@ module Stripe @field_remappings = {} end end - class ThreeDSecure < Stripe::StripeObject + class ThreeDSecure < ::Stripe::StripeObject # Attribute for field address_line1_check sig { returns(T.nilable(String)) } def address_line1_check; end @@ -913,7 +913,7 @@ module Stripe @field_remappings = {} end end - class Wechat < Stripe::StripeObject + class Wechat < ::Stripe::StripeObject # Attribute for field prepay_id sig { returns(T.nilable(String)) } def prepay_id; end @@ -1049,7 +1049,7 @@ module Stripe def wechat; end # Creates a new source object. sig { - params(params: T.any(::Stripe::SourceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Source) + params(params: T.any(::Stripe::SourceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Source) } def self.create(params = {}, opts = {}); end @@ -1057,19 +1057,19 @@ module Stripe # # This request accepts the metadata and owner as arguments. It is also possible to update type specific information for selected payment methods. Please refer to our [payment method guides](https://docs.stripe.com/docs/sources) for more detail. sig { - params(source: String, params: T.any(::Stripe::SourceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Source) + params(source: String, params: T.any(::Stripe::SourceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Source) } def self.update(source, params = {}, opts = {}); end # Verify a given source. sig { - params(params: T.any(::Stripe::SourceVerifyParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Source) + params(params: T.any(::Stripe::SourceVerifyParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Source) } def verify(params = {}, opts = {}); end # Verify a given source. sig { - params(source: String, params: T.any(::Stripe::SourceVerifyParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Source) + params(source: String, params: T.any(::Stripe::SourceVerifyParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Source) } def self.verify(source, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/source_mandate_notification.rbi b/rbi/stripe/resources/source_mandate_notification.rbi index 41fd56e5..fae37a02 100644 --- a/rbi/stripe/resources/source_mandate_notification.rbi +++ b/rbi/stripe/resources/source_mandate_notification.rbi @@ -7,7 +7,7 @@ module Stripe # a source mandate must be sent to the payer. They will trigger a webhook or # deliver an email to the customer. class SourceMandateNotification < APIResource - class AcssDebit < Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject # The statement descriptor associate with the debit. sig { returns(T.nilable(String)) } def statement_descriptor; end @@ -18,7 +18,7 @@ module Stripe @field_remappings = {} end end - class BacsDebit < Stripe::StripeObject + class BacsDebit < ::Stripe::StripeObject # Last 4 digits of the account number associated with the debit. sig { returns(T.nilable(String)) } def last4; end @@ -29,7 +29,7 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject # SEPA creditor ID. sig { returns(T.nilable(String)) } def creditor_identifier; end @@ -83,7 +83,7 @@ module Stripe # This newer API provides access to our latest features and payment method types. # # Related guides: [Sources API](https://stripe.com/docs/sources) and [Sources & Customers](https://stripe.com/docs/sources/customers). - sig { returns(Stripe::Source) } + sig { returns(::Stripe::Source) } def source; end # The status of the mandate notification. Valid statuses are `pending` or `submitted`. sig { returns(String) } diff --git a/rbi/stripe/resources/source_transaction.rbi b/rbi/stripe/resources/source_transaction.rbi index 47dde315..457d77fa 100644 --- a/rbi/stripe/resources/source_transaction.rbi +++ b/rbi/stripe/resources/source_transaction.rbi @@ -8,7 +8,7 @@ module Stripe # multiple transactions. As such, sources can have multiple associated # transactions. class SourceTransaction < StripeObject - class AchCreditTransfer < Stripe::StripeObject + class AchCreditTransfer < ::Stripe::StripeObject # Customer data associated with the transfer. sig { returns(T.nilable(String)) } def customer_data; end @@ -28,7 +28,7 @@ module Stripe @field_remappings = {} end end - class ChfCreditTransfer < Stripe::StripeObject + class ChfCreditTransfer < ::Stripe::StripeObject # Reference associated with the transfer. sig { returns(T.nilable(String)) } def reference; end @@ -51,7 +51,7 @@ module Stripe @field_remappings = {} end end - class GbpCreditTransfer < Stripe::StripeObject + class GbpCreditTransfer < ::Stripe::StripeObject # Bank account fingerprint associated with the Stripe owned bank account receiving the transfer. sig { returns(T.nilable(String)) } def fingerprint; end @@ -80,7 +80,7 @@ module Stripe @field_remappings = {} end end - class PaperCheck < Stripe::StripeObject + class PaperCheck < ::Stripe::StripeObject # Time at which the deposited funds will be available for use. Measured in seconds since the Unix epoch. sig { returns(T.nilable(String)) } def available_at; end @@ -94,7 +94,7 @@ module Stripe @field_remappings = {} end end - class SepaCreditTransfer < Stripe::StripeObject + class SepaCreditTransfer < ::Stripe::StripeObject # Reference associated with the transfer. sig { returns(T.nilable(String)) } def reference; end diff --git a/rbi/stripe/resources/subscription.rbi b/rbi/stripe/resources/subscription.rbi index b44ff773..b3d65aba 100644 --- a/rbi/stripe/resources/subscription.rbi +++ b/rbi/stripe/resources/subscription.rbi @@ -7,10 +7,10 @@ module Stripe # # Related guide: [Creating subscriptions](https://stripe.com/docs/billing/subscriptions/creating) class Subscription < APIResource - class AutomaticTax < Stripe::StripeObject - class Liability < Stripe::StripeObject + class AutomaticTax < ::Stripe::StripeObject + class Liability < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -38,7 +38,7 @@ module Stripe @field_remappings = {} end end - class BillingCycleAnchorConfig < Stripe::StripeObject + class BillingCycleAnchorConfig < ::Stripe::StripeObject # The day of the month of the billing_cycle_anchor. sig { returns(Integer) } def day_of_month; end @@ -61,8 +61,8 @@ module Stripe @field_remappings = {} end end - class BillingMode < Stripe::StripeObject - class Flexible < Stripe::StripeObject + class BillingMode < ::Stripe::StripeObject + class Flexible < ::Stripe::StripeObject # Controls how invoices and invoice items display proration amounts and discount amounts. sig { returns(T.nilable(String)) } def proration_discounts; end @@ -89,7 +89,7 @@ module Stripe @field_remappings = {} end end - class BillingThresholds < Stripe::StripeObject + class BillingThresholds < ::Stripe::StripeObject # Monetary threshold that triggers the subscription to create an invoice sig { returns(T.nilable(Integer)) } def amount_gte; end @@ -103,7 +103,7 @@ module Stripe @field_remappings = {} end end - class CancellationDetails < Stripe::StripeObject + class CancellationDetails < ::Stripe::StripeObject # Additional comments about why the user canceled the subscription, if the subscription was canceled explicitly by the user. sig { returns(T.nilable(String)) } def comment; end @@ -120,10 +120,10 @@ module Stripe @field_remappings = {} end end - class InvoiceSettings < Stripe::StripeObject - class Issuer < Stripe::StripeObject + class InvoiceSettings < ::Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -136,7 +136,7 @@ module Stripe end end # The account tax IDs associated with the subscription. Will be set on invoices generated by the subscription. - sig { returns(T.nilable(T::Array[T.any(String, Stripe::TaxId)])) } + sig { returns(T.nilable(T::Array[T.any(String, ::Stripe::TaxId)])) } def account_tax_ids; end # Attribute for field issuer sig { returns(Issuer) } @@ -148,7 +148,7 @@ module Stripe @field_remappings = {} end end - class PauseCollection < Stripe::StripeObject + class PauseCollection < ::Stripe::StripeObject # The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`. sig { returns(String) } def behavior; end @@ -162,10 +162,10 @@ module Stripe @field_remappings = {} end end - class PaymentSettings < Stripe::StripeObject - class PaymentMethodOptions < Stripe::StripeObject - class AcssDebit < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class PaymentSettings < ::Stripe::StripeObject + class PaymentMethodOptions < ::Stripe::StripeObject + class AcssDebit < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Transaction type of the mandate. sig { returns(T.nilable(String)) } def transaction_type; end @@ -189,7 +189,7 @@ module Stripe @field_remappings = {} end end - class Bancontact < Stripe::StripeObject + class Bancontact < ::Stripe::StripeObject # Preferred language of the Bancontact authorization page that the customer is redirected to. sig { returns(String) } def preferred_language; end @@ -200,8 +200,8 @@ module Stripe @field_remappings = {} end end - class Card < Stripe::StripeObject - class MandateOptions < Stripe::StripeObject + class Card < ::Stripe::StripeObject + class MandateOptions < ::Stripe::StripeObject # Amount to be charged for future payments. sig { returns(T.nilable(Integer)) } def amount; end @@ -234,9 +234,9 @@ module Stripe @field_remappings = {} end end - class CustomerBalance < Stripe::StripeObject - class BankTransfer < Stripe::StripeObject - class EuBankTransfer < Stripe::StripeObject + class CustomerBalance < ::Stripe::StripeObject + class BankTransfer < ::Stripe::StripeObject + class EuBankTransfer < ::Stripe::StripeObject # The desired country code of the bank account information. Permitted values include: `BE`, `DE`, `ES`, `FR`, `IE`, or `NL`. sig { returns(String) } def country; end @@ -273,7 +273,7 @@ module Stripe @field_remappings = {} end end - class Konbini < Stripe::StripeObject + class Konbini < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -281,7 +281,7 @@ module Stripe @field_remappings = {} end end - class SepaDebit < Stripe::StripeObject + class SepaDebit < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -289,9 +289,9 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject - class FinancialConnections < Stripe::StripeObject - class Filters < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject + class FinancialConnections < ::Stripe::StripeObject + class Filters < ::Stripe::StripeObject # The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. sig { returns(T.nilable(T::Array[String])) } def account_subcategories; end @@ -383,7 +383,7 @@ module Stripe @field_remappings = {} end end - class PendingInvoiceItemInterval < Stripe::StripeObject + class PendingInvoiceItemInterval < ::Stripe::StripeObject # Specifies invoicing frequency. Either `day`, `week`, `month` or `year`. sig { returns(String) } def interval; end @@ -397,7 +397,7 @@ module Stripe @field_remappings = {} end end - class PendingUpdate < Stripe::StripeObject + class PendingUpdate < ::Stripe::StripeObject # If the update is applied, determines the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. The timestamp is in UTC format. sig { returns(T.nilable(Integer)) } def billing_cycle_anchor; end @@ -405,7 +405,7 @@ module Stripe sig { returns(Integer) } def expires_at; end # List of subscription items, each with an attached plan, that will be set if the update is applied. - sig { returns(T.nilable(T::Array[Stripe::SubscriptionItem])) } + sig { returns(T.nilable(T::Array[::Stripe::SubscriptionItem])) } def subscription_items; end # Unix timestamp representing the end of the trial period the customer will get before being charged for the first time, if the update is applied. sig { returns(T.nilable(Integer)) } @@ -420,12 +420,12 @@ module Stripe @field_remappings = {} end end - class TransferData < Stripe::StripeObject + class TransferData < ::Stripe::StripeObject # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Float)) } def amount_percent; end # The account where funds from the payment will be transferred to upon payment success. - sig { returns(T.any(String, Stripe::Account)) } + sig { returns(T.any(String, ::Stripe::Account)) } def destination; end def self.inner_class_types @inner_class_types = {} @@ -434,8 +434,8 @@ module Stripe @field_remappings = {} end end - class TrialSettings < Stripe::StripeObject - class EndBehavior < Stripe::StripeObject + class TrialSettings < ::Stripe::StripeObject + class EndBehavior < ::Stripe::StripeObject # Indicates how the subscription should change when the trial ends if the user did not provide a payment method. sig { returns(String) } def missing_payment_method; end @@ -457,7 +457,7 @@ module Stripe end end # ID of the Connect Application that created the subscription. - sig { returns(T.nilable(T.any(String, Stripe::Application))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Application))) } def application; end # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the application owner's Stripe account. sig { returns(T.nilable(Float)) } @@ -499,27 +499,27 @@ module Stripe sig { returns(String) } def currency; end # ID of the customer who owns the subscription. - sig { returns(T.any(String, Stripe::Customer)) } + sig { returns(T.any(String, ::Stripe::Customer)) } def customer; end # Number of days a customer has to pay invoices generated by this subscription. This value will be `null` for subscriptions where `collection_method=charge_automatically`. sig { returns(T.nilable(Integer)) } def days_until_due; end # ID of the default payment method for the subscription. It must belong to the customer associated with the subscription. This takes precedence over `default_source`. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://stripe.com/docs/api/customers/object#customer_object-default_source). - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def default_payment_method; end # ID of the default payment source for the subscription. It must belong to the customer associated with the subscription and be in a chargeable state. If `default_payment_method` is also set, `default_payment_method` will take precedence. If neither are set, invoices will use the customer's [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method) or [default_source](https://stripe.com/docs/api/customers/object#customer_object-default_source). sig { - returns(T.nilable(T.any(String, T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source)))) + returns(T.nilable(T.any(String, T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source)))) } def default_source; end # The tax rates that will apply to any subscription item that does not have `tax_rates` set. Invoices created will have their `default_tax_rates` populated from the subscription. - sig { returns(T.nilable(T::Array[Stripe::TaxRate])) } + sig { returns(T.nilable(T::Array[::Stripe::TaxRate])) } def default_tax_rates; end # The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. sig { returns(T.nilable(String)) } def description; end # The discounts applied to the subscription. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount. - sig { returns(T::Array[T.any(String, Stripe::Discount)]) } + sig { returns(T::Array[T.any(String, ::Stripe::Discount)]) } def discounts; end # If the subscription has ended, the date the subscription ended. sig { returns(T.nilable(Integer)) } @@ -531,10 +531,10 @@ module Stripe sig { returns(InvoiceSettings) } def invoice_settings; end # List of subscription items, each with an attached price. - sig { returns(Stripe::ListObject) } + sig { returns(::Stripe::ListObject) } def items; end # The most recent invoice this subscription has generated. - sig { returns(T.nilable(T.any(String, Stripe::Invoice))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Invoice))) } def latest_invoice; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -549,7 +549,7 @@ module Stripe sig { returns(String) } def object; end # The account (if any) the charge was made on behalf of for charges associated with this subscription. See the [Connect documentation](https://stripe.com/docs/connect/subscriptions#on-behalf-of) for details. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def on_behalf_of; end # If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment). sig { returns(T.nilable(PauseCollection)) } @@ -561,13 +561,13 @@ module Stripe sig { returns(T.nilable(PendingInvoiceItemInterval)) } def pending_invoice_item_interval; end # You can use this [SetupIntent](https://stripe.com/docs/api/setup_intents) to collect user authentication when creating a subscription without immediate payment or updating a subscription's payment method, allowing you to optimize for off-session payments. Learn more in the [SCA Migration Guide](https://stripe.com/docs/billing/migration/strong-customer-authentication#scenario-2). - sig { returns(T.nilable(T.any(String, Stripe::SetupIntent))) } + sig { returns(T.nilable(T.any(String, ::Stripe::SetupIntent))) } def pending_setup_intent; end # If specified, [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates) that will be applied to the subscription once the `latest_invoice` has been paid. sig { returns(T.nilable(PendingUpdate)) } def pending_update; end # The schedule attached to the subscription - sig { returns(T.nilable(T.any(String, Stripe::SubscriptionSchedule))) } + sig { returns(T.nilable(T.any(String, ::Stripe::SubscriptionSchedule))) } def schedule; end # Date when the subscription was first created. The date might differ from the `created` date due to backdating. sig { returns(Integer) } @@ -586,7 +586,7 @@ module Stripe sig { returns(String) } def status; end # ID of the test clock this subscription belongs to. - sig { returns(T.nilable(T.any(String, Stripe::TestHelpers::TestClock))) } + sig { returns(T.nilable(T.any(String, ::Stripe::TestHelpers::TestClock))) } def test_clock; end # The account (if any) the subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices. sig { returns(T.nilable(TransferData)) } @@ -606,7 +606,7 @@ module Stripe # # By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. sig { - params(params: T.any(::Stripe::SubscriptionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(params: T.any(::Stripe::SubscriptionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def cancel(params = {}, opts = {}); end @@ -616,7 +616,7 @@ module Stripe # # By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. sig { - params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def self.cancel(subscription_exposed_id, params = {}, opts = {}); end @@ -628,59 +628,59 @@ module Stripe # To start subscriptions where the first invoice always begins in a draft status, use [subscription schedules](https://docs.stripe.com/docs/billing/subscriptions/subscription-schedules#managing) instead. # Schedules provide the flexibility to model more complex billing configurations that change over time. sig { - params(params: T.any(::Stripe::SubscriptionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(params: T.any(::Stripe::SubscriptionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def self.create(params = {}, opts = {}); end # Removes the currently applied discount on a subscription. sig { - params(params: T.any(::Stripe::SubscriptionDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Discount) + params(params: T.any(::Stripe::SubscriptionDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Discount) } def delete_discount(params = {}, opts = {}); end # Removes the currently applied discount on a subscription. sig { - params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Discount) + params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Discount) } def self.delete_discount(subscription_exposed_id, params = {}, opts = {}); end # By default, returns a list of subscriptions that have not been canceled. In order to list canceled subscriptions, specify status=canceled. sig { - params(params: T.any(::Stripe::SubscriptionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::SubscriptionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Upgrade the billing_mode of an existing subscription. sig { - params(params: T.any(::Stripe::SubscriptionMigrateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(params: T.any(::Stripe::SubscriptionMigrateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def migrate(params = {}, opts = {}); end # Upgrade the billing_mode of an existing subscription. sig { - params(subscription: String, params: T.any(::Stripe::SubscriptionMigrateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(subscription: String, params: T.any(::Stripe::SubscriptionMigrateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def self.migrate(subscription, params = {}, opts = {}); end # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. sig { - params(params: T.any(::Stripe::SubscriptionResumeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(params: T.any(::Stripe::SubscriptionResumeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def resume(params = {}, opts = {}); end # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. sig { - params(subscription: String, params: T.any(::Stripe::SubscriptionResumeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(subscription: String, params: T.any(::Stripe::SubscriptionResumeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def self.resume(subscription, params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::SubscriptionSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::SubscriptionSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def self.search(params = {}, opts = {}); end sig { - params(params: T.any(::Stripe::SubscriptionSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::SubscriptionSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped, blk: T.untyped).returns(::Stripe::SearchResultObject) } def self.search_auto_paging_each(params = {}, opts = {}, &blk); end @@ -706,7 +706,7 @@ module Stripe # # Updating the quantity on a subscription many times in an hour may result in [rate limiting. If you need to bill for a frequently changing quantity, consider integrating usage-based billing](https://docs.stripe.com/docs/rate-limits) instead. sig { - params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def self.update(subscription_exposed_id, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/subscription_item.rbi b/rbi/stripe/resources/subscription_item.rbi index e6ac0f90..81cdc852 100644 --- a/rbi/stripe/resources/subscription_item.rbi +++ b/rbi/stripe/resources/subscription_item.rbi @@ -6,7 +6,7 @@ module Stripe # Subscription items allow you to create customer subscriptions with more than # one plan, making it easy to represent complex billing relationships. class SubscriptionItem < APIResource - class BillingThresholds < Stripe::StripeObject + class BillingThresholds < ::Stripe::StripeObject # Usage threshold that triggers the subscription to create an invoice sig { returns(T.nilable(Integer)) } def usage_gte; end @@ -30,7 +30,7 @@ module Stripe sig { returns(Integer) } def current_period_start; end # The discounts applied to the subscription item. Subscription item discounts are applied before subscription discounts. Use `expand[]=discounts` to expand each discount. - sig { returns(T::Array[T.any(String, Stripe::Discount)]) } + sig { returns(T::Array[T.any(String, ::Stripe::Discount)]) } def discounts; end # Unique identifier for the object. sig { returns(String) } @@ -49,7 +49,7 @@ module Stripe # For example, you might have a single "gold" product that has plans for $10/month, $100/year, €9/month, and €90/year. # # Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription) and more about [products and prices](https://stripe.com/docs/products-prices/overview). - sig { returns(Stripe::Plan) } + sig { returns(::Stripe::Plan) } def plan; end # Prices define the unit cost, currency, and (optional) billing cycle for both recurring and one-time purchases of products. # [Products](https://stripe.com/docs/api#products) help you track inventory or provisioning, and prices help you track payment terms. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices. This approach lets you change prices without having to change your provisioning scheme. @@ -57,7 +57,7 @@ module Stripe # For example, you might have a single "gold" product that has prices for $10/month, $100/year, and €9 once. # # Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription), [create an invoice](https://stripe.com/docs/billing/invoices/create), and more about [products and prices](https://stripe.com/docs/products-prices/overview). - sig { returns(Stripe::Price) } + sig { returns(::Stripe::Price) } def price; end # The [quantity](https://stripe.com/docs/subscriptions/quantities) of the plan to which the customer should be subscribed. sig { returns(T.nilable(Integer)) } @@ -66,38 +66,38 @@ module Stripe sig { returns(String) } def subscription; end # The tax rates which apply to this `subscription_item`. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`. - sig { returns(T.nilable(T::Array[Stripe::TaxRate])) } + sig { returns(T.nilable(T::Array[::Stripe::TaxRate])) } def tax_rates; end # Always true for a deleted object sig { returns(T.nilable(T::Boolean)) } def deleted; end # Adds a new item to an existing subscription. No existing items will be changed or replaced. sig { - params(params: T.any(::Stripe::SubscriptionItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionItem) + params(params: T.any(::Stripe::SubscriptionItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionItem) } def self.create(params = {}, opts = {}); end # Deletes an item from the subscription. Removing a subscription item from a subscription will not cancel the subscription. sig { - params(item: String, params: T.any(::Stripe::SubscriptionItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionItem) + params(item: String, params: T.any(::Stripe::SubscriptionItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionItem) } def self.delete(item, params = {}, opts = {}); end # Deletes an item from the subscription. Removing a subscription item from a subscription will not cancel the subscription. sig { - params(params: T.any(::Stripe::SubscriptionItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionItem) + params(params: T.any(::Stripe::SubscriptionItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionItem) } def delete(params = {}, opts = {}); end # Returns a list of your subscription items for a given subscription. sig { - params(params: T.any(::Stripe::SubscriptionItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::SubscriptionItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the plan or quantity of an item on a current subscription. sig { - params(item: String, params: T.any(::Stripe::SubscriptionItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionItem) + params(item: String, params: T.any(::Stripe::SubscriptionItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionItem) } def self.update(item, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/subscription_schedule.rbi b/rbi/stripe/resources/subscription_schedule.rbi index a1608ec0..069a175e 100644 --- a/rbi/stripe/resources/subscription_schedule.rbi +++ b/rbi/stripe/resources/subscription_schedule.rbi @@ -7,8 +7,8 @@ module Stripe # # Related guide: [Subscription schedules](https://stripe.com/docs/billing/subscriptions/subscription-schedules) class SubscriptionSchedule < APIResource - class BillingMode < Stripe::StripeObject - class Flexible < Stripe::StripeObject + class BillingMode < ::Stripe::StripeObject + class Flexible < ::Stripe::StripeObject # Controls how invoices and invoice items display proration amounts and discount amounts. sig { returns(T.nilable(String)) } def proration_discounts; end @@ -35,7 +35,7 @@ module Stripe @field_remappings = {} end end - class CurrentPhase < Stripe::StripeObject + class CurrentPhase < ::Stripe::StripeObject # The end of this phase of the subscription schedule. sig { returns(Integer) } def end_date; end @@ -49,11 +49,11 @@ module Stripe @field_remappings = {} end end - class DefaultSettings < Stripe::StripeObject - class AutomaticTax < Stripe::StripeObject - class Liability < Stripe::StripeObject + class DefaultSettings < ::Stripe::StripeObject + class AutomaticTax < ::Stripe::StripeObject + class Liability < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -81,7 +81,7 @@ module Stripe @field_remappings = {} end end - class BillingThresholds < Stripe::StripeObject + class BillingThresholds < ::Stripe::StripeObject # Monetary threshold that triggers the subscription to create an invoice sig { returns(T.nilable(Integer)) } def amount_gte; end @@ -95,10 +95,10 @@ module Stripe @field_remappings = {} end end - class InvoiceSettings < Stripe::StripeObject - class Issuer < Stripe::StripeObject + class InvoiceSettings < ::Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -111,7 +111,7 @@ module Stripe end end # The account tax IDs associated with the subscription schedule. Will be set on invoices generated by the subscription schedule. - sig { returns(T.nilable(T::Array[T.any(String, Stripe::TaxId)])) } + sig { returns(T.nilable(T::Array[T.any(String, ::Stripe::TaxId)])) } def account_tax_ids; end # Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`. sig { returns(T.nilable(Integer)) } @@ -126,12 +126,12 @@ module Stripe @field_remappings = {} end end - class TransferData < Stripe::StripeObject + class TransferData < ::Stripe::StripeObject # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Float)) } def amount_percent; end # The account where funds from the payment will be transferred to upon payment success. - sig { returns(T.any(String, Stripe::Account)) } + sig { returns(T.any(String, ::Stripe::Account)) } def destination; end def self.inner_class_types @inner_class_types = {} @@ -156,7 +156,7 @@ module Stripe sig { returns(T.nilable(String)) } def collection_method; end # ID of the default payment method for the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def default_payment_method; end # Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. sig { returns(T.nilable(String)) } @@ -165,7 +165,7 @@ module Stripe sig { returns(InvoiceSettings) } def invoice_settings; end # The account (if any) the charge was made on behalf of for charges associated with the schedule's subscription. See the Connect documentation for details. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def on_behalf_of; end # The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices. sig { returns(T.nilable(TransferData)) } @@ -182,17 +182,17 @@ module Stripe @field_remappings = {} end end - class Phase < Stripe::StripeObject - class AddInvoiceItem < Stripe::StripeObject - class Discount < Stripe::StripeObject + class Phase < ::Stripe::StripeObject + class AddInvoiceItem < ::Stripe::StripeObject + class Discount < ::Stripe::StripeObject # ID of the coupon to create a new discount for. - sig { returns(T.nilable(T.any(String, Stripe::Coupon))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Coupon))) } def coupon; end # ID of an existing discount on the object (or one of its ancestors) to reuse. - sig { returns(T.nilable(T.any(String, Stripe::Discount))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Discount))) } def discount; end # ID of the promotion code to create a new discount for. - sig { returns(T.nilable(T.any(String, Stripe::PromotionCode))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PromotionCode))) } def promotion_code; end def self.inner_class_types @inner_class_types = {} @@ -201,8 +201,8 @@ module Stripe @field_remappings = {} end end - class Period < Stripe::StripeObject - class End < Stripe::StripeObject + class Period < ::Stripe::StripeObject + class End < ::Stripe::StripeObject # A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -216,7 +216,7 @@ module Stripe @field_remappings = {} end end - class Start < Stripe::StripeObject + class Start < ::Stripe::StripeObject # A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`. sig { returns(T.nilable(Integer)) } def timestamp; end @@ -253,13 +253,13 @@ module Stripe sig { returns(Period) } def period; end # ID of the price used to generate the invoice item. - sig { returns(T.any(String, Stripe::Price)) } + sig { returns(T.any(String, ::Stripe::Price)) } def price; end # The quantity of the invoice item. sig { returns(T.nilable(Integer)) } def quantity; end # The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item. - sig { returns(T.nilable(T::Array[Stripe::TaxRate])) } + sig { returns(T.nilable(T::Array[::Stripe::TaxRate])) } def tax_rates; end def self.inner_class_types @inner_class_types = {discounts: Discount, period: Period} @@ -268,10 +268,10 @@ module Stripe @field_remappings = {} end end - class AutomaticTax < Stripe::StripeObject - class Liability < Stripe::StripeObject + class AutomaticTax < ::Stripe::StripeObject + class Liability < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -299,7 +299,7 @@ module Stripe @field_remappings = {} end end - class BillingThresholds < Stripe::StripeObject + class BillingThresholds < ::Stripe::StripeObject # Monetary threshold that triggers the subscription to create an invoice sig { returns(T.nilable(Integer)) } def amount_gte; end @@ -313,15 +313,15 @@ module Stripe @field_remappings = {} end end - class Discount < Stripe::StripeObject + class Discount < ::Stripe::StripeObject # ID of the coupon to create a new discount for. - sig { returns(T.nilable(T.any(String, Stripe::Coupon))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Coupon))) } def coupon; end # ID of an existing discount on the object (or one of its ancestors) to reuse. - sig { returns(T.nilable(T.any(String, Stripe::Discount))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Discount))) } def discount; end # ID of the promotion code to create a new discount for. - sig { returns(T.nilable(T.any(String, Stripe::PromotionCode))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PromotionCode))) } def promotion_code; end def self.inner_class_types @inner_class_types = {} @@ -330,10 +330,10 @@ module Stripe @field_remappings = {} end end - class InvoiceSettings < Stripe::StripeObject - class Issuer < Stripe::StripeObject + class InvoiceSettings < ::Stripe::StripeObject + class Issuer < ::Stripe::StripeObject # The connected account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # Type of the account referenced. sig { returns(String) } @@ -346,7 +346,7 @@ module Stripe end end # The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule. - sig { returns(T.nilable(T::Array[T.any(String, Stripe::TaxId)])) } + sig { returns(T.nilable(T::Array[T.any(String, ::Stripe::TaxId)])) } def account_tax_ids; end # Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`. sig { returns(T.nilable(Integer)) } @@ -361,8 +361,8 @@ module Stripe @field_remappings = {} end end - class Item < Stripe::StripeObject - class BillingThresholds < Stripe::StripeObject + class Item < ::Stripe::StripeObject + class BillingThresholds < ::Stripe::StripeObject # Usage threshold that triggers the subscription to create an invoice sig { returns(T.nilable(Integer)) } def usage_gte; end @@ -373,15 +373,15 @@ module Stripe @field_remappings = {} end end - class Discount < Stripe::StripeObject + class Discount < ::Stripe::StripeObject # ID of the coupon to create a new discount for. - sig { returns(T.nilable(T.any(String, Stripe::Coupon))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Coupon))) } def coupon; end # ID of an existing discount on the object (or one of its ancestors) to reuse. - sig { returns(T.nilable(T.any(String, Stripe::Discount))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Discount))) } def discount; end # ID of the promotion code to create a new discount for. - sig { returns(T.nilable(T.any(String, Stripe::PromotionCode))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PromotionCode))) } def promotion_code; end def self.inner_class_types @inner_class_types = {} @@ -400,16 +400,16 @@ module Stripe sig { returns(T.nilable(T::Hash[String, String])) } def metadata; end # ID of the plan to which the customer should be subscribed. - sig { returns(T.any(String, Stripe::Plan)) } + sig { returns(T.any(String, ::Stripe::Plan)) } def plan; end # ID of the price to which the customer should be subscribed. - sig { returns(T.any(String, Stripe::Price)) } + sig { returns(T.any(String, ::Stripe::Price)) } def price; end # Quantity of the plan to which the customer should be subscribed. sig { returns(T.nilable(Integer)) } def quantity; end # The tax rates which apply to this `phase_item`. When set, the `default_tax_rates` on the phase do not apply to this `phase_item`. - sig { returns(T.nilable(T::Array[Stripe::TaxRate])) } + sig { returns(T.nilable(T::Array[::Stripe::TaxRate])) } def tax_rates; end def self.inner_class_types @inner_class_types = {billing_thresholds: BillingThresholds, discounts: Discount} @@ -418,12 +418,12 @@ module Stripe @field_remappings = {} end end - class TransferData < Stripe::StripeObject + class TransferData < ::Stripe::StripeObject # A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination. sig { returns(T.nilable(Float)) } def amount_percent; end # The account where funds from the payment will be transferred to upon payment success. - sig { returns(T.any(String, Stripe::Account)) } + sig { returns(T.any(String, ::Stripe::Account)) } def destination; end def self.inner_class_types @inner_class_types = {} @@ -454,10 +454,10 @@ module Stripe sig { returns(String) } def currency; end # ID of the default payment method for the subscription schedule. It must belong to the customer associated with the subscription schedule. If not set, invoices will use the default payment method in the customer's invoice settings. - sig { returns(T.nilable(T.any(String, Stripe::PaymentMethod))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentMethod))) } def default_payment_method; end # The default tax rates to apply to the subscription during this phase of the subscription schedule. - sig { returns(T.nilable(T::Array[Stripe::TaxRate])) } + sig { returns(T.nilable(T::Array[::Stripe::TaxRate])) } def default_tax_rates; end # Subscription description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. sig { returns(T.nilable(String)) } @@ -478,7 +478,7 @@ module Stripe sig { returns(T.nilable(T::Hash[String, String])) } def metadata; end # The account (if any) the charge was made on behalf of for charges associated with the schedule's subscription. See the Connect documentation for details. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def on_behalf_of; end # When transitioning phases, controls how prorations are handled (if any). Possible values are `create_prorations`, `none`, and `always_invoice`. sig { returns(String) } @@ -508,7 +508,7 @@ module Stripe end end # ID of the Connect Application that created the schedule. - sig { returns(T.nilable(T.any(String, Stripe::Application))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Application))) } def application; end # The billing mode of the subscription. sig { returns(BillingMode) } @@ -526,7 +526,7 @@ module Stripe sig { returns(T.nilable(CurrentPhase)) } def current_phase; end # ID of the customer who owns the subscription schedule. - sig { returns(T.any(String, Stripe::Customer)) } + sig { returns(T.any(String, ::Stripe::Customer)) } def customer; end # Attribute for field default_settings sig { returns(DefaultSettings) } @@ -559,50 +559,50 @@ module Stripe sig { returns(String) } def status; end # ID of the subscription managed by the subscription schedule. - sig { returns(T.nilable(T.any(String, Stripe::Subscription))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Subscription))) } def subscription; end # ID of the test clock this subscription schedule belongs to. - sig { returns(T.nilable(T.any(String, Stripe::TestHelpers::TestClock))) } + sig { returns(T.nilable(T.any(String, ::Stripe::TestHelpers::TestClock))) } def test_clock; end # Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be canceled if its status is not_started or active. sig { - params(params: T.any(::Stripe::SubscriptionScheduleCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(params: T.any(::Stripe::SubscriptionScheduleCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionSchedule) } def cancel(params = {}, opts = {}); end # Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be canceled if its status is not_started or active. sig { - params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionSchedule) } def self.cancel(schedule, params = {}, opts = {}); end # Creates a new subscription schedule object. Each customer can have up to 500 active or scheduled subscriptions. sig { - params(params: T.any(::Stripe::SubscriptionScheduleCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(params: T.any(::Stripe::SubscriptionScheduleCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionSchedule) } def self.create(params = {}, opts = {}); end # Retrieves the list of your subscription schedules. sig { - params(params: T.any(::Stripe::SubscriptionScheduleListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::SubscriptionScheduleListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Releases the subscription schedule immediately, which will stop scheduling of its phases, but leave any existing subscription in place. A schedule can only be released if its status is not_started or active. If the subscription schedule is currently associated with a subscription, releasing it will remove its subscription property and set the subscription's ID to the released_subscription property. sig { - params(params: T.any(::Stripe::SubscriptionScheduleReleaseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(params: T.any(::Stripe::SubscriptionScheduleReleaseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionSchedule) } def release(params = {}, opts = {}); end # Releases the subscription schedule immediately, which will stop scheduling of its phases, but leave any existing subscription in place. A schedule can only be released if its status is not_started or active. If the subscription schedule is currently associated with a subscription, releasing it will remove its subscription property and set the subscription's ID to the released_subscription property. sig { - params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleReleaseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleReleaseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionSchedule) } def self.release(schedule, params = {}, opts = {}); end # Updates an existing subscription schedule. sig { - params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionSchedule) } def self.update(schedule, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/tax/calculation.rbi b/rbi/stripe/resources/tax/calculation.rbi index edd1bd6c..13546b4e 100644 --- a/rbi/stripe/resources/tax/calculation.rbi +++ b/rbi/stripe/resources/tax/calculation.rbi @@ -8,8 +8,8 @@ module Stripe # # Related guide: [Calculate tax in your custom payment flow](https://stripe.com/docs/tax/custom) class Calculation < APIResource - class CustomerDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class CustomerDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -35,7 +35,7 @@ module Stripe @field_remappings = {} end end - class TaxId < Stripe::StripeObject + class TaxId < ::Stripe::StripeObject # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` sig { returns(String) } def type; end @@ -71,8 +71,8 @@ module Stripe @field_remappings = {} end end - class ShipFromDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class ShipFromDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -108,9 +108,9 @@ module Stripe @field_remappings = {} end end - class ShippingCost < Stripe::StripeObject - class TaxBreakdown < Stripe::StripeObject - class Jurisdiction < Stripe::StripeObject + class ShippingCost < ::Stripe::StripeObject + class TaxBreakdown < ::Stripe::StripeObject + class Jurisdiction < ::Stripe::StripeObject # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). sig { returns(String) } def country; end @@ -130,7 +130,7 @@ module Stripe @field_remappings = {} end end - class TaxRateDetails < Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject # A localized display name for tax type, intended to be human-readable. For example, "Local Sales and Use Tax", "Value-added tax (VAT)", or "Umsatzsteuer (USt.)". sig { returns(String) } def display_name; end @@ -197,9 +197,9 @@ module Stripe @field_remappings = {} end end - class TaxBreakdown < Stripe::StripeObject - class TaxRateDetails < Stripe::StripeObject - class FlatAmount < Stripe::StripeObject + class TaxBreakdown < ::Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject + class FlatAmount < ::Stripe::StripeObject # Amount of the tax when the `rate_type` is `flat_amount`. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). sig { returns(Integer) } def amount; end @@ -279,7 +279,7 @@ module Stripe sig { returns(T.nilable(String)) } def id; end # The list of items the customer is purchasing. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def line_items; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -307,19 +307,19 @@ module Stripe def tax_date; end # Calculates tax based on the input and returns a Tax Calculation object. sig { - params(params: T.any(::Stripe::Tax::CalculationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Calculation) + params(params: T.any(::Stripe::Tax::CalculationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Calculation) } def self.create(params = {}, opts = {}); end # Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired. sig { - params(params: T.any(::Stripe::Tax::CalculationListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Tax::CalculationListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list_line_items(params = {}, opts = {}); end # Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired. sig { - params(calculation: String, params: T.any(::Stripe::Tax::CalculationListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(calculation: String, params: T.any(::Stripe::Tax::CalculationListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list_line_items(calculation, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/tax/calculation_line_item.rbi b/rbi/stripe/resources/tax/calculation_line_item.rbi index 3aba743a..00b51c11 100644 --- a/rbi/stripe/resources/tax/calculation_line_item.rbi +++ b/rbi/stripe/resources/tax/calculation_line_item.rbi @@ -5,8 +5,8 @@ module Stripe module Tax class CalculationLineItem < APIResource - class TaxBreakdown < Stripe::StripeObject - class Jurisdiction < Stripe::StripeObject + class TaxBreakdown < ::Stripe::StripeObject + class Jurisdiction < ::Stripe::StripeObject # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). sig { returns(String) } def country; end @@ -26,7 +26,7 @@ module Stripe @field_remappings = {} end end - class TaxRateDetails < Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject # A localized display name for tax type, intended to be human-readable. For example, "Local Sales and Use Tax", "Value-added tax (VAT)", or "Umsatzsteuer (USt.)". sig { returns(String) } def display_name; end diff --git a/rbi/stripe/resources/tax/registration.rbi b/rbi/stripe/resources/tax/registration.rbi index ebaf17d6..7b0aa6b9 100644 --- a/rbi/stripe/resources/tax/registration.rbi +++ b/rbi/stripe/resources/tax/registration.rbi @@ -10,9 +10,9 @@ module Stripe # # Related guide: [Using the Registrations API](https://stripe.com/docs/tax/registrations-api) class Registration < APIResource - class CountryOptions < Stripe::StripeObject - class Ae < Stripe::StripeObject - class Standard < Stripe::StripeObject + class CountryOptions < ::Stripe::StripeObject + class Ae < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -36,7 +36,7 @@ module Stripe @field_remappings = {} end end - class Al < Stripe::StripeObject + class Al < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -47,7 +47,7 @@ module Stripe @field_remappings = {} end end - class Am < Stripe::StripeObject + class Am < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -58,7 +58,7 @@ module Stripe @field_remappings = {} end end - class Ao < Stripe::StripeObject + class Ao < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -69,8 +69,8 @@ module Stripe @field_remappings = {} end end - class At < Stripe::StripeObject - class Standard < Stripe::StripeObject + class At < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -94,8 +94,8 @@ module Stripe @field_remappings = {} end end - class Au < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Au < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -119,7 +119,7 @@ module Stripe @field_remappings = {} end end - class Aw < Stripe::StripeObject + class Aw < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -130,7 +130,7 @@ module Stripe @field_remappings = {} end end - class Az < Stripe::StripeObject + class Az < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -141,7 +141,7 @@ module Stripe @field_remappings = {} end end - class Ba < Stripe::StripeObject + class Ba < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -152,7 +152,7 @@ module Stripe @field_remappings = {} end end - class Bb < Stripe::StripeObject + class Bb < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -163,7 +163,7 @@ module Stripe @field_remappings = {} end end - class Bd < Stripe::StripeObject + class Bd < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -174,8 +174,8 @@ module Stripe @field_remappings = {} end end - class Be < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Be < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -199,7 +199,7 @@ module Stripe @field_remappings = {} end end - class Bf < Stripe::StripeObject + class Bf < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -210,8 +210,8 @@ module Stripe @field_remappings = {} end end - class Bg < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Bg < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -235,7 +235,7 @@ module Stripe @field_remappings = {} end end - class Bh < Stripe::StripeObject + class Bh < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -246,7 +246,7 @@ module Stripe @field_remappings = {} end end - class Bj < Stripe::StripeObject + class Bj < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -257,7 +257,7 @@ module Stripe @field_remappings = {} end end - class Bs < Stripe::StripeObject + class Bs < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -268,7 +268,7 @@ module Stripe @field_remappings = {} end end - class By < Stripe::StripeObject + class By < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -279,8 +279,8 @@ module Stripe @field_remappings = {} end end - class Ca < Stripe::StripeObject - class ProvinceStandard < Stripe::StripeObject + class Ca < ::Stripe::StripeObject + class ProvinceStandard < ::Stripe::StripeObject # Two-letter CA province code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). sig { returns(String) } def province; end @@ -304,7 +304,7 @@ module Stripe @field_remappings = {} end end - class Cd < Stripe::StripeObject + class Cd < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -315,8 +315,8 @@ module Stripe @field_remappings = {} end end - class Ch < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Ch < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -340,7 +340,7 @@ module Stripe @field_remappings = {} end end - class Cl < Stripe::StripeObject + class Cl < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -351,7 +351,7 @@ module Stripe @field_remappings = {} end end - class Cm < Stripe::StripeObject + class Cm < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -362,7 +362,7 @@ module Stripe @field_remappings = {} end end - class Co < Stripe::StripeObject + class Co < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -373,7 +373,7 @@ module Stripe @field_remappings = {} end end - class Cr < Stripe::StripeObject + class Cr < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -384,7 +384,7 @@ module Stripe @field_remappings = {} end end - class Cv < Stripe::StripeObject + class Cv < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -395,8 +395,8 @@ module Stripe @field_remappings = {} end end - class Cy < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Cy < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -420,8 +420,8 @@ module Stripe @field_remappings = {} end end - class Cz < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Cz < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -445,8 +445,8 @@ module Stripe @field_remappings = {} end end - class De < Stripe::StripeObject - class Standard < Stripe::StripeObject + class De < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -470,8 +470,8 @@ module Stripe @field_remappings = {} end end - class Dk < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Dk < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -495,7 +495,7 @@ module Stripe @field_remappings = {} end end - class Ec < Stripe::StripeObject + class Ec < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -506,8 +506,8 @@ module Stripe @field_remappings = {} end end - class Ee < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Ee < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -531,7 +531,7 @@ module Stripe @field_remappings = {} end end - class Eg < Stripe::StripeObject + class Eg < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -542,8 +542,8 @@ module Stripe @field_remappings = {} end end - class Es < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Es < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -567,7 +567,7 @@ module Stripe @field_remappings = {} end end - class Et < Stripe::StripeObject + class Et < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -578,8 +578,8 @@ module Stripe @field_remappings = {} end end - class Fi < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Fi < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -603,8 +603,8 @@ module Stripe @field_remappings = {} end end - class Fr < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Fr < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -628,8 +628,8 @@ module Stripe @field_remappings = {} end end - class Gb < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Gb < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -653,7 +653,7 @@ module Stripe @field_remappings = {} end end - class Ge < Stripe::StripeObject + class Ge < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -664,7 +664,7 @@ module Stripe @field_remappings = {} end end - class Gn < Stripe::StripeObject + class Gn < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -675,8 +675,8 @@ module Stripe @field_remappings = {} end end - class Gr < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Gr < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -700,8 +700,8 @@ module Stripe @field_remappings = {} end end - class Hr < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Hr < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -725,8 +725,8 @@ module Stripe @field_remappings = {} end end - class Hu < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Hu < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -750,7 +750,7 @@ module Stripe @field_remappings = {} end end - class Id < Stripe::StripeObject + class Id < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -761,8 +761,8 @@ module Stripe @field_remappings = {} end end - class Ie < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Ie < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -786,7 +786,7 @@ module Stripe @field_remappings = {} end end - class In < Stripe::StripeObject + class In < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -797,7 +797,7 @@ module Stripe @field_remappings = {} end end - class Is < Stripe::StripeObject + class Is < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -808,8 +808,8 @@ module Stripe @field_remappings = {} end end - class It < Stripe::StripeObject - class Standard < Stripe::StripeObject + class It < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -833,8 +833,8 @@ module Stripe @field_remappings = {} end end - class Jp < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Jp < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -858,7 +858,7 @@ module Stripe @field_remappings = {} end end - class Ke < Stripe::StripeObject + class Ke < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -869,7 +869,7 @@ module Stripe @field_remappings = {} end end - class Kg < Stripe::StripeObject + class Kg < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -880,7 +880,7 @@ module Stripe @field_remappings = {} end end - class Kh < Stripe::StripeObject + class Kh < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -891,7 +891,7 @@ module Stripe @field_remappings = {} end end - class Kr < Stripe::StripeObject + class Kr < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -902,7 +902,7 @@ module Stripe @field_remappings = {} end end - class Kz < Stripe::StripeObject + class Kz < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -913,7 +913,7 @@ module Stripe @field_remappings = {} end end - class La < Stripe::StripeObject + class La < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -924,8 +924,8 @@ module Stripe @field_remappings = {} end end - class Lt < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Lt < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -949,8 +949,8 @@ module Stripe @field_remappings = {} end end - class Lu < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Lu < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -974,8 +974,8 @@ module Stripe @field_remappings = {} end end - class Lv < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Lv < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -999,7 +999,7 @@ module Stripe @field_remappings = {} end end - class Ma < Stripe::StripeObject + class Ma < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1010,7 +1010,7 @@ module Stripe @field_remappings = {} end end - class Md < Stripe::StripeObject + class Md < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1021,7 +1021,7 @@ module Stripe @field_remappings = {} end end - class Me < Stripe::StripeObject + class Me < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1032,7 +1032,7 @@ module Stripe @field_remappings = {} end end - class Mk < Stripe::StripeObject + class Mk < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1043,7 +1043,7 @@ module Stripe @field_remappings = {} end end - class Mr < Stripe::StripeObject + class Mr < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1054,8 +1054,8 @@ module Stripe @field_remappings = {} end end - class Mt < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Mt < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1079,7 +1079,7 @@ module Stripe @field_remappings = {} end end - class Mx < Stripe::StripeObject + class Mx < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1090,7 +1090,7 @@ module Stripe @field_remappings = {} end end - class My < Stripe::StripeObject + class My < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1101,7 +1101,7 @@ module Stripe @field_remappings = {} end end - class Ng < Stripe::StripeObject + class Ng < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1112,8 +1112,8 @@ module Stripe @field_remappings = {} end end - class Nl < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Nl < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1137,8 +1137,8 @@ module Stripe @field_remappings = {} end end - class No < Stripe::StripeObject - class Standard < Stripe::StripeObject + class No < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1162,7 +1162,7 @@ module Stripe @field_remappings = {} end end - class Np < Stripe::StripeObject + class Np < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1173,8 +1173,8 @@ module Stripe @field_remappings = {} end end - class Nz < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Nz < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1198,7 +1198,7 @@ module Stripe @field_remappings = {} end end - class Om < Stripe::StripeObject + class Om < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1209,7 +1209,7 @@ module Stripe @field_remappings = {} end end - class Pe < Stripe::StripeObject + class Pe < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1220,7 +1220,7 @@ module Stripe @field_remappings = {} end end - class Ph < Stripe::StripeObject + class Ph < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1231,8 +1231,8 @@ module Stripe @field_remappings = {} end end - class Pl < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Pl < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1256,8 +1256,8 @@ module Stripe @field_remappings = {} end end - class Pt < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Pt < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1281,8 +1281,8 @@ module Stripe @field_remappings = {} end end - class Ro < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Ro < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1306,7 +1306,7 @@ module Stripe @field_remappings = {} end end - class Rs < Stripe::StripeObject + class Rs < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1317,7 +1317,7 @@ module Stripe @field_remappings = {} end end - class Ru < Stripe::StripeObject + class Ru < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1328,7 +1328,7 @@ module Stripe @field_remappings = {} end end - class Sa < Stripe::StripeObject + class Sa < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1339,8 +1339,8 @@ module Stripe @field_remappings = {} end end - class Se < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Se < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1364,8 +1364,8 @@ module Stripe @field_remappings = {} end end - class Sg < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Sg < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an Default standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1389,8 +1389,8 @@ module Stripe @field_remappings = {} end end - class Si < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Si < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1414,8 +1414,8 @@ module Stripe @field_remappings = {} end end - class Sk < Stripe::StripeObject - class Standard < Stripe::StripeObject + class Sk < ::Stripe::StripeObject + class Standard < ::Stripe::StripeObject # Place of supply scheme used in an EU standard registration. sig { returns(String) } def place_of_supply_scheme; end @@ -1439,7 +1439,7 @@ module Stripe @field_remappings = {} end end - class Sn < Stripe::StripeObject + class Sn < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1450,7 +1450,7 @@ module Stripe @field_remappings = {} end end - class Sr < Stripe::StripeObject + class Sr < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1461,7 +1461,7 @@ module Stripe @field_remappings = {} end end - class Th < Stripe::StripeObject + class Th < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1472,7 +1472,7 @@ module Stripe @field_remappings = {} end end - class Tj < Stripe::StripeObject + class Tj < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1483,7 +1483,7 @@ module Stripe @field_remappings = {} end end - class Tr < Stripe::StripeObject + class Tr < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1494,7 +1494,7 @@ module Stripe @field_remappings = {} end end - class Tz < Stripe::StripeObject + class Tw < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1505,7 +1505,7 @@ module Stripe @field_remappings = {} end end - class Ua < Stripe::StripeObject + class Tz < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1516,7 +1516,7 @@ module Stripe @field_remappings = {} end end - class Ug < Stripe::StripeObject + class Ua < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1527,8 +1527,19 @@ module Stripe @field_remappings = {} end end - class Us < Stripe::StripeObject - class LocalAmusementTax < Stripe::StripeObject + class Ug < ::Stripe::StripeObject + # Type of registration in `country`. + sig { returns(String) } + def type; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Us < ::Stripe::StripeObject + class LocalAmusementTax < ::Stripe::StripeObject # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. sig { returns(String) } def jurisdiction; end @@ -1539,7 +1550,7 @@ module Stripe @field_remappings = {} end end - class LocalLeaseTax < Stripe::StripeObject + class LocalLeaseTax < ::Stripe::StripeObject # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. sig { returns(String) } def jurisdiction; end @@ -1550,8 +1561,8 @@ module Stripe @field_remappings = {} end end - class StateSalesTax < Stripe::StripeObject - class Election < Stripe::StripeObject + class StateSalesTax < ::Stripe::StripeObject + class Election < ::Stripe::StripeObject # A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. sig { returns(T.nilable(String)) } def jurisdiction; end @@ -1601,7 +1612,7 @@ module Stripe @field_remappings = {} end end - class Uy < Stripe::StripeObject + class Uy < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1612,7 +1623,7 @@ module Stripe @field_remappings = {} end end - class Uz < Stripe::StripeObject + class Uz < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1623,7 +1634,7 @@ module Stripe @field_remappings = {} end end - class Vn < Stripe::StripeObject + class Vn < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1634,7 +1645,7 @@ module Stripe @field_remappings = {} end end - class Za < Stripe::StripeObject + class Za < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1645,7 +1656,7 @@ module Stripe @field_remappings = {} end end - class Zm < Stripe::StripeObject + class Zm < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1656,7 +1667,7 @@ module Stripe @field_remappings = {} end end - class Zw < Stripe::StripeObject + class Zw < ::Stripe::StripeObject # Type of registration in `country`. sig { returns(String) } def type; end @@ -1934,6 +1945,9 @@ module Stripe # Attribute for field tr sig { returns(T.nilable(Tr)) } def tr; end + # Attribute for field tw + sig { returns(T.nilable(Tw)) } + def tw; end # Attribute for field tz sig { returns(T.nilable(Tz)) } def tz; end @@ -2055,6 +2069,7 @@ module Stripe th: Th, tj: Tj, tr: Tr, + tw: Tw, tz: Tz, ua: Ua, ug: Ug, @@ -2100,13 +2115,13 @@ module Stripe def status; end # Creates a new Tax Registration object. sig { - params(params: T.any(::Stripe::Tax::RegistrationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Registration) + params(params: T.any(::Stripe::Tax::RegistrationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Registration) } def self.create(params = {}, opts = {}); end # Returns a list of Tax Registration objects. sig { - params(params: T.any(::Stripe::Tax::RegistrationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Tax::RegistrationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end @@ -2114,7 +2129,7 @@ module Stripe # # A registration cannot be deleted after it has been created. If you wish to end a registration you may do so by setting expires_at. sig { - params(id: String, params: T.any(::Stripe::Tax::RegistrationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Registration) + params(id: String, params: T.any(::Stripe::Tax::RegistrationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Registration) } def self.update(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/tax/settings.rbi b/rbi/stripe/resources/tax/settings.rbi index 6c249497..6f98fedc 100644 --- a/rbi/stripe/resources/tax/settings.rbi +++ b/rbi/stripe/resources/tax/settings.rbi @@ -8,7 +8,7 @@ module Stripe # # Related guide: [Using the Settings API](https://stripe.com/docs/tax/settings-api) class Settings < SingletonAPIResource - class Defaults < Stripe::StripeObject + class Defaults < ::Stripe::StripeObject # The tax calculation provider this account uses. Defaults to `stripe` when not using a [third-party provider](/tax/third-party-apps). sig { returns(String) } def provider; end @@ -25,8 +25,8 @@ module Stripe @field_remappings = {} end end - class HeadOffice < Stripe::StripeObject - class Address < Stripe::StripeObject + class HeadOffice < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -62,8 +62,8 @@ module Stripe @field_remappings = {} end end - class StatusDetails < Stripe::StripeObject - class Active < Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject + class Active < ::Stripe::StripeObject def self.inner_class_types @inner_class_types = {} end @@ -71,7 +71,7 @@ module Stripe @field_remappings = {} end end - class Pending < Stripe::StripeObject + class Pending < ::Stripe::StripeObject # The list of missing fields that are required to perform calculations. It includes the entry `head_office` when the status is `pending`. It is recommended to set the optional values even if they aren't listed as required for calculating taxes. Calculations can fail if missing fields aren't explicitly provided on every call. sig { returns(T.nilable(T::Array[String])) } def missing_fields; end diff --git a/rbi/stripe/resources/tax/transaction.rbi b/rbi/stripe/resources/tax/transaction.rbi index 09c0e8fb..f5d218fa 100644 --- a/rbi/stripe/resources/tax/transaction.rbi +++ b/rbi/stripe/resources/tax/transaction.rbi @@ -8,8 +8,8 @@ module Stripe # # Related guide: [Calculate tax in your custom payment flow](https://stripe.com/docs/tax/custom#tax-transaction) class Transaction < APIResource - class CustomerDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class CustomerDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -35,7 +35,7 @@ module Stripe @field_remappings = {} end end - class TaxId < Stripe::StripeObject + class TaxId < ::Stripe::StripeObject # The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` sig { returns(String) } def type; end @@ -71,7 +71,7 @@ module Stripe @field_remappings = {} end end - class Reversal < Stripe::StripeObject + class Reversal < ::Stripe::StripeObject # The `id` of the reversed `Transaction` object. sig { returns(T.nilable(String)) } def original_transaction; end @@ -82,8 +82,8 @@ module Stripe @field_remappings = {} end end - class ShipFromDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class ShipFromDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -119,9 +119,9 @@ module Stripe @field_remappings = {} end end - class ShippingCost < Stripe::StripeObject - class TaxBreakdown < Stripe::StripeObject - class Jurisdiction < Stripe::StripeObject + class ShippingCost < ::Stripe::StripeObject + class TaxBreakdown < ::Stripe::StripeObject + class Jurisdiction < ::Stripe::StripeObject # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). sig { returns(String) } def country; end @@ -141,7 +141,7 @@ module Stripe @field_remappings = {} end end - class TaxRateDetails < Stripe::StripeObject + class TaxRateDetails < ::Stripe::StripeObject # A localized display name for tax type, intended to be human-readable. For example, "Local Sales and Use Tax", "Value-added tax (VAT)", or "Umsatzsteuer (USt.)". sig { returns(String) } def display_name; end @@ -224,7 +224,7 @@ module Stripe sig { returns(String) } def id; end # The tax collected or refunded, by line item. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def line_items; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } @@ -258,25 +258,25 @@ module Stripe def type; end # Creates a Tax Transaction from a calculation, if that calculation hasn't expired. Calculations expire after 90 days. sig { - params(params: T.any(::Stripe::Tax::TransactionCreateFromCalculationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Transaction) + params(params: T.any(::Stripe::Tax::TransactionCreateFromCalculationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Transaction) } def self.create_from_calculation(params = {}, opts = {}); end # Partially or fully reverses a previously created Transaction. sig { - params(params: T.any(::Stripe::Tax::TransactionCreateReversalParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Transaction) + params(params: T.any(::Stripe::Tax::TransactionCreateReversalParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Transaction) } def self.create_reversal(params = {}, opts = {}); end # Retrieves the line items of a committed standalone transaction as a collection. sig { - params(params: T.any(::Stripe::Tax::TransactionListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Tax::TransactionListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list_line_items(params = {}, opts = {}); end # Retrieves the line items of a committed standalone transaction as a collection. sig { - params(transaction: String, params: T.any(::Stripe::Tax::TransactionListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(transaction: String, params: T.any(::Stripe::Tax::TransactionListLineItemsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list_line_items(transaction, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/tax/transaction_line_item.rbi b/rbi/stripe/resources/tax/transaction_line_item.rbi index fc55881a..6cdf7c2d 100644 --- a/rbi/stripe/resources/tax/transaction_line_item.rbi +++ b/rbi/stripe/resources/tax/transaction_line_item.rbi @@ -5,7 +5,7 @@ module Stripe module Tax class TransactionLineItem < APIResource - class Reversal < Stripe::StripeObject + class Reversal < ::Stripe::StripeObject # The `id` of the line item to reverse in the original transaction. sig { returns(String) } def original_line_item; end diff --git a/rbi/stripe/resources/tax_code.rbi b/rbi/stripe/resources/tax_code.rbi index 22cdf723..423f453f 100644 --- a/rbi/stripe/resources/tax_code.rbi +++ b/rbi/stripe/resources/tax_code.rbi @@ -19,7 +19,7 @@ module Stripe def object; end # A list of [all tax codes available](https://stripe.com/docs/tax/tax-categories) to add to Products in order to allow specific tax calculations. sig { - params(params: T.any(::Stripe::TaxCodeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TaxCodeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/tax_id.rbi b/rbi/stripe/resources/tax_id.rbi index 885af663..6641e585 100644 --- a/rbi/stripe/resources/tax_id.rbi +++ b/rbi/stripe/resources/tax_id.rbi @@ -8,15 +8,15 @@ module Stripe # # Related guides: [Customer tax identification numbers](https://stripe.com/docs/billing/taxes/tax-ids), [Account tax IDs](https://stripe.com/docs/invoicing/connect#account-tax-ids) class TaxId < APIResource - class Owner < Stripe::StripeObject + class Owner < ::Stripe::StripeObject # The account being referenced when `type` is `account`. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def account; end # The Connect Application being referenced when `type` is `application`. - sig { returns(T.nilable(T.any(String, Stripe::Application))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Application))) } def application; end # The customer being referenced when `type` is `customer`. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # Type of owner referenced. sig { returns(String) } @@ -28,7 +28,7 @@ module Stripe @field_remappings = {} end end - class Verification < Stripe::StripeObject + class Verification < ::Stripe::StripeObject # Verification status, one of `pending`, `verified`, `unverified`, or `unavailable`. sig { returns(String) } def status; end @@ -52,7 +52,7 @@ module Stripe sig { returns(Integer) } def created; end # ID of the customer. - sig { returns(T.nilable(T.any(String, Stripe::Customer))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Customer))) } def customer; end # Unique identifier for the object. sig { returns(String) } @@ -80,25 +80,25 @@ module Stripe def deleted; end # Creates a new account or customer tax_id object. sig { - params(params: T.any(::Stripe::TaxIdCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxId) + params(params: T.any(::Stripe::TaxIdCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxId) } def self.create(params = {}, opts = {}); end # Deletes an existing account or customer tax_id object. sig { - params(id: String, params: T.any(::Stripe::TaxIdDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxId) + params(id: String, params: T.any(::Stripe::TaxIdDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxId) } def self.delete(id, params = {}, opts = {}); end # Deletes an existing account or customer tax_id object. sig { - params(params: T.any(::Stripe::TaxIdDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxId) + params(params: T.any(::Stripe::TaxIdDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxId) } def delete(params = {}, opts = {}); end # Returns a list of tax IDs. sig { - params(params: T.any(::Stripe::TaxIdListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TaxIdListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/tax_rate.rbi b/rbi/stripe/resources/tax_rate.rbi index b1df4253..c618b672 100644 --- a/rbi/stripe/resources/tax_rate.rbi +++ b/rbi/stripe/resources/tax_rate.rbi @@ -7,7 +7,7 @@ module Stripe # # Related guide: [Tax rates](https://docs.stripe.com/billing/taxes/tax-rates) class TaxRate < APIResource - class FlatAmount < Stripe::StripeObject + class FlatAmount < ::Stripe::StripeObject # Amount of the tax when the `rate_type` is `flat_amount`. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). sig { returns(Integer) } def amount; end @@ -79,19 +79,19 @@ module Stripe def tax_type; end # Creates a new tax rate. sig { - params(params: T.any(::Stripe::TaxRateCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxRate) + params(params: T.any(::Stripe::TaxRateCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxRate) } def self.create(params = {}, opts = {}); end # Returns a list of your tax rates. Tax rates are returned sorted by creation date, with the most recently created tax rates appearing first. sig { - params(params: T.any(::Stripe::TaxRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TaxRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates an existing tax rate. sig { - params(tax_rate: String, params: T.any(::Stripe::TaxRateUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxRate) + params(tax_rate: String, params: T.any(::Stripe::TaxRateUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxRate) } def self.update(tax_rate, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/terminal/configuration.rbi b/rbi/stripe/resources/terminal/configuration.rbi index 0ce07811..156ffe19 100644 --- a/rbi/stripe/resources/terminal/configuration.rbi +++ b/rbi/stripe/resources/terminal/configuration.rbi @@ -7,9 +7,9 @@ module Stripe # A Configurations object represents how features should be configured for terminal readers. # For information about how to use it, see the [Terminal configurations documentation](https://docs.stripe.com/terminal/fleet/configurations-overview). class Configuration < APIResource - class BbposWisepad3 < Stripe::StripeObject + class BbposWisepad3 < ::Stripe::StripeObject # A File ID representing an image to display on the reader - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def splashscreen; end def self.inner_class_types @inner_class_types = {} @@ -18,9 +18,9 @@ module Stripe @field_remappings = {} end end - class BbposWiseposE < Stripe::StripeObject + class BbposWiseposE < ::Stripe::StripeObject # A File ID representing an image to display on the reader - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def splashscreen; end def self.inner_class_types @inner_class_types = {} @@ -29,7 +29,7 @@ module Stripe @field_remappings = {} end end - class Offline < Stripe::StripeObject + class Offline < ::Stripe::StripeObject # Determines whether to allow transactions to be collected while reader is offline. Defaults to false. sig { returns(T.nilable(T::Boolean)) } def enabled; end @@ -40,7 +40,7 @@ module Stripe @field_remappings = {} end end - class RebootWindow < Stripe::StripeObject + class RebootWindow < ::Stripe::StripeObject # Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour. sig { returns(Integer) } def end_hour; end @@ -54,9 +54,9 @@ module Stripe @field_remappings = {} end end - class StripeS700 < Stripe::StripeObject + class StripeS700 < ::Stripe::StripeObject # A File ID representing an image to display on the reader - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def splashscreen; end def self.inner_class_types @inner_class_types = {} @@ -65,8 +65,8 @@ module Stripe @field_remappings = {} end end - class Tipping < Stripe::StripeObject - class Aed < Stripe::StripeObject + class Tipping < ::Stripe::StripeObject + class Aed < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -83,7 +83,7 @@ module Stripe @field_remappings = {} end end - class Aud < Stripe::StripeObject + class Aud < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -100,7 +100,7 @@ module Stripe @field_remappings = {} end end - class Bgn < Stripe::StripeObject + class Bgn < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -117,7 +117,7 @@ module Stripe @field_remappings = {} end end - class Cad < Stripe::StripeObject + class Cad < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -134,7 +134,7 @@ module Stripe @field_remappings = {} end end - class Chf < Stripe::StripeObject + class Chf < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -151,7 +151,7 @@ module Stripe @field_remappings = {} end end - class Czk < Stripe::StripeObject + class Czk < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -168,7 +168,7 @@ module Stripe @field_remappings = {} end end - class Dkk < Stripe::StripeObject + class Dkk < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -185,7 +185,7 @@ module Stripe @field_remappings = {} end end - class Eur < Stripe::StripeObject + class Eur < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -202,7 +202,7 @@ module Stripe @field_remappings = {} end end - class Gbp < Stripe::StripeObject + class Gbp < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -219,7 +219,7 @@ module Stripe @field_remappings = {} end end - class Hkd < Stripe::StripeObject + class Gip < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -236,7 +236,7 @@ module Stripe @field_remappings = {} end end - class Huf < Stripe::StripeObject + class Hkd < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -253,7 +253,7 @@ module Stripe @field_remappings = {} end end - class Jpy < Stripe::StripeObject + class Huf < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -270,7 +270,7 @@ module Stripe @field_remappings = {} end end - class Mxn < Stripe::StripeObject + class Jpy < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -287,7 +287,7 @@ module Stripe @field_remappings = {} end end - class Myr < Stripe::StripeObject + class Mxn < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -304,7 +304,7 @@ module Stripe @field_remappings = {} end end - class Nok < Stripe::StripeObject + class Myr < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -321,7 +321,7 @@ module Stripe @field_remappings = {} end end - class Nzd < Stripe::StripeObject + class Nok < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -338,7 +338,7 @@ module Stripe @field_remappings = {} end end - class Pln < Stripe::StripeObject + class Nzd < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -355,7 +355,7 @@ module Stripe @field_remappings = {} end end - class Ron < Stripe::StripeObject + class Pln < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -372,7 +372,7 @@ module Stripe @field_remappings = {} end end - class Sek < Stripe::StripeObject + class Ron < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -389,7 +389,7 @@ module Stripe @field_remappings = {} end end - class Sgd < Stripe::StripeObject + class Sek < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -406,7 +406,24 @@ module Stripe @field_remappings = {} end end - class Usd < Stripe::StripeObject + class Sgd < ::Stripe::StripeObject + # Fixed amounts displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def fixed_amounts; end + # Percentages displayed when collecting a tip + sig { returns(T.nilable(T::Array[Integer])) } + def percentages; end + # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + sig { returns(T.nilable(Integer)) } + def smart_tip_threshold; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + class Usd < ::Stripe::StripeObject # Fixed amounts displayed when collecting a tip sig { returns(T.nilable(T::Array[Integer])) } def fixed_amounts; end @@ -450,6 +467,9 @@ module Stripe # Attribute for field gbp sig { returns(T.nilable(Gbp)) } def gbp; end + # Attribute for field gip + sig { returns(T.nilable(Gip)) } + def gip; end # Attribute for field hkd sig { returns(T.nilable(Hkd)) } def hkd; end @@ -497,6 +517,7 @@ module Stripe dkk: Dkk, eur: Eur, gbp: Gbp, + gip: Gip, hkd: Hkd, huf: Huf, jpy: Jpy, @@ -515,9 +536,9 @@ module Stripe @field_remappings = {} end end - class VerifoneP400 < Stripe::StripeObject + class VerifoneP400 < ::Stripe::StripeObject # A File ID representing an image to display on the reader - sig { returns(T.nilable(T.any(String, Stripe::File))) } + sig { returns(T.nilable(T.any(String, ::Stripe::File))) } def splashscreen; end def self.inner_class_types @inner_class_types = {} @@ -526,8 +547,8 @@ module Stripe @field_remappings = {} end end - class Wifi < Stripe::StripeObject - class EnterpriseEapPeap < Stripe::StripeObject + class Wifi < ::Stripe::StripeObject + class EnterpriseEapPeap < ::Stripe::StripeObject # A File ID representing a PEM file containing the server certificate sig { returns(T.nilable(String)) } def ca_certificate_file; end @@ -547,7 +568,7 @@ module Stripe @field_remappings = {} end end - class EnterpriseEapTls < Stripe::StripeObject + class EnterpriseEapTls < ::Stripe::StripeObject # A File ID representing a PEM file containing the server certificate sig { returns(T.nilable(String)) } def ca_certificate_file; end @@ -570,7 +591,7 @@ module Stripe @field_remappings = {} end end - class PersonalPsk < Stripe::StripeObject + class PersonalPsk < ::Stripe::StripeObject # Password for connecting to the WiFi network sig { returns(String) } def password; end @@ -651,31 +672,31 @@ module Stripe def deleted; end # Creates a new Configuration object. sig { - params(params: T.any(::Stripe::Terminal::ConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Configuration) + params(params: T.any(::Stripe::Terminal::ConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Configuration) } def self.create(params = {}, opts = {}); end # Deletes a Configuration object. sig { - params(configuration: String, params: T.any(::Stripe::Terminal::ConfigurationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Configuration) + params(configuration: String, params: T.any(::Stripe::Terminal::ConfigurationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Configuration) } def self.delete(configuration, params = {}, opts = {}); end # Deletes a Configuration object. sig { - params(params: T.any(::Stripe::Terminal::ConfigurationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Configuration) + params(params: T.any(::Stripe::Terminal::ConfigurationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Configuration) } def delete(params = {}, opts = {}); end # Returns a list of Configuration objects. sig { - params(params: T.any(::Stripe::Terminal::ConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Terminal::ConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates a new Configuration object. sig { - params(configuration: String, params: T.any(::Stripe::Terminal::ConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Configuration) + params(configuration: String, params: T.any(::Stripe::Terminal::ConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Configuration) } def self.update(configuration, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/terminal/connection_token.rbi b/rbi/stripe/resources/terminal/connection_token.rbi index ccf456c2..9ef2eca7 100644 --- a/rbi/stripe/resources/terminal/connection_token.rbi +++ b/rbi/stripe/resources/terminal/connection_token.rbi @@ -19,7 +19,7 @@ module Stripe def secret; end # To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server. On your backend, add an endpoint that creates and returns a connection token. sig { - params(params: T.any(::Stripe::Terminal::ConnectionTokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::ConnectionToken) + params(params: T.any(::Stripe::Terminal::ConnectionTokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::ConnectionToken) } def self.create(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/terminal/location.rbi b/rbi/stripe/resources/terminal/location.rbi index cf7b791c..e08ddc79 100644 --- a/rbi/stripe/resources/terminal/location.rbi +++ b/rbi/stripe/resources/terminal/location.rbi @@ -8,7 +8,7 @@ module Stripe # # Related guide: [Fleet management](https://stripe.com/docs/terminal/fleet/locations) class Location < APIResource - class Address < Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -34,7 +34,7 @@ module Stripe @field_remappings = {} end end - class AddressKana < Stripe::StripeObject + class AddressKana < ::Stripe::StripeObject # City/Ward. sig { returns(T.nilable(String)) } def city; end @@ -63,7 +63,7 @@ module Stripe @field_remappings = {} end end - class AddressKanji < Stripe::StripeObject + class AddressKanji < ::Stripe::StripeObject # City/Ward. sig { returns(T.nilable(String)) } def city; end @@ -134,31 +134,31 @@ module Stripe # Creates a new Location object. # For further details, including which address fields are required in each country, see the [Manage locations](https://docs.stripe.com/docs/terminal/fleet/locations) guide. sig { - params(params: T.any(::Stripe::Terminal::LocationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Location) + params(params: T.any(::Stripe::Terminal::LocationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Location) } def self.create(params = {}, opts = {}); end # Deletes a Location object. sig { - params(location: String, params: T.any(::Stripe::Terminal::LocationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Location) + params(location: String, params: T.any(::Stripe::Terminal::LocationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Location) } def self.delete(location, params = {}, opts = {}); end # Deletes a Location object. sig { - params(params: T.any(::Stripe::Terminal::LocationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Location) + params(params: T.any(::Stripe::Terminal::LocationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Location) } def delete(params = {}, opts = {}); end # Returns a list of Location objects. sig { - params(params: T.any(::Stripe::Terminal::LocationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Terminal::LocationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates a Location object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(location: String, params: T.any(::Stripe::Terminal::LocationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Location) + params(location: String, params: T.any(::Stripe::Terminal::LocationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Location) } def self.update(location, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/terminal/reader.rbi b/rbi/stripe/resources/terminal/reader.rbi index 02a97b55..94793014 100644 --- a/rbi/stripe/resources/terminal/reader.rbi +++ b/rbi/stripe/resources/terminal/reader.rbi @@ -8,10 +8,10 @@ module Stripe # # Related guide: [Connecting to a reader](https://stripe.com/docs/terminal/payments/connect-reader) class Reader < APIResource - class Action < Stripe::StripeObject - class CollectInputs < Stripe::StripeObject - class Input < Stripe::StripeObject - class CustomText < Stripe::StripeObject + class Action < ::Stripe::StripeObject + class CollectInputs < ::Stripe::StripeObject + class Input < ::Stripe::StripeObject + class CustomText < ::Stripe::StripeObject # Customize the default description for this input sig { returns(T.nilable(String)) } def description; end @@ -31,7 +31,7 @@ module Stripe @field_remappings = {} end end - class Email < Stripe::StripeObject + class Email < ::Stripe::StripeObject # The collected email address sig { returns(T.nilable(String)) } def value; end @@ -42,7 +42,7 @@ module Stripe @field_remappings = {} end end - class Numeric < Stripe::StripeObject + class Numeric < ::Stripe::StripeObject # The collected number sig { returns(T.nilable(String)) } def value; end @@ -53,7 +53,7 @@ module Stripe @field_remappings = {} end end - class Phone < Stripe::StripeObject + class Phone < ::Stripe::StripeObject # The collected phone number sig { returns(T.nilable(String)) } def value; end @@ -64,15 +64,15 @@ module Stripe @field_remappings = {} end end - class Selection < Stripe::StripeObject - class Choice < Stripe::StripeObject - # The id to be selected + class Selection < ::Stripe::StripeObject + class Choice < ::Stripe::StripeObject + # The identifier for the selected choice. Maximum 50 characters. sig { returns(T.nilable(String)) } def id; end - # The button style for the choice + # The button style for the choice. Can be `primary` or `secondary`. sig { returns(T.nilable(String)) } def style; end - # The text to be selected + # The text to be selected. Maximum 30 characters. sig { returns(String) } def text; end def self.inner_class_types @@ -98,7 +98,7 @@ module Stripe @field_remappings = {} end end - class Signature < Stripe::StripeObject + class Signature < ::Stripe::StripeObject # The File ID of a collected signature image sig { returns(T.nilable(String)) } def value; end @@ -109,7 +109,7 @@ module Stripe @field_remappings = {} end end - class Text < Stripe::StripeObject + class Text < ::Stripe::StripeObject # The collected text value sig { returns(T.nilable(String)) } def value; end @@ -120,17 +120,17 @@ module Stripe @field_remappings = {} end end - class Toggle < Stripe::StripeObject - # The toggle's default value + class Toggle < ::Stripe::StripeObject + # The toggle's default value. Can be `enabled` or `disabled`. sig { returns(T.nilable(String)) } def default_value; end - # The toggle's description text + # The toggle's description text. Maximum 50 characters. sig { returns(T.nilable(String)) } def description; end - # The toggle's title text + # The toggle's title text. Maximum 50 characters. sig { returns(T.nilable(String)) } def title; end - # The toggle's collected value + # The toggle's collected value. Can be `enabled` or `disabled`. sig { returns(T.nilable(String)) } def value; end def self.inner_class_types @@ -202,9 +202,9 @@ module Stripe @field_remappings = {} end end - class CollectPaymentMethod < Stripe::StripeObject - class CollectConfig < Stripe::StripeObject - class Tipping < Stripe::StripeObject + class CollectPaymentMethod < ::Stripe::StripeObject + class CollectConfig < ::Stripe::StripeObject + class Tipping < ::Stripe::StripeObject # Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency). sig { returns(T.nilable(Integer)) } def amount_eligible; end @@ -235,14 +235,14 @@ module Stripe sig { returns(T.nilable(CollectConfig)) } def collect_config; end # Most recent PaymentIntent processed by the reader. - sig { returns(T.any(String, Stripe::PaymentIntent)) } + sig { returns(T.any(String, ::Stripe::PaymentIntent)) } def payment_intent; end # PaymentMethod objects represent your customer's payment instruments. # You can use them with [PaymentIntents](https://stripe.com/docs/payments/payment-intents) to collect payments or save them to # Customer objects to store instrument details for future payments. # # Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios). - sig { returns(T.nilable(Stripe::PaymentMethod)) } + sig { returns(T.nilable(::Stripe::PaymentMethod)) } def payment_method; end def self.inner_class_types @inner_class_types = {collect_config: CollectConfig} @@ -251,8 +251,8 @@ module Stripe @field_remappings = {} end end - class ConfirmPaymentIntent < Stripe::StripeObject - class ConfirmConfig < Stripe::StripeObject + class ConfirmPaymentIntent < ::Stripe::StripeObject + class ConfirmConfig < ::Stripe::StripeObject # If the customer doesn't abandon authenticating the payment, they're redirected to this URL after completion. sig { returns(T.nilable(String)) } def return_url; end @@ -267,7 +267,7 @@ module Stripe sig { returns(T.nilable(ConfirmConfig)) } def confirm_config; end # Most recent PaymentIntent processed by the reader. - sig { returns(T.any(String, Stripe::PaymentIntent)) } + sig { returns(T.any(String, ::Stripe::PaymentIntent)) } def payment_intent; end def self.inner_class_types @inner_class_types = {confirm_config: ConfirmConfig} @@ -276,9 +276,9 @@ module Stripe @field_remappings = {} end end - class ProcessPaymentIntent < Stripe::StripeObject - class ProcessConfig < Stripe::StripeObject - class Tipping < Stripe::StripeObject + class ProcessPaymentIntent < ::Stripe::StripeObject + class ProcessConfig < ::Stripe::StripeObject + class Tipping < ::Stripe::StripeObject # Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency). sig { returns(T.nilable(Integer)) } def amount_eligible; end @@ -309,7 +309,7 @@ module Stripe end end # Most recent PaymentIntent processed by the reader. - sig { returns(T.any(String, Stripe::PaymentIntent)) } + sig { returns(T.any(String, ::Stripe::PaymentIntent)) } def payment_intent; end # Represents a per-transaction override of a reader configuration sig { returns(T.nilable(ProcessConfig)) } @@ -321,8 +321,8 @@ module Stripe @field_remappings = {} end end - class ProcessSetupIntent < Stripe::StripeObject - class ProcessConfig < Stripe::StripeObject + class ProcessSetupIntent < ::Stripe::StripeObject + class ProcessConfig < ::Stripe::StripeObject # Enable customer-initiated cancellation when processing this SetupIntent. sig { returns(T.nilable(T::Boolean)) } def enable_customer_cancellation; end @@ -340,7 +340,7 @@ module Stripe sig { returns(T.nilable(ProcessConfig)) } def process_config; end # Most recent SetupIntent processed by the reader. - sig { returns(T.any(String, Stripe::SetupIntent)) } + sig { returns(T.any(String, ::Stripe::SetupIntent)) } def setup_intent; end def self.inner_class_types @inner_class_types = {process_config: ProcessConfig} @@ -349,8 +349,8 @@ module Stripe @field_remappings = {} end end - class RefundPayment < Stripe::StripeObject - class RefundPaymentConfig < Stripe::StripeObject + class RefundPayment < ::Stripe::StripeObject + class RefundPaymentConfig < ::Stripe::StripeObject # Enable customer-initiated cancellation when refunding this payment. sig { returns(T.nilable(T::Boolean)) } def enable_customer_cancellation; end @@ -365,19 +365,19 @@ module Stripe sig { returns(T.nilable(Integer)) } def amount; end # Charge that is being refunded. - sig { returns(T.nilable(T.any(String, Stripe::Charge))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Charge))) } def charge; end # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. sig { returns(T.nilable(T::Hash[String, String])) } def metadata; end # Payment intent that is being refunded. - sig { returns(T.nilable(T.any(String, Stripe::PaymentIntent))) } + sig { returns(T.nilable(T.any(String, ::Stripe::PaymentIntent))) } def payment_intent; end # The reason for the refund. sig { returns(T.nilable(String)) } def reason; end # Unique identifier for the refund object. - sig { returns(T.nilable(T.any(String, Stripe::Refund))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Refund))) } def refund; end # Boolean indicating whether the application fee should be refunded when refunding this charge. If a full charge refund is given, the full application fee will be refunded. Otherwise, the application fee will be refunded in an amount proportional to the amount of the charge refunded. An application fee can be refunded only by the application that created the charge. sig { returns(T.nilable(T::Boolean)) } @@ -395,9 +395,9 @@ module Stripe @field_remappings = {} end end - class SetReaderDisplay < Stripe::StripeObject - class Cart < Stripe::StripeObject - class LineItem < Stripe::StripeObject + class SetReaderDisplay < ::Stripe::StripeObject + class Cart < ::Stripe::StripeObject + class LineItem < ::Stripe::StripeObject # The amount of the line item. A positive integer in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). sig { returns(Integer) } def amount; end @@ -433,10 +433,10 @@ module Stripe @field_remappings = {} end end - # Cart object to be displayed by the reader. + # Cart object to be displayed by the reader, including line items, amounts, and currency. sig { returns(T.nilable(Cart)) } def cart; end - # Type of information to be displayed by the reader. + # Type of information to be displayed by the reader. Only `cart` is currently supported. sig { returns(String) } def type; end def self.inner_class_types @@ -512,11 +512,14 @@ module Stripe # Custom label given to the reader for easier identification. sig { returns(String) } def label; end + # The last time this reader reported to Stripe backend. + sig { returns(T.nilable(Integer)) } + def last_seen_at; end # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. sig { returns(T::Boolean) } def livemode; end # The location identifier of the reader. - sig { returns(T.nilable(T.any(String, Stripe::Terminal::Location))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Terminal::Location))) } def location; end # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. sig { returns(T::Hash[String, String]) } @@ -533,129 +536,129 @@ module Stripe # Always true for a deleted object sig { returns(T.nilable(T::Boolean)) } def deleted; end - # Cancels the current reader action. + # Cancels the current reader action. See [Programmatic Cancellation](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven#programmatic-cancellation) for more details. sig { - params(params: T.any(::Stripe::Terminal::ReaderCancelActionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(params: T.any(::Stripe::Terminal::ReaderCancelActionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def cancel_action(params = {}, opts = {}); end - # Cancels the current reader action. + # Cancels the current reader action. See [Programmatic Cancellation](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven#programmatic-cancellation) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderCancelActionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderCancelActionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.cancel_action(reader, params = {}, opts = {}); end - # Initiates an input collection flow on a Reader. + # Initiates an [input collection flow](https://docs.stripe.com/docs/terminal/features/collect-inputs) on a Reader to display input forms and collect information from your customers. sig { - params(params: T.any(::Stripe::Terminal::ReaderCollectInputsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(params: T.any(::Stripe::Terminal::ReaderCollectInputsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def collect_inputs(params = {}, opts = {}); end - # Initiates an input collection flow on a Reader. + # Initiates an [input collection flow](https://docs.stripe.com/docs/terminal/features/collect-inputs) on a Reader to display input forms and collect information from your customers. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectInputsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectInputsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.collect_inputs(reader, params = {}, opts = {}); end - # Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. + # Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. See [Collecting a Payment method](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#collect-a-paymentmethod) for more details. sig { - params(params: T.any(::Stripe::Terminal::ReaderCollectPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(params: T.any(::Stripe::Terminal::ReaderCollectPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def collect_payment_method(params = {}, opts = {}); end - # Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. + # Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. See [Collecting a Payment method](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#collect-a-paymentmethod) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.collect_payment_method(reader, params = {}, opts = {}); end - # Finalizes a payment on a Reader. + # Finalizes a payment on a Reader. See [Confirming a Payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#confirm-the-paymentintent) for more details. sig { - params(params: T.any(::Stripe::Terminal::ReaderConfirmPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(params: T.any(::Stripe::Terminal::ReaderConfirmPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def confirm_payment_intent(params = {}, opts = {}); end - # Finalizes a payment on a Reader. + # Finalizes a payment on a Reader. See [Confirming a Payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#confirm-the-paymentintent) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderConfirmPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderConfirmPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.confirm_payment_intent(reader, params = {}, opts = {}); end # Creates a new Reader object. sig { - params(params: T.any(::Stripe::Terminal::ReaderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(params: T.any(::Stripe::Terminal::ReaderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.create(params = {}, opts = {}); end # Deletes a Reader object. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.delete(reader, params = {}, opts = {}); end # Deletes a Reader object. sig { - params(params: T.any(::Stripe::Terminal::ReaderDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(params: T.any(::Stripe::Terminal::ReaderDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def delete(params = {}, opts = {}); end # Returns a list of Reader objects. sig { - params(params: T.any(::Stripe::Terminal::ReaderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Terminal::ReaderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end - # Initiates a payment flow on a Reader. + # Initiates a payment flow on a Reader. See [process the payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=immediately#process-payment) for more details. sig { - params(params: T.any(::Stripe::Terminal::ReaderProcessPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(params: T.any(::Stripe::Terminal::ReaderProcessPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def process_payment_intent(params = {}, opts = {}); end - # Initiates a payment flow on a Reader. + # Initiates a payment flow on a Reader. See [process the payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=immediately#process-payment) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.process_payment_intent(reader, params = {}, opts = {}); end - # Initiates a setup intent flow on a Reader. + # Initiates a SetupIntent flow on a Reader. See [Save directly without charging](https://docs.stripe.com/docs/terminal/features/saving-payment-details/save-directly) for more details. sig { - params(params: T.any(::Stripe::Terminal::ReaderProcessSetupIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(params: T.any(::Stripe::Terminal::ReaderProcessSetupIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def process_setup_intent(params = {}, opts = {}); end - # Initiates a setup intent flow on a Reader. + # Initiates a SetupIntent flow on a Reader. See [Save directly without charging](https://docs.stripe.com/docs/terminal/features/saving-payment-details/save-directly) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessSetupIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessSetupIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.process_setup_intent(reader, params = {}, opts = {}); end - # Initiates a refund on a Reader + # Initiates an in-person refund on a Reader. See [Refund an Interac Payment](https://docs.stripe.com/docs/terminal/payments/regional?integration-country=CA#refund-an-interac-payment) for more details. sig { - params(params: T.any(::Stripe::Terminal::ReaderRefundPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(params: T.any(::Stripe::Terminal::ReaderRefundPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def refund_payment(params = {}, opts = {}); end - # Initiates a refund on a Reader + # Initiates an in-person refund on a Reader. See [Refund an Interac Payment](https://docs.stripe.com/docs/terminal/payments/regional?integration-country=CA#refund-an-interac-payment) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderRefundPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderRefundPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.refund_payment(reader, params = {}, opts = {}); end - # Sets reader display to show cart details. + # Sets the reader display to show [cart details](https://docs.stripe.com/docs/terminal/features/display). sig { - params(params: T.any(::Stripe::Terminal::ReaderSetReaderDisplayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(params: T.any(::Stripe::Terminal::ReaderSetReaderDisplayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def set_reader_display(params = {}, opts = {}); end - # Sets reader display to show cart details. + # Sets the reader display to show [cart details](https://docs.stripe.com/docs/terminal/features/display). sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderSetReaderDisplayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderSetReaderDisplayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.set_reader_display(reader, params = {}, opts = {}); end # Updates a Reader object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def self.update(reader, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/test_helpers/test_clock.rbi b/rbi/stripe/resources/test_helpers/test_clock.rbi index 275a1d5a..ede7e671 100644 --- a/rbi/stripe/resources/test_helpers/test_clock.rbi +++ b/rbi/stripe/resources/test_helpers/test_clock.rbi @@ -8,8 +8,8 @@ module Stripe # objects at a frozen time in the past or future, and advance to a specific future time to observe webhooks and state changes. After the clock advances, # you can either validate the current state of your scenario (and test your assumptions), change the current state of your scenario (and test more complex scenarios), or keep advancing forward in time. class TestClock < APIResource - class StatusDetails < Stripe::StripeObject - class Advancing < Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject + class Advancing < ::Stripe::StripeObject # The `frozen_time` that the Test Clock is advancing towards. sig { returns(Integer) } def target_frozen_time; end @@ -62,37 +62,37 @@ module Stripe def deleted; end # Starts advancing a test clock to a specified time in the future. Advancement is done when status changes to Ready. sig { - params(params: T.any(::Stripe::TestHelpers::TestClockAdvanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TestHelpers::TestClock) + params(params: T.any(::Stripe::TestHelpers::TestClockAdvanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TestHelpers::TestClock) } def advance(params = {}, opts = {}); end # Starts advancing a test clock to a specified time in the future. Advancement is done when status changes to Ready. sig { - params(test_clock: String, params: T.any(::Stripe::TestHelpers::TestClockAdvanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TestHelpers::TestClock) + params(test_clock: String, params: T.any(::Stripe::TestHelpers::TestClockAdvanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TestHelpers::TestClock) } def self.advance(test_clock, params = {}, opts = {}); end # Creates a new test clock that can be attached to new customers and quotes. sig { - params(params: T.any(::Stripe::TestHelpers::TestClockCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TestHelpers::TestClock) + params(params: T.any(::Stripe::TestHelpers::TestClockCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TestHelpers::TestClock) } def self.create(params = {}, opts = {}); end # Deletes a test clock. sig { - params(test_clock: String, params: T.any(::Stripe::TestHelpers::TestClockDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TestHelpers::TestClock) + params(test_clock: String, params: T.any(::Stripe::TestHelpers::TestClockDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TestHelpers::TestClock) } def self.delete(test_clock, params = {}, opts = {}); end # Deletes a test clock. sig { - params(params: T.any(::Stripe::TestHelpers::TestClockDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TestHelpers::TestClock) + params(params: T.any(::Stripe::TestHelpers::TestClockDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TestHelpers::TestClock) } def delete(params = {}, opts = {}); end # Returns a list of your test clocks. sig { - params(params: T.any(::Stripe::TestHelpers::TestClockListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TestHelpers::TestClockListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/token.rbi b/rbi/stripe/resources/token.rbi index e436cc08..529a77d6 100644 --- a/rbi/stripe/resources/token.rbi +++ b/rbi/stripe/resources/token.rbi @@ -31,14 +31,14 @@ module Stripe # They can be bank accounts or debit cards as well, and are documented in the links above. # # Related guide: [Bank debits and transfers](/payments/bank-debits-transfers) - sig { returns(T.nilable(Stripe::BankAccount)) } + sig { returns(T.nilable(::Stripe::BankAccount)) } def bank_account; end # You can store multiple cards on a customer in order to charge the customer # later. You can also store multiple debit cards on a recipient in order to # transfer to those cards later. # # Related guide: [Card payments with Sources](https://stripe.com/docs/sources/cards) - sig { returns(T.nilable(Stripe::Card)) } + sig { returns(T.nilable(::Stripe::Card)) } def card; end # IP address of the client that generates the token. sig { returns(T.nilable(String)) } @@ -64,7 +64,7 @@ module Stripe # Creates a single-use token that represents a bank account's details. # You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://docs.stripe.com/api#accounts) where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts. sig { - params(params: T.any(::Stripe::TokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Token) + params(params: T.any(::Stripe::TokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Token) } def self.create(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/topup.rbi b/rbi/stripe/resources/topup.rbi index b78cb798..1014c7c6 100644 --- a/rbi/stripe/resources/topup.rbi +++ b/rbi/stripe/resources/topup.rbi @@ -13,7 +13,7 @@ module Stripe sig { returns(Integer) } def amount; end # ID of the balance transaction that describes the impact of this top-up on your account balance. May not be specified depending on status of top-up. - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def balance_transaction; end # Time at which the object was created. Measured in seconds since the Unix epoch. sig { returns(Integer) } @@ -46,7 +46,7 @@ module Stripe sig { returns(String) } def object; end # The source field is deprecated. It might not always be present in the API response. - sig { returns(T.nilable(Stripe::Source)) } + sig { returns(T.nilable(::Stripe::Source)) } def source; end # Extra information about a top-up. This will appear on your source's bank statement. It must contain at least one letter. sig { returns(T.nilable(String)) } @@ -59,31 +59,31 @@ module Stripe def transfer_group; end # Cancels a top-up. Only pending top-ups can be canceled. sig { - params(params: T.any(::Stripe::TopupCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Topup) + params(params: T.any(::Stripe::TopupCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Topup) } def cancel(params = {}, opts = {}); end # Cancels a top-up. Only pending top-ups can be canceled. sig { - params(topup: String, params: T.any(::Stripe::TopupCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Topup) + params(topup: String, params: T.any(::Stripe::TopupCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Topup) } def self.cancel(topup, params = {}, opts = {}); end # Top up the balance of an account sig { - params(params: T.any(::Stripe::TopupCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Topup) + params(params: T.any(::Stripe::TopupCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Topup) } def self.create(params = {}, opts = {}); end # Returns a list of top-ups. sig { - params(params: T.any(::Stripe::TopupListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TopupListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the metadata of a top-up. Other top-up details are not editable by design. sig { - params(topup: String, params: T.any(::Stripe::TopupUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Topup) + params(topup: String, params: T.any(::Stripe::TopupUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Topup) } def self.update(topup, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/transfer.rbi b/rbi/stripe/resources/transfer.rbi index eff1fa87..1a149070 100644 --- a/rbi/stripe/resources/transfer.rbi +++ b/rbi/stripe/resources/transfer.rbi @@ -21,7 +21,7 @@ module Stripe sig { returns(Integer) } def amount_reversed; end # Balance transaction that describes the impact of this transfer on your account balance. - sig { returns(T.nilable(T.any(String, Stripe::BalanceTransaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::BalanceTransaction))) } def balance_transaction; end # Time that this record of the transfer was first created. sig { returns(Integer) } @@ -33,10 +33,10 @@ module Stripe sig { returns(T.nilable(String)) } def description; end # ID of the Stripe account the transfer was sent to. - sig { returns(T.nilable(T.any(String, Stripe::Account))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Account))) } def destination; end # If the destination is a Stripe account, this will be the ID of the payment that the destination account received for the transfer. - sig { returns(T.nilable(T.any(String, Stripe::Charge))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Charge))) } def destination_payment; end # Unique identifier for the object. sig { returns(String) } @@ -51,13 +51,13 @@ module Stripe sig { returns(String) } def object; end # A list of reversals that have been applied to the transfer. - sig { returns(Stripe::ListObject) } + sig { returns(::Stripe::ListObject) } def reversals; end # Whether the transfer has been fully reversed. If the transfer is only partially reversed, this attribute will still be false. sig { returns(T::Boolean) } def reversed; end # ID of the charge that was used to fund the transfer. If null, the transfer was funded from the available balance. - sig { returns(T.nilable(T.any(String, Stripe::Charge))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Charge))) } def source_transaction; end # The source balance this transfer came from. One of `card`, `fpx`, or `bank_account`. sig { returns(T.nilable(String)) } @@ -67,13 +67,13 @@ module Stripe def transfer_group; end # To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://docs.stripe.com/api#balance) must be able to cover the transfer amount, or you'll receive an “Insufficient Funds” error. sig { - params(params: T.any(::Stripe::TransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Transfer) + params(params: T.any(::Stripe::TransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Transfer) } def self.create(params = {}, opts = {}); end # Returns a list of existing transfers sent to connected accounts. The transfers are returned in sorted order, with the most recently created transfers appearing first. sig { - params(params: T.any(::Stripe::TransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end @@ -81,7 +81,7 @@ module Stripe # # This request accepts only metadata as an argument. sig { - params(transfer: String, params: T.any(::Stripe::TransferUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Transfer) + params(transfer: String, params: T.any(::Stripe::TransferUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Transfer) } def self.update(transfer, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/treasury/credit_reversal.rbi b/rbi/stripe/resources/treasury/credit_reversal.rbi index 62693ed5..db3eabca 100644 --- a/rbi/stripe/resources/treasury/credit_reversal.rbi +++ b/rbi/stripe/resources/treasury/credit_reversal.rbi @@ -6,7 +6,7 @@ module Stripe module Treasury # You can reverse some [ReceivedCredits](https://stripe.com/docs/api#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. class CreditReversal < APIResource - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # Timestamp describing when the CreditReversal changed status to `posted` sig { returns(T.nilable(Integer)) } def posted_at; end @@ -57,17 +57,17 @@ module Stripe sig { returns(StatusTransitions) } def status_transitions; end # The Transaction associated with this object. - sig { returns(T.nilable(T.any(String, Stripe::Treasury::Transaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Treasury::Transaction))) } def transaction; end # Reverses a ReceivedCredit and creates a CreditReversal object. sig { - params(params: T.any(::Stripe::Treasury::CreditReversalCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::CreditReversal) + params(params: T.any(::Stripe::Treasury::CreditReversalCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::CreditReversal) } def self.create(params = {}, opts = {}); end # Returns a list of CreditReversals. sig { - params(params: T.any(::Stripe::Treasury::CreditReversalListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::CreditReversalListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/treasury/debit_reversal.rbi b/rbi/stripe/resources/treasury/debit_reversal.rbi index a1230549..02a18f49 100644 --- a/rbi/stripe/resources/treasury/debit_reversal.rbi +++ b/rbi/stripe/resources/treasury/debit_reversal.rbi @@ -6,7 +6,7 @@ module Stripe module Treasury # You can reverse some [ReceivedDebits](https://stripe.com/docs/api#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal. class DebitReversal < APIResource - class LinkedFlows < Stripe::StripeObject + class LinkedFlows < ::Stripe::StripeObject # Set if there is an Issuing dispute associated with the DebitReversal. sig { returns(T.nilable(String)) } def issuing_dispute; end @@ -17,7 +17,7 @@ module Stripe @field_remappings = {} end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # Timestamp describing when the DebitReversal changed status to `completed`. sig { returns(T.nilable(Integer)) } def completed_at; end @@ -71,17 +71,17 @@ module Stripe sig { returns(StatusTransitions) } def status_transitions; end # The Transaction associated with this object. - sig { returns(T.nilable(T.any(String, Stripe::Treasury::Transaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Treasury::Transaction))) } def transaction; end # Reverses a ReceivedDebit and creates a DebitReversal object. sig { - params(params: T.any(::Stripe::Treasury::DebitReversalCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::DebitReversal) + params(params: T.any(::Stripe::Treasury::DebitReversalCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::DebitReversal) } def self.create(params = {}, opts = {}); end # Returns a list of DebitReversals. sig { - params(params: T.any(::Stripe::Treasury::DebitReversalListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::DebitReversalListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/treasury/financial_account.rbi b/rbi/stripe/resources/treasury/financial_account.rbi index a8006da5..c96948fe 100644 --- a/rbi/stripe/resources/treasury/financial_account.rbi +++ b/rbi/stripe/resources/treasury/financial_account.rbi @@ -7,7 +7,7 @@ module Stripe # Stripe Treasury provides users with a container for money called a FinancialAccount that is separate from their Payments balance. # FinancialAccounts serve as the source and destination of Treasury's money movement APIs. class FinancialAccount < APIResource - class Balance < Stripe::StripeObject + class Balance < ::Stripe::StripeObject # Funds the user can spend right now. sig { returns(T::Hash[String, Integer]) } def cash; end @@ -24,8 +24,8 @@ module Stripe @field_remappings = {} end end - class FinancialAddress < Stripe::StripeObject - class Aba < Stripe::StripeObject + class FinancialAddress < ::Stripe::StripeObject + class Aba < ::Stripe::StripeObject # The name of the person or business that owns the bank account. sig { returns(String) } def account_holder_name; end @@ -64,7 +64,7 @@ module Stripe @field_remappings = {} end end - class PlatformRestrictions < Stripe::StripeObject + class PlatformRestrictions < ::Stripe::StripeObject # Restricts all inbound money movement. sig { returns(T.nilable(String)) } def inbound_flows; end @@ -78,8 +78,8 @@ module Stripe @field_remappings = {} end end - class StatusDetails < Stripe::StripeObject - class Closed < Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject + class Closed < ::Stripe::StripeObject # The array that contains reasons for a FinancialAccount closure. sig { returns(T::Array[String]) } def reasons; end @@ -114,7 +114,7 @@ module Stripe def created; end # Encodes whether a FinancialAccount has access to a particular Feature, with a `status` enum and associated `status_details`. # Stripe or the platform can control Features via the requested field. - sig { returns(T.nilable(Stripe::Treasury::FinancialAccountFeatures)) } + sig { returns(T.nilable(::Stripe::Treasury::FinancialAccountFeatures)) } def features; end # The set of credentials that resolve to a FinancialAccount. sig { returns(T::Array[FinancialAddress]) } @@ -157,55 +157,55 @@ module Stripe def supported_currencies; end # Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero balance, has no pending InboundTransfers, and has canceled all attached Issuing cards. sig { - params(params: T.any(::Stripe::Treasury::FinancialAccountCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccount) + params(params: T.any(::Stripe::Treasury::FinancialAccountCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccount) } def close(params = {}, opts = {}); end # Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero balance, has no pending InboundTransfers, and has canceled all attached Issuing cards. sig { - params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccount) + params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccount) } def self.close(financial_account, params = {}, opts = {}); end # Creates a new FinancialAccount. Each connected account can have up to three FinancialAccounts by default. sig { - params(params: T.any(::Stripe::Treasury::FinancialAccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccount) + params(params: T.any(::Stripe::Treasury::FinancialAccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccount) } def self.create(params = {}, opts = {}); end # Returns a list of FinancialAccounts. sig { - params(params: T.any(::Stripe::Treasury::FinancialAccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::FinancialAccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Retrieves Features information associated with the FinancialAccount. sig { - params(params: T.any(::Stripe::Treasury::FinancialAccountRetrieveFeaturesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccountFeatures) + params(params: T.any(::Stripe::Treasury::FinancialAccountRetrieveFeaturesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccountFeatures) } def retrieve_features(params = {}, opts = {}); end # Retrieves Features information associated with the FinancialAccount. sig { - params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountRetrieveFeaturesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccountFeatures) + params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountRetrieveFeaturesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccountFeatures) } def self.retrieve_features(financial_account, params = {}, opts = {}); end # Updates the details of a FinancialAccount. sig { - params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccount) + params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccount) } def self.update(financial_account, params = {}, opts = {}); end # Updates the Features associated with a FinancialAccount. sig { - params(params: T.any(::Stripe::Treasury::FinancialAccountUpdateFeaturesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccountFeatures) + params(params: T.any(::Stripe::Treasury::FinancialAccountUpdateFeaturesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccountFeatures) } def update_features(params = {}, opts = {}); end # Updates the Features associated with a FinancialAccount. sig { - params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountUpdateFeaturesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccountFeatures) + params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountUpdateFeaturesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccountFeatures) } def self.update_features(financial_account, params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/treasury/financial_account_features.rbi b/rbi/stripe/resources/treasury/financial_account_features.rbi index 91d7a98b..21131e5e 100644 --- a/rbi/stripe/resources/treasury/financial_account_features.rbi +++ b/rbi/stripe/resources/treasury/financial_account_features.rbi @@ -7,8 +7,8 @@ module Stripe # Encodes whether a FinancialAccount has access to a particular Feature, with a `status` enum and associated `status_details`. # Stripe or the platform can control Features via the requested field. class FinancialAccountFeatures < APIResource - class CardIssuing < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class CardIssuing < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. sig { returns(String) } def code; end @@ -41,8 +41,8 @@ module Stripe @field_remappings = {} end end - class DepositInsurance < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class DepositInsurance < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. sig { returns(String) } def code; end @@ -75,9 +75,9 @@ module Stripe @field_remappings = {} end end - class FinancialAddresses < Stripe::StripeObject - class Aba < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class FinancialAddresses < ::Stripe::StripeObject + class Aba < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. sig { returns(String) } def code; end @@ -120,9 +120,9 @@ module Stripe @field_remappings = {} end end - class InboundTransfers < Stripe::StripeObject - class Ach < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class InboundTransfers < ::Stripe::StripeObject + class Ach < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. sig { returns(String) } def code; end @@ -165,8 +165,8 @@ module Stripe @field_remappings = {} end end - class IntraStripeFlows < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class IntraStripeFlows < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. sig { returns(String) } def code; end @@ -199,9 +199,9 @@ module Stripe @field_remappings = {} end end - class OutboundPayments < Stripe::StripeObject - class Ach < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class OutboundPayments < ::Stripe::StripeObject + class Ach < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. sig { returns(String) } def code; end @@ -234,8 +234,8 @@ module Stripe @field_remappings = {} end end - class UsDomesticWire < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class UsDomesticWire < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. sig { returns(String) } def code; end @@ -281,9 +281,9 @@ module Stripe @field_remappings = {} end end - class OutboundTransfers < Stripe::StripeObject - class Ach < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class OutboundTransfers < ::Stripe::StripeObject + class Ach < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. sig { returns(String) } def code; end @@ -316,8 +316,8 @@ module Stripe @field_remappings = {} end end - class UsDomesticWire < Stripe::StripeObject - class StatusDetail < Stripe::StripeObject + class UsDomesticWire < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject # Represents the reason why the status is `pending` or `restricted`. sig { returns(String) } def code; end diff --git a/rbi/stripe/resources/treasury/inbound_transfer.rbi b/rbi/stripe/resources/treasury/inbound_transfer.rbi index c0da9789..f257eaa3 100644 --- a/rbi/stripe/resources/treasury/inbound_transfer.rbi +++ b/rbi/stripe/resources/treasury/inbound_transfer.rbi @@ -8,7 +8,7 @@ module Stripe # # Related guide: [Moving money with Treasury using InboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) class InboundTransfer < APIResource - class FailureDetails < Stripe::StripeObject + class FailureDetails < ::Stripe::StripeObject # Reason for the failure. sig { returns(String) } def code; end @@ -19,7 +19,7 @@ module Stripe @field_remappings = {} end end - class LinkedFlows < Stripe::StripeObject + class LinkedFlows < ::Stripe::StripeObject # If funds for this flow were returned after the flow went to the `succeeded` state, this field contains a reference to the ReceivedDebit return. sig { returns(T.nilable(String)) } def received_debit; end @@ -30,9 +30,9 @@ module Stripe @field_remappings = {} end end - class OriginPaymentMethodDetails < Stripe::StripeObject - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class OriginPaymentMethodDetails < ::Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -74,7 +74,7 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -91,7 +91,7 @@ module Stripe sig { returns(T.nilable(String)) } def last4; end # ID of the mandate used to make this payment. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def mandate; end # The network rails used. See the [docs](https://stripe.com/docs/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. sig { returns(String) } @@ -122,7 +122,7 @@ module Stripe @field_remappings = {} end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # Timestamp describing when an InboundTransfer changed status to `canceled`. sig { returns(T.nilable(Integer)) } def canceled_at; end @@ -197,29 +197,29 @@ module Stripe sig { returns(StatusTransitions) } def status_transitions; end # The Transaction associated with this object. - sig { returns(T.nilable(T.any(String, Stripe::Treasury::Transaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Treasury::Transaction))) } def transaction; end # Cancels an InboundTransfer. sig { - params(params: T.any(::Stripe::Treasury::InboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::InboundTransfer) + params(params: T.any(::Stripe::Treasury::InboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::InboundTransfer) } def cancel(params = {}, opts = {}); end # Cancels an InboundTransfer. sig { - params(inbound_transfer: String, params: T.any(::Stripe::Treasury::InboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::InboundTransfer) + params(inbound_transfer: String, params: T.any(::Stripe::Treasury::InboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::InboundTransfer) } def self.cancel(inbound_transfer, params = {}, opts = {}); end # Creates an InboundTransfer. sig { - params(params: T.any(::Stripe::Treasury::InboundTransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::InboundTransfer) + params(params: T.any(::Stripe::Treasury::InboundTransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::InboundTransfer) } def self.create(params = {}, opts = {}); end # Returns a list of InboundTransfers sent from the specified FinancialAccount. sig { - params(params: T.any(::Stripe::Treasury::InboundTransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::InboundTransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/treasury/outbound_payment.rbi b/rbi/stripe/resources/treasury/outbound_payment.rbi index 94176857..df6ffd72 100644 --- a/rbi/stripe/resources/treasury/outbound_payment.rbi +++ b/rbi/stripe/resources/treasury/outbound_payment.rbi @@ -10,9 +10,9 @@ module Stripe # # Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) class OutboundPayment < APIResource - class DestinationPaymentMethodDetails < Stripe::StripeObject - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class DestinationPaymentMethodDetails < ::Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -54,7 +54,7 @@ module Stripe @field_remappings = {} end end - class FinancialAccount < Stripe::StripeObject + class FinancialAccount < ::Stripe::StripeObject # Token of the FinancialAccount. sig { returns(String) } def id; end @@ -68,7 +68,7 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -85,7 +85,7 @@ module Stripe sig { returns(T.nilable(String)) } def last4; end # ID of the mandate used to make this payment. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def mandate; end # The network rails used. See the [docs](https://stripe.com/docs/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. sig { returns(String) } @@ -123,7 +123,7 @@ module Stripe @field_remappings = {} end end - class EndUserDetails < Stripe::StripeObject + class EndUserDetails < ::Stripe::StripeObject # IP address of the user initiating the OutboundPayment. Set if `present` is set to `true`. IP address collection is required for risk and compliance reasons. This will be used to help determine if the OutboundPayment is authorized or should be blocked. sig { returns(T.nilable(String)) } def ip_address; end @@ -137,12 +137,12 @@ module Stripe @field_remappings = {} end end - class ReturnedDetails < Stripe::StripeObject + class ReturnedDetails < ::Stripe::StripeObject # Reason for the return. sig { returns(String) } def code; end # The Transaction associated with this object. - sig { returns(T.any(String, Stripe::Treasury::Transaction)) } + sig { returns(T.any(String, ::Stripe::Treasury::Transaction)) } def transaction; end def self.inner_class_types @inner_class_types = {} @@ -151,7 +151,7 @@ module Stripe @field_remappings = {} end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # Timestamp describing when an OutboundPayment changed status to `canceled`. sig { returns(T.nilable(Integer)) } def canceled_at; end @@ -171,8 +171,8 @@ module Stripe @field_remappings = {} end end - class TrackingDetails < Stripe::StripeObject - class Ach < Stripe::StripeObject + class TrackingDetails < ::Stripe::StripeObject + class Ach < ::Stripe::StripeObject # ACH trace ID of the OutboundPayment for payments sent over the `ach` network. sig { returns(String) } def trace_id; end @@ -183,7 +183,7 @@ module Stripe @field_remappings = {} end end - class UsDomesticWire < Stripe::StripeObject + class UsDomesticWire < ::Stripe::StripeObject # CHIPS System Sequence Number (SSN) of the OutboundPayment for payments sent over the `us_domestic_wire` network. sig { returns(T.nilable(String)) } def chips; end @@ -280,29 +280,29 @@ module Stripe sig { returns(T.nilable(TrackingDetails)) } def tracking_details; end # The Transaction associated with this object. - sig { returns(T.any(String, Stripe::Treasury::Transaction)) } + sig { returns(T.any(String, ::Stripe::Treasury::Transaction)) } def transaction; end # Cancel an OutboundPayment. sig { - params(params: T.any(::Stripe::Treasury::OutboundPaymentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundPayment) + params(params: T.any(::Stripe::Treasury::OutboundPaymentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundPayment) } def cancel(params = {}, opts = {}); end # Cancel an OutboundPayment. sig { - params(id: String, params: T.any(::Stripe::Treasury::OutboundPaymentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundPayment) + params(id: String, params: T.any(::Stripe::Treasury::OutboundPaymentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundPayment) } def self.cancel(id, params = {}, opts = {}); end # Creates an OutboundPayment. sig { - params(params: T.any(::Stripe::Treasury::OutboundPaymentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundPayment) + params(params: T.any(::Stripe::Treasury::OutboundPaymentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundPayment) } def self.create(params = {}, opts = {}); end # Returns a list of OutboundPayments sent from the specified FinancialAccount. sig { - params(params: T.any(::Stripe::Treasury::OutboundPaymentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::OutboundPaymentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/treasury/outbound_transfer.rbi b/rbi/stripe/resources/treasury/outbound_transfer.rbi index aa5e46f6..176d918d 100644 --- a/rbi/stripe/resources/treasury/outbound_transfer.rbi +++ b/rbi/stripe/resources/treasury/outbound_transfer.rbi @@ -10,9 +10,9 @@ module Stripe # # Related guide: [Moving money with Treasury using OutboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) class OutboundTransfer < APIResource - class DestinationPaymentMethodDetails < Stripe::StripeObject - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class DestinationPaymentMethodDetails < ::Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -54,7 +54,7 @@ module Stripe @field_remappings = {} end end - class FinancialAccount < Stripe::StripeObject + class FinancialAccount < ::Stripe::StripeObject # Token of the FinancialAccount. sig { returns(String) } def id; end @@ -68,7 +68,7 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject # Account holder type: individual or company. sig { returns(T.nilable(String)) } def account_holder_type; end @@ -85,7 +85,7 @@ module Stripe sig { returns(T.nilable(String)) } def last4; end # ID of the mandate used to make this payment. - sig { returns(T.nilable(T.any(String, Stripe::Mandate))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Mandate))) } def mandate; end # The network rails used. See the [docs](https://stripe.com/docs/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. sig { returns(String) } @@ -123,12 +123,12 @@ module Stripe @field_remappings = {} end end - class ReturnedDetails < Stripe::StripeObject + class ReturnedDetails < ::Stripe::StripeObject # Reason for the return. sig { returns(String) } def code; end # The Transaction associated with this object. - sig { returns(T.any(String, Stripe::Treasury::Transaction)) } + sig { returns(T.any(String, ::Stripe::Treasury::Transaction)) } def transaction; end def self.inner_class_types @inner_class_types = {} @@ -137,7 +137,7 @@ module Stripe @field_remappings = {} end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # Timestamp describing when an OutboundTransfer changed status to `canceled` sig { returns(T.nilable(Integer)) } def canceled_at; end @@ -157,8 +157,8 @@ module Stripe @field_remappings = {} end end - class TrackingDetails < Stripe::StripeObject - class Ach < Stripe::StripeObject + class TrackingDetails < ::Stripe::StripeObject + class Ach < ::Stripe::StripeObject # ACH trace ID of the OutboundTransfer for transfers sent over the `ach` network. sig { returns(String) } def trace_id; end @@ -169,7 +169,7 @@ module Stripe @field_remappings = {} end end - class UsDomesticWire < Stripe::StripeObject + class UsDomesticWire < ::Stripe::StripeObject # CHIPS System Sequence Number (SSN) of the OutboundTransfer for transfers sent over the `us_domestic_wire` network. sig { returns(T.nilable(String)) } def chips; end @@ -260,29 +260,29 @@ module Stripe sig { returns(T.nilable(TrackingDetails)) } def tracking_details; end # The Transaction associated with this object. - sig { returns(T.any(String, Stripe::Treasury::Transaction)) } + sig { returns(T.any(String, ::Stripe::Treasury::Transaction)) } def transaction; end # An OutboundTransfer can be canceled if the funds have not yet been paid out. sig { - params(params: T.any(::Stripe::Treasury::OutboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundTransfer) + params(params: T.any(::Stripe::Treasury::OutboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundTransfer) } def cancel(params = {}, opts = {}); end # An OutboundTransfer can be canceled if the funds have not yet been paid out. sig { - params(outbound_transfer: String, params: T.any(::Stripe::Treasury::OutboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundTransfer) + params(outbound_transfer: String, params: T.any(::Stripe::Treasury::OutboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundTransfer) } def self.cancel(outbound_transfer, params = {}, opts = {}); end # Creates an OutboundTransfer. sig { - params(params: T.any(::Stripe::Treasury::OutboundTransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundTransfer) + params(params: T.any(::Stripe::Treasury::OutboundTransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundTransfer) } def self.create(params = {}, opts = {}); end # Returns a list of OutboundTransfers sent from the specified FinancialAccount. sig { - params(params: T.any(::Stripe::Treasury::OutboundTransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::OutboundTransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/treasury/received_credit.rbi b/rbi/stripe/resources/treasury/received_credit.rbi index 0b1a223f..2a973101 100644 --- a/rbi/stripe/resources/treasury/received_credit.rbi +++ b/rbi/stripe/resources/treasury/received_credit.rbi @@ -6,9 +6,9 @@ module Stripe module Treasury # ReceivedCredits represent funds sent to a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) (for example, via ACH or wire). These money movements are not initiated from the FinancialAccount. class ReceivedCredit < APIResource - class InitiatingPaymentMethodDetails < Stripe::StripeObject - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class InitiatingPaymentMethodDetails < ::Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -50,7 +50,7 @@ module Stripe @field_remappings = {} end end - class FinancialAccount < Stripe::StripeObject + class FinancialAccount < ::Stripe::StripeObject # The FinancialAccount ID. sig { returns(String) } def id; end @@ -64,7 +64,7 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject # Bank name. sig { returns(T.nilable(String)) } def bank_name; end @@ -110,24 +110,24 @@ module Stripe @field_remappings = {} end end - class LinkedFlows < Stripe::StripeObject - class SourceFlowDetails < Stripe::StripeObject + class LinkedFlows < ::Stripe::StripeObject + class SourceFlowDetails < ::Stripe::StripeObject # You can reverse some [ReceivedCredits](https://stripe.com/docs/api#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. - sig { returns(T.nilable(Stripe::Treasury::CreditReversal)) } + sig { returns(T.nilable(::Stripe::Treasury::CreditReversal)) } def credit_reversal; end # Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers). # # Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects. # # Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) - sig { returns(T.nilable(Stripe::Treasury::OutboundPayment)) } + sig { returns(T.nilable(::Stripe::Treasury::OutboundPayment)) } def outbound_payment; end # Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account. # # Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects. # # Related guide: [Moving money with Treasury using OutboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) - sig { returns(T.nilable(Stripe::Treasury::OutboundTransfer)) } + sig { returns(T.nilable(::Stripe::Treasury::OutboundTransfer)) } def outbound_transfer; end # A `Payout` object is created when you receive funds from Stripe, or when you # initiate a payout to either a bank account or debit card of a [connected @@ -137,7 +137,7 @@ module Stripe # industry. # # Related guide: [Receiving payouts](https://stripe.com/docs/payouts) - sig { returns(T.nilable(Stripe::Payout)) } + sig { returns(T.nilable(::Stripe::Payout)) } def payout; end # The type of the source flow that originated the ReceivedCredit. sig { returns(String) } @@ -174,7 +174,7 @@ module Stripe @field_remappings = {} end end - class ReversalDetails < Stripe::StripeObject + class ReversalDetails < ::Stripe::StripeObject # Time before which a ReceivedCredit can be reversed. sig { returns(T.nilable(Integer)) } def deadline; end @@ -234,11 +234,11 @@ module Stripe sig { returns(String) } def status; end # The Transaction associated with this object. - sig { returns(T.nilable(T.any(String, Stripe::Treasury::Transaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Treasury::Transaction))) } def transaction; end # Returns a list of ReceivedCredits. sig { - params(params: T.any(::Stripe::Treasury::ReceivedCreditListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::ReceivedCreditListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/treasury/received_debit.rbi b/rbi/stripe/resources/treasury/received_debit.rbi index 4bd754b6..cfbe17bb 100644 --- a/rbi/stripe/resources/treasury/received_debit.rbi +++ b/rbi/stripe/resources/treasury/received_debit.rbi @@ -6,9 +6,9 @@ module Stripe module Treasury # ReceivedDebits represent funds pulled from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts). These are not initiated from the FinancialAccount. class ReceivedDebit < APIResource - class InitiatingPaymentMethodDetails < Stripe::StripeObject - class BillingDetails < Stripe::StripeObject - class Address < Stripe::StripeObject + class InitiatingPaymentMethodDetails < ::Stripe::StripeObject + class BillingDetails < ::Stripe::StripeObject + class Address < ::Stripe::StripeObject # City, district, suburb, town, or village. sig { returns(T.nilable(String)) } def city; end @@ -50,7 +50,7 @@ module Stripe @field_remappings = {} end end - class FinancialAccount < Stripe::StripeObject + class FinancialAccount < ::Stripe::StripeObject # The FinancialAccount ID. sig { returns(String) } def id; end @@ -64,7 +64,7 @@ module Stripe @field_remappings = {} end end - class UsBankAccount < Stripe::StripeObject + class UsBankAccount < ::Stripe::StripeObject # Bank name. sig { returns(T.nilable(String)) } def bank_name; end @@ -110,7 +110,7 @@ module Stripe @field_remappings = {} end end - class LinkedFlows < Stripe::StripeObject + class LinkedFlows < ::Stripe::StripeObject # The DebitReversal created as a result of this ReceivedDebit being reversed. sig { returns(T.nilable(String)) } def debit_reversal; end @@ -133,7 +133,7 @@ module Stripe @field_remappings = {} end end - class ReversalDetails < Stripe::StripeObject + class ReversalDetails < ::Stripe::StripeObject # Time before which a ReceivedDebit can be reversed. sig { returns(T.nilable(Integer)) } def deadline; end @@ -193,11 +193,11 @@ module Stripe sig { returns(String) } def status; end # The Transaction associated with this object. - sig { returns(T.nilable(T.any(String, Stripe::Treasury::Transaction))) } + sig { returns(T.nilable(T.any(String, ::Stripe::Treasury::Transaction))) } def transaction; end # Returns a list of ReceivedDebits. sig { - params(params: T.any(::Stripe::Treasury::ReceivedDebitListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::ReceivedDebitListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/treasury/transaction.rbi b/rbi/stripe/resources/treasury/transaction.rbi index 82d1b697..ec6b5515 100644 --- a/rbi/stripe/resources/treasury/transaction.rbi +++ b/rbi/stripe/resources/treasury/transaction.rbi @@ -6,7 +6,7 @@ module Stripe module Treasury # Transactions represent changes to a [FinancialAccount's](https://stripe.com/docs/api#financial_accounts) balance. class Transaction < APIResource - class BalanceImpact < Stripe::StripeObject + class BalanceImpact < ::Stripe::StripeObject # The change made to funds the user can spend right now. sig { returns(Integer) } def cash; end @@ -23,44 +23,44 @@ module Stripe @field_remappings = {} end end - class FlowDetails < Stripe::StripeObject + class FlowDetails < ::Stripe::StripeObject # You can reverse some [ReceivedCredits](https://stripe.com/docs/api#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. - sig { returns(T.nilable(Stripe::Treasury::CreditReversal)) } + sig { returns(T.nilable(::Stripe::Treasury::CreditReversal)) } def credit_reversal; end # You can reverse some [ReceivedDebits](https://stripe.com/docs/api#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal. - sig { returns(T.nilable(Stripe::Treasury::DebitReversal)) } + sig { returns(T.nilable(::Stripe::Treasury::DebitReversal)) } def debit_reversal; end # Use [InboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit. # # Related guide: [Moving money with Treasury using InboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) - sig { returns(T.nilable(Stripe::Treasury::InboundTransfer)) } + sig { returns(T.nilable(::Stripe::Treasury::InboundTransfer)) } def inbound_transfer; end # When an [issued card](https://stripe.com/docs/issuing) is used to make a purchase, an Issuing `Authorization` # object is created. [Authorizations](https://stripe.com/docs/issuing/purchases/authorizations) must be approved for the # purchase to be completed successfully. # # Related guide: [Issued card authorizations](https://stripe.com/docs/issuing/purchases/authorizations) - sig { returns(T.nilable(Stripe::Issuing::Authorization)) } + sig { returns(T.nilable(::Stripe::Issuing::Authorization)) } def issuing_authorization; end # Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers). # # Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects. # # Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) - sig { returns(T.nilable(Stripe::Treasury::OutboundPayment)) } + sig { returns(T.nilable(::Stripe::Treasury::OutboundPayment)) } def outbound_payment; end # Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account. # # Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects. # # Related guide: [Moving money with Treasury using OutboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) - sig { returns(T.nilable(Stripe::Treasury::OutboundTransfer)) } + sig { returns(T.nilable(::Stripe::Treasury::OutboundTransfer)) } def outbound_transfer; end # ReceivedCredits represent funds sent to a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) (for example, via ACH or wire). These money movements are not initiated from the FinancialAccount. - sig { returns(T.nilable(Stripe::Treasury::ReceivedCredit)) } + sig { returns(T.nilable(::Stripe::Treasury::ReceivedCredit)) } def received_credit; end # ReceivedDebits represent funds pulled from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts). These are not initiated from the FinancialAccount. - sig { returns(T.nilable(Stripe::Treasury::ReceivedDebit)) } + sig { returns(T.nilable(::Stripe::Treasury::ReceivedDebit)) } def received_debit; end # Type of the flow that created the Transaction. Set to the same value as `flow_type`. sig { returns(String) } @@ -72,7 +72,7 @@ module Stripe @field_remappings = {} end end - class StatusTransitions < Stripe::StripeObject + class StatusTransitions < ::Stripe::StripeObject # Timestamp describing when the Transaction changed status to `posted`. sig { returns(T.nilable(Integer)) } def posted_at; end @@ -102,7 +102,7 @@ module Stripe sig { returns(String) } def description; end # A list of TransactionEntries that are part of this Transaction. This cannot be expanded in any list endpoints. - sig { returns(T.nilable(Stripe::ListObject)) } + sig { returns(T.nilable(::Stripe::ListObject)) } def entries; end # The FinancialAccount associated with this object. sig { returns(String) } @@ -133,7 +133,7 @@ module Stripe def status_transitions; end # Retrieves a list of Transaction objects. sig { - params(params: T.any(::Stripe::Treasury::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/treasury/transaction_entry.rbi b/rbi/stripe/resources/treasury/transaction_entry.rbi index 77421e4d..b4f09e9d 100644 --- a/rbi/stripe/resources/treasury/transaction_entry.rbi +++ b/rbi/stripe/resources/treasury/transaction_entry.rbi @@ -6,7 +6,7 @@ module Stripe module Treasury # TransactionEntries represent individual units of money movements within a single [Transaction](https://stripe.com/docs/api#transactions). class TransactionEntry < APIResource - class BalanceImpact < Stripe::StripeObject + class BalanceImpact < ::Stripe::StripeObject # The change made to funds the user can spend right now. sig { returns(Integer) } def cash; end @@ -23,44 +23,44 @@ module Stripe @field_remappings = {} end end - class FlowDetails < Stripe::StripeObject + class FlowDetails < ::Stripe::StripeObject # You can reverse some [ReceivedCredits](https://stripe.com/docs/api#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. - sig { returns(T.nilable(Stripe::Treasury::CreditReversal)) } + sig { returns(T.nilable(::Stripe::Treasury::CreditReversal)) } def credit_reversal; end # You can reverse some [ReceivedDebits](https://stripe.com/docs/api#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal. - sig { returns(T.nilable(Stripe::Treasury::DebitReversal)) } + sig { returns(T.nilable(::Stripe::Treasury::DebitReversal)) } def debit_reversal; end # Use [InboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit. # # Related guide: [Moving money with Treasury using InboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) - sig { returns(T.nilable(Stripe::Treasury::InboundTransfer)) } + sig { returns(T.nilable(::Stripe::Treasury::InboundTransfer)) } def inbound_transfer; end # When an [issued card](https://stripe.com/docs/issuing) is used to make a purchase, an Issuing `Authorization` # object is created. [Authorizations](https://stripe.com/docs/issuing/purchases/authorizations) must be approved for the # purchase to be completed successfully. # # Related guide: [Issued card authorizations](https://stripe.com/docs/issuing/purchases/authorizations) - sig { returns(T.nilable(Stripe::Issuing::Authorization)) } + sig { returns(T.nilable(::Stripe::Issuing::Authorization)) } def issuing_authorization; end # Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers). # # Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects. # # Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) - sig { returns(T.nilable(Stripe::Treasury::OutboundPayment)) } + sig { returns(T.nilable(::Stripe::Treasury::OutboundPayment)) } def outbound_payment; end # Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account. # # Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects. # # Related guide: [Moving money with Treasury using OutboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) - sig { returns(T.nilable(Stripe::Treasury::OutboundTransfer)) } + sig { returns(T.nilable(::Stripe::Treasury::OutboundTransfer)) } def outbound_transfer; end # ReceivedCredits represent funds sent to a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) (for example, via ACH or wire). These money movements are not initiated from the FinancialAccount. - sig { returns(T.nilable(Stripe::Treasury::ReceivedCredit)) } + sig { returns(T.nilable(::Stripe::Treasury::ReceivedCredit)) } def received_credit; end # ReceivedDebits represent funds pulled from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts). These are not initiated from the FinancialAccount. - sig { returns(T.nilable(Stripe::Treasury::ReceivedDebit)) } + sig { returns(T.nilable(::Stripe::Treasury::ReceivedDebit)) } def received_debit; end # Type of the flow that created the Transaction. Set to the same value as `flow_type`. sig { returns(String) } @@ -106,14 +106,14 @@ module Stripe sig { returns(String) } def object; end # The Transaction associated with this object. - sig { returns(T.any(String, Stripe::Treasury::Transaction)) } + sig { returns(T.any(String, ::Stripe::Treasury::Transaction)) } def transaction; end # The specific money movement that generated the TransactionEntry. sig { returns(String) } def type; end # Retrieves a list of TransactionEntry objects. sig { - params(params: T.any(::Stripe::Treasury::TransactionEntryListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::TransactionEntryListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end end diff --git a/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi b/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi index dfb6785c..adf288ea 100644 --- a/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +++ b/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi @@ -6,7 +6,7 @@ module Stripe module V2 module Billing class MeterEventAdjustment < APIResource - class Cancel < Stripe::StripeObject + class Cancel < ::Stripe::StripeObject # Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them. sig { returns(String) } def identifier; end diff --git a/rbi/stripe/resources/v2/core/event.rbi b/rbi/stripe/resources/v2/core/event.rbi index 53dbfaa5..327465bc 100644 --- a/rbi/stripe/resources/v2/core/event.rbi +++ b/rbi/stripe/resources/v2/core/event.rbi @@ -7,8 +7,8 @@ module Stripe module Core # Events are generated to keep you informed of activity in your business account. APIs in the /v2 namespace generate [thin events](https://docs.stripe.com/event-destinations#benefits-of-thin-events) which have small, unversioned payloads that include a reference to the ID of the object that has changed. The Events v2 API returns these new thin events. [Retrieve the event object](https://docs.stripe.com/event-destinations#fetch-data) for additional data about the event. Use the related object ID in the event payload to [fetch the API resource](https://docs.stripe.com/event-destinations#retrieve-the-object-associated-with-thin-events) of the object associated with the event. Comparatively, events generated by most API v1 include a versioned snapshot of an API object in their payload. class Event < APIResource - class Reason < Stripe::StripeObject - class Request < Stripe::StripeObject + class Reason < ::Stripe::StripeObject + class Request < ::Stripe::StripeObject # ID of the API request that caused the event. sig { returns(String) } def id; end diff --git a/rbi/stripe/resources/v2/core/event_destination.rbi b/rbi/stripe/resources/v2/core/event_destination.rbi index 6d4b0ff8..2d6d5a59 100644 --- a/rbi/stripe/resources/v2/core/event_destination.rbi +++ b/rbi/stripe/resources/v2/core/event_destination.rbi @@ -7,8 +7,8 @@ module Stripe module Core # Set up an event destination to receive events from Stripe across multiple destination types, including [webhook endpoints](https://docs.stripe.com/webhooks) and [Amazon EventBridge](https://docs.stripe.com/event-destinations/eventbridge). Event destinations support receiving [thin events](https://docs.stripe.com/api/v2/events) and [snapshot events](https://docs.stripe.com/api/events). class EventDestination < APIResource - class StatusDetails < Stripe::StripeObject - class Disabled < Stripe::StripeObject + class StatusDetails < ::Stripe::StripeObject + class Disabled < ::Stripe::StripeObject # Reason event destination has been disabled. sig { returns(String) } def reason; end @@ -29,7 +29,7 @@ module Stripe @field_remappings = {} end end - class AmazonEventbridge < Stripe::StripeObject + class AmazonEventbridge < ::Stripe::StripeObject # The AWS account ID. sig { returns(String) } def aws_account_id; end @@ -46,7 +46,7 @@ module Stripe @field_remappings = {} end end - class WebhookEndpoint < Stripe::StripeObject + class WebhookEndpoint < ::Stripe::StripeObject # The signing secret of the webhook endpoint, only includable on creation. sig { returns(T.nilable(String)) } def signing_secret; end diff --git a/rbi/stripe/resources/webhook_endpoint.rbi b/rbi/stripe/resources/webhook_endpoint.rbi index 803850ca..363a7fb2 100644 --- a/rbi/stripe/resources/webhook_endpoint.rbi +++ b/rbi/stripe/resources/webhook_endpoint.rbi @@ -52,31 +52,31 @@ module Stripe def deleted; end # A webhook endpoint must have a url and a list of enabled_events. You may optionally specify the Boolean connect parameter. If set to true, then a Connect webhook endpoint that notifies the specified url about events from all connected accounts is created; otherwise an account webhook endpoint that notifies the specified url only about events from your account is created. You can also create webhook endpoints in the [webhooks settings](https://dashboard.stripe.com/account/webhooks) section of the Dashboard. sig { - params(params: T.any(::Stripe::WebhookEndpointCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::WebhookEndpoint) + params(params: T.any(::Stripe::WebhookEndpointCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::WebhookEndpoint) } def self.create(params = {}, opts = {}); end # You can also delete webhook endpoints via the [webhook endpoint management](https://dashboard.stripe.com/account/webhooks) page of the Stripe dashboard. sig { - params(webhook_endpoint: String, params: T.any(::Stripe::WebhookEndpointDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::WebhookEndpoint) + params(webhook_endpoint: String, params: T.any(::Stripe::WebhookEndpointDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::WebhookEndpoint) } def self.delete(webhook_endpoint, params = {}, opts = {}); end # You can also delete webhook endpoints via the [webhook endpoint management](https://dashboard.stripe.com/account/webhooks) page of the Stripe dashboard. sig { - params(params: T.any(::Stripe::WebhookEndpointDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::WebhookEndpoint) + params(params: T.any(::Stripe::WebhookEndpointDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::WebhookEndpoint) } def delete(params = {}, opts = {}); end # Returns a list of your webhook endpoints. sig { - params(params: T.any(::Stripe::WebhookEndpointListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::WebhookEndpointListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def self.list(params = {}, opts = {}); end # Updates the webhook endpoint. You may edit the url, the list of enabled_events, and the status of your endpoint. sig { - params(webhook_endpoint: String, params: T.any(::Stripe::WebhookEndpointUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::WebhookEndpoint) + params(webhook_endpoint: String, params: T.any(::Stripe::WebhookEndpointUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::WebhookEndpoint) } def self.update(webhook_endpoint, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/account_capability_service.rbi b/rbi/stripe/services/account_capability_service.rbi index 606201d1..6d3b9a96 100644 --- a/rbi/stripe/services/account_capability_service.rbi +++ b/rbi/stripe/services/account_capability_service.rbi @@ -6,19 +6,19 @@ module Stripe class AccountCapabilityService < StripeService # Returns a list of capabilities associated with the account. The capabilities are returned sorted by creation date, with the most recent capability appearing first. sig { - params(account: String, params: T.any(::Stripe::AccountCapabilityListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(account: String, params: T.any(::Stripe::AccountCapabilityListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(account, params = {}, opts = {}); end # Retrieves information about the specified Account Capability. sig { - params(account: String, capability: String, params: T.any(::Stripe::AccountCapabilityRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Capability) + params(account: String, capability: String, params: T.any(::Stripe::AccountCapabilityRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Capability) } def retrieve(account, capability, params = {}, opts = {}); end # Updates an existing Account Capability. Request or remove a capability by updating its requested parameter. sig { - params(account: String, capability: String, params: T.any(::Stripe::AccountCapabilityUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Capability) + params(account: String, capability: String, params: T.any(::Stripe::AccountCapabilityUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Capability) } def update(account, capability, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/account_external_account_service.rbi b/rbi/stripe/services/account_external_account_service.rbi index 87c5badb..8b488728 100644 --- a/rbi/stripe/services/account_external_account_service.rbi +++ b/rbi/stripe/services/account_external_account_service.rbi @@ -6,25 +6,25 @@ module Stripe class AccountExternalAccountService < StripeService # Create an external account for a given account. sig { - params(account: String, params: T.any(::Stripe::AccountExternalAccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(Stripe::BankAccount, Stripe::Card)) + params(account: String, params: T.any(::Stripe::AccountExternalAccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(::Stripe::BankAccount, ::Stripe::Card)) } def create(account, params = {}, opts = {}); end # Delete a specified external account for a given account. sig { - params(account: String, id: String, params: T.any(::Stripe::AccountExternalAccountDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(Stripe::BankAccount, Stripe::Card)) + params(account: String, id: String, params: T.any(::Stripe::AccountExternalAccountDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(::Stripe::BankAccount, ::Stripe::Card)) } def delete(account, id, params = {}, opts = {}); end # List external accounts for an account. sig { - params(account: String, params: T.any(::Stripe::AccountExternalAccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(account: String, params: T.any(::Stripe::AccountExternalAccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(account, params = {}, opts = {}); end # Retrieve a specified external account for a given account. sig { - params(account: String, id: String, params: T.any(::Stripe::AccountExternalAccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(Stripe::BankAccount, Stripe::Card)) + params(account: String, id: String, params: T.any(::Stripe::AccountExternalAccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(::Stripe::BankAccount, ::Stripe::Card)) } def retrieve(account, id, params = {}, opts = {}); end @@ -37,7 +37,7 @@ module Stripe # You can re-enable a disabled bank account by performing an update call without providing any # arguments or changes. sig { - params(account: String, id: String, params: T.any(::Stripe::AccountExternalAccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(Stripe::BankAccount, Stripe::Card)) + params(account: String, id: String, params: T.any(::Stripe::AccountExternalAccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(::Stripe::BankAccount, ::Stripe::Card)) } def update(account, id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/account_link_service.rbi b/rbi/stripe/services/account_link_service.rbi index b862451b..f6410b77 100644 --- a/rbi/stripe/services/account_link_service.rbi +++ b/rbi/stripe/services/account_link_service.rbi @@ -6,7 +6,7 @@ module Stripe class AccountLinkService < StripeService # Creates an AccountLink object that includes a single-use Stripe URL that the platform can redirect their user to in order to take them through the Connect Onboarding flow. sig { - params(params: T.any(::Stripe::AccountLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::AccountLink) + params(params: T.any(::Stripe::AccountLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::AccountLink) } def create(params = {}, opts = {}); end end diff --git a/rbi/stripe/services/account_login_link_service.rbi b/rbi/stripe/services/account_login_link_service.rbi index 3833a118..d5266904 100644 --- a/rbi/stripe/services/account_login_link_service.rbi +++ b/rbi/stripe/services/account_login_link_service.rbi @@ -8,7 +8,7 @@ module Stripe # # You can only create login links for accounts that use the [Express Dashboard](https://docs.stripe.com/connect/express-dashboard) and are connected to your platform. sig { - params(account: String, params: T.any(::Stripe::AccountLoginLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::LoginLink) + params(account: String, params: T.any(::Stripe::AccountLoginLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::LoginLink) } def create(account, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/account_person_service.rbi b/rbi/stripe/services/account_person_service.rbi index a7f9ac43..26fb3625 100644 --- a/rbi/stripe/services/account_person_service.rbi +++ b/rbi/stripe/services/account_person_service.rbi @@ -6,31 +6,31 @@ module Stripe class AccountPersonService < StripeService # Creates a new person. sig { - params(account: String, params: T.any(::Stripe::AccountPersonCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Person) + params(account: String, params: T.any(::Stripe::AccountPersonCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Person) } def create(account, params = {}, opts = {}); end # Deletes an existing person's relationship to the account's legal entity. Any person with a relationship for an account can be deleted through the API, except if the person is the account_opener. If your integration is using the executive parameter, you cannot delete the only verified executive on file. sig { - params(account: String, person: String, params: T.any(::Stripe::AccountPersonDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Person) + params(account: String, person: String, params: T.any(::Stripe::AccountPersonDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Person) } def delete(account, person, params = {}, opts = {}); end # Returns a list of people associated with the account's legal entity. The people are returned sorted by creation date, with the most recent people appearing first. sig { - params(account: String, params: T.any(::Stripe::AccountPersonListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(account: String, params: T.any(::Stripe::AccountPersonListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(account, params = {}, opts = {}); end # Retrieves an existing person. sig { - params(account: String, person: String, params: T.any(::Stripe::AccountPersonRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Person) + params(account: String, person: String, params: T.any(::Stripe::AccountPersonRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Person) } def retrieve(account, person, params = {}, opts = {}); end # Updates an existing person. sig { - params(account: String, person: String, params: T.any(::Stripe::AccountPersonUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Person) + params(account: String, person: String, params: T.any(::Stripe::AccountPersonUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Person) } def update(account, person, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/account_service.rbi b/rbi/stripe/services/account_service.rbi index fadcd5c1..7a428981 100644 --- a/rbi/stripe/services/account_service.rbi +++ b/rbi/stripe/services/account_service.rbi @@ -15,7 +15,7 @@ module Stripe # creating the account. Connect Onboarding won't ask for the prefilled information during account onboarding. # You can prefill any information on the account. sig { - params(params: T.any(::Stripe::AccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(params: T.any(::Stripe::AccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def create(params = {}, opts = {}); end @@ -27,13 +27,13 @@ module Stripe # # If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead. sig { - params(account: String, params: T.any(::Stripe::AccountDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(account: String, params: T.any(::Stripe::AccountDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def delete(account, params = {}, opts = {}); end # Returns a list of accounts connected to your platform via [Connect](https://docs.stripe.com/docs/connect). If you're not a platform, the list is empty. sig { - params(params: T.any(::Stripe::AccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::AccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end @@ -41,19 +41,19 @@ module Stripe # # Only accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time. Live-mode accounts can only be rejected after all balances are zero. sig { - params(account: String, params: T.any(::Stripe::AccountRejectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(account: String, params: T.any(::Stripe::AccountRejectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def reject(account, params = {}, opts = {}); end # Retrieves the details of an account. sig { - params(account: String, params: T.any(::Stripe::AccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(account: String, params: T.any(::Stripe::AccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def retrieve(account, params = {}, opts = {}); end # Retrieves the details of an account. sig { - params(params: T.any(::Stripe::AccountRetrieveCurrentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(params: T.any(::Stripe::AccountRetrieveCurrentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def retrieve_current(params = {}, opts = {}); end @@ -71,7 +71,7 @@ module Stripe # To update your own account, use the [Dashboard](https://dashboard.stripe.com/settings/account). Refer to our # [Connect](https://docs.stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts. sig { - params(account: String, params: T.any(::Stripe::AccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Account) + params(account: String, params: T.any(::Stripe::AccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Account) } def update(account, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/account_session_service.rbi b/rbi/stripe/services/account_session_service.rbi index 648190b3..22c6c1e5 100644 --- a/rbi/stripe/services/account_session_service.rbi +++ b/rbi/stripe/services/account_session_service.rbi @@ -6,7 +6,7 @@ module Stripe class AccountSessionService < StripeService # Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access. sig { - params(params: T.any(::Stripe::AccountSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::AccountSession) + params(params: T.any(::Stripe::AccountSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::AccountSession) } def create(params = {}, opts = {}); end end diff --git a/rbi/stripe/services/apple_pay_domain_service.rbi b/rbi/stripe/services/apple_pay_domain_service.rbi index df86dff2..94d96cad 100644 --- a/rbi/stripe/services/apple_pay_domain_service.rbi +++ b/rbi/stripe/services/apple_pay_domain_service.rbi @@ -6,25 +6,25 @@ module Stripe class ApplePayDomainService < StripeService # Create an apple pay domain. sig { - params(params: T.any(::Stripe::ApplePayDomainCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ApplePayDomain) + params(params: T.any(::Stripe::ApplePayDomainCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ApplePayDomain) } def create(params = {}, opts = {}); end # Delete an apple pay domain. sig { - params(domain: String, params: T.any(::Stripe::ApplePayDomainDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ApplePayDomain) + params(domain: String, params: T.any(::Stripe::ApplePayDomainDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ApplePayDomain) } def delete(domain, params = {}, opts = {}); end # List apple pay domains. sig { - params(params: T.any(::Stripe::ApplePayDomainListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ApplePayDomainListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieve an apple pay domain. sig { - params(domain: String, params: T.any(::Stripe::ApplePayDomainRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ApplePayDomain) + params(domain: String, params: T.any(::Stripe::ApplePayDomainRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ApplePayDomain) } def retrieve(domain, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/application_fee_refund_service.rbi b/rbi/stripe/services/application_fee_refund_service.rbi index 86e7ce8e..6c071cb8 100644 --- a/rbi/stripe/services/application_fee_refund_service.rbi +++ b/rbi/stripe/services/application_fee_refund_service.rbi @@ -14,19 +14,19 @@ module Stripe # This method will raise an error when called on an already-refunded application fee, # or when trying to refund more money than is left on an application fee. sig { - params(id: String, params: T.any(::Stripe::ApplicationFeeRefundCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ApplicationFeeRefund) + params(id: String, params: T.any(::Stripe::ApplicationFeeRefundCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ApplicationFeeRefund) } def create(id, params = {}, opts = {}); end # You can see a list of the refunds belonging to a specific application fee. Note that the 10 most recent refunds are always available by default on the application fee object. If you need more than those 10, you can use this API method and the limit and starting_after parameters to page through additional refunds. sig { - params(id: String, params: T.any(::Stripe::ApplicationFeeRefundListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(id: String, params: T.any(::Stripe::ApplicationFeeRefundListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(id, params = {}, opts = {}); end # By default, you can see the 10 most recent refunds stored directly on the application fee object, but you can also retrieve details about a specific refund stored on the application fee. sig { - params(fee: String, id: String, params: T.any(::Stripe::ApplicationFeeRefundRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ApplicationFeeRefund) + params(fee: String, id: String, params: T.any(::Stripe::ApplicationFeeRefundRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ApplicationFeeRefund) } def retrieve(fee, id, params = {}, opts = {}); end @@ -34,7 +34,7 @@ module Stripe # # This request only accepts metadata as an argument. sig { - params(fee: String, id: String, params: T.any(::Stripe::ApplicationFeeRefundUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ApplicationFeeRefund) + params(fee: String, id: String, params: T.any(::Stripe::ApplicationFeeRefundUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ApplicationFeeRefund) } def update(fee, id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/application_fee_service.rbi b/rbi/stripe/services/application_fee_service.rbi index 6499f80f..0ce577a7 100644 --- a/rbi/stripe/services/application_fee_service.rbi +++ b/rbi/stripe/services/application_fee_service.rbi @@ -7,13 +7,13 @@ module Stripe attr_reader :refunds # Returns a list of application fees you've previously collected. The application fees are returned in sorted order, with the most recent fees appearing first. sig { - params(params: T.any(::Stripe::ApplicationFeeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ApplicationFeeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an application fee that your account has collected. The same information is returned when refunding the application fee. sig { - params(id: String, params: T.any(::Stripe::ApplicationFeeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ApplicationFee) + params(id: String, params: T.any(::Stripe::ApplicationFeeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ApplicationFee) } def retrieve(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/apps/secret_service.rbi b/rbi/stripe/services/apps/secret_service.rbi index 0c59bf50..084e16f2 100644 --- a/rbi/stripe/services/apps/secret_service.rbi +++ b/rbi/stripe/services/apps/secret_service.rbi @@ -7,25 +7,25 @@ module Stripe class SecretService < StripeService # Create or replace a secret in the secret store. sig { - params(params: T.any(::Stripe::Apps::SecretCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Apps::Secret) + params(params: T.any(::Stripe::Apps::SecretCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Apps::Secret) } def create(params = {}, opts = {}); end # Deletes a secret from the secret store by name and scope. sig { - params(params: T.any(::Stripe::Apps::SecretDeleteWhereParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Apps::Secret) + params(params: T.any(::Stripe::Apps::SecretDeleteWhereParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Apps::Secret) } def delete_where(params = {}, opts = {}); end # Finds a secret in the secret store by name and scope. sig { - params(params: T.any(::Stripe::Apps::SecretFindParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Apps::Secret) + params(params: T.any(::Stripe::Apps::SecretFindParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Apps::Secret) } def find(params = {}, opts = {}); end # List all secrets stored on the given scope. sig { - params(params: T.any(::Stripe::Apps::SecretListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Apps::SecretListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end end diff --git a/rbi/stripe/services/balance_service.rbi b/rbi/stripe/services/balance_service.rbi index 5f4f3cdc..b40c6173 100644 --- a/rbi/stripe/services/balance_service.rbi +++ b/rbi/stripe/services/balance_service.rbi @@ -7,7 +7,7 @@ module Stripe # Retrieves the current account balance, based on the authentication that was used to make the request. # For a sample request, see [Accounting for negative balances](https://docs.stripe.com/docs/connect/account-balances#accounting-for-negative-balances). sig { - params(params: T.any(::Stripe::BalanceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Balance) + params(params: T.any(::Stripe::BalanceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Balance) } def retrieve(params = {}, opts = {}); end end diff --git a/rbi/stripe/services/balance_settings_service.rbi b/rbi/stripe/services/balance_settings_service.rbi index 967bb0a0..ae48de24 100644 --- a/rbi/stripe/services/balance_settings_service.rbi +++ b/rbi/stripe/services/balance_settings_service.rbi @@ -7,14 +7,14 @@ module Stripe # Retrieves balance settings for a given connected account. # Related guide: [Making API calls for connected accounts](https://docs.stripe.com/connect/authentication) sig { - params(params: T.any(::Stripe::BalanceSettingsRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BalanceSettings) + params(params: T.any(::Stripe::BalanceSettingsRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::BalanceSettings) } def retrieve(params = {}, opts = {}); end # Updates balance settings for a given connected account. # Related guide: [Making API calls for connected accounts](https://docs.stripe.com/connect/authentication) sig { - params(params: T.any(::Stripe::BalanceSettingsUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BalanceSettings) + params(params: T.any(::Stripe::BalanceSettingsUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::BalanceSettings) } def update(params = {}, opts = {}); end end diff --git a/rbi/stripe/services/balance_transaction_service.rbi b/rbi/stripe/services/balance_transaction_service.rbi index 72ef6b96..681bc77e 100644 --- a/rbi/stripe/services/balance_transaction_service.rbi +++ b/rbi/stripe/services/balance_transaction_service.rbi @@ -8,7 +8,7 @@ module Stripe # # Note that this endpoint was previously called “Balance history” and used the path /v1/balance/history. sig { - params(params: T.any(::Stripe::BalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::BalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end @@ -16,7 +16,7 @@ module Stripe # # Note that this endpoint previously used the path /v1/balance/history/:id. sig { - params(id: String, params: T.any(::Stripe::BalanceTransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BalanceTransaction) + params(id: String, params: T.any(::Stripe::BalanceTransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::BalanceTransaction) } def retrieve(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/billing/alert_service.rbi b/rbi/stripe/services/billing/alert_service.rbi index b0bab0af..2d10a936 100644 --- a/rbi/stripe/services/billing/alert_service.rbi +++ b/rbi/stripe/services/billing/alert_service.rbi @@ -7,37 +7,37 @@ module Stripe class AlertService < StripeService # Reactivates this alert, allowing it to trigger again. sig { - params(id: String, params: T.any(::Stripe::Billing::AlertActivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(id: String, params: T.any(::Stripe::Billing::AlertActivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def activate(id, params = {}, opts = {}); end # Archives this alert, removing it from the list view and APIs. This is non-reversible. sig { - params(id: String, params: T.any(::Stripe::Billing::AlertArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(id: String, params: T.any(::Stripe::Billing::AlertArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def archive(id, params = {}, opts = {}); end # Creates a billing alert sig { - params(params: T.any(::Stripe::Billing::AlertCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(params: T.any(::Stripe::Billing::AlertCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def create(params = {}, opts = {}); end # Deactivates this alert, preventing it from triggering. sig { - params(id: String, params: T.any(::Stripe::Billing::AlertDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(id: String, params: T.any(::Stripe::Billing::AlertDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def deactivate(id, params = {}, opts = {}); end # Lists billing active and inactive alerts sig { - params(params: T.any(::Stripe::Billing::AlertListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Billing::AlertListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a billing alert given an ID sig { - params(id: String, params: T.any(::Stripe::Billing::AlertRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Alert) + params(id: String, params: T.any(::Stripe::Billing::AlertRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Alert) } def retrieve(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/billing/credit_balance_summary_service.rbi b/rbi/stripe/services/billing/credit_balance_summary_service.rbi index d70d8017..22df3a70 100644 --- a/rbi/stripe/services/billing/credit_balance_summary_service.rbi +++ b/rbi/stripe/services/billing/credit_balance_summary_service.rbi @@ -7,7 +7,7 @@ module Stripe class CreditBalanceSummaryService < StripeService # Retrieves the credit balance summary for a customer. sig { - params(params: T.any(::Stripe::Billing::CreditBalanceSummaryRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditBalanceSummary) + params(params: T.any(::Stripe::Billing::CreditBalanceSummaryRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditBalanceSummary) } def retrieve(params = {}, opts = {}); end end diff --git a/rbi/stripe/services/billing/credit_balance_transaction_service.rbi b/rbi/stripe/services/billing/credit_balance_transaction_service.rbi index cb351d1c..cc441b12 100644 --- a/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +++ b/rbi/stripe/services/billing/credit_balance_transaction_service.rbi @@ -7,13 +7,13 @@ module Stripe class CreditBalanceTransactionService < StripeService # Retrieve a list of credit balance transactions. sig { - params(params: T.any(::Stripe::Billing::CreditBalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Billing::CreditBalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a credit balance transaction. sig { - params(id: String, params: T.any(::Stripe::Billing::CreditBalanceTransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditBalanceTransaction) + params(id: String, params: T.any(::Stripe::Billing::CreditBalanceTransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditBalanceTransaction) } def retrieve(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/billing/credit_grant_service.rbi b/rbi/stripe/services/billing/credit_grant_service.rbi index 2107c18c..8bd20f52 100644 --- a/rbi/stripe/services/billing/credit_grant_service.rbi +++ b/rbi/stripe/services/billing/credit_grant_service.rbi @@ -7,37 +7,37 @@ module Stripe class CreditGrantService < StripeService # Creates a credit grant. sig { - params(params: T.any(::Stripe::Billing::CreditGrantCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditGrant) + params(params: T.any(::Stripe::Billing::CreditGrantCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditGrant) } def create(params = {}, opts = {}); end # Expires a credit grant. sig { - params(id: String, params: T.any(::Stripe::Billing::CreditGrantExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditGrant) + params(id: String, params: T.any(::Stripe::Billing::CreditGrantExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditGrant) } def expire(id, params = {}, opts = {}); end # Retrieve a list of credit grants. sig { - params(params: T.any(::Stripe::Billing::CreditGrantListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Billing::CreditGrantListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a credit grant. sig { - params(id: String, params: T.any(::Stripe::Billing::CreditGrantRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditGrant) + params(id: String, params: T.any(::Stripe::Billing::CreditGrantRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditGrant) } def retrieve(id, params = {}, opts = {}); end # Updates a credit grant. sig { - params(id: String, params: T.any(::Stripe::Billing::CreditGrantUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditGrant) + params(id: String, params: T.any(::Stripe::Billing::CreditGrantUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditGrant) } def update(id, params = {}, opts = {}); end # Voids a credit grant. sig { - params(id: String, params: T.any(::Stripe::Billing::CreditGrantVoidGrantParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::CreditGrant) + params(id: String, params: T.any(::Stripe::Billing::CreditGrantVoidGrantParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::CreditGrant) } def void_grant(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/billing/meter_event_adjustment_service.rbi b/rbi/stripe/services/billing/meter_event_adjustment_service.rbi index db878b1a..9a4fac97 100644 --- a/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +++ b/rbi/stripe/services/billing/meter_event_adjustment_service.rbi @@ -7,7 +7,7 @@ module Stripe class MeterEventAdjustmentService < StripeService # Creates a billing meter event adjustment. sig { - params(params: T.any(::Stripe::Billing::MeterEventAdjustmentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::MeterEventAdjustment) + params(params: T.any(::Stripe::Billing::MeterEventAdjustmentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::MeterEventAdjustment) } def create(params = {}, opts = {}); end end diff --git a/rbi/stripe/services/billing/meter_event_service.rbi b/rbi/stripe/services/billing/meter_event_service.rbi index 83992ee6..ed0215ee 100644 --- a/rbi/stripe/services/billing/meter_event_service.rbi +++ b/rbi/stripe/services/billing/meter_event_service.rbi @@ -7,7 +7,7 @@ module Stripe class MeterEventService < StripeService # Creates a billing meter event. sig { - params(params: T.any(::Stripe::Billing::MeterEventCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::MeterEvent) + params(params: T.any(::Stripe::Billing::MeterEventCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::MeterEvent) } def create(params = {}, opts = {}); end end diff --git a/rbi/stripe/services/billing/meter_event_summary_service.rbi b/rbi/stripe/services/billing/meter_event_summary_service.rbi index 44533db8..d3f118e6 100644 --- a/rbi/stripe/services/billing/meter_event_summary_service.rbi +++ b/rbi/stripe/services/billing/meter_event_summary_service.rbi @@ -7,7 +7,7 @@ module Stripe class MeterEventSummaryService < StripeService # Retrieve a list of billing meter event summaries. sig { - params(id: String, params: T.any(::Stripe::Billing::MeterEventSummaryListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(id: String, params: T.any(::Stripe::Billing::MeterEventSummaryListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/billing/meter_service.rbi b/rbi/stripe/services/billing/meter_service.rbi index dea5d0fb..31c79d65 100644 --- a/rbi/stripe/services/billing/meter_service.rbi +++ b/rbi/stripe/services/billing/meter_service.rbi @@ -8,37 +8,37 @@ module Stripe attr_reader :event_summaries # Creates a billing meter. sig { - params(params: T.any(::Stripe::Billing::MeterCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Meter) + params(params: T.any(::Stripe::Billing::MeterCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) } def create(params = {}, opts = {}); end # When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price. sig { - params(id: String, params: T.any(::Stripe::Billing::MeterDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Meter) + params(id: String, params: T.any(::Stripe::Billing::MeterDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) } def deactivate(id, params = {}, opts = {}); end # Retrieve a list of billing meters. sig { - params(params: T.any(::Stripe::Billing::MeterListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Billing::MeterListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price. sig { - params(id: String, params: T.any(::Stripe::Billing::MeterReactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Meter) + params(id: String, params: T.any(::Stripe::Billing::MeterReactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) } def reactivate(id, params = {}, opts = {}); end # Retrieves a billing meter given an ID. sig { - params(id: String, params: T.any(::Stripe::Billing::MeterRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Meter) + params(id: String, params: T.any(::Stripe::Billing::MeterRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) } def retrieve(id, params = {}, opts = {}); end # Updates a billing meter. sig { - params(id: String, params: T.any(::Stripe::Billing::MeterUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Billing::Meter) + params(id: String, params: T.any(::Stripe::Billing::MeterUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Billing::Meter) } def update(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/billing_portal/configuration_service.rbi b/rbi/stripe/services/billing_portal/configuration_service.rbi index 350a5fb0..0fa32832 100644 --- a/rbi/stripe/services/billing_portal/configuration_service.rbi +++ b/rbi/stripe/services/billing_portal/configuration_service.rbi @@ -7,25 +7,25 @@ module Stripe class ConfigurationService < StripeService # Creates a configuration that describes the functionality and behavior of a PortalSession sig { - params(params: T.any(::Stripe::BillingPortal::ConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BillingPortal::Configuration) + params(params: T.any(::Stripe::BillingPortal::ConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::BillingPortal::Configuration) } def create(params = {}, opts = {}); end # Returns a list of configurations that describe the functionality of the customer portal. sig { - params(params: T.any(::Stripe::BillingPortal::ConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::BillingPortal::ConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a configuration that describes the functionality of the customer portal. sig { - params(configuration: String, params: T.any(::Stripe::BillingPortal::ConfigurationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BillingPortal::Configuration) + params(configuration: String, params: T.any(::Stripe::BillingPortal::ConfigurationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::BillingPortal::Configuration) } def retrieve(configuration, params = {}, opts = {}); end # Updates a configuration that describes the functionality of the customer portal. sig { - params(configuration: String, params: T.any(::Stripe::BillingPortal::ConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BillingPortal::Configuration) + params(configuration: String, params: T.any(::Stripe::BillingPortal::ConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::BillingPortal::Configuration) } def update(configuration, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/billing_portal/session_service.rbi b/rbi/stripe/services/billing_portal/session_service.rbi index aef2368f..7496f100 100644 --- a/rbi/stripe/services/billing_portal/session_service.rbi +++ b/rbi/stripe/services/billing_portal/session_service.rbi @@ -7,7 +7,7 @@ module Stripe class SessionService < StripeService # Creates a session of the customer portal. sig { - params(params: T.any(::Stripe::BillingPortal::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BillingPortal::Session) + params(params: T.any(::Stripe::BillingPortal::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::BillingPortal::Session) } def create(params = {}, opts = {}); end end diff --git a/rbi/stripe/services/charge_service.rbi b/rbi/stripe/services/charge_service.rbi index 1855220e..f02c9d4d 100644 --- a/rbi/stripe/services/charge_service.rbi +++ b/rbi/stripe/services/charge_service.rbi @@ -10,7 +10,7 @@ module Stripe # # Don't use this method to capture a PaymentIntent-initiated charge. Use [Capture a PaymentIntent](https://docs.stripe.com/docs/api/payment_intents/capture). sig { - params(charge: String, params: T.any(::Stripe::ChargeCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Charge) + params(charge: String, params: T.any(::Stripe::ChargeCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Charge) } def capture(charge, params = {}, opts = {}); end @@ -18,19 +18,19 @@ module Stripe # to initiate a new payment instead. Confirmation of the PaymentIntent creates the Charge # object used to request payment. sig { - params(params: T.any(::Stripe::ChargeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Charge) + params(params: T.any(::Stripe::ChargeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Charge) } def create(params = {}, opts = {}); end # Returns a list of charges you've previously created. The charges are returned in sorted order, with the most recent charges appearing first. sig { - params(params: T.any(::Stripe::ChargeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ChargeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of a charge that has previously been created. Supply the unique charge ID that was returned from your previous request, and Stripe will return the corresponding charge information. The same information is returned when creating or refunding the charge. sig { - params(charge: String, params: T.any(::Stripe::ChargeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Charge) + params(charge: String, params: T.any(::Stripe::ChargeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Charge) } def retrieve(charge, params = {}, opts = {}); end @@ -39,13 +39,13 @@ module Stripe # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up # to an hour behind during outages. Search functionality is not available to merchants in India. sig { - params(params: T.any(::Stripe::ChargeSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::ChargeSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def search(params = {}, opts = {}); end # Updates the specified charge by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(charge: String, params: T.any(::Stripe::ChargeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Charge) + params(charge: String, params: T.any(::Stripe::ChargeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Charge) } def update(charge, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/checkout/session_line_item_service.rbi b/rbi/stripe/services/checkout/session_line_item_service.rbi index 9353d7d9..edbd4de1 100644 --- a/rbi/stripe/services/checkout/session_line_item_service.rbi +++ b/rbi/stripe/services/checkout/session_line_item_service.rbi @@ -7,7 +7,7 @@ module Stripe class SessionLineItemService < StripeService # When retrieving a Checkout Session, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. sig { - params(session: String, params: T.any(::Stripe::Checkout::SessionLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(session: String, params: T.any(::Stripe::Checkout::SessionLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(session, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/checkout/session_service.rbi b/rbi/stripe/services/checkout/session_service.rbi index 6a6ef8a9..a83ed3b7 100644 --- a/rbi/stripe/services/checkout/session_service.rbi +++ b/rbi/stripe/services/checkout/session_service.rbi @@ -8,7 +8,7 @@ module Stripe attr_reader :line_items # Creates a Checkout Session object. sig { - params(params: T.any(::Stripe::Checkout::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session) + params(params: T.any(::Stripe::Checkout::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Checkout::Session) } def create(params = {}, opts = {}); end @@ -16,19 +16,19 @@ module Stripe # # After it expires, a customer can't complete a Checkout Session and customers loading the Checkout Session see a message saying the Checkout Session is expired. sig { - params(session: String, params: T.any(::Stripe::Checkout::SessionExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session) + params(session: String, params: T.any(::Stripe::Checkout::SessionExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Checkout::Session) } def expire(session, params = {}, opts = {}); end # Returns a list of Checkout Sessions. sig { - params(params: T.any(::Stripe::Checkout::SessionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Checkout::SessionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a Checkout Session object. sig { - params(session: String, params: T.any(::Stripe::Checkout::SessionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session) + params(session: String, params: T.any(::Stripe::Checkout::SessionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Checkout::Session) } def retrieve(session, params = {}, opts = {}); end @@ -36,7 +36,7 @@ module Stripe # # Related guide: [Dynamically update Checkout](https://docs.stripe.com/payments/checkout/dynamic-updates) sig { - params(session: String, params: T.any(::Stripe::Checkout::SessionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Checkout::Session) + params(session: String, params: T.any(::Stripe::Checkout::SessionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Checkout::Session) } def update(session, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/climate/order_service.rbi b/rbi/stripe/services/climate/order_service.rbi index 491aa064..22de0ba6 100644 --- a/rbi/stripe/services/climate/order_service.rbi +++ b/rbi/stripe/services/climate/order_service.rbi @@ -10,33 +10,33 @@ module Stripe # might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe # provides 90 days advance notice and refunds the amount_total. sig { - params(order: String, params: T.any(::Stripe::Climate::OrderCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Climate::Order) + params(order: String, params: T.any(::Stripe::Climate::OrderCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Climate::Order) } def cancel(order, params = {}, opts = {}); end # Creates a Climate order object for a given Climate product. The order will be processed immediately # after creation and payment will be deducted your Stripe balance. sig { - params(params: T.any(::Stripe::Climate::OrderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Climate::Order) + params(params: T.any(::Stripe::Climate::OrderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Climate::Order) } def create(params = {}, opts = {}); end # Lists all Climate order objects. The orders are returned sorted by creation date, with the # most recently created orders appearing first. sig { - params(params: T.any(::Stripe::Climate::OrderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Climate::OrderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of a Climate order object with the given ID. sig { - params(order: String, params: T.any(::Stripe::Climate::OrderRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Climate::Order) + params(order: String, params: T.any(::Stripe::Climate::OrderRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Climate::Order) } def retrieve(order, params = {}, opts = {}); end # Updates the specified order by setting the values of the parameters passed. sig { - params(order: String, params: T.any(::Stripe::Climate::OrderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Climate::Order) + params(order: String, params: T.any(::Stripe::Climate::OrderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Climate::Order) } def update(order, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/climate/product_service.rbi b/rbi/stripe/services/climate/product_service.rbi index 88056dbe..069d06b1 100644 --- a/rbi/stripe/services/climate/product_service.rbi +++ b/rbi/stripe/services/climate/product_service.rbi @@ -7,13 +7,13 @@ module Stripe class ProductService < StripeService # Lists all available Climate product objects. sig { - params(params: T.any(::Stripe::Climate::ProductListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Climate::ProductListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of a Climate product with the given ID. sig { - params(product: String, params: T.any(::Stripe::Climate::ProductRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Climate::Product) + params(product: String, params: T.any(::Stripe::Climate::ProductRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Climate::Product) } def retrieve(product, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/climate/supplier_service.rbi b/rbi/stripe/services/climate/supplier_service.rbi index abe8887a..536db3d6 100644 --- a/rbi/stripe/services/climate/supplier_service.rbi +++ b/rbi/stripe/services/climate/supplier_service.rbi @@ -7,13 +7,13 @@ module Stripe class SupplierService < StripeService # Lists all available Climate supplier objects. sig { - params(params: T.any(::Stripe::Climate::SupplierListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Climate::SupplierListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a Climate supplier object. sig { - params(supplier: String, params: T.any(::Stripe::Climate::SupplierRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Climate::Supplier) + params(supplier: String, params: T.any(::Stripe::Climate::SupplierRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Climate::Supplier) } def retrieve(supplier, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/confirmation_token_service.rbi b/rbi/stripe/services/confirmation_token_service.rbi index ccb06dfb..cb527370 100644 --- a/rbi/stripe/services/confirmation_token_service.rbi +++ b/rbi/stripe/services/confirmation_token_service.rbi @@ -6,7 +6,7 @@ module Stripe class ConfirmationTokenService < StripeService # Retrieves an existing ConfirmationToken object sig { - params(confirmation_token: String, params: T.any(::Stripe::ConfirmationTokenRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ConfirmationToken) + params(confirmation_token: String, params: T.any(::Stripe::ConfirmationTokenRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ConfirmationToken) } def retrieve(confirmation_token, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/country_spec_service.rbi b/rbi/stripe/services/country_spec_service.rbi index 5df71ba3..1b54f9be 100644 --- a/rbi/stripe/services/country_spec_service.rbi +++ b/rbi/stripe/services/country_spec_service.rbi @@ -6,13 +6,13 @@ module Stripe class CountrySpecService < StripeService # Lists all Country Spec objects available in the API. sig { - params(params: T.any(::Stripe::CountrySpecListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::CountrySpecListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Returns a Country Spec for a given Country code. sig { - params(country: String, params: T.any(::Stripe::CountrySpecRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CountrySpec) + params(country: String, params: T.any(::Stripe::CountrySpecRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CountrySpec) } def retrieve(country, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/coupon_service.rbi b/rbi/stripe/services/coupon_service.rbi index 8c450b56..0a135451 100644 --- a/rbi/stripe/services/coupon_service.rbi +++ b/rbi/stripe/services/coupon_service.rbi @@ -8,31 +8,31 @@ module Stripe # # A coupon has either a percent_off or an amount_off and currency. If you set an amount_off, that amount will be subtracted from any invoice's subtotal. For example, an invoice with a subtotal of 100 will have a final total of 0 if a coupon with an amount_off of 200 is applied to it and an invoice with a subtotal of 300 will have a final total of 100 if a coupon with an amount_off of 200 is applied to it. sig { - params(params: T.any(::Stripe::CouponCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Coupon) + params(params: T.any(::Stripe::CouponCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Coupon) } def create(params = {}, opts = {}); end # You can delete coupons via the [coupon management](https://dashboard.stripe.com/coupons) page of the Stripe dashboard. However, deleting a coupon does not affect any customers who have already applied the coupon; it means that new customers can't redeem the coupon. You can also delete coupons via the API. sig { - params(coupon: String, params: T.any(::Stripe::CouponDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Coupon) + params(coupon: String, params: T.any(::Stripe::CouponDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Coupon) } def delete(coupon, params = {}, opts = {}); end # Returns a list of your coupons. sig { - params(params: T.any(::Stripe::CouponListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::CouponListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the coupon with the given ID. sig { - params(coupon: String, params: T.any(::Stripe::CouponRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Coupon) + params(coupon: String, params: T.any(::Stripe::CouponRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Coupon) } def retrieve(coupon, params = {}, opts = {}); end # Updates the metadata of a coupon. Other coupon details (currency, duration, amount_off) are, by design, not editable. sig { - params(coupon: String, params: T.any(::Stripe::CouponUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Coupon) + params(coupon: String, params: T.any(::Stripe::CouponUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Coupon) } def update(coupon, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/credit_note_line_item_service.rbi b/rbi/stripe/services/credit_note_line_item_service.rbi index b6d01f70..d9763713 100644 --- a/rbi/stripe/services/credit_note_line_item_service.rbi +++ b/rbi/stripe/services/credit_note_line_item_service.rbi @@ -6,7 +6,7 @@ module Stripe class CreditNoteLineItemService < StripeService # When retrieving a credit note, you'll get a lines property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. sig { - params(credit_note: String, params: T.any(::Stripe::CreditNoteLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(credit_note: String, params: T.any(::Stripe::CreditNoteLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(credit_note, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/credit_note_preview_lines_service.rbi b/rbi/stripe/services/credit_note_preview_lines_service.rbi index f1096956..e3600016 100644 --- a/rbi/stripe/services/credit_note_preview_lines_service.rbi +++ b/rbi/stripe/services/credit_note_preview_lines_service.rbi @@ -6,7 +6,7 @@ module Stripe class CreditNotePreviewLinesService < StripeService # When retrieving a credit note preview, you'll get a lines property containing the first handful of those items. This URL you can retrieve the full (paginated) list of line items. sig { - params(params: T.any(::Stripe::CreditNotePreviewLinesListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::CreditNotePreviewLinesListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end end diff --git a/rbi/stripe/services/credit_note_service.rbi b/rbi/stripe/services/credit_note_service.rbi index d2f87028..5cfbcef0 100644 --- a/rbi/stripe/services/credit_note_service.rbi +++ b/rbi/stripe/services/credit_note_service.rbi @@ -20,37 +20,37 @@ module Stripe # You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount, # post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation. sig { - params(params: T.any(::Stripe::CreditNoteCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote) + params(params: T.any(::Stripe::CreditNoteCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } def create(params = {}, opts = {}); end # Returns a list of credit notes. sig { - params(params: T.any(::Stripe::CreditNoteListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::CreditNoteListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Get a preview of a credit note without creating it. sig { - params(params: T.any(::Stripe::CreditNotePreviewParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote) + params(params: T.any(::Stripe::CreditNotePreviewParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } def preview(params = {}, opts = {}); end # Retrieves the credit note object with the given identifier. sig { - params(id: String, params: T.any(::Stripe::CreditNoteRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote) + params(id: String, params: T.any(::Stripe::CreditNoteRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } def retrieve(id, params = {}, opts = {}); end # Updates an existing credit note. sig { - params(id: String, params: T.any(::Stripe::CreditNoteUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote) + params(id: String, params: T.any(::Stripe::CreditNoteUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } def update(id, params = {}, opts = {}); end # Marks a credit note as void. Learn more about [voiding credit notes](https://docs.stripe.com/docs/billing/invoices/credit-notes#voiding). sig { - params(id: String, params: T.any(::Stripe::CreditNoteVoidCreditNoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote) + params(id: String, params: T.any(::Stripe::CreditNoteVoidCreditNoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CreditNote) } def void_credit_note(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/customer_balance_transaction_service.rbi b/rbi/stripe/services/customer_balance_transaction_service.rbi index c754d0e8..8ac35933 100644 --- a/rbi/stripe/services/customer_balance_transaction_service.rbi +++ b/rbi/stripe/services/customer_balance_transaction_service.rbi @@ -6,25 +6,25 @@ module Stripe class CustomerBalanceTransactionService < StripeService # Creates an immutable transaction that updates the customer's credit [balance](https://docs.stripe.com/docs/billing/customer/balance). sig { - params(customer: String, params: T.any(::Stripe::CustomerBalanceTransactionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CustomerBalanceTransaction) + params(customer: String, params: T.any(::Stripe::CustomerBalanceTransactionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CustomerBalanceTransaction) } def create(customer, params = {}, opts = {}); end # Returns a list of transactions that updated the customer's [balances](https://docs.stripe.com/docs/billing/customer/balance). sig { - params(customer: String, params: T.any(::Stripe::CustomerBalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(customer: String, params: T.any(::Stripe::CustomerBalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(customer, params = {}, opts = {}); end # Retrieves a specific customer balance transaction that updated the customer's [balances](https://docs.stripe.com/docs/billing/customer/balance). sig { - params(customer: String, transaction: String, params: T.any(::Stripe::CustomerBalanceTransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CustomerBalanceTransaction) + params(customer: String, transaction: String, params: T.any(::Stripe::CustomerBalanceTransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CustomerBalanceTransaction) } def retrieve(customer, transaction, params = {}, opts = {}); end # Most credit balance transaction fields are immutable, but you may update its description and metadata. sig { - params(customer: String, transaction: String, params: T.any(::Stripe::CustomerBalanceTransactionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CustomerBalanceTransaction) + params(customer: String, transaction: String, params: T.any(::Stripe::CustomerBalanceTransactionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CustomerBalanceTransaction) } def update(customer, transaction, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/customer_cash_balance_service.rbi b/rbi/stripe/services/customer_cash_balance_service.rbi index b28b445c..26e208ca 100644 --- a/rbi/stripe/services/customer_cash_balance_service.rbi +++ b/rbi/stripe/services/customer_cash_balance_service.rbi @@ -6,13 +6,13 @@ module Stripe class CustomerCashBalanceService < StripeService # Retrieves a customer's cash balance. sig { - params(customer: String, params: T.any(::Stripe::CustomerCashBalanceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CashBalance) + params(customer: String, params: T.any(::Stripe::CustomerCashBalanceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CashBalance) } def retrieve(customer, params = {}, opts = {}); end # Changes the settings on a customer's cash balance. sig { - params(customer: String, params: T.any(::Stripe::CustomerCashBalanceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CashBalance) + params(customer: String, params: T.any(::Stripe::CustomerCashBalanceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CashBalance) } def update(customer, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/customer_cash_balance_transaction_service.rbi b/rbi/stripe/services/customer_cash_balance_transaction_service.rbi index 2753a889..b485aa0f 100644 --- a/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +++ b/rbi/stripe/services/customer_cash_balance_transaction_service.rbi @@ -6,13 +6,13 @@ module Stripe class CustomerCashBalanceTransactionService < StripeService # Returns a list of transactions that modified the customer's [cash balance](https://docs.stripe.com/docs/payments/customer-balance). sig { - params(customer: String, params: T.any(::Stripe::CustomerCashBalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(customer: String, params: T.any(::Stripe::CustomerCashBalanceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(customer, params = {}, opts = {}); end # Retrieves a specific cash balance transaction, which updated the customer's [cash balance](https://docs.stripe.com/docs/payments/customer-balance). sig { - params(customer: String, transaction: String, params: T.any(::Stripe::CustomerCashBalanceTransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CustomerCashBalanceTransaction) + params(customer: String, transaction: String, params: T.any(::Stripe::CustomerCashBalanceTransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CustomerCashBalanceTransaction) } def retrieve(customer, transaction, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/customer_funding_instructions_service.rbi b/rbi/stripe/services/customer_funding_instructions_service.rbi index 649ed688..8dc2fb16 100644 --- a/rbi/stripe/services/customer_funding_instructions_service.rbi +++ b/rbi/stripe/services/customer_funding_instructions_service.rbi @@ -8,7 +8,7 @@ module Stripe # funding instructions will be created. If funding instructions have already been created for a given customer, the same # funding instructions will be retrieved. In other words, we will return the same funding instructions each time. sig { - params(customer: String, params: T.any(::Stripe::CustomerFundingInstructionsCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FundingInstructions) + params(customer: String, params: T.any(::Stripe::CustomerFundingInstructionsCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FundingInstructions) } def create(customer, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/customer_payment_method_service.rbi b/rbi/stripe/services/customer_payment_method_service.rbi index 3dba5a83..a3fe5ae5 100644 --- a/rbi/stripe/services/customer_payment_method_service.rbi +++ b/rbi/stripe/services/customer_payment_method_service.rbi @@ -6,13 +6,13 @@ module Stripe class CustomerPaymentMethodService < StripeService # Returns a list of PaymentMethods for a given Customer sig { - params(customer: String, params: T.any(::Stripe::CustomerPaymentMethodListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(customer: String, params: T.any(::Stripe::CustomerPaymentMethodListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(customer, params = {}, opts = {}); end # Retrieves a PaymentMethod object for a given Customer. sig { - params(customer: String, payment_method: String, params: T.any(::Stripe::CustomerPaymentMethodRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(customer: String, payment_method: String, params: T.any(::Stripe::CustomerPaymentMethodRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def retrieve(customer, payment_method, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/customer_payment_source_service.rbi b/rbi/stripe/services/customer_payment_source_service.rbi index a1bef7a4..712c5a79 100644 --- a/rbi/stripe/services/customer_payment_source_service.rbi +++ b/rbi/stripe/services/customer_payment_source_service.rbi @@ -10,37 +10,37 @@ module Stripe # However, if the owner already has a default, then it will not change. # To change the default, you should [update the customer](https://docs.stripe.com/docs/api#update_customer) to have a new default_source. sig { - params(customer: String, params: T.any(::Stripe::CustomerPaymentSourceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source)) + params(customer: String, params: T.any(::Stripe::CustomerPaymentSourceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source)) } def create(customer, params = {}, opts = {}); end # Delete a specified source for a given customer. sig { - params(customer: String, id: String, params: T.any(::Stripe::CustomerPaymentSourceDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source)) + params(customer: String, id: String, params: T.any(::Stripe::CustomerPaymentSourceDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source)) } def delete(customer, id, params = {}, opts = {}); end # List sources for a specified customer. sig { - params(customer: String, params: T.any(::Stripe::CustomerPaymentSourceListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(customer: String, params: T.any(::Stripe::CustomerPaymentSourceListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(customer, params = {}, opts = {}); end # Retrieve a specified source for a given customer. sig { - params(customer: String, id: String, params: T.any(::Stripe::CustomerPaymentSourceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source)) + params(customer: String, id: String, params: T.any(::Stripe::CustomerPaymentSourceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source)) } def retrieve(customer, id, params = {}, opts = {}); end # Update a specified source for a given customer. sig { - params(customer: String, id: String, params: T.any(::Stripe::CustomerPaymentSourceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source)) + params(customer: String, id: String, params: T.any(::Stripe::CustomerPaymentSourceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source)) } def update(customer, id, params = {}, opts = {}); end # Verify a specified bank account for a given customer. sig { - params(customer: String, id: String, params: T.any(::Stripe::CustomerPaymentSourceVerifyParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::BankAccount) + params(customer: String, id: String, params: T.any(::Stripe::CustomerPaymentSourceVerifyParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::BankAccount) } def verify(customer, id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/customer_service.rbi b/rbi/stripe/services/customer_service.rbi index f71547d8..cdb1abc5 100644 --- a/rbi/stripe/services/customer_service.rbi +++ b/rbi/stripe/services/customer_service.rbi @@ -13,31 +13,31 @@ module Stripe attr_reader :tax_ids # Creates a new customer object. sig { - params(params: T.any(::Stripe::CustomerCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer) + params(params: T.any(::Stripe::CustomerCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Customer) } def create(params = {}, opts = {}); end # Permanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer. sig { - params(customer: String, params: T.any(::Stripe::CustomerDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer) + params(customer: String, params: T.any(::Stripe::CustomerDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Customer) } def delete(customer, params = {}, opts = {}); end # Removes the currently applied discount on a customer. sig { - params(customer: String, params: T.any(::Stripe::CustomerDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Discount) + params(customer: String, params: T.any(::Stripe::CustomerDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Discount) } def delete_discount(customer, params = {}, opts = {}); end # Returns a list of your customers. The customers are returned sorted by creation date, with the most recent customers appearing first. sig { - params(params: T.any(::Stripe::CustomerListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::CustomerListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a Customer object. sig { - params(customer: String, params: T.any(::Stripe::CustomerRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer) + params(customer: String, params: T.any(::Stripe::CustomerRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Customer) } def retrieve(customer, params = {}, opts = {}); end @@ -46,7 +46,7 @@ module Stripe # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up # to an hour behind during outages. Search functionality is not available to merchants in India. sig { - params(params: T.any(::Stripe::CustomerSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::CustomerSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def search(params = {}, opts = {}); end @@ -54,7 +54,7 @@ module Stripe # # This request accepts mostly the same arguments as the customer creation call. sig { - params(customer: String, params: T.any(::Stripe::CustomerUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Customer) + params(customer: String, params: T.any(::Stripe::CustomerUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Customer) } def update(customer, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/customer_session_service.rbi b/rbi/stripe/services/customer_session_service.rbi index 6c743d50..7dc28e27 100644 --- a/rbi/stripe/services/customer_session_service.rbi +++ b/rbi/stripe/services/customer_session_service.rbi @@ -6,7 +6,7 @@ module Stripe class CustomerSessionService < StripeService # Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources. sig { - params(params: T.any(::Stripe::CustomerSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CustomerSession) + params(params: T.any(::Stripe::CustomerSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CustomerSession) } def create(params = {}, opts = {}); end end diff --git a/rbi/stripe/services/customer_tax_id_service.rbi b/rbi/stripe/services/customer_tax_id_service.rbi index 29e87091..5aba0135 100644 --- a/rbi/stripe/services/customer_tax_id_service.rbi +++ b/rbi/stripe/services/customer_tax_id_service.rbi @@ -6,25 +6,25 @@ module Stripe class CustomerTaxIdService < StripeService # Creates a new tax_id object for a customer. sig { - params(customer: String, params: T.any(::Stripe::CustomerTaxIdCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxId) + params(customer: String, params: T.any(::Stripe::CustomerTaxIdCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxId) } def create(customer, params = {}, opts = {}); end # Deletes an existing tax_id object. sig { - params(customer: String, id: String, params: T.any(::Stripe::CustomerTaxIdDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxId) + params(customer: String, id: String, params: T.any(::Stripe::CustomerTaxIdDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxId) } def delete(customer, id, params = {}, opts = {}); end # Returns a list of tax IDs for a customer. sig { - params(customer: String, params: T.any(::Stripe::CustomerTaxIdListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(customer: String, params: T.any(::Stripe::CustomerTaxIdListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(customer, params = {}, opts = {}); end # Retrieves the tax_id object with the given identifier. sig { - params(customer: String, id: String, params: T.any(::Stripe::CustomerTaxIdRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxId) + params(customer: String, id: String, params: T.any(::Stripe::CustomerTaxIdRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxId) } def retrieve(customer, id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/dispute_service.rbi b/rbi/stripe/services/dispute_service.rbi index 60d4c8c6..2d350503 100644 --- a/rbi/stripe/services/dispute_service.rbi +++ b/rbi/stripe/services/dispute_service.rbi @@ -8,19 +8,19 @@ module Stripe # # The status of the dispute will change from needs_response to lost. Closing a dispute is irreversible. sig { - params(dispute: String, params: T.any(::Stripe::DisputeCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Dispute) + params(dispute: String, params: T.any(::Stripe::DisputeCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Dispute) } def close(dispute, params = {}, opts = {}); end # Returns a list of your disputes. sig { - params(params: T.any(::Stripe::DisputeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::DisputeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the dispute with the given ID. sig { - params(dispute: String, params: T.any(::Stripe::DisputeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Dispute) + params(dispute: String, params: T.any(::Stripe::DisputeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Dispute) } def retrieve(dispute, params = {}, opts = {}); end @@ -28,7 +28,7 @@ module Stripe # # Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our [guide to dispute types](https://docs.stripe.com/docs/disputes/categories). sig { - params(dispute: String, params: T.any(::Stripe::DisputeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Dispute) + params(dispute: String, params: T.any(::Stripe::DisputeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Dispute) } def update(dispute, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/entitlements/active_entitlement_service.rbi b/rbi/stripe/services/entitlements/active_entitlement_service.rbi index 2f203d8c..90881304 100644 --- a/rbi/stripe/services/entitlements/active_entitlement_service.rbi +++ b/rbi/stripe/services/entitlements/active_entitlement_service.rbi @@ -7,13 +7,13 @@ module Stripe class ActiveEntitlementService < StripeService # Retrieve a list of active entitlements for a customer sig { - params(params: T.any(::Stripe::Entitlements::ActiveEntitlementListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Entitlements::ActiveEntitlementListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieve an active entitlement sig { - params(id: String, params: T.any(::Stripe::Entitlements::ActiveEntitlementRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Entitlements::ActiveEntitlement) + params(id: String, params: T.any(::Stripe::Entitlements::ActiveEntitlementRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Entitlements::ActiveEntitlement) } def retrieve(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/entitlements/feature_service.rbi b/rbi/stripe/services/entitlements/feature_service.rbi index f87628ca..a84c8a4f 100644 --- a/rbi/stripe/services/entitlements/feature_service.rbi +++ b/rbi/stripe/services/entitlements/feature_service.rbi @@ -7,25 +7,25 @@ module Stripe class FeatureService < StripeService # Creates a feature sig { - params(params: T.any(::Stripe::Entitlements::FeatureCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Entitlements::Feature) + params(params: T.any(::Stripe::Entitlements::FeatureCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Entitlements::Feature) } def create(params = {}, opts = {}); end # Retrieve a list of features sig { - params(params: T.any(::Stripe::Entitlements::FeatureListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Entitlements::FeatureListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a feature sig { - params(id: String, params: T.any(::Stripe::Entitlements::FeatureRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Entitlements::Feature) + params(id: String, params: T.any(::Stripe::Entitlements::FeatureRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Entitlements::Feature) } def retrieve(id, params = {}, opts = {}); end # Update a feature's metadata or permanently deactivate it. sig { - params(id: String, params: T.any(::Stripe::Entitlements::FeatureUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Entitlements::Feature) + params(id: String, params: T.any(::Stripe::Entitlements::FeatureUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Entitlements::Feature) } def update(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/ephemeral_key_service.rbi b/rbi/stripe/services/ephemeral_key_service.rbi index 0035af51..fb46c8c4 100644 --- a/rbi/stripe/services/ephemeral_key_service.rbi +++ b/rbi/stripe/services/ephemeral_key_service.rbi @@ -6,13 +6,13 @@ module Stripe class EphemeralKeyService < StripeService # Creates a short-lived API key for a given resource. sig { - params(params: T.any(::Stripe::EphemeralKeyCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::EphemeralKey) + params(params: T.any(::Stripe::EphemeralKeyCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::EphemeralKey) } def create(params = {}, opts = {}); end # Invalidates a short-lived API key for a given resource. sig { - params(key: String, params: T.any(::Stripe::EphemeralKeyDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::EphemeralKey) + params(key: String, params: T.any(::Stripe::EphemeralKeyDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::EphemeralKey) } def delete(key, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/event_service.rbi b/rbi/stripe/services/event_service.rbi index 32ddb928..fbd783c0 100644 --- a/rbi/stripe/services/event_service.rbi +++ b/rbi/stripe/services/event_service.rbi @@ -6,13 +6,13 @@ module Stripe class EventService < StripeService # List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://docs.stripe.com/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header). sig { - params(params: T.any(::Stripe::EventListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::EventListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an event if it was created in the last 30 days. Supply the unique identifier of the event, which you might have received in a webhook. sig { - params(id: String, params: T.any(::Stripe::EventRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Event) + params(id: String, params: T.any(::Stripe::EventRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Event) } def retrieve(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/exchange_rate_service.rbi b/rbi/stripe/services/exchange_rate_service.rbi index 233ca7d4..6c77cd78 100644 --- a/rbi/stripe/services/exchange_rate_service.rbi +++ b/rbi/stripe/services/exchange_rate_service.rbi @@ -8,7 +8,7 @@ module Stripe # # Returns a list of objects that contain the rates at which foreign currencies are converted to one another. Only shows the currencies for which Stripe supports. sig { - params(params: T.any(::Stripe::ExchangeRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ExchangeRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end @@ -16,7 +16,7 @@ module Stripe # # Retrieves the exchange rates from the given currency to every supported currency. sig { - params(rate_id: String, params: T.any(::Stripe::ExchangeRateRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ExchangeRate) + params(rate_id: String, params: T.any(::Stripe::ExchangeRateRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ExchangeRate) } def retrieve(rate_id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/file_link_service.rbi b/rbi/stripe/services/file_link_service.rbi index 7bf19755..70d55119 100644 --- a/rbi/stripe/services/file_link_service.rbi +++ b/rbi/stripe/services/file_link_service.rbi @@ -6,25 +6,25 @@ module Stripe class FileLinkService < StripeService # Creates a new file link object. sig { - params(params: T.any(::Stripe::FileLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FileLink) + params(params: T.any(::Stripe::FileLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FileLink) } def create(params = {}, opts = {}); end # Returns a list of file links. sig { - params(params: T.any(::Stripe::FileLinkListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::FileLinkListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the file link with the given ID. sig { - params(link: String, params: T.any(::Stripe::FileLinkRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FileLink) + params(link: String, params: T.any(::Stripe::FileLinkRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FileLink) } def retrieve(link, params = {}, opts = {}); end # Updates an existing file link object. Expired links can no longer be updated. sig { - params(link: String, params: T.any(::Stripe::FileLinkUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FileLink) + params(link: String, params: T.any(::Stripe::FileLinkUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FileLink) } def update(link, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/file_service.rbi b/rbi/stripe/services/file_service.rbi index e523ecb7..0d4dbe43 100644 --- a/rbi/stripe/services/file_service.rbi +++ b/rbi/stripe/services/file_service.rbi @@ -8,19 +8,19 @@ module Stripe # # All of Stripe's officially supported Client libraries support sending multipart/form-data. sig { - params(params: T.any(::Stripe::FileCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::File) + params(params: T.any(::Stripe::FileCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::File) } def create(params = {}, opts = {}); end # Returns a list of the files that your account has access to. Stripe sorts and returns the files by their creation dates, placing the most recently created files at the top. sig { - params(params: T.any(::Stripe::FileListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::FileListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing file object. After you supply a unique file ID, Stripe returns the corresponding file object. Learn how to [access file contents](https://docs.stripe.com/docs/file-upload#download-file-contents). sig { - params(file: String, params: T.any(::Stripe::FileRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::File) + params(file: String, params: T.any(::Stripe::FileRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::File) } def retrieve(file, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/financial_connections/account_owner_service.rbi b/rbi/stripe/services/financial_connections/account_owner_service.rbi index cf15557d..2a3eefaa 100644 --- a/rbi/stripe/services/financial_connections/account_owner_service.rbi +++ b/rbi/stripe/services/financial_connections/account_owner_service.rbi @@ -7,7 +7,7 @@ module Stripe class AccountOwnerService < StripeService # Lists all owners for a given Account sig { - params(account: String, params: T.any(::Stripe::FinancialConnections::AccountOwnerListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(account: String, params: T.any(::Stripe::FinancialConnections::AccountOwnerListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(account, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/financial_connections/account_service.rbi b/rbi/stripe/services/financial_connections/account_service.rbi index 76a81ef2..0c4346d2 100644 --- a/rbi/stripe/services/financial_connections/account_service.rbi +++ b/rbi/stripe/services/financial_connections/account_service.rbi @@ -8,37 +8,37 @@ module Stripe attr_reader :owners # Disables your access to a Financial Connections Account. You will no longer be able to access data associated with the account (e.g. balances, transactions). sig { - params(account: String, params: T.any(::Stripe::FinancialConnections::AccountDisconnectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(account: String, params: T.any(::Stripe::FinancialConnections::AccountDisconnectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def disconnect(account, params = {}, opts = {}); end # Returns a list of Financial Connections Account objects. sig { - params(params: T.any(::Stripe::FinancialConnections::AccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::FinancialConnections::AccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Refreshes the data associated with a Financial Connections Account. sig { - params(account: String, params: T.any(::Stripe::FinancialConnections::AccountRefreshParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(account: String, params: T.any(::Stripe::FinancialConnections::AccountRefreshParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def refresh(account, params = {}, opts = {}); end # Retrieves the details of an Financial Connections Account. sig { - params(account: String, params: T.any(::Stripe::FinancialConnections::AccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(account: String, params: T.any(::Stripe::FinancialConnections::AccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def retrieve(account, params = {}, opts = {}); end - # Subscribes to periodic refreshes of data associated with a Financial Connections Account. + # Subscribes to periodic refreshes of data associated with a Financial Connections Account. When the account status is active, data is typically refreshed once a day. sig { - params(account: String, params: T.any(::Stripe::FinancialConnections::AccountSubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(account: String, params: T.any(::Stripe::FinancialConnections::AccountSubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def subscribe(account, params = {}, opts = {}); end # Unsubscribes from periodic refreshes of data associated with a Financial Connections Account. sig { - params(account: String, params: T.any(::Stripe::FinancialConnections::AccountUnsubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Account) + params(account: String, params: T.any(::Stripe::FinancialConnections::AccountUnsubscribeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Account) } def unsubscribe(account, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/financial_connections/session_service.rbi b/rbi/stripe/services/financial_connections/session_service.rbi index 0d6d9f41..7324c773 100644 --- a/rbi/stripe/services/financial_connections/session_service.rbi +++ b/rbi/stripe/services/financial_connections/session_service.rbi @@ -7,13 +7,13 @@ module Stripe class SessionService < StripeService # To launch the Financial Connections authorization flow, create a Session. The session's client_secret can be used to launch the flow using Stripe.js. sig { - params(params: T.any(::Stripe::FinancialConnections::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Session) + params(params: T.any(::Stripe::FinancialConnections::SessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Session) } def create(params = {}, opts = {}); end # Retrieves the details of a Financial Connections Session sig { - params(session: String, params: T.any(::Stripe::FinancialConnections::SessionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Session) + params(session: String, params: T.any(::Stripe::FinancialConnections::SessionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Session) } def retrieve(session, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/financial_connections/transaction_service.rbi b/rbi/stripe/services/financial_connections/transaction_service.rbi index a2afb153..5f269d8a 100644 --- a/rbi/stripe/services/financial_connections/transaction_service.rbi +++ b/rbi/stripe/services/financial_connections/transaction_service.rbi @@ -7,13 +7,13 @@ module Stripe class TransactionService < StripeService # Returns a list of Financial Connections Transaction objects. sig { - params(params: T.any(::Stripe::FinancialConnections::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::FinancialConnections::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of a Financial Connections Transaction sig { - params(transaction: String, params: T.any(::Stripe::FinancialConnections::TransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::FinancialConnections::Transaction) + params(transaction: String, params: T.any(::Stripe::FinancialConnections::TransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::FinancialConnections::Transaction) } def retrieve(transaction, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/forwarding/request_service.rbi b/rbi/stripe/services/forwarding/request_service.rbi index f42acff7..5d5546d6 100644 --- a/rbi/stripe/services/forwarding/request_service.rbi +++ b/rbi/stripe/services/forwarding/request_service.rbi @@ -7,19 +7,19 @@ module Stripe class RequestService < StripeService # Creates a ForwardingRequest object. sig { - params(params: T.any(::Stripe::Forwarding::RequestCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Forwarding::Request) + params(params: T.any(::Stripe::Forwarding::RequestCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Forwarding::Request) } def create(params = {}, opts = {}); end # Lists all ForwardingRequest objects. sig { - params(params: T.any(::Stripe::Forwarding::RequestListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Forwarding::RequestListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a ForwardingRequest object. sig { - params(id: String, params: T.any(::Stripe::Forwarding::RequestRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Forwarding::Request) + params(id: String, params: T.any(::Stripe::Forwarding::RequestRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Forwarding::Request) } def retrieve(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/identity/verification_report_service.rbi b/rbi/stripe/services/identity/verification_report_service.rbi index cc1fb2ab..2704ab93 100644 --- a/rbi/stripe/services/identity/verification_report_service.rbi +++ b/rbi/stripe/services/identity/verification_report_service.rbi @@ -7,13 +7,13 @@ module Stripe class VerificationReportService < StripeService # List all verification reports. sig { - params(params: T.any(::Stripe::Identity::VerificationReportListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Identity::VerificationReportListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves an existing VerificationReport sig { - params(report: String, params: T.any(::Stripe::Identity::VerificationReportRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationReport) + params(report: String, params: T.any(::Stripe::Identity::VerificationReportRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationReport) } def retrieve(report, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/identity/verification_session_service.rbi b/rbi/stripe/services/identity/verification_session_service.rbi index 89662896..7b83bed9 100644 --- a/rbi/stripe/services/identity/verification_session_service.rbi +++ b/rbi/stripe/services/identity/verification_session_service.rbi @@ -9,7 +9,7 @@ module Stripe # # Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#cancel). sig { - params(session: String, params: T.any(::Stripe::Identity::VerificationSessionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(session: String, params: T.any(::Stripe::Identity::VerificationSessionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationSession) } def cancel(session, params = {}, opts = {}); end @@ -21,13 +21,13 @@ module Stripe # # Related guide: [Verify your users' identity documents](https://docs.stripe.com/docs/identity/verify-identity-documents) sig { - params(params: T.any(::Stripe::Identity::VerificationSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(params: T.any(::Stripe::Identity::VerificationSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationSession) } def create(params = {}, opts = {}); end # Returns a list of VerificationSessions sig { - params(params: T.any(::Stripe::Identity::VerificationSessionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Identity::VerificationSessionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end @@ -51,7 +51,7 @@ module Stripe # # [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#redact). sig { - params(session: String, params: T.any(::Stripe::Identity::VerificationSessionRedactParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(session: String, params: T.any(::Stripe::Identity::VerificationSessionRedactParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationSession) } def redact(session, params = {}, opts = {}); end @@ -60,7 +60,7 @@ module Stripe # When the session status is requires_input, you can use this method to retrieve a valid # client_secret or url to allow re-submission. sig { - params(session: String, params: T.any(::Stripe::Identity::VerificationSessionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(session: String, params: T.any(::Stripe::Identity::VerificationSessionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationSession) } def retrieve(session, params = {}, opts = {}); end @@ -69,7 +69,7 @@ module Stripe # When the session status is requires_input, you can use this method to update the # verification check and options. sig { - params(session: String, params: T.any(::Stripe::Identity::VerificationSessionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession) + params(session: String, params: T.any(::Stripe::Identity::VerificationSessionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Identity::VerificationSession) } def update(session, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/invoice_item_service.rbi b/rbi/stripe/services/invoice_item_service.rbi index 8d57e8f6..cf4366ad 100644 --- a/rbi/stripe/services/invoice_item_service.rbi +++ b/rbi/stripe/services/invoice_item_service.rbi @@ -6,31 +6,31 @@ module Stripe class InvoiceItemService < StripeService # Creates an item to be added to a draft invoice (up to 250 items per invoice). If no invoice is specified, the item will be on the next invoice created for the customer specified. sig { - params(params: T.any(::Stripe::InvoiceItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceItem) + params(params: T.any(::Stripe::InvoiceItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceItem) } def create(params = {}, opts = {}); end # Deletes an invoice item, removing it from an invoice. Deleting invoice items is only possible when they're not attached to invoices, or if it's attached to a draft invoice. sig { - params(invoiceitem: String, params: T.any(::Stripe::InvoiceItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceItem) + params(invoiceitem: String, params: T.any(::Stripe::InvoiceItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceItem) } def delete(invoiceitem, params = {}, opts = {}); end # Returns a list of your invoice items. Invoice items are returned sorted by creation date, with the most recently created invoice items appearing first. sig { - params(params: T.any(::Stripe::InvoiceItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::InvoiceItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the invoice item with the given ID. sig { - params(invoiceitem: String, params: T.any(::Stripe::InvoiceItemRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceItem) + params(invoiceitem: String, params: T.any(::Stripe::InvoiceItemRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceItem) } def retrieve(invoiceitem, params = {}, opts = {}); end # Updates the amount or description of an invoice item on an upcoming invoice. Updating an invoice item is only possible before the invoice it's attached to is closed. sig { - params(invoiceitem: String, params: T.any(::Stripe::InvoiceItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceItem) + params(invoiceitem: String, params: T.any(::Stripe::InvoiceItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceItem) } def update(invoiceitem, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/invoice_line_item_service.rbi b/rbi/stripe/services/invoice_line_item_service.rbi index d43f4bd3..c462b389 100644 --- a/rbi/stripe/services/invoice_line_item_service.rbi +++ b/rbi/stripe/services/invoice_line_item_service.rbi @@ -6,7 +6,7 @@ module Stripe class InvoiceLineItemService < StripeService # When retrieving an invoice, you'll get a lines property containing the total count of line items and the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(invoice: String, params: T.any(::Stripe::InvoiceLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(invoice, params = {}, opts = {}); end @@ -15,7 +15,7 @@ module Stripe # item and the invoice line item, so updates on this endpoint will propagate to the invoice item as well. # Updating an invoice's line item is only possible before the invoice is finalized. sig { - params(invoice: String, line_item_id: String, params: T.any(::Stripe::InvoiceLineItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceLineItem) + params(invoice: String, line_item_id: String, params: T.any(::Stripe::InvoiceLineItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceLineItem) } def update(invoice, line_item_id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/invoice_payment_service.rbi b/rbi/stripe/services/invoice_payment_service.rbi index ef82823b..57867b88 100644 --- a/rbi/stripe/services/invoice_payment_service.rbi +++ b/rbi/stripe/services/invoice_payment_service.rbi @@ -6,13 +6,13 @@ module Stripe class InvoicePaymentService < StripeService # When retrieving an invoice, there is an includable payments property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of payments. sig { - params(params: T.any(::Stripe::InvoicePaymentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::InvoicePaymentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the invoice payment with the given ID. sig { - params(invoice_payment: String, params: T.any(::Stripe::InvoicePaymentRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoicePayment) + params(invoice_payment: String, params: T.any(::Stripe::InvoicePaymentRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoicePayment) } def retrieve(invoice_payment, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/invoice_rendering_template_service.rbi b/rbi/stripe/services/invoice_rendering_template_service.rbi index 28cd67e6..ea3b7bfb 100644 --- a/rbi/stripe/services/invoice_rendering_template_service.rbi +++ b/rbi/stripe/services/invoice_rendering_template_service.rbi @@ -6,25 +6,25 @@ module Stripe class InvoiceRenderingTemplateService < StripeService # Updates the status of an invoice rendering template to ‘archived' so no new Stripe objects (customers, invoices, etc.) can reference it. The template can also no longer be updated. However, if the template is already set on a Stripe object, it will continue to be applied on invoices generated by it. sig { - params(template: String, params: T.any(::Stripe::InvoiceRenderingTemplateArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceRenderingTemplate) + params(template: String, params: T.any(::Stripe::InvoiceRenderingTemplateArchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceRenderingTemplate) } def archive(template, params = {}, opts = {}); end # List all templates, ordered by creation date, with the most recently created template appearing first. sig { - params(params: T.any(::Stripe::InvoiceRenderingTemplateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::InvoiceRenderingTemplateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves an invoice rendering template with the given ID. It by default returns the latest version of the template. Optionally, specify a version to see previous versions. sig { - params(template: String, params: T.any(::Stripe::InvoiceRenderingTemplateRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceRenderingTemplate) + params(template: String, params: T.any(::Stripe::InvoiceRenderingTemplateRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceRenderingTemplate) } def retrieve(template, params = {}, opts = {}); end # Unarchive an invoice rendering template so it can be used on new Stripe objects again. sig { - params(template: String, params: T.any(::Stripe::InvoiceRenderingTemplateUnarchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::InvoiceRenderingTemplate) + params(template: String, params: T.any(::Stripe::InvoiceRenderingTemplateUnarchiveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::InvoiceRenderingTemplate) } def unarchive(template, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/invoice_service.rbi b/rbi/stripe/services/invoice_service.rbi index 60b1d0fc..7d62c4ae 100644 --- a/rbi/stripe/services/invoice_service.rbi +++ b/rbi/stripe/services/invoice_service.rbi @@ -7,7 +7,7 @@ module Stripe attr_reader :line_items # Adds multiple line items to an invoice. This is only possible when an invoice is still a draft. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceAddLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceAddLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def add_lines(invoice, params = {}, opts = {}); end @@ -22,13 +22,13 @@ module Stripe # # See: [Partial payments](https://docs.stripe.com/docs/invoicing/partial-payments) to learn more. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceAttachPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceAttachPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def attach_payment(invoice, params = {}, opts = {}); end # This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you [finalize the invoice, which allows you to [pay](#pay_invoice) or send](https://docs.stripe.com/api#finalize_invoice) the invoice to your customers. sig { - params(params: T.any(::Stripe::InvoiceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def create(params = {}, opts = {}); end @@ -42,49 +42,49 @@ module Stripe # # Note: Currency conversion calculations use the latest exchange rates. Exchange rates may vary between the time of the preview and the time of the actual invoice creation. [Learn more](https://docs.stripe.com/currencies/conversions) sig { - params(params: T.any(::Stripe::InvoiceCreatePreviewParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(params: T.any(::Stripe::InvoiceCreatePreviewParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def create_preview(params = {}, opts = {}); end # Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://docs.stripe.com/api#void_invoice). sig { - params(invoice: String, params: T.any(::Stripe::InvoiceDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def delete(invoice, params = {}, opts = {}); end # Stripe automatically finalizes drafts before sending and attempting payment on invoices. However, if you'd like to finalize a draft invoice manually, you can do so using this method. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceFinalizeInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceFinalizeInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def finalize_invoice(invoice, params = {}, opts = {}); end # You can list all invoices, or list the invoices for a specific customer. The invoices are returned sorted by creation date, with the most recently created invoices appearing first. sig { - params(params: T.any(::Stripe::InvoiceListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::InvoiceListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Marking an invoice as uncollectible is useful for keeping track of bad debts that can be written off for accounting purposes. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceMarkUncollectibleParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceMarkUncollectibleParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def mark_uncollectible(invoice, params = {}, opts = {}); end # Stripe automatically creates and then attempts to collect payment on invoices for customers on subscriptions according to your [subscriptions settings](https://dashboard.stripe.com/account/billing/automatic). However, if you'd like to attempt payment on an invoice out of the normal collection schedule or for some other reason, you can do so. sig { - params(invoice: String, params: T.any(::Stripe::InvoicePayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoicePayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def pay(invoice, params = {}, opts = {}); end # Removes multiple line items from an invoice. This is only possible when an invoice is still a draft. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceRemoveLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceRemoveLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def remove_lines(invoice, params = {}, opts = {}); end # Retrieves the invoice with the given ID. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def retrieve(invoice, params = {}, opts = {}); end @@ -93,7 +93,7 @@ module Stripe # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up # to an hour behind during outages. Search functionality is not available to merchants in India. sig { - params(params: T.any(::Stripe::InvoiceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::InvoiceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def search(params = {}, opts = {}); end @@ -101,7 +101,7 @@ module Stripe # # Requests made in test-mode result in no emails being sent, despite sending an invoice.sent event. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceSendInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceSendInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def send_invoice(invoice, params = {}, opts = {}); end @@ -112,13 +112,13 @@ module Stripe # sending reminders for, or [automatically reconciling](https://docs.stripe.com/docs/billing/invoices/reconciliation) invoices, pass # auto_advance=false. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def update(invoice, params = {}, opts = {}); end # Updates multiple line items on an invoice. This is only possible when an invoice is still a draft. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceUpdateLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceUpdateLinesParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def update_lines(invoice, params = {}, opts = {}); end @@ -126,7 +126,7 @@ module Stripe # # Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or credit note](https://docs.stripe.com/api#create_invoice) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business. sig { - params(invoice: String, params: T.any(::Stripe::InvoiceVoidInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Invoice) + params(invoice: String, params: T.any(::Stripe::InvoiceVoidInvoiceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Invoice) } def void_invoice(invoice, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/issuing/authorization_service.rbi b/rbi/stripe/services/issuing/authorization_service.rbi index ddfd337b..779347f9 100644 --- a/rbi/stripe/services/issuing/authorization_service.rbi +++ b/rbi/stripe/services/issuing/authorization_service.rbi @@ -8,32 +8,32 @@ module Stripe # [Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations) flow. # This method is deprecated. Instead, [respond directly to the webhook request to approve an authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). sig { - params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def approve(authorization, params = {}, opts = {}); end # [Deprecated] Declines a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations) flow. # This method is deprecated. Instead, [respond directly to the webhook request to decline an authorization](https://docs.stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). sig { - params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationDeclineParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationDeclineParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def decline(authorization, params = {}, opts = {}); end # Returns a list of Issuing Authorization objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::AuthorizationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::AuthorizationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves an Issuing Authorization object. sig { - params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def retrieve(authorization, params = {}, opts = {}); end # Updates the specified Issuing Authorization object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::Issuing::AuthorizationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def update(authorization, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/issuing/card_service.rbi b/rbi/stripe/services/issuing/card_service.rbi index 9a236941..8ae72e3f 100644 --- a/rbi/stripe/services/issuing/card_service.rbi +++ b/rbi/stripe/services/issuing/card_service.rbi @@ -7,25 +7,25 @@ module Stripe class CardService < StripeService # Creates an Issuing Card object. sig { - params(params: T.any(::Stripe::Issuing::CardCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Card) + params(params: T.any(::Stripe::Issuing::CardCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Card) } def create(params = {}, opts = {}); end # Returns a list of Issuing Card objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::CardListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::CardListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves an Issuing Card object. sig { - params(card: String, params: T.any(::Stripe::Issuing::CardRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Card) + params(card: String, params: T.any(::Stripe::Issuing::CardRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Card) } def retrieve(card, params = {}, opts = {}); end # Updates the specified Issuing Card object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(card: String, params: T.any(::Stripe::Issuing::CardUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Card) + params(card: String, params: T.any(::Stripe::Issuing::CardUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Card) } def update(card, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/issuing/cardholder_service.rbi b/rbi/stripe/services/issuing/cardholder_service.rbi index cde48cfb..ae2ffcff 100644 --- a/rbi/stripe/services/issuing/cardholder_service.rbi +++ b/rbi/stripe/services/issuing/cardholder_service.rbi @@ -7,25 +7,25 @@ module Stripe class CardholderService < StripeService # Creates a new Issuing Cardholder object that can be issued cards. sig { - params(params: T.any(::Stripe::Issuing::CardholderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Cardholder) + params(params: T.any(::Stripe::Issuing::CardholderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Cardholder) } def create(params = {}, opts = {}); end # Returns a list of Issuing Cardholder objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::CardholderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::CardholderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves an Issuing Cardholder object. sig { - params(cardholder: String, params: T.any(::Stripe::Issuing::CardholderRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Cardholder) + params(cardholder: String, params: T.any(::Stripe::Issuing::CardholderRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Cardholder) } def retrieve(cardholder, params = {}, opts = {}); end # Updates the specified Issuing Cardholder object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(cardholder: String, params: T.any(::Stripe::Issuing::CardholderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Cardholder) + params(cardholder: String, params: T.any(::Stripe::Issuing::CardholderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Cardholder) } def update(cardholder, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/issuing/dispute_service.rbi b/rbi/stripe/services/issuing/dispute_service.rbi index f034b4b4..2eeabd05 100644 --- a/rbi/stripe/services/issuing/dispute_service.rbi +++ b/rbi/stripe/services/issuing/dispute_service.rbi @@ -7,31 +7,31 @@ module Stripe class DisputeService < StripeService # Creates an Issuing Dispute object. Individual pieces of evidence within the evidence object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to [Dispute reasons and evidence](https://docs.stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence) for more details about evidence requirements. sig { - params(params: T.any(::Stripe::Issuing::DisputeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Dispute) + params(params: T.any(::Stripe::Issuing::DisputeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Dispute) } def create(params = {}, opts = {}); end # Returns a list of Issuing Dispute objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::DisputeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::DisputeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves an Issuing Dispute object. sig { - params(dispute: String, params: T.any(::Stripe::Issuing::DisputeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Dispute) + params(dispute: String, params: T.any(::Stripe::Issuing::DisputeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Dispute) } def retrieve(dispute, params = {}, opts = {}); end # Submits an Issuing Dispute to the card network. Stripe validates that all evidence fields required for the dispute's reason are present. For more details, see [Dispute reasons and evidence](https://docs.stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence). sig { - params(dispute: String, params: T.any(::Stripe::Issuing::DisputeSubmitParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Dispute) + params(dispute: String, params: T.any(::Stripe::Issuing::DisputeSubmitParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Dispute) } def submit(dispute, params = {}, opts = {}); end # Updates the specified Issuing Dispute object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on the evidence object can be unset by passing in an empty string. sig { - params(dispute: String, params: T.any(::Stripe::Issuing::DisputeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Dispute) + params(dispute: String, params: T.any(::Stripe::Issuing::DisputeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Dispute) } def update(dispute, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/issuing/personalization_design_service.rbi b/rbi/stripe/services/issuing/personalization_design_service.rbi index 047188a7..f19489d8 100644 --- a/rbi/stripe/services/issuing/personalization_design_service.rbi +++ b/rbi/stripe/services/issuing/personalization_design_service.rbi @@ -7,25 +7,25 @@ module Stripe class PersonalizationDesignService < StripeService # Creates a personalization design object. sig { - params(params: T.any(::Stripe::Issuing::PersonalizationDesignCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::PersonalizationDesign) + params(params: T.any(::Stripe::Issuing::PersonalizationDesignCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::PersonalizationDesign) } def create(params = {}, opts = {}); end # Returns a list of personalization design objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::PersonalizationDesignListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::PersonalizationDesignListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a personalization design object. sig { - params(personalization_design: String, params: T.any(::Stripe::Issuing::PersonalizationDesignRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::PersonalizationDesign) + params(personalization_design: String, params: T.any(::Stripe::Issuing::PersonalizationDesignRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::PersonalizationDesign) } def retrieve(personalization_design, params = {}, opts = {}); end # Updates a card personalization object. sig { - params(personalization_design: String, params: T.any(::Stripe::Issuing::PersonalizationDesignUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::PersonalizationDesign) + params(personalization_design: String, params: T.any(::Stripe::Issuing::PersonalizationDesignUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::PersonalizationDesign) } def update(personalization_design, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/issuing/physical_bundle_service.rbi b/rbi/stripe/services/issuing/physical_bundle_service.rbi index 8f35701a..3751cbb0 100644 --- a/rbi/stripe/services/issuing/physical_bundle_service.rbi +++ b/rbi/stripe/services/issuing/physical_bundle_service.rbi @@ -7,13 +7,13 @@ module Stripe class PhysicalBundleService < StripeService # Returns a list of physical bundle objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::PhysicalBundleListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::PhysicalBundleListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a physical bundle object. sig { - params(physical_bundle: String, params: T.any(::Stripe::Issuing::PhysicalBundleRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::PhysicalBundle) + params(physical_bundle: String, params: T.any(::Stripe::Issuing::PhysicalBundleRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::PhysicalBundle) } def retrieve(physical_bundle, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/issuing/token_service.rbi b/rbi/stripe/services/issuing/token_service.rbi index 9fcb6e8f..90250550 100644 --- a/rbi/stripe/services/issuing/token_service.rbi +++ b/rbi/stripe/services/issuing/token_service.rbi @@ -7,19 +7,19 @@ module Stripe class TokenService < StripeService # Lists all Issuing Token objects for a given card. sig { - params(params: T.any(::Stripe::Issuing::TokenListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::TokenListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves an Issuing Token object. sig { - params(token: String, params: T.any(::Stripe::Issuing::TokenRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Token) + params(token: String, params: T.any(::Stripe::Issuing::TokenRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Token) } def retrieve(token, params = {}, opts = {}); end # Attempts to update the specified Issuing Token object to the status specified. sig { - params(token: String, params: T.any(::Stripe::Issuing::TokenUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Token) + params(token: String, params: T.any(::Stripe::Issuing::TokenUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Token) } def update(token, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/issuing/transaction_service.rbi b/rbi/stripe/services/issuing/transaction_service.rbi index 40559480..d2b7759d 100644 --- a/rbi/stripe/services/issuing/transaction_service.rbi +++ b/rbi/stripe/services/issuing/transaction_service.rbi @@ -7,19 +7,19 @@ module Stripe class TransactionService < StripeService # Returns a list of Issuing Transaction objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Issuing::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Issuing::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves an Issuing Transaction object. sig { - params(transaction: String, params: T.any(::Stripe::Issuing::TransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Transaction) + params(transaction: String, params: T.any(::Stripe::Issuing::TransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Transaction) } def retrieve(transaction, params = {}, opts = {}); end # Updates the specified Issuing Transaction object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(transaction: String, params: T.any(::Stripe::Issuing::TransactionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Transaction) + params(transaction: String, params: T.any(::Stripe::Issuing::TransactionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Transaction) } def update(transaction, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/mandate_service.rbi b/rbi/stripe/services/mandate_service.rbi index cae5c537..bd6a6644 100644 --- a/rbi/stripe/services/mandate_service.rbi +++ b/rbi/stripe/services/mandate_service.rbi @@ -6,7 +6,7 @@ module Stripe class MandateService < StripeService # Retrieves a Mandate object. sig { - params(mandate: String, params: T.any(::Stripe::MandateRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Mandate) + params(mandate: String, params: T.any(::Stripe::MandateRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Mandate) } def retrieve(mandate, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/payment_attempt_record_service.rbi b/rbi/stripe/services/payment_attempt_record_service.rbi new file mode 100644 index 00000000..e6e4ef9c --- /dev/null +++ b/rbi/stripe/services/payment_attempt_record_service.rbi @@ -0,0 +1,19 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + class PaymentAttemptRecordService < StripeService + # List all the Payment Attempt Records attached to the specified Payment Record. + sig { + params(params: T.any(::Stripe::PaymentAttemptRecordListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) + } + def list(params = {}, opts = {}); end + + # Retrieves a Payment Attempt Record with the given ID + sig { + params(id: String, params: T.any(::Stripe::PaymentAttemptRecordRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentAttemptRecord) + } + def retrieve(id, params = {}, opts = {}); end + end +end \ No newline at end of file diff --git a/rbi/stripe/services/payment_intent_amount_details_line_item_service.rbi b/rbi/stripe/services/payment_intent_amount_details_line_item_service.rbi new file mode 100644 index 00000000..65f82e1f --- /dev/null +++ b/rbi/stripe/services/payment_intent_amount_details_line_item_service.rbi @@ -0,0 +1,13 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + class PaymentIntentAmountDetailsLineItemService < StripeService + # Lists all LineItems of a given PaymentIntent. + sig { + params(intent: String, params: T.any(::Stripe::PaymentIntentAmountDetailsLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) + } + def list(intent, params = {}, opts = {}); end + end +end \ No newline at end of file diff --git a/rbi/stripe/services/payment_intent_service.rbi b/rbi/stripe/services/payment_intent_service.rbi index e09ea82c..027b3c88 100644 --- a/rbi/stripe/services/payment_intent_service.rbi +++ b/rbi/stripe/services/payment_intent_service.rbi @@ -4,9 +4,10 @@ # typed: true module Stripe class PaymentIntentService < StripeService + attr_reader :amount_details_line_items # Manually reconcile the remaining amount for a customer_balance PaymentIntent. sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentApplyCustomerBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentApplyCustomerBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def apply_customer_balance(intent, params = {}, opts = {}); end @@ -16,7 +17,7 @@ module Stripe # # You can't cancel the PaymentIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead. sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def cancel(intent, params = {}, opts = {}); end @@ -26,7 +27,7 @@ module Stripe # # Learn more about [separate authorization and capture](https://docs.stripe.com/docs/payments/capture-later). sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def capture(intent, params = {}, opts = {}); end @@ -61,7 +62,7 @@ module Stripe # After this limit is reached, any further calls to this endpoint will # transition the PaymentIntent to the canceled state. sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def confirm(intent, params = {}, opts = {}); end @@ -76,7 +77,7 @@ module Stripe # available in the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) when you supply # confirm=true. sig { - params(params: T.any(::Stripe::PaymentIntentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(params: T.any(::Stripe::PaymentIntentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def create(params = {}, opts = {}); end @@ -105,13 +106,13 @@ module Stripe # # Learn more about [incremental authorizations](https://docs.stripe.com/docs/terminal/features/incremental-authorizations). sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentIncrementAuthorizationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentIncrementAuthorizationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def increment_authorization(intent, params = {}, opts = {}); end # Returns a list of PaymentIntents. sig { - params(params: T.any(::Stripe::PaymentIntentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PaymentIntentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end @@ -121,7 +122,7 @@ module Stripe # # If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the [payment intent](https://docs.stripe.com/api#payment_intent_object) object reference for more details. sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def retrieve(intent, params = {}, opts = {}); end @@ -130,7 +131,7 @@ module Stripe # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up # to an hour behind during outages. Search functionality is not available to merchants in India. sig { - params(params: T.any(::Stripe::PaymentIntentSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::PaymentIntentSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def search(params = {}, opts = {}); end @@ -142,13 +143,13 @@ module Stripe # update and confirm at the same time, we recommend updating properties through # the [confirm API](https://docs.stripe.com/docs/api/payment_intents/confirm) instead. sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def update(intent, params = {}, opts = {}); end # Verifies microdeposits on a PaymentIntent object. sig { - params(intent: String, params: T.any(::Stripe::PaymentIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentIntent) + params(intent: String, params: T.any(::Stripe::PaymentIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) } def verify_microdeposits(intent, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/payment_link_line_item_service.rbi b/rbi/stripe/services/payment_link_line_item_service.rbi index 8bf65cc1..90eced05 100644 --- a/rbi/stripe/services/payment_link_line_item_service.rbi +++ b/rbi/stripe/services/payment_link_line_item_service.rbi @@ -6,7 +6,7 @@ module Stripe class PaymentLinkLineItemService < StripeService # When retrieving a payment link, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. sig { - params(payment_link: String, params: T.any(::Stripe::PaymentLinkLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(payment_link: String, params: T.any(::Stripe::PaymentLinkLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(payment_link, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/payment_link_service.rbi b/rbi/stripe/services/payment_link_service.rbi index 97c46c7b..7ef4e5a6 100644 --- a/rbi/stripe/services/payment_link_service.rbi +++ b/rbi/stripe/services/payment_link_service.rbi @@ -7,25 +7,25 @@ module Stripe attr_reader :line_items # Creates a payment link. sig { - params(params: T.any(::Stripe::PaymentLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentLink) + params(params: T.any(::Stripe::PaymentLinkCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentLink) } def create(params = {}, opts = {}); end # Returns a list of your payment links. sig { - params(params: T.any(::Stripe::PaymentLinkListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PaymentLinkListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieve a payment link. sig { - params(payment_link: String, params: T.any(::Stripe::PaymentLinkRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentLink) + params(payment_link: String, params: T.any(::Stripe::PaymentLinkRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentLink) } def retrieve(payment_link, params = {}, opts = {}); end # Updates a payment link. sig { - params(payment_link: String, params: T.any(::Stripe::PaymentLinkUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentLink) + params(payment_link: String, params: T.any(::Stripe::PaymentLinkUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentLink) } def update(payment_link, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/payment_method_configuration_service.rbi b/rbi/stripe/services/payment_method_configuration_service.rbi index 6f210672..891bedb9 100644 --- a/rbi/stripe/services/payment_method_configuration_service.rbi +++ b/rbi/stripe/services/payment_method_configuration_service.rbi @@ -6,25 +6,25 @@ module Stripe class PaymentMethodConfigurationService < StripeService # Creates a payment method configuration sig { - params(params: T.any(::Stripe::PaymentMethodConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodConfiguration) + params(params: T.any(::Stripe::PaymentMethodConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodConfiguration) } def create(params = {}, opts = {}); end # List payment method configurations sig { - params(params: T.any(::Stripe::PaymentMethodConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PaymentMethodConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieve payment method configuration sig { - params(configuration: String, params: T.any(::Stripe::PaymentMethodConfigurationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodConfiguration) + params(configuration: String, params: T.any(::Stripe::PaymentMethodConfigurationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodConfiguration) } def retrieve(configuration, params = {}, opts = {}); end # Update payment method configuration sig { - params(configuration: String, params: T.any(::Stripe::PaymentMethodConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodConfiguration) + params(configuration: String, params: T.any(::Stripe::PaymentMethodConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodConfiguration) } def update(configuration, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/payment_method_domain_service.rbi b/rbi/stripe/services/payment_method_domain_service.rbi index ea9edb76..798e8d2d 100644 --- a/rbi/stripe/services/payment_method_domain_service.rbi +++ b/rbi/stripe/services/payment_method_domain_service.rbi @@ -6,25 +6,25 @@ module Stripe class PaymentMethodDomainService < StripeService # Creates a payment method domain. sig { - params(params: T.any(::Stripe::PaymentMethodDomainCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodDomain) + params(params: T.any(::Stripe::PaymentMethodDomainCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodDomain) } def create(params = {}, opts = {}); end # Lists the details of existing payment method domains. sig { - params(params: T.any(::Stripe::PaymentMethodDomainListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PaymentMethodDomainListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing payment method domain. sig { - params(payment_method_domain: String, params: T.any(::Stripe::PaymentMethodDomainRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodDomain) + params(payment_method_domain: String, params: T.any(::Stripe::PaymentMethodDomainRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodDomain) } def retrieve(payment_method_domain, params = {}, opts = {}); end # Updates an existing payment method domain. sig { - params(payment_method_domain: String, params: T.any(::Stripe::PaymentMethodDomainUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodDomain) + params(payment_method_domain: String, params: T.any(::Stripe::PaymentMethodDomainUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodDomain) } def update(payment_method_domain, params = {}, opts = {}); end @@ -35,7 +35,7 @@ module Stripe # # Related guides: [Payment method domains](https://docs.stripe.com/docs/payments/payment-methods/pmd-registration). sig { - params(payment_method_domain: String, params: T.any(::Stripe::PaymentMethodDomainValidateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethodDomain) + params(payment_method_domain: String, params: T.any(::Stripe::PaymentMethodDomainValidateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethodDomain) } def validate(payment_method_domain, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/payment_method_service.rbi b/rbi/stripe/services/payment_method_service.rbi index 1a5cd202..ff9c7e58 100644 --- a/rbi/stripe/services/payment_method_service.rbi +++ b/rbi/stripe/services/payment_method_service.rbi @@ -18,7 +18,7 @@ module Stripe # set [invoice_settings.default_payment_method](https://docs.stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method), # on the Customer to the PaymentMethod's ID. sig { - params(payment_method: String, params: T.any(::Stripe::PaymentMethodAttachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(payment_method: String, params: T.any(::Stripe::PaymentMethodAttachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def attach(payment_method, params = {}, opts = {}); end @@ -26,31 +26,31 @@ module Stripe # # Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the SetupIntent](https://docs.stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment. sig { - params(params: T.any(::Stripe::PaymentMethodCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(params: T.any(::Stripe::PaymentMethodCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def create(params = {}, opts = {}); end # Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer. sig { - params(payment_method: String, params: T.any(::Stripe::PaymentMethodDetachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(payment_method: String, params: T.any(::Stripe::PaymentMethodDetachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def detach(payment_method, params = {}, opts = {}); end # Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://docs.stripe.com/docs/api/payment_methods/customer_list) API instead. sig { - params(params: T.any(::Stripe::PaymentMethodListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PaymentMethodListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use [Retrieve a Customer's PaymentMethods](https://docs.stripe.com/docs/api/payment_methods/customer) sig { - params(payment_method: String, params: T.any(::Stripe::PaymentMethodRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(payment_method: String, params: T.any(::Stripe::PaymentMethodRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def retrieve(payment_method, params = {}, opts = {}); end # Updates a PaymentMethod object. A PaymentMethod must be attached to a customer to be updated. sig { - params(payment_method: String, params: T.any(::Stripe::PaymentMethodUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentMethod) + params(payment_method: String, params: T.any(::Stripe::PaymentMethodUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentMethod) } def update(payment_method, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/payment_record_service.rbi b/rbi/stripe/services/payment_record_service.rbi new file mode 100644 index 00000000..d1df017d --- /dev/null +++ b/rbi/stripe/services/payment_record_service.rbi @@ -0,0 +1,62 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + class PaymentRecordService < StripeService + # Report a new Payment Record. You may report a Payment Record as it is + # initialized and later report updates through the other report_* methods, or report Payment + # Records in a terminal state directly, through this method. + sig { + params(params: T.any(::Stripe::PaymentRecordReportPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_payment(params = {}, opts = {}); end + + # Report a new payment attempt on the specified Payment Record. A new payment + # attempt can only be specified if all other payment attempts are canceled or failed. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportPaymentAttemptParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_payment_attempt(id, params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # was canceled. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportPaymentAttemptCanceledParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_payment_attempt_canceled(id, params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # failed or errored. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportPaymentAttemptFailedParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_payment_attempt_failed(id, params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # was guaranteed. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportPaymentAttemptGuaranteedParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_payment_attempt_guaranteed(id, params = {}, opts = {}); end + + # Report informational updates on the specified Payment Record. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportPaymentAttemptInformationalParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_payment_attempt_informational(id, params = {}, opts = {}); end + + # Report that the most recent payment attempt on the specified Payment Record + # was refunded. + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordReportRefundParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def report_refund(id, params = {}, opts = {}); end + + # Retrieves a Payment Record with the given ID + sig { + params(id: String, params: T.any(::Stripe::PaymentRecordRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentRecord) + } + def retrieve(id, params = {}, opts = {}); end + end +end \ No newline at end of file diff --git a/rbi/stripe/services/payout_service.rbi b/rbi/stripe/services/payout_service.rbi index 61d99c7d..dab41274 100644 --- a/rbi/stripe/services/payout_service.rbi +++ b/rbi/stripe/services/payout_service.rbi @@ -6,7 +6,7 @@ module Stripe class PayoutService < StripeService # You can cancel a previously created payout if its status is pending. Stripe refunds the funds to your available balance. You can't cancel automatic Stripe payouts. sig { - params(payout: String, params: T.any(::Stripe::PayoutCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(payout: String, params: T.any(::Stripe::PayoutCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Payout) } def cancel(payout, params = {}, opts = {}); end @@ -16,33 +16,33 @@ module Stripe # # If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://docs.stripe.com/api#balance_object) details available and pending amounts by source type. sig { - params(params: T.any(::Stripe::PayoutCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(params: T.any(::Stripe::PayoutCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Payout) } def create(params = {}, opts = {}); end # Returns a list of existing payouts sent to third-party bank accounts or payouts that Stripe sent to you. The payouts return in sorted order, with the most recently created payouts appearing first. sig { - params(params: T.any(::Stripe::PayoutListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PayoutListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing payout. Supply the unique payout ID from either a payout creation request or the payout list. Stripe returns the corresponding payout information. sig { - params(payout: String, params: T.any(::Stripe::PayoutRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(payout: String, params: T.any(::Stripe::PayoutRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Payout) } def retrieve(payout, params = {}, opts = {}); end - # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead. + # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead. # # By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required. sig { - params(payout: String, params: T.any(::Stripe::PayoutReverseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(payout: String, params: T.any(::Stripe::PayoutReverseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Payout) } def reverse(payout, params = {}, opts = {}); end # Updates the specified payout by setting the values of the parameters you pass. We don't change parameters that you don't provide. This request only accepts the metadata as arguments. sig { - params(payout: String, params: T.any(::Stripe::PayoutUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Payout) + params(payout: String, params: T.any(::Stripe::PayoutUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Payout) } def update(payout, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/plan_service.rbi b/rbi/stripe/services/plan_service.rbi index cc3de0d3..a58d7745 100644 --- a/rbi/stripe/services/plan_service.rbi +++ b/rbi/stripe/services/plan_service.rbi @@ -6,31 +6,31 @@ module Stripe class PlanService < StripeService # You can now model subscriptions more flexibly using the [Prices API](https://docs.stripe.com/api#prices). It replaces the Plans API and is backwards compatible to simplify your migration. sig { - params(params: T.any(::Stripe::PlanCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan) + params(params: T.any(::Stripe::PlanCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Plan) } def create(params = {}, opts = {}); end # Deleting plans means new subscribers can't be added. Existing subscribers aren't affected. sig { - params(plan: String, params: T.any(::Stripe::PlanDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan) + params(plan: String, params: T.any(::Stripe::PlanDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Plan) } def delete(plan, params = {}, opts = {}); end # Returns a list of your plans. sig { - params(params: T.any(::Stripe::PlanListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PlanListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the plan with the given ID. sig { - params(plan: String, params: T.any(::Stripe::PlanRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan) + params(plan: String, params: T.any(::Stripe::PlanRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Plan) } def retrieve(plan, params = {}, opts = {}); end # Updates the specified plan by setting the values of the parameters passed. Any parameters not provided are left unchanged. By design, you cannot change a plan's ID, amount, currency, or billing cycle. sig { - params(plan: String, params: T.any(::Stripe::PlanUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Plan) + params(plan: String, params: T.any(::Stripe::PlanUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Plan) } def update(plan, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/price_service.rbi b/rbi/stripe/services/price_service.rbi index 5a36d385..aa55fb6e 100644 --- a/rbi/stripe/services/price_service.rbi +++ b/rbi/stripe/services/price_service.rbi @@ -6,19 +6,19 @@ module Stripe class PriceService < StripeService # Creates a new [Price for an existing Product](https://docs.stripe.com/api/prices). The Price can be recurring or one-time. sig { - params(params: T.any(::Stripe::PriceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Price) + params(params: T.any(::Stripe::PriceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Price) } def create(params = {}, opts = {}); end # Returns a list of your active prices, excluding [inline prices](https://docs.stripe.com/docs/products-prices/pricing-models#inline-pricing). For the list of inactive prices, set active to false. sig { - params(params: T.any(::Stripe::PriceListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PriceListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the price with the given ID. sig { - params(price: String, params: T.any(::Stripe::PriceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Price) + params(price: String, params: T.any(::Stripe::PriceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Price) } def retrieve(price, params = {}, opts = {}); end @@ -27,13 +27,13 @@ module Stripe # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up # to an hour behind during outages. Search functionality is not available to merchants in India. sig { - params(params: T.any(::Stripe::PriceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::PriceSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def search(params = {}, opts = {}); end # Updates the specified price by setting the values of the parameters passed. Any parameters not provided are left unchanged. sig { - params(price: String, params: T.any(::Stripe::PriceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Price) + params(price: String, params: T.any(::Stripe::PriceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Price) } def update(price, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/product_feature_service.rbi b/rbi/stripe/services/product_feature_service.rbi index 59c66609..f8f3a28e 100644 --- a/rbi/stripe/services/product_feature_service.rbi +++ b/rbi/stripe/services/product_feature_service.rbi @@ -6,25 +6,25 @@ module Stripe class ProductFeatureService < StripeService # Creates a product_feature, which represents a feature attachment to a product sig { - params(product: String, params: T.any(::Stripe::ProductFeatureCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ProductFeature) + params(product: String, params: T.any(::Stripe::ProductFeatureCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ProductFeature) } def create(product, params = {}, opts = {}); end # Deletes the feature attachment to a product sig { - params(product: String, id: String, params: T.any(::Stripe::ProductFeatureDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ProductFeature) + params(product: String, id: String, params: T.any(::Stripe::ProductFeatureDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ProductFeature) } def delete(product, id, params = {}, opts = {}); end # Retrieve a list of features for a product sig { - params(product: String, params: T.any(::Stripe::ProductFeatureListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(product: String, params: T.any(::Stripe::ProductFeatureListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(product, params = {}, opts = {}); end # Retrieves a product_feature, which represents a feature attachment to a product sig { - params(product: String, id: String, params: T.any(::Stripe::ProductFeatureRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ProductFeature) + params(product: String, id: String, params: T.any(::Stripe::ProductFeatureRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ProductFeature) } def retrieve(product, id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/product_service.rbi b/rbi/stripe/services/product_service.rbi index 6f9d2203..70cd9663 100644 --- a/rbi/stripe/services/product_service.rbi +++ b/rbi/stripe/services/product_service.rbi @@ -7,25 +7,25 @@ module Stripe attr_reader :features # Creates a new product object. sig { - params(params: T.any(::Stripe::ProductCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Product) + params(params: T.any(::Stripe::ProductCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Product) } def create(params = {}, opts = {}); end # Delete a product. Deleting a product is only possible if it has no prices associated with it. Additionally, deleting a product with type=good is only possible if it has no SKUs associated with it. sig { - params(id: String, params: T.any(::Stripe::ProductDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Product) + params(id: String, params: T.any(::Stripe::ProductDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Product) } def delete(id, params = {}, opts = {}); end # Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first. sig { - params(params: T.any(::Stripe::ProductListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ProductListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing product. Supply the unique product ID from either a product creation request or the product list, and Stripe will return the corresponding product information. sig { - params(id: String, params: T.any(::Stripe::ProductRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Product) + params(id: String, params: T.any(::Stripe::ProductRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Product) } def retrieve(id, params = {}, opts = {}); end @@ -34,13 +34,13 @@ module Stripe # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up # to an hour behind during outages. Search functionality is not available to merchants in India. sig { - params(params: T.any(::Stripe::ProductSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::ProductSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def search(params = {}, opts = {}); end # Updates the specific product by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(id: String, params: T.any(::Stripe::ProductUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Product) + params(id: String, params: T.any(::Stripe::ProductUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Product) } def update(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/promotion_code_service.rbi b/rbi/stripe/services/promotion_code_service.rbi index 99ea07f3..d5f3f188 100644 --- a/rbi/stripe/services/promotion_code_service.rbi +++ b/rbi/stripe/services/promotion_code_service.rbi @@ -6,25 +6,25 @@ module Stripe class PromotionCodeService < StripeService # A promotion code points to an underlying promotion. You can optionally restrict the code to a specific customer, redemption limit, and expiration date. sig { - params(params: T.any(::Stripe::PromotionCodeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PromotionCode) + params(params: T.any(::Stripe::PromotionCodeCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PromotionCode) } def create(params = {}, opts = {}); end # Returns a list of your promotion codes. sig { - params(params: T.any(::Stripe::PromotionCodeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::PromotionCodeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the promotion code with the given ID. In order to retrieve a promotion code by the customer-facing code use [list](https://docs.stripe.com/docs/api/promotion_codes/list) with the desired code. sig { - params(promotion_code: String, params: T.any(::Stripe::PromotionCodeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PromotionCode) + params(promotion_code: String, params: T.any(::Stripe::PromotionCodeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PromotionCode) } def retrieve(promotion_code, params = {}, opts = {}); end # Updates the specified promotion code by setting the values of the parameters passed. Most fields are, by design, not editable. sig { - params(promotion_code: String, params: T.any(::Stripe::PromotionCodeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PromotionCode) + params(promotion_code: String, params: T.any(::Stripe::PromotionCodeUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PromotionCode) } def update(promotion_code, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi b/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi index 3bd2ea04..17896c88 100644 --- a/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +++ b/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi @@ -6,7 +6,7 @@ module Stripe class QuoteComputedUpfrontLineItemsService < StripeService # When retrieving a quote, there is an includable [computed.upfront.line_items](https://stripe.com/docs/api/quotes/object#quote_object-computed-upfront-line_items) property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of upfront line items. sig { - params(quote: String, params: T.any(::Stripe::QuoteComputedUpfrontLineItemsListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(quote: String, params: T.any(::Stripe::QuoteComputedUpfrontLineItemsListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(quote, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/quote_line_item_service.rbi b/rbi/stripe/services/quote_line_item_service.rbi index d7ef2afe..52488764 100644 --- a/rbi/stripe/services/quote_line_item_service.rbi +++ b/rbi/stripe/services/quote_line_item_service.rbi @@ -6,7 +6,7 @@ module Stripe class QuoteLineItemService < StripeService # When retrieving a quote, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items. sig { - params(quote: String, params: T.any(::Stripe::QuoteLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(quote: String, params: T.any(::Stripe::QuoteLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(quote, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/quote_service.rbi b/rbi/stripe/services/quote_service.rbi index 0c804eb4..60716709 100644 --- a/rbi/stripe/services/quote_service.rbi +++ b/rbi/stripe/services/quote_service.rbi @@ -8,31 +8,31 @@ module Stripe attr_reader :line_items # Accepts the specified quote. sig { - params(quote: String, params: T.any(::Stripe::QuoteAcceptParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(quote: String, params: T.any(::Stripe::QuoteAcceptParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def accept(quote, params = {}, opts = {}); end # Cancels the quote. sig { - params(quote: String, params: T.any(::Stripe::QuoteCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(quote: String, params: T.any(::Stripe::QuoteCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def cancel(quote, params = {}, opts = {}); end # A quote models prices and services for a customer. Default options for header, description, footer, and expires_at can be set in the dashboard via the [quote template](https://dashboard.stripe.com/settings/billing/quote). sig { - params(params: T.any(::Stripe::QuoteCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(params: T.any(::Stripe::QuoteCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def create(params = {}, opts = {}); end # Finalizes the quote. sig { - params(quote: String, params: T.any(::Stripe::QuoteFinalizeQuoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(quote: String, params: T.any(::Stripe::QuoteFinalizeQuoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def finalize_quote(quote, params = {}, opts = {}); end # Returns a list of your quotes. sig { - params(params: T.any(::Stripe::QuoteListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::QuoteListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end @@ -44,13 +44,13 @@ module Stripe # Retrieves the quote with the given ID. sig { - params(quote: String, params: T.any(::Stripe::QuoteRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(quote: String, params: T.any(::Stripe::QuoteRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def retrieve(quote, params = {}, opts = {}); end # A quote models prices and services for a customer. sig { - params(quote: String, params: T.any(::Stripe::QuoteUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Quote) + params(quote: String, params: T.any(::Stripe::QuoteUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Quote) } def update(quote, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/radar/early_fraud_warning_service.rbi b/rbi/stripe/services/radar/early_fraud_warning_service.rbi index af488c80..3a10de3c 100644 --- a/rbi/stripe/services/radar/early_fraud_warning_service.rbi +++ b/rbi/stripe/services/radar/early_fraud_warning_service.rbi @@ -7,7 +7,7 @@ module Stripe class EarlyFraudWarningService < StripeService # Returns a list of early fraud warnings. sig { - params(params: T.any(::Stripe::Radar::EarlyFraudWarningListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Radar::EarlyFraudWarningListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end @@ -15,7 +15,7 @@ module Stripe # # Please refer to the [early fraud warning](https://docs.stripe.com/api#early_fraud_warning_object) object reference for more details. sig { - params(early_fraud_warning: String, params: T.any(::Stripe::Radar::EarlyFraudWarningRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::EarlyFraudWarning) + params(early_fraud_warning: String, params: T.any(::Stripe::Radar::EarlyFraudWarningRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::EarlyFraudWarning) } def retrieve(early_fraud_warning, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/radar/value_list_item_service.rbi b/rbi/stripe/services/radar/value_list_item_service.rbi index d465d876..72f9babb 100644 --- a/rbi/stripe/services/radar/value_list_item_service.rbi +++ b/rbi/stripe/services/radar/value_list_item_service.rbi @@ -7,25 +7,25 @@ module Stripe class ValueListItemService < StripeService # Creates a new ValueListItem object, which is added to the specified parent value list. sig { - params(params: T.any(::Stripe::Radar::ValueListItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueListItem) + params(params: T.any(::Stripe::Radar::ValueListItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueListItem) } def create(params = {}, opts = {}); end # Deletes a ValueListItem object, removing it from its parent value list. sig { - params(item: String, params: T.any(::Stripe::Radar::ValueListItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueListItem) + params(item: String, params: T.any(::Stripe::Radar::ValueListItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueListItem) } def delete(item, params = {}, opts = {}); end # Returns a list of ValueListItem objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Radar::ValueListItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Radar::ValueListItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a ValueListItem object. sig { - params(item: String, params: T.any(::Stripe::Radar::ValueListItemRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueListItem) + params(item: String, params: T.any(::Stripe::Radar::ValueListItemRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueListItem) } def retrieve(item, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/radar/value_list_service.rbi b/rbi/stripe/services/radar/value_list_service.rbi index 3fe60f62..be971ead 100644 --- a/rbi/stripe/services/radar/value_list_service.rbi +++ b/rbi/stripe/services/radar/value_list_service.rbi @@ -7,31 +7,31 @@ module Stripe class ValueListService < StripeService # Creates a new ValueList object, which can then be referenced in rules. sig { - params(params: T.any(::Stripe::Radar::ValueListCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueList) + params(params: T.any(::Stripe::Radar::ValueListCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueList) } def create(params = {}, opts = {}); end # Deletes a ValueList object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules. sig { - params(value_list: String, params: T.any(::Stripe::Radar::ValueListDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueList) + params(value_list: String, params: T.any(::Stripe::Radar::ValueListDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueList) } def delete(value_list, params = {}, opts = {}); end # Returns a list of ValueList objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::Radar::ValueListListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Radar::ValueListListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a ValueList object. sig { - params(value_list: String, params: T.any(::Stripe::Radar::ValueListRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueList) + params(value_list: String, params: T.any(::Stripe::Radar::ValueListRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueList) } def retrieve(value_list, params = {}, opts = {}); end # Updates a ValueList object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note that item_type is immutable. sig { - params(value_list: String, params: T.any(::Stripe::Radar::ValueListUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Radar::ValueList) + params(value_list: String, params: T.any(::Stripe::Radar::ValueListUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Radar::ValueList) } def update(value_list, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/refund_service.rbi b/rbi/stripe/services/refund_service.rbi index ab7fc450..ebd1c306 100644 --- a/rbi/stripe/services/refund_service.rbi +++ b/rbi/stripe/services/refund_service.rbi @@ -8,7 +8,7 @@ module Stripe # # You can't cancel refunds in other states. Only refunds for payment methods that require customer action can enter the requires_action state. sig { - params(refund: String, params: T.any(::Stripe::RefundCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Refund) + params(refund: String, params: T.any(::Stripe::RefundCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Refund) } def cancel(refund, params = {}, opts = {}); end @@ -24,19 +24,19 @@ module Stripe # This method will raise an error when called on an already-refunded charge, # or when trying to refund more money than is left on a charge. sig { - params(params: T.any(::Stripe::RefundCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Refund) + params(params: T.any(::Stripe::RefundCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Refund) } def create(params = {}, opts = {}); end # Returns a list of all refunds you created. We return the refunds in sorted order, with the most recent refunds appearing first. The 10 most recent refunds are always available by default on the Charge object. sig { - params(params: T.any(::Stripe::RefundListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::RefundListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing refund. sig { - params(refund: String, params: T.any(::Stripe::RefundRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Refund) + params(refund: String, params: T.any(::Stripe::RefundRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Refund) } def retrieve(refund, params = {}, opts = {}); end @@ -44,7 +44,7 @@ module Stripe # # This request only accepts metadata as an argument. sig { - params(refund: String, params: T.any(::Stripe::RefundUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Refund) + params(refund: String, params: T.any(::Stripe::RefundUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Refund) } def update(refund, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/reporting/report_run_service.rbi b/rbi/stripe/services/reporting/report_run_service.rbi index ae8d1dd2..352207a3 100644 --- a/rbi/stripe/services/reporting/report_run_service.rbi +++ b/rbi/stripe/services/reporting/report_run_service.rbi @@ -7,19 +7,19 @@ module Stripe class ReportRunService < StripeService # Creates a new object and begin running the report. (Certain report types require a [live-mode API key](https://stripe.com/docs/keys#test-live-modes).) sig { - params(params: T.any(::Stripe::Reporting::ReportRunCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Reporting::ReportRun) + params(params: T.any(::Stripe::Reporting::ReportRunCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Reporting::ReportRun) } def create(params = {}, opts = {}); end # Returns a list of Report Runs, with the most recent appearing first. sig { - params(params: T.any(::Stripe::Reporting::ReportRunListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Reporting::ReportRunListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing Report Run. sig { - params(report_run: String, params: T.any(::Stripe::Reporting::ReportRunRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Reporting::ReportRun) + params(report_run: String, params: T.any(::Stripe::Reporting::ReportRunRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Reporting::ReportRun) } def retrieve(report_run, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/reporting/report_type_service.rbi b/rbi/stripe/services/reporting/report_type_service.rbi index 3b242b9c..ae9fefe2 100644 --- a/rbi/stripe/services/reporting/report_type_service.rbi +++ b/rbi/stripe/services/reporting/report_type_service.rbi @@ -7,13 +7,13 @@ module Stripe class ReportTypeService < StripeService # Returns a full list of Report Types. sig { - params(params: T.any(::Stripe::Reporting::ReportTypeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Reporting::ReportTypeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of a Report Type. (Certain report types require a [live-mode API key](https://stripe.com/docs/keys#test-live-modes).) sig { - params(report_type: String, params: T.any(::Stripe::Reporting::ReportTypeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Reporting::ReportType) + params(report_type: String, params: T.any(::Stripe::Reporting::ReportTypeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Reporting::ReportType) } def retrieve(report_type, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/review_service.rbi b/rbi/stripe/services/review_service.rbi index abf9d671..d59c68b3 100644 --- a/rbi/stripe/services/review_service.rbi +++ b/rbi/stripe/services/review_service.rbi @@ -6,19 +6,19 @@ module Stripe class ReviewService < StripeService # Approves a Review object, closing it and removing it from the list of reviews. sig { - params(review: String, params: T.any(::Stripe::ReviewApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Review) + params(review: String, params: T.any(::Stripe::ReviewApproveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Review) } def approve(review, params = {}, opts = {}); end # Returns a list of Review objects that have open set to true. The objects are sorted in descending order by creation date, with the most recently created object appearing first. sig { - params(params: T.any(::Stripe::ReviewListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ReviewListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a Review object. sig { - params(review: String, params: T.any(::Stripe::ReviewRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Review) + params(review: String, params: T.any(::Stripe::ReviewRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Review) } def retrieve(review, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/setup_attempt_service.rbi b/rbi/stripe/services/setup_attempt_service.rbi index e9c75a71..c97933bd 100644 --- a/rbi/stripe/services/setup_attempt_service.rbi +++ b/rbi/stripe/services/setup_attempt_service.rbi @@ -6,7 +6,7 @@ module Stripe class SetupAttemptService < StripeService # Returns a list of SetupAttempts that associate with a provided SetupIntent. sig { - params(params: T.any(::Stripe::SetupAttemptListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::SetupAttemptListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end end diff --git a/rbi/stripe/services/setup_intent_service.rbi b/rbi/stripe/services/setup_intent_service.rbi index 60f6ddaa..1d5c0bb4 100644 --- a/rbi/stripe/services/setup_intent_service.rbi +++ b/rbi/stripe/services/setup_intent_service.rbi @@ -8,7 +8,7 @@ module Stripe # # After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error. You can't cancel the SetupIntent for a Checkout Session. [Expire the Checkout Session](https://docs.stripe.com/docs/api/checkout/sessions/expire) instead. sig { - params(intent: String, params: T.any(::Stripe::SetupIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(intent: String, params: T.any(::Stripe::SetupIntentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def cancel(intent, params = {}, opts = {}); end @@ -27,7 +27,7 @@ module Stripe # requires_payment_method status or the canceled status if the # confirmation limit is reached. sig { - params(intent: String, params: T.any(::Stripe::SetupIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(intent: String, params: T.any(::Stripe::SetupIntentConfirmParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def confirm(intent, params = {}, opts = {}); end @@ -36,13 +36,13 @@ module Stripe # After you create the SetupIntent, attach a payment method and [confirm](https://docs.stripe.com/docs/api/setup_intents/confirm) # it to collect any required permissions to charge the payment method later. sig { - params(params: T.any(::Stripe::SetupIntentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(params: T.any(::Stripe::SetupIntentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def create(params = {}, opts = {}); end # Returns a list of SetupIntents. sig { - params(params: T.any(::Stripe::SetupIntentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::SetupIntentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end @@ -52,19 +52,19 @@ module Stripe # # When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the [SetupIntent](https://docs.stripe.com/api#setup_intent_object) object reference for more details. sig { - params(intent: String, params: T.any(::Stripe::SetupIntentRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(intent: String, params: T.any(::Stripe::SetupIntentRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def retrieve(intent, params = {}, opts = {}); end # Updates a SetupIntent object. sig { - params(intent: String, params: T.any(::Stripe::SetupIntentUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(intent: String, params: T.any(::Stripe::SetupIntentUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def update(intent, params = {}, opts = {}); end # Verifies microdeposits on a SetupIntent object. sig { - params(intent: String, params: T.any(::Stripe::SetupIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SetupIntent) + params(intent: String, params: T.any(::Stripe::SetupIntentVerifyMicrodepositsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SetupIntent) } def verify_microdeposits(intent, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/shipping_rate_service.rbi b/rbi/stripe/services/shipping_rate_service.rbi index c611b53d..28fe5e66 100644 --- a/rbi/stripe/services/shipping_rate_service.rbi +++ b/rbi/stripe/services/shipping_rate_service.rbi @@ -6,25 +6,25 @@ module Stripe class ShippingRateService < StripeService # Creates a new shipping rate object. sig { - params(params: T.any(::Stripe::ShippingRateCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ShippingRate) + params(params: T.any(::Stripe::ShippingRateCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ShippingRate) } def create(params = {}, opts = {}); end # Returns a list of your shipping rates. sig { - params(params: T.any(::Stripe::ShippingRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::ShippingRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Returns the shipping rate object with the given ID. sig { - params(shipping_rate_token: String, params: T.any(::Stripe::ShippingRateRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ShippingRate) + params(shipping_rate_token: String, params: T.any(::Stripe::ShippingRateRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ShippingRate) } def retrieve(shipping_rate_token, params = {}, opts = {}); end # Updates an existing shipping rate object. sig { - params(shipping_rate_token: String, params: T.any(::Stripe::ShippingRateUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ShippingRate) + params(shipping_rate_token: String, params: T.any(::Stripe::ShippingRateUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ShippingRate) } def update(shipping_rate_token, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/sigma/scheduled_query_run_service.rbi b/rbi/stripe/services/sigma/scheduled_query_run_service.rbi index 93259889..d0ffb1f1 100644 --- a/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +++ b/rbi/stripe/services/sigma/scheduled_query_run_service.rbi @@ -7,13 +7,13 @@ module Stripe class ScheduledQueryRunService < StripeService # Returns a list of scheduled query runs. sig { - params(params: T.any(::Stripe::Sigma::ScheduledQueryRunListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Sigma::ScheduledQueryRunListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an scheduled query run. sig { - params(scheduled_query_run: String, params: T.any(::Stripe::Sigma::ScheduledQueryRunRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Sigma::ScheduledQueryRun) + params(scheduled_query_run: String, params: T.any(::Stripe::Sigma::ScheduledQueryRunRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Sigma::ScheduledQueryRun) } def retrieve(scheduled_query_run, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/source_service.rbi b/rbi/stripe/services/source_service.rbi index eef826ee..7a5c2c28 100644 --- a/rbi/stripe/services/source_service.rbi +++ b/rbi/stripe/services/source_service.rbi @@ -7,19 +7,19 @@ module Stripe attr_reader :transactions # Creates a new source object. sig { - params(params: T.any(::Stripe::SourceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Source) + params(params: T.any(::Stripe::SourceCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Source) } def create(params = {}, opts = {}); end # Delete a specified source for a given customer. sig { - params(customer: String, id: String, params: T.any(::Stripe::SourceDetachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(Stripe::Account, Stripe::BankAccount, Stripe::Card, Stripe::Source)) + params(customer: String, id: String, params: T.any(::Stripe::SourceDetachParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(T.any(::Stripe::Account, ::Stripe::BankAccount, ::Stripe::Card, ::Stripe::Source)) } def detach(customer, id, params = {}, opts = {}); end # Retrieves an existing source object. Supply the unique source ID from a source creation request and Stripe will return the corresponding up-to-date source object information. sig { - params(source: String, params: T.any(::Stripe::SourceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Source) + params(source: String, params: T.any(::Stripe::SourceRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Source) } def retrieve(source, params = {}, opts = {}); end @@ -27,13 +27,13 @@ module Stripe # # This request accepts the metadata and owner as arguments. It is also possible to update type specific information for selected payment methods. Please refer to our [payment method guides](https://docs.stripe.com/docs/sources) for more detail. sig { - params(source: String, params: T.any(::Stripe::SourceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Source) + params(source: String, params: T.any(::Stripe::SourceUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Source) } def update(source, params = {}, opts = {}); end # Verify a given source. sig { - params(source: String, params: T.any(::Stripe::SourceVerifyParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Source) + params(source: String, params: T.any(::Stripe::SourceVerifyParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Source) } def verify(source, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/source_transaction_service.rbi b/rbi/stripe/services/source_transaction_service.rbi index da5124aa..6b4208cb 100644 --- a/rbi/stripe/services/source_transaction_service.rbi +++ b/rbi/stripe/services/source_transaction_service.rbi @@ -6,7 +6,7 @@ module Stripe class SourceTransactionService < StripeService # List source transactions for a given source. sig { - params(source: String, params: T.any(::Stripe::SourceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(source: String, params: T.any(::Stripe::SourceTransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(source, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/subscription_item_service.rbi b/rbi/stripe/services/subscription_item_service.rbi index e51293e3..cd9f02c0 100644 --- a/rbi/stripe/services/subscription_item_service.rbi +++ b/rbi/stripe/services/subscription_item_service.rbi @@ -6,31 +6,31 @@ module Stripe class SubscriptionItemService < StripeService # Adds a new item to an existing subscription. No existing items will be changed or replaced. sig { - params(params: T.any(::Stripe::SubscriptionItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionItem) + params(params: T.any(::Stripe::SubscriptionItemCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionItem) } def create(params = {}, opts = {}); end # Deletes an item from the subscription. Removing a subscription item from a subscription will not cancel the subscription. sig { - params(item: String, params: T.any(::Stripe::SubscriptionItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionItem) + params(item: String, params: T.any(::Stripe::SubscriptionItemDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionItem) } def delete(item, params = {}, opts = {}); end # Returns a list of your subscription items for a given subscription. sig { - params(params: T.any(::Stripe::SubscriptionItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::SubscriptionItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the subscription item with the given ID. sig { - params(item: String, params: T.any(::Stripe::SubscriptionItemRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionItem) + params(item: String, params: T.any(::Stripe::SubscriptionItemRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionItem) } def retrieve(item, params = {}, opts = {}); end # Updates the plan or quantity of an item on a current subscription. sig { - params(item: String, params: T.any(::Stripe::SubscriptionItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionItem) + params(item: String, params: T.any(::Stripe::SubscriptionItemUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionItem) } def update(item, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/subscription_schedule_service.rbi b/rbi/stripe/services/subscription_schedule_service.rbi index a14e5f59..e3512ffa 100644 --- a/rbi/stripe/services/subscription_schedule_service.rbi +++ b/rbi/stripe/services/subscription_schedule_service.rbi @@ -6,37 +6,37 @@ module Stripe class SubscriptionScheduleService < StripeService # Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be canceled if its status is not_started or active. sig { - params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionSchedule) } def cancel(schedule, params = {}, opts = {}); end # Creates a new subscription schedule object. Each customer can have up to 500 active or scheduled subscriptions. sig { - params(params: T.any(::Stripe::SubscriptionScheduleCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(params: T.any(::Stripe::SubscriptionScheduleCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionSchedule) } def create(params = {}, opts = {}); end # Retrieves the list of your subscription schedules. sig { - params(params: T.any(::Stripe::SubscriptionScheduleListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::SubscriptionScheduleListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Releases the subscription schedule immediately, which will stop scheduling of its phases, but leave any existing subscription in place. A schedule can only be released if its status is not_started or active. If the subscription schedule is currently associated with a subscription, releasing it will remove its subscription property and set the subscription's ID to the released_subscription property. sig { - params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleReleaseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleReleaseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionSchedule) } def release(schedule, params = {}, opts = {}); end # Retrieves the details of an existing subscription schedule. You only need to supply the unique subscription schedule identifier that was returned upon subscription schedule creation. sig { - params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionSchedule) } def retrieve(schedule, params = {}, opts = {}); end # Updates an existing subscription schedule. sig { - params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SubscriptionSchedule) + params(schedule: String, params: T.any(::Stripe::SubscriptionScheduleUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SubscriptionSchedule) } def update(schedule, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/subscription_service.rbi b/rbi/stripe/services/subscription_service.rbi index d0dcf48b..c019fba3 100644 --- a/rbi/stripe/services/subscription_service.rbi +++ b/rbi/stripe/services/subscription_service.rbi @@ -10,7 +10,7 @@ module Stripe # # By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. sig { - params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def cancel(subscription_exposed_id, params = {}, opts = {}); end @@ -22,37 +22,37 @@ module Stripe # To start subscriptions where the first invoice always begins in a draft status, use [subscription schedules](https://docs.stripe.com/docs/billing/subscriptions/subscription-schedules#managing) instead. # Schedules provide the flexibility to model more complex billing configurations that change over time. sig { - params(params: T.any(::Stripe::SubscriptionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(params: T.any(::Stripe::SubscriptionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def create(params = {}, opts = {}); end # Removes the currently applied discount on a subscription. sig { - params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Discount) + params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionDeleteDiscountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Discount) } def delete_discount(subscription_exposed_id, params = {}, opts = {}); end # By default, returns a list of subscriptions that have not been canceled. In order to list canceled subscriptions, specify status=canceled. sig { - params(params: T.any(::Stripe::SubscriptionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::SubscriptionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Upgrade the billing_mode of an existing subscription. sig { - params(subscription: String, params: T.any(::Stripe::SubscriptionMigrateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(subscription: String, params: T.any(::Stripe::SubscriptionMigrateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def migrate(subscription, params = {}, opts = {}); end # Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date. sig { - params(subscription: String, params: T.any(::Stripe::SubscriptionResumeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(subscription: String, params: T.any(::Stripe::SubscriptionResumeParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def resume(subscription, params = {}, opts = {}); end # Retrieves the subscription with the given ID. sig { - params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def retrieve(subscription_exposed_id, params = {}, opts = {}); end @@ -61,7 +61,7 @@ module Stripe # conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up # to an hour behind during outages. Search functionality is not available to merchants in India. sig { - params(params: T.any(::Stripe::SubscriptionSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::SearchResultObject) + params(params: T.any(::Stripe::SubscriptionSearchParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::SearchResultObject) } def search(params = {}, opts = {}); end @@ -87,7 +87,7 @@ module Stripe # # Updating the quantity on a subscription many times in an hour may result in [rate limiting. If you need to bill for a frequently changing quantity, consider integrating usage-based billing](https://docs.stripe.com/docs/rate-limits) instead. sig { - params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Subscription) + params(subscription_exposed_id: String, params: T.any(::Stripe::SubscriptionUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Subscription) } def update(subscription_exposed_id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/tax/calculation_line_item_service.rbi b/rbi/stripe/services/tax/calculation_line_item_service.rbi index f8c55368..831a0594 100644 --- a/rbi/stripe/services/tax/calculation_line_item_service.rbi +++ b/rbi/stripe/services/tax/calculation_line_item_service.rbi @@ -7,7 +7,7 @@ module Stripe class CalculationLineItemService < StripeService # Retrieves the line items of a tax calculation as a collection, if the calculation hasn't expired. sig { - params(calculation: String, params: T.any(::Stripe::Tax::CalculationLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(calculation: String, params: T.any(::Stripe::Tax::CalculationLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(calculation, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/tax/calculation_service.rbi b/rbi/stripe/services/tax/calculation_service.rbi index 0c212605..87fb5b1e 100644 --- a/rbi/stripe/services/tax/calculation_service.rbi +++ b/rbi/stripe/services/tax/calculation_service.rbi @@ -8,13 +8,13 @@ module Stripe attr_reader :line_items # Calculates tax based on the input and returns a Tax Calculation object. sig { - params(params: T.any(::Stripe::Tax::CalculationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Calculation) + params(params: T.any(::Stripe::Tax::CalculationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Calculation) } def create(params = {}, opts = {}); end # Retrieves a Tax Calculation object, if the calculation hasn't expired. sig { - params(calculation: String, params: T.any(::Stripe::Tax::CalculationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Calculation) + params(calculation: String, params: T.any(::Stripe::Tax::CalculationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Calculation) } def retrieve(calculation, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/tax/registration_service.rbi b/rbi/stripe/services/tax/registration_service.rbi index d52620c7..78ad8a45 100644 --- a/rbi/stripe/services/tax/registration_service.rbi +++ b/rbi/stripe/services/tax/registration_service.rbi @@ -7,19 +7,19 @@ module Stripe class RegistrationService < StripeService # Creates a new Tax Registration object. sig { - params(params: T.any(::Stripe::Tax::RegistrationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Registration) + params(params: T.any(::Stripe::Tax::RegistrationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Registration) } def create(params = {}, opts = {}); end # Returns a list of Tax Registration objects. sig { - params(params: T.any(::Stripe::Tax::RegistrationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Tax::RegistrationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Returns a Tax Registration object. sig { - params(id: String, params: T.any(::Stripe::Tax::RegistrationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Registration) + params(id: String, params: T.any(::Stripe::Tax::RegistrationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Registration) } def retrieve(id, params = {}, opts = {}); end @@ -27,7 +27,7 @@ module Stripe # # A registration cannot be deleted after it has been created. If you wish to end a registration you may do so by setting expires_at. sig { - params(id: String, params: T.any(::Stripe::Tax::RegistrationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Registration) + params(id: String, params: T.any(::Stripe::Tax::RegistrationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Registration) } def update(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/tax/settings_service.rbi b/rbi/stripe/services/tax/settings_service.rbi index 8754c419..7b41a007 100644 --- a/rbi/stripe/services/tax/settings_service.rbi +++ b/rbi/stripe/services/tax/settings_service.rbi @@ -7,13 +7,13 @@ module Stripe class SettingsService < StripeService # Retrieves Tax Settings for a merchant. sig { - params(params: T.any(::Stripe::Tax::SettingsRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Settings) + params(params: T.any(::Stripe::Tax::SettingsRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Settings) } def retrieve(params = {}, opts = {}); end # Updates Tax Settings parameters used in tax calculations. All parameters are editable but none can be removed once set. sig { - params(params: T.any(::Stripe::Tax::SettingsUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Settings) + params(params: T.any(::Stripe::Tax::SettingsUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Settings) } def update(params = {}, opts = {}); end end diff --git a/rbi/stripe/services/tax/transaction_line_item_service.rbi b/rbi/stripe/services/tax/transaction_line_item_service.rbi index 8637ca85..67c4f819 100644 --- a/rbi/stripe/services/tax/transaction_line_item_service.rbi +++ b/rbi/stripe/services/tax/transaction_line_item_service.rbi @@ -7,7 +7,7 @@ module Stripe class TransactionLineItemService < StripeService # Retrieves the line items of a committed standalone transaction as a collection. sig { - params(transaction: String, params: T.any(::Stripe::Tax::TransactionLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(transaction: String, params: T.any(::Stripe::Tax::TransactionLineItemListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(transaction, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/tax/transaction_service.rbi b/rbi/stripe/services/tax/transaction_service.rbi index b1bc7e9d..d09f615d 100644 --- a/rbi/stripe/services/tax/transaction_service.rbi +++ b/rbi/stripe/services/tax/transaction_service.rbi @@ -8,19 +8,19 @@ module Stripe attr_reader :line_items # Creates a Tax Transaction from a calculation, if that calculation hasn't expired. Calculations expire after 90 days. sig { - params(params: T.any(::Stripe::Tax::TransactionCreateFromCalculationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Transaction) + params(params: T.any(::Stripe::Tax::TransactionCreateFromCalculationParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Transaction) } def create_from_calculation(params = {}, opts = {}); end # Partially or fully reverses a previously created Transaction. sig { - params(params: T.any(::Stripe::Tax::TransactionCreateReversalParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Transaction) + params(params: T.any(::Stripe::Tax::TransactionCreateReversalParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Transaction) } def create_reversal(params = {}, opts = {}); end # Retrieves a Tax Transaction object. sig { - params(transaction: String, params: T.any(::Stripe::Tax::TransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Tax::Transaction) + params(transaction: String, params: T.any(::Stripe::Tax::TransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Tax::Transaction) } def retrieve(transaction, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/tax_code_service.rbi b/rbi/stripe/services/tax_code_service.rbi index 0b9c09c2..45bdc014 100644 --- a/rbi/stripe/services/tax_code_service.rbi +++ b/rbi/stripe/services/tax_code_service.rbi @@ -6,13 +6,13 @@ module Stripe class TaxCodeService < StripeService # A list of [all tax codes available](https://stripe.com/docs/tax/tax-categories) to add to Products in order to allow specific tax calculations. sig { - params(params: T.any(::Stripe::TaxCodeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TaxCodeListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing tax code. Supply the unique tax code ID and Stripe will return the corresponding tax code information. sig { - params(id: String, params: T.any(::Stripe::TaxCodeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxCode) + params(id: String, params: T.any(::Stripe::TaxCodeRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxCode) } def retrieve(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/tax_id_service.rbi b/rbi/stripe/services/tax_id_service.rbi index 29c7a33b..aa923ff5 100644 --- a/rbi/stripe/services/tax_id_service.rbi +++ b/rbi/stripe/services/tax_id_service.rbi @@ -6,25 +6,25 @@ module Stripe class TaxIdService < StripeService # Creates a new account or customer tax_id object. sig { - params(params: T.any(::Stripe::TaxIdCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxId) + params(params: T.any(::Stripe::TaxIdCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxId) } def create(params = {}, opts = {}); end # Deletes an existing account or customer tax_id object. sig { - params(id: String, params: T.any(::Stripe::TaxIdDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxId) + params(id: String, params: T.any(::Stripe::TaxIdDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxId) } def delete(id, params = {}, opts = {}); end # Returns a list of tax IDs. sig { - params(params: T.any(::Stripe::TaxIdListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TaxIdListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves an account or customer tax_id object. sig { - params(id: String, params: T.any(::Stripe::TaxIdRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxId) + params(id: String, params: T.any(::Stripe::TaxIdRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxId) } def retrieve(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/tax_rate_service.rbi b/rbi/stripe/services/tax_rate_service.rbi index bab011c3..bd4cc0e9 100644 --- a/rbi/stripe/services/tax_rate_service.rbi +++ b/rbi/stripe/services/tax_rate_service.rbi @@ -6,25 +6,25 @@ module Stripe class TaxRateService < StripeService # Creates a new tax rate. sig { - params(params: T.any(::Stripe::TaxRateCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxRate) + params(params: T.any(::Stripe::TaxRateCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxRate) } def create(params = {}, opts = {}); end # Returns a list of your tax rates. Tax rates are returned sorted by creation date, with the most recently created tax rates appearing first. sig { - params(params: T.any(::Stripe::TaxRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TaxRateListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a tax rate with the given ID sig { - params(tax_rate: String, params: T.any(::Stripe::TaxRateRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxRate) + params(tax_rate: String, params: T.any(::Stripe::TaxRateRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxRate) } def retrieve(tax_rate, params = {}, opts = {}); end # Updates an existing tax rate. sig { - params(tax_rate: String, params: T.any(::Stripe::TaxRateUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TaxRate) + params(tax_rate: String, params: T.any(::Stripe::TaxRateUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TaxRate) } def update(tax_rate, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/terminal/configuration_service.rbi b/rbi/stripe/services/terminal/configuration_service.rbi index 585cea95..6fc50f73 100644 --- a/rbi/stripe/services/terminal/configuration_service.rbi +++ b/rbi/stripe/services/terminal/configuration_service.rbi @@ -7,31 +7,31 @@ module Stripe class ConfigurationService < StripeService # Creates a new Configuration object. sig { - params(params: T.any(::Stripe::Terminal::ConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Configuration) + params(params: T.any(::Stripe::Terminal::ConfigurationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Configuration) } def create(params = {}, opts = {}); end # Deletes a Configuration object. sig { - params(configuration: String, params: T.any(::Stripe::Terminal::ConfigurationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Configuration) + params(configuration: String, params: T.any(::Stripe::Terminal::ConfigurationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Configuration) } def delete(configuration, params = {}, opts = {}); end # Returns a list of Configuration objects. sig { - params(params: T.any(::Stripe::Terminal::ConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Terminal::ConfigurationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a Configuration object. sig { - params(configuration: String, params: T.any(::Stripe::Terminal::ConfigurationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Configuration) + params(configuration: String, params: T.any(::Stripe::Terminal::ConfigurationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Configuration) } def retrieve(configuration, params = {}, opts = {}); end # Updates a new Configuration object. sig { - params(configuration: String, params: T.any(::Stripe::Terminal::ConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Configuration) + params(configuration: String, params: T.any(::Stripe::Terminal::ConfigurationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Configuration) } def update(configuration, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/terminal/connection_token_service.rbi b/rbi/stripe/services/terminal/connection_token_service.rbi index b7ce13f7..7923b14f 100644 --- a/rbi/stripe/services/terminal/connection_token_service.rbi +++ b/rbi/stripe/services/terminal/connection_token_service.rbi @@ -7,7 +7,7 @@ module Stripe class ConnectionTokenService < StripeService # To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server. On your backend, add an endpoint that creates and returns a connection token. sig { - params(params: T.any(::Stripe::Terminal::ConnectionTokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::ConnectionToken) + params(params: T.any(::Stripe::Terminal::ConnectionTokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::ConnectionToken) } def create(params = {}, opts = {}); end end diff --git a/rbi/stripe/services/terminal/location_service.rbi b/rbi/stripe/services/terminal/location_service.rbi index d3670ec0..cff83eba 100644 --- a/rbi/stripe/services/terminal/location_service.rbi +++ b/rbi/stripe/services/terminal/location_service.rbi @@ -8,31 +8,31 @@ module Stripe # Creates a new Location object. # For further details, including which address fields are required in each country, see the [Manage locations](https://docs.stripe.com/docs/terminal/fleet/locations) guide. sig { - params(params: T.any(::Stripe::Terminal::LocationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Location) + params(params: T.any(::Stripe::Terminal::LocationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Location) } def create(params = {}, opts = {}); end # Deletes a Location object. sig { - params(location: String, params: T.any(::Stripe::Terminal::LocationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Location) + params(location: String, params: T.any(::Stripe::Terminal::LocationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Location) } def delete(location, params = {}, opts = {}); end # Returns a list of Location objects. sig { - params(params: T.any(::Stripe::Terminal::LocationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Terminal::LocationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a Location object. sig { - params(location: String, params: T.any(::Stripe::Terminal::LocationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Location) + params(location: String, params: T.any(::Stripe::Terminal::LocationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Location) } def retrieve(location, params = {}, opts = {}); end # Updates a Location object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(location: String, params: T.any(::Stripe::Terminal::LocationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Location) + params(location: String, params: T.any(::Stripe::Terminal::LocationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Location) } def update(location, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/terminal/reader_service.rbi b/rbi/stripe/services/terminal/reader_service.rbi index 37e762fd..bb31bb7a 100644 --- a/rbi/stripe/services/terminal/reader_service.rbi +++ b/rbi/stripe/services/terminal/reader_service.rbi @@ -5,81 +5,81 @@ module Stripe module Terminal class ReaderService < StripeService - # Cancels the current reader action. + # Cancels the current reader action. See [Programmatic Cancellation](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven#programmatic-cancellation) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderCancelActionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderCancelActionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def cancel_action(reader, params = {}, opts = {}); end - # Initiates an input collection flow on a Reader. + # Initiates an [input collection flow](https://docs.stripe.com/docs/terminal/features/collect-inputs) on a Reader to display input forms and collect information from your customers. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectInputsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectInputsParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def collect_inputs(reader, params = {}, opts = {}); end - # Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. + # Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. See [Collecting a Payment method](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#collect-a-paymentmethod) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderCollectPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def collect_payment_method(reader, params = {}, opts = {}); end - # Finalizes a payment on a Reader. + # Finalizes a payment on a Reader. See [Confirming a Payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=inspect#confirm-the-paymentintent) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderConfirmPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderConfirmPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def confirm_payment_intent(reader, params = {}, opts = {}); end # Creates a new Reader object. sig { - params(params: T.any(::Stripe::Terminal::ReaderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(params: T.any(::Stripe::Terminal::ReaderCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def create(params = {}, opts = {}); end # Deletes a Reader object. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def delete(reader, params = {}, opts = {}); end # Returns a list of Reader objects. sig { - params(params: T.any(::Stripe::Terminal::ReaderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Terminal::ReaderListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end - # Initiates a payment flow on a Reader. + # Initiates a payment flow on a Reader. See [process the payment](https://docs.stripe.com/docs/terminal/payments/collect-card-payment?terminal-sdk-platform=server-driven&process=immediately#process-payment) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessPaymentIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def process_payment_intent(reader, params = {}, opts = {}); end - # Initiates a setup intent flow on a Reader. + # Initiates a SetupIntent flow on a Reader. See [Save directly without charging](https://docs.stripe.com/docs/terminal/features/saving-payment-details/save-directly) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessSetupIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderProcessSetupIntentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def process_setup_intent(reader, params = {}, opts = {}); end - # Initiates a refund on a Reader + # Initiates an in-person refund on a Reader. See [Refund an Interac Payment](https://docs.stripe.com/docs/terminal/payments/regional?integration-country=CA#refund-an-interac-payment) for more details. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderRefundPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderRefundPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def refund_payment(reader, params = {}, opts = {}); end # Retrieves a Reader object. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def retrieve(reader, params = {}, opts = {}); end - # Sets reader display to show cart details. + # Sets the reader display to show [cart details](https://docs.stripe.com/docs/terminal/features/display). sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderSetReaderDisplayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderSetReaderDisplayParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def set_reader_display(reader, params = {}, opts = {}); end # Updates a Reader object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. sig { - params(reader: String, params: T.any(::Stripe::Terminal::ReaderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::Terminal::ReaderUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def update(reader, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/test_helpers/confirmation_token_service.rbi b/rbi/stripe/services/test_helpers/confirmation_token_service.rbi index be214606..2615504f 100644 --- a/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +++ b/rbi/stripe/services/test_helpers/confirmation_token_service.rbi @@ -7,7 +7,7 @@ module Stripe class ConfirmationTokenService < StripeService # Creates a test mode Confirmation Token server side for your integration tests. sig { - params(params: T.any(::Stripe::TestHelpers::ConfirmationTokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ConfirmationToken) + params(params: T.any(::Stripe::TestHelpers::ConfirmationTokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ConfirmationToken) } def create(params = {}, opts = {}); end end diff --git a/rbi/stripe/services/test_helpers/customer_service.rbi b/rbi/stripe/services/test_helpers/customer_service.rbi index c45638b1..68438168 100644 --- a/rbi/stripe/services/test_helpers/customer_service.rbi +++ b/rbi/stripe/services/test_helpers/customer_service.rbi @@ -7,7 +7,7 @@ module Stripe class CustomerService < StripeService # Create an incoming testmode bank transfer sig { - params(customer: String, params: T.any(::Stripe::TestHelpers::CustomerFundCashBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CustomerCashBalanceTransaction) + params(customer: String, params: T.any(::Stripe::TestHelpers::CustomerFundCashBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::CustomerCashBalanceTransaction) } def fund_cash_balance(customer, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi b/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi index eae9c409..b9da2630 100644 --- a/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +++ b/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi @@ -8,43 +8,43 @@ module Stripe class AuthorizationService < StripeService # Capture a test-mode authorization. sig { - params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def capture(authorization, params = {}, opts = {}); end # Create a test-mode authorization. sig { - params(params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def create(params = {}, opts = {}); end # Expire a test-mode Authorization. sig { - params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def expire(authorization, params = {}, opts = {}); end # Finalize the amount on an Authorization prior to capture, when the initial authorization was for an estimated amount. sig { - params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationFinalizeAmountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationFinalizeAmountParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def finalize_amount(authorization, params = {}, opts = {}); end # Increment a test-mode Authorization. sig { - params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationIncrementParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationIncrementParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def increment(authorization, params = {}, opts = {}); end # Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy. sig { - params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationRespondParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationRespondParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def respond(authorization, params = {}, opts = {}); end # Reverse a test-mode Authorization. sig { - params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationReverseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Authorization) + params(authorization: String, params: T.any(::Stripe::TestHelpers::Issuing::AuthorizationReverseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Authorization) } def reverse(authorization, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/test_helpers/issuing/card_service.rbi b/rbi/stripe/services/test_helpers/issuing/card_service.rbi index 28af4832..3fe5cf19 100644 --- a/rbi/stripe/services/test_helpers/issuing/card_service.rbi +++ b/rbi/stripe/services/test_helpers/issuing/card_service.rbi @@ -8,31 +8,31 @@ module Stripe class CardService < StripeService # Updates the shipping status of the specified Issuing Card object to delivered. sig { - params(card: String, params: T.any(::Stripe::TestHelpers::Issuing::CardDeliverCardParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Card) + params(card: String, params: T.any(::Stripe::TestHelpers::Issuing::CardDeliverCardParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Card) } def deliver_card(card, params = {}, opts = {}); end # Updates the shipping status of the specified Issuing Card object to failure. sig { - params(card: String, params: T.any(::Stripe::TestHelpers::Issuing::CardFailCardParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Card) + params(card: String, params: T.any(::Stripe::TestHelpers::Issuing::CardFailCardParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Card) } def fail_card(card, params = {}, opts = {}); end # Updates the shipping status of the specified Issuing Card object to returned. sig { - params(card: String, params: T.any(::Stripe::TestHelpers::Issuing::CardReturnCardParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Card) + params(card: String, params: T.any(::Stripe::TestHelpers::Issuing::CardReturnCardParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Card) } def return_card(card, params = {}, opts = {}); end # Updates the shipping status of the specified Issuing Card object to shipped. sig { - params(card: String, params: T.any(::Stripe::TestHelpers::Issuing::CardShipCardParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Card) + params(card: String, params: T.any(::Stripe::TestHelpers::Issuing::CardShipCardParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Card) } def ship_card(card, params = {}, opts = {}); end # Updates the shipping status of the specified Issuing Card object to submitted. This method requires Stripe Version ‘2024-09-30.acacia' or later. sig { - params(card: String, params: T.any(::Stripe::TestHelpers::Issuing::CardSubmitCardParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Card) + params(card: String, params: T.any(::Stripe::TestHelpers::Issuing::CardSubmitCardParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Card) } def submit_card(card, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi b/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi index 0c1a5fb1..ea7f0739 100644 --- a/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +++ b/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi @@ -8,19 +8,19 @@ module Stripe class PersonalizationDesignService < StripeService # Updates the status of the specified testmode personalization design object to active. sig { - params(personalization_design: String, params: T.any(::Stripe::TestHelpers::Issuing::PersonalizationDesignActivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::PersonalizationDesign) + params(personalization_design: String, params: T.any(::Stripe::TestHelpers::Issuing::PersonalizationDesignActivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::PersonalizationDesign) } def activate(personalization_design, params = {}, opts = {}); end # Updates the status of the specified testmode personalization design object to inactive. sig { - params(personalization_design: String, params: T.any(::Stripe::TestHelpers::Issuing::PersonalizationDesignDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::PersonalizationDesign) + params(personalization_design: String, params: T.any(::Stripe::TestHelpers::Issuing::PersonalizationDesignDeactivateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::PersonalizationDesign) } def deactivate(personalization_design, params = {}, opts = {}); end # Updates the status of the specified testmode personalization design object to rejected. sig { - params(personalization_design: String, params: T.any(::Stripe::TestHelpers::Issuing::PersonalizationDesignRejectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::PersonalizationDesign) + params(personalization_design: String, params: T.any(::Stripe::TestHelpers::Issuing::PersonalizationDesignRejectParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::PersonalizationDesign) } def reject(personalization_design, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi b/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi index cbdb9b18..243d96a7 100644 --- a/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +++ b/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi @@ -8,19 +8,19 @@ module Stripe class TransactionService < StripeService # Allows the user to capture an arbitrary amount, also known as a forced capture. sig { - params(params: T.any(::Stripe::TestHelpers::Issuing::TransactionCreateForceCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Transaction) + params(params: T.any(::Stripe::TestHelpers::Issuing::TransactionCreateForceCaptureParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Transaction) } def create_force_capture(params = {}, opts = {}); end # Allows the user to refund an arbitrary amount, also known as a unlinked refund. sig { - params(params: T.any(::Stripe::TestHelpers::Issuing::TransactionCreateUnlinkedRefundParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Transaction) + params(params: T.any(::Stripe::TestHelpers::Issuing::TransactionCreateUnlinkedRefundParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Transaction) } def create_unlinked_refund(params = {}, opts = {}); end # Refund a test-mode Transaction. sig { - params(transaction: String, params: T.any(::Stripe::TestHelpers::Issuing::TransactionRefundParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Issuing::Transaction) + params(transaction: String, params: T.any(::Stripe::TestHelpers::Issuing::TransactionRefundParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Transaction) } def refund(transaction, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/test_helpers/refund_service.rbi b/rbi/stripe/services/test_helpers/refund_service.rbi index 66afbfc6..2500d343 100644 --- a/rbi/stripe/services/test_helpers/refund_service.rbi +++ b/rbi/stripe/services/test_helpers/refund_service.rbi @@ -7,7 +7,7 @@ module Stripe class RefundService < StripeService # Expire a refund with a status of requires_action. sig { - params(refund: String, params: T.any(::Stripe::TestHelpers::RefundExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Refund) + params(refund: String, params: T.any(::Stripe::TestHelpers::RefundExpireParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Refund) } def expire(refund, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/test_helpers/terminal/reader_service.rbi b/rbi/stripe/services/test_helpers/terminal/reader_service.rbi index 47002107..81fffe5e 100644 --- a/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +++ b/rbi/stripe/services/test_helpers/terminal/reader_service.rbi @@ -8,19 +8,19 @@ module Stripe class ReaderService < StripeService # Presents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction. sig { - params(reader: String, params: T.any(::Stripe::TestHelpers::Terminal::ReaderPresentPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::TestHelpers::Terminal::ReaderPresentPaymentMethodParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def present_payment_method(reader, params = {}, opts = {}); end # Use this endpoint to trigger a successful input collection on a simulated reader. sig { - params(reader: String, params: T.any(::Stripe::TestHelpers::Terminal::ReaderSucceedInputCollectionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::TestHelpers::Terminal::ReaderSucceedInputCollectionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def succeed_input_collection(reader, params = {}, opts = {}); end # Use this endpoint to complete an input collection with a timeout error on a simulated reader. sig { - params(reader: String, params: T.any(::Stripe::TestHelpers::Terminal::ReaderTimeoutInputCollectionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Terminal::Reader) + params(reader: String, params: T.any(::Stripe::TestHelpers::Terminal::ReaderTimeoutInputCollectionParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Terminal::Reader) } def timeout_input_collection(reader, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/test_helpers/test_clock_service.rbi b/rbi/stripe/services/test_helpers/test_clock_service.rbi index 8a054cd4..e684544d 100644 --- a/rbi/stripe/services/test_helpers/test_clock_service.rbi +++ b/rbi/stripe/services/test_helpers/test_clock_service.rbi @@ -7,31 +7,31 @@ module Stripe class TestClockService < StripeService # Starts advancing a test clock to a specified time in the future. Advancement is done when status changes to Ready. sig { - params(test_clock: String, params: T.any(::Stripe::TestHelpers::TestClockAdvanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TestHelpers::TestClock) + params(test_clock: String, params: T.any(::Stripe::TestHelpers::TestClockAdvanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TestHelpers::TestClock) } def advance(test_clock, params = {}, opts = {}); end # Creates a new test clock that can be attached to new customers and quotes. sig { - params(params: T.any(::Stripe::TestHelpers::TestClockCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TestHelpers::TestClock) + params(params: T.any(::Stripe::TestHelpers::TestClockCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TestHelpers::TestClock) } def create(params = {}, opts = {}); end # Deletes a test clock. sig { - params(test_clock: String, params: T.any(::Stripe::TestHelpers::TestClockDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TestHelpers::TestClock) + params(test_clock: String, params: T.any(::Stripe::TestHelpers::TestClockDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TestHelpers::TestClock) } def delete(test_clock, params = {}, opts = {}); end # Returns a list of your test clocks. sig { - params(params: T.any(::Stripe::TestHelpers::TestClockListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TestHelpers::TestClockListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a test clock. sig { - params(test_clock: String, params: T.any(::Stripe::TestHelpers::TestClockRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::TestHelpers::TestClock) + params(test_clock: String, params: T.any(::Stripe::TestHelpers::TestClockRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::TestHelpers::TestClock) } def retrieve(test_clock, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi b/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi index 9895994b..11c1def7 100644 --- a/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +++ b/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi @@ -8,19 +8,19 @@ module Stripe class InboundTransferService < StripeService # Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state. sig { - params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::InboundTransferFailParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::InboundTransfer) + params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::InboundTransferFailParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::InboundTransfer) } def fail(id, params = {}, opts = {}); end # Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state. sig { - params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::InboundTransferReturnInboundTransferParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::InboundTransfer) + params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::InboundTransferReturnInboundTransferParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::InboundTransfer) } def return_inbound_transfer(id, params = {}, opts = {}); end # Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state. sig { - params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::InboundTransferSucceedParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::InboundTransfer) + params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::InboundTransferSucceedParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::InboundTransfer) } def succeed(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi b/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi index 4c2470c1..e256c5e8 100644 --- a/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +++ b/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi @@ -8,25 +8,25 @@ module Stripe class OutboundPaymentService < StripeService # Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state. sig { - params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundPaymentFailParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundPayment) + params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundPaymentFailParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundPayment) } def fail(id, params = {}, opts = {}); end # Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state. sig { - params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundPaymentPostParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundPayment) + params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundPaymentPostParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundPayment) } def post(id, params = {}, opts = {}); end # Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state. sig { - params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundPaymentReturnOutboundPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundPayment) + params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundPaymentReturnOutboundPaymentParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundPayment) } def return_outbound_payment(id, params = {}, opts = {}); end # Updates a test mode created OutboundPayment with tracking details. The OutboundPayment must not be cancelable, and cannot be in the canceled or failed states. sig { - params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundPaymentUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundPayment) + params(id: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundPaymentUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundPayment) } def update(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi b/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi index 4ca769dc..1e133ec3 100644 --- a/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +++ b/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi @@ -8,25 +8,25 @@ module Stripe class OutboundTransferService < StripeService # Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state. sig { - params(outbound_transfer: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundTransferFailParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundTransfer) + params(outbound_transfer: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundTransferFailParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundTransfer) } def fail(outbound_transfer, params = {}, opts = {}); end # Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state. sig { - params(outbound_transfer: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundTransferPostParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundTransfer) + params(outbound_transfer: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundTransferPostParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundTransfer) } def post(outbound_transfer, params = {}, opts = {}); end # Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state. sig { - params(outbound_transfer: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundTransferReturnOutboundTransferParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundTransfer) + params(outbound_transfer: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundTransferReturnOutboundTransferParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundTransfer) } def return_outbound_transfer(outbound_transfer, params = {}, opts = {}); end # Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states. sig { - params(outbound_transfer: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundTransferUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundTransfer) + params(outbound_transfer: String, params: T.any(::Stripe::TestHelpers::Treasury::OutboundTransferUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundTransfer) } def update(outbound_transfer, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi b/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi index 03c2e64c..e245f0d0 100644 --- a/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +++ b/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi @@ -8,7 +8,7 @@ module Stripe class ReceivedCreditService < StripeService # Use this endpoint to simulate a test mode ReceivedCredit initiated by a third party. In live mode, you can't directly create ReceivedCredits initiated by third parties. sig { - params(params: T.any(::Stripe::TestHelpers::Treasury::ReceivedCreditCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::ReceivedCredit) + params(params: T.any(::Stripe::TestHelpers::Treasury::ReceivedCreditCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::ReceivedCredit) } def create(params = {}, opts = {}); end end diff --git a/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi b/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi index 3a5ef937..6645ad6a 100644 --- a/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +++ b/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi @@ -8,7 +8,7 @@ module Stripe class ReceivedDebitService < StripeService # Use this endpoint to simulate a test mode ReceivedDebit initiated by a third party. In live mode, you can't directly create ReceivedDebits initiated by third parties. sig { - params(params: T.any(::Stripe::TestHelpers::Treasury::ReceivedDebitCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::ReceivedDebit) + params(params: T.any(::Stripe::TestHelpers::Treasury::ReceivedDebitCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::ReceivedDebit) } def create(params = {}, opts = {}); end end diff --git a/rbi/stripe/services/token_service.rbi b/rbi/stripe/services/token_service.rbi index 071e8e58..e5de21d1 100644 --- a/rbi/stripe/services/token_service.rbi +++ b/rbi/stripe/services/token_service.rbi @@ -7,13 +7,13 @@ module Stripe # Creates a single-use token that represents a bank account's details. # You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://docs.stripe.com/api#accounts) where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts. sig { - params(params: T.any(::Stripe::TokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Token) + params(params: T.any(::Stripe::TokenCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Token) } def create(params = {}, opts = {}); end # Retrieves the token with the given ID. sig { - params(token: String, params: T.any(::Stripe::TokenRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Token) + params(token: String, params: T.any(::Stripe::TokenRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Token) } def retrieve(token, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/topup_service.rbi b/rbi/stripe/services/topup_service.rbi index 488a8b29..e1b1a382 100644 --- a/rbi/stripe/services/topup_service.rbi +++ b/rbi/stripe/services/topup_service.rbi @@ -6,31 +6,31 @@ module Stripe class TopupService < StripeService # Cancels a top-up. Only pending top-ups can be canceled. sig { - params(topup: String, params: T.any(::Stripe::TopupCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Topup) + params(topup: String, params: T.any(::Stripe::TopupCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Topup) } def cancel(topup, params = {}, opts = {}); end # Top up the balance of an account sig { - params(params: T.any(::Stripe::TopupCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Topup) + params(params: T.any(::Stripe::TopupCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Topup) } def create(params = {}, opts = {}); end # Returns a list of top-ups. sig { - params(params: T.any(::Stripe::TopupListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TopupListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of a top-up that has previously been created. Supply the unique top-up ID that was returned from your previous request, and Stripe will return the corresponding top-up information. sig { - params(topup: String, params: T.any(::Stripe::TopupRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Topup) + params(topup: String, params: T.any(::Stripe::TopupRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Topup) } def retrieve(topup, params = {}, opts = {}); end # Updates the metadata of a top-up. Other top-up details are not editable by design. sig { - params(topup: String, params: T.any(::Stripe::TopupUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Topup) + params(topup: String, params: T.any(::Stripe::TopupUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Topup) } def update(topup, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/transfer_reversal_service.rbi b/rbi/stripe/services/transfer_reversal_service.rbi index c0046371..86713f04 100644 --- a/rbi/stripe/services/transfer_reversal_service.rbi +++ b/rbi/stripe/services/transfer_reversal_service.rbi @@ -10,19 +10,19 @@ module Stripe # # Once entirely reversed, a transfer can't be reversed again. This method will return an error when called on an already-reversed transfer, or when trying to reverse more money than is left on a transfer. sig { - params(id: String, params: T.any(::Stripe::TransferReversalCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Reversal) + params(id: String, params: T.any(::Stripe::TransferReversalCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Reversal) } def create(id, params = {}, opts = {}); end # You can see a list of the reversals belonging to a specific transfer. Note that the 10 most recent reversals are always available by default on the transfer object. If you need more than those 10, you can use this API method and the limit and starting_after parameters to page through additional reversals. sig { - params(id: String, params: T.any(::Stripe::TransferReversalListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(id: String, params: T.any(::Stripe::TransferReversalListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(id, params = {}, opts = {}); end # By default, you can see the 10 most recent reversals stored directly on the transfer object, but you can also retrieve details about a specific reversal stored on the transfer. sig { - params(transfer: String, id: String, params: T.any(::Stripe::TransferReversalRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Reversal) + params(transfer: String, id: String, params: T.any(::Stripe::TransferReversalRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Reversal) } def retrieve(transfer, id, params = {}, opts = {}); end @@ -30,7 +30,7 @@ module Stripe # # This request only accepts metadata and description as arguments. sig { - params(transfer: String, id: String, params: T.any(::Stripe::TransferReversalUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Reversal) + params(transfer: String, id: String, params: T.any(::Stripe::TransferReversalUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Reversal) } def update(transfer, id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/transfer_service.rbi b/rbi/stripe/services/transfer_service.rbi index ff29daa5..76508660 100644 --- a/rbi/stripe/services/transfer_service.rbi +++ b/rbi/stripe/services/transfer_service.rbi @@ -7,19 +7,19 @@ module Stripe attr_reader :reversals # To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://docs.stripe.com/api#balance) must be able to cover the transfer amount, or you'll receive an “Insufficient Funds” error. sig { - params(params: T.any(::Stripe::TransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Transfer) + params(params: T.any(::Stripe::TransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Transfer) } def create(params = {}, opts = {}); end # Returns a list of existing transfers sent to connected accounts. The transfers are returned in sorted order, with the most recently created transfers appearing first. sig { - params(params: T.any(::Stripe::TransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::TransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing transfer. Supply the unique transfer ID from either a transfer creation request or the transfer list, and Stripe will return the corresponding transfer information. sig { - params(transfer: String, params: T.any(::Stripe::TransferRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Transfer) + params(transfer: String, params: T.any(::Stripe::TransferRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Transfer) } def retrieve(transfer, params = {}, opts = {}); end @@ -27,7 +27,7 @@ module Stripe # # This request accepts only metadata as an argument. sig { - params(transfer: String, params: T.any(::Stripe::TransferUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Transfer) + params(transfer: String, params: T.any(::Stripe::TransferUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Transfer) } def update(transfer, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/treasury/credit_reversal_service.rbi b/rbi/stripe/services/treasury/credit_reversal_service.rbi index cfcd5cb2..01f5cb55 100644 --- a/rbi/stripe/services/treasury/credit_reversal_service.rbi +++ b/rbi/stripe/services/treasury/credit_reversal_service.rbi @@ -7,19 +7,19 @@ module Stripe class CreditReversalService < StripeService # Reverses a ReceivedCredit and creates a CreditReversal object. sig { - params(params: T.any(::Stripe::Treasury::CreditReversalCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::CreditReversal) + params(params: T.any(::Stripe::Treasury::CreditReversalCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::CreditReversal) } def create(params = {}, opts = {}); end # Returns a list of CreditReversals. sig { - params(params: T.any(::Stripe::Treasury::CreditReversalListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::CreditReversalListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing CreditReversal by passing the unique CreditReversal ID from either the CreditReversal creation request or CreditReversal list sig { - params(credit_reversal: String, params: T.any(::Stripe::Treasury::CreditReversalRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::CreditReversal) + params(credit_reversal: String, params: T.any(::Stripe::Treasury::CreditReversalRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::CreditReversal) } def retrieve(credit_reversal, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/treasury/debit_reversal_service.rbi b/rbi/stripe/services/treasury/debit_reversal_service.rbi index db5ce88b..24759c08 100644 --- a/rbi/stripe/services/treasury/debit_reversal_service.rbi +++ b/rbi/stripe/services/treasury/debit_reversal_service.rbi @@ -7,19 +7,19 @@ module Stripe class DebitReversalService < StripeService # Reverses a ReceivedDebit and creates a DebitReversal object. sig { - params(params: T.any(::Stripe::Treasury::DebitReversalCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::DebitReversal) + params(params: T.any(::Stripe::Treasury::DebitReversalCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::DebitReversal) } def create(params = {}, opts = {}); end # Returns a list of DebitReversals. sig { - params(params: T.any(::Stripe::Treasury::DebitReversalListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::DebitReversalListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a DebitReversal object. sig { - params(debit_reversal: String, params: T.any(::Stripe::Treasury::DebitReversalRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::DebitReversal) + params(debit_reversal: String, params: T.any(::Stripe::Treasury::DebitReversalRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::DebitReversal) } def retrieve(debit_reversal, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/treasury/financial_account_features_service.rbi b/rbi/stripe/services/treasury/financial_account_features_service.rbi index 27b58870..de9ade48 100644 --- a/rbi/stripe/services/treasury/financial_account_features_service.rbi +++ b/rbi/stripe/services/treasury/financial_account_features_service.rbi @@ -7,13 +7,13 @@ module Stripe class FinancialAccountFeaturesService < StripeService # Retrieves Features information associated with the FinancialAccount. sig { - params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountFeaturesRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccountFeatures) + params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountFeaturesRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccountFeatures) } def retrieve(financial_account, params = {}, opts = {}); end # Updates the Features associated with a FinancialAccount. sig { - params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountFeaturesUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccountFeatures) + params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountFeaturesUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccountFeatures) } def update(financial_account, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/treasury/financial_account_service.rbi b/rbi/stripe/services/treasury/financial_account_service.rbi index 62e94b89..c12ccbb8 100644 --- a/rbi/stripe/services/treasury/financial_account_service.rbi +++ b/rbi/stripe/services/treasury/financial_account_service.rbi @@ -8,31 +8,31 @@ module Stripe attr_reader :features # Closes a FinancialAccount. A FinancialAccount can only be closed if it has a zero balance, has no pending InboundTransfers, and has canceled all attached Issuing cards. sig { - params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccount) + params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountCloseParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccount) } def close(financial_account, params = {}, opts = {}); end # Creates a new FinancialAccount. Each connected account can have up to three FinancialAccounts by default. sig { - params(params: T.any(::Stripe::Treasury::FinancialAccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccount) + params(params: T.any(::Stripe::Treasury::FinancialAccountCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccount) } def create(params = {}, opts = {}); end # Returns a list of FinancialAccounts. sig { - params(params: T.any(::Stripe::Treasury::FinancialAccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::FinancialAccountListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of a FinancialAccount. sig { - params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccount) + params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccount) } def retrieve(financial_account, params = {}, opts = {}); end # Updates the details of a FinancialAccount. sig { - params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::FinancialAccount) + params(financial_account: String, params: T.any(::Stripe::Treasury::FinancialAccountUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::FinancialAccount) } def update(financial_account, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/treasury/inbound_transfer_service.rbi b/rbi/stripe/services/treasury/inbound_transfer_service.rbi index 519af2ac..adc78138 100644 --- a/rbi/stripe/services/treasury/inbound_transfer_service.rbi +++ b/rbi/stripe/services/treasury/inbound_transfer_service.rbi @@ -7,25 +7,25 @@ module Stripe class InboundTransferService < StripeService # Cancels an InboundTransfer. sig { - params(inbound_transfer: String, params: T.any(::Stripe::Treasury::InboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::InboundTransfer) + params(inbound_transfer: String, params: T.any(::Stripe::Treasury::InboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::InboundTransfer) } def cancel(inbound_transfer, params = {}, opts = {}); end # Creates an InboundTransfer. sig { - params(params: T.any(::Stripe::Treasury::InboundTransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::InboundTransfer) + params(params: T.any(::Stripe::Treasury::InboundTransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::InboundTransfer) } def create(params = {}, opts = {}); end # Returns a list of InboundTransfers sent from the specified FinancialAccount. sig { - params(params: T.any(::Stripe::Treasury::InboundTransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::InboundTransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing InboundTransfer. sig { - params(id: String, params: T.any(::Stripe::Treasury::InboundTransferRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::InboundTransfer) + params(id: String, params: T.any(::Stripe::Treasury::InboundTransferRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::InboundTransfer) } def retrieve(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/treasury/outbound_payment_service.rbi b/rbi/stripe/services/treasury/outbound_payment_service.rbi index 111594c7..921ee191 100644 --- a/rbi/stripe/services/treasury/outbound_payment_service.rbi +++ b/rbi/stripe/services/treasury/outbound_payment_service.rbi @@ -7,25 +7,25 @@ module Stripe class OutboundPaymentService < StripeService # Cancel an OutboundPayment. sig { - params(id: String, params: T.any(::Stripe::Treasury::OutboundPaymentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundPayment) + params(id: String, params: T.any(::Stripe::Treasury::OutboundPaymentCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundPayment) } def cancel(id, params = {}, opts = {}); end # Creates an OutboundPayment. sig { - params(params: T.any(::Stripe::Treasury::OutboundPaymentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundPayment) + params(params: T.any(::Stripe::Treasury::OutboundPaymentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundPayment) } def create(params = {}, opts = {}); end # Returns a list of OutboundPayments sent from the specified FinancialAccount. sig { - params(params: T.any(::Stripe::Treasury::OutboundPaymentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::OutboundPaymentListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing OutboundPayment by passing the unique OutboundPayment ID from either the OutboundPayment creation request or OutboundPayment list. sig { - params(id: String, params: T.any(::Stripe::Treasury::OutboundPaymentRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundPayment) + params(id: String, params: T.any(::Stripe::Treasury::OutboundPaymentRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundPayment) } def retrieve(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/treasury/outbound_transfer_service.rbi b/rbi/stripe/services/treasury/outbound_transfer_service.rbi index 4b188ad9..3f31e3bb 100644 --- a/rbi/stripe/services/treasury/outbound_transfer_service.rbi +++ b/rbi/stripe/services/treasury/outbound_transfer_service.rbi @@ -7,25 +7,25 @@ module Stripe class OutboundTransferService < StripeService # An OutboundTransfer can be canceled if the funds have not yet been paid out. sig { - params(outbound_transfer: String, params: T.any(::Stripe::Treasury::OutboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundTransfer) + params(outbound_transfer: String, params: T.any(::Stripe::Treasury::OutboundTransferCancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundTransfer) } def cancel(outbound_transfer, params = {}, opts = {}); end # Creates an OutboundTransfer. sig { - params(params: T.any(::Stripe::Treasury::OutboundTransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundTransfer) + params(params: T.any(::Stripe::Treasury::OutboundTransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundTransfer) } def create(params = {}, opts = {}); end # Returns a list of OutboundTransfers sent from the specified FinancialAccount. sig { - params(params: T.any(::Stripe::Treasury::OutboundTransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::OutboundTransferListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing OutboundTransfer by passing the unique OutboundTransfer ID from either the OutboundTransfer creation request or OutboundTransfer list. sig { - params(outbound_transfer: String, params: T.any(::Stripe::Treasury::OutboundTransferRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::OutboundTransfer) + params(outbound_transfer: String, params: T.any(::Stripe::Treasury::OutboundTransferRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::OutboundTransfer) } def retrieve(outbound_transfer, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/treasury/received_credit_service.rbi b/rbi/stripe/services/treasury/received_credit_service.rbi index 732bd7b1..c30749e8 100644 --- a/rbi/stripe/services/treasury/received_credit_service.rbi +++ b/rbi/stripe/services/treasury/received_credit_service.rbi @@ -7,13 +7,13 @@ module Stripe class ReceivedCreditService < StripeService # Returns a list of ReceivedCredits. sig { - params(params: T.any(::Stripe::Treasury::ReceivedCreditListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::ReceivedCreditListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing ReceivedCredit by passing the unique ReceivedCredit ID from the ReceivedCredit list. sig { - params(id: String, params: T.any(::Stripe::Treasury::ReceivedCreditRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::ReceivedCredit) + params(id: String, params: T.any(::Stripe::Treasury::ReceivedCreditRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::ReceivedCredit) } def retrieve(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/treasury/received_debit_service.rbi b/rbi/stripe/services/treasury/received_debit_service.rbi index 2fd40429..8a03f1d3 100644 --- a/rbi/stripe/services/treasury/received_debit_service.rbi +++ b/rbi/stripe/services/treasury/received_debit_service.rbi @@ -7,13 +7,13 @@ module Stripe class ReceivedDebitService < StripeService # Returns a list of ReceivedDebits. sig { - params(params: T.any(::Stripe::Treasury::ReceivedDebitListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::ReceivedDebitListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing ReceivedDebit by passing the unique ReceivedDebit ID from the ReceivedDebit list sig { - params(id: String, params: T.any(::Stripe::Treasury::ReceivedDebitRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::ReceivedDebit) + params(id: String, params: T.any(::Stripe::Treasury::ReceivedDebitRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::ReceivedDebit) } def retrieve(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/treasury/transaction_entry_service.rbi b/rbi/stripe/services/treasury/transaction_entry_service.rbi index c1c3e90c..8c29acd4 100644 --- a/rbi/stripe/services/treasury/transaction_entry_service.rbi +++ b/rbi/stripe/services/treasury/transaction_entry_service.rbi @@ -7,13 +7,13 @@ module Stripe class TransactionEntryService < StripeService # Retrieves a list of TransactionEntry objects. sig { - params(params: T.any(::Stripe::Treasury::TransactionEntryListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::TransactionEntryListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves a TransactionEntry object. sig { - params(id: String, params: T.any(::Stripe::Treasury::TransactionEntryRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::TransactionEntry) + params(id: String, params: T.any(::Stripe::Treasury::TransactionEntryRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::TransactionEntry) } def retrieve(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/treasury/transaction_service.rbi b/rbi/stripe/services/treasury/transaction_service.rbi index 3472786b..0d933638 100644 --- a/rbi/stripe/services/treasury/transaction_service.rbi +++ b/rbi/stripe/services/treasury/transaction_service.rbi @@ -7,13 +7,13 @@ module Stripe class TransactionService < StripeService # Retrieves a list of Transaction objects. sig { - params(params: T.any(::Stripe::Treasury::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::Treasury::TransactionListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an existing Transaction. sig { - params(id: String, params: T.any(::Stripe::Treasury::TransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Treasury::Transaction) + params(id: String, params: T.any(::Stripe::Treasury::TransactionRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Treasury::Transaction) } def retrieve(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/v1_services.rbi b/rbi/stripe/services/v1_services.rbi index 6315830f..0a268b77 100644 --- a/rbi/stripe/services/v1_services.rbi +++ b/rbi/stripe/services/v1_services.rbi @@ -40,11 +40,13 @@ module Stripe attr_reader :invoice_rendering_templates attr_reader :issuing attr_reader :mandates + attr_reader :payment_attempt_records attr_reader :payment_intents attr_reader :payment_links attr_reader :payment_methods attr_reader :payment_method_configurations attr_reader :payment_method_domains + attr_reader :payment_records attr_reader :payouts attr_reader :plans attr_reader :prices diff --git a/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi b/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi index 8cd4248c..f9678aae 100644 --- a/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +++ b/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi @@ -8,7 +8,7 @@ module Stripe class MeterEventAdjustmentService < StripeService # Creates a meter event adjustment to cancel a previously sent meter event. sig { - params(params: T.any(::Stripe::V2::Billing::MeterEventAdjustmentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Billing::MeterEventAdjustment) + params(params: T.any(::Stripe::V2::Billing::MeterEventAdjustmentCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Billing::MeterEventAdjustment) } def create(params = {}, opts = {}); end end diff --git a/rbi/stripe/services/v2/billing/meter_event_service.rbi b/rbi/stripe/services/v2/billing/meter_event_service.rbi index 35647afa..1ba2c603 100644 --- a/rbi/stripe/services/v2/billing/meter_event_service.rbi +++ b/rbi/stripe/services/v2/billing/meter_event_service.rbi @@ -8,7 +8,7 @@ module Stripe class MeterEventService < StripeService # Creates a meter event. Events are validated synchronously, but are processed asynchronously. Supports up to 1,000 events per second in livemode. For higher rate-limits, please use meter event streams instead. sig { - params(params: T.any(::Stripe::V2::Billing::MeterEventCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Billing::MeterEvent) + params(params: T.any(::Stripe::V2::Billing::MeterEventCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Billing::MeterEvent) } def create(params = {}, opts = {}); end end diff --git a/rbi/stripe/services/v2/billing/meter_event_session_service.rbi b/rbi/stripe/services/v2/billing/meter_event_session_service.rbi index aad2debd..f7539a28 100644 --- a/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +++ b/rbi/stripe/services/v2/billing/meter_event_session_service.rbi @@ -8,7 +8,7 @@ module Stripe class MeterEventSessionService < StripeService # Creates a meter event session to send usage on the high-throughput meter event stream. Authentication tokens are only valid for 15 minutes, so you will need to create a new meter event session when your token expires. sig { - params(params: T.any(::Stripe::V2::Billing::MeterEventSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Billing::MeterEventSession) + params(params: T.any(::Stripe::V2::Billing::MeterEventSessionCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Billing::MeterEventSession) } def create(params = {}, opts = {}); end end diff --git a/rbi/stripe/services/v2/core/event_destination_service.rbi b/rbi/stripe/services/v2/core/event_destination_service.rbi index eecb27c0..185391f5 100644 --- a/rbi/stripe/services/v2/core/event_destination_service.rbi +++ b/rbi/stripe/services/v2/core/event_destination_service.rbi @@ -8,49 +8,49 @@ module Stripe class EventDestinationService < StripeService # Create a new event destination. sig { - params(params: T.any(::Stripe::V2::Core::EventDestinationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Core::EventDestination) + params(params: T.any(::Stripe::V2::Core::EventDestinationCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::EventDestination) } def create(params = {}, opts = {}); end # Delete an event destination. sig { - params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::DeletedObject) + params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::DeletedObject) } def delete(id, params = {}, opts = {}); end # Disable an event destination. sig { - params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationDisableParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Core::EventDestination) + params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationDisableParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::EventDestination) } def disable(id, params = {}, opts = {}); end # Enable an event destination. sig { - params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationEnableParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Core::EventDestination) + params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationEnableParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::EventDestination) } def enable(id, params = {}, opts = {}); end # Lists all event destinations. sig { - params(params: T.any(::Stripe::V2::Core::EventDestinationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::ListObject) + params(params: T.any(::Stripe::V2::Core::EventDestinationListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::ListObject) } def list(params = {}, opts = {}); end # Send a `ping` event to an event destination. sig { - params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationPingParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Core::Event) + params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationPingParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Event) } def ping(id, params = {}, opts = {}); end # Retrieves the details of an event destination. sig { - params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Core::EventDestination) + params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::EventDestination) } def retrieve(id, params = {}, opts = {}); end # Update the details of an event destination. sig { - params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Core::EventDestination) + params(id: String, params: T.any(::Stripe::V2::Core::EventDestinationUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::EventDestination) } def update(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/v2/core/event_service.rbi b/rbi/stripe/services/v2/core/event_service.rbi index 32a99835..dcc9c190 100644 --- a/rbi/stripe/services/v2/core/event_service.rbi +++ b/rbi/stripe/services/v2/core/event_service.rbi @@ -8,13 +8,13 @@ module Stripe class EventService < StripeService # List events, going back up to 30 days. sig { - params(params: T.any(::Stripe::V2::Core::EventListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::ListObject) + params(params: T.any(::Stripe::V2::Core::EventListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::ListObject) } def list(params = {}, opts = {}); end # Retrieves the details of an event. sig { - params(id: String, params: T.any(::Stripe::V2::Core::EventRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::V2::Core::Event) + params(id: String, params: T.any(::Stripe::V2::Core::EventRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::V2::Core::Event) } def retrieve(id, params = {}, opts = {}); end end diff --git a/rbi/stripe/services/webhook_endpoint_service.rbi b/rbi/stripe/services/webhook_endpoint_service.rbi index c30e5807..a3b36c65 100644 --- a/rbi/stripe/services/webhook_endpoint_service.rbi +++ b/rbi/stripe/services/webhook_endpoint_service.rbi @@ -6,31 +6,31 @@ module Stripe class WebhookEndpointService < StripeService # A webhook endpoint must have a url and a list of enabled_events. You may optionally specify the Boolean connect parameter. If set to true, then a Connect webhook endpoint that notifies the specified url about events from all connected accounts is created; otherwise an account webhook endpoint that notifies the specified url only about events from your account is created. You can also create webhook endpoints in the [webhooks settings](https://dashboard.stripe.com/account/webhooks) section of the Dashboard. sig { - params(params: T.any(::Stripe::WebhookEndpointCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::WebhookEndpoint) + params(params: T.any(::Stripe::WebhookEndpointCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::WebhookEndpoint) } def create(params = {}, opts = {}); end # You can also delete webhook endpoints via the [webhook endpoint management](https://dashboard.stripe.com/account/webhooks) page of the Stripe dashboard. sig { - params(webhook_endpoint: String, params: T.any(::Stripe::WebhookEndpointDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::WebhookEndpoint) + params(webhook_endpoint: String, params: T.any(::Stripe::WebhookEndpointDeleteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::WebhookEndpoint) } def delete(webhook_endpoint, params = {}, opts = {}); end # Returns a list of your webhook endpoints. sig { - params(params: T.any(::Stripe::WebhookEndpointListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::ListObject) + params(params: T.any(::Stripe::WebhookEndpointListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) } def list(params = {}, opts = {}); end # Retrieves the webhook endpoint with the given ID. sig { - params(webhook_endpoint: String, params: T.any(::Stripe::WebhookEndpointRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::WebhookEndpoint) + params(webhook_endpoint: String, params: T.any(::Stripe::WebhookEndpointRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::WebhookEndpoint) } def retrieve(webhook_endpoint, params = {}, opts = {}); end # Updates the webhook endpoint. You may edit the url, the list of enabled_events, and the status of your endpoint. sig { - params(webhook_endpoint: String, params: T.any(::Stripe::WebhookEndpointUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::WebhookEndpoint) + params(webhook_endpoint: String, params: T.any(::Stripe::WebhookEndpointUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::WebhookEndpoint) } def update(webhook_endpoint, params = {}, opts = {}); end end diff --git a/test/stripe/generated_examples_test.rb b/test/stripe/generated_examples_test.rb index c4a23841..912f3d34 100644 --- a/test/stripe/generated_examples_test.rb +++ b/test/stripe/generated_examples_test.rb @@ -7572,17 +7572,14 @@ module Stripe assert_requested :post, "#{Stripe::DEFAULT_METER_EVENTS_BASE}/v2/billing/meter_event_stream" end should "Test v2 core event get (service)" do - stub_request( - :get, - "#{Stripe::DEFAULT_API_BASE}/v2/core/events?object_id=object_id" - ).to_return( + stub_request(:get, "#{Stripe::DEFAULT_API_BASE}/v2/core/events").to_return( body: '{"data":[{"created":"1970-01-12T21:42:34.472Z","id":"obj_123","object":"v2.core.event","type":"type","livemode":true}],"next_page_url":null,"previous_page_url":null}', status: 200 ) client = Stripe::StripeClient.new("sk_test_123") - events = client.v2.core.events.list({ object_id: "object_id" }) - assert_requested :get, "#{Stripe::DEFAULT_API_BASE}/v2/core/events?object_id=object_id" + events = client.v2.core.events.list + assert_requested :get, "#{Stripe::DEFAULT_API_BASE}/v2/core/events" end should "Test v2 core event get 2 (service)" do stub_request(:get, "#{Stripe::DEFAULT_API_BASE}/v2/core/events/id_123").to_return( From d3ac3cf6b542a658214c3fa1fb451caa22036922 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 28 Oct 2025 00:53:27 -0700 Subject: [PATCH 3/5] Update generated code for v2102 and (#1715) Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- API_VERSION | 2 +- OPENAPI_VERSION | 2 +- .../params/payment_intent_capture_params.rb | 42 ++- .../params/payment_intent_confirm_params.rb | 42 ++- .../params/payment_intent_create_params.rb | 42 ++- ...t_intent_increment_authorization_params.rb | 42 ++- .../params/payment_intent_update_params.rb | 42 ++- lib/stripe/resources/payment_intent.rb | 24 +- ...payment_intent_amount_details_line_item.rb | 20 +- rbi/stripe.rbi | 254 ++++++++++++------ .../params/payment_intent_capture_params.rbi | 42 ++- .../params/payment_intent_confirm_params.rbi | 42 ++- .../params/payment_intent_create_params.rbi | 42 ++- ..._intent_increment_authorization_params.rbi | 42 ++- .../params/payment_intent_update_params.rbi | 42 ++- rbi/stripe/resources/payment_intent.rbi | 24 +- ...ayment_intent_amount_details_line_item.rbi | 20 +- 17 files changed, 527 insertions(+), 239 deletions(-) diff --git a/API_VERSION b/API_VERSION index 7fa3a2d3..1105d435 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -577fcb57736b925392ea563c0284df9002c75ac9 \ No newline at end of file +3ccf295957c8cadc88e1463ea3ab4ec683a0314f \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index edaae7f4..c8ed627f 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2099 \ No newline at end of file +v2102 \ No newline at end of file diff --git a/lib/stripe/params/payment_intent_capture_params.rb b/lib/stripe/params/payment_intent_capture_params.rb index e0b7fda2..a0e202ac 100644 --- a/lib/stripe/params/payment_intent_capture_params.rb +++ b/lib/stripe/params/payment_intent_capture_params.rb @@ -79,26 +79,32 @@ module Stripe end class Tax < ::Stripe::RequestParams - # The total tax on an item. Non-negative integer. + # The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field. attr_accessor :total_tax_amount def initialize(total_tax_amount: nil) @total_tax_amount = total_tax_amount end end - # The amount an item was discounted for. Positive integer. + # The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[discount_amount]` field. attr_accessor :discount_amount # Payment method-specific information for line items. attr_accessor :payment_method_options - # Unique identifier of the product. At most 12 characters long. + # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. attr_accessor :product_code - # Name of the product. At most 100 characters long. + # The product name of the line item. Required for L3 rates. At most 1024 characters long. + # + # For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. attr_accessor :product_name - # Number of items of the product. Positive integer. + # The quantity of items. Required for L3 rates. An integer greater than 0. attr_accessor :quantity # Contains information about the tax on the item. attr_accessor :tax - # Cost of the product. Non-negative integer. + # The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. attr_accessor :unit_cost # A unit of measure for the line item, such as gallons, feet, meters, etc. attr_accessor :unit_of_measure @@ -125,11 +131,11 @@ module Stripe end class Shipping < ::Stripe::RequestParams - # Portion of the amount that is for shipping. + # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0. attr_accessor :amount - # The postal code that represents the shipping source. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. attr_accessor :from_postal_code - # The postal code that represents the shipping destination. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. attr_accessor :to_postal_code def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil) @@ -140,14 +146,18 @@ module Stripe end class Tax < ::Stripe::RequestParams - # Total portion of the amount that is for tax. + # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field. attr_accessor :total_tax_amount def initialize(total_tax_amount: nil) @total_tax_amount = total_tax_amount end end - # The total discount applied on the transaction. + # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field. attr_accessor :discount_amount # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. attr_accessor :line_items @@ -165,9 +175,15 @@ module Stripe end class PaymentDetails < ::Stripe::RequestParams - # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + # A unique value to identify the customer. This field is available only for card payments. + # + # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. attr_accessor :customer_reference - # A unique value assigned by the business to identify the transaction. + # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. + # + # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`. + # + # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app. attr_accessor :order_reference def initialize(customer_reference: nil, order_reference: nil) diff --git a/lib/stripe/params/payment_intent_confirm_params.rb b/lib/stripe/params/payment_intent_confirm_params.rb index 3e4439d4..295e5d76 100644 --- a/lib/stripe/params/payment_intent_confirm_params.rb +++ b/lib/stripe/params/payment_intent_confirm_params.rb @@ -79,26 +79,32 @@ module Stripe end class Tax < ::Stripe::RequestParams - # The total tax on an item. Non-negative integer. + # The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field. attr_accessor :total_tax_amount def initialize(total_tax_amount: nil) @total_tax_amount = total_tax_amount end end - # The amount an item was discounted for. Positive integer. + # The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[discount_amount]` field. attr_accessor :discount_amount # Payment method-specific information for line items. attr_accessor :payment_method_options - # Unique identifier of the product. At most 12 characters long. + # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. attr_accessor :product_code - # Name of the product. At most 100 characters long. + # The product name of the line item. Required for L3 rates. At most 1024 characters long. + # + # For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. attr_accessor :product_name - # Number of items of the product. Positive integer. + # The quantity of items. Required for L3 rates. An integer greater than 0. attr_accessor :quantity # Contains information about the tax on the item. attr_accessor :tax - # Cost of the product. Non-negative integer. + # The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. attr_accessor :unit_cost # A unit of measure for the line item, such as gallons, feet, meters, etc. attr_accessor :unit_of_measure @@ -125,11 +131,11 @@ module Stripe end class Shipping < ::Stripe::RequestParams - # Portion of the amount that is for shipping. + # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0. attr_accessor :amount - # The postal code that represents the shipping source. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. attr_accessor :from_postal_code - # The postal code that represents the shipping destination. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. attr_accessor :to_postal_code def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil) @@ -140,14 +146,18 @@ module Stripe end class Tax < ::Stripe::RequestParams - # Total portion of the amount that is for tax. + # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field. attr_accessor :total_tax_amount def initialize(total_tax_amount: nil) @total_tax_amount = total_tax_amount end end - # The total discount applied on the transaction. + # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field. attr_accessor :discount_amount # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. attr_accessor :line_items @@ -204,9 +214,15 @@ module Stripe end class PaymentDetails < ::Stripe::RequestParams - # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + # A unique value to identify the customer. This field is available only for card payments. + # + # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. attr_accessor :customer_reference - # A unique value assigned by the business to identify the transaction. + # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. + # + # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`. + # + # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app. attr_accessor :order_reference def initialize(customer_reference: nil, order_reference: nil) diff --git a/lib/stripe/params/payment_intent_create_params.rb b/lib/stripe/params/payment_intent_create_params.rb index bb8756ba..860de4ac 100644 --- a/lib/stripe/params/payment_intent_create_params.rb +++ b/lib/stripe/params/payment_intent_create_params.rb @@ -79,26 +79,32 @@ module Stripe end class Tax < ::Stripe::RequestParams - # The total tax on an item. Non-negative integer. + # The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field. attr_accessor :total_tax_amount def initialize(total_tax_amount: nil) @total_tax_amount = total_tax_amount end end - # The amount an item was discounted for. Positive integer. + # The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[discount_amount]` field. attr_accessor :discount_amount # Payment method-specific information for line items. attr_accessor :payment_method_options - # Unique identifier of the product. At most 12 characters long. + # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. attr_accessor :product_code - # Name of the product. At most 100 characters long. + # The product name of the line item. Required for L3 rates. At most 1024 characters long. + # + # For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. attr_accessor :product_name - # Number of items of the product. Positive integer. + # The quantity of items. Required for L3 rates. An integer greater than 0. attr_accessor :quantity # Contains information about the tax on the item. attr_accessor :tax - # Cost of the product. Non-negative integer. + # The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. attr_accessor :unit_cost # A unit of measure for the line item, such as gallons, feet, meters, etc. attr_accessor :unit_of_measure @@ -125,11 +131,11 @@ module Stripe end class Shipping < ::Stripe::RequestParams - # Portion of the amount that is for shipping. + # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0. attr_accessor :amount - # The postal code that represents the shipping source. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. attr_accessor :from_postal_code - # The postal code that represents the shipping destination. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. attr_accessor :to_postal_code def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil) @@ -140,14 +146,18 @@ module Stripe end class Tax < ::Stripe::RequestParams - # Total portion of the amount that is for tax. + # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field. attr_accessor :total_tax_amount def initialize(total_tax_amount: nil) @total_tax_amount = total_tax_amount end end - # The total discount applied on the transaction. + # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field. attr_accessor :discount_amount # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. attr_accessor :line_items @@ -218,9 +228,15 @@ module Stripe end class PaymentDetails < ::Stripe::RequestParams - # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + # A unique value to identify the customer. This field is available only for card payments. + # + # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. attr_accessor :customer_reference - # A unique value assigned by the business to identify the transaction. + # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. + # + # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`. + # + # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app. attr_accessor :order_reference def initialize(customer_reference: nil, order_reference: nil) diff --git a/lib/stripe/params/payment_intent_increment_authorization_params.rb b/lib/stripe/params/payment_intent_increment_authorization_params.rb index e9e8c711..2c8bb678 100644 --- a/lib/stripe/params/payment_intent_increment_authorization_params.rb +++ b/lib/stripe/params/payment_intent_increment_authorization_params.rb @@ -79,26 +79,32 @@ module Stripe end class Tax < ::Stripe::RequestParams - # The total tax on an item. Non-negative integer. + # The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field. attr_accessor :total_tax_amount def initialize(total_tax_amount: nil) @total_tax_amount = total_tax_amount end end - # The amount an item was discounted for. Positive integer. + # The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[discount_amount]` field. attr_accessor :discount_amount # Payment method-specific information for line items. attr_accessor :payment_method_options - # Unique identifier of the product. At most 12 characters long. + # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. attr_accessor :product_code - # Name of the product. At most 100 characters long. + # The product name of the line item. Required for L3 rates. At most 1024 characters long. + # + # For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. attr_accessor :product_name - # Number of items of the product. Positive integer. + # The quantity of items. Required for L3 rates. An integer greater than 0. attr_accessor :quantity # Contains information about the tax on the item. attr_accessor :tax - # Cost of the product. Non-negative integer. + # The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. attr_accessor :unit_cost # A unit of measure for the line item, such as gallons, feet, meters, etc. attr_accessor :unit_of_measure @@ -125,11 +131,11 @@ module Stripe end class Shipping < ::Stripe::RequestParams - # Portion of the amount that is for shipping. + # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0. attr_accessor :amount - # The postal code that represents the shipping source. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. attr_accessor :from_postal_code - # The postal code that represents the shipping destination. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. attr_accessor :to_postal_code def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil) @@ -140,14 +146,18 @@ module Stripe end class Tax < ::Stripe::RequestParams - # Total portion of the amount that is for tax. + # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field. attr_accessor :total_tax_amount def initialize(total_tax_amount: nil) @total_tax_amount = total_tax_amount end end - # The total discount applied on the transaction. + # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field. attr_accessor :discount_amount # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. attr_accessor :line_items @@ -165,9 +175,15 @@ module Stripe end class PaymentDetails < ::Stripe::RequestParams - # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + # A unique value to identify the customer. This field is available only for card payments. + # + # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. attr_accessor :customer_reference - # A unique value assigned by the business to identify the transaction. + # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. + # + # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`. + # + # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app. attr_accessor :order_reference def initialize(customer_reference: nil, order_reference: nil) diff --git a/lib/stripe/params/payment_intent_update_params.rb b/lib/stripe/params/payment_intent_update_params.rb index 57332898..62a8fe1f 100644 --- a/lib/stripe/params/payment_intent_update_params.rb +++ b/lib/stripe/params/payment_intent_update_params.rb @@ -79,26 +79,32 @@ module Stripe end class Tax < ::Stripe::RequestParams - # The total tax on an item. Non-negative integer. + # The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field. attr_accessor :total_tax_amount def initialize(total_tax_amount: nil) @total_tax_amount = total_tax_amount end end - # The amount an item was discounted for. Positive integer. + # The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[discount_amount]` field. attr_accessor :discount_amount # Payment method-specific information for line items. attr_accessor :payment_method_options - # Unique identifier of the product. At most 12 characters long. + # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. attr_accessor :product_code - # Name of the product. At most 100 characters long. + # The product name of the line item. Required for L3 rates. At most 1024 characters long. + # + # For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. attr_accessor :product_name - # Number of items of the product. Positive integer. + # The quantity of items. Required for L3 rates. An integer greater than 0. attr_accessor :quantity # Contains information about the tax on the item. attr_accessor :tax - # Cost of the product. Non-negative integer. + # The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. attr_accessor :unit_cost # A unit of measure for the line item, such as gallons, feet, meters, etc. attr_accessor :unit_of_measure @@ -125,11 +131,11 @@ module Stripe end class Shipping < ::Stripe::RequestParams - # Portion of the amount that is for shipping. + # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0. attr_accessor :amount - # The postal code that represents the shipping source. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. attr_accessor :from_postal_code - # The postal code that represents the shipping destination. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. attr_accessor :to_postal_code def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil) @@ -140,14 +146,18 @@ module Stripe end class Tax < ::Stripe::RequestParams - # Total portion of the amount that is for tax. + # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field. attr_accessor :total_tax_amount def initialize(total_tax_amount: nil) @total_tax_amount = total_tax_amount end end - # The total discount applied on the transaction. + # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field. attr_accessor :discount_amount # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. attr_accessor :line_items @@ -165,9 +175,15 @@ module Stripe end class PaymentDetails < ::Stripe::RequestParams - # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + # A unique value to identify the customer. This field is available only for card payments. + # + # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. attr_accessor :customer_reference - # A unique value assigned by the business to identify the transaction. + # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. + # + # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`. + # + # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app. attr_accessor :order_reference def initialize(customer_reference: nil, order_reference: nil) diff --git a/lib/stripe/resources/payment_intent.rb b/lib/stripe/resources/payment_intent.rb index 160b3d79..753e7f23 100644 --- a/lib/stripe/resources/payment_intent.rb +++ b/lib/stripe/resources/payment_intent.rb @@ -29,11 +29,11 @@ module Stripe class AmountDetails < ::Stripe::StripeObject class Shipping < ::Stripe::StripeObject - # Portion of the amount that is for shipping. + # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0. attr_reader :amount - # The postal code that represents the shipping source. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. attr_reader :from_postal_code - # The postal code that represents the shipping destination. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. attr_reader :to_postal_code def self.inner_class_types @@ -46,7 +46,9 @@ module Stripe end class Tax < ::Stripe::StripeObject - # Total portion of the amount that is for tax. + # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field. attr_reader :total_tax_amount def self.inner_class_types @@ -70,7 +72,9 @@ module Stripe @field_remappings = {} end end - # The total discount applied on the transaction. + # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field. attr_reader :discount_amount # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. attr_reader :line_items @@ -1144,9 +1148,15 @@ module Stripe end class PaymentDetails < ::Stripe::StripeObject - # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + # A unique value to identify the customer. This field is available only for card payments. + # + # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. attr_reader :customer_reference - # A unique value assigned by the business to identify the transaction. + # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. + # + # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`. + # + # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app. attr_reader :order_reference def self.inner_class_types diff --git a/lib/stripe/resources/payment_intent_amount_details_line_item.rb b/lib/stripe/resources/payment_intent_amount_details_line_item.rb index 659606c4..0989f5ce 100644 --- a/lib/stripe/resources/payment_intent_amount_details_line_item.rb +++ b/lib/stripe/resources/payment_intent_amount_details_line_item.rb @@ -89,7 +89,9 @@ module Stripe end class Tax < ::Stripe::StripeObject - # Total portion of the amount that is for tax. + # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field. attr_reader :total_tax_amount def self.inner_class_types @@ -100,7 +102,9 @@ module Stripe @field_remappings = {} end end - # The amount an item was discounted for. Positive integer. + # The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[discount_amount]` field. attr_reader :discount_amount # Unique identifier for the object. attr_reader :id @@ -108,17 +112,19 @@ module Stripe attr_reader :object # Payment method-specific information for line items. attr_reader :payment_method_options - # Unique identifier of the product. At most 12 characters long. + # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. attr_reader :product_code - # Name of the product. At most 100 characters long. + # The product name of the line item. Required for L3 rates. At most 1024 characters long. + # + # For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. attr_reader :product_name - # Number of items of the product. Positive integer. + # The quantity of items. Required for L3 rates. An integer greater than 0. attr_reader :quantity # Contains information about the tax on the item. attr_reader :tax - # Cost of the product. Non-negative integer. + # The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. attr_reader :unit_cost - # A unit of measure for the line item, such as gallons, feet, meters, etc. + # A unit of measure for the line item, such as gallons, feet, meters, etc. Required for L3 rates. At most 12 alphanumeric characters long. attr_reader :unit_of_measure def self.inner_class_types diff --git a/rbi/stripe.rbi b/rbi/stripe.rbi index c64ce87c..a0416039 100644 --- a/rbi/stripe.rbi +++ b/rbi/stripe.rbi @@ -23543,13 +23543,13 @@ module Stripe class PaymentIntent < APIResource class AmountDetails < ::Stripe::StripeObject class Shipping < ::Stripe::StripeObject - # Portion of the amount that is for shipping. + # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0. sig { returns(T.nilable(Integer)) } def amount; end - # The postal code that represents the shipping source. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end - # The postal code that represents the shipping destination. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end def self.inner_class_types @@ -23560,7 +23560,9 @@ module Stripe end end class Tax < ::Stripe::StripeObject - # Total portion of the amount that is for tax. + # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field. sig { returns(T.nilable(Integer)) } def total_tax_amount; end def self.inner_class_types @@ -23581,7 +23583,9 @@ module Stripe @field_remappings = {} end end - # The total discount applied on the transaction. + # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field. sig { returns(T.nilable(Integer)) } def discount_amount; end # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. @@ -24772,10 +24776,16 @@ module Stripe end end class PaymentDetails < ::Stripe::StripeObject - # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + # A unique value to identify the customer. This field is available only for card payments. + # + # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. sig { returns(T.nilable(String)) } def customer_reference; end - # A unique value assigned by the business to identify the transaction. + # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. + # + # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`. + # + # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app. sig { returns(T.nilable(String)) } def order_reference; end def self.inner_class_types @@ -26811,7 +26821,9 @@ module Stripe end end class Tax < ::Stripe::StripeObject - # Total portion of the amount that is for tax. + # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field. sig { returns(Integer) } def total_tax_amount; end def self.inner_class_types @@ -26821,7 +26833,9 @@ module Stripe @field_remappings = {} end end - # The amount an item was discounted for. Positive integer. + # The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[discount_amount]` field. sig { returns(T.nilable(Integer)) } def discount_amount; end # Unique identifier for the object. @@ -26833,22 +26847,24 @@ module Stripe # Payment method-specific information for line items. sig { returns(T.nilable(PaymentMethodOptions)) } def payment_method_options; end - # Unique identifier of the product. At most 12 characters long. + # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. sig { returns(T.nilable(String)) } def product_code; end - # Name of the product. At most 100 characters long. + # The product name of the line item. Required for L3 rates. At most 1024 characters long. + # + # For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. sig { returns(String) } def product_name; end - # Number of items of the product. Positive integer. + # The quantity of items. Required for L3 rates. An integer greater than 0. sig { returns(Integer) } def quantity; end # Contains information about the tax on the item. sig { returns(T.nilable(Tax)) } def tax; end - # Cost of the product. Non-negative integer. + # The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. sig { returns(Integer) } def unit_cost; end - # A unit of measure for the line item, such as gallons, feet, meters, etc. + # A unit of measure for the line item, such as gallons, feet, meters, etc. Required for L3 rates. At most 12 alphanumeric characters long. sig { returns(T.nilable(String)) } def unit_of_measure; end end @@ -83138,7 +83154,9 @@ module Stripe def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end end class Tax < ::Stripe::RequestParams - # The total tax on an item. Non-negative integer. + # The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field. sig { returns(Integer) } def total_tax_amount; end sig { params(_total_tax_amount: Integer).returns(Integer) } @@ -83146,7 +83164,9 @@ module Stripe sig { params(total_tax_amount: Integer).void } def initialize(total_tax_amount: nil); end end - # The amount an item was discounted for. Positive integer. + # The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[discount_amount]` field. sig { returns(T.nilable(Integer)) } def discount_amount; end sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } @@ -83160,17 +83180,19 @@ module Stripe params(_payment_method_options: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions)).returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions)) } def payment_method_options=(_payment_method_options); end - # Unique identifier of the product. At most 12 characters long. + # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. sig { returns(T.nilable(String)) } def product_code; end sig { params(_product_code: T.nilable(String)).returns(T.nilable(String)) } def product_code=(_product_code); end - # Name of the product. At most 100 characters long. + # The product name of the line item. Required for L3 rates. At most 1024 characters long. + # + # For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. sig { returns(String) } def product_name; end sig { params(_product_name: String).returns(String) } def product_name=(_product_name); end - # Number of items of the product. Positive integer. + # The quantity of items. Required for L3 rates. An integer greater than 0. sig { returns(Integer) } def quantity; end sig { params(_quantity: Integer).returns(Integer) } @@ -83182,7 +83204,7 @@ module Stripe params(_tax: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::Tax)).returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::Tax)) } def tax=(_tax); end - # Cost of the product. Non-negative integer. + # The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. sig { returns(Integer) } def unit_cost; end sig { params(_unit_cost: Integer).returns(Integer) } @@ -83207,19 +83229,19 @@ module Stripe ); end end class Shipping < ::Stripe::RequestParams - # Portion of the amount that is for shipping. + # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0. sig { returns(T.nilable(T.any(String, Integer))) } def amount; end sig { params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) } def amount=(_amount); end - # The postal code that represents the shipping source. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } def from_postal_code=(_from_postal_code); end - # The postal code that represents the shipping destination. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } @@ -83230,7 +83252,9 @@ module Stripe def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end end class Tax < ::Stripe::RequestParams - # Total portion of the amount that is for tax. + # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field. sig { returns(Integer) } def total_tax_amount; end sig { params(_total_tax_amount: Integer).returns(Integer) } @@ -83238,7 +83262,9 @@ module Stripe sig { params(total_tax_amount: Integer).void } def initialize(total_tax_amount: nil); end end - # The total discount applied on the transaction. + # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field. sig { returns(T.nilable(T.any(String, Integer))) } def discount_amount; end sig { @@ -83352,12 +83378,18 @@ module Stripe def initialize(customer_acceptance: nil); end end class PaymentDetails < ::Stripe::RequestParams - # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + # A unique value to identify the customer. This field is available only for card payments. + # + # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. sig { returns(T.nilable(String)) } def customer_reference; end sig { params(_customer_reference: T.nilable(String)).returns(T.nilable(String)) } def customer_reference=(_customer_reference); end - # A unique value assigned by the business to identify the transaction. + # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. + # + # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`. + # + # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app. sig { returns(T.nilable(String)) } def order_reference; end sig { params(_order_reference: T.nilable(String)).returns(T.nilable(String)) } @@ -87082,7 +87114,9 @@ module Stripe def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end end class Tax < ::Stripe::RequestParams - # The total tax on an item. Non-negative integer. + # The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field. sig { returns(Integer) } def total_tax_amount; end sig { params(_total_tax_amount: Integer).returns(Integer) } @@ -87090,7 +87124,9 @@ module Stripe sig { params(total_tax_amount: Integer).void } def initialize(total_tax_amount: nil); end end - # The amount an item was discounted for. Positive integer. + # The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[discount_amount]` field. sig { returns(T.nilable(Integer)) } def discount_amount; end sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } @@ -87104,17 +87140,19 @@ module Stripe params(_payment_method_options: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions)).returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions)) } def payment_method_options=(_payment_method_options); end - # Unique identifier of the product. At most 12 characters long. + # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. sig { returns(T.nilable(String)) } def product_code; end sig { params(_product_code: T.nilable(String)).returns(T.nilable(String)) } def product_code=(_product_code); end - # Name of the product. At most 100 characters long. + # The product name of the line item. Required for L3 rates. At most 1024 characters long. + # + # For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. sig { returns(String) } def product_name; end sig { params(_product_name: String).returns(String) } def product_name=(_product_name); end - # Number of items of the product. Positive integer. + # The quantity of items. Required for L3 rates. An integer greater than 0. sig { returns(Integer) } def quantity; end sig { params(_quantity: Integer).returns(Integer) } @@ -87126,7 +87164,7 @@ module Stripe params(_tax: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::Tax)).returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::Tax)) } def tax=(_tax); end - # Cost of the product. Non-negative integer. + # The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. sig { returns(Integer) } def unit_cost; end sig { params(_unit_cost: Integer).returns(Integer) } @@ -87151,19 +87189,19 @@ module Stripe ); end end class Shipping < ::Stripe::RequestParams - # Portion of the amount that is for shipping. + # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0. sig { returns(T.nilable(T.any(String, Integer))) } def amount; end sig { params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) } def amount=(_amount); end - # The postal code that represents the shipping source. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } def from_postal_code=(_from_postal_code); end - # The postal code that represents the shipping destination. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } @@ -87174,7 +87212,9 @@ module Stripe def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end end class Tax < ::Stripe::RequestParams - # Total portion of the amount that is for tax. + # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field. sig { returns(Integer) } def total_tax_amount; end sig { params(_total_tax_amount: Integer).returns(Integer) } @@ -87182,7 +87222,9 @@ module Stripe sig { params(total_tax_amount: Integer).void } def initialize(total_tax_amount: nil); end end - # The total discount applied on the transaction. + # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field. sig { returns(T.nilable(T.any(String, Integer))) } def discount_amount; end sig { @@ -87218,12 +87260,18 @@ module Stripe def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil); end end class PaymentDetails < ::Stripe::RequestParams - # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + # A unique value to identify the customer. This field is available only for card payments. + # + # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. sig { returns(T.nilable(String)) } def customer_reference; end sig { params(_customer_reference: T.nilable(String)).returns(T.nilable(String)) } def customer_reference=(_customer_reference); end - # A unique value assigned by the business to identify the transaction. + # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. + # + # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`. + # + # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app. sig { returns(T.nilable(String)) } def order_reference; end sig { params(_order_reference: T.nilable(String)).returns(T.nilable(String)) } @@ -90918,7 +90966,9 @@ module Stripe def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end end class Tax < ::Stripe::RequestParams - # The total tax on an item. Non-negative integer. + # The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field. sig { returns(Integer) } def total_tax_amount; end sig { params(_total_tax_amount: Integer).returns(Integer) } @@ -90926,7 +90976,9 @@ module Stripe sig { params(total_tax_amount: Integer).void } def initialize(total_tax_amount: nil); end end - # The amount an item was discounted for. Positive integer. + # The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[discount_amount]` field. sig { returns(T.nilable(Integer)) } def discount_amount; end sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } @@ -90940,17 +90992,19 @@ module Stripe params(_payment_method_options: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions)).returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions)) } def payment_method_options=(_payment_method_options); end - # Unique identifier of the product. At most 12 characters long. + # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. sig { returns(T.nilable(String)) } def product_code; end sig { params(_product_code: T.nilable(String)).returns(T.nilable(String)) } def product_code=(_product_code); end - # Name of the product. At most 100 characters long. + # The product name of the line item. Required for L3 rates. At most 1024 characters long. + # + # For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. sig { returns(String) } def product_name; end sig { params(_product_name: String).returns(String) } def product_name=(_product_name); end - # Number of items of the product. Positive integer. + # The quantity of items. Required for L3 rates. An integer greater than 0. sig { returns(Integer) } def quantity; end sig { params(_quantity: Integer).returns(Integer) } @@ -90962,7 +91016,7 @@ module Stripe params(_tax: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::Tax)).returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::Tax)) } def tax=(_tax); end - # Cost of the product. Non-negative integer. + # The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. sig { returns(Integer) } def unit_cost; end sig { params(_unit_cost: Integer).returns(Integer) } @@ -90987,19 +91041,19 @@ module Stripe ); end end class Shipping < ::Stripe::RequestParams - # Portion of the amount that is for shipping. + # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0. sig { returns(T.nilable(T.any(String, Integer))) } def amount; end sig { params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) } def amount=(_amount); end - # The postal code that represents the shipping source. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } def from_postal_code=(_from_postal_code); end - # The postal code that represents the shipping destination. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } @@ -91010,7 +91064,9 @@ module Stripe def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end end class Tax < ::Stripe::RequestParams - # Total portion of the amount that is for tax. + # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field. sig { returns(Integer) } def total_tax_amount; end sig { params(_total_tax_amount: Integer).returns(Integer) } @@ -91018,7 +91074,9 @@ module Stripe sig { params(total_tax_amount: Integer).void } def initialize(total_tax_amount: nil); end end - # The total discount applied on the transaction. + # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field. sig { returns(T.nilable(T.any(String, Integer))) } def discount_amount; end sig { @@ -91054,12 +91112,18 @@ module Stripe def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil); end end class PaymentDetails < ::Stripe::RequestParams - # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + # A unique value to identify the customer. This field is available only for card payments. + # + # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. sig { returns(T.nilable(String)) } def customer_reference; end sig { params(_customer_reference: T.nilable(String)).returns(T.nilable(String)) } def customer_reference=(_customer_reference); end - # A unique value assigned by the business to identify the transaction. + # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. + # + # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`. + # + # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app. sig { returns(T.nilable(String)) } def order_reference; end sig { params(_order_reference: T.nilable(String)).returns(T.nilable(String)) } @@ -91272,7 +91336,9 @@ module Stripe def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end end class Tax < ::Stripe::RequestParams - # The total tax on an item. Non-negative integer. + # The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field. sig { returns(Integer) } def total_tax_amount; end sig { params(_total_tax_amount: Integer).returns(Integer) } @@ -91280,7 +91346,9 @@ module Stripe sig { params(total_tax_amount: Integer).void } def initialize(total_tax_amount: nil); end end - # The amount an item was discounted for. Positive integer. + # The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[discount_amount]` field. sig { returns(T.nilable(Integer)) } def discount_amount; end sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } @@ -91294,17 +91362,19 @@ module Stripe params(_payment_method_options: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions)).returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions)) } def payment_method_options=(_payment_method_options); end - # Unique identifier of the product. At most 12 characters long. + # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. sig { returns(T.nilable(String)) } def product_code; end sig { params(_product_code: T.nilable(String)).returns(T.nilable(String)) } def product_code=(_product_code); end - # Name of the product. At most 100 characters long. + # The product name of the line item. Required for L3 rates. At most 1024 characters long. + # + # For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. sig { returns(String) } def product_name; end sig { params(_product_name: String).returns(String) } def product_name=(_product_name); end - # Number of items of the product. Positive integer. + # The quantity of items. Required for L3 rates. An integer greater than 0. sig { returns(Integer) } def quantity; end sig { params(_quantity: Integer).returns(Integer) } @@ -91316,7 +91386,7 @@ module Stripe params(_tax: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::Tax)).returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::Tax)) } def tax=(_tax); end - # Cost of the product. Non-negative integer. + # The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. sig { returns(Integer) } def unit_cost; end sig { params(_unit_cost: Integer).returns(Integer) } @@ -91341,19 +91411,19 @@ module Stripe ); end end class Shipping < ::Stripe::RequestParams - # Portion of the amount that is for shipping. + # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0. sig { returns(T.nilable(T.any(String, Integer))) } def amount; end sig { params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) } def amount=(_amount); end - # The postal code that represents the shipping source. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } def from_postal_code=(_from_postal_code); end - # The postal code that represents the shipping destination. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } @@ -91364,7 +91434,9 @@ module Stripe def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end end class Tax < ::Stripe::RequestParams - # Total portion of the amount that is for tax. + # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field. sig { returns(Integer) } def total_tax_amount; end sig { params(_total_tax_amount: Integer).returns(Integer) } @@ -91372,7 +91444,9 @@ module Stripe sig { params(total_tax_amount: Integer).void } def initialize(total_tax_amount: nil); end end - # The total discount applied on the transaction. + # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field. sig { returns(T.nilable(T.any(String, Integer))) } def discount_amount; end sig { @@ -91470,12 +91544,18 @@ module Stripe def initialize(customer_acceptance: nil); end end class PaymentDetails < ::Stripe::RequestParams - # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + # A unique value to identify the customer. This field is available only for card payments. + # + # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. sig { returns(T.nilable(String)) } def customer_reference; end sig { params(_customer_reference: T.nilable(String)).returns(T.nilable(String)) } def customer_reference=(_customer_reference); end - # A unique value assigned by the business to identify the transaction. + # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. + # + # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`. + # + # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app. sig { returns(T.nilable(String)) } def order_reference; end sig { params(_order_reference: T.nilable(String)).returns(T.nilable(String)) } @@ -95077,7 +95157,9 @@ module Stripe def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end end class Tax < ::Stripe::RequestParams - # The total tax on an item. Non-negative integer. + # The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field. sig { returns(Integer) } def total_tax_amount; end sig { params(_total_tax_amount: Integer).returns(Integer) } @@ -95085,7 +95167,9 @@ module Stripe sig { params(total_tax_amount: Integer).void } def initialize(total_tax_amount: nil); end end - # The amount an item was discounted for. Positive integer. + # The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[discount_amount]` field. sig { returns(T.nilable(Integer)) } def discount_amount; end sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } @@ -95099,17 +95183,19 @@ module Stripe params(_payment_method_options: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions)).returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions)) } def payment_method_options=(_payment_method_options); end - # Unique identifier of the product. At most 12 characters long. + # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. sig { returns(T.nilable(String)) } def product_code; end sig { params(_product_code: T.nilable(String)).returns(T.nilable(String)) } def product_code=(_product_code); end - # Name of the product. At most 100 characters long. + # The product name of the line item. Required for L3 rates. At most 1024 characters long. + # + # For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. sig { returns(String) } def product_name; end sig { params(_product_name: String).returns(String) } def product_name=(_product_name); end - # Number of items of the product. Positive integer. + # The quantity of items. Required for L3 rates. An integer greater than 0. sig { returns(Integer) } def quantity; end sig { params(_quantity: Integer).returns(Integer) } @@ -95123,7 +95209,7 @@ module Stripe params(_tax: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::Tax)).returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::Tax)) } def tax=(_tax); end - # Cost of the product. Non-negative integer. + # The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. sig { returns(Integer) } def unit_cost; end sig { params(_unit_cost: Integer).returns(Integer) } @@ -95148,19 +95234,19 @@ module Stripe ); end end class Shipping < ::Stripe::RequestParams - # Portion of the amount that is for shipping. + # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0. sig { returns(T.nilable(T.any(String, Integer))) } def amount; end sig { params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) } def amount=(_amount); end - # The postal code that represents the shipping source. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } def from_postal_code=(_from_postal_code); end - # The postal code that represents the shipping destination. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } @@ -95171,7 +95257,9 @@ module Stripe def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end end class Tax < ::Stripe::RequestParams - # Total portion of the amount that is for tax. + # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field. sig { returns(Integer) } def total_tax_amount; end sig { params(_total_tax_amount: Integer).returns(Integer) } @@ -95179,7 +95267,9 @@ module Stripe sig { params(total_tax_amount: Integer).void } def initialize(total_tax_amount: nil); end end - # The total discount applied on the transaction. + # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field. sig { returns(T.nilable(T.any(String, Integer))) } def discount_amount; end sig { @@ -95219,12 +95309,18 @@ module Stripe def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil); end end class PaymentDetails < ::Stripe::RequestParams - # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + # A unique value to identify the customer. This field is available only for card payments. + # + # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. sig { returns(T.nilable(String)) } def customer_reference; end sig { params(_customer_reference: T.nilable(String)).returns(T.nilable(String)) } def customer_reference=(_customer_reference); end - # A unique value assigned by the business to identify the transaction. + # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. + # + # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`. + # + # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app. sig { returns(T.nilable(String)) } def order_reference; end sig { params(_order_reference: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/payment_intent_capture_params.rbi b/rbi/stripe/params/payment_intent_capture_params.rbi index 03bb2f1d..7165a819 100644 --- a/rbi/stripe/params/payment_intent_capture_params.rbi +++ b/rbi/stripe/params/payment_intent_capture_params.rbi @@ -119,7 +119,9 @@ module Stripe def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end end class Tax < ::Stripe::RequestParams - # The total tax on an item. Non-negative integer. + # The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field. sig { returns(Integer) } def total_tax_amount; end sig { params(_total_tax_amount: Integer).returns(Integer) } @@ -127,7 +129,9 @@ module Stripe sig { params(total_tax_amount: Integer).void } def initialize(total_tax_amount: nil); end end - # The amount an item was discounted for. Positive integer. + # The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[discount_amount]` field. sig { returns(T.nilable(Integer)) } def discount_amount; end sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } @@ -141,17 +145,19 @@ module Stripe params(_payment_method_options: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions)).returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::PaymentMethodOptions)) } def payment_method_options=(_payment_method_options); end - # Unique identifier of the product. At most 12 characters long. + # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. sig { returns(T.nilable(String)) } def product_code; end sig { params(_product_code: T.nilable(String)).returns(T.nilable(String)) } def product_code=(_product_code); end - # Name of the product. At most 100 characters long. + # The product name of the line item. Required for L3 rates. At most 1024 characters long. + # + # For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. sig { returns(String) } def product_name; end sig { params(_product_name: String).returns(String) } def product_name=(_product_name); end - # Number of items of the product. Positive integer. + # The quantity of items. Required for L3 rates. An integer greater than 0. sig { returns(Integer) } def quantity; end sig { params(_quantity: Integer).returns(Integer) } @@ -163,7 +169,7 @@ module Stripe params(_tax: T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::Tax)).returns(T.nilable(PaymentIntentCaptureParams::AmountDetails::LineItem::Tax)) } def tax=(_tax); end - # Cost of the product. Non-negative integer. + # The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. sig { returns(Integer) } def unit_cost; end sig { params(_unit_cost: Integer).returns(Integer) } @@ -188,19 +194,19 @@ module Stripe ); end end class Shipping < ::Stripe::RequestParams - # Portion of the amount that is for shipping. + # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0. sig { returns(T.nilable(T.any(String, Integer))) } def amount; end sig { params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) } def amount=(_amount); end - # The postal code that represents the shipping source. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } def from_postal_code=(_from_postal_code); end - # The postal code that represents the shipping destination. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } @@ -211,7 +217,9 @@ module Stripe def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end end class Tax < ::Stripe::RequestParams - # Total portion of the amount that is for tax. + # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field. sig { returns(Integer) } def total_tax_amount; end sig { params(_total_tax_amount: Integer).returns(Integer) } @@ -219,7 +227,9 @@ module Stripe sig { params(total_tax_amount: Integer).void } def initialize(total_tax_amount: nil); end end - # The total discount applied on the transaction. + # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field. sig { returns(T.nilable(T.any(String, Integer))) } def discount_amount; end sig { @@ -255,12 +265,18 @@ module Stripe def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil); end end class PaymentDetails < ::Stripe::RequestParams - # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + # A unique value to identify the customer. This field is available only for card payments. + # + # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. sig { returns(T.nilable(String)) } def customer_reference; end sig { params(_customer_reference: T.nilable(String)).returns(T.nilable(String)) } def customer_reference=(_customer_reference); end - # A unique value assigned by the business to identify the transaction. + # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. + # + # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`. + # + # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app. sig { returns(T.nilable(String)) } def order_reference; end sig { params(_order_reference: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/payment_intent_confirm_params.rbi b/rbi/stripe/params/payment_intent_confirm_params.rbi index 89db86ca..71b045b5 100644 --- a/rbi/stripe/params/payment_intent_confirm_params.rbi +++ b/rbi/stripe/params/payment_intent_confirm_params.rbi @@ -119,7 +119,9 @@ module Stripe def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end end class Tax < ::Stripe::RequestParams - # The total tax on an item. Non-negative integer. + # The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field. sig { returns(Integer) } def total_tax_amount; end sig { params(_total_tax_amount: Integer).returns(Integer) } @@ -127,7 +129,9 @@ module Stripe sig { params(total_tax_amount: Integer).void } def initialize(total_tax_amount: nil); end end - # The amount an item was discounted for. Positive integer. + # The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[discount_amount]` field. sig { returns(T.nilable(Integer)) } def discount_amount; end sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } @@ -141,17 +145,19 @@ module Stripe params(_payment_method_options: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions)).returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::PaymentMethodOptions)) } def payment_method_options=(_payment_method_options); end - # Unique identifier of the product. At most 12 characters long. + # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. sig { returns(T.nilable(String)) } def product_code; end sig { params(_product_code: T.nilable(String)).returns(T.nilable(String)) } def product_code=(_product_code); end - # Name of the product. At most 100 characters long. + # The product name of the line item. Required for L3 rates. At most 1024 characters long. + # + # For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. sig { returns(String) } def product_name; end sig { params(_product_name: String).returns(String) } def product_name=(_product_name); end - # Number of items of the product. Positive integer. + # The quantity of items. Required for L3 rates. An integer greater than 0. sig { returns(Integer) } def quantity; end sig { params(_quantity: Integer).returns(Integer) } @@ -163,7 +169,7 @@ module Stripe params(_tax: T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::Tax)).returns(T.nilable(PaymentIntentConfirmParams::AmountDetails::LineItem::Tax)) } def tax=(_tax); end - # Cost of the product. Non-negative integer. + # The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. sig { returns(Integer) } def unit_cost; end sig { params(_unit_cost: Integer).returns(Integer) } @@ -188,19 +194,19 @@ module Stripe ); end end class Shipping < ::Stripe::RequestParams - # Portion of the amount that is for shipping. + # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0. sig { returns(T.nilable(T.any(String, Integer))) } def amount; end sig { params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) } def amount=(_amount); end - # The postal code that represents the shipping source. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } def from_postal_code=(_from_postal_code); end - # The postal code that represents the shipping destination. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } @@ -211,7 +217,9 @@ module Stripe def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end end class Tax < ::Stripe::RequestParams - # Total portion of the amount that is for tax. + # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field. sig { returns(Integer) } def total_tax_amount; end sig { params(_total_tax_amount: Integer).returns(Integer) } @@ -219,7 +227,9 @@ module Stripe sig { params(total_tax_amount: Integer).void } def initialize(total_tax_amount: nil); end end - # The total discount applied on the transaction. + # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field. sig { returns(T.nilable(T.any(String, Integer))) } def discount_amount; end sig { @@ -317,12 +327,18 @@ module Stripe def initialize(customer_acceptance: nil); end end class PaymentDetails < ::Stripe::RequestParams - # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + # A unique value to identify the customer. This field is available only for card payments. + # + # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. sig { returns(T.nilable(String)) } def customer_reference; end sig { params(_customer_reference: T.nilable(String)).returns(T.nilable(String)) } def customer_reference=(_customer_reference); end - # A unique value assigned by the business to identify the transaction. + # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. + # + # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`. + # + # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app. sig { returns(T.nilable(String)) } def order_reference; end sig { params(_order_reference: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/payment_intent_create_params.rbi b/rbi/stripe/params/payment_intent_create_params.rbi index c707ec2d..714f2a85 100644 --- a/rbi/stripe/params/payment_intent_create_params.rbi +++ b/rbi/stripe/params/payment_intent_create_params.rbi @@ -119,7 +119,9 @@ module Stripe def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end end class Tax < ::Stripe::RequestParams - # The total tax on an item. Non-negative integer. + # The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field. sig { returns(Integer) } def total_tax_amount; end sig { params(_total_tax_amount: Integer).returns(Integer) } @@ -127,7 +129,9 @@ module Stripe sig { params(total_tax_amount: Integer).void } def initialize(total_tax_amount: nil); end end - # The amount an item was discounted for. Positive integer. + # The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[discount_amount]` field. sig { returns(T.nilable(Integer)) } def discount_amount; end sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } @@ -141,17 +145,19 @@ module Stripe params(_payment_method_options: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions)).returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::PaymentMethodOptions)) } def payment_method_options=(_payment_method_options); end - # Unique identifier of the product. At most 12 characters long. + # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. sig { returns(T.nilable(String)) } def product_code; end sig { params(_product_code: T.nilable(String)).returns(T.nilable(String)) } def product_code=(_product_code); end - # Name of the product. At most 100 characters long. + # The product name of the line item. Required for L3 rates. At most 1024 characters long. + # + # For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. sig { returns(String) } def product_name; end sig { params(_product_name: String).returns(String) } def product_name=(_product_name); end - # Number of items of the product. Positive integer. + # The quantity of items. Required for L3 rates. An integer greater than 0. sig { returns(Integer) } def quantity; end sig { params(_quantity: Integer).returns(Integer) } @@ -163,7 +169,7 @@ module Stripe params(_tax: T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::Tax)).returns(T.nilable(PaymentIntentCreateParams::AmountDetails::LineItem::Tax)) } def tax=(_tax); end - # Cost of the product. Non-negative integer. + # The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. sig { returns(Integer) } def unit_cost; end sig { params(_unit_cost: Integer).returns(Integer) } @@ -188,19 +194,19 @@ module Stripe ); end end class Shipping < ::Stripe::RequestParams - # Portion of the amount that is for shipping. + # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0. sig { returns(T.nilable(T.any(String, Integer))) } def amount; end sig { params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) } def amount=(_amount); end - # The postal code that represents the shipping source. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } def from_postal_code=(_from_postal_code); end - # The postal code that represents the shipping destination. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } @@ -211,7 +217,9 @@ module Stripe def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end end class Tax < ::Stripe::RequestParams - # Total portion of the amount that is for tax. + # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field. sig { returns(Integer) } def total_tax_amount; end sig { params(_total_tax_amount: Integer).returns(Integer) } @@ -219,7 +227,9 @@ module Stripe sig { params(total_tax_amount: Integer).void } def initialize(total_tax_amount: nil); end end - # The total discount applied on the transaction. + # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field. sig { returns(T.nilable(T.any(String, Integer))) } def discount_amount; end sig { @@ -333,12 +343,18 @@ module Stripe def initialize(customer_acceptance: nil); end end class PaymentDetails < ::Stripe::RequestParams - # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + # A unique value to identify the customer. This field is available only for card payments. + # + # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. sig { returns(T.nilable(String)) } def customer_reference; end sig { params(_customer_reference: T.nilable(String)).returns(T.nilable(String)) } def customer_reference=(_customer_reference); end - # A unique value assigned by the business to identify the transaction. + # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. + # + # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`. + # + # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app. sig { returns(T.nilable(String)) } def order_reference; end sig { params(_order_reference: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/payment_intent_increment_authorization_params.rbi b/rbi/stripe/params/payment_intent_increment_authorization_params.rbi index 34d15ba9..115a4449 100644 --- a/rbi/stripe/params/payment_intent_increment_authorization_params.rbi +++ b/rbi/stripe/params/payment_intent_increment_authorization_params.rbi @@ -119,7 +119,9 @@ module Stripe def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end end class Tax < ::Stripe::RequestParams - # The total tax on an item. Non-negative integer. + # The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field. sig { returns(Integer) } def total_tax_amount; end sig { params(_total_tax_amount: Integer).returns(Integer) } @@ -127,7 +129,9 @@ module Stripe sig { params(total_tax_amount: Integer).void } def initialize(total_tax_amount: nil); end end - # The amount an item was discounted for. Positive integer. + # The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[discount_amount]` field. sig { returns(T.nilable(Integer)) } def discount_amount; end sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } @@ -141,17 +145,19 @@ module Stripe params(_payment_method_options: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions)).returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::PaymentMethodOptions)) } def payment_method_options=(_payment_method_options); end - # Unique identifier of the product. At most 12 characters long. + # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. sig { returns(T.nilable(String)) } def product_code; end sig { params(_product_code: T.nilable(String)).returns(T.nilable(String)) } def product_code=(_product_code); end - # Name of the product. At most 100 characters long. + # The product name of the line item. Required for L3 rates. At most 1024 characters long. + # + # For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. sig { returns(String) } def product_name; end sig { params(_product_name: String).returns(String) } def product_name=(_product_name); end - # Number of items of the product. Positive integer. + # The quantity of items. Required for L3 rates. An integer greater than 0. sig { returns(Integer) } def quantity; end sig { params(_quantity: Integer).returns(Integer) } @@ -165,7 +171,7 @@ module Stripe params(_tax: T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::Tax)).returns(T.nilable(PaymentIntentIncrementAuthorizationParams::AmountDetails::LineItem::Tax)) } def tax=(_tax); end - # Cost of the product. Non-negative integer. + # The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. sig { returns(Integer) } def unit_cost; end sig { params(_unit_cost: Integer).returns(Integer) } @@ -190,19 +196,19 @@ module Stripe ); end end class Shipping < ::Stripe::RequestParams - # Portion of the amount that is for shipping. + # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0. sig { returns(T.nilable(T.any(String, Integer))) } def amount; end sig { params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) } def amount=(_amount); end - # The postal code that represents the shipping source. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } def from_postal_code=(_from_postal_code); end - # The postal code that represents the shipping destination. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } @@ -213,7 +219,9 @@ module Stripe def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end end class Tax < ::Stripe::RequestParams - # Total portion of the amount that is for tax. + # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field. sig { returns(Integer) } def total_tax_amount; end sig { params(_total_tax_amount: Integer).returns(Integer) } @@ -221,7 +229,9 @@ module Stripe sig { params(total_tax_amount: Integer).void } def initialize(total_tax_amount: nil); end end - # The total discount applied on the transaction. + # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field. sig { returns(T.nilable(T.any(String, Integer))) } def discount_amount; end sig { @@ -261,12 +271,18 @@ module Stripe def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil); end end class PaymentDetails < ::Stripe::RequestParams - # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + # A unique value to identify the customer. This field is available only for card payments. + # + # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. sig { returns(T.nilable(String)) } def customer_reference; end sig { params(_customer_reference: T.nilable(String)).returns(T.nilable(String)) } def customer_reference=(_customer_reference); end - # A unique value assigned by the business to identify the transaction. + # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. + # + # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`. + # + # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app. sig { returns(T.nilable(String)) } def order_reference; end sig { params(_order_reference: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/params/payment_intent_update_params.rbi b/rbi/stripe/params/payment_intent_update_params.rbi index 488c2b5f..7ccceb21 100644 --- a/rbi/stripe/params/payment_intent_update_params.rbi +++ b/rbi/stripe/params/payment_intent_update_params.rbi @@ -119,7 +119,9 @@ module Stripe def initialize(card: nil, card_present: nil, klarna: nil, paypal: nil); end end class Tax < ::Stripe::RequestParams - # The total tax on an item. Non-negative integer. + # The total amount of tax on a single line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[tax][total_tax_amount]` field. sig { returns(Integer) } def total_tax_amount; end sig { params(_total_tax_amount: Integer).returns(Integer) } @@ -127,7 +129,9 @@ module Stripe sig { params(total_tax_amount: Integer).void } def initialize(total_tax_amount: nil); end end - # The amount an item was discounted for. Positive integer. + # The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[discount_amount]` field. sig { returns(T.nilable(Integer)) } def discount_amount; end sig { params(_discount_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } @@ -141,17 +145,19 @@ module Stripe params(_payment_method_options: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions)).returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::PaymentMethodOptions)) } def payment_method_options=(_payment_method_options); end - # Unique identifier of the product. At most 12 characters long. + # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. sig { returns(T.nilable(String)) } def product_code; end sig { params(_product_code: T.nilable(String)).returns(T.nilable(String)) } def product_code=(_product_code); end - # Name of the product. At most 100 characters long. + # The product name of the line item. Required for L3 rates. At most 1024 characters long. + # + # For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. sig { returns(String) } def product_name; end sig { params(_product_name: String).returns(String) } def product_name=(_product_name); end - # Number of items of the product. Positive integer. + # The quantity of items. Required for L3 rates. An integer greater than 0. sig { returns(Integer) } def quantity; end sig { params(_quantity: Integer).returns(Integer) } @@ -163,7 +169,7 @@ module Stripe params(_tax: T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::Tax)).returns(T.nilable(PaymentIntentUpdateParams::AmountDetails::LineItem::Tax)) } def tax=(_tax); end - # Cost of the product. Non-negative integer. + # The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. sig { returns(Integer) } def unit_cost; end sig { params(_unit_cost: Integer).returns(Integer) } @@ -188,19 +194,19 @@ module Stripe ); end end class Shipping < ::Stripe::RequestParams - # Portion of the amount that is for shipping. + # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0. sig { returns(T.nilable(T.any(String, Integer))) } def amount; end sig { params(_amount: T.nilable(T.any(String, Integer))).returns(T.nilable(T.any(String, Integer))) } def amount=(_amount); end - # The postal code that represents the shipping source. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end sig { params(_from_postal_code: T.nilable(String)).returns(T.nilable(String)) } def from_postal_code=(_from_postal_code); end - # The postal code that represents the shipping destination. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end sig { params(_to_postal_code: T.nilable(String)).returns(T.nilable(String)) } @@ -211,7 +217,9 @@ module Stripe def initialize(amount: nil, from_postal_code: nil, to_postal_code: nil); end end class Tax < ::Stripe::RequestParams - # Total portion of the amount that is for tax. + # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field. sig { returns(Integer) } def total_tax_amount; end sig { params(_total_tax_amount: Integer).returns(Integer) } @@ -219,7 +227,9 @@ module Stripe sig { params(total_tax_amount: Integer).void } def initialize(total_tax_amount: nil); end end - # The total discount applied on the transaction. + # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field. sig { returns(T.nilable(T.any(String, Integer))) } def discount_amount; end sig { @@ -255,12 +265,18 @@ module Stripe def initialize(discount_amount: nil, line_items: nil, shipping: nil, tax: nil); end end class PaymentDetails < ::Stripe::RequestParams - # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + # A unique value to identify the customer. This field is available only for card payments. + # + # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. sig { returns(T.nilable(String)) } def customer_reference; end sig { params(_customer_reference: T.nilable(String)).returns(T.nilable(String)) } def customer_reference=(_customer_reference); end - # A unique value assigned by the business to identify the transaction. + # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. + # + # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`. + # + # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app. sig { returns(T.nilable(String)) } def order_reference; end sig { params(_order_reference: T.nilable(String)).returns(T.nilable(String)) } diff --git a/rbi/stripe/resources/payment_intent.rbi b/rbi/stripe/resources/payment_intent.rbi index 7dc1ef6e..2fba8f5f 100644 --- a/rbi/stripe/resources/payment_intent.rbi +++ b/rbi/stripe/resources/payment_intent.rbi @@ -17,13 +17,13 @@ module Stripe class PaymentIntent < APIResource class AmountDetails < ::Stripe::StripeObject class Shipping < ::Stripe::StripeObject - # Portion of the amount that is for shipping. + # If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than or equal to 0. sig { returns(T.nilable(Integer)) } def amount; end - # The postal code that represents the shipping source. + # If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def from_postal_code; end - # The postal code that represents the shipping destination. + # If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed. sig { returns(T.nilable(String)) } def to_postal_code; end def self.inner_class_types @@ -34,7 +34,9 @@ module Stripe end end class Tax < ::Stripe::StripeObject - # Total portion of the amount that is for tax. + # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field. sig { returns(T.nilable(Integer)) } def total_tax_amount; end def self.inner_class_types @@ -55,7 +57,9 @@ module Stripe @field_remappings = {} end end - # The total discount applied on the transaction. + # The total discount applied on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][discount_amount]` field. sig { returns(T.nilable(Integer)) } def discount_amount; end # A list of line items, each containing information about a product in the PaymentIntent. There is a maximum of 100 line items. @@ -1246,10 +1250,16 @@ module Stripe end end class PaymentDetails < ::Stripe::StripeObject - # Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field. + # A unique value to identify the customer. This field is available only for card payments. + # + # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. sig { returns(T.nilable(String)) } def customer_reference; end - # A unique value assigned by the business to identify the transaction. + # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates. + # + # Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`. + # + # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app. sig { returns(T.nilable(String)) } def order_reference; end def self.inner_class_types diff --git a/rbi/stripe/resources/payment_intent_amount_details_line_item.rbi b/rbi/stripe/resources/payment_intent_amount_details_line_item.rbi index 8ff3747d..fd814c40 100644 --- a/rbi/stripe/resources/payment_intent_amount_details_line_item.rbi +++ b/rbi/stripe/resources/payment_intent_amount_details_line_item.rbi @@ -84,7 +84,9 @@ module Stripe end end class Tax < ::Stripe::StripeObject - # Total portion of the amount that is for tax. + # The total amount of tax on the transaction represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L2 rates. An integer greater than or equal to 0. + # + # This field is mutually exclusive with the `amount_details[line_items][#][tax][total_tax_amount]` field. sig { returns(Integer) } def total_tax_amount; end def self.inner_class_types @@ -94,7 +96,9 @@ module Stripe @field_remappings = {} end end - # The amount an item was discounted for. Positive integer. + # The discount applied on this line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). An integer greater than 0. + # + # This field is mutually exclusive with the `amount_details[discount_amount]` field. sig { returns(T.nilable(Integer)) } def discount_amount; end # Unique identifier for the object. @@ -106,22 +110,24 @@ module Stripe # Payment method-specific information for line items. sig { returns(T.nilable(PaymentMethodOptions)) } def payment_method_options; end - # Unique identifier of the product. At most 12 characters long. + # The product code of the line item, such as an SKU. Required for L3 rates. At most 12 characters long. sig { returns(T.nilable(String)) } def product_code; end - # Name of the product. At most 100 characters long. + # The product name of the line item. Required for L3 rates. At most 1024 characters long. + # + # For Cards, this field is truncated to 26 alphanumeric characters before being sent to the card networks. For Paypal, this field is truncated to 127 characters. sig { returns(String) } def product_name; end - # Number of items of the product. Positive integer. + # The quantity of items. Required for L3 rates. An integer greater than 0. sig { returns(Integer) } def quantity; end # Contains information about the tax on the item. sig { returns(T.nilable(Tax)) } def tax; end - # Cost of the product. Non-negative integer. + # The unit cost of the line item represented in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Required for L3 rates. An integer greater than or equal to 0. sig { returns(Integer) } def unit_cost; end - # A unit of measure for the line item, such as gallons, feet, meters, etc. + # A unit of measure for the line item, such as gallons, feet, meters, etc. Required for L3 rates. At most 12 alphanumeric characters long. sig { returns(T.nilable(String)) } def unit_of_measure; end end From dc79c02175010573014efedb329fbf1b5a0670c8 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 28 Oct 2025 13:00:20 +0000 Subject: [PATCH 4/5] Update generated code for v2103 and --- API_VERSION | 2 +- .../params/v2/core/account_create_params.rb | 152 +++- .../params/v2/core/account_update_params.rb | 153 +++- lib/stripe/resources/v2/core/account.rb | 210 ++++- .../v2/money_management/received_credit.rb | 2 + .../v2/money_management/received_debit.rb | 2 + rbi/stripe.rbi | 752 +++++++++++++++++- .../params/v2/core/account_create_params.rbi | 258 +++++- .../params/v2/core/account_update_params.rbi | 261 +++++- rbi/stripe/resources/v2/core/account.rbi | 227 +++++- .../v2/money_management/received_credit.rbi | 3 + .../v2/money_management/received_debit.rbi | 3 + 12 files changed, 1948 insertions(+), 77 deletions(-) diff --git a/API_VERSION b/API_VERSION index 6e7be19c..2ecdba01 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -8b9ebc471599fa8287b507df4a0e686cae2455cd \ No newline at end of file +d6534f3d076849c4f6df1414d4c477334e431ffd \ No newline at end of file diff --git a/lib/stripe/params/v2/core/account_create_params.rb b/lib/stripe/params/v2/core/account_create_params.rb index 0b7b74d4..4ab2eda5 100644 --- a/lib/stripe/params/v2/core/account_create_params.rb +++ b/lib/stripe/params/v2/core/account_create_params.rb @@ -1112,11 +1112,23 @@ module Stripe @requested = requested end end + + class CryptoWallets < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + attr_accessor :requested + + def initialize(requested: nil) + @requested = requested + end + end # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount. attr_accessor :bank_accounts + # Can provision a crypto wallet like financial address to credit a FinancialAccount. + attr_accessor :crypto_wallets - def initialize(bank_accounts: nil) + def initialize(bank_accounts: nil, crypto_wallets: nil) @bank_accounts = bank_accounts + @crypto_wallets = crypto_wallets end end @@ -1138,14 +1150,26 @@ module Stripe @requested = requested end end + + class Usdc < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + attr_accessor :requested + + def initialize(requested: nil) + @requested = requested + end + end # Can hold storage-type funds on Stripe in GBP. attr_accessor :gbp # Can hold storage-type funds on Stripe in USD. attr_accessor :usd + # Can hold storage-type funds on Stripe in USDC. + attr_accessor :usdc - def initialize(gbp: nil, usd: nil) + def initialize(gbp: nil, usd: nil, usdc: nil) @gbp = gbp @usd = usd + @usdc = usdc end end @@ -1185,6 +1209,15 @@ module Stripe end end + class CryptoWallets < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + attr_accessor :requested + + def initialize(requested: nil) + @requested = requested + end + end + class FinancialAccounts < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. attr_accessor :requested @@ -1197,12 +1230,20 @@ module Stripe attr_accessor :bank_accounts # Can send funds from a FinancialAccount to a debit card owned by someone else. attr_accessor :cards + # Can send funds from a FinancialAccount to a crypto wallet owned by someone else. + attr_accessor :crypto_wallets # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else. attr_accessor :financial_accounts - def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil) + def initialize( + bank_accounts: nil, + cards: nil, + crypto_wallets: nil, + financial_accounts: nil + ) @bank_accounts = bank_accounts @cards = cards + @crypto_wallets = crypto_wallets @financial_accounts = financial_accounts end end @@ -1217,6 +1258,15 @@ module Stripe end end + class CryptoWallets < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + attr_accessor :requested + + def initialize(requested: nil) + @requested = requested + end + end + class FinancialAccounts < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. attr_accessor :requested @@ -1227,11 +1277,14 @@ module Stripe end # Can send funds from a FinancialAccount to a bank account owned by yourself. attr_accessor :bank_accounts + # Can send funds from a FinancialAccount to a crypto wallet owned by yourself. + attr_accessor :crypto_wallets # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. attr_accessor :financial_accounts - def initialize(bank_accounts: nil, financial_accounts: nil) + def initialize(bank_accounts: nil, crypto_wallets: nil, financial_accounts: nil) @bank_accounts = bank_accounts + @crypto_wallets = crypto_wallets @financial_accounts = financial_accounts end end @@ -1260,11 +1313,76 @@ module Stripe @outbound_transfers = outbound_transfers end end + + class RegulatedActivity < ::Stripe::RequestParams + # A detailed description of the regulated activities the business is licensed to conduct. + attr_accessor :description + # The license number or registration number assigned by the business's primary regulator. + attr_accessor :license_number + # The country of the primary regulatory authority that oversees the business's regulated activities. + attr_accessor :primary_regulatory_authority_country + # The name of the primary regulatory authority that oversees the business's regulated activities. + attr_accessor :primary_regulatory_authority_name + + def initialize( + description: nil, + license_number: nil, + primary_regulatory_authority_country: nil, + primary_regulatory_authority_name: nil + ) + @description = description + @license_number = license_number + @primary_regulatory_authority_country = primary_regulatory_authority_country + @primary_regulatory_authority_name = primary_regulatory_authority_name + end + end # Capabilities to request on the Storer Configuration. attr_accessor :capabilities + # List of high-risk activities the business is involved in. + attr_accessor :high_risk_activities + # An explanation of the high risk activities that the business performs. + attr_accessor :high_risk_activities_description + # Description of the money services offered by the business. + attr_accessor :money_services_description + # Does the business operate in any prohibited countries. + attr_accessor :operates_in_prohibited_countries + # Does the business participate in any regulated activity. + attr_accessor :participates_in_regulated_activity + # Primary purpose of the stored funds. + attr_accessor :purpose_of_funds + # Description of the purpose of the stored funds. + attr_accessor :purpose_of_funds_description + # Details of the regulated activity if the business participates in one. + attr_accessor :regulated_activity + # The source of funds for the business, e.g. profits, income, venture capital, etc. + attr_accessor :source_of_funds + # Description of the source of funds for the business' account. + attr_accessor :source_of_funds_description - def initialize(capabilities: nil) + def initialize( + capabilities: nil, + high_risk_activities: nil, + high_risk_activities_description: nil, + money_services_description: nil, + operates_in_prohibited_countries: nil, + participates_in_regulated_activity: nil, + purpose_of_funds: nil, + purpose_of_funds_description: nil, + regulated_activity: nil, + source_of_funds: nil, + source_of_funds_description: nil + ) @capabilities = capabilities + @high_risk_activities = high_risk_activities + @high_risk_activities_description = high_risk_activities_description + @money_services_description = money_services_description + @operates_in_prohibited_countries = operates_in_prohibited_countries + @participates_in_regulated_activity = participates_in_regulated_activity + @purpose_of_funds = purpose_of_funds + @purpose_of_funds_description = purpose_of_funds_description + @regulated_activity = regulated_activity + @source_of_funds = source_of_funds + @source_of_funds_description = source_of_funds_description end end # The CardCreator Configuration allows the Account to create and issue cards to users. @@ -1718,6 +1836,21 @@ module Stripe end end + class CryptoStorer < ::Stripe::RequestParams + # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + attr_accessor :date + # The IP address from which the Account's representative accepted the terms of service. + attr_accessor :ip + # The user agent of the browser from which the Account's representative accepted the terms of service. + attr_accessor :user_agent + + def initialize(date: nil, ip: nil, user_agent: nil) + @date = date + @ip = ip + @user_agent = user_agent + end + end + class Storer < ::Stripe::RequestParams # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. attr_accessor :date @@ -1736,12 +1869,15 @@ module Stripe attr_accessor :account # Details on the Account's acceptance of Issuing-specific terms of service. attr_accessor :card_creator + # Details on the Account's acceptance of Crypto-storer-specific terms of service. + attr_accessor :crypto_storer # Details on the Account's acceptance of Treasury-specific terms of service. attr_accessor :storer - def initialize(account: nil, card_creator: nil, storer: nil) + def initialize(account: nil, card_creator: nil, crypto_storer: nil, storer: nil) @account = account @card_creator = card_creator + @crypto_storer = crypto_storer @storer = storer end end @@ -2133,6 +2269,8 @@ module Stripe attr_accessor :address # The business gross annual revenue for its preceding fiscal year. attr_accessor :annual_revenue + # A detailed description of the business's compliance and anti-money laundering controls and practices. + attr_accessor :compliance_screening_description # A document verifying the business. attr_accessor :documents # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business. @@ -2155,6 +2293,7 @@ module Stripe def initialize( address: nil, annual_revenue: nil, + compliance_screening_description: nil, documents: nil, estimated_worker_count: nil, id_numbers: nil, @@ -2167,6 +2306,7 @@ module Stripe ) @address = address @annual_revenue = annual_revenue + @compliance_screening_description = compliance_screening_description @documents = documents @estimated_worker_count = estimated_worker_count @id_numbers = id_numbers diff --git a/lib/stripe/params/v2/core/account_update_params.rb b/lib/stripe/params/v2/core/account_update_params.rb index d7f224f5..3e5eb112 100644 --- a/lib/stripe/params/v2/core/account_update_params.rb +++ b/lib/stripe/params/v2/core/account_update_params.rb @@ -1140,11 +1140,23 @@ module Stripe @requested = requested end end + + class CryptoWallets < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + attr_accessor :requested + + def initialize(requested: nil) + @requested = requested + end + end # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount. attr_accessor :bank_accounts + # Can provision a crypto wallet like financial address to credit a FinancialAccount. + attr_accessor :crypto_wallets - def initialize(bank_accounts: nil) + def initialize(bank_accounts: nil, crypto_wallets: nil) @bank_accounts = bank_accounts + @crypto_wallets = crypto_wallets end end @@ -1166,14 +1178,26 @@ module Stripe @requested = requested end end + + class Usdc < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + attr_accessor :requested + + def initialize(requested: nil) + @requested = requested + end + end # Can hold storage-type funds on Stripe in GBP. attr_accessor :gbp # Can hold storage-type funds on Stripe in USD. attr_accessor :usd + # Can hold storage-type funds on Stripe in USDC. + attr_accessor :usdc - def initialize(gbp: nil, usd: nil) + def initialize(gbp: nil, usd: nil, usdc: nil) @gbp = gbp @usd = usd + @usdc = usdc end end @@ -1213,6 +1237,15 @@ module Stripe end end + class CryptoWallets < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + attr_accessor :requested + + def initialize(requested: nil) + @requested = requested + end + end + class FinancialAccounts < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. attr_accessor :requested @@ -1225,12 +1258,20 @@ module Stripe attr_accessor :bank_accounts # Can send funds from a FinancialAccount to a debit card owned by someone else. attr_accessor :cards + # Can send funds from a FinancialAccount to a crypto wallet owned by someone else. + attr_accessor :crypto_wallets # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else. attr_accessor :financial_accounts - def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil) + def initialize( + bank_accounts: nil, + cards: nil, + crypto_wallets: nil, + financial_accounts: nil + ) @bank_accounts = bank_accounts @cards = cards + @crypto_wallets = crypto_wallets @financial_accounts = financial_accounts end end @@ -1245,6 +1286,15 @@ module Stripe end end + class CryptoWallets < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + attr_accessor :requested + + def initialize(requested: nil) + @requested = requested + end + end + class FinancialAccounts < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. attr_accessor :requested @@ -1255,11 +1305,14 @@ module Stripe end # Can send funds from a FinancialAccount to a bank account owned by yourself. attr_accessor :bank_accounts + # Can send funds from a FinancialAccount to a crypto wallet owned by yourself. + attr_accessor :crypto_wallets # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. attr_accessor :financial_accounts - def initialize(bank_accounts: nil, financial_accounts: nil) + def initialize(bank_accounts: nil, crypto_wallets: nil, financial_accounts: nil) @bank_accounts = bank_accounts + @crypto_wallets = crypto_wallets @financial_accounts = financial_accounts end end @@ -1288,14 +1341,80 @@ module Stripe @outbound_transfers = outbound_transfers end end + + class RegulatedActivity < ::Stripe::RequestParams + # A detailed description of the regulated activities the business is licensed to conduct. + attr_accessor :description + # The license number or registration number assigned by the business's primary regulator. + attr_accessor :license_number + # The country of the primary regulatory authority that oversees the business's regulated activities. + attr_accessor :primary_regulatory_authority_country + # The name of the primary regulatory authority that oversees the business's regulated activities. + attr_accessor :primary_regulatory_authority_name + + def initialize( + description: nil, + license_number: nil, + primary_regulatory_authority_country: nil, + primary_regulatory_authority_name: nil + ) + @description = description + @license_number = license_number + @primary_regulatory_authority_country = primary_regulatory_authority_country + @primary_regulatory_authority_name = primary_regulatory_authority_name + end + end # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration. attr_accessor :applied # Capabilities to request on the Storer Configuration. attr_accessor :capabilities + # List of high-risk activities the business is involved in. + attr_accessor :high_risk_activities + # An explanation of the high risk activities that the business performs. + attr_accessor :high_risk_activities_description + # Description of the money services offered by the business. + attr_accessor :money_services_description + # Does the business operate in any prohibited countries. + attr_accessor :operates_in_prohibited_countries + # Does the business participate in any regulated activity. + attr_accessor :participates_in_regulated_activity + # Primary purpose of the stored funds. + attr_accessor :purpose_of_funds + # Description of the purpose of the stored funds. + attr_accessor :purpose_of_funds_description + # Details of the regulated activity if the business participates in one. + attr_accessor :regulated_activity + # The source of funds for the business, e.g. profits, income, venture capital, etc. + attr_accessor :source_of_funds + # Description of the source of funds for the business' account. + attr_accessor :source_of_funds_description - def initialize(applied: nil, capabilities: nil) + def initialize( + applied: nil, + capabilities: nil, + high_risk_activities: nil, + high_risk_activities_description: nil, + money_services_description: nil, + operates_in_prohibited_countries: nil, + participates_in_regulated_activity: nil, + purpose_of_funds: nil, + purpose_of_funds_description: nil, + regulated_activity: nil, + source_of_funds: nil, + source_of_funds_description: nil + ) @applied = applied @capabilities = capabilities + @high_risk_activities = high_risk_activities + @high_risk_activities_description = high_risk_activities_description + @money_services_description = money_services_description + @operates_in_prohibited_countries = operates_in_prohibited_countries + @participates_in_regulated_activity = participates_in_regulated_activity + @purpose_of_funds = purpose_of_funds + @purpose_of_funds_description = purpose_of_funds_description + @regulated_activity = regulated_activity + @source_of_funds = source_of_funds + @source_of_funds_description = source_of_funds_description end end # The CardCreator Configuration allows the Account to create and issue cards to users. @@ -1749,6 +1868,21 @@ module Stripe end end + class CryptoStorer < ::Stripe::RequestParams + # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + attr_accessor :date + # The IP address from which the Account's representative accepted the terms of service. + attr_accessor :ip + # The user agent of the browser from which the Account's representative accepted the terms of service. + attr_accessor :user_agent + + def initialize(date: nil, ip: nil, user_agent: nil) + @date = date + @ip = ip + @user_agent = user_agent + end + end + class Storer < ::Stripe::RequestParams # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. attr_accessor :date @@ -1767,12 +1901,15 @@ module Stripe attr_accessor :account # Details on the Account's acceptance of Issuing-specific terms of service. attr_accessor :card_creator + # Details on the Account's acceptance of Crypto-storer-specific terms of service. + attr_accessor :crypto_storer # Details on the Account's acceptance of Treasury-specific terms of service. attr_accessor :storer - def initialize(account: nil, card_creator: nil, storer: nil) + def initialize(account: nil, card_creator: nil, crypto_storer: nil, storer: nil) @account = account @card_creator = card_creator + @crypto_storer = crypto_storer @storer = storer end end @@ -2164,6 +2301,8 @@ module Stripe attr_accessor :address # The business gross annual revenue for its preceding fiscal year. attr_accessor :annual_revenue + # A detailed description of the business's compliance and anti-money laundering controls and practices. + attr_accessor :compliance_screening_description # A document verifying the business. attr_accessor :documents # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business. @@ -2186,6 +2325,7 @@ module Stripe def initialize( address: nil, annual_revenue: nil, + compliance_screening_description: nil, documents: nil, estimated_worker_count: nil, id_numbers: nil, @@ -2198,6 +2338,7 @@ module Stripe ) @address = address @annual_revenue = annual_revenue + @compliance_screening_description = compliance_screening_description @documents = documents @estimated_worker_count = estimated_worker_count @id_numbers = id_numbers diff --git a/lib/stripe/resources/v2/core/account.rb b/lib/stripe/resources/v2/core/account.rb index 28b81df7..48d87cdf 100644 --- a/lib/stripe/resources/v2/core/account.rb +++ b/lib/stripe/resources/v2/core/account.rb @@ -2517,11 +2517,44 @@ module Stripe @field_remappings = {} end end + + class CryptoWallets < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject + # Machine-readable code explaining the reason for the Capability to be in its current status. + attr_reader :code + # Machine-readable code explaining how to make the Capability active. + attr_reader :resolution + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + attr_reader :requested + # The status of the Capability. + attr_reader :status + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + attr_reader :status_details + + def self.inner_class_types + @inner_class_types = { status_details: StatusDetail } + end + + def self.field_remappings + @field_remappings = {} + end + end # Can provision a bank-account like financial address (VBAN) to credit/debit a FinancialAccount. attr_reader :bank_accounts + # Can provision a crypto wallet like financial address to credit a FinancialAccount. + attr_reader :crypto_wallets def self.inner_class_types - @inner_class_types = { bank_accounts: BankAccounts } + @inner_class_types = { bank_accounts: BankAccounts, crypto_wallets: CryptoWallets } end def self.field_remappings @@ -2591,13 +2624,46 @@ module Stripe @field_remappings = {} end end + + class Usdc < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject + # Machine-readable code explaining the reason for the Capability to be in its current status. + attr_reader :code + # Machine-readable code explaining how to make the Capability active. + attr_reader :resolution + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + attr_reader :requested + # The status of the Capability. + attr_reader :status + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + attr_reader :status_details + + def self.inner_class_types + @inner_class_types = { status_details: StatusDetail } + end + + def self.field_remappings + @field_remappings = {} + end + end # Can hold storage-type funds on Stripe in GBP. attr_reader :gbp # Can hold storage-type funds on Stripe in USD. attr_reader :usd + # Can hold storage-type funds on Stripe in USDC. + attr_reader :usdc def self.inner_class_types - @inner_class_types = { gbp: Gbp, usd: Usd } + @inner_class_types = { gbp: Gbp, usd: Usd, usdc: Usdc } end def self.field_remappings @@ -2711,6 +2777,37 @@ module Stripe end end + class CryptoWallets < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject + # Machine-readable code explaining the reason for the Capability to be in its current status. + attr_reader :code + # Machine-readable code explaining how to make the Capability active. + attr_reader :resolution + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + attr_reader :requested + # The status of the Capability. + attr_reader :status + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + attr_reader :status_details + + def self.inner_class_types + @inner_class_types = { status_details: StatusDetail } + end + + def self.field_remappings + @field_remappings = {} + end + end + class FinancialAccounts < ::Stripe::StripeObject class StatusDetail < ::Stripe::StripeObject # Machine-readable code explaining the reason for the Capability to be in its current status. @@ -2745,6 +2842,8 @@ module Stripe attr_reader :bank_accounts # Can send funds from a FinancialAccount to a debit card, owned by someone else. attr_reader :cards + # Can send funds from a FinancialAccount to a crypto wallet, owned by someone else. + attr_reader :crypto_wallets # Can send funds from a FinancialAccount to another FinancialAccount, owned by someone else. attr_reader :financial_accounts @@ -2752,6 +2851,7 @@ module Stripe @inner_class_types = { bank_accounts: BankAccounts, cards: Cards, + crypto_wallets: CryptoWallets, financial_accounts: FinancialAccounts, } end @@ -2793,6 +2893,37 @@ module Stripe end end + class CryptoWallets < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject + # Machine-readable code explaining the reason for the Capability to be in its current status. + attr_reader :code + # Machine-readable code explaining how to make the Capability active. + attr_reader :resolution + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + attr_reader :requested + # The status of the Capability. + attr_reader :status + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + attr_reader :status_details + + def self.inner_class_types + @inner_class_types = { status_details: StatusDetail } + end + + def self.field_remappings + @field_remappings = {} + end + end + class FinancialAccounts < ::Stripe::StripeObject class StatusDetail < ::Stripe::StripeObject # Machine-readable code explaining the reason for the Capability to be in its current status. @@ -2825,12 +2956,15 @@ module Stripe end # Can send funds from a FinancialAccount, to a bank account, owned by yourself. attr_reader :bank_accounts + # Can send funds from a FinancialAccount to a crypto wallet, owned by yourself. + attr_reader :crypto_wallets # Can send funds from a FinancialAccount to another FinancialAccount, owned by yourself. attr_reader :financial_accounts def self.inner_class_types @inner_class_types = { bank_accounts: BankAccounts, + crypto_wallets: CryptoWallets, financial_accounts: FinancialAccounts, } end @@ -2864,13 +2998,55 @@ module Stripe @field_remappings = {} end end + + class RegulatedActivity < ::Stripe::StripeObject + # A detailed description of the regulated activities the business is licensed to conduct. + attr_reader :description + # The license number or registration number assigned by the business's primary regulator. + attr_reader :license_number + # The country of the primary regulatory authority that oversees the business's regulated activities. + attr_reader :primary_regulatory_authority_country + # The name of the primary regulatory authority that oversees the business's regulated activities. + attr_reader :primary_regulatory_authority_name + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration. attr_reader :applied # Capabilities that have been requested on the Storer Configuration. attr_reader :capabilities + # List of high-risk activities the business is involved in. + attr_reader :high_risk_activities + # An explanation of the high risk activities that the business performs. + attr_reader :high_risk_activities_description + # Description of the money services offered by the business. + attr_reader :money_services_description + # Does the business operate in any prohibited countries. + attr_reader :operates_in_prohibited_countries + # Does the business participate in any regulated activity. + attr_reader :participates_in_regulated_activity + # Primary purpose of the stored funds. + attr_reader :purpose_of_funds + # Description of the purpose of the stored funds. + attr_reader :purpose_of_funds_description + # Details of the regulated activity if the business participates in one. + attr_reader :regulated_activity + # The source of funds for the business, e.g. profits, income, venture capital, etc. + attr_reader :source_of_funds + # Description of the source of funds for the business' account. + attr_reader :source_of_funds_description def self.inner_class_types - @inner_class_types = { capabilities: Capabilities } + @inner_class_types = { + capabilities: Capabilities, + regulated_activity: RegulatedActivity, + } end def self.field_remappings @@ -3433,6 +3609,23 @@ module Stripe end end + class CryptoStorer < ::Stripe::StripeObject + # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + attr_reader :date + # The IP address from which the Account's representative accepted the terms of service. + attr_reader :ip + # The user agent of the browser from which the Account's representative accepted the terms of service. + attr_reader :user_agent + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + class Storer < ::Stripe::StripeObject # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. attr_reader :date @@ -3453,11 +3646,18 @@ module Stripe attr_reader :account # Details on the Account's acceptance of Issuing-specific terms of service. attr_reader :card_creator + # Details on the Account's acceptance of Crypto-storer-specific terms of service. + attr_reader :crypto_storer # Details on the Account's acceptance of Treasury-specific terms of service. attr_reader :storer def self.inner_class_types - @inner_class_types = { account: Account, card_creator: CardCreator, storer: Storer } + @inner_class_types = { + account: Account, + card_creator: CardCreator, + crypto_storer: CryptoStorer, + storer: Storer, + } end def self.field_remappings @@ -3871,6 +4071,8 @@ module Stripe attr_reader :address # The business gross annual revenue for its preceding fiscal year. attr_reader :annual_revenue + # A detailed description of the business's compliance and anti-money laundering controls and practices. + attr_reader :compliance_screening_description # Documents that may be submitted to satisfy various informational requests. attr_reader :documents # An estimated upper bound of employees, contractors, vendors, etc. currently working for the business. diff --git a/lib/stripe/resources/v2/money_management/received_credit.rb b/lib/stripe/resources/v2/money_management/received_credit.rb index 5366e8c0..3da4eff3 100644 --- a/lib/stripe/resources/v2/money_management/received_credit.rb +++ b/lib/stripe/resources/v2/money_management/received_credit.rb @@ -187,6 +187,8 @@ module Stripe attr_reader :created # Freeform string set by originator of the ReceivedCredit. attr_reader :description + # The amount and currency of the original/external credit request. + attr_reader :external_amount # Financial Account ID on which funds for ReceivedCredit were received. attr_reader :financial_account # Unique identifier for the ReceivedCredit. diff --git a/lib/stripe/resources/v2/money_management/received_debit.rb b/lib/stripe/resources/v2/money_management/received_debit.rb index e1a0bedf..e1c5f47c 100644 --- a/lib/stripe/resources/v2/money_management/received_debit.rb +++ b/lib/stripe/resources/v2/money_management/received_debit.rb @@ -100,6 +100,8 @@ module Stripe attr_reader :created # Freeform string sent by the originator of the ReceivedDebit. attr_reader :description + # The amount and currency of the original/external debit request. + attr_reader :external_amount # Financial Account on which funds for ReceivedDebit were debited. attr_reader :financial_account # Unique identifier for the ReceivedDebit. diff --git a/rbi/stripe.rbi b/rbi/stripe.rbi index 117cbc23..0d3c64ef 100644 --- a/rbi/stripe.rbi +++ b/rbi/stripe.rbi @@ -64004,11 +64004,45 @@ module Stripe @field_remappings = {} end end + class CryptoWallets < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject + # Machine-readable code explaining the reason for the Capability to be in its current status. + sig { returns(String) } + def code; end + # Machine-readable code explaining how to make the Capability active. + sig { returns(String) } + def resolution; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + sig { returns(T::Boolean) } + def requested; end + # The status of the Capability. + sig { returns(String) } + def status; end + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + sig { returns(T::Array[StatusDetail]) } + def status_details; end + def self.inner_class_types + @inner_class_types = {status_details: StatusDetail} + end + def self.field_remappings + @field_remappings = {} + end + end # Can provision a bank-account like financial address (VBAN) to credit/debit a FinancialAccount. sig { returns(T.nilable(BankAccounts)) } def bank_accounts; end + # Can provision a crypto wallet like financial address to credit a FinancialAccount. + sig { returns(T.nilable(CryptoWallets)) } + def crypto_wallets; end def self.inner_class_types - @inner_class_types = {bank_accounts: BankAccounts} + @inner_class_types = {bank_accounts: BankAccounts, crypto_wallets: CryptoWallets} end def self.field_remappings @field_remappings = {} @@ -64077,14 +64111,48 @@ module Stripe @field_remappings = {} end end + class Usdc < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject + # Machine-readable code explaining the reason for the Capability to be in its current status. + sig { returns(String) } + def code; end + # Machine-readable code explaining how to make the Capability active. + sig { returns(String) } + def resolution; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + sig { returns(T::Boolean) } + def requested; end + # The status of the Capability. + sig { returns(String) } + def status; end + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + sig { returns(T::Array[StatusDetail]) } + def status_details; end + def self.inner_class_types + @inner_class_types = {status_details: StatusDetail} + end + def self.field_remappings + @field_remappings = {} + end + end # Can hold storage-type funds on Stripe in GBP. sig { returns(T.nilable(Gbp)) } def gbp; end # Can hold storage-type funds on Stripe in USD. sig { returns(T.nilable(Usd)) } def usd; end + # Can hold storage-type funds on Stripe in USDC. + sig { returns(T.nilable(Usdc)) } + def usdc; end def self.inner_class_types - @inner_class_types = {gbp: Gbp, usd: Usd} + @inner_class_types = {gbp: Gbp, usd: Usd, usdc: Usdc} end def self.field_remappings @field_remappings = {} @@ -64195,6 +64263,37 @@ module Stripe @field_remappings = {} end end + class CryptoWallets < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject + # Machine-readable code explaining the reason for the Capability to be in its current status. + sig { returns(String) } + def code; end + # Machine-readable code explaining how to make the Capability active. + sig { returns(String) } + def resolution; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + sig { returns(T::Boolean) } + def requested; end + # The status of the Capability. + sig { returns(String) } + def status; end + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + sig { returns(T::Array[StatusDetail]) } + def status_details; end + def self.inner_class_types + @inner_class_types = {status_details: StatusDetail} + end + def self.field_remappings + @field_remappings = {} + end + end class FinancialAccounts < ::Stripe::StripeObject class StatusDetail < ::Stripe::StripeObject # Machine-readable code explaining the reason for the Capability to be in its current status. @@ -64232,6 +64331,9 @@ module Stripe # Can send funds from a FinancialAccount to a debit card, owned by someone else. sig { returns(T.nilable(Cards)) } def cards; end + # Can send funds from a FinancialAccount to a crypto wallet, owned by someone else. + sig { returns(T.nilable(CryptoWallets)) } + def crypto_wallets; end # Can send funds from a FinancialAccount to another FinancialAccount, owned by someone else. sig { returns(T.nilable(FinancialAccounts)) } def financial_accounts; end @@ -64239,6 +64341,7 @@ module Stripe @inner_class_types = { bank_accounts: BankAccounts, cards: Cards, + crypto_wallets: CryptoWallets, financial_accounts: FinancialAccounts, } end @@ -64278,6 +64381,37 @@ module Stripe @field_remappings = {} end end + class CryptoWallets < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject + # Machine-readable code explaining the reason for the Capability to be in its current status. + sig { returns(String) } + def code; end + # Machine-readable code explaining how to make the Capability active. + sig { returns(String) } + def resolution; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + sig { returns(T::Boolean) } + def requested; end + # The status of the Capability. + sig { returns(String) } + def status; end + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + sig { returns(T::Array[StatusDetail]) } + def status_details; end + def self.inner_class_types + @inner_class_types = {status_details: StatusDetail} + end + def self.field_remappings + @field_remappings = {} + end + end class FinancialAccounts < ::Stripe::StripeObject class StatusDetail < ::Stripe::StripeObject # Machine-readable code explaining the reason for the Capability to be in its current status. @@ -64312,12 +64446,16 @@ module Stripe # Can send funds from a FinancialAccount, to a bank account, owned by yourself. sig { returns(T.nilable(BankAccounts)) } def bank_accounts; end + # Can send funds from a FinancialAccount to a crypto wallet, owned by yourself. + sig { returns(T.nilable(CryptoWallets)) } + def crypto_wallets; end # Can send funds from a FinancialAccount to another FinancialAccount, owned by yourself. sig { returns(T.nilable(FinancialAccounts)) } def financial_accounts; end def self.inner_class_types @inner_class_types = { bank_accounts: BankAccounts, + crypto_wallets: CryptoWallets, financial_accounts: FinancialAccounts, } end @@ -64353,14 +64491,67 @@ module Stripe @field_remappings = {} end end + class RegulatedActivity < ::Stripe::StripeObject + # A detailed description of the regulated activities the business is licensed to conduct. + sig { returns(T.nilable(String)) } + def description; end + # The license number or registration number assigned by the business's primary regulator. + sig { returns(T.nilable(String)) } + def license_number; end + # The country of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_country; end + # The name of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration. sig { returns(T::Boolean) } def applied; end # Capabilities that have been requested on the Storer Configuration. sig { returns(T.nilable(Capabilities)) } def capabilities; end + # List of high-risk activities the business is involved in. + sig { returns(T.nilable(T::Array[String])) } + def high_risk_activities; end + # An explanation of the high risk activities that the business performs. + sig { returns(T.nilable(String)) } + def high_risk_activities_description; end + # Description of the money services offered by the business. + sig { returns(T.nilable(String)) } + def money_services_description; end + # Does the business operate in any prohibited countries. + sig { returns(T.nilable(T::Boolean)) } + def operates_in_prohibited_countries; end + # Does the business participate in any regulated activity. + sig { returns(T.nilable(T::Boolean)) } + def participates_in_regulated_activity; end + # Primary purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds; end + # Description of the purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds_description; end + # Details of the regulated activity if the business participates in one. + sig { returns(T.nilable(RegulatedActivity)) } + def regulated_activity; end + # The source of funds for the business, e.g. profits, income, venture capital, etc. + sig { returns(T.nilable(String)) } + def source_of_funds; end + # Description of the source of funds for the business' account. + sig { returns(T.nilable(String)) } + def source_of_funds_description; end def self.inner_class_types - @inner_class_types = {capabilities: Capabilities} + @inner_class_types = { + capabilities: Capabilities, + regulated_activity: RegulatedActivity, + } end def self.field_remappings @field_remappings = {} @@ -64943,6 +65134,23 @@ module Stripe @field_remappings = {} end end + class CryptoStorer < ::Stripe::StripeObject + # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + sig { returns(T.nilable(String)) } + def date; end + # The IP address from which the Account's representative accepted the terms of service. + sig { returns(T.nilable(String)) } + def ip; end + # The user agent of the browser from which the Account's representative accepted the terms of service. + sig { returns(T.nilable(String)) } + def user_agent; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Storer < ::Stripe::StripeObject # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. sig { returns(T.nilable(String)) } @@ -64966,11 +65174,19 @@ module Stripe # Details on the Account's acceptance of Issuing-specific terms of service. sig { returns(T.nilable(CardCreator)) } def card_creator; end + # Details on the Account's acceptance of Crypto-storer-specific terms of service. + sig { returns(T.nilable(CryptoStorer)) } + def crypto_storer; end # Details on the Account's acceptance of Treasury-specific terms of service. sig { returns(T.nilable(Storer)) } def storer; end def self.inner_class_types - @inner_class_types = {account: Account, card_creator: CardCreator, storer: Storer} + @inner_class_types = { + account: Account, + card_creator: CardCreator, + crypto_storer: CryptoStorer, + storer: Storer, + } end def self.field_remappings @field_remappings = {} @@ -65390,6 +65606,9 @@ module Stripe # The business gross annual revenue for its preceding fiscal year. sig { returns(T.nilable(AnnualRevenue)) } def annual_revenue; end + # A detailed description of the business's compliance and anti-money laundering controls and practices. + sig { returns(T.nilable(String)) } + def compliance_screening_description; end # Documents that may be submitted to satisfy various informational requests. sig { returns(T.nilable(Documents)) } def documents; end @@ -68600,6 +68819,9 @@ module Stripe # Freeform string set by originator of the ReceivedCredit. sig { returns(T.nilable(String)) } def description; end + # The amount and currency of the original/external credit request. + sig { returns(T.nilable(::Stripe::V2::Amount)) } + def external_amount; end # Financial Account ID on which funds for ReceivedCredit were received. sig { returns(String) } def financial_account; end @@ -68736,6 +68958,9 @@ module Stripe # Freeform string sent by the originator of the ReceivedDebit. sig { returns(T.nilable(String)) } def description; end + # The amount and currency of the original/external debit request. + sig { returns(T.nilable(::Stripe::V2::Amount)) } + def external_amount; end # Financial Account on which funds for ReceivedDebit were debited. sig { returns(String) } def financial_account; end @@ -198876,6 +199101,15 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end + class CryptoWallets < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T::Boolean) } + def requested; end + sig { params(_requested: T::Boolean).returns(T::Boolean) } + def requested=(_requested); end + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); end + end # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)) @@ -198885,10 +199119,19 @@ module Stripe params(_bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)) } def bank_accounts=(_bank_accounts); end + # Can provision a crypto wallet like financial address to credit a FinancialAccount. sig { - params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)).void + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)) } - def initialize(bank_accounts: nil); end + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end + sig { + params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts), crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)).void + } + def initialize(bank_accounts: nil, crypto_wallets: nil); end end class HoldsCurrencies < ::Stripe::RequestParams class Gbp < ::Stripe::RequestParams @@ -198909,6 +199152,15 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end + class Usdc < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T::Boolean) } + def requested; end + sig { params(_requested: T::Boolean).returns(T::Boolean) } + def requested=(_requested); end + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); end + end # Can hold storage-type funds on Stripe in GBP. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)) @@ -198927,10 +199179,19 @@ module Stripe params(_usd: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)) } def usd=(_usd); end + # Can hold storage-type funds on Stripe in USDC. sig { - params(gbp: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)).void + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)) } - def initialize(gbp: nil, usd: nil); end + def usdc; end + sig { + params(_usdc: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)) + } + def usdc=(_usdc); end + sig { + params(gbp: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd), usdc: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).void + } + def initialize(gbp: nil, usd: nil, usdc: nil); end end class InboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -198975,6 +199236,15 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end + class CryptoWallets < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T::Boolean) } + def requested; end + sig { params(_requested: T::Boolean).returns(T::Boolean) } + def requested=(_requested); end + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); end + end class FinancialAccounts < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. sig { returns(T::Boolean) } @@ -199002,6 +199272,15 @@ module Stripe params(_cards: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards)) } def cards=(_cards); end + # Can send funds from a FinancialAccount to a crypto wallet owned by someone else. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)) + } + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)) @@ -199012,9 +199291,14 @@ module Stripe } def financial_accounts=(_financial_accounts); end sig { - params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::BankAccounts), cards: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards), financial_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)).void + params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::BankAccounts), cards: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards), crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets), financial_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)).void } - def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil); end + def initialize( + bank_accounts: nil, + cards: nil, + crypto_wallets: nil, + financial_accounts: nil + ); end end class OutboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -199026,6 +199310,15 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end + class CryptoWallets < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T::Boolean) } + def requested; end + sig { params(_requested: T::Boolean).returns(T::Boolean) } + def requested=(_requested); end + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); end + end class FinancialAccounts < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. sig { returns(T::Boolean) } @@ -199044,6 +199337,15 @@ module Stripe params(_bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts)) } def bank_accounts=(_bank_accounts); end + # Can send funds from a FinancialAccount to a crypto wallet owned by yourself. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)) + } + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)) @@ -199054,9 +199356,13 @@ module Stripe } def financial_accounts=(_financial_accounts); end sig { - params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts), financial_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)).void + params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts), crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets), financial_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)).void } - def initialize(bank_accounts: nil, financial_accounts: nil); end + def initialize( + bank_accounts: nil, + crypto_wallets: nil, + financial_accounts: nil + ); end end # Can provision a financial address to credit/debit a FinancialAccount. sig { @@ -199114,6 +199420,41 @@ module Stripe outbound_transfers: nil ); end end + class RegulatedActivity < ::Stripe::RequestParams + # A detailed description of the regulated activities the business is licensed to conduct. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # The license number or registration number assigned by the business's primary regulator. + sig { returns(T.nilable(String)) } + def license_number; end + sig { params(_license_number: T.nilable(String)).returns(T.nilable(String)) } + def license_number=(_license_number); end + # The country of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_country; end + sig { + params(_primary_regulatory_authority_country: T.nilable(String)).returns(T.nilable(String)) + } + def primary_regulatory_authority_country=(_primary_regulatory_authority_country); end + # The name of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_name; end + sig { + params(_primary_regulatory_authority_name: T.nilable(String)).returns(T.nilable(String)) + } + def primary_regulatory_authority_name=(_primary_regulatory_authority_name); end + sig { + params(description: T.nilable(String), license_number: T.nilable(String), primary_regulatory_authority_country: T.nilable(String), primary_regulatory_authority_name: T.nilable(String)).void + } + def initialize( + description: nil, + license_number: nil, + primary_regulatory_authority_country: nil, + primary_regulatory_authority_name: nil + ); end + end # Capabilities to request on the Storer Configuration. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities)) @@ -199123,10 +199464,90 @@ module Stripe params(_capabilities: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities)) } def capabilities=(_capabilities); end + # List of high-risk activities the business is involved in. + sig { returns(T.nilable(T::Array[String])) } + def high_risk_activities; end sig { - params(capabilities: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities)).void + params(_high_risk_activities: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def initialize(capabilities: nil); end + def high_risk_activities=(_high_risk_activities); end + # An explanation of the high risk activities that the business performs. + sig { returns(T.nilable(String)) } + def high_risk_activities_description; end + sig { + params(_high_risk_activities_description: T.nilable(String)).returns(T.nilable(String)) + } + def high_risk_activities_description=(_high_risk_activities_description); end + # Description of the money services offered by the business. + sig { returns(T.nilable(String)) } + def money_services_description; end + sig { + params(_money_services_description: T.nilable(String)).returns(T.nilable(String)) + } + def money_services_description=(_money_services_description); end + # Does the business operate in any prohibited countries. + sig { returns(T.nilable(T::Boolean)) } + def operates_in_prohibited_countries; end + sig { + params(_operates_in_prohibited_countries: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def operates_in_prohibited_countries=(_operates_in_prohibited_countries); end + # Does the business participate in any regulated activity. + sig { returns(T.nilable(T::Boolean)) } + def participates_in_regulated_activity; end + sig { + params(_participates_in_regulated_activity: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def participates_in_regulated_activity=(_participates_in_regulated_activity); end + # Primary purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds; end + sig { params(_purpose_of_funds: T.nilable(String)).returns(T.nilable(String)) } + def purpose_of_funds=(_purpose_of_funds); end + # Description of the purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds_description; end + sig { + params(_purpose_of_funds_description: T.nilable(String)).returns(T.nilable(String)) + } + def purpose_of_funds_description=(_purpose_of_funds_description); end + # Details of the regulated activity if the business participates in one. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::RegulatedActivity)) + } + def regulated_activity; end + sig { + params(_regulated_activity: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::RegulatedActivity)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::RegulatedActivity)) + } + def regulated_activity=(_regulated_activity); end + # The source of funds for the business, e.g. profits, income, venture capital, etc. + sig { returns(T.nilable(String)) } + def source_of_funds; end + sig { params(_source_of_funds: T.nilable(String)).returns(T.nilable(String)) } + def source_of_funds=(_source_of_funds); end + # Description of the source of funds for the business' account. + sig { returns(T.nilable(String)) } + def source_of_funds_description; end + sig { + params(_source_of_funds_description: T.nilable(String)).returns(T.nilable(String)) + } + def source_of_funds_description=(_source_of_funds_description); end + sig { + params(capabilities: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities), high_risk_activities: T.nilable(T::Array[String]), high_risk_activities_description: T.nilable(String), money_services_description: T.nilable(String), operates_in_prohibited_countries: T.nilable(T::Boolean), participates_in_regulated_activity: T.nilable(T::Boolean), purpose_of_funds: T.nilable(String), purpose_of_funds_description: T.nilable(String), regulated_activity: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::RegulatedActivity), source_of_funds: T.nilable(String), source_of_funds_description: T.nilable(String)).void + } + def initialize( + capabilities: nil, + high_risk_activities: nil, + high_risk_activities_description: nil, + money_services_description: nil, + operates_in_prohibited_countries: nil, + participates_in_regulated_activity: nil, + purpose_of_funds: nil, + purpose_of_funds_description: nil, + regulated_activity: nil, + source_of_funds: nil, + source_of_funds_description: nil + ); end end # The CardCreator Configuration allows the Account to create and issue cards to users. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::CardCreator)) } @@ -199840,6 +200261,25 @@ module Stripe } def initialize(commercial: nil); end end + class CryptoStorer < ::Stripe::RequestParams + # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + sig { returns(String) } + def date; end + sig { params(_date: String).returns(String) } + def date=(_date); end + # The IP address from which the Account's representative accepted the terms of service. + sig { returns(String) } + def ip; end + sig { params(_ip: String).returns(String) } + def ip=(_ip); end + # The user agent of the browser from which the Account's representative accepted the terms of service. + sig { returns(T.nilable(String)) } + def user_agent; end + sig { params(_user_agent: T.nilable(String)).returns(T.nilable(String)) } + def user_agent=(_user_agent); end + sig { params(date: String, ip: String, user_agent: T.nilable(String)).void } + def initialize(date: nil, ip: nil, user_agent: nil); end + end class Storer < ::Stripe::RequestParams # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. sig { returns(String) } @@ -199877,6 +200317,15 @@ module Stripe params(_card_creator: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CardCreator)).returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CardCreator)) } def card_creator=(_card_creator); end + # Details on the Account's acceptance of Crypto-storer-specific terms of service. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + } + def crypto_storer; end + sig { + params(_crypto_storer: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CryptoStorer)).returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + } + def crypto_storer=(_crypto_storer); end # Details on the Account's acceptance of Treasury-specific terms of service. sig { returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::Storer)) @@ -199887,9 +200336,9 @@ module Stripe } def storer=(_storer); end sig { - params(account: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::Account), card_creator: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CardCreator), storer: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::Storer)).void + params(account: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::Account), card_creator: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CardCreator), crypto_storer: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CryptoStorer), storer: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::Storer)).void } - def initialize(account: nil, card_creator: nil, storer: nil); end + def initialize(account: nil, card_creator: nil, crypto_storer: nil, storer: nil); end end # This hash is used to attest that the directors information provided to Stripe is both current and correct. sig { @@ -200496,6 +200945,13 @@ module Stripe params(_annual_revenue: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue)).returns(T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue)) } def annual_revenue=(_annual_revenue); end + # A detailed description of the business's compliance and anti-money laundering controls and practices. + sig { returns(T.nilable(String)) } + def compliance_screening_description; end + sig { + params(_compliance_screening_description: T.nilable(String)).returns(T.nilable(String)) + } + def compliance_screening_description=(_compliance_screening_description); end # A document verifying the business. sig { returns(T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents)) @@ -200562,11 +201018,12 @@ module Stripe sig { params(_structure: T.nilable(String)).returns(T.nilable(String)) } def structure=(_structure); end sig { - params(address: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::Address), annual_revenue: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue), documents: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents), estimated_worker_count: T.nilable(Integer), id_numbers: T.nilable(T::Array[V2::Core::AccountCreateParams::Identity::BusinessDetails::IdNumber]), monthly_estimated_revenue: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue), phone: T.nilable(String), registered_name: T.nilable(String), script_addresses: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::ScriptAddresses), script_names: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::ScriptNames), structure: T.nilable(String)).void + params(address: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::Address), annual_revenue: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue), compliance_screening_description: T.nilable(String), documents: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents), estimated_worker_count: T.nilable(Integer), id_numbers: T.nilable(T::Array[V2::Core::AccountCreateParams::Identity::BusinessDetails::IdNumber]), monthly_estimated_revenue: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue), phone: T.nilable(String), registered_name: T.nilable(String), script_addresses: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::ScriptAddresses), script_names: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::ScriptNames), structure: T.nilable(String)).void } def initialize( address: nil, annual_revenue: nil, + compliance_screening_description: nil, documents: nil, estimated_worker_count: nil, id_numbers: nil, @@ -203117,6 +203574,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end + class CryptoWallets < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)) @@ -203126,10 +203592,19 @@ module Stripe params(_bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)) } def bank_accounts=(_bank_accounts); end + # Can provision a crypto wallet like financial address to credit a FinancialAccount. sig { - params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)).void + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)) } - def initialize(bank_accounts: nil); end + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end + sig { + params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts), crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)).void + } + def initialize(bank_accounts: nil, crypto_wallets: nil); end end class HoldsCurrencies < ::Stripe::RequestParams class Gbp < ::Stripe::RequestParams @@ -203150,6 +203625,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end + class Usdc < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end # Can hold storage-type funds on Stripe in GBP. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)) @@ -203168,10 +203652,19 @@ module Stripe params(_usd: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)) } def usd=(_usd); end + # Can hold storage-type funds on Stripe in USDC. sig { - params(gbp: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)).void + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)) } - def initialize(gbp: nil, usd: nil); end + def usdc; end + sig { + params(_usdc: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)) + } + def usdc=(_usdc); end + sig { + params(gbp: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd), usdc: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).void + } + def initialize(gbp: nil, usd: nil, usdc: nil); end end class InboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -203216,6 +203709,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end + class CryptoWallets < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end class FinancialAccounts < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. sig { returns(T.nilable(T::Boolean)) } @@ -203243,6 +203745,15 @@ module Stripe params(_cards: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards)) } def cards=(_cards); end + # Can send funds from a FinancialAccount to a crypto wallet owned by someone else. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)) + } + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)) @@ -203253,9 +203764,14 @@ module Stripe } def financial_accounts=(_financial_accounts); end sig { - params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::BankAccounts), cards: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards), financial_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)).void + params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::BankAccounts), cards: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards), crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets), financial_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)).void } - def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil); end + def initialize( + bank_accounts: nil, + cards: nil, + crypto_wallets: nil, + financial_accounts: nil + ); end end class OutboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -203267,6 +203783,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end + class CryptoWallets < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end class FinancialAccounts < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. sig { returns(T.nilable(T::Boolean)) } @@ -203285,6 +203810,15 @@ module Stripe params(_bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts)) } def bank_accounts=(_bank_accounts); end + # Can send funds from a FinancialAccount to a crypto wallet owned by yourself. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)) + } + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)) @@ -203295,9 +203829,13 @@ module Stripe } def financial_accounts=(_financial_accounts); end sig { - params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts), financial_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)).void + params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts), crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets), financial_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)).void } - def initialize(bank_accounts: nil, financial_accounts: nil); end + def initialize( + bank_accounts: nil, + crypto_wallets: nil, + financial_accounts: nil + ); end end # Can provision a financial address to credit/debit a FinancialAccount. sig { @@ -203355,6 +203893,41 @@ module Stripe outbound_transfers: nil ); end end + class RegulatedActivity < ::Stripe::RequestParams + # A detailed description of the regulated activities the business is licensed to conduct. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # The license number or registration number assigned by the business's primary regulator. + sig { returns(T.nilable(String)) } + def license_number; end + sig { params(_license_number: T.nilable(String)).returns(T.nilable(String)) } + def license_number=(_license_number); end + # The country of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_country; end + sig { + params(_primary_regulatory_authority_country: T.nilable(String)).returns(T.nilable(String)) + } + def primary_regulatory_authority_country=(_primary_regulatory_authority_country); end + # The name of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_name; end + sig { + params(_primary_regulatory_authority_name: T.nilable(String)).returns(T.nilable(String)) + } + def primary_regulatory_authority_name=(_primary_regulatory_authority_name); end + sig { + params(description: T.nilable(String), license_number: T.nilable(String), primary_regulatory_authority_country: T.nilable(String), primary_regulatory_authority_name: T.nilable(String)).void + } + def initialize( + description: nil, + license_number: nil, + primary_regulatory_authority_country: nil, + primary_regulatory_authority_name: nil + ); end + end # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration. sig { returns(T.nilable(T::Boolean)) } def applied; end @@ -203369,10 +203942,91 @@ module Stripe params(_capabilities: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities)) } def capabilities=(_capabilities); end + # List of high-risk activities the business is involved in. + sig { returns(T.nilable(T::Array[String])) } + def high_risk_activities; end sig { - params(applied: T.nilable(T::Boolean), capabilities: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities)).void + params(_high_risk_activities: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def initialize(applied: nil, capabilities: nil); end + def high_risk_activities=(_high_risk_activities); end + # An explanation of the high risk activities that the business performs. + sig { returns(T.nilable(String)) } + def high_risk_activities_description; end + sig { + params(_high_risk_activities_description: T.nilable(String)).returns(T.nilable(String)) + } + def high_risk_activities_description=(_high_risk_activities_description); end + # Description of the money services offered by the business. + sig { returns(T.nilable(String)) } + def money_services_description; end + sig { + params(_money_services_description: T.nilable(String)).returns(T.nilable(String)) + } + def money_services_description=(_money_services_description); end + # Does the business operate in any prohibited countries. + sig { returns(T.nilable(T::Boolean)) } + def operates_in_prohibited_countries; end + sig { + params(_operates_in_prohibited_countries: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def operates_in_prohibited_countries=(_operates_in_prohibited_countries); end + # Does the business participate in any regulated activity. + sig { returns(T.nilable(T::Boolean)) } + def participates_in_regulated_activity; end + sig { + params(_participates_in_regulated_activity: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def participates_in_regulated_activity=(_participates_in_regulated_activity); end + # Primary purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds; end + sig { params(_purpose_of_funds: T.nilable(String)).returns(T.nilable(String)) } + def purpose_of_funds=(_purpose_of_funds); end + # Description of the purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds_description; end + sig { + params(_purpose_of_funds_description: T.nilable(String)).returns(T.nilable(String)) + } + def purpose_of_funds_description=(_purpose_of_funds_description); end + # Details of the regulated activity if the business participates in one. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::RegulatedActivity)) + } + def regulated_activity; end + sig { + params(_regulated_activity: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::RegulatedActivity)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::RegulatedActivity)) + } + def regulated_activity=(_regulated_activity); end + # The source of funds for the business, e.g. profits, income, venture capital, etc. + sig { returns(T.nilable(String)) } + def source_of_funds; end + sig { params(_source_of_funds: T.nilable(String)).returns(T.nilable(String)) } + def source_of_funds=(_source_of_funds); end + # Description of the source of funds for the business' account. + sig { returns(T.nilable(String)) } + def source_of_funds_description; end + sig { + params(_source_of_funds_description: T.nilable(String)).returns(T.nilable(String)) + } + def source_of_funds_description=(_source_of_funds_description); end + sig { + params(applied: T.nilable(T::Boolean), capabilities: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities), high_risk_activities: T.nilable(T::Array[String]), high_risk_activities_description: T.nilable(String), money_services_description: T.nilable(String), operates_in_prohibited_countries: T.nilable(T::Boolean), participates_in_regulated_activity: T.nilable(T::Boolean), purpose_of_funds: T.nilable(String), purpose_of_funds_description: T.nilable(String), regulated_activity: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::RegulatedActivity), source_of_funds: T.nilable(String), source_of_funds_description: T.nilable(String)).void + } + def initialize( + applied: nil, + capabilities: nil, + high_risk_activities: nil, + high_risk_activities_description: nil, + money_services_description: nil, + operates_in_prohibited_countries: nil, + participates_in_regulated_activity: nil, + purpose_of_funds: nil, + purpose_of_funds_description: nil, + regulated_activity: nil, + source_of_funds: nil, + source_of_funds_description: nil + ); end end # The CardCreator Configuration allows the Account to create and issue cards to users. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::CardCreator)) } @@ -204114,6 +204768,27 @@ module Stripe } def initialize(commercial: nil); end end + class CryptoStorer < ::Stripe::RequestParams + # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + sig { returns(T.nilable(String)) } + def date; end + sig { params(_date: T.nilable(String)).returns(T.nilable(String)) } + def date=(_date); end + # The IP address from which the Account's representative accepted the terms of service. + sig { returns(T.nilable(String)) } + def ip; end + sig { params(_ip: T.nilable(String)).returns(T.nilable(String)) } + def ip=(_ip); end + # The user agent of the browser from which the Account's representative accepted the terms of service. + sig { returns(T.nilable(String)) } + def user_agent; end + sig { params(_user_agent: T.nilable(String)).returns(T.nilable(String)) } + def user_agent=(_user_agent); end + sig { + params(date: T.nilable(String), ip: T.nilable(String), user_agent: T.nilable(String)).void + } + def initialize(date: nil, ip: nil, user_agent: nil); end + end class Storer < ::Stripe::RequestParams # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. sig { returns(T.nilable(String)) } @@ -204153,6 +204828,15 @@ module Stripe params(_card_creator: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CardCreator)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CardCreator)) } def card_creator=(_card_creator); end + # Details on the Account's acceptance of Crypto-storer-specific terms of service. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + } + def crypto_storer; end + sig { + params(_crypto_storer: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + } + def crypto_storer=(_crypto_storer); end # Details on the Account's acceptance of Treasury-specific terms of service. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Storer)) @@ -204163,9 +204847,9 @@ module Stripe } def storer=(_storer); end sig { - params(account: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Account), card_creator: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CardCreator), storer: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Storer)).void + params(account: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Account), card_creator: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CardCreator), crypto_storer: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer), storer: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Storer)).void } - def initialize(account: nil, card_creator: nil, storer: nil); end + def initialize(account: nil, card_creator: nil, crypto_storer: nil, storer: nil); end end # This hash is used to attest that the directors information provided to Stripe is both current and correct. sig { @@ -204772,6 +205456,13 @@ module Stripe params(_annual_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue)) } def annual_revenue=(_annual_revenue); end + # A detailed description of the business's compliance and anti-money laundering controls and practices. + sig { returns(T.nilable(String)) } + def compliance_screening_description; end + sig { + params(_compliance_screening_description: T.nilable(String)).returns(T.nilable(String)) + } + def compliance_screening_description=(_compliance_screening_description); end # A document verifying the business. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents)) @@ -204838,11 +205529,12 @@ module Stripe sig { params(_structure: T.nilable(String)).returns(T.nilable(String)) } def structure=(_structure); end sig { - params(address: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Address), annual_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue), documents: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents), estimated_worker_count: T.nilable(Integer), id_numbers: T.nilable(T::Array[V2::Core::AccountUpdateParams::Identity::BusinessDetails::IdNumber]), monthly_estimated_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue), phone: T.nilable(String), registered_name: T.nilable(String), script_addresses: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses), script_names: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames), structure: T.nilable(String)).void + params(address: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Address), annual_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue), compliance_screening_description: T.nilable(String), documents: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents), estimated_worker_count: T.nilable(Integer), id_numbers: T.nilable(T::Array[V2::Core::AccountUpdateParams::Identity::BusinessDetails::IdNumber]), monthly_estimated_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue), phone: T.nilable(String), registered_name: T.nilable(String), script_addresses: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses), script_names: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames), structure: T.nilable(String)).void } def initialize( address: nil, annual_revenue: nil, + compliance_screening_description: nil, documents: nil, estimated_worker_count: nil, id_numbers: nil, diff --git a/rbi/stripe/params/v2/core/account_create_params.rbi b/rbi/stripe/params/v2/core/account_create_params.rbi index 32fe4779..ce106169 100644 --- a/rbi/stripe/params/v2/core/account_create_params.rbi +++ b/rbi/stripe/params/v2/core/account_create_params.rbi @@ -1685,6 +1685,15 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end + class CryptoWallets < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T::Boolean) } + def requested; end + sig { params(_requested: T::Boolean).returns(T::Boolean) } + def requested=(_requested); end + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); end + end # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)) @@ -1694,10 +1703,19 @@ module Stripe params(_bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)) } def bank_accounts=(_bank_accounts); end + # Can provision a crypto wallet like financial address to credit a FinancialAccount. sig { - params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)).void + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)) } - def initialize(bank_accounts: nil); end + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end + sig { + params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts), crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)).void + } + def initialize(bank_accounts: nil, crypto_wallets: nil); end end class HoldsCurrencies < ::Stripe::RequestParams class Gbp < ::Stripe::RequestParams @@ -1718,6 +1736,15 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end + class Usdc < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T::Boolean) } + def requested; end + sig { params(_requested: T::Boolean).returns(T::Boolean) } + def requested=(_requested); end + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); end + end # Can hold storage-type funds on Stripe in GBP. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)) @@ -1736,10 +1763,19 @@ module Stripe params(_usd: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)) } def usd=(_usd); end + # Can hold storage-type funds on Stripe in USDC. sig { - params(gbp: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)).void + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)) } - def initialize(gbp: nil, usd: nil); end + def usdc; end + sig { + params(_usdc: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)) + } + def usdc=(_usdc); end + sig { + params(gbp: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd), usdc: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).void + } + def initialize(gbp: nil, usd: nil, usdc: nil); end end class InboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -1784,6 +1820,15 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end + class CryptoWallets < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T::Boolean) } + def requested; end + sig { params(_requested: T::Boolean).returns(T::Boolean) } + def requested=(_requested); end + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); end + end class FinancialAccounts < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. sig { returns(T::Boolean) } @@ -1811,6 +1856,15 @@ module Stripe params(_cards: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards)) } def cards=(_cards); end + # Can send funds from a FinancialAccount to a crypto wallet owned by someone else. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)) + } + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)) @@ -1821,9 +1875,14 @@ module Stripe } def financial_accounts=(_financial_accounts); end sig { - params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::BankAccounts), cards: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards), financial_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)).void + params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::BankAccounts), cards: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards), crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets), financial_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)).void } - def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil); end + def initialize( + bank_accounts: nil, + cards: nil, + crypto_wallets: nil, + financial_accounts: nil + ); end end class OutboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -1835,6 +1894,15 @@ module Stripe sig { params(requested: T::Boolean).void } def initialize(requested: nil); end end + class CryptoWallets < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T::Boolean) } + def requested; end + sig { params(_requested: T::Boolean).returns(T::Boolean) } + def requested=(_requested); end + sig { params(requested: T::Boolean).void } + def initialize(requested: nil); end + end class FinancialAccounts < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. sig { returns(T::Boolean) } @@ -1853,6 +1921,15 @@ module Stripe params(_bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts)) } def bank_accounts=(_bank_accounts); end + # Can send funds from a FinancialAccount to a crypto wallet owned by yourself. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)) + } + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)) @@ -1863,9 +1940,13 @@ module Stripe } def financial_accounts=(_financial_accounts); end sig { - params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts), financial_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)).void + params(bank_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts), crypto_wallets: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets), financial_accounts: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)).void } - def initialize(bank_accounts: nil, financial_accounts: nil); end + def initialize( + bank_accounts: nil, + crypto_wallets: nil, + financial_accounts: nil + ); end end # Can provision a financial address to credit/debit a FinancialAccount. sig { @@ -1923,6 +2004,41 @@ module Stripe outbound_transfers: nil ); end end + class RegulatedActivity < ::Stripe::RequestParams + # A detailed description of the regulated activities the business is licensed to conduct. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # The license number or registration number assigned by the business's primary regulator. + sig { returns(T.nilable(String)) } + def license_number; end + sig { params(_license_number: T.nilable(String)).returns(T.nilable(String)) } + def license_number=(_license_number); end + # The country of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_country; end + sig { + params(_primary_regulatory_authority_country: T.nilable(String)).returns(T.nilable(String)) + } + def primary_regulatory_authority_country=(_primary_regulatory_authority_country); end + # The name of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_name; end + sig { + params(_primary_regulatory_authority_name: T.nilable(String)).returns(T.nilable(String)) + } + def primary_regulatory_authority_name=(_primary_regulatory_authority_name); end + sig { + params(description: T.nilable(String), license_number: T.nilable(String), primary_regulatory_authority_country: T.nilable(String), primary_regulatory_authority_name: T.nilable(String)).void + } + def initialize( + description: nil, + license_number: nil, + primary_regulatory_authority_country: nil, + primary_regulatory_authority_name: nil + ); end + end # Capabilities to request on the Storer Configuration. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities)) @@ -1932,10 +2048,90 @@ module Stripe params(_capabilities: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities)) } def capabilities=(_capabilities); end + # List of high-risk activities the business is involved in. + sig { returns(T.nilable(T::Array[String])) } + def high_risk_activities; end sig { - params(capabilities: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities)).void + params(_high_risk_activities: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def initialize(capabilities: nil); end + def high_risk_activities=(_high_risk_activities); end + # An explanation of the high risk activities that the business performs. + sig { returns(T.nilable(String)) } + def high_risk_activities_description; end + sig { + params(_high_risk_activities_description: T.nilable(String)).returns(T.nilable(String)) + } + def high_risk_activities_description=(_high_risk_activities_description); end + # Description of the money services offered by the business. + sig { returns(T.nilable(String)) } + def money_services_description; end + sig { + params(_money_services_description: T.nilable(String)).returns(T.nilable(String)) + } + def money_services_description=(_money_services_description); end + # Does the business operate in any prohibited countries. + sig { returns(T.nilable(T::Boolean)) } + def operates_in_prohibited_countries; end + sig { + params(_operates_in_prohibited_countries: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def operates_in_prohibited_countries=(_operates_in_prohibited_countries); end + # Does the business participate in any regulated activity. + sig { returns(T.nilable(T::Boolean)) } + def participates_in_regulated_activity; end + sig { + params(_participates_in_regulated_activity: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def participates_in_regulated_activity=(_participates_in_regulated_activity); end + # Primary purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds; end + sig { params(_purpose_of_funds: T.nilable(String)).returns(T.nilable(String)) } + def purpose_of_funds=(_purpose_of_funds); end + # Description of the purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds_description; end + sig { + params(_purpose_of_funds_description: T.nilable(String)).returns(T.nilable(String)) + } + def purpose_of_funds_description=(_purpose_of_funds_description); end + # Details of the regulated activity if the business participates in one. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::RegulatedActivity)) + } + def regulated_activity; end + sig { + params(_regulated_activity: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::RegulatedActivity)).returns(T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::RegulatedActivity)) + } + def regulated_activity=(_regulated_activity); end + # The source of funds for the business, e.g. profits, income, venture capital, etc. + sig { returns(T.nilable(String)) } + def source_of_funds; end + sig { params(_source_of_funds: T.nilable(String)).returns(T.nilable(String)) } + def source_of_funds=(_source_of_funds); end + # Description of the source of funds for the business' account. + sig { returns(T.nilable(String)) } + def source_of_funds_description; end + sig { + params(_source_of_funds_description: T.nilable(String)).returns(T.nilable(String)) + } + def source_of_funds_description=(_source_of_funds_description); end + sig { + params(capabilities: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::Capabilities), high_risk_activities: T.nilable(T::Array[String]), high_risk_activities_description: T.nilable(String), money_services_description: T.nilable(String), operates_in_prohibited_countries: T.nilable(T::Boolean), participates_in_regulated_activity: T.nilable(T::Boolean), purpose_of_funds: T.nilable(String), purpose_of_funds_description: T.nilable(String), regulated_activity: T.nilable(V2::Core::AccountCreateParams::Configuration::Storer::RegulatedActivity), source_of_funds: T.nilable(String), source_of_funds_description: T.nilable(String)).void + } + def initialize( + capabilities: nil, + high_risk_activities: nil, + high_risk_activities_description: nil, + money_services_description: nil, + operates_in_prohibited_countries: nil, + participates_in_regulated_activity: nil, + purpose_of_funds: nil, + purpose_of_funds_description: nil, + regulated_activity: nil, + source_of_funds: nil, + source_of_funds_description: nil + ); end end # The CardCreator Configuration allows the Account to create and issue cards to users. sig { returns(T.nilable(V2::Core::AccountCreateParams::Configuration::CardCreator)) } @@ -2649,6 +2845,25 @@ module Stripe } def initialize(commercial: nil); end end + class CryptoStorer < ::Stripe::RequestParams + # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + sig { returns(String) } + def date; end + sig { params(_date: String).returns(String) } + def date=(_date); end + # The IP address from which the Account's representative accepted the terms of service. + sig { returns(String) } + def ip; end + sig { params(_ip: String).returns(String) } + def ip=(_ip); end + # The user agent of the browser from which the Account's representative accepted the terms of service. + sig { returns(T.nilable(String)) } + def user_agent; end + sig { params(_user_agent: T.nilable(String)).returns(T.nilable(String)) } + def user_agent=(_user_agent); end + sig { params(date: String, ip: String, user_agent: T.nilable(String)).void } + def initialize(date: nil, ip: nil, user_agent: nil); end + end class Storer < ::Stripe::RequestParams # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. sig { returns(String) } @@ -2686,6 +2901,15 @@ module Stripe params(_card_creator: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CardCreator)).returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CardCreator)) } def card_creator=(_card_creator); end + # Details on the Account's acceptance of Crypto-storer-specific terms of service. + sig { + returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + } + def crypto_storer; end + sig { + params(_crypto_storer: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CryptoStorer)).returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + } + def crypto_storer=(_crypto_storer); end # Details on the Account's acceptance of Treasury-specific terms of service. sig { returns(T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::Storer)) @@ -2696,9 +2920,9 @@ module Stripe } def storer=(_storer); end sig { - params(account: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::Account), card_creator: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CardCreator), storer: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::Storer)).void + params(account: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::Account), card_creator: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CardCreator), crypto_storer: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::CryptoStorer), storer: T.nilable(V2::Core::AccountCreateParams::Identity::Attestations::TermsOfService::Storer)).void } - def initialize(account: nil, card_creator: nil, storer: nil); end + def initialize(account: nil, card_creator: nil, crypto_storer: nil, storer: nil); end end # This hash is used to attest that the directors information provided to Stripe is both current and correct. sig { @@ -3305,6 +3529,13 @@ module Stripe params(_annual_revenue: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue)).returns(T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue)) } def annual_revenue=(_annual_revenue); end + # A detailed description of the business's compliance and anti-money laundering controls and practices. + sig { returns(T.nilable(String)) } + def compliance_screening_description; end + sig { + params(_compliance_screening_description: T.nilable(String)).returns(T.nilable(String)) + } + def compliance_screening_description=(_compliance_screening_description); end # A document verifying the business. sig { returns(T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents)) @@ -3371,11 +3602,12 @@ module Stripe sig { params(_structure: T.nilable(String)).returns(T.nilable(String)) } def structure=(_structure); end sig { - params(address: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::Address), annual_revenue: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue), documents: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents), estimated_worker_count: T.nilable(Integer), id_numbers: T.nilable(T::Array[V2::Core::AccountCreateParams::Identity::BusinessDetails::IdNumber]), monthly_estimated_revenue: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue), phone: T.nilable(String), registered_name: T.nilable(String), script_addresses: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::ScriptAddresses), script_names: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::ScriptNames), structure: T.nilable(String)).void + params(address: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::Address), annual_revenue: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::AnnualRevenue), compliance_screening_description: T.nilable(String), documents: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::Documents), estimated_worker_count: T.nilable(Integer), id_numbers: T.nilable(T::Array[V2::Core::AccountCreateParams::Identity::BusinessDetails::IdNumber]), monthly_estimated_revenue: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue), phone: T.nilable(String), registered_name: T.nilable(String), script_addresses: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::ScriptAddresses), script_names: T.nilable(V2::Core::AccountCreateParams::Identity::BusinessDetails::ScriptNames), structure: T.nilable(String)).void } def initialize( address: nil, annual_revenue: nil, + compliance_screening_description: nil, documents: nil, estimated_worker_count: nil, id_numbers: nil, diff --git a/rbi/stripe/params/v2/core/account_update_params.rbi b/rbi/stripe/params/v2/core/account_update_params.rbi index 824e8b61..feebc382 100644 --- a/rbi/stripe/params/v2/core/account_update_params.rbi +++ b/rbi/stripe/params/v2/core/account_update_params.rbi @@ -1729,6 +1729,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end + class CryptoWallets < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)) @@ -1738,10 +1747,19 @@ module Stripe params(_bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)) } def bank_accounts=(_bank_accounts); end + # Can provision a crypto wallet like financial address to credit a FinancialAccount. sig { - params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts)).void + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)) } - def initialize(bank_accounts: nil); end + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end + sig { + params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::BankAccounts), crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::FinancialAddresses::CryptoWallets)).void + } + def initialize(bank_accounts: nil, crypto_wallets: nil); end end class HoldsCurrencies < ::Stripe::RequestParams class Gbp < ::Stripe::RequestParams @@ -1762,6 +1780,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end + class Usdc < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end # Can hold storage-type funds on Stripe in GBP. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp)) @@ -1780,10 +1807,19 @@ module Stripe params(_usd: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)) } def usd=(_usd); end + # Can hold storage-type funds on Stripe in USDC. sig { - params(gbp: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd)).void + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)) } - def initialize(gbp: nil, usd: nil); end + def usdc; end + sig { + params(_usdc: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)) + } + def usdc=(_usdc); end + sig { + params(gbp: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Gbp), usd: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usd), usdc: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::HoldsCurrencies::Usdc)).void + } + def initialize(gbp: nil, usd: nil, usdc: nil); end end class InboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -1828,6 +1864,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end + class CryptoWallets < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end class FinancialAccounts < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. sig { returns(T.nilable(T::Boolean)) } @@ -1855,6 +1900,15 @@ module Stripe params(_cards: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards)) } def cards=(_cards); end + # Can send funds from a FinancialAccount to a crypto wallet owned by someone else. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)) + } + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)) @@ -1865,9 +1919,14 @@ module Stripe } def financial_accounts=(_financial_accounts); end sig { - params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::BankAccounts), cards: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards), financial_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)).void + params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::BankAccounts), cards: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::Cards), crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::CryptoWallets), financial_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundPayments::FinancialAccounts)).void } - def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil); end + def initialize( + bank_accounts: nil, + cards: nil, + crypto_wallets: nil, + financial_accounts: nil + ); end end class OutboundTransfers < ::Stripe::RequestParams class BankAccounts < ::Stripe::RequestParams @@ -1879,6 +1938,15 @@ module Stripe sig { params(requested: T.nilable(T::Boolean)).void } def initialize(requested: nil); end end + class CryptoWallets < ::Stripe::RequestParams + # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. + sig { returns(T.nilable(T::Boolean)) } + def requested; end + sig { params(_requested: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def requested=(_requested); end + sig { params(requested: T.nilable(T::Boolean)).void } + def initialize(requested: nil); end + end class FinancialAccounts < ::Stripe::RequestParams # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active. sig { returns(T.nilable(T::Boolean)) } @@ -1897,6 +1965,15 @@ module Stripe params(_bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts)) } def bank_accounts=(_bank_accounts); end + # Can send funds from a FinancialAccount to a crypto wallet owned by yourself. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)) + } + def crypto_wallets; end + sig { + params(_crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets)) + } + def crypto_wallets=(_crypto_wallets); end # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)) @@ -1907,9 +1984,13 @@ module Stripe } def financial_accounts=(_financial_accounts); end sig { - params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts), financial_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)).void + params(bank_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::BankAccounts), crypto_wallets: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::CryptoWallets), financial_accounts: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities::OutboundTransfers::FinancialAccounts)).void } - def initialize(bank_accounts: nil, financial_accounts: nil); end + def initialize( + bank_accounts: nil, + crypto_wallets: nil, + financial_accounts: nil + ); end end # Can provision a financial address to credit/debit a FinancialAccount. sig { @@ -1967,6 +2048,41 @@ module Stripe outbound_transfers: nil ); end end + class RegulatedActivity < ::Stripe::RequestParams + # A detailed description of the regulated activities the business is licensed to conduct. + sig { returns(T.nilable(String)) } + def description; end + sig { params(_description: T.nilable(String)).returns(T.nilable(String)) } + def description=(_description); end + # The license number or registration number assigned by the business's primary regulator. + sig { returns(T.nilable(String)) } + def license_number; end + sig { params(_license_number: T.nilable(String)).returns(T.nilable(String)) } + def license_number=(_license_number); end + # The country of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_country; end + sig { + params(_primary_regulatory_authority_country: T.nilable(String)).returns(T.nilable(String)) + } + def primary_regulatory_authority_country=(_primary_regulatory_authority_country); end + # The name of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_name; end + sig { + params(_primary_regulatory_authority_name: T.nilable(String)).returns(T.nilable(String)) + } + def primary_regulatory_authority_name=(_primary_regulatory_authority_name); end + sig { + params(description: T.nilable(String), license_number: T.nilable(String), primary_regulatory_authority_country: T.nilable(String), primary_regulatory_authority_name: T.nilable(String)).void + } + def initialize( + description: nil, + license_number: nil, + primary_regulatory_authority_country: nil, + primary_regulatory_authority_name: nil + ); end + end # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration. sig { returns(T.nilable(T::Boolean)) } def applied; end @@ -1981,10 +2097,91 @@ module Stripe params(_capabilities: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities)) } def capabilities=(_capabilities); end + # List of high-risk activities the business is involved in. + sig { returns(T.nilable(T::Array[String])) } + def high_risk_activities; end sig { - params(applied: T.nilable(T::Boolean), capabilities: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities)).void + params(_high_risk_activities: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } - def initialize(applied: nil, capabilities: nil); end + def high_risk_activities=(_high_risk_activities); end + # An explanation of the high risk activities that the business performs. + sig { returns(T.nilable(String)) } + def high_risk_activities_description; end + sig { + params(_high_risk_activities_description: T.nilable(String)).returns(T.nilable(String)) + } + def high_risk_activities_description=(_high_risk_activities_description); end + # Description of the money services offered by the business. + sig { returns(T.nilable(String)) } + def money_services_description; end + sig { + params(_money_services_description: T.nilable(String)).returns(T.nilable(String)) + } + def money_services_description=(_money_services_description); end + # Does the business operate in any prohibited countries. + sig { returns(T.nilable(T::Boolean)) } + def operates_in_prohibited_countries; end + sig { + params(_operates_in_prohibited_countries: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def operates_in_prohibited_countries=(_operates_in_prohibited_countries); end + # Does the business participate in any regulated activity. + sig { returns(T.nilable(T::Boolean)) } + def participates_in_regulated_activity; end + sig { + params(_participates_in_regulated_activity: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) + } + def participates_in_regulated_activity=(_participates_in_regulated_activity); end + # Primary purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds; end + sig { params(_purpose_of_funds: T.nilable(String)).returns(T.nilable(String)) } + def purpose_of_funds=(_purpose_of_funds); end + # Description of the purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds_description; end + sig { + params(_purpose_of_funds_description: T.nilable(String)).returns(T.nilable(String)) + } + def purpose_of_funds_description=(_purpose_of_funds_description); end + # Details of the regulated activity if the business participates in one. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::RegulatedActivity)) + } + def regulated_activity; end + sig { + params(_regulated_activity: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::RegulatedActivity)).returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::RegulatedActivity)) + } + def regulated_activity=(_regulated_activity); end + # The source of funds for the business, e.g. profits, income, venture capital, etc. + sig { returns(T.nilable(String)) } + def source_of_funds; end + sig { params(_source_of_funds: T.nilable(String)).returns(T.nilable(String)) } + def source_of_funds=(_source_of_funds); end + # Description of the source of funds for the business' account. + sig { returns(T.nilable(String)) } + def source_of_funds_description; end + sig { + params(_source_of_funds_description: T.nilable(String)).returns(T.nilable(String)) + } + def source_of_funds_description=(_source_of_funds_description); end + sig { + params(applied: T.nilable(T::Boolean), capabilities: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::Capabilities), high_risk_activities: T.nilable(T::Array[String]), high_risk_activities_description: T.nilable(String), money_services_description: T.nilable(String), operates_in_prohibited_countries: T.nilable(T::Boolean), participates_in_regulated_activity: T.nilable(T::Boolean), purpose_of_funds: T.nilable(String), purpose_of_funds_description: T.nilable(String), regulated_activity: T.nilable(V2::Core::AccountUpdateParams::Configuration::Storer::RegulatedActivity), source_of_funds: T.nilable(String), source_of_funds_description: T.nilable(String)).void + } + def initialize( + applied: nil, + capabilities: nil, + high_risk_activities: nil, + high_risk_activities_description: nil, + money_services_description: nil, + operates_in_prohibited_countries: nil, + participates_in_regulated_activity: nil, + purpose_of_funds: nil, + purpose_of_funds_description: nil, + regulated_activity: nil, + source_of_funds: nil, + source_of_funds_description: nil + ); end end # The CardCreator Configuration allows the Account to create and issue cards to users. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Configuration::CardCreator)) } @@ -2726,6 +2923,27 @@ module Stripe } def initialize(commercial: nil); end end + class CryptoStorer < ::Stripe::RequestParams + # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + sig { returns(T.nilable(String)) } + def date; end + sig { params(_date: T.nilable(String)).returns(T.nilable(String)) } + def date=(_date); end + # The IP address from which the Account's representative accepted the terms of service. + sig { returns(T.nilable(String)) } + def ip; end + sig { params(_ip: T.nilable(String)).returns(T.nilable(String)) } + def ip=(_ip); end + # The user agent of the browser from which the Account's representative accepted the terms of service. + sig { returns(T.nilable(String)) } + def user_agent; end + sig { params(_user_agent: T.nilable(String)).returns(T.nilable(String)) } + def user_agent=(_user_agent); end + sig { + params(date: T.nilable(String), ip: T.nilable(String), user_agent: T.nilable(String)).void + } + def initialize(date: nil, ip: nil, user_agent: nil); end + end class Storer < ::Stripe::RequestParams # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. sig { returns(T.nilable(String)) } @@ -2765,6 +2983,15 @@ module Stripe params(_card_creator: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CardCreator)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CardCreator)) } def card_creator=(_card_creator); end + # Details on the Account's acceptance of Crypto-storer-specific terms of service. + sig { + returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + } + def crypto_storer; end + sig { + params(_crypto_storer: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer)) + } + def crypto_storer=(_crypto_storer); end # Details on the Account's acceptance of Treasury-specific terms of service. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Storer)) @@ -2775,9 +3002,9 @@ module Stripe } def storer=(_storer); end sig { - params(account: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Account), card_creator: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CardCreator), storer: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Storer)).void + params(account: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Account), card_creator: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CardCreator), crypto_storer: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::CryptoStorer), storer: T.nilable(V2::Core::AccountUpdateParams::Identity::Attestations::TermsOfService::Storer)).void } - def initialize(account: nil, card_creator: nil, storer: nil); end + def initialize(account: nil, card_creator: nil, crypto_storer: nil, storer: nil); end end # This hash is used to attest that the directors information provided to Stripe is both current and correct. sig { @@ -3384,6 +3611,13 @@ module Stripe params(_annual_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue)).returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue)) } def annual_revenue=(_annual_revenue); end + # A detailed description of the business's compliance and anti-money laundering controls and practices. + sig { returns(T.nilable(String)) } + def compliance_screening_description; end + sig { + params(_compliance_screening_description: T.nilable(String)).returns(T.nilable(String)) + } + def compliance_screening_description=(_compliance_screening_description); end # A document verifying the business. sig { returns(T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents)) @@ -3450,11 +3684,12 @@ module Stripe sig { params(_structure: T.nilable(String)).returns(T.nilable(String)) } def structure=(_structure); end sig { - params(address: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Address), annual_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue), documents: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents), estimated_worker_count: T.nilable(Integer), id_numbers: T.nilable(T::Array[V2::Core::AccountUpdateParams::Identity::BusinessDetails::IdNumber]), monthly_estimated_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue), phone: T.nilable(String), registered_name: T.nilable(String), script_addresses: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses), script_names: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames), structure: T.nilable(String)).void + params(address: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Address), annual_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::AnnualRevenue), compliance_screening_description: T.nilable(String), documents: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::Documents), estimated_worker_count: T.nilable(Integer), id_numbers: T.nilable(T::Array[V2::Core::AccountUpdateParams::Identity::BusinessDetails::IdNumber]), monthly_estimated_revenue: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::MonthlyEstimatedRevenue), phone: T.nilable(String), registered_name: T.nilable(String), script_addresses: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptAddresses), script_names: T.nilable(V2::Core::AccountUpdateParams::Identity::BusinessDetails::ScriptNames), structure: T.nilable(String)).void } def initialize( address: nil, annual_revenue: nil, + compliance_screening_description: nil, documents: nil, estimated_worker_count: nil, id_numbers: nil, diff --git a/rbi/stripe/resources/v2/core/account.rbi b/rbi/stripe/resources/v2/core/account.rbi index b04ad130..c9307b34 100644 --- a/rbi/stripe/resources/v2/core/account.rbi +++ b/rbi/stripe/resources/v2/core/account.rbi @@ -2575,11 +2575,45 @@ module Stripe @field_remappings = {} end end + class CryptoWallets < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject + # Machine-readable code explaining the reason for the Capability to be in its current status. + sig { returns(String) } + def code; end + # Machine-readable code explaining how to make the Capability active. + sig { returns(String) } + def resolution; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + sig { returns(T::Boolean) } + def requested; end + # The status of the Capability. + sig { returns(String) } + def status; end + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + sig { returns(T::Array[StatusDetail]) } + def status_details; end + def self.inner_class_types + @inner_class_types = {status_details: StatusDetail} + end + def self.field_remappings + @field_remappings = {} + end + end # Can provision a bank-account like financial address (VBAN) to credit/debit a FinancialAccount. sig { returns(T.nilable(BankAccounts)) } def bank_accounts; end + # Can provision a crypto wallet like financial address to credit a FinancialAccount. + sig { returns(T.nilable(CryptoWallets)) } + def crypto_wallets; end def self.inner_class_types - @inner_class_types = {bank_accounts: BankAccounts} + @inner_class_types = {bank_accounts: BankAccounts, crypto_wallets: CryptoWallets} end def self.field_remappings @field_remappings = {} @@ -2648,14 +2682,48 @@ module Stripe @field_remappings = {} end end + class Usdc < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject + # Machine-readable code explaining the reason for the Capability to be in its current status. + sig { returns(String) } + def code; end + # Machine-readable code explaining how to make the Capability active. + sig { returns(String) } + def resolution; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + sig { returns(T::Boolean) } + def requested; end + # The status of the Capability. + sig { returns(String) } + def status; end + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + sig { returns(T::Array[StatusDetail]) } + def status_details; end + def self.inner_class_types + @inner_class_types = {status_details: StatusDetail} + end + def self.field_remappings + @field_remappings = {} + end + end # Can hold storage-type funds on Stripe in GBP. sig { returns(T.nilable(Gbp)) } def gbp; end # Can hold storage-type funds on Stripe in USD. sig { returns(T.nilable(Usd)) } def usd; end + # Can hold storage-type funds on Stripe in USDC. + sig { returns(T.nilable(Usdc)) } + def usdc; end def self.inner_class_types - @inner_class_types = {gbp: Gbp, usd: Usd} + @inner_class_types = {gbp: Gbp, usd: Usd, usdc: Usdc} end def self.field_remappings @field_remappings = {} @@ -2766,6 +2834,37 @@ module Stripe @field_remappings = {} end end + class CryptoWallets < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject + # Machine-readable code explaining the reason for the Capability to be in its current status. + sig { returns(String) } + def code; end + # Machine-readable code explaining how to make the Capability active. + sig { returns(String) } + def resolution; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + sig { returns(T::Boolean) } + def requested; end + # The status of the Capability. + sig { returns(String) } + def status; end + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + sig { returns(T::Array[StatusDetail]) } + def status_details; end + def self.inner_class_types + @inner_class_types = {status_details: StatusDetail} + end + def self.field_remappings + @field_remappings = {} + end + end class FinancialAccounts < ::Stripe::StripeObject class StatusDetail < ::Stripe::StripeObject # Machine-readable code explaining the reason for the Capability to be in its current status. @@ -2803,6 +2902,9 @@ module Stripe # Can send funds from a FinancialAccount to a debit card, owned by someone else. sig { returns(T.nilable(Cards)) } def cards; end + # Can send funds from a FinancialAccount to a crypto wallet, owned by someone else. + sig { returns(T.nilable(CryptoWallets)) } + def crypto_wallets; end # Can send funds from a FinancialAccount to another FinancialAccount, owned by someone else. sig { returns(T.nilable(FinancialAccounts)) } def financial_accounts; end @@ -2810,6 +2912,7 @@ module Stripe @inner_class_types = { bank_accounts: BankAccounts, cards: Cards, + crypto_wallets: CryptoWallets, financial_accounts: FinancialAccounts, } end @@ -2849,6 +2952,37 @@ module Stripe @field_remappings = {} end end + class CryptoWallets < ::Stripe::StripeObject + class StatusDetail < ::Stripe::StripeObject + # Machine-readable code explaining the reason for the Capability to be in its current status. + sig { returns(String) } + def code; end + # Machine-readable code explaining how to make the Capability active. + sig { returns(String) } + def resolution; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Whether the Capability has been requested. + sig { returns(T::Boolean) } + def requested; end + # The status of the Capability. + sig { returns(String) } + def status; end + # Additional details regarding the status of the Capability. `status_details` will be empty if the Capability's status is `active`. + sig { returns(T::Array[StatusDetail]) } + def status_details; end + def self.inner_class_types + @inner_class_types = {status_details: StatusDetail} + end + def self.field_remappings + @field_remappings = {} + end + end class FinancialAccounts < ::Stripe::StripeObject class StatusDetail < ::Stripe::StripeObject # Machine-readable code explaining the reason for the Capability to be in its current status. @@ -2883,12 +3017,16 @@ module Stripe # Can send funds from a FinancialAccount, to a bank account, owned by yourself. sig { returns(T.nilable(BankAccounts)) } def bank_accounts; end + # Can send funds from a FinancialAccount to a crypto wallet, owned by yourself. + sig { returns(T.nilable(CryptoWallets)) } + def crypto_wallets; end # Can send funds from a FinancialAccount to another FinancialAccount, owned by yourself. sig { returns(T.nilable(FinancialAccounts)) } def financial_accounts; end def self.inner_class_types @inner_class_types = { bank_accounts: BankAccounts, + crypto_wallets: CryptoWallets, financial_accounts: FinancialAccounts, } end @@ -2924,14 +3062,67 @@ module Stripe @field_remappings = {} end end + class RegulatedActivity < ::Stripe::StripeObject + # A detailed description of the regulated activities the business is licensed to conduct. + sig { returns(T.nilable(String)) } + def description; end + # The license number or registration number assigned by the business's primary regulator. + sig { returns(T.nilable(String)) } + def license_number; end + # The country of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_country; end + # The name of the primary regulatory authority that oversees the business's regulated activities. + sig { returns(T.nilable(String)) } + def primary_regulatory_authority_name; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration. sig { returns(T::Boolean) } def applied; end # Capabilities that have been requested on the Storer Configuration. sig { returns(T.nilable(Capabilities)) } def capabilities; end + # List of high-risk activities the business is involved in. + sig { returns(T.nilable(T::Array[String])) } + def high_risk_activities; end + # An explanation of the high risk activities that the business performs. + sig { returns(T.nilable(String)) } + def high_risk_activities_description; end + # Description of the money services offered by the business. + sig { returns(T.nilable(String)) } + def money_services_description; end + # Does the business operate in any prohibited countries. + sig { returns(T.nilable(T::Boolean)) } + def operates_in_prohibited_countries; end + # Does the business participate in any regulated activity. + sig { returns(T.nilable(T::Boolean)) } + def participates_in_regulated_activity; end + # Primary purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds; end + # Description of the purpose of the stored funds. + sig { returns(T.nilable(String)) } + def purpose_of_funds_description; end + # Details of the regulated activity if the business participates in one. + sig { returns(T.nilable(RegulatedActivity)) } + def regulated_activity; end + # The source of funds for the business, e.g. profits, income, venture capital, etc. + sig { returns(T.nilable(String)) } + def source_of_funds; end + # Description of the source of funds for the business' account. + sig { returns(T.nilable(String)) } + def source_of_funds_description; end def self.inner_class_types - @inner_class_types = {capabilities: Capabilities} + @inner_class_types = { + capabilities: Capabilities, + regulated_activity: RegulatedActivity, + } end def self.field_remappings @field_remappings = {} @@ -3514,6 +3705,23 @@ module Stripe @field_remappings = {} end end + class CryptoStorer < ::Stripe::StripeObject + # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + sig { returns(T.nilable(String)) } + def date; end + # The IP address from which the Account's representative accepted the terms of service. + sig { returns(T.nilable(String)) } + def ip; end + # The user agent of the browser from which the Account's representative accepted the terms of service. + sig { returns(T.nilable(String)) } + def user_agent; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end class Storer < ::Stripe::StripeObject # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. sig { returns(T.nilable(String)) } @@ -3537,11 +3745,19 @@ module Stripe # Details on the Account's acceptance of Issuing-specific terms of service. sig { returns(T.nilable(CardCreator)) } def card_creator; end + # Details on the Account's acceptance of Crypto-storer-specific terms of service. + sig { returns(T.nilable(CryptoStorer)) } + def crypto_storer; end # Details on the Account's acceptance of Treasury-specific terms of service. sig { returns(T.nilable(Storer)) } def storer; end def self.inner_class_types - @inner_class_types = {account: Account, card_creator: CardCreator, storer: Storer} + @inner_class_types = { + account: Account, + card_creator: CardCreator, + crypto_storer: CryptoStorer, + storer: Storer, + } end def self.field_remappings @field_remappings = {} @@ -3961,6 +4177,9 @@ module Stripe # The business gross annual revenue for its preceding fiscal year. sig { returns(T.nilable(AnnualRevenue)) } def annual_revenue; end + # A detailed description of the business's compliance and anti-money laundering controls and practices. + sig { returns(T.nilable(String)) } + def compliance_screening_description; end # Documents that may be submitted to satisfy various informational requests. sig { returns(T.nilable(Documents)) } def documents; end diff --git a/rbi/stripe/resources/v2/money_management/received_credit.rbi b/rbi/stripe/resources/v2/money_management/received_credit.rbi index 6b2d1829..5b578e2a 100644 --- a/rbi/stripe/resources/v2/money_management/received_credit.rbi +++ b/rbi/stripe/resources/v2/money_management/received_credit.rbi @@ -195,6 +195,9 @@ module Stripe # Freeform string set by originator of the ReceivedCredit. sig { returns(T.nilable(String)) } def description; end + # The amount and currency of the original/external credit request. + sig { returns(T.nilable(::Stripe::V2::Amount)) } + def external_amount; end # Financial Account ID on which funds for ReceivedCredit were received. sig { returns(String) } def financial_account; end diff --git a/rbi/stripe/resources/v2/money_management/received_debit.rbi b/rbi/stripe/resources/v2/money_management/received_debit.rbi index 3e735fcd..42bc8e57 100644 --- a/rbi/stripe/resources/v2/money_management/received_debit.rbi +++ b/rbi/stripe/resources/v2/money_management/received_debit.rbi @@ -100,6 +100,9 @@ module Stripe # Freeform string sent by the originator of the ReceivedDebit. sig { returns(T.nilable(String)) } def description; end + # The amount and currency of the original/external debit request. + sig { returns(T.nilable(::Stripe::V2::Amount)) } + def external_amount; end # Financial Account on which funds for ReceivedDebit were debited. sig { returns(String) } def financial_account; end From b7f460a6befc25a028144e152d288fea51fd8251 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 29 Oct 2025 04:44:56 +0000 Subject: [PATCH 5/5] Update generated code for v2104 and --- API_VERSION | 2 +- OPENAPI_VERSION | 2 +- .../analytics/meter_usage_retrieve_params.rb | 6 +- .../requested_session_confirm_params.rb | 39 ++- .../requested_session_create_params.rb | 39 --- lib/stripe/params/transfer_create_params.rb | 6 +- lib/stripe/resources/application_fee.rb | 2 + lib/stripe/resources/balance.rb | 83 ++++++ .../billing/analytics/meter_usage_row.rb | 2 + lib/stripe/resources/payment_intent.rb | 16 ++ lib/stripe/resources/transfer.rb | 4 + rbi/stripe.rbi | 260 +++++++++++++----- .../analytics/meter_usage_retrieve_params.rbi | 12 +- .../requested_session_confirm_params.rbi | 65 ++++- .../requested_session_create_params.rbi | 62 +---- rbi/stripe/params/transfer_create_params.rbi | 10 +- rbi/stripe/resources/application_fee.rbi | 3 + rbi/stripe/resources/balance.rbi | 85 ++++++ .../billing/analytics/meter_usage_row.rbi | 3 + rbi/stripe/resources/payment_intent.rbi | 14 + rbi/stripe/resources/transfer.rbi | 6 + 21 files changed, 543 insertions(+), 178 deletions(-) diff --git a/API_VERSION b/API_VERSION index 2ecdba01..66718b6c 100644 --- a/API_VERSION +++ b/API_VERSION @@ -1 +1 @@ -d6534f3d076849c4f6df1414d4c477334e431ffd \ No newline at end of file +847d2ef0de9626eec25973097d37b61f67e343ee \ No newline at end of file diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e9d12fff..76d911f4 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2103 \ No newline at end of file +v2104 \ No newline at end of file diff --git a/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb b/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb index df019fbf..0743f9d7 100644 --- a/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +++ b/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb @@ -14,17 +14,21 @@ module Stripe attr_accessor :meter # Key-value pairs used to filter usage events by high cardinality tenant dimension values. If specified, usage will be filtered for matching usage events. attr_accessor :tenant_filters + # List of high cardinality tenant dimension keys to group by. If specified, usage events will be grouped by the given tenant dimension key's values. + attr_accessor :tenant_group_by_keys def initialize( dimension_filters: nil, dimension_group_by_keys: nil, meter: nil, - tenant_filters: nil + tenant_filters: nil, + tenant_group_by_keys: nil ) @dimension_filters = dimension_filters @dimension_group_by_keys = dimension_group_by_keys @meter = meter @tenant_filters = tenant_filters + @tenant_group_by_keys = tenant_group_by_keys end end # The customer id to fetch meter usage data for. diff --git a/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb b/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb index a9541895..09c57d5c 100644 --- a/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb +++ b/lib/stripe/params/delegated_checkout/requested_session_confirm_params.rb @@ -4,14 +4,51 @@ module Stripe module DelegatedCheckout class RequestedSessionConfirmParams < ::Stripe::RequestParams + class RiskDetails < ::Stripe::RequestParams + class ClientDeviceMetadataDetails < ::Stripe::RequestParams + # The radar session. + attr_accessor :radar_session + # The referrer of the client device. + attr_accessor :referrer + # The remote IP address of the client device. + attr_accessor :remote_ip + # The time on page in milliseconds. + attr_accessor :time_on_page_ms + # The user agent of the client device. + attr_accessor :user_agent + + def initialize( + radar_session: nil, + referrer: nil, + remote_ip: nil, + time_on_page_ms: nil, + user_agent: nil + ) + @radar_session = radar_session + @referrer = referrer + @remote_ip = remote_ip + @time_on_page_ms = time_on_page_ms + @user_agent = user_agent + end + end + # The client device metadata details for this requested session. + attr_accessor :client_device_metadata_details + + def initialize(client_device_metadata_details: nil) + @client_device_metadata_details = client_device_metadata_details + end + end # Specifies which fields in the response should be expanded. attr_accessor :expand # The PaymentMethod to use with the requested session. attr_accessor :payment_method + # Risk details/signals associated with the requested session + attr_accessor :risk_details - def initialize(expand: nil, payment_method: nil) + def initialize(expand: nil, payment_method: nil, risk_details: nil) @expand = expand @payment_method = payment_method + @risk_details = risk_details end end end diff --git a/lib/stripe/params/delegated_checkout/requested_session_create_params.rb b/lib/stripe/params/delegated_checkout/requested_session_create_params.rb index 215b250c..35d8479f 100644 --- a/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +++ b/lib/stripe/params/delegated_checkout/requested_session_create_params.rb @@ -144,41 +144,6 @@ module Stripe end end - class RiskDetails < ::Stripe::RequestParams - class ClientDeviceMetadataDetails < ::Stripe::RequestParams - # The radar session. - attr_accessor :radar_session - # The referrer of the client device. - attr_accessor :referrer - # The remote IP address of the client device. - attr_accessor :remote_ip - # The time on page in seconds. - attr_accessor :time_on_page - # The user agent of the client device. - attr_accessor :user_agent - - def initialize( - radar_session: nil, - referrer: nil, - remote_ip: nil, - time_on_page: nil, - user_agent: nil - ) - @radar_session = radar_session - @referrer = referrer - @remote_ip = remote_ip - @time_on_page = time_on_page - @user_agent = user_agent - end - end - # The client device metadata details for this requested session. - attr_accessor :client_device_metadata_details - - def initialize(client_device_metadata_details: nil) - @client_device_metadata_details = client_device_metadata_details - end - end - class SellerDetails < ::Stripe::RequestParams # The network profile for the seller. attr_accessor :network_profile @@ -203,8 +168,6 @@ module Stripe attr_accessor :payment_method # The payment method data for this requested session. attr_accessor :payment_method_data - # The risk details for this requested session. - attr_accessor :risk_details # The details of the seller. attr_accessor :seller_details # The setup future usage for this requested session. @@ -221,7 +184,6 @@ module Stripe metadata: nil, payment_method: nil, payment_method_data: nil, - risk_details: nil, seller_details: nil, setup_future_usage: nil, shared_metadata: nil @@ -234,7 +196,6 @@ module Stripe @metadata = metadata @payment_method = payment_method @payment_method_data = payment_method_data - @risk_details = risk_details @seller_details = seller_details @setup_future_usage = setup_future_usage @shared_metadata = shared_metadata diff --git a/lib/stripe/params/transfer_create_params.rb b/lib/stripe/params/transfer_create_params.rb index 69d4dbae..3f2d6d09 100644 --- a/lib/stripe/params/transfer_create_params.rb +++ b/lib/stripe/params/transfer_create_params.rb @@ -23,6 +23,8 @@ module Stripe attr_accessor :source_type # A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details. attr_accessor :transfer_group + # Attribute for param field application_fee_amount + attr_accessor :application_fee_amount def initialize( amount: nil, @@ -34,7 +36,8 @@ module Stripe metadata: nil, source_transaction: nil, source_type: nil, - transfer_group: nil + transfer_group: nil, + application_fee_amount: nil ) @amount = amount @currency = currency @@ -46,6 +49,7 @@ module Stripe @source_transaction = source_transaction @source_type = source_type @transfer_group = transfer_group + @application_fee_amount = application_fee_amount end end end diff --git a/lib/stripe/resources/application_fee.rb b/lib/stripe/resources/application_fee.rb index eed96ccf..5a0ad07a 100644 --- a/lib/stripe/resources/application_fee.rb +++ b/lib/stripe/resources/application_fee.rb @@ -20,6 +20,8 @@ module Stripe attr_reader :payout # Type of object that created the application fee. attr_reader :type + # Transfer ID that created this application fee. + attr_reader :transfer def self.inner_class_types @inner_class_types = {} diff --git a/lib/stripe/resources/balance.rb b/lib/stripe/resources/balance.rb index 9803273d..a9f5d473 100644 --- a/lib/stripe/resources/balance.rb +++ b/lib/stripe/resources/balance.rb @@ -305,6 +305,86 @@ module Stripe @field_remappings = {} end end + + class TransitBalancesTotal < ::Stripe::StripeObject + class Available < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject + # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). + attr_reader :bank_account + # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). + attr_reader :card + # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. + attr_reader :fpx + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Balance amount. + attr_reader :amount + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + # Attribute for field source_types + attr_reader :source_types + + def self.inner_class_types + @inner_class_types = { source_types: SourceTypes } + end + + def self.field_remappings + @field_remappings = {} + end + end + + class Pending < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject + # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). + attr_reader :bank_account + # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). + attr_reader :card + # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. + attr_reader :fpx + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + # Balance amount. + attr_reader :amount + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + attr_reader :currency + # Attribute for field source_types + attr_reader :source_types + + def self.inner_class_types + @inner_class_types = { source_types: SourceTypes } + end + + def self.field_remappings + @field_remappings = {} + end + end + # Funds that are available for use. + attr_reader :available + # Funds that are pending + attr_reader :pending + + def self.inner_class_types + @inner_class_types = { available: Available, pending: Pending } + end + + def self.field_remappings + @field_remappings = {} + end + end # Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts). You can find the available balance for each currency and payment type in the `source_types` property. attr_reader :available # Funds held due to negative balances on connected accounts where [account.controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. You can find the connect reserve balance for each currency and payment type in the `source_types` property. @@ -321,6 +401,8 @@ module Stripe attr_reader :pending # Attribute for field refund_and_dispute_prefunding attr_reader :refund_and_dispute_prefunding + # Attribute for field transit_balances_total + attr_reader :transit_balances_total def self.inner_class_types @inner_class_types = { @@ -330,6 +412,7 @@ module Stripe issuing: Issuing, pending: Pending, refund_and_dispute_prefunding: RefundAndDisputePrefunding, + transit_balances_total: TransitBalancesTotal, } end diff --git a/lib/stripe/resources/billing/analytics/meter_usage_row.rb b/lib/stripe/resources/billing/analytics/meter_usage_row.rb index 09fef5d2..330d834a 100644 --- a/lib/stripe/resources/billing/analytics/meter_usage_row.rb +++ b/lib/stripe/resources/billing/analytics/meter_usage_row.rb @@ -24,6 +24,8 @@ module Stripe attr_reader :starts_at # The aggregated meter usage value for the specified bucket. attr_reader :value + # A set of key-value pairs representing the tenants of the meter usage. + attr_reader :tenants def self.inner_class_types @inner_class_types = {} diff --git a/lib/stripe/resources/payment_intent.rb b/lib/stripe/resources/payment_intent.rb index eec00f3e..cec4d0cb 100644 --- a/lib/stripe/resources/payment_intent.rb +++ b/lib/stripe/resources/payment_intent.rb @@ -3434,6 +3434,19 @@ module Stripe @field_remappings = {} end end + + class AllocatedFunds < ::Stripe::StripeObject + # Allocated Funds configuration for this PaymentIntent. + attr_reader :enabled + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). attr_reader :amount # Amount that can be captured from this PaymentIntent. @@ -3546,6 +3559,8 @@ module Stripe attr_reader :transfer_data # A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers). attr_reader :transfer_group + # Allocated Funds configuration for this PaymentIntent. + attr_reader :allocated_funds # Manually reconcile the remaining amount for a customer_balance PaymentIntent. def apply_customer_balance(params = {}, opts = {}) @@ -3919,6 +3934,7 @@ module Stripe processing: Processing, shipping: Shipping, transfer_data: TransferData, + allocated_funds: AllocatedFunds, } end diff --git a/lib/stripe/resources/transfer.rb b/lib/stripe/resources/transfer.rb index 9856e6b7..85c0734f 100644 --- a/lib/stripe/resources/transfer.rb +++ b/lib/stripe/resources/transfer.rb @@ -61,6 +61,10 @@ module Stripe attr_reader :source_type # A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details. attr_reader :transfer_group + # Attribute for field application_fee + attr_reader :application_fee + # Attribute for field application_fee_amount + attr_reader :application_fee_amount # To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://docs.stripe.com/api#balance) must be able to cover the transfer amount, or you'll receive an “Insufficient Funds” error. def self.create(params = {}, opts = {}) diff --git a/rbi/stripe.rbi b/rbi/stripe.rbi index 0d3c64ef..80e1e647 100644 --- a/rbi/stripe.rbi +++ b/rbi/stripe.rbi @@ -1875,6 +1875,9 @@ module Stripe # The aggregated meter usage value for the specified bucket. sig { returns(Float) } def value; end + # A set of key-value pairs representing the tenants of the meter usage. + sig { returns(T.nilable(T::Hash[String, String])) } + def tenants; end end end end @@ -5742,6 +5745,9 @@ module Stripe # Type of object that created the application fee. sig { returns(String) } def type; end + # Transfer ID that created this application fee. + sig { returns(T.nilable(String)) } + def transfer; end def self.inner_class_types @inner_class_types = {} end @@ -6224,6 +6230,88 @@ module Stripe @field_remappings = {} end end + class TransitBalancesTotal < ::Stripe::StripeObject + class Available < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject + # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). + sig { returns(T.nilable(Integer)) } + def bank_account; end + # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). + sig { returns(T.nilable(Integer)) } + def card; end + # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. + sig { returns(T.nilable(Integer)) } + def fpx; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Balance amount. + sig { returns(Integer) } + def amount; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # Attribute for field source_types + sig { returns(T.nilable(SourceTypes)) } + def source_types; end + def self.inner_class_types + @inner_class_types = {source_types: SourceTypes} + end + def self.field_remappings + @field_remappings = {} + end + end + class Pending < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject + # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). + sig { returns(T.nilable(Integer)) } + def bank_account; end + # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). + sig { returns(T.nilable(Integer)) } + def card; end + # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. + sig { returns(T.nilable(Integer)) } + def fpx; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Balance amount. + sig { returns(Integer) } + def amount; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # Attribute for field source_types + sig { returns(T.nilable(SourceTypes)) } + def source_types; end + def self.inner_class_types + @inner_class_types = {source_types: SourceTypes} + end + def self.field_remappings + @field_remappings = {} + end + end + # Funds that are available for use. + sig { returns(T::Array[Available]) } + def available; end + # Funds that are pending + sig { returns(T::Array[Pending]) } + def pending; end + def self.inner_class_types + @inner_class_types = {available: Available, pending: Pending} + end + def self.field_remappings + @field_remappings = {} + end + end # Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts). You can find the available balance for each currency and payment type in the `source_types` property. sig { returns(T::Array[Available]) } def available; end @@ -6248,6 +6336,9 @@ module Stripe # Attribute for field refund_and_dispute_prefunding sig { returns(T.nilable(RefundAndDisputePrefunding)) } def refund_and_dispute_prefunding; end + # Attribute for field transit_balances_total + sig { returns(T.nilable(TransitBalancesTotal)) } + def transit_balances_total; end end end # typed: true @@ -32729,6 +32820,17 @@ module Stripe @field_remappings = {} end end + class AllocatedFunds < ::Stripe::StripeObject + # Allocated Funds configuration for this PaymentIntent. + sig { returns(T.nilable(T::Boolean)) } + def enabled; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). sig { returns(Integer) } def amount; end @@ -32889,6 +32991,9 @@ module Stripe # A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers). sig { returns(T.nilable(String)) } def transfer_group; end + # Allocated Funds configuration for this PaymentIntent. + sig { returns(T.nilable(AllocatedFunds)) } + def allocated_funds; end # Manually reconcile the remaining amount for a customer_balance PaymentIntent. sig { params(params: T.any(::Stripe::PaymentIntentApplyCustomerBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) @@ -56029,6 +56134,12 @@ module Stripe # A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details. sig { returns(T.nilable(String)) } def transfer_group; end + # Attribute for field application_fee + sig { returns(T.nilable(T.any(String, ::Stripe::ApplicationFee))) } + def application_fee; end + # Attribute for field application_fee_amount + sig { returns(T.nilable(Integer)) } + def application_fee_amount; end # To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://docs.stripe.com/api#balance) must be able to cover the transfer amount, or you'll receive an “Insufficient Funds” error. sig { params(params: T.any(::Stripe::TransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Transfer) @@ -99787,58 +99898,6 @@ module Stripe } def initialize(billing_details: nil, card: nil, type: nil); end end - class RiskDetails < ::Stripe::RequestParams - class ClientDeviceMetadataDetails < ::Stripe::RequestParams - # The radar session. - sig { returns(T.nilable(String)) } - def radar_session; end - sig { params(_radar_session: T.nilable(String)).returns(T.nilable(String)) } - def radar_session=(_radar_session); end - # The referrer of the client device. - sig { returns(T.nilable(String)) } - def referrer; end - sig { params(_referrer: T.nilable(String)).returns(T.nilable(String)) } - def referrer=(_referrer); end - # The remote IP address of the client device. - sig { returns(T.nilable(String)) } - def remote_ip; end - sig { params(_remote_ip: T.nilable(String)).returns(T.nilable(String)) } - def remote_ip=(_remote_ip); end - # The time on page in seconds. - sig { returns(T.nilable(Integer)) } - def time_on_page; end - sig { params(_time_on_page: T.nilable(Integer)).returns(T.nilable(Integer)) } - def time_on_page=(_time_on_page); end - # The user agent of the client device. - sig { returns(T.nilable(String)) } - def user_agent; end - sig { params(_user_agent: T.nilable(String)).returns(T.nilable(String)) } - def user_agent=(_user_agent); end - sig { - params(radar_session: T.nilable(String), referrer: T.nilable(String), remote_ip: T.nilable(String), time_on_page: T.nilable(Integer), user_agent: T.nilable(String)).void - } - def initialize( - radar_session: nil, - referrer: nil, - remote_ip: nil, - time_on_page: nil, - user_agent: nil - ); end - end - # The client device metadata details for this requested session. - sig { - returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails::ClientDeviceMetadataDetails)) - } - def client_device_metadata_details; end - sig { - params(_client_device_metadata_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails::ClientDeviceMetadataDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails::ClientDeviceMetadataDetails)) - } - def client_device_metadata_details=(_client_device_metadata_details); end - sig { - params(client_device_metadata_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails::ClientDeviceMetadataDetails)).void - } - def initialize(client_device_metadata_details: nil); end - end class SellerDetails < ::Stripe::RequestParams # The network profile for the seller. sig { returns(String) } @@ -99898,13 +99957,6 @@ module Stripe params(_payment_method_data: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData)) } def payment_method_data=(_payment_method_data); end - # The risk details for this requested session. - sig { returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails)) } - def risk_details; end - sig { - params(_risk_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails)) - } - def risk_details=(_risk_details); end # The details of the seller. sig { returns(DelegatedCheckout::RequestedSessionCreateParams::SellerDetails) } def seller_details; end @@ -99925,7 +99977,7 @@ module Stripe } def shared_metadata=(_shared_metadata); end sig { - params(currency: String, customer: T.nilable(String), expand: T.nilable(T::Array[String]), fulfillment_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails), line_item_details: T::Array[DelegatedCheckout::RequestedSessionCreateParams::LineItemDetail], metadata: T.nilable(T::Hash[String, String]), payment_method: T.nilable(String), payment_method_data: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData), risk_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails), seller_details: DelegatedCheckout::RequestedSessionCreateParams::SellerDetails, setup_future_usage: T.nilable(String), shared_metadata: T.nilable(T::Hash[String, String])).void + params(currency: String, customer: T.nilable(String), expand: T.nilable(T::Array[String]), fulfillment_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails), line_item_details: T::Array[DelegatedCheckout::RequestedSessionCreateParams::LineItemDetail], metadata: T.nilable(T::Hash[String, String]), payment_method: T.nilable(String), payment_method_data: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData), seller_details: DelegatedCheckout::RequestedSessionCreateParams::SellerDetails, setup_future_usage: T.nilable(String), shared_metadata: T.nilable(T::Hash[String, String])).void } def initialize( currency: nil, @@ -99936,7 +99988,6 @@ module Stripe metadata: nil, payment_method: nil, payment_method_data: nil, - risk_details: nil, seller_details: nil, setup_future_usage: nil, shared_metadata: nil @@ -99948,6 +99999,58 @@ end module Stripe module DelegatedCheckout class RequestedSessionConfirmParams < ::Stripe::RequestParams + class RiskDetails < ::Stripe::RequestParams + class ClientDeviceMetadataDetails < ::Stripe::RequestParams + # The radar session. + sig { returns(T.nilable(String)) } + def radar_session; end + sig { params(_radar_session: T.nilable(String)).returns(T.nilable(String)) } + def radar_session=(_radar_session); end + # The referrer of the client device. + sig { returns(T.nilable(String)) } + def referrer; end + sig { params(_referrer: T.nilable(String)).returns(T.nilable(String)) } + def referrer=(_referrer); end + # The remote IP address of the client device. + sig { returns(T.nilable(String)) } + def remote_ip; end + sig { params(_remote_ip: T.nilable(String)).returns(T.nilable(String)) } + def remote_ip=(_remote_ip); end + # The time on page in milliseconds. + sig { returns(T.nilable(Integer)) } + def time_on_page_ms; end + sig { params(_time_on_page_ms: T.nilable(Integer)).returns(T.nilable(Integer)) } + def time_on_page_ms=(_time_on_page_ms); end + # The user agent of the client device. + sig { returns(T.nilable(String)) } + def user_agent; end + sig { params(_user_agent: T.nilable(String)).returns(T.nilable(String)) } + def user_agent=(_user_agent); end + sig { + params(radar_session: T.nilable(String), referrer: T.nilable(String), remote_ip: T.nilable(String), time_on_page_ms: T.nilable(Integer), user_agent: T.nilable(String)).void + } + def initialize( + radar_session: nil, + referrer: nil, + remote_ip: nil, + time_on_page_ms: nil, + user_agent: nil + ); end + end + # The client device metadata details for this requested session. + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails::ClientDeviceMetadataDetails)) + } + def client_device_metadata_details; end + sig { + params(_client_device_metadata_details: T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails::ClientDeviceMetadataDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails::ClientDeviceMetadataDetails)) + } + def client_device_metadata_details=(_client_device_metadata_details); end + sig { + params(client_device_metadata_details: T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails::ClientDeviceMetadataDetails)).void + } + def initialize(client_device_metadata_details: nil); end + end # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -99958,8 +100061,17 @@ module Stripe def payment_method; end sig { params(_payment_method: T.nilable(String)).returns(T.nilable(String)) } def payment_method=(_payment_method); end - sig { params(expand: T.nilable(T::Array[String]), payment_method: T.nilable(String)).void } - def initialize(expand: nil, payment_method: nil); end + # Risk details/signals associated with the requested session + sig { returns(T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails)) } + def risk_details; end + sig { + params(_risk_details: T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails)) + } + def risk_details=(_risk_details); end + sig { + params(expand: T.nilable(T::Array[String]), payment_method: T.nilable(String), risk_details: T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails)).void + } + def initialize(expand: nil, payment_method: nil, risk_details: nil); end end end end @@ -178939,8 +179051,13 @@ module Stripe def transfer_group; end sig { params(_transfer_group: T.nilable(String)).returns(T.nilable(String)) } def transfer_group=(_transfer_group); end + # Attribute for param field application_fee_amount + sig { returns(T.nilable(Integer)) } + def application_fee_amount; end + sig { params(_application_fee_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } + def application_fee_amount=(_application_fee_amount); end sig { - params(amount: T.nilable(Integer), currency: String, description: T.nilable(String), destination: String, expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), source_transaction: T.nilable(String), source_type: T.nilable(String), transfer_group: T.nilable(String)).void + params(amount: T.nilable(Integer), currency: String, description: T.nilable(String), destination: String, expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), source_transaction: T.nilable(String), source_type: T.nilable(String), transfer_group: T.nilable(String), application_fee_amount: T.nilable(Integer)).void } def initialize( amount: nil, @@ -178952,7 +179069,8 @@ module Stripe metadata: nil, source_transaction: nil, source_type: nil, - transfer_group: nil + transfer_group: nil, + application_fee_amount: nil ); end end end @@ -184127,14 +184245,22 @@ module Stripe params(_tenant_filters: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) } def tenant_filters=(_tenant_filters); end + # List of high cardinality tenant dimension keys to group by. If specified, usage events will be grouped by the given tenant dimension key's values. + sig { returns(T.nilable(T::Array[String])) } + def tenant_group_by_keys; end sig { - params(dimension_filters: T.nilable(T::Hash[String, String]), dimension_group_by_keys: T.nilable(T::Array[String]), meter: String, tenant_filters: T.nilable(T::Hash[String, String])).void + params(_tenant_group_by_keys: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) + } + def tenant_group_by_keys=(_tenant_group_by_keys); end + sig { + params(dimension_filters: T.nilable(T::Hash[String, String]), dimension_group_by_keys: T.nilable(T::Array[String]), meter: String, tenant_filters: T.nilable(T::Hash[String, String]), tenant_group_by_keys: T.nilable(T::Array[String])).void } def initialize( dimension_filters: nil, dimension_group_by_keys: nil, meter: nil, - tenant_filters: nil + tenant_filters: nil, + tenant_group_by_keys: nil ); end end # The customer id to fetch meter usage data for. diff --git a/rbi/stripe/params/billing/analytics/meter_usage_retrieve_params.rbi b/rbi/stripe/params/billing/analytics/meter_usage_retrieve_params.rbi index 82967287..45a7e10f 100644 --- a/rbi/stripe/params/billing/analytics/meter_usage_retrieve_params.rbi +++ b/rbi/stripe/params/billing/analytics/meter_usage_retrieve_params.rbi @@ -33,14 +33,22 @@ module Stripe params(_tenant_filters: T.nilable(T::Hash[String, String])).returns(T.nilable(T::Hash[String, String])) } def tenant_filters=(_tenant_filters); end + # List of high cardinality tenant dimension keys to group by. If specified, usage events will be grouped by the given tenant dimension key's values. + sig { returns(T.nilable(T::Array[String])) } + def tenant_group_by_keys; end sig { - params(dimension_filters: T.nilable(T::Hash[String, String]), dimension_group_by_keys: T.nilable(T::Array[String]), meter: String, tenant_filters: T.nilable(T::Hash[String, String])).void + params(_tenant_group_by_keys: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) + } + def tenant_group_by_keys=(_tenant_group_by_keys); end + sig { + params(dimension_filters: T.nilable(T::Hash[String, String]), dimension_group_by_keys: T.nilable(T::Array[String]), meter: String, tenant_filters: T.nilable(T::Hash[String, String]), tenant_group_by_keys: T.nilable(T::Array[String])).void } def initialize( dimension_filters: nil, dimension_group_by_keys: nil, meter: nil, - tenant_filters: nil + tenant_filters: nil, + tenant_group_by_keys: nil ); end end # The customer id to fetch meter usage data for. diff --git a/rbi/stripe/params/delegated_checkout/requested_session_confirm_params.rbi b/rbi/stripe/params/delegated_checkout/requested_session_confirm_params.rbi index bce5d11d..76f2ef77 100644 --- a/rbi/stripe/params/delegated_checkout/requested_session_confirm_params.rbi +++ b/rbi/stripe/params/delegated_checkout/requested_session_confirm_params.rbi @@ -5,6 +5,58 @@ module Stripe module DelegatedCheckout class RequestedSessionConfirmParams < ::Stripe::RequestParams + class RiskDetails < ::Stripe::RequestParams + class ClientDeviceMetadataDetails < ::Stripe::RequestParams + # The radar session. + sig { returns(T.nilable(String)) } + def radar_session; end + sig { params(_radar_session: T.nilable(String)).returns(T.nilable(String)) } + def radar_session=(_radar_session); end + # The referrer of the client device. + sig { returns(T.nilable(String)) } + def referrer; end + sig { params(_referrer: T.nilable(String)).returns(T.nilable(String)) } + def referrer=(_referrer); end + # The remote IP address of the client device. + sig { returns(T.nilable(String)) } + def remote_ip; end + sig { params(_remote_ip: T.nilable(String)).returns(T.nilable(String)) } + def remote_ip=(_remote_ip); end + # The time on page in milliseconds. + sig { returns(T.nilable(Integer)) } + def time_on_page_ms; end + sig { params(_time_on_page_ms: T.nilable(Integer)).returns(T.nilable(Integer)) } + def time_on_page_ms=(_time_on_page_ms); end + # The user agent of the client device. + sig { returns(T.nilable(String)) } + def user_agent; end + sig { params(_user_agent: T.nilable(String)).returns(T.nilable(String)) } + def user_agent=(_user_agent); end + sig { + params(radar_session: T.nilable(String), referrer: T.nilable(String), remote_ip: T.nilable(String), time_on_page_ms: T.nilable(Integer), user_agent: T.nilable(String)).void + } + def initialize( + radar_session: nil, + referrer: nil, + remote_ip: nil, + time_on_page_ms: nil, + user_agent: nil + ); end + end + # The client device metadata details for this requested session. + sig { + returns(T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails::ClientDeviceMetadataDetails)) + } + def client_device_metadata_details; end + sig { + params(_client_device_metadata_details: T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails::ClientDeviceMetadataDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails::ClientDeviceMetadataDetails)) + } + def client_device_metadata_details=(_client_device_metadata_details); end + sig { + params(client_device_metadata_details: T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails::ClientDeviceMetadataDetails)).void + } + def initialize(client_device_metadata_details: nil); end + end # Specifies which fields in the response should be expanded. sig { returns(T.nilable(T::Array[String])) } def expand; end @@ -15,8 +67,17 @@ module Stripe def payment_method; end sig { params(_payment_method: T.nilable(String)).returns(T.nilable(String)) } def payment_method=(_payment_method); end - sig { params(expand: T.nilable(T::Array[String]), payment_method: T.nilable(String)).void } - def initialize(expand: nil, payment_method: nil); end + # Risk details/signals associated with the requested session + sig { returns(T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails)) } + def risk_details; end + sig { + params(_risk_details: T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails)) + } + def risk_details=(_risk_details); end + sig { + params(expand: T.nilable(T::Array[String]), payment_method: T.nilable(String), risk_details: T.nilable(DelegatedCheckout::RequestedSessionConfirmParams::RiskDetails)).void + } + def initialize(expand: nil, payment_method: nil, risk_details: nil); end end end end \ No newline at end of file diff --git a/rbi/stripe/params/delegated_checkout/requested_session_create_params.rbi b/rbi/stripe/params/delegated_checkout/requested_session_create_params.rbi index a049ad6f..dbe50ac3 100644 --- a/rbi/stripe/params/delegated_checkout/requested_session_create_params.rbi +++ b/rbi/stripe/params/delegated_checkout/requested_session_create_params.rbi @@ -220,58 +220,6 @@ module Stripe } def initialize(billing_details: nil, card: nil, type: nil); end end - class RiskDetails < ::Stripe::RequestParams - class ClientDeviceMetadataDetails < ::Stripe::RequestParams - # The radar session. - sig { returns(T.nilable(String)) } - def radar_session; end - sig { params(_radar_session: T.nilable(String)).returns(T.nilable(String)) } - def radar_session=(_radar_session); end - # The referrer of the client device. - sig { returns(T.nilable(String)) } - def referrer; end - sig { params(_referrer: T.nilable(String)).returns(T.nilable(String)) } - def referrer=(_referrer); end - # The remote IP address of the client device. - sig { returns(T.nilable(String)) } - def remote_ip; end - sig { params(_remote_ip: T.nilable(String)).returns(T.nilable(String)) } - def remote_ip=(_remote_ip); end - # The time on page in seconds. - sig { returns(T.nilable(Integer)) } - def time_on_page; end - sig { params(_time_on_page: T.nilable(Integer)).returns(T.nilable(Integer)) } - def time_on_page=(_time_on_page); end - # The user agent of the client device. - sig { returns(T.nilable(String)) } - def user_agent; end - sig { params(_user_agent: T.nilable(String)).returns(T.nilable(String)) } - def user_agent=(_user_agent); end - sig { - params(radar_session: T.nilable(String), referrer: T.nilable(String), remote_ip: T.nilable(String), time_on_page: T.nilable(Integer), user_agent: T.nilable(String)).void - } - def initialize( - radar_session: nil, - referrer: nil, - remote_ip: nil, - time_on_page: nil, - user_agent: nil - ); end - end - # The client device metadata details for this requested session. - sig { - returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails::ClientDeviceMetadataDetails)) - } - def client_device_metadata_details; end - sig { - params(_client_device_metadata_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails::ClientDeviceMetadataDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails::ClientDeviceMetadataDetails)) - } - def client_device_metadata_details=(_client_device_metadata_details); end - sig { - params(client_device_metadata_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails::ClientDeviceMetadataDetails)).void - } - def initialize(client_device_metadata_details: nil); end - end class SellerDetails < ::Stripe::RequestParams # The network profile for the seller. sig { returns(String) } @@ -331,13 +279,6 @@ module Stripe params(_payment_method_data: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData)) } def payment_method_data=(_payment_method_data); end - # The risk details for this requested session. - sig { returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails)) } - def risk_details; end - sig { - params(_risk_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails)).returns(T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails)) - } - def risk_details=(_risk_details); end # The details of the seller. sig { returns(DelegatedCheckout::RequestedSessionCreateParams::SellerDetails) } def seller_details; end @@ -358,7 +299,7 @@ module Stripe } def shared_metadata=(_shared_metadata); end sig { - params(currency: String, customer: T.nilable(String), expand: T.nilable(T::Array[String]), fulfillment_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails), line_item_details: T::Array[DelegatedCheckout::RequestedSessionCreateParams::LineItemDetail], metadata: T.nilable(T::Hash[String, String]), payment_method: T.nilable(String), payment_method_data: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData), risk_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::RiskDetails), seller_details: DelegatedCheckout::RequestedSessionCreateParams::SellerDetails, setup_future_usage: T.nilable(String), shared_metadata: T.nilable(T::Hash[String, String])).void + params(currency: String, customer: T.nilable(String), expand: T.nilable(T::Array[String]), fulfillment_details: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::FulfillmentDetails), line_item_details: T::Array[DelegatedCheckout::RequestedSessionCreateParams::LineItemDetail], metadata: T.nilable(T::Hash[String, String]), payment_method: T.nilable(String), payment_method_data: T.nilable(DelegatedCheckout::RequestedSessionCreateParams::PaymentMethodData), seller_details: DelegatedCheckout::RequestedSessionCreateParams::SellerDetails, setup_future_usage: T.nilable(String), shared_metadata: T.nilable(T::Hash[String, String])).void } def initialize( currency: nil, @@ -369,7 +310,6 @@ module Stripe metadata: nil, payment_method: nil, payment_method_data: nil, - risk_details: nil, seller_details: nil, setup_future_usage: nil, shared_metadata: nil diff --git a/rbi/stripe/params/transfer_create_params.rbi b/rbi/stripe/params/transfer_create_params.rbi index 054602dc..2e92b384 100644 --- a/rbi/stripe/params/transfer_create_params.rbi +++ b/rbi/stripe/params/transfer_create_params.rbi @@ -56,8 +56,13 @@ module Stripe def transfer_group; end sig { params(_transfer_group: T.nilable(String)).returns(T.nilable(String)) } def transfer_group=(_transfer_group); end + # Attribute for param field application_fee_amount + sig { returns(T.nilable(Integer)) } + def application_fee_amount; end + sig { params(_application_fee_amount: T.nilable(Integer)).returns(T.nilable(Integer)) } + def application_fee_amount=(_application_fee_amount); end sig { - params(amount: T.nilable(Integer), currency: String, description: T.nilable(String), destination: String, expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), source_transaction: T.nilable(String), source_type: T.nilable(String), transfer_group: T.nilable(String)).void + params(amount: T.nilable(Integer), currency: String, description: T.nilable(String), destination: String, expand: T.nilable(T::Array[String]), fx_quote: T.nilable(String), metadata: T.nilable(T::Hash[String, String]), source_transaction: T.nilable(String), source_type: T.nilable(String), transfer_group: T.nilable(String), application_fee_amount: T.nilable(Integer)).void } def initialize( amount: nil, @@ -69,7 +74,8 @@ module Stripe metadata: nil, source_transaction: nil, source_type: nil, - transfer_group: nil + transfer_group: nil, + application_fee_amount: nil ); end end end \ No newline at end of file diff --git a/rbi/stripe/resources/application_fee.rbi b/rbi/stripe/resources/application_fee.rbi index b7165ed9..48fa8b6a 100644 --- a/rbi/stripe/resources/application_fee.rbi +++ b/rbi/stripe/resources/application_fee.rbi @@ -14,6 +14,9 @@ module Stripe # Type of object that created the application fee. sig { returns(String) } def type; end + # Transfer ID that created this application fee. + sig { returns(T.nilable(String)) } + def transfer; end def self.inner_class_types @inner_class_types = {} end diff --git a/rbi/stripe/resources/balance.rbi b/rbi/stripe/resources/balance.rbi index 124562fb..87ad9a50 100644 --- a/rbi/stripe/resources/balance.rbi +++ b/rbi/stripe/resources/balance.rbi @@ -310,6 +310,88 @@ module Stripe @field_remappings = {} end end + class TransitBalancesTotal < ::Stripe::StripeObject + class Available < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject + # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). + sig { returns(T.nilable(Integer)) } + def bank_account; end + # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). + sig { returns(T.nilable(Integer)) } + def card; end + # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. + sig { returns(T.nilable(Integer)) } + def fpx; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Balance amount. + sig { returns(Integer) } + def amount; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # Attribute for field source_types + sig { returns(T.nilable(SourceTypes)) } + def source_types; end + def self.inner_class_types + @inner_class_types = {source_types: SourceTypes} + end + def self.field_remappings + @field_remappings = {} + end + end + class Pending < ::Stripe::StripeObject + class SourceTypes < ::Stripe::StripeObject + # Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated). + sig { returns(T.nilable(Integer)) } + def bank_account; end + # Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits). + sig { returns(T.nilable(Integer)) } + def card; end + # Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method. + sig { returns(T.nilable(Integer)) } + def fpx; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end + # Balance amount. + sig { returns(Integer) } + def amount; end + # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + sig { returns(String) } + def currency; end + # Attribute for field source_types + sig { returns(T.nilable(SourceTypes)) } + def source_types; end + def self.inner_class_types + @inner_class_types = {source_types: SourceTypes} + end + def self.field_remappings + @field_remappings = {} + end + end + # Funds that are available for use. + sig { returns(T::Array[Available]) } + def available; end + # Funds that are pending + sig { returns(T::Array[Pending]) } + def pending; end + def self.inner_class_types + @inner_class_types = {available: Available, pending: Pending} + end + def self.field_remappings + @field_remappings = {} + end + end # Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts). You can find the available balance for each currency and payment type in the `source_types` property. sig { returns(T::Array[Available]) } def available; end @@ -334,5 +416,8 @@ module Stripe # Attribute for field refund_and_dispute_prefunding sig { returns(T.nilable(RefundAndDisputePrefunding)) } def refund_and_dispute_prefunding; end + # Attribute for field transit_balances_total + sig { returns(T.nilable(TransitBalancesTotal)) } + def transit_balances_total; end end end \ No newline at end of file diff --git a/rbi/stripe/resources/billing/analytics/meter_usage_row.rbi b/rbi/stripe/resources/billing/analytics/meter_usage_row.rbi index 6daf2e8c..47b16389 100644 --- a/rbi/stripe/resources/billing/analytics/meter_usage_row.rbi +++ b/rbi/stripe/resources/billing/analytics/meter_usage_row.rbi @@ -27,6 +27,9 @@ module Stripe # The aggregated meter usage value for the specified bucket. sig { returns(Float) } def value; end + # A set of key-value pairs representing the tenants of the meter usage. + sig { returns(T.nilable(T::Hash[String, String])) } + def tenants; end end end end diff --git a/rbi/stripe/resources/payment_intent.rbi b/rbi/stripe/resources/payment_intent.rbi index dc237c1d..130bc878 100644 --- a/rbi/stripe/resources/payment_intent.rbi +++ b/rbi/stripe/resources/payment_intent.rbi @@ -3605,6 +3605,17 @@ module Stripe @field_remappings = {} end end + class AllocatedFunds < ::Stripe::StripeObject + # Allocated Funds configuration for this PaymentIntent. + sig { returns(T.nilable(T::Boolean)) } + def enabled; end + def self.inner_class_types + @inner_class_types = {} + end + def self.field_remappings + @field_remappings = {} + end + end # Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). sig { returns(Integer) } def amount; end @@ -3765,6 +3776,9 @@ module Stripe # A string that identifies the resulting payment as part of a group. Learn more about the [use case for connected accounts](https://stripe.com/docs/connect/separate-charges-and-transfers). sig { returns(T.nilable(String)) } def transfer_group; end + # Allocated Funds configuration for this PaymentIntent. + sig { returns(T.nilable(AllocatedFunds)) } + def allocated_funds; end # Manually reconcile the remaining amount for a customer_balance PaymentIntent. sig { params(params: T.any(::Stripe::PaymentIntentApplyCustomerBalanceParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::PaymentIntent) diff --git a/rbi/stripe/resources/transfer.rbi b/rbi/stripe/resources/transfer.rbi index 8ca60b33..90b55196 100644 --- a/rbi/stripe/resources/transfer.rbi +++ b/rbi/stripe/resources/transfer.rbi @@ -68,6 +68,12 @@ module Stripe # A string that identifies this transaction as part of a group. See the [Connect documentation](https://stripe.com/docs/connect/separate-charges-and-transfers#transfer-options) for details. sig { returns(T.nilable(String)) } def transfer_group; end + # Attribute for field application_fee + sig { returns(T.nilable(T.any(String, ::Stripe::ApplicationFee))) } + def application_fee; end + # Attribute for field application_fee_amount + sig { returns(T.nilable(Integer)) } + def application_fee_amount; end # To send funds from your Stripe account to a connected account, you create a new transfer object. Your [Stripe balance](https://docs.stripe.com/api#balance) must be able to cover the transfer amount, or you'll receive an “Insufficient Funds” error. sig { params(params: T.any(::Stripe::TransferCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Transfer)