Update generated code (#1419)

* Update generated code for v1087

* Update generated code for v1088

* Update generated code for v1092

* Update generated code for v1093

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com>
This commit is contained in:
stripe-openapi[bot] 2024-06-24 22:49:12 +00:00 committed by GitHub
parent ad4d29b4aa
commit a0542ff720
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 26 additions and 6 deletions

View File

@ -1 +1 @@
v1079
v1093

View File

@ -3,6 +3,6 @@
module Stripe
module ApiVersion
CURRENT = "2024-04-10"
CURRENT = "2024-06-20"
end
end

View File

@ -152,6 +152,26 @@ module Stripe
)
end
# Finalize the amount on an Authorization prior to capture, when the initial authorization was for an estimated amount.
def self.finalize_amount(authorization, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/test_helpers/issuing/authorizations/%<authorization>s/finalize_amount", { authorization: CGI.escape(authorization) }),
params: params,
opts: opts
)
end
# Finalize the amount on an Authorization prior to capture, when the initial authorization was for an estimated amount.
def finalize_amount(params = {}, opts = {})
@resource.request_stripe_object(
method: :post,
path: format("/v1/test_helpers/issuing/authorizations/%<authorization>s/finalize_amount", { authorization: CGI.escape(@resource["id"]) }),
params: params,
opts: opts
)
end
# Increment a test-mode Authorization.
def self.increment(authorization, params = {}, opts = {})
request_stripe_object(

View File

@ -14,7 +14,7 @@ module Stripe
"tax.calculation"
end
# Calculates tax based on input and returns a Tax Calculation object.
# Calculates tax based on the input and returns a Tax Calculation object.
def self.create(params = {}, opts = {})
request_stripe_object(
method: :post,

View File

@ -1860,7 +1860,7 @@ module Stripe
type: "diesel",
unit: "liter",
unit_cost_decimal: "3.5",
volume_decimal: "10",
quantity_decimal: "10",
},
lodging: {
check_in_at: 1_633_651_200,
@ -2000,7 +2000,7 @@ module Stripe
type: "diesel",
unit: "liter",
unit_cost_decimal: "3.5",
volume_decimal: "10",
quantity_decimal: "10",
},
lodging: {
check_in_at: 1_533_651_200,
@ -2055,7 +2055,7 @@ module Stripe
type: "diesel",
unit: "liter",
unit_cost_decimal: "3.5",
volume_decimal: "10",
quantity_decimal: "10",
},
lodging: {
check_in_at: 1_533_651_200,