Class: Ncba::TransactionQuery

Inherits:
Resource
  • Object
show all
Defined in:
lib/ncba/resources/transaction_query.rb

Overview

TransactionQuery

Constant Summary collapse

PATH =
'/api/TransactionQuery'

Instance Attribute Summary

Attributes inherited from Resource

#args, #client

Instance Method Summary collapse

Methods inherited from Resource

#get_request, #handle_response, #initialize, #post_request

Constructor Details

This class inherits a constructor from Ncba::Resource

Instance Method Details

#bodyObject



12
13
14
15
16
17
# File 'lib/ncba/resources/transaction_query.rb', line 12

def body
  {
    "Country": args[:country],
    "ReferenceNumber": args[:reference_number]
  }
end

#callObject



8
9
10
# File 'lib/ncba/resources/transaction_query.rb', line 8

def call
  post_request(url: PATH, body: body).body
end