Sha256: 61ac5eff7cc6b480115865a3d8e8a2d8146b32f1690cd7bf2c38a54fb61b2a33

Contents?: true

Size: 1.62 KB

Versions: 1

Compression:

Stored size: 1.62 KB

Contents

require 'money_s3/base_element'
require 'money_s3/adresa_type'
require 'money_s3/telefon_type'
require 'money_s3/eshop'

module MoneyS3
  class KonecPrijFirmaType
    include BaseElement

    def nazev
      at :Nazev
    end

    def guid
      at :GUID
    end

    def e_mail
      at :EMail
    end

    def www
      at :WWW
    end

    def ico
      at :ICO
    end

    def dic
      at :DIC
    end

    def dicsk
      at :DICSK
    end

    def platce_dph
      at :PlatceDPH
    end

    def fyz_osoba
      at :FyzOsoba
    end

    def banka
      at :Banka
    end

    def ucet
      at :Ucet
    end

    def kod_banky
      at :KodBanky
    end

    def v_symb
      at :VSymb
    end

    def spec_sym
      at :SpecSym
    end

    def kod_partn
      at :KodPartn
    end

    def adresa
      submodel_at(AdresaType, :Adresa)
    end

    def tel
      submodel_at(TelefonType, :Tel)
    end

    def fax
      submodel_at(TelefonType, :Fax)
    end

    def mobil
      submodel_at(TelefonType, :Mobil)
    end

    def eshop
      submodel_at(Eshop, :eshop)
    end

    def to_h
      { nazev: nazev,
        guid: guid,
        e_mail: e_mail,
        www: www,
        ico: ico,
        dic: dic,
        dicsk: dicsk,
        platce_dph: platce_dph,
        fyz_osoba: fyz_osoba,
        banka: banka,
        ucet: ucet,
        kod_banky: kod_banky,
        v_symb: v_symb,
        spec_sym: spec_sym,
        kod_partn: kod_partn,
        adresa: adresa.to_h,
        tel: tel.to_h,
        fax: fax.to_h,
        mobil: mobil.to_h,
        eshop: eshop.to_h
      }.delete_if { |k, v| v.nil? || v.empty? }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
money_s3-0.3.0 lib/money_s3/konec_prij_firma_type.rb