Class: FundAmerica::CustomerAgreement

Inherits:
Object
  • Object
show all
Defined in:
lib/fund_america/customer_agreement.rb

Class Method Summary collapse

Class Method Details

.edit(entity_id) ⇒ Object

End point: apps.fundamerica.com/api/entities/:id/customer_agreement/edit (GET) Usage: FundAmerica::CustomerAgreement.edit(entity_id) Output: Returns the form details for the customer agreement



8
9
10
# File 'lib/fund_america/customer_agreement.rb', line 8

def edit(entity_id)
  API::request(:get, "entities/#{entity_id}/customer_agreement/edit")
end

.update(entity_id, options) ⇒ Object

End point: apps.fundamerica.com/api/entities/:id/customer_agreement (PATCH) Usage: FundAmerica::CustomerAgreement.update(entity_id, options) Output: Fill out the customer agreement



15
16
17
# File 'lib/fund_america/customer_agreement.rb', line 15

def update(entity_id, options)
  API::request(:patch, "entities/#{entity_id}/customer_agreement", options)
end