Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9e950cbf7b5a814a98f27d1a94b72cd6f1df2078
b51a9d09327603fa3a61d076f4bf7f07b43e1659
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ source "https://rubygems.org"
gemspec

group :development do
gem "cgi"
gem "mocha", "~> 1.16.0"
gem "rack", ">= 2.0.6"
gem "rake"
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2203
v2205
2 changes: 1 addition & 1 deletion lib/stripe.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Stripe Ruby bindings
# API spec at https://stripe.com/docs/api
require "cgi"
require "cgi/escape"
require "json"
require "logger"
require "net/http"
Expand Down
16 changes: 1 addition & 15 deletions lib/stripe/events/v2_core_health_fraud_rate_increased_event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,6 @@ def self.lookup_type

class V2CoreHealthFraudRateIncreasedEventData < ::Stripe::StripeObject
class Impact < ::Stripe::StripeObject
class RealizedFraudAmount < ::Stripe::StripeObject
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
attr_reader :value
# 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

def self.inner_class_types
@inner_class_types = {}
end

def self.field_remappings
@field_remappings = {}
end
end
# Fraud attack type.
attr_reader :attack_type
# The number of impacted requests which are detected.
Expand All @@ -33,7 +19,7 @@ def self.field_remappings
attr_reader :realized_fraud_amount

def self.inner_class_types
@inner_class_types = { realized_fraud_amount: RealizedFraudAmount }
@inner_class_types = {}
end

def self.field_remappings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,6 @@ def self.lookup_type

class V2CoreHealthIssuingAuthorizationRequestErrorsFiringEventData < ::Stripe::StripeObject
class Impact < ::Stripe::StripeObject
class ApprovedAmount < ::Stripe::StripeObject
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
attr_reader :value
# 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

def self.inner_class_types
@inner_class_types = {}
end

def self.field_remappings
@field_remappings = {}
end
end

class DeclinedAmount < ::Stripe::StripeObject
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
attr_reader :value
# 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

def self.inner_class_types
@inner_class_types = {}
end

def self.field_remappings
@field_remappings = {}
end
end
# Estimated aggregated amount for the approved requests.
attr_reader :approved_amount
# The number of approved requests which are impacted.
Expand All @@ -50,7 +21,7 @@ def self.field_remappings
attr_reader :declined_impacted_requests

def self.inner_class_types
@inner_class_types = { approved_amount: ApprovedAmount, declined_amount: DeclinedAmount }
@inner_class_types = {}
end

def self.field_remappings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,6 @@ def self.lookup_type

class V2CoreHealthIssuingAuthorizationRequestErrorsResolvedEventData < ::Stripe::StripeObject
class Impact < ::Stripe::StripeObject
class ApprovedAmount < ::Stripe::StripeObject
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
attr_reader :value
# 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

def self.inner_class_types
@inner_class_types = {}
end

def self.field_remappings
@field_remappings = {}
end
end

class DeclinedAmount < ::Stripe::StripeObject
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
attr_reader :value
# 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

def self.inner_class_types
@inner_class_types = {}
end

def self.field_remappings
@field_remappings = {}
end
end
# Estimated aggregated amount for the approved requests.
attr_reader :approved_amount
# The number of approved requests which are impacted.
Expand All @@ -50,7 +21,7 @@ def self.field_remappings
attr_reader :declined_impacted_requests

def self.inner_class_types
@inner_class_types = { approved_amount: ApprovedAmount, declined_amount: DeclinedAmount }
@inner_class_types = {}
end

def self.field_remappings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,6 @@ def self.lookup_type

class V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEventData < ::Stripe::StripeObject
class Impact < ::Stripe::StripeObject
class ApprovedAmount < ::Stripe::StripeObject
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
attr_reader :value
# 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

def self.inner_class_types
@inner_class_types = {}
end

def self.field_remappings
@field_remappings = {}
end
end

class DeclinedAmount < ::Stripe::StripeObject
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
attr_reader :value
# 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

def self.inner_class_types
@inner_class_types = {}
end

def self.field_remappings
@field_remappings = {}
end
end
# Estimated aggregated amount for the approved requests.
attr_reader :approved_amount
# The number of approved requests which are impacted.
Expand All @@ -50,7 +21,7 @@ def self.field_remappings
attr_reader :declined_impacted_requests

def self.inner_class_types
@inner_class_types = { approved_amount: ApprovedAmount, declined_amount: DeclinedAmount }
@inner_class_types = {}
end

def self.field_remappings
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,6 @@ def self.lookup_type

class V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEventData < ::Stripe::StripeObject
class Impact < ::Stripe::StripeObject
class ApprovedAmount < ::Stripe::StripeObject
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
attr_reader :value
# 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

def self.inner_class_types
@inner_class_types = {}
end

def self.field_remappings
@field_remappings = {}
end
end

class DeclinedAmount < ::Stripe::StripeObject
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
attr_reader :value
# 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

def self.inner_class_types
@inner_class_types = {}
end

def self.field_remappings
@field_remappings = {}
end
end
# Estimated aggregated amount for the approved requests.
attr_reader :approved_amount
# The number of approved requests which are impacted.
Expand All @@ -50,7 +21,7 @@ def self.field_remappings
attr_reader :declined_impacted_requests

def self.inner_class_types
@inner_class_types = { approved_amount: ApprovedAmount, declined_amount: DeclinedAmount }
@inner_class_types = {}
end

def self.field_remappings
Expand Down
6 changes: 1 addition & 5 deletions lib/stripe/params/payment_intent_confirm_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5237,8 +5237,6 @@ def initialize(requested: nil)
attr_accessor :transaction_purpose
# Bank account verification method.
attr_accessor :verification_method
# Preferred transaction settlement speed
attr_accessor :preferred_settlement_speed

def initialize(
financial_connections: nil,
Expand All @@ -5247,8 +5245,7 @@ def initialize(
setup_future_usage: nil,
target_date: nil,
transaction_purpose: nil,
verification_method: nil,
preferred_settlement_speed: nil
verification_method: nil
)
@financial_connections = financial_connections
@mandate_options = mandate_options
Expand All @@ -5257,7 +5254,6 @@ def initialize(
@target_date = target_date
@transaction_purpose = transaction_purpose
@verification_method = verification_method
@preferred_settlement_speed = preferred_settlement_speed
end
end

Expand Down
6 changes: 1 addition & 5 deletions lib/stripe/params/payment_intent_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5251,8 +5251,6 @@ def initialize(requested: nil)
attr_accessor :transaction_purpose
# Bank account verification method.
attr_accessor :verification_method
# Preferred transaction settlement speed
attr_accessor :preferred_settlement_speed

def initialize(
financial_connections: nil,
Expand All @@ -5261,8 +5259,7 @@ def initialize(
setup_future_usage: nil,
target_date: nil,
transaction_purpose: nil,
verification_method: nil,
preferred_settlement_speed: nil
verification_method: nil
)
@financial_connections = financial_connections
@mandate_options = mandate_options
Expand All @@ -5271,7 +5268,6 @@ def initialize(
@target_date = target_date
@transaction_purpose = transaction_purpose
@verification_method = verification_method
@preferred_settlement_speed = preferred_settlement_speed
end
end

Expand Down
6 changes: 1 addition & 5 deletions lib/stripe/params/payment_intent_update_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5229,8 +5229,6 @@ def initialize(requested: nil)
attr_accessor :transaction_purpose
# Bank account verification method.
attr_accessor :verification_method
# Preferred transaction settlement speed
attr_accessor :preferred_settlement_speed

def initialize(
financial_connections: nil,
Expand All @@ -5239,8 +5237,7 @@ def initialize(
setup_future_usage: nil,
target_date: nil,
transaction_purpose: nil,
verification_method: nil,
preferred_settlement_speed: nil
verification_method: nil
)
@financial_connections = financial_connections
@mandate_options = mandate_options
Expand All @@ -5249,7 +5246,6 @@ def initialize(
@target_date = target_date
@transaction_purpose = transaction_purpose
@verification_method = verification_method
@preferred_settlement_speed = preferred_settlement_speed
end
end

Expand Down
24 changes: 0 additions & 24 deletions lib/stripe/params/v2/billing/service_action_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,6 @@ def initialize(id: nil, value: nil)
@value = value
end
end

class Monetary < ::Stripe::RequestParams
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
attr_accessor :value
# 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

def initialize(value: nil, currency: nil)
@value = value
@currency = currency
end
end
# The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits.
attr_accessor :type
# The custom pricing unit amount of the credit grant. Required if `type` is `custom_pricing_unit`.
Expand Down Expand Up @@ -115,18 +103,6 @@ def initialize(id: nil, value: nil)
@value = value
end
end

class Monetary < ::Stripe::RequestParams
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
attr_accessor :value
# 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

def initialize(value: nil, currency: nil)
@value = value
@currency = currency
end
end
# The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits.
attr_accessor :type
# The custom pricing unit amount of the credit grant. Required if `type` is `custom_pricing_unit`.
Expand Down
22 changes: 0 additions & 22 deletions lib/stripe/params/v2/core/account_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2731,17 +2731,6 @@ def initialize(
end

class AnnualRevenue < ::Stripe::RequestParams
class Amount < ::Stripe::RequestParams
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
attr_accessor :value
# 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

def initialize(value: nil, currency: nil)
@value = value
@currency = currency
end
end
# A non-negative integer representing the amount in the smallest currency unit.
attr_accessor :amount
# The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
Expand Down Expand Up @@ -2946,17 +2935,6 @@ def initialize(registrar: nil, type: nil, value: nil)
end

class MonthlyEstimatedRevenue < ::Stripe::RequestParams
class Amount < ::Stripe::RequestParams
# A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
attr_accessor :value
# 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

def initialize(value: nil, currency: nil)
@value = value
@currency = currency
end
end
# A non-negative integer representing the amount in the smallest currency unit.
attr_accessor :amount

Expand Down
Loading
Loading