Class: Stripe::ApplePayDomainService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::ApplePayDomainService
- Defined in:
- lib/stripe/services/apple_pay_domain_service.rb
Defined Under Namespace
Classes: CreateParams, DeleteParams, ListParams, RetrieveParams
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.
58 59 60 61 62 63 64 65 66 |
# File 'lib/stripe/services/apple_pay_domain_service.rb', line 58 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.
69 70 71 72 73 74 75 76 77 |
# File 'lib/stripe/services/apple_pay_domain_service.rb', line 69 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.
80 81 82 83 84 85 86 87 88 |
# File 'lib/stripe/services/apple_pay_domain_service.rb', line 80 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.
91 92 93 94 95 96 97 98 99 |
# File 'lib/stripe/services/apple_pay_domain_service.rb', line 91 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 |