Class: Stripe::PaymentLocationService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::PaymentLocationService
- Defined in:
- lib/stripe/services/payment_location_service.rb
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Object
Create a Payment Location.
-
#delete(id, params = {}, opts = {}) ⇒ Object
Delete a Payment Location.
-
#list(params = {}, opts = {}) ⇒ Object
List all Payment Locations.
-
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieve a Payment Location.
-
#update(id, params = {}, opts = {}) ⇒ Object
Update a Payment Location.
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 a Payment Location.
7 8 9 10 11 12 13 14 15 |
# File 'lib/stripe/services/payment_location_service.rb', line 7 def create(params = {}, opts = {}) request( method: :post, path: "/v1/payment_locations", params: params, opts: opts, base_address: :api ) end |
#delete(id, params = {}, opts = {}) ⇒ Object
Delete a Payment Location.
18 19 20 21 22 23 24 25 26 |
# File 'lib/stripe/services/payment_location_service.rb', line 18 def delete(id, params = {}, opts = {}) request( method: :delete, path: format("/v1/payment_locations/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |
#list(params = {}, opts = {}) ⇒ Object
List all Payment Locations.
29 30 31 32 33 34 35 36 37 |
# File 'lib/stripe/services/payment_location_service.rb', line 29 def list(params = {}, opts = {}) request( method: :get, path: "/v1/payment_locations", params: params, opts: opts, base_address: :api ) end |
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieve a Payment Location.
40 41 42 43 44 45 46 47 48 |
# File 'lib/stripe/services/payment_location_service.rb', line 40 def retrieve(id, params = {}, opts = {}) request( method: :get, path: format("/v1/payment_locations/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |
#update(id, params = {}, opts = {}) ⇒ Object
Update a Payment Location.
51 52 53 54 55 56 57 58 59 |
# File 'lib/stripe/services/payment_location_service.rb', line 51 def update(id, params = {}, opts = {}) request( method: :post, path: format("/v1/payment_locations/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |