Sha256: 2bee35187fb08d317290a55fd6b776b479dc0da4ed91b99bff799bb55538f0b5
Contents?: true
Size: 687 Bytes
Versions: 3
Compression:
Stored size: 687 Bytes
Contents
# frozen_string_literal: true module Payture::Cheques module Methods class Create < Base private def url "#{config.base_url}/Create" end def params(cheque_id:, inn:, content:, group: nil) message = content.delete("Message") || content.delete(:Message) params = { Key: config.merchant_id, Password: config.password, Message: message, Cheque: { Id: cheque_id, INN: inn, Content: content, }, } params[:Group] = group if group params end def response_class Responses::Create end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
payture-cheques-0.1.3 | lib/payture/cheques/methods/create.rb |
payture-cheques-0.1.2 | lib/payture/cheques/methods/create.rb |
payture-cheques-0.1.0 | lib/payture/cheques/methods/create.rb |