Class: PayPro::InstallmentPlan
Constant Summary
collapse
- RESOURCE_PATH =
'installment_plans'
Instance Attribute Summary
Attributes inherited from Entity
#api_client
Instance Method Summary
collapse
#update
#api_request
Methods inherited from Entity
create_from_data, #initialize, #inspect
Constructor Details
This class inherits a constructor from PayPro::Entity
Instance Method Details
#cancel(**options) ⇒ Object
9
10
11
|
# File 'lib/pay_pro/entities/installment_plan.rb', line 9
def cancel(**options)
api_request(method: 'delete', uri: resource_url, options: options)
end
|
#installment_plan_periods(**options) ⇒ Object
21
22
23
24
25
26
27
|
# File 'lib/pay_pro/entities/installment_plan.rb', line 21
def installment_plan_periods(**options)
api_request(
method: 'get',
uri: "#{resource_url}/installment_plan_periods",
options: options
)
end
|
#pause(**options) ⇒ Object
13
14
15
|
# File 'lib/pay_pro/entities/installment_plan.rb', line 13
def pause(**options)
api_request(method: 'post', uri: "#{resource_url}/pause", options: options)
end
|
#resume(**options) ⇒ Object
17
18
19
|
# File 'lib/pay_pro/entities/installment_plan.rb', line 17
def resume(**options)
api_request(method: 'post', uri: "#{resource_url}/resume", options: options)
end
|