class Iyzi::Requests::SubMerchant

Attributes

type[RW]

Public Class Methods

create(options) click to toggle source
# File lib/iyzi/requests/sub_merchant.rb, line 7
def create(options)
  new(:create, Endpoints::HTTP_POST, Endpoints::SUB_MERCHANT_CREATE, options)
end
new(type, method, path, options = {}) click to toggle source
Calls superclass method Iyzi::Request::new
# File lib/iyzi/requests/sub_merchant.rb, line 20
def initialize(type, method, path, options = {})
  @type = type
  super(method, path, options)
end
retreive(options) click to toggle source
# File lib/iyzi/requests/sub_merchant.rb, line 15
def retreive(options)
  new(:retreive, Endpoints::HTTP_POST, Endpoints::SUB_MERCHANT_DETAIL, options)
end
update(options) click to toggle source
# File lib/iyzi/requests/sub_merchant.rb, line 11
def update(options)
  new(:update, Endpoints::HTTP_PUT, Endpoints::SUB_MERCHANT_UPDATE, options)
end

Public Instance Methods

to_pki() click to toggle source
# File lib/iyzi/requests/sub_merchant.rb, line 25
def to_pki
  PkiBuilders::SubMerchant.new(type, iyzi_options).request_string
end