Sha256: 5d839860d238be95037b594d14b76a05bb859ac751ab186a4766b63386c130ea
Contents?: true
Size: 1.85 KB
Versions: 49
Compression:
Stored size: 1.85 KB
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe module Tax # A Tax `Registration` lets us know that your business is registered to collect tax on payments within a region, enabling you to [automatically collect tax](https://stripe.com/docs/tax). # # Stripe doesn't register on your behalf with the relevant authorities when you create a Tax `Registration` object. For more information on how to register to collect tax, see [our guide](https://stripe.com/docs/tax/registering). # # Related guide: [Using the Registrations API](https://stripe.com/docs/tax/registrations-api) class Registration < APIResource extend Stripe::APIOperations::Create extend Stripe::APIOperations::List include Stripe::APIOperations::Save OBJECT_NAME = "tax.registration" def self.object_name "tax.registration" end # Creates a new Tax Registration object. def self.create(params = {}, opts = {}) request_stripe_object( method: :post, path: "/v1/tax/registrations", params: params, opts: opts ) end # Returns a list of Tax Registration objects. def self.list(filters = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/tax/registrations", params: filters, opts: opts ) end # Updates an existing Tax Registration object. # # A registration cannot be deleted after it has been created. If you wish to end a registration you may do so by setting expires_at. def self.update(id, params = {}, opts = {}) request_stripe_object( method: :post, path: format("/v1/tax/registrations/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts ) end end end end
Version data entries
49 entries across 49 versions & 1 rubygems