Sha256: a0d560e37c112c7ee32761d0f4544bf7ff8e37554a880a9ed1dc8c2e05b396ec
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe module Treasury # You can reverse some [ReceivedDebits](https://stripe.com/docs/api#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal. class DebitReversal < APIResource extend Stripe::APIOperations::Create extend Stripe::APIOperations::List OBJECT_NAME = "treasury.debit_reversal" # Reverses a ReceivedDebit and creates a DebitReversal object. def self.create(params = {}, opts = {}) request_stripe_object( method: :post, path: "/v1/treasury/debit_reversals", params: params, opts: opts ) end # Returns a list of DebitReversals. def self.list(filters = {}, opts = {}) request_stripe_object( method: :get, path: "/v1/treasury/debit_reversals", params: filters, opts: opts ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stripe-10.9.0.pre.beta.1 | lib/stripe/resources/treasury/debit_reversal.rb |
stripe-10.8.0 | lib/stripe/resources/treasury/debit_reversal.rb |