diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 4263345a2..a7ed76c94 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1383 \ No newline at end of file +v1405 \ No newline at end of file diff --git a/lib/stripe/api_version.rb b/lib/stripe/api_version.rb index cb1d8b67d..9fc77642b 100644 --- a/lib/stripe/api_version.rb +++ b/lib/stripe/api_version.rb @@ -3,6 +3,6 @@ module Stripe module ApiVersion - CURRENT = "2024-11-20.acacia" + CURRENT = "2024-12-18.acacia" end end diff --git a/lib/stripe/resources/billing/credit_balance_transaction.rb b/lib/stripe/resources/billing/credit_balance_transaction.rb index 4070db5c1..ba740b821 100644 --- a/lib/stripe/resources/billing/credit_balance_transaction.rb +++ b/lib/stripe/resources/billing/credit_balance_transaction.rb @@ -19,7 +19,11 @@ class Monetary < Stripe::StripeObject end attr_reader :monetary, :type end - attr_reader :amount, :type + + class CreditsApplicationInvoiceVoided < Stripe::StripeObject + attr_reader :invoice, :invoice_line_item + end + attr_reader :amount, :credits_application_invoice_voided, :type end class Debit < Stripe::StripeObject diff --git a/lib/stripe/resources/card.rb b/lib/stripe/resources/card.rb index 4904e6874..12e5ad8bb 100644 --- a/lib/stripe/resources/card.rb +++ b/lib/stripe/resources/card.rb @@ -38,6 +38,8 @@ class Networks < Stripe::StripeObject attr_reader :address_zip # If `address_zip` was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`. attr_reader :address_zip_check + # 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. The field defaults to “unspecified”. + attr_reader :allow_redisplay # A set of available payout methods for this card. Only values from this set should be passed as the `method` when creating a payout. attr_reader :available_payout_methods # Card brand. Can be `American Express`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`. @@ -82,6 +84,8 @@ class Networks < Stripe::StripeObject attr_reader :networks # String representing the object's type. Objects of the same type share the same value. attr_reader :object + # Status of a card based on the card issuer. + attr_reader :regulated_status # For external accounts that are cards, possible values are `new` and `errored`. If a payout fails, the status is set to `errored` and [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) are stopped until account details are updated. attr_reader :status # If the card number is tokenized, this is the method that was used. Can be `android_pay` (includes Google Pay), `apple_pay`, `masterpass`, `visa_checkout`, or null. diff --git a/lib/stripe/resources/charge.rb b/lib/stripe/resources/charge.rb index ef7d2e43e..f1b512489 100644 --- a/lib/stripe/resources/charge.rb +++ b/lib/stripe/resources/charge.rb @@ -177,7 +177,7 @@ class ShippingAddress < Stripe::StripeObject end attr_reader :amex_express_checkout, :apple_pay, :dynamic_last4, :google_pay, :link, :masterpass, :samsung_pay, :type, :visa_checkout end - attr_reader :amount_authorized, :amount_requested, :authorization_code, :brand, :capture_before, :checks, :country, :decremental_authorization, :description, :exp_month, :exp_year, :extended_authorization, :fingerprint, :funding, :iin, :incremental_authorization, :installments, :issuer, :last4, :mandate, :moto, :multicapture, :network, :network_token, :overcapture, :partial_authorization, :three_d_secure, :wallet + attr_reader :amount_authorized, :amount_requested, :authorization_code, :brand, :capture_before, :checks, :country, :decremental_authorization, :description, :exp_month, :exp_year, :extended_authorization, :fingerprint, :funding, :iin, :incremental_authorization, :installments, :issuer, :last4, :mandate, :moto, :multicapture, :network, :network_token, :network_transaction_id, :overcapture, :partial_authorization, :regulated_status, :three_d_secure, :wallet end class CardPresent < Stripe::StripeObject diff --git a/lib/stripe/resources/confirmation_token.rb b/lib/stripe/resources/confirmation_token.rb index 6166c21e1..3d8401feb 100644 --- a/lib/stripe/resources/confirmation_token.rb +++ b/lib/stripe/resources/confirmation_token.rb @@ -131,7 +131,7 @@ class ShippingAddress < Stripe::StripeObject end attr_reader :amex_express_checkout, :apple_pay, :dynamic_last4, :google_pay, :link, :masterpass, :samsung_pay, :type, :visa_checkout end - attr_reader :brand, :checks, :country, :description, :display_brand, :exp_month, :exp_year, :fingerprint, :funding, :generated_from, :iin, :issuer, :last4, :networks, :three_d_secure_usage, :wallet + attr_reader :brand, :checks, :country, :description, :display_brand, :exp_month, :exp_year, :fingerprint, :funding, :generated_from, :iin, :issuer, :last4, :networks, :regulated_status, :three_d_secure_usage, :wallet end class CardPresent < Stripe::StripeObject diff --git a/lib/stripe/resources/dispute.rb b/lib/stripe/resources/dispute.rb index ad46a11ba..2bfc63802 100644 --- a/lib/stripe/resources/dispute.rb +++ b/lib/stripe/resources/dispute.rb @@ -34,7 +34,11 @@ class ShippingAddress < Stripe::StripeObject end attr_reader :disputed_transaction, :prior_undisputed_transactions end - attr_reader :visa_compelling_evidence_3 + + class VisaCompliance < Stripe::StripeObject + attr_reader :fee_acknowledged + end + attr_reader :visa_compelling_evidence_3, :visa_compliance end attr_reader :access_activity_log, :billing_address, :cancellation_policy, :cancellation_policy_disclosure, :cancellation_rebuttal, :customer_communication, :customer_email_address, :customer_name, :customer_purchase_ip, :customer_signature, :duplicate_charge_documentation, :duplicate_charge_explanation, :duplicate_charge_id, :enhanced_evidence, :product_description, :receipt, :refund_policy, :refund_policy_disclosure, :refund_refusal_explanation, :service_date, :service_documentation, :shipping_address, :shipping_carrier, :shipping_date, :shipping_documentation, :shipping_tracking_number, :uncategorized_file, :uncategorized_text end @@ -44,7 +48,11 @@ class EnhancedEligibility < Stripe::StripeObject class VisaCompellingEvidence3 < Stripe::StripeObject attr_reader :required_actions, :status end - attr_reader :visa_compelling_evidence_3 + + class VisaCompliance < Stripe::StripeObject + attr_reader :status + end + attr_reader :visa_compelling_evidence_3, :visa_compliance end attr_reader :due_by, :enhanced_eligibility, :has_evidence, :past_due, :submission_count end diff --git a/lib/stripe/resources/issuing/authorization.rb b/lib/stripe/resources/issuing/authorization.rb index cc78edd17..7d3d01242 100644 --- a/lib/stripe/resources/issuing/authorization.rb +++ b/lib/stripe/resources/issuing/authorization.rb @@ -53,7 +53,7 @@ class Fuel < Stripe::StripeObject end class MerchantData < Stripe::StripeObject - attr_reader :category, :category_code, :city, :country, :name, :network_id, :postal_code, :state, :terminal_id, :url + attr_reader :category, :category_code, :city, :country, :name, :network_id, :postal_code, :state, :tax_id, :terminal_id, :url end class NetworkData < Stripe::StripeObject diff --git a/lib/stripe/resources/issuing/transaction.rb b/lib/stripe/resources/issuing/transaction.rb index 8ff91af19..f59cbefc8 100644 --- a/lib/stripe/resources/issuing/transaction.rb +++ b/lib/stripe/resources/issuing/transaction.rb @@ -22,7 +22,7 @@ class AmountDetails < Stripe::StripeObject end class MerchantData < Stripe::StripeObject - attr_reader :category, :category_code, :city, :country, :name, :network_id, :postal_code, :state, :terminal_id, :url + attr_reader :category, :category_code, :city, :country, :name, :network_id, :postal_code, :state, :tax_id, :terminal_id, :url end class NetworkData < Stripe::StripeObject diff --git a/lib/stripe/resources/payment_method.rb b/lib/stripe/resources/payment_method.rb index 0cf025150..4f47f1a86 100644 --- a/lib/stripe/resources/payment_method.rb +++ b/lib/stripe/resources/payment_method.rb @@ -115,7 +115,7 @@ class ShippingAddress < Stripe::StripeObject end attr_reader :amex_express_checkout, :apple_pay, :dynamic_last4, :google_pay, :link, :masterpass, :samsung_pay, :type, :visa_checkout end - attr_reader :brand, :checks, :country, :description, :display_brand, :exp_month, :exp_year, :fingerprint, :funding, :generated_from, :iin, :issuer, :last4, :networks, :three_d_secure_usage, :wallet + attr_reader :brand, :checks, :country, :description, :display_brand, :exp_month, :exp_year, :fingerprint, :funding, :generated_from, :iin, :issuer, :last4, :networks, :regulated_status, :three_d_secure_usage, :wallet end class CardPresent < Stripe::StripeObject diff --git a/lib/stripe/resources/payment_record.rb b/lib/stripe/resources/payment_record.rb index d06e56715..6c7ec4d26 100644 --- a/lib/stripe/resources/payment_record.rb +++ b/lib/stripe/resources/payment_record.rb @@ -24,10 +24,6 @@ class AmountGuaranteed < Stripe::StripeObject attr_reader :currency, :value end - class AmountRefunded < Stripe::StripeObject - attr_reader :currency, :value - end - class AmountRequested < Stripe::StripeObject attr_reader :currency, :value end @@ -63,8 +59,6 @@ class Address < Stripe::StripeObject # 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 # Time at which the object was created. Measured in seconds since the Unix epoch. attr_reader :created diff --git a/lib/stripe/resources/source.rb b/lib/stripe/resources/source.rb index d6e752320..c52fb9fe1 100644 --- a/lib/stripe/resources/source.rb +++ b/lib/stripe/resources/source.rb @@ -148,6 +148,8 @@ class Wechat < Stripe::StripeObject attr_reader :acss_debit # Attribute for field alipay attr_reader :alipay + # 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. The field defaults to “unspecified”. + attr_reader :allow_redisplay # A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount associated with the source. This is the amount for which the source will be chargeable once ready. Required for `single_use` sources. attr_reader :amount # Attribute for field au_becs_debit diff --git a/lib/stripe/resources/tax_id.rb b/lib/stripe/resources/tax_id.rb index 20f1c29cc..9c03f2481 100644 --- a/lib/stripe/resources/tax_id.rb +++ b/lib/stripe/resources/tax_id.rb @@ -37,7 +37,7 @@ class Verification < Stripe::StripeObject attr_reader :object # The account or customer the tax ID belongs to. attr_reader :owner - # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown` + # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `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`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `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`, `kh_tin`, `kr_brn`, `kz_bin`, `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`. Note that some legacy tax IDs have type `unknown` attr_reader :type # Value of the tax ID. attr_reader :value diff --git a/lib/stripe/resources/terminal/reader.rb b/lib/stripe/resources/terminal/reader.rb index c57b5f984..fc6d5e0e4 100644 --- a/lib/stripe/resources/terminal/reader.rb +++ b/lib/stripe/resources/terminal/reader.rb @@ -66,11 +66,11 @@ class Tipping < Stripe::StripeObject end attr_reader :enable_customer_cancellation, :skip_tipping, :tipping end - attr_reader :collect_config, :payment_intent, :payment_method, :stripe_account + attr_reader :account, :collect_config, :payment_intent, :payment_method, :stripe_account end class ConfirmPaymentIntent < Stripe::StripeObject - attr_reader :payment_intent, :stripe_account + attr_reader :account, :payment_intent, :stripe_account end class ProcessPaymentIntent < Stripe::StripeObject @@ -80,7 +80,7 @@ class Tipping < Stripe::StripeObject end attr_reader :enable_customer_cancellation, :skip_tipping, :tipping end - attr_reader :payment_intent, :process_config, :stripe_account + attr_reader :account, :payment_intent, :process_config, :stripe_account end class ProcessSetupIntent < Stripe::StripeObject @@ -94,7 +94,7 @@ class RefundPayment < Stripe::StripeObject class RefundPaymentConfig < Stripe::StripeObject attr_reader :enable_customer_cancellation end - attr_reader :amount, :charge, :metadata, :payment_intent, :reason, :refund, :refund_application_fee, :refund_payment_config, :reverse_transfer, :stripe_account + attr_reader :account, :amount, :charge, :metadata, :payment_intent, :reason, :refund, :refund_application_fee, :refund_payment_config, :reverse_transfer, :stripe_account end class SetReaderDisplay < Stripe::StripeObject diff --git a/rbi/stripe/resources/billing/credit_balance_transaction.rbi b/rbi/stripe/resources/billing/credit_balance_transaction.rbi index efe2fe15b..294c521f0 100644 --- a/rbi/stripe/resources/billing/credit_balance_transaction.rbi +++ b/rbi/stripe/resources/billing/credit_balance_transaction.rbi @@ -19,8 +19,16 @@ module Stripe sig { returns(String) } attr_reader :type end + class CreditsApplicationInvoiceVoided < Stripe::StripeObject + sig { returns(T.any(String, Stripe::Invoice)) } + attr_reader :invoice + sig { returns(String) } + attr_reader :invoice_line_item + end sig { returns(Amount) } attr_reader :amount + sig { returns(T.nilable(CreditsApplicationInvoiceVoided)) } + attr_reader :credits_application_invoice_voided sig { returns(String) } attr_reader :type end diff --git a/rbi/stripe/resources/capital/financing_summary.rbi b/rbi/stripe/resources/capital/financing_summary.rbi index 82b34f0c4..7b35f442e 100644 --- a/rbi/stripe/resources/capital/financing_summary.rbi +++ b/rbi/stripe/resources/capital/financing_summary.rbi @@ -9,7 +9,7 @@ module Stripe class FinancingSummary < SingletonAPIResource class Details < Stripe::StripeObject class CurrentRepaymentInterval < Stripe::StripeObject - sig { returns(Integer) } + sig { returns(Float) } attr_reader :due_at sig { returns(T.nilable(Integer)) } attr_reader :paid_amount @@ -18,7 +18,7 @@ module Stripe end sig { returns(Integer) } attr_reader :advance_amount - sig { returns(T.nilable(Integer)) } + sig { returns(T.nilable(Float)) } attr_reader :advance_paid_out_at sig { returns(String) } attr_reader :currency @@ -30,7 +30,7 @@ module Stripe attr_reader :paid_amount sig { returns(Integer) } attr_reader :remaining_amount - sig { returns(T.nilable(Integer)) } + sig { returns(T.nilable(Float)) } attr_reader :repayments_begin_at sig { returns(Float) } attr_reader :withhold_rate diff --git a/rbi/stripe/resources/card.rbi b/rbi/stripe/resources/card.rbi index 6ff38acad..0650e8fcb 100644 --- a/rbi/stripe/resources/card.rbi +++ b/rbi/stripe/resources/card.rbi @@ -40,6 +40,9 @@ module Stripe sig { returns(T.nilable(String)) } # If `address_zip` was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`. attr_reader :address_zip_check + sig { returns(T.nilable(String)) } + # 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. The field defaults to “unspecified”. + attr_reader :allow_redisplay sig { returns(T.nilable(T::Array[String])) } # A set of available payout methods for this card. Only values from this set should be passed as the `method` when creating a payout. attr_reader :available_payout_methods @@ -106,6 +109,9 @@ module Stripe # String representing the object's type. Objects of the same type share the same value. attr_reader :object sig { returns(T.nilable(String)) } + # Status of a card based on the card issuer. + attr_reader :regulated_status + sig { returns(T.nilable(String)) } # For external accounts that are cards, possible values are `new` and `errored`. If a payout fails, the status is set to `errored` and [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) are stopped until account details are updated. attr_reader :status sig { returns(T.nilable(String)) } diff --git a/rbi/stripe/resources/charge.rbi b/rbi/stripe/resources/charge.rbi index 88afe84f4..968f8501c 100644 --- a/rbi/stripe/resources/charge.rbi +++ b/rbi/stripe/resources/charge.rbi @@ -440,10 +440,14 @@ module Stripe attr_reader :network sig { returns(T.nilable(NetworkToken)) } attr_reader :network_token + sig { returns(T.nilable(String)) } + attr_reader :network_transaction_id sig { returns(Overcapture) } attr_reader :overcapture sig { returns(PartialAuthorization) } attr_reader :partial_authorization + sig { returns(T.nilable(String)) } + attr_reader :regulated_status sig { returns(T.nilable(ThreeDSecure)) } attr_reader :three_d_secure sig { returns(T.nilable(Wallet)) } diff --git a/rbi/stripe/resources/confirmation_token.rbi b/rbi/stripe/resources/confirmation_token.rbi index 19356d838..5ec7cd00f 100644 --- a/rbi/stripe/resources/confirmation_token.rbi +++ b/rbi/stripe/resources/confirmation_token.rbi @@ -343,6 +343,8 @@ module Stripe attr_reader :last4 sig { returns(T.nilable(Networks)) } attr_reader :networks + sig { returns(T.nilable(String)) } + attr_reader :regulated_status sig { returns(T.nilable(ThreeDSecureUsage)) } attr_reader :three_d_secure_usage sig { returns(T.nilable(Wallet)) } diff --git a/rbi/stripe/resources/dispute.rbi b/rbi/stripe/resources/dispute.rbi index ea7e2266b..ad7c74254 100644 --- a/rbi/stripe/resources/dispute.rbi +++ b/rbi/stripe/resources/dispute.rbi @@ -81,8 +81,14 @@ module Stripe sig { returns(T::Array[PriorUndisputedTransaction]) } attr_reader :prior_undisputed_transactions end + class VisaCompliance < Stripe::StripeObject + sig { returns(T::Boolean) } + attr_reader :fee_acknowledged + end sig { returns(VisaCompellingEvidence3) } attr_reader :visa_compelling_evidence_3 + sig { returns(VisaCompliance) } + attr_reader :visa_compliance end sig { returns(T.nilable(String)) } attr_reader :access_activity_log @@ -149,8 +155,14 @@ module Stripe sig { returns(String) } attr_reader :status end + class VisaCompliance < Stripe::StripeObject + sig { returns(String) } + attr_reader :status + end sig { returns(VisaCompellingEvidence3) } attr_reader :visa_compelling_evidence_3 + sig { returns(VisaCompliance) } + attr_reader :visa_compliance end sig { returns(T.nilable(Integer)) } attr_reader :due_by diff --git a/rbi/stripe/resources/issuing/authorization.rbi b/rbi/stripe/resources/issuing/authorization.rbi index 5748c28e2..1681e6010 100644 --- a/rbi/stripe/resources/issuing/authorization.rbi +++ b/rbi/stripe/resources/issuing/authorization.rbi @@ -100,6 +100,8 @@ module Stripe sig { returns(T.nilable(String)) } attr_reader :state sig { returns(T.nilable(String)) } + attr_reader :tax_id + sig { returns(T.nilable(String)) } attr_reader :terminal_id sig { returns(T.nilable(String)) } attr_reader :url diff --git a/rbi/stripe/resources/issuing/transaction.rbi b/rbi/stripe/resources/issuing/transaction.rbi index d11aa8e17..d9c50977a 100644 --- a/rbi/stripe/resources/issuing/transaction.rbi +++ b/rbi/stripe/resources/issuing/transaction.rbi @@ -34,6 +34,8 @@ module Stripe sig { returns(T.nilable(String)) } attr_reader :state sig { returns(T.nilable(String)) } + attr_reader :tax_id + sig { returns(T.nilable(String)) } attr_reader :terminal_id sig { returns(T.nilable(String)) } attr_reader :url diff --git a/rbi/stripe/resources/payment_method.rbi b/rbi/stripe/resources/payment_method.rbi index b98e52cb2..ca2e437d2 100644 --- a/rbi/stripe/resources/payment_method.rbi +++ b/rbi/stripe/resources/payment_method.rbi @@ -316,6 +316,8 @@ module Stripe attr_reader :last4 sig { returns(T.nilable(Networks)) } attr_reader :networks + sig { returns(T.nilable(String)) } + attr_reader :regulated_status sig { returns(T.nilable(ThreeDSecureUsage)) } attr_reader :three_d_secure_usage sig { returns(T.nilable(Wallet)) } diff --git a/rbi/stripe/resources/payment_record.rbi b/rbi/stripe/resources/payment_record.rbi index 6c34020ac..9e74116a5 100644 --- a/rbi/stripe/resources/payment_record.rbi +++ b/rbi/stripe/resources/payment_record.rbi @@ -26,12 +26,6 @@ module Stripe sig { returns(Integer) } attr_reader :value end - class AmountRefunded < Stripe::StripeObject - sig { returns(String) } - attr_reader :currency - sig { returns(Integer) } - attr_reader :value - end class AmountRequested < Stripe::StripeObject sig { returns(String) } attr_reader :currency @@ -119,9 +113,6 @@ module Stripe sig { returns(AmountGuaranteed) } # A representation of an amount of money, consisting of an amount and a currency. attr_reader :amount_guaranteed - sig { returns(AmountRefunded) } - # A representation of an amount of money, consisting of an amount and a currency. - attr_reader :amount_refunded sig { returns(AmountRequested) } # A representation of an amount of money, consisting of an amount and a currency. attr_reader :amount_requested diff --git a/rbi/stripe/resources/source.rbi b/rbi/stripe/resources/source.rbi index 9116e3446..23d1da172 100644 --- a/rbi/stripe/resources/source.rbi +++ b/rbi/stripe/resources/source.rbi @@ -560,6 +560,9 @@ module Stripe sig { returns(Alipay) } # Attribute for field alipay attr_reader :alipay + sig { returns(T.nilable(String)) } + # 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. The field defaults to “unspecified”. + attr_reader :allow_redisplay sig { returns(T.nilable(Integer)) } # A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount associated with the source. This is the amount for which the source will be chargeable once ready. Required for `single_use` sources. attr_reader :amount diff --git a/rbi/stripe/resources/tax_id.rbi b/rbi/stripe/resources/tax_id.rbi index 9844a442f..3176744be 100644 --- a/rbi/stripe/resources/tax_id.rbi +++ b/rbi/stripe/resources/tax_id.rbi @@ -48,7 +48,7 @@ module Stripe # The account or customer the tax ID belongs to. attr_reader :owner sig { returns(String) } - # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown` + # Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `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`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `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`, `kh_tin`, `kr_brn`, `kz_bin`, `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`. Note that some legacy tax IDs have type `unknown` attr_reader :type sig { returns(String) } # Value of the tax ID. diff --git a/rbi/stripe/resources/terminal/reader.rbi b/rbi/stripe/resources/terminal/reader.rbi index d6d31698e..a9159a2fc 100644 --- a/rbi/stripe/resources/terminal/reader.rbi +++ b/rbi/stripe/resources/terminal/reader.rbi @@ -104,6 +104,8 @@ module Stripe sig { returns(Tipping) } attr_reader :tipping end + sig { returns(String) } + attr_reader :account sig { returns(CollectConfig) } attr_reader :collect_config sig { returns(T.any(String, Stripe::PaymentIntent)) } @@ -114,6 +116,8 @@ module Stripe attr_reader :stripe_account end class ConfirmPaymentIntent < Stripe::StripeObject + sig { returns(String) } + attr_reader :account sig { returns(T.any(String, Stripe::PaymentIntent)) } attr_reader :payment_intent sig { returns(String) } @@ -132,6 +136,8 @@ module Stripe sig { returns(Tipping) } attr_reader :tipping end + sig { returns(String) } + attr_reader :account sig { returns(T.any(String, Stripe::PaymentIntent)) } attr_reader :payment_intent sig { returns(ProcessConfig) } @@ -156,6 +162,8 @@ module Stripe sig { returns(T::Boolean) } attr_reader :enable_customer_cancellation end + sig { returns(String) } + attr_reader :account sig { returns(Integer) } attr_reader :amount sig { returns(T.any(String, Stripe::Charge)) }