Merge upstream and update generated code for v1321

This commit is contained in:
Stripe OpenAPI 2024-10-31 16:22:56 +00:00
commit 37eeea65aa
4 changed files with 10 additions and 11 deletions

View File

@ -5,7 +5,7 @@
* Add support for `trigger_action` method on resource `PaymentIntent`
## 13.1.0 - 2024-10-29
* [#1472](https://github.com/stripe/stripe-ruby/pull/1472) Update generated code
* [#1472](https://github.com/stripe/stripe-ruby/pull/1472) This release changes the pinned API version to `2024-10-28.acacia`.
* Add support for `submit_card` test helper method on resource `Issuing.Card`
* Add support for new resource `V2.EventDestinations`
* Add support for `create`, `retrieve`, `update`, `list`, `delete`, `disable`, `enable` and `ping` methods on resource `V2.EventDestinations`

View File

@ -1 +1 @@
v1320
v1321

View File

@ -6,7 +6,6 @@ module Stripe
# A credit grant is an API resource that documents the allocation of some billing credits to a customer.
#
# Related guide: [Billing credits](https://docs.stripe.com/billing/subscriptions/usage-based/billing-credits)
# end
class CreditGrant < APIResource
extend Stripe::APIOperations::Create
extend Stripe::APIOperations::List
@ -27,7 +26,7 @@ module Stripe
)
end
# Expires a credit grant
# Expires a credit grant.
def expire(params = {}, opts = {})
request_stripe_object(
method: :post,
@ -37,7 +36,7 @@ module Stripe
)
end
# Expires a credit grant
# Expires a credit grant.
def self.expire(id, params = {}, opts = {})
request_stripe_object(
method: :post,
@ -47,7 +46,7 @@ module Stripe
)
end
# Retrieve a list of credit grants
# Retrieve a list of credit grants.
def self.list(filters = {}, opts = {})
request_stripe_object(
method: :get,
@ -67,7 +66,7 @@ module Stripe
)
end
# Voids a credit grant
# Voids a credit grant.
def void_grant(params = {}, opts = {})
request_stripe_object(
method: :post,
@ -77,7 +76,7 @@ module Stripe
)
end
# Voids a credit grant
# Voids a credit grant.
def self.void_grant(id, params = {}, opts = {})
request_stripe_object(
method: :post,

View File

@ -15,7 +15,7 @@ module Stripe
)
end
# Expires a credit grant
# Expires a credit grant.
def expire(id, params = {}, opts = {})
request(
method: :post,
@ -26,7 +26,7 @@ module Stripe
)
end
# Retrieve a list of credit grants
# Retrieve a list of credit grants.
def list(params = {}, opts = {})
request(
method: :get,
@ -59,7 +59,7 @@ module Stripe
)
end
# Voids a credit grant
# Voids a credit grant.
def void_grant(id, params = {}, opts = {})
request(
method: :post,