Class: Stripe::V2::Core::Accounts::PersonTokenService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::V2::Core::Accounts::PersonTokenService
- Defined in:
- lib/stripe/services/v2/core/accounts/person_token_service.rb
Instance Method Summary collapse
-
#create(account_id, params = {}, opts = {}) ⇒ Object
Creates a Person Token associated with an Account.
-
#retrieve(account_id, id, params = {}, opts = {}) ⇒ Object
Retrieves a Person Token associated with an Account.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#create(account_id, params = {}, opts = {}) ⇒ Object
Creates a Person Token associated with an Account.
10 11 12 13 14 15 16 17 18 |
# File 'lib/stripe/services/v2/core/accounts/person_token_service.rb', line 10 def create(account_id, params = {}, opts = {}) request( method: :post, path: format("/v2/core/accounts/%<account_id>s/person_tokens", { account_id: CGI.escape(account_id) }), params: params, opts: opts, base_address: :api ) end |
#retrieve(account_id, id, params = {}, opts = {}) ⇒ Object
Retrieves a Person Token associated with an Account.
21 22 23 24 25 26 27 28 29 |
# File 'lib/stripe/services/v2/core/accounts/person_token_service.rb', line 21 def retrieve(account_id, id, params = {}, opts = {}) request( method: :get, path: format("/v2/core/accounts/%<account_id>s/person_tokens/%<id>s", { account_id: CGI.escape(account_id), id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |