Class: Acc::Service
- Inherits:
-
Object
- Object
- Acc::Service
- Defined in:
- lib/acc/service.rb
Instance Method Summary collapse
- #bulk_enroll(data) ⇒ Object
- #check_transaction_status(data) ⇒ Object
- #show_order_details(data) ⇒ Object
Instance Method Details
#bulk_enroll(data) ⇒ Object
5 6 7 8 |
# File 'lib/acc/service.rb', line 5 def bulk_enroll data http_resp = request(Acc.bulk_enroll_endpoint, data) Acc::BulkEnrollResponse.new JSON.parse(http_resp.body_str) end |
#check_transaction_status(data) ⇒ Object
10 11 12 13 |
# File 'lib/acc/service.rb', line 10 def check_transaction_status data http_resp = request(Acc.check_transaction_endpoint, data) Acc::CheckTransactionResponse.new JSON.parse(http_resp.body_str) end |
#show_order_details(data) ⇒ Object
15 16 17 18 |
# File 'lib/acc/service.rb', line 15 def show_order_details data http_resp = request(Acc.show_order_endpoint, data) JSON.parse(http_resp.body_str) end |