Class: Payg::Order

Inherits:
Entity show all
Defined in:
lib/payg/order.rb

Overview

Order API allows you to associate Payments with an order entity

Instance Attribute Summary

Attributes inherited from Entity

#attributes

Class Method Summary collapse

Methods inherited from Entity

#initialize, #method_missing, #respond_to_missing?, #to_json, #with_a_bang

Constructor Details

This class inherits a constructor from Payg::Entity

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Payg::Entity

Class Method Details

.create(options) ⇒ Object



12
13
14
# File 'lib/payg/order.rb', line 12

def self.create(options)
  request.post "/create", options
end

.detail(options) ⇒ Object



16
17
18
# File 'lib/payg/order.rb', line 16

def self.detail(options)
  request.post "/detail", options
end

.refund(options) ⇒ Object



20
21
22
# File 'lib/payg/order.rb', line 20

def self.refund(options)
  request.post "/detail", options
end

.requestObject



8
9
10
# File 'lib/payg/order.rb', line 8

def self.request
  Payg::Request.new('order')
end