1.1.1 • Published 4 years ago

yl-third-party-onboarding-api-client v1.1.1

Weekly downloads
20
License
MT
Repository
github
Last release
4 years ago

yl-third-party-onboarding-api-client

YouLendThirdPartyOnboardingApi - JavaScript client for Youlend Third Party Onboarding Api.

Through this API you can can initiate the process of onboarding a borrower with YouLend

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0
  • Package version: 1.1.1
  • Build package: org.openapitools.codegen.languages.JavascriptClientCodegen

Installation

For Node.js

npm

Then install it via:

npm install yl-third-party-onboarding-api-client --save

Finally, you need to build the module:

npm run build
Local development

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Let's call this JAVASCRIPT_CLIENT_DIR. Then run:

npm install

Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR:

npm link

To use the link you just defined in your project, switch to the directory you want to use your yl-third-party-onboarding-api-client from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

Finally, you need to build the module:

npm run build

git

The library is hosted at a git repository, e.g. https://github.com/YouLend/yl-third-party-onboarding-api-client.git then install it via:

    npm install https://github.com/YouLend/yl-third-party-prequalification-api-client.git --save

For browser

The library also works in the browser environment via npm and browserify. After following the above steps with Node.js and installing browserify with npm install -g browserify, perform the following (assuming main.js is your entry file):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:

module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}

Getting Started

Please follow the installation instruction and execute the following JS code:

var YlThirdPartyOnboardingApiClient = require('yl-third-party-onboarding-api-client');

var defaultClient = YlThirdPartyOnboardingApiClient.ApiClient.instance;
// Configure OAuth2 access token for authorization: oauth2
var oauth2 = defaultClient.authentications['oauth2'];
oauth2.accessToken = "YOUR ACCESS TOKEN"

var api = new YlThirdPartyOnboardingApiClient.DocumentSigningApi()
var documentSigningId = null; // {String} GUID used to identify the document signing
var opts = {
  'apiVersion': "apiVersion_example" // {String} 

};
api.documentSigningDocumentSigningIdGet(documentSigningId, opts).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Documentation for API Endpoints

All URIs are relative to https://dev.youlendapi.com/onboarding

ClassMethodHTTP requestDescription
YlThirdPartyOnboardingApiClient.DocumentSigningApidocumentSigningDocumentSigningIdGetGET /DocumentSigning/{documentSigningId}Gets the document signing for specified document
YlThirdPartyOnboardingApiClient.LeadsApileadsLeadIdAccountdetailsGetGET /Leads/{leadId}/accountdetailsAn endpoint for adding account details to a lead
YlThirdPartyOnboardingApiClient.LeadsApileadsLeadIdAccountdetailsPutPUT /Leads/{leadId}/accountdetailsAn endpoint for adding account details to a lead
YlThirdPartyOnboardingApiClient.LeadsApileadsLeadIdDetailsGetGET /Leads/{leadId}/detailsAn endpoint for viewing the onboarding details of a lead
YlThirdPartyOnboardingApiClient.LeadsApileadsLeadIdDocumentsBankstatementsPostPOST /Leads/{leadId}/documents/bankstatementsAn endpoint for adding bank statements to a lead
YlThirdPartyOnboardingApiClient.LeadsApileadsLeadIdDocumentsGetGET /Leads/{leadId}/documentsAn endpoint for getting kyc documents for a significant person
YlThirdPartyOnboardingApiClient.LeadsApileadsLeadIdDocumentsPaymentdataPostPOST /Leads/{leadId}/documents/paymentdataAn endpoint for adding payment data documents to a lead
YlThirdPartyOnboardingApiClient.LeadsApileadsLeadIdDocumentsSignificantpersonsSignificantPersonIdKycDocumentTypePostPOST /Leads/{leadId}/documents/significantpersons/{significantPersonId}/{kycDocumentType}An endpoint for adding kyc documents for a significant person
YlThirdPartyOnboardingApiClient.LeadsApileadsLeadIdKycquestionsGetGET /Leads/{leadId}/kycquestionsAn endpoint for viewing the kyc questions of a lead
YlThirdPartyOnboardingApiClient.LeadsApileadsLeadIdKycquestionsPutPUT /Leads/{leadId}/kycquestionsAn endpoint for adding KYC question answers to a lead
YlThirdPartyOnboardingApiClient.LeadsApileadsLeadIdOfferGetGET /Leads/{leadId}/offerAn endpoint for getting the loan offer
YlThirdPartyOnboardingApiClient.LeadsApileadsLeadIdOfferPostPOST /Leads/{leadId}/offerAn endpoint for creating the loan offer
YlThirdPartyOnboardingApiClient.LeadsApileadsLeadIdOptionsGetGET /Leads/{leadId}/optionsAn endpoint for getting the loan options for a lead
YlThirdPartyOnboardingApiClient.LeadsApileadsLeadIdOrganisationdetailsPutPUT /Leads/{leadId}/organisationdetailsAn endpoint for adding organisation details
YlThirdPartyOnboardingApiClient.LeadsApileadsLeadIdOrganisationsdetailsGetGET /Leads/{leadId}/organisationsdetailsAn endpoint for viewing the organisation details of a lead
YlThirdPartyOnboardingApiClient.LeadsApileadsLeadIdPaymentdataGetGET /Leads/{leadId}/paymentdataAn endpoint for viewing the payment data of a lead
YlThirdPartyOnboardingApiClient.LeadsApileadsLeadIdPaymentgatewaysPostPOST /Leads/{leadId}/paymentgatewaysAn endpoint for adding a payment gateway to a lead
YlThirdPartyOnboardingApiClient.LeadsApileadsLeadIdSignificantpersonsPutPUT /Leads/{leadId}/significantpersonsAn endpoint for updating significant persons for a lead
YlThirdPartyOnboardingApiClient.LeadsApileadsLeadIdStatePutPUT /Leads/{leadId}/stateAn endpoint for updating the state of an onboarding
YlThirdPartyOnboardingApiClient.LeadsApileadsPostPOST /LeadsCreates a Youlend Advance Lead

Documentation for Models

Documentation for Authorization

oauth2

  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes: N/A
1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago