Sha256: 99446119ebdc8a5aa13c376ea779f4abf2302f2fca817ca3a627247988d3dd55
Contents?: true
Size: 1.37 KB
Versions: 2
Compression:
Stored size: 1.37 KB
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe module Tax # A Tax transaction records the tax collected from or refunded to your customer. class Transaction < APIResource extend Stripe::APIOperations::Create OBJECT_NAME = "tax.transaction" def list_line_items(params = {}, opts = {}) request_stripe_object( method: :get, path: format("/v1/tax/transactions/%<transaction>s/line_items", { transaction: CGI.escape(self["id"]) }), params: params, opts: opts ) end def self.create_from_calculation(params = {}, opts = {}) request_stripe_object( method: :post, path: "/v1/tax/transactions/create_from_calculation", params: params, opts: opts ) end def self.create_reversal(params = {}, opts = {}) request_stripe_object( method: :post, path: "/v1/tax/transactions/create_reversal", params: params, opts: opts ) end def self.list_line_items(transaction, params = {}, opts = {}) request_stripe_object( method: :get, path: format("/v1/tax/transactions/%<transaction>s/line_items", { transaction: CGI.escape(transaction) }), params: params, opts: opts ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stripe-8.5.0.pre.beta.1 | lib/stripe/resources/tax/transaction.rb |
stripe-8.4.0 | lib/stripe/resources/tax/transaction.rb |