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.
97 98 99 |
# File 'lib/stripe/services/tax_id_service.rb', line 97 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.
102 103 104 105 106 107 108 109 110 |
# File 'lib/stripe/services/tax_id_service.rb', line 102 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.
113 114 115 |
# File 'lib/stripe/services/tax_id_service.rb', line 113 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.
118 119 120 121 122 123 124 125 126 |
# File 'lib/stripe/services/tax_id_service.rb', line 118 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 |