Sha256: 3070c03262244a9039a1a137c3b90c653f2ca14a76045317fd9c64c1921371cd
Contents?: true
Size: 919 Bytes
Versions: 13
Compression:
Stored size: 919 Bytes
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe module Tax # A Tax `Calculation` allows you to calculate the tax to collect from your customer. class Calculation < APIResource extend Stripe::APIOperations::Create OBJECT_NAME = "tax.calculation" def list_line_items(params = {}, opts = {}) request_stripe_object( method: :get, path: format("/v1/tax/calculations/%<calculation>s/line_items", { calculation: CGI.escape(self["id"]) }), params: params, opts: opts ) end def self.list_line_items(calculation, params = {}, opts = {}) request_stripe_object( method: :get, path: format("/v1/tax/calculations/%<calculation>s/line_items", { calculation: CGI.escape(calculation) }), params: params, opts: opts ) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems