Class: Stripe::Crypto::CustomerService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::Crypto::CustomerService
- Defined in:
- lib/stripe/services/crypto/customer_service.rb
Instance Attribute Summary collapse
-
#consumer_wallets ⇒ Object
readonly
Returns the value of attribute consumer_wallets.
-
#payment_tokens ⇒ Object
readonly
Returns the value of attribute payment_tokens.
Instance Method Summary collapse
-
#initialize(requestor) ⇒ CustomerService
constructor
A new instance of CustomerService.
-
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieves the details of a Crypto Customer.
Methods inherited from StripeService
Constructor Details
#initialize(requestor) ⇒ CustomerService
Returns a new instance of CustomerService.
9 10 11 12 13 |
# File 'lib/stripe/services/crypto/customer_service.rb', line 9 def initialize(requestor) super @consumer_wallets = Stripe::Crypto::CustomerConsumerWalletService.new(@requestor) @payment_tokens = Stripe::Crypto::CustomerPaymentTokenService.new(@requestor) end |
Instance Attribute Details
#consumer_wallets ⇒ Object (readonly)
Returns the value of attribute consumer_wallets.
7 8 9 |
# File 'lib/stripe/services/crypto/customer_service.rb', line 7 def consumer_wallets @consumer_wallets end |
#payment_tokens ⇒ Object (readonly)
Returns the value of attribute payment_tokens.
7 8 9 |
# File 'lib/stripe/services/crypto/customer_service.rb', line 7 def payment_tokens @payment_tokens end |
Instance Method Details
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieves the details of a Crypto Customer.
16 17 18 19 20 21 22 23 24 |
# File 'lib/stripe/services/crypto/customer_service.rb', line 16 def retrieve(id, params = {}, opts = {}) request( method: :get, path: format("/v1/crypto/customers/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |