Class: Iyzipay::Model::InstallmentDetails

Inherits:
Object
  • Object
show all
Defined in:
lib/iyzipay/model/installment_details.rb

Class Method Summary collapse

Class Method Details

.to_pki_string(request) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/iyzipay/model/installment_details.rb', line 4

def self.to_pki_string(request)
  unless request.nil?
    installment_details = Array.new
    request.each do |item|
      item_pki = PkiBuilder.new.
          append(:bankId, item[:bankId]).
          append_array(:installmentPrices, InstallmentPrices.to_pki_string(item[:installmentPrices])).
          get_request_string
      installment_details << item_pki
    end
    installment_details
  end
end