Sha256: f677e97f5e64fc1ff78bedd9359a10288331e775809af3500aacff8d47c83e3e

Contents?: true

Size: 1.64 KB

Versions: 1

Compression:

Stored size: 1.64 KB

Contents

module Cobrato
  module Entities
    class Payment < Base
      # Shared with all
      attribute :id,                    Integer
      attribute :payment_config_id,     Integer
      attribute :amount,                Decimal
      attribute :date,                  Date
      attribute :our_number,            String
      attribute :payment_method,        String
      attribute :payment_type,          String
      attribute :registration_status,   String

      # Shared with some
      attribute :due_date,              Date

      # Transfer specific
      attribute :account,               String
      attribute :account_digit,         String
      attribute :agency,                String
      attribute :bank_code,             String
      attribute :payee_name,            String
      attribute :payee_document_type,   String
      attribute :payee_document,        String
      attribute :doc_goal,              String
      attribute :ted_goal,              String

      # Billet specific
      attribute :discount_amount,       Decimal
      attribute :extra_amount,          Decimal
      attribute :barcode,               String

      # GPS specific
      attribute :gps_payment_code,      String
      attribute :competency_month,      String
      attribute :competency_year,       String
      attribute :other_entities_amount, Decimal
      attribute :monetary_update,       Decimal

      # DARF specific
      attribute :calculation_period,    Date
      attribute :receita_federal_code,  String
      attribute :reference_number,      String
      attribute :mulct_amount,          Decimal
      attribute :interest_amount,       Decimal
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cobrato-client-0.23.0.beta5 lib/cobrato/entities/payment.rb