From 5ab9a3e8bf795bd2a942baa09a6d0bc95a65676d Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 18 Sep 2025 19:13:01 +0000 Subject: [PATCH] Update generated code for v1992 and 2025-09-30.preview --- OPENAPI_VERSION | 2 +- lib/stripe/resources/payment_record.rb | 109 +++++++ lib/stripe/services/payment_record_service.rb | 100 ++++++ rbi/stripe.rbi | 300 ++++++++++++++++++ rbi/stripe/resources/payment_record.rbi | 153 +++++++++ .../services/payment_record_service.rbi | 147 +++++++++ 6 files changed, 810 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 72b0cc0e..0631a56f 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1989 \ No newline at end of file +v1992 \ No newline at end of file diff --git a/lib/stripe/resources/payment_record.rb b/lib/stripe/resources/payment_record.rb index aed84613..b04f72c8 100644 --- a/lib/stripe/resources/payment_record.rb +++ b/lib/stripe/resources/payment_record.rb @@ -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/%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/%s/report_payment_attempt_informational", { id: CGI.escape(id) }), + params: params, + opts: opts + ) + end end end diff --git a/lib/stripe/services/payment_record_service.rb b/lib/stripe/services/payment_record_service.rb index 6fa82d49..833081ca 100644 --- a/lib/stripe/services/payment_record_service.rb +++ b/lib/stripe/services/payment_record_service.rb @@ -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/%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( diff --git a/rbi/stripe.rbi b/rbi/stripe.rbi index 1e098665..4f6c889a 100644 --- a/rbi/stripe.rbi +++ b/rbi/stripe.rbi @@ -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) diff --git a/rbi/stripe/resources/payment_record.rbi b/rbi/stripe/resources/payment_record.rbi index cfcfa3ec..83c16d06 100644 --- a/rbi/stripe/resources/payment_record.rbi +++ b/rbi/stripe/resources/payment_record.rbi @@ -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 \ No newline at end of file diff --git a/rbi/stripe/services/payment_record_service.rbi b/rbi/stripe/services/payment_record_service.rbi index 21d2b237..6a75875c 100644 --- a/rbi/stripe/services/payment_record_service.rbi +++ b/rbi/stripe/services/payment_record_service.rbi @@ -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)