Class: Lago::Api::Resources::PaymentRequest
- Inherits:
-
Base
- Object
- Base
- Lago::Api::Resources::PaymentRequest
show all
- Defined in:
- lib/lago/api/resources/payment_request.rb
Instance Attribute Summary
Attributes inherited from Base
#client
Instance Method Summary
collapse
Methods inherited from Base
#create, #destroy, #get, #get_all, #initialize, #update
Instance Method Details
#api_resource ⇒ Object
9
10
11
|
# File 'lib/lago/api/resources/payment_request.rb', line 9
def api_resource
'payment_requests'
end
|
#root_name ⇒ Object
13
14
15
|
# File 'lib/lago/api/resources/payment_request.rb', line 13
def root_name
'payment_request'
end
|
#whitelist_params(params) ⇒ Object
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/lago/api/resources/payment_request.rb', line 17
def whitelist_params(params)
result_hash = {
email: params[:email],
external_customer_id: params[:external_customer_id],
payment_status: params[:payment_status],
lago_invoice_ids: params[:lago_invoice_ids]
}.compact
{ root_name => result_hash }
end
|