Class: Stripe::TaxIdService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::TaxIdService
- Defined in:
- lib/stripe/services/tax_id_service.rb
Defined Under Namespace
Classes: CreateParams, DeleteParams, ListParams, RetrieveParams
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Object
Creates a new account or customer tax_id object.
-
#delete(id, params = {}, opts = {}) ⇒ Object
Deletes an existing account or customer tax_id object.
-
#list(params = {}, opts = {}) ⇒ Object
Returns a list of tax IDs.
-
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieves an account or customer tax_id object.
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
Creates a new account or customer tax_id object.
91 92 93 |
# File 'lib/stripe/services/tax_id_service.rb', line 91 def create(params = {}, opts = {}) request(method: :post, path: "/v1/tax_ids", params: params, opts: opts, base_address: :api) end |
#delete(id, params = {}, opts = {}) ⇒ Object
Deletes an existing account or customer tax_id object.
96 97 98 99 100 101 102 103 104 |
# File 'lib/stripe/services/tax_id_service.rb', line 96 def delete(id, params = {}, opts = {}) request( method: :delete, path: format("/v1/tax_ids/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |
#list(params = {}, opts = {}) ⇒ Object
Returns a list of tax IDs.
107 108 109 |
# File 'lib/stripe/services/tax_id_service.rb', line 107 def list(params = {}, opts = {}) request(method: :get, path: "/v1/tax_ids", params: params, opts: opts, base_address: :api) end |
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieves an account or customer tax_id object.
112 113 114 115 116 117 118 119 120 |
# File 'lib/stripe/services/tax_id_service.rb', line 112 def retrieve(id, params = {}, opts = {}) request( method: :get, path: format("/v1/tax_ids/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |