Skip to content
Merged
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 API_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
28b33d4a6cc796fd90ee77d1c5ea63206b25f727
1307ab81356642fb1bf890524815d5cb6997a34d
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2129
v2132
8 changes: 4 additions & 4 deletions lib/stripe/params/account_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1872,9 +1872,9 @@ def initialize(
end

class SelfReportedIncome < ::Stripe::RequestParams
# Attribute for param field amount
# The amount in the minor currency unit (for example, cents for USD).
attr_accessor :amount
# Attribute for param field currency
# 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(amount: nil, currency: nil)
Expand All @@ -1884,9 +1884,9 @@ def initialize(amount: nil, currency: nil)
end

class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
# Attribute for param field amount
# The amount in the minor currency unit (for example, cents for USD).
attr_accessor :amount
# Attribute for param field currency
# 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(amount: nil, currency: nil)
Expand Down
8 changes: 4 additions & 4 deletions lib/stripe/params/account_person_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ def initialize(
end

class SelfReportedIncome < ::Stripe::RequestParams
# Attribute for param field amount
# The amount in the minor currency unit (for example, cents for USD).
attr_accessor :amount
# Attribute for param field currency
# 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(amount: nil, currency: nil)
Expand All @@ -252,9 +252,9 @@ def initialize(amount: nil, currency: nil)
end

class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
# Attribute for param field amount
# The amount in the minor currency unit (for example, cents for USD).
attr_accessor :amount
# Attribute for param field currency
# 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(amount: nil, currency: nil)
Expand Down
8 changes: 4 additions & 4 deletions lib/stripe/params/account_person_update_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,9 @@ def initialize(
end

class SelfReportedIncome < ::Stripe::RequestParams
# Attribute for param field amount
# The amount in the minor currency unit (for example, cents for USD).
attr_accessor :amount
# Attribute for param field currency
# 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(amount: nil, currency: nil)
Expand All @@ -252,9 +252,9 @@ def initialize(amount: nil, currency: nil)
end

class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
# Attribute for param field amount
# The amount in the minor currency unit (for example, cents for USD).
attr_accessor :amount
# Attribute for param field currency
# 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(amount: nil, currency: nil)
Expand Down
8 changes: 4 additions & 4 deletions lib/stripe/params/account_update_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1791,9 +1791,9 @@ def initialize(
end

class SelfReportedIncome < ::Stripe::RequestParams
# Attribute for param field amount
# The amount in the minor currency unit (for example, cents for USD).
attr_accessor :amount
# Attribute for param field currency
# 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(amount: nil, currency: nil)
Expand All @@ -1803,9 +1803,9 @@ def initialize(amount: nil, currency: nil)
end

class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
# Attribute for param field amount
# The amount in the minor currency unit (for example, cents for USD).
attr_accessor :amount
# Attribute for param field currency
# 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(amount: nil, currency: nil)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Address < ::Stripe::RequestParams
attr_accessor :line2
# ZIP or postal code.
attr_accessor :postal_code
# State, county, province, or region.
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
attr_accessor :state

def initialize(
Expand Down Expand Up @@ -77,7 +77,7 @@ class Address < ::Stripe::RequestParams
attr_accessor :line2
# ZIP or postal code.
attr_accessor :postal_code
# State, county, province, or region.
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
attr_accessor :state

def initialize(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Address < ::Stripe::RequestParams
attr_accessor :line2
# ZIP or postal code.
attr_accessor :postal_code
# State, county, province, or region.
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
attr_accessor :state

def initialize(
Expand Down Expand Up @@ -106,7 +106,7 @@ class Address < ::Stripe::RequestParams
attr_accessor :line2
# ZIP or postal code.
attr_accessor :postal_code
# State, county, province, or region.
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
attr_accessor :state

def initialize(
Expand Down
16 changes: 8 additions & 8 deletions lib/stripe/params/token_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,9 @@ def initialize(
end

class SelfReportedIncome < ::Stripe::RequestParams
# Attribute for param field amount
# The amount in the minor currency unit (for example, cents for USD).
attr_accessor :amount
# Attribute for param field currency
# 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(amount: nil, currency: nil)
Expand All @@ -475,9 +475,9 @@ def initialize(amount: nil, currency: nil)
end

class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
# Attribute for param field amount
# The amount in the minor currency unit (for example, cents for USD).
attr_accessor :amount
# Attribute for param field currency
# 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(amount: nil, currency: nil)
Expand Down Expand Up @@ -1009,9 +1009,9 @@ def initialize(
end

class SelfReportedIncome < ::Stripe::RequestParams
# Attribute for param field amount
# The amount in the minor currency unit (for example, cents for USD).
attr_accessor :amount
# Attribute for param field currency
# 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(amount: nil, currency: nil)
Expand All @@ -1021,9 +1021,9 @@ def initialize(amount: nil, currency: nil)
end

class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
# Attribute for param field amount
# The amount in the minor currency unit (for example, cents for USD).
attr_accessor :amount
# Attribute for param field currency
# 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(amount: nil, currency: nil)
Expand Down
5 changes: 4 additions & 1 deletion lib/stripe/params/v2/core/event_list_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
end
# Set of filters to query events within a range of `created` timestamps.
attr_accessor :created
# Additional fields to include in the response.
attr_accessor :include
# The page size.
attr_accessor :limit
# Primary object ID used to retrieve related events.
Expand All @@ -33,8 +35,9 @@ def initialize(gt: nil, gte: nil, lt: nil, lte: nil)
# An array of up to 20 strings containing specific event names.
attr_accessor :types

def initialize(created: nil, limit: nil, object_id_: nil, types: nil)
def initialize(created: nil, include: nil, limit: nil, object_id_: nil, types: nil)
@created = created
@include = include
@limit = limit
@object_id_ = object_id_
@types = types
Expand Down
9 changes: 8 additions & 1 deletion lib/stripe/params/v2/core/event_retrieve_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@
module Stripe
module V2
module Core
class EventRetrieveParams < ::Stripe::RequestParams; end
class EventRetrieveParams < ::Stripe::RequestParams
# Additional fields to include in the response.
attr_accessor :include

def initialize(include: nil)
@include = include
end
end
end
end
end
27 changes: 27 additions & 0 deletions lib/stripe/resources/account_session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,30 @@ def self.field_remappings
end
end

class CheckScanning < ::Stripe::StripeObject
class Features < ::Stripe::StripeObject
def self.inner_class_types
@inner_class_types = {}
end

def self.field_remappings
@field_remappings = {}
end
end
# Whether the embedded component is enabled.
attr_reader :enabled
# Attribute for field features
attr_reader :features

def self.inner_class_types
@inner_class_types = { features: Features }
end

def self.field_remappings
@field_remappings = {}
end
end

class DisputesList < ::Stripe::StripeObject
class Features < ::Stripe::StripeObject
# Whether to allow capturing and cancelling payment intents. This is `true` by default.
Expand Down Expand Up @@ -699,6 +723,8 @@ def self.field_remappings
attr_reader :tax_registrations
# Attribute for field tax_settings
attr_reader :tax_settings
# Configuration for the [check scanning](/connect/supported-embedded-components/check-scanning/) embedded component.
attr_reader :check_scanning

def self.inner_class_types
@inner_class_types = {
Expand All @@ -724,6 +750,7 @@ def self.inner_class_types
payouts_list: PayoutsList,
tax_registrations: TaxRegistrations,
tax_settings: TaxSettings,
check_scanning: CheckScanning,
}
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Address < ::Stripe::StripeObject
attr_reader :line2
# ZIP or postal code.
attr_reader :postal_code
# State, county, province, or region.
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
attr_reader :state

def self.inner_class_types
Expand Down Expand Up @@ -195,7 +195,7 @@ class Address < ::Stripe::StripeObject
attr_reader :line2
# ZIP or postal code.
attr_reader :postal_code
# State, county, province, or region.
# State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
attr_reader :state

def self.inner_class_types
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/resources/person.rb
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def self.field_remappings
end

class SelfReportedIncome < ::Stripe::StripeObject
# Amount in the minor currency unit (e.g., cents for USD)
# The amount in the minor currency unit (for example, cents for USD).
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
Expand All @@ -308,7 +308,7 @@ def self.field_remappings
end

class SelfReportedMonthlyHousingPayment < ::Stripe::StripeObject
# Amount in the minor currency unit (e.g., cents for USD)
# The amount in the minor currency unit (for example, cents for USD).
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
Expand Down
51 changes: 50 additions & 1 deletion lib/stripe/resources/v2/core/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,62 @@ def self.object_name

class Reason < ::Stripe::StripeObject
class Request < ::Stripe::StripeObject
class Client < ::Stripe::StripeObject
class ApiKey < ::Stripe::StripeObject
# The ID of the API key.
attr_reader :id

def self.inner_class_types
@inner_class_types = {}
end

def self.field_remappings
@field_remappings = {}
end
end

class DashboardUser < ::Stripe::StripeObject
# The email of the dashboard user.
attr_reader :email
# The IP address of the user.
attr_reader :ip_address
# The machine identifier of the user.
attr_reader :machine_identifier

def self.inner_class_types
@inner_class_types = {}
end

def self.field_remappings
@field_remappings = {}
end
end
# The type of the client.
attr_reader :type
# API key that triggered the event.
attr_reader :api_key
# Dashboard user that triggered the event.
attr_reader :dashboard_user
# Stripe action that triggered the event.
attr_reader :stripe_action

def self.inner_class_types
@inner_class_types = { api_key: ApiKey, dashboard_user: DashboardUser }
end

def self.field_remappings
@field_remappings = {}
end
end
# The client details that made the request.
attr_reader :client
# ID of the API request that caused the event.
attr_reader :id
# The idempotency key transmitted during the request.
attr_reader :idempotency_key

def self.inner_class_types
@inner_class_types = {}
@inner_class_types = { client: Client }
end

def self.field_remappings
Expand Down
Loading