Sha256: 56eb239ef97579e1b9b1e87f2de0588c17eaca3683c7fe1f3fd528d4f9a08403
Contents?: true
Size: 744 Bytes
Versions: 10
Compression:
Stored size: 744 Bytes
Contents
module Iyzi module Requests class SubMerchant < Request attr_accessor :type class << self def create(options) new(:create, Endpoints::HTTP_POST, Endpoints::SUB_MERCHANT_CREATE, options) end def update(options) new(:update, Endpoints::HTTP_PUT, Endpoints::SUB_MERCHANT_UPDATE, options) end def retreive(options) new(:retreive, Endpoints::HTTP_POST, Endpoints::SUB_MERCHANT_DETAIL, options) end end def initialize(type, method, path, options = {}) @type = type super(method, path, options) end def to_pki PkiBuilders::SubMerchant.new(type, iyzi_options).request_string end end end end
Version data entries
10 entries across 10 versions & 1 rubygems