Class: FundAmerica::EscrowServiceApplication

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

Class Method Summary collapse

Class Method Details

.create(options) ⇒ Object

End point: apps.fundamerica.com/api/escrow_service_applications (POST) Usage: FundAmerica::EscrowServiceApplication.create(options) Output: Creates a new escrow_service_application



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

def create(options)
  API::request(:post, 'escrow_service_applications', options)
end

.details(escrow_service_application_id) ⇒ Object

End point: apps.fundamerica.com/api/escrow_service_applications/:id (GET) Usage: FundAmerica::EscrowServiceApplication.details(escrow_service_application_id) Output: Returns the details of an escrow_service_application with matching id



30
31
32
# File 'lib/fund_america/escrow_service_application.rb', line 30

def details(escrow_service_application_id)
  API::request(:get, "escrow_service_applications/#{escrow_service_application_id}")
end

.listObject

End point: apps.fundamerica.com/api/escrow_service_applications (GET) Usage: FundAmerica::EscrowServiceApplication.list Output: Returns list of escrow_service_applications



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

def list
  API::request(:get, 'escrow_service_applications')
end

.update(escrow_service_application_id, options) ⇒ Object

End point: sandbox.fundamerica.com/api/test_mode/escrow_service_applications/:id (PATCH) Usage: FundAmerica::EscrowServiceApplication.update(escrow_service_application_id, options) Output: Updates the escrow service application with matching id Important: Sandbox only method



23
24
25
# File 'lib/fund_america/escrow_service_application.rb', line 23

def update(escrow_service_application_id, options)
  API::request(:patch, "https://sandbox.fundamerica.com/api/test_mode/escrow_service_applications/#{escrow_service_application_id}", options)
end