Class: Stripe::ApplePayDomainService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::ApplePayDomainService
- Defined in:
- lib/stripe/services/apple_pay_domain_service.rb
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Object
Create an apple pay domain.
-
#delete(domain, params = {}, opts = {}) ⇒ Object
Delete an apple pay domain.
-
#list(params = {}, opts = {}) ⇒ Object
List apple pay domains.
-
#retrieve(domain, params = {}, opts = {}) ⇒ Object
Retrieve an apple pay domain.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#create(params = {}, opts = {}) ⇒ Object
Create an apple pay domain.
7 8 9 10 11 12 13 14 15 |
# File 'lib/stripe/services/apple_pay_domain_service.rb', line 7 def create(params = {}, opts = {}) request( method: :post, path: "/v1/apple_pay/domains", params: params, opts: opts, base_address: :api ) end |
#delete(domain, params = {}, opts = {}) ⇒ Object
Delete an apple pay domain.
18 19 20 21 22 23 24 25 26 |
# File 'lib/stripe/services/apple_pay_domain_service.rb', line 18 def delete(domain, params = {}, opts = {}) request( method: :delete, path: format("/v1/apple_pay/domains/%<domain>s", { domain: CGI.escape(domain) }), params: params, opts: opts, base_address: :api ) end |
#list(params = {}, opts = {}) ⇒ Object
List apple pay domains.
29 30 31 32 33 34 35 36 37 |
# File 'lib/stripe/services/apple_pay_domain_service.rb', line 29 def list(params = {}, opts = {}) request( method: :get, path: "/v1/apple_pay/domains", params: params, opts: opts, base_address: :api ) end |
#retrieve(domain, params = {}, opts = {}) ⇒ Object
Retrieve an apple pay domain.
40 41 42 43 44 45 46 47 48 |
# File 'lib/stripe/services/apple_pay_domain_service.rb', line 40 def retrieve(domain, params = {}, opts = {}) request( method: :get, path: format("/v1/apple_pay/domains/%<domain>s", { domain: CGI.escape(domain) }), params: params, opts: opts, base_address: :api ) end |