Sha256: 740936c5cdaa2858c13e152a25f0c8bbd1a2faa6c0f924b41eaa079ecacd6fd6
Contents?: true
Size: 1.21 KB
Versions: 10
Compression:
Stored size: 1.21 KB
Contents
module Iyzi module PkiBuilders class SubMerchant < PkiBuilder CREATE_ATTRIBUTES_ORDER = %w{ locale conversationId name email gsmNumber address iban taxOffice contactName contactSurname legalCompanyTitle subMerchantExternalId identityNumber taxNumber subMerchantType }.freeze UPDATE_ATTRIBUTE_ORDER = %w{ locale conversationId name email gsmNumber address iban taxOffice contactName contactSurname legalCompanyTitle subMerchantKey identityNumber taxNumber } RETREIVE_ATTRIBUTE_ORDER = %w{ locale conversationId subMerchantExternalId } def initialize(type, values = {}) super(values, order_for(type)) end def order_for(type) case type when :create CREATE_ATTRIBUTES_ORDER when :update UPDATE_ATTRIBUTE_ORDER when :retreive RETREIVE_ATTRIBUTE_ORDER else raise "no attribute order for #{type}" end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems