Skip to content

Commit

Permalink
Merge pull request #1523 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
Update generated code for beta
  • Loading branch information
stripe-openapi[bot] authored Jan 23, 2025
2 parents 9896232 + 5b20aab commit 601cc26
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 56 deletions.
25 changes: 0 additions & 25 deletions CONTRIBUTING.md

This file was deleted.

2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1454
v1460
6 changes: 3 additions & 3 deletions lib/stripe/resources/charge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ class ShippingAddress < Stripe::StripeObject
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. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
# 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
# Attribute for field overcapture
attr_reader :overcapture
Expand Down Expand Up @@ -583,7 +583,7 @@ class Wallet < Stripe::StripeObject
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. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
# 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
Expand Down Expand Up @@ -726,7 +726,7 @@ class Receipt < Stripe::StripeObject
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. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
# 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
# EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
attr_reader :preferred_locales
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/resources/confirmation_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class Wallet < Stripe::StripeObject
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. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
# 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
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/resources/payment_method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class Wallet < Stripe::StripeObject
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. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
# 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
Expand Down
8 changes: 0 additions & 8 deletions lib/stripe/resources/terminal/reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,13 @@ class Tipping < Stripe::StripeObject
#
# Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios).
attr_reader :payment_method
# This field will be deprecated. Please use `account` instead.
attr_reader :stripe_account
end

class ConfirmPaymentIntent < Stripe::StripeObject
# Account the payment intent belongs to.
attr_reader :account
# Most recent PaymentIntent processed by the reader.
attr_reader :payment_intent
# This field will be deprecated. Please use `account` instead.
attr_reader :stripe_account
end

class ProcessPaymentIntent < Stripe::StripeObject
Expand All @@ -165,8 +161,6 @@ class Tipping < Stripe::StripeObject
attr_reader :payment_intent
# Represents a per-transaction override of a reader configuration
attr_reader :process_config
# This field will be deprecated. Please use `account` instead.
attr_reader :stripe_account
end

class ProcessSetupIntent < Stripe::StripeObject
Expand Down Expand Up @@ -207,8 +201,6 @@ class RefundPaymentConfig < Stripe::StripeObject
attr_reader :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_reader :reverse_transfer
# This field will be deprecated. Please use `account` instead.
attr_reader :stripe_account
end

class SetReaderDisplay < Stripe::StripeObject
Expand Down
6 changes: 3 additions & 3 deletions rbi/stripe/resources/charge.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ module Stripe
# If this card has network token credentials, this contains the details of the network token credentials.
sig { returns(T.nilable(NetworkToken)) }
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. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
# 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)) }
attr_reader :network_transaction_id
# Attribute for field overcapture
Expand Down Expand Up @@ -746,7 +746,7 @@ module Stripe
# 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)) }
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. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
# 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)) }
attr_reader :network_transaction_id
# Details about payments collected offline.
Expand Down Expand Up @@ -932,7 +932,7 @@ module Stripe
# 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)) }
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. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
# 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)) }
attr_reader :network_transaction_id
# EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
Expand Down
2 changes: 1 addition & 1 deletion rbi/stripe/resources/confirmation_token.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ module Stripe
# 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)) }
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. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
# 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)) }
attr_reader :network_transaction_id
# Details about payments collected offline.
Expand Down
2 changes: 1 addition & 1 deletion rbi/stripe/resources/payment_method.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ module Stripe
# 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)) }
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. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands.
# 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)) }
attr_reader :network_transaction_id
# Details about payments collected offline.
Expand Down
12 changes: 0 additions & 12 deletions rbi/stripe/resources/terminal/reader.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,6 @@ 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).
sig { returns(Stripe::PaymentMethod) }
attr_reader :payment_method
# This field will be deprecated. Please use `account` instead.
sig { returns(String) }
attr_reader :stripe_account
end
class ConfirmPaymentIntent < Stripe::StripeObject
# Account the payment intent belongs to.
Expand All @@ -165,9 +162,6 @@ module Stripe
# Most recent PaymentIntent processed by the reader.
sig { returns(T.any(String, Stripe::PaymentIntent)) }
attr_reader :payment_intent
# This field will be deprecated. Please use `account` instead.
sig { returns(String) }
attr_reader :stripe_account
end
class ProcessPaymentIntent < Stripe::StripeObject
class ProcessConfig < Stripe::StripeObject
Expand Down Expand Up @@ -195,9 +189,6 @@ module Stripe
# Represents a per-transaction override of a reader configuration
sig { returns(ProcessConfig) }
attr_reader :process_config
# This field will be deprecated. Please use `account` instead.
sig { returns(String) }
attr_reader :stripe_account
end
class ProcessSetupIntent < Stripe::StripeObject
class ProcessConfig < Stripe::StripeObject
Expand Down Expand Up @@ -251,9 +242,6 @@ module Stripe
# 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.
sig { returns(T::Boolean) }
attr_reader :reverse_transfer
# This field will be deprecated. Please use `account` instead.
sig { returns(String) }
attr_reader :stripe_account
end
class SetReaderDisplay < Stripe::StripeObject
class Cart < Stripe::StripeObject
Expand Down

0 comments on commit 601cc26

Please sign in to comment.