Sha256: c36edfe8f90f3b4dc1617e4cbdf4a777f28412b84e6f57e7b6f6fbede9c7c869

Contents?: true

Size: 530 Bytes

Versions: 3

Compression:

Stored size: 530 Bytes

Contents

module IyziPay
  module Model
    class InstallmentPrices
      def self.to_pki_string(request)
        unless request.nil?
          installment_prices = Array.new
          request.each do |item|
            item_pki = PkiBuilder.new.
                append(:installmentNumber, item[:installmentNumber]).
                append_price(:totalPrice, item[:totalPrice]).
                get_request_string
            installment_prices << item_pki
          end
          installment_prices
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
iyzipay-zebramo-1.0.39 lib/iyzipay/model/installment_prices.rb
iyzipay-zebramo-1.0.38 lib/iyzipay/model/installment_prices.rb
iyzipay-zebramo-1.0.37 lib/iyzipay/model/installment_prices.rb