File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ module BeGateway
1515 autoload :Transaction , "be_gateway/response/transaction"
1616 autoload :VerifyP2p , "be_gateway/response/verify_p2p"
1717 autoload :VendorTokenResponse , "be_gateway/response/vendor_token_response"
18+ autoload :VendorParentUidResponse , "be_gateway/response/vendor_parent_uid_response"
1819 autoload :AsyncResponse , "be_gateway/response/async_response"
1920
2021 module V3
Original file line number Diff line number Diff line change @@ -33,7 +33,11 @@ def query(params)
3333 end
3434
3535 def vendor_token ( vendor_name :, vendor_token :)
36- BeGateway ::VendorTokenResponse . new ( send_request ( 'get' , "/vendor_tokens/#{ vendor_name } /#{ vendor_token } " ) . to_params )
36+ BeGateway ::VendorTokenResponse . new ( send_request ( 'get' , "/vendor/tokens/#{ vendor_name } /#{ vendor_token } " ) . to_params )
37+ end
38+
39+ def vendor_parent_uid ( vendor_name :, vendor_token :)
40+ BeGateway ::VendorParentUidResponse . new ( send_request ( 'get' , "/vendor/parent_transaction/#{ vendor_name } /#{ vendor_token } " ) . to_params )
3741 end
3842
3943 def close_days ( params )
Original file line number Diff line number Diff line change 1+ module BeGateway
2+ class VendorParentUidResponse < OpenStruct
3+ def successful?
4+ !transaction . nil?
5+ end
6+
7+ def invalid?
8+ !successful?
9+ end
10+
11+ def message
12+ self . dig ( 'response' , 'message' )
13+ end
14+ end
15+ end
Original file line number Diff line number Diff line change 11module BeGateway
2- VERSION = '1.4 .0'
2+ VERSION = '1.5 .0'
33end
You can’t perform that action at this time.
0 commit comments