class CapitalOnTap::Application

Constants

BUSINESS_TYPES
DEFAULT_PARAMS
SALUTATIONS

Attributes

business_address[RW]
business_land_line[RW]
business_type[RW]
customer_uses_personal_bank_account_for_business[RW]
date_of_birth[RW]
email_address[RW]
external_reference[RW]
first_name[RW]
home_phone[RW]
last_name[RW]
middle_name[RW]
mobile_phone[RW]
monthly_expenditure[RW]
monthly_income[RW]
monthly_turn_over[RW]
montly_business_expenditure[RW]
on_paste_event_fields[RW]
partner_code[RW]
personal_address[RW]
promo_code[RW]
registration_number[RW]
requested_credit[RW]
restricted_countries[RW]
salutation[RW]
trading_name[RW]
years_trading[RW]

Public Class Methods

create(params) click to toggle source

Create a new application with the given parameters Example JSON: {

"CustomerId": null,
"Salutation": "Mr",
"FirstName": "Amjed",
"MiddleName": "",
"LastName": "Ali",
"DateOfBirth": "1967-07-14T00:00:00+01:00",
"MobilePhone": "07841580124",
"HomePhone": null,
"EmailAddress": "something@anything.com",
"MonthlyIncome": 5000,
"MonthlyExpenditure": 4000,
"PersonalAddress": {
  "Company": null,
  "BuildingName": "",
  "UnitNumber": "",
  "BuildingNumber": "244",
  "Street": "Grahams Road",
  "PostCode": "CH61 7XF",
  "City": "Wirral",
  "CountryCode": "UK",
  "Line1": "PostApplication",
  "Line2": null
},
"TradingName": "Glamour Bikinis And Clothing Boutique Limited",
"BusinessLegalName": "Glamour Bikinis And Clothing Boutique Limited",
"BusinessLandline": "07874186570",
"YearsTrading":8,
"MonthlyTurnOver":10000,
"BusinessType": "LimitedCompany",
"RegistrationNumber":10322035,
"BusinessAddress": {
  "Company": null,
  "BuildingName": "",
  "UnitNumber": "",
  "BuildingNumber": "102",
  "Street": "Ford Road",
  "PostCode": "CH49 0TQ",
  "City": "Wirral",
  "CountryCode": "UK",
  "Line1": "PostApplication",
  "Line2": null
},
"PromoCode": null,
"OnPasteEventFields": null,
"MonthlyBusinessExpenditure": null,
"GoogleSessionId": null,
"PartnerCode": null,
"ExternalReference": null,
"RestrictedCountries":false,
"RequestedCredit":10000,
"ApplicationGuid": null

}

# File lib/capital_on_tap/application.rb, line 104
def self.create(params)
  CapitalOnTap.connection.post('Applications', params)
end
status(locator_id) click to toggle source
# File lib/capital_on_tap/application.rb, line 108
def self.status(locator_id)
  CapitalOnTap.connection.get("Applications/#{locator_id}")
end