Sha256: c2e177ea631e5e01bd0189529605e07f0c69a5c03245dd128b300130ee442267

Contents?: true

Size: 861 Bytes

Versions: 1

Compression:

Stored size: 861 Bytes

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  # A Tax `Calculation` allows you to calculate the tax to collect from your customer.
  class TaxCalculation < 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stripe-8.1.0.pre.beta.2 lib/stripe/resources/tax_calculation.rb