Sha256: 5c7639033374e60120194b436ef2c009b74370c11338eec93d99c7ba2bd3e6bb

Contents?: true

Size: 656 Bytes

Versions: 1

Compression:

Stored size: 656 Bytes

Contents

# frozen_string_literal: true

require_relative './amount'
require_relative './payment_method'
require_relative './confirmation'

module YandexCheckout
  module Entity
    class Payment < YandexCheckout::Response
      option :paid
      option :amount, Entity::Amount
      option :created_at
      option :captured_at, proc(&:to_s), optional: true
      option :expires_at, optional: true
      option :description, proc(&:to_s), optional: true
      option :metadata, optional: true
      option :payment_method, Entity::PaymentMethod, optional: true
      option :confirmation, Entity::Confirmation, optional: true
      option :test
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yandex-checkout-0.1.1 lib/yandex-checkout/entity/payment.rb