Class: ApRubySdk::Preauthorization

Inherits:
ApiResource show all
Includes:
ApiOperations::Create
Defined in:
lib/ap_ruby_sdk/preauthorization.rb

Instance Attribute Summary collapse

Attributes inherited from ApiResource

#mode

Attributes inherited from BaseModel

#created, #id, #mode, #updated

Class Method Summary collapse

Methods included from ApiOperations::Create

included

Methods inherited from ApiResource

construct_object, url_with_prefix

Methods inherited from BaseModel

#attributes=, #initialize, #to_json

Constructor Details

This class inherits a constructor from ApRubySdk::BaseModel

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



5
6
7
# File 'lib/ap_ruby_sdk/preauthorization.rb', line 5

def amount
  @amount
end

#currencyObject

Returns the value of attribute currency.



5
6
7
# File 'lib/ap_ruby_sdk/preauthorization.rb', line 5

def currency
  @currency
end

#customerObject

Returns the value of attribute customer.



5
6
7
# File 'lib/ap_ruby_sdk/preauthorization.rb', line 5

def customer
  @customer
end

#paymentObject

Returns the value of attribute payment.



5
6
7
# File 'lib/ap_ruby_sdk/preauthorization.rb', line 5

def payment
  @payment
end

Class Method Details

.list_membersObject



22
23
24
# File 'lib/ap_ruby_sdk/preauthorization.rb', line 22

def self.list_members
  :preauthorizations
end

.urlObject



18
19
20
# File 'lib/ap_ruby_sdk/preauthorization.rb', line 18

def self.url
  '/preauthorizations'
end