Update generated code for v1992 and 2025-09-30.preview

This commit is contained in:
Stripe OpenAPI 2025-09-18 19:13:01 +00:00
parent fb2310d78f
commit 5ab9a3e8bf
6 changed files with 810 additions and 1 deletions

View File

@ -1 +1 @@
v1989
v1992

View File

@ -1359,6 +1359,95 @@ module Stripe
end
end
class ReportPaymentAttemptInformationalParams < 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
class ReportPaymentParams < 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).
@ -1746,5 +1835,25 @@ module Stripe
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/%<id>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/%<id>s/report_payment_attempt_informational", { id: CGI.escape(id) }),
params: params,
opts: opts
)
end
end
end

View File

@ -239,6 +239,95 @@ module Stripe
end
end
class ReportPaymentAttemptInformationalParams < 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
class ReportPaymentParams < 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).
@ -548,6 +637,17 @@ module Stripe
)
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/%<id>s/report_payment_attempt_informational", { 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(

View File

@ -96801,6 +96801,147 @@ module Stripe
}
def initialize(expand: nil, guaranteed_at: nil, metadata: nil); end
end
class ReportPaymentAttemptInformationalParams < 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(::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::ShippingDetails::Address))
}
def address; end
sig {
params(_address: T.nilable(::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::ShippingDetails::Address)).returns(T.nilable(::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::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(::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::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(::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::CustomerDetails))
}
def customer_details; end
sig {
params(_customer_details: T.nilable(::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::CustomerDetails)).returns(T.nilable(::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::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, ::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::ShippingDetails)))
}
def shipping_details; end
sig {
params(_shipping_details: T.nilable(T.any(String, ::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::ShippingDetails))).returns(T.nilable(T.any(String, ::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::ShippingDetails)))
}
def shipping_details=(_shipping_details); end
sig {
params(customer_details: T.nilable(::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::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, ::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::ShippingDetails))).void
}
def initialize(
customer_details: nil,
description: nil,
expand: nil,
metadata: nil,
shipping_details: nil
); end
end
class ReportPaymentParams < 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).
@ -97241,6 +97382,18 @@ module Stripe
params(id: String, params: T.any(::Stripe::PaymentRecord::ReportPaymentAttemptGuaranteedParams, 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::PaymentRecord::ReportPaymentAttemptInformationalParams, 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::PaymentRecord::ReportPaymentAttemptInformationalParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentRecord)
}
def self.report_payment_attempt_informational(id, params = {}, opts = {}); end
end
end
# typed: true
@ -221322,6 +221475,147 @@ module Stripe
}
def initialize(expand: nil, guaranteed_at: nil, metadata: nil); end
end
class ReportPaymentAttemptInformationalParams < 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(::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::ShippingDetails::Address))
}
def address; end
sig {
params(_address: T.nilable(::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::ShippingDetails::Address)).returns(T.nilable(::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::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(::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::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(::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::CustomerDetails))
}
def customer_details; end
sig {
params(_customer_details: T.nilable(::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::CustomerDetails)).returns(T.nilable(::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::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, ::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::ShippingDetails)))
}
def shipping_details; end
sig {
params(_shipping_details: T.nilable(T.any(String, ::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::ShippingDetails))).returns(T.nilable(T.any(String, ::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::ShippingDetails)))
}
def shipping_details=(_shipping_details); end
sig {
params(customer_details: T.nilable(::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::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, ::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::ShippingDetails))).void
}
def initialize(
customer_details: nil,
description: nil,
expand: nil,
metadata: nil,
shipping_details: nil
); end
end
class ReportPaymentParams < 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).
@ -221741,6 +222035,12 @@ module Stripe
}
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::PaymentRecordService::ReportPaymentAttemptInformationalParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentRecord)
}
def report_payment_attempt_informational(id, params = {}, opts = {}); end
# Retrieves a Payment Record with the given ID
sig {
params(id: String, params: T.any(::Stripe::PaymentRecordService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentRecord)

View File

@ -1862,6 +1862,147 @@ module Stripe
}
def initialize(expand: nil, guaranteed_at: nil, metadata: nil); end
end
class ReportPaymentAttemptInformationalParams < 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(::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::ShippingDetails::Address))
}
def address; end
sig {
params(_address: T.nilable(::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::ShippingDetails::Address)).returns(T.nilable(::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::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(::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::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(::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::CustomerDetails))
}
def customer_details; end
sig {
params(_customer_details: T.nilable(::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::CustomerDetails)).returns(T.nilable(::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::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, ::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::ShippingDetails)))
}
def shipping_details; end
sig {
params(_shipping_details: T.nilable(T.any(String, ::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::ShippingDetails))).returns(T.nilable(T.any(String, ::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::ShippingDetails)))
}
def shipping_details=(_shipping_details); end
sig {
params(customer_details: T.nilable(::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::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, ::Stripe::PaymentRecord::ReportPaymentAttemptInformationalParams::ShippingDetails))).void
}
def initialize(
customer_details: nil,
description: nil,
expand: nil,
metadata: nil,
shipping_details: nil
); end
end
class ReportPaymentParams < 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).
@ -2302,5 +2443,17 @@ module Stripe
params(id: String, params: T.any(::Stripe::PaymentRecord::ReportPaymentAttemptGuaranteedParams, 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::PaymentRecord::ReportPaymentAttemptInformationalParams, 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::PaymentRecord::ReportPaymentAttemptInformationalParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentRecord)
}
def self.report_payment_attempt_informational(id, params = {}, opts = {}); end
end
end

View File

@ -366,6 +366,147 @@ module Stripe
}
def initialize(expand: nil, guaranteed_at: nil, metadata: nil); end
end
class ReportPaymentAttemptInformationalParams < 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(::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::ShippingDetails::Address))
}
def address; end
sig {
params(_address: T.nilable(::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::ShippingDetails::Address)).returns(T.nilable(::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::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(::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::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(::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::CustomerDetails))
}
def customer_details; end
sig {
params(_customer_details: T.nilable(::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::CustomerDetails)).returns(T.nilable(::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::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, ::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::ShippingDetails)))
}
def shipping_details; end
sig {
params(_shipping_details: T.nilable(T.any(String, ::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::ShippingDetails))).returns(T.nilable(T.any(String, ::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::ShippingDetails)))
}
def shipping_details=(_shipping_details); end
sig {
params(customer_details: T.nilable(::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::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, ::Stripe::PaymentRecordService::ReportPaymentAttemptInformationalParams::ShippingDetails))).void
}
def initialize(
customer_details: nil,
description: nil,
expand: nil,
metadata: nil,
shipping_details: nil
); end
end
class ReportPaymentParams < 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).
@ -785,6 +926,12 @@ module Stripe
}
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::PaymentRecordService::ReportPaymentAttemptInformationalParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentRecord)
}
def report_payment_attempt_informational(id, params = {}, opts = {}); end
# Retrieves a Payment Record with the given ID
sig {
params(id: String, params: T.any(::Stripe::PaymentRecordService::RetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::PaymentRecord)