Class: Tikkie::Api::Clients::PaymentRequests
- Inherits:
-
Base
- Object
- Base
- Tikkie::Api::Clients::PaymentRequests
show all
- Defined in:
- lib/tikkie/api/clients/payment_requests.rb
Overview
Payment Request endpoint at Tikkie.
Instance Attribute Summary
Attributes inherited from Base
#config
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#create(attributes = {}, options = {}) ⇒ Object
18
19
20
21
|
# File 'lib/tikkie/api/clients/payment_requests.rb', line 18
def create(attributes = {}, options = {})
payment_request = Tikkie::Api::Resources::PaymentRequest.new(config, options)
payment_request.save(attributes)
end
|
#get(payment_request_token, options = {}) ⇒ Object
13
14
15
16
|
# File 'lib/tikkie/api/clients/payment_requests.rb', line 13
def get(payment_request_token, options = {})
payment_request = Tikkie::Api::Resources::PaymentRequest.new(config, options.merge(payment_request_token: payment_request_token))
payment_request.load
end
|
#list(options = {}) ⇒ Object
8
9
10
11
|
# File 'lib/tikkie/api/clients/payment_requests.rb', line 8
def list(options = {})
payment_requests = Tikkie::Api::Resources::PaymentRequests.new(config, options)
payment_requests.load
end
|