Sha256: 41dcdd173ab4e73a3e74b951c113db322754917fdfef29bb375034c5b711fcb3

Contents?: true

Size: 946 Bytes

Versions: 6

Compression:

Stored size: 946 Bytes

Contents

# frozen_string_literal: true

module Afterpay
  module Components
    class Refund < Base
      # @attribute request_id
      # @return [String]
      # A unique request ID, required for safe retries. It is recommended that the merchant generate a UUID for each
      # unique refund.
      attr_accessor :request_id

      # @attribute merchant_reference
      # @return [String]
      # The merchant's refund id / reference that this refund corresponds to.
      attr_accessor :merchant_reference

      # @attribute refund_merchant_reference
      # @return [String]
      # A unique reference for the individual refund event. If provided, the value will appear in the daily settlement
      # file as "Payment Event ID". Limited to 128 characters.
      attr_accessor :refund_merchant_reference

      # @attribute amount
      # @return [Afterpay::Components::Money]
      # The refund amount.
      attr_accessor :amount
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
afterpay-0.6.0 lib/afterpay/components/refund.rb
afterpay-0.5.0 lib/afterpay/components/refund.rb
afterpay-0.4.0 lib/afterpay/components/refund.rb
afterpay-0.3.0 lib/afterpay/components/refund.rb
afterpay-0.2.0 lib/afterpay/components/refund.rb
afterpay-0.1.0 lib/afterpay/components/refund.rb