mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-07 00:05:33 -04:00
Update generated code for v1284
This commit is contained in:
parent
6637663560
commit
ad79e5ddec
@ -1 +1 @@
|
||||
v1273
|
||||
v1284
|
@ -31,7 +31,7 @@ module Stripe
|
||||
end
|
||||
|
||||
# Creates a single-use token that represents a bank account's details.
|
||||
# You can use this token with any API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/docs/api#accounts) where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts.
|
||||
# You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/docs/api#accounts) where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts.
|
||||
def self.create(params = {}, opts = {})
|
||||
request_stripe_object(method: :post, path: "/v1/tokens", params: params, opts: opts)
|
||||
end
|
||||
|
@ -4,7 +4,7 @@
|
||||
module Stripe
|
||||
class TokenService < StripeService
|
||||
# Creates a single-use token that represents a bank account's details.
|
||||
# You can use this token with any API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/docs/api#accounts) where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts.
|
||||
# You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/docs/api#accounts) where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts.
|
||||
def create(params = {}, opts = {})
|
||||
request(method: :post, path: "/v1/tokens", params: params, opts: opts, base_address: :api)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user