Sha256: a0edf287f520a08754547ab2e920d0789e2951163763b2556990e533557f6db0

Contents?: true

Size: 644 Bytes

Versions: 1

Compression:

Stored size: 644 Bytes

Contents

# frozen_string_literal: true

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

module Yookassa
  module Entity
    class Payment < Yookassa::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
yookassa-0.1.0 lib/yookassa/entity/payment.rb