class Iyzipay::Model::RefundChargedFromMerchant

Public Instance Methods

create(request = {}, options) click to toggle source
# File lib/iyzipay/model/refund_charged_from_merchant.rb, line 5
def create(request = {}, options)
  pki_string = to_pki_string(request)
  HttpClient.post("#{options.base_url}/payment/iyzipos/refund/merchant/charge", get_http_header(pki_string, options), request.to_json)
end
to_pki_string(request) click to toggle source
Calls superclass method Iyzipay::IyzipayResource#to_pki_string
# File lib/iyzipay/model/refund_charged_from_merchant.rb, line 10
def to_pki_string(request)
  PkiBuilder.new.append_super(super).
      append(:paymentTransactionId, request[:paymentTransactionId]).
      append_price(:price, request[:price]).
      append(:ip, request[:ip]).
      append(:currency, request[:currency]).
      get_request_string
end