Sha256: ba1e7b0d3a3dbe2daf0a5cd033850e011ec10b6d99940711a0efb9e5b604e06d
Contents?: true
Size: 1.21 KB
Versions: 13
Compression:
Stored size: 1.21 KB
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe module Treasury class CreditReversalService < StripeService # Reverses a ReceivedCredit and creates a CreditReversal object. def create(params = {}, opts = {}) request( method: :post, path: "/v1/treasury/credit_reversals", params: params, opts: opts, base_address: :api ) end # Returns a list of CreditReversals. def list(params = {}, opts = {}) request( method: :get, path: "/v1/treasury/credit_reversals", params: params, opts: opts, base_address: :api ) end # Retrieves the details of an existing CreditReversal by passing the unique CreditReversal ID from either the CreditReversal creation request or CreditReversal list def retrieve(credit_reversal, params = {}, opts = {}) request( method: :get, path: format("/v1/treasury/credit_reversals/%<credit_reversal>s", { credit_reversal: CGI.escape(credit_reversal) }), params: params, opts: opts, base_address: :api ) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems