# frozen_string_literal: true

# This file is generated. Do not edit.

require "peddler/types/money"
require "structure"

module Peddler
  module Types
    module FinancesV0
      # A payment made directly to a seller.
      DirectPayment = Structure.new do
        # @return [Types::Money] The amount of the direct payment.
        attribute?(:direct_payment_amount, Types::Money, from: "DirectPaymentAmount")

        # @return [String] The type of payment.
        #
        # Possible values:
        #
        # * StoredValueCardRevenue - The amount that is deducted from the seller's account because the seller received
        # money through a stored value card.
        #
        # * StoredValueCardRefund - The amount that Amazon returns to the seller if the order that is bought using a
        # stored value card is refunded.
        #
        # * PrivateLabelCreditCardRevenue - The amount that is deducted from the seller's account because the seller
        # received money through a private label credit card offered by Amazon.
        #
        # * PrivateLabelCreditCardRefund - The amount that Amazon returns to the seller if the order that is bought
        # using a private label credit card offered by Amazon is refunded.
        #
        # * CollectOnDeliveryRevenue - The COD amount that the seller collected directly from the buyer.
        #
        # * CollectOnDeliveryRefund - The amount that Amazon refunds to the buyer if an order paid for by COD is
        # refunded.
        attribute?(:direct_payment_type, String, from: "DirectPaymentType")
      end
    end
  end
end
