1.0.15 • Published 4 years ago

mydeposits_developer_api v1.0.15

Weekly downloads
16
License
Unlicense
Repository
-
Last release
4 years ago

mydeposits_developer_api

MydepositsDeveloperApi - JavaScript client for mydeposits_developer_api API services to automate Deposit Protection within your existing Property Management Software workflows and applications for both England & Wales, and also Scotland This SDK is automatically generated by the OpenAPI Generator project:

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

Installation

For Node.js

npm

To publish the library as a npm, please follow the procedure in "Publishing npm packages".

Then install it via:

npm install mydeposits_developer_api --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 mydeposits_developer_api from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

Finally, you need to build the module:

npm run build

git

If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --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 MydepositsDeveloperApi = require('mydeposits_developer_api');

var api = new MydepositsDeveloperApi.AuthenticationServicesApi()
var scheme = "scheme_example"; // {String} ID of the selected deposit protection Scheme as returned by protectionschemes method.
var region = "region_example"; // {String} ID of the selected deposit protection Region as returned by protectionregions method.
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
api.authorisationCreate(scheme, region, callback);

Documentation for API Endpoints

All URIs are relative to https://api.sandbox.mydeposits.co.uk

ClassMethodHTTP requestDescription
MydepositsDeveloperApi.AuthenticationServicesApiauthorisationCreateGET /v1/{scheme}/{region}/authorizeRequest authorisation for a given member
MydepositsDeveloperApi.AuthenticationServicesApitokenCreatePOST /v1/{scheme}/{region}/tokenRequest a token for a given member
MydepositsDeveloperApi.BatchServicesApibatchAddTenancyPOST /v1/{scheme}/{region}/batch/{id}/tenancyAdd a tenancy deposit protection to an existing batch
MydepositsDeveloperApi.BatchServicesApibatchCheckoutPOST /v1/{scheme}/{region}/batch/{id}/checkoutCheckout a batch containing tenancy deposit protections
MydepositsDeveloperApi.BatchServicesApibatchGetGET /v1/{scheme}/{region}/batch/{id}Retrieve batch entity details for a batch under a specified mydeposits member account
MydepositsDeveloperApi.BatchServicesApibatchGetListGET /v1/{scheme}/{region}/batchesRetrieve a list of all batches underneath an account
MydepositsDeveloperApi.BatchServicesApibatchPostPOST /v1/{scheme}/{region}/batchCreate new batch entity within a specified mydeposits Custodial account
MydepositsDeveloperApi.GlobalServicesApiprotectionRegionsGetGET /v1/protectionregionsList of regions served by mydeposits
MydepositsDeveloperApi.GlobalServicesApiprotectionSchemesGetGET /v1/{region}/protectionschemesList of available Deposit Protection Schemes within this region
MydepositsDeveloperApi.GlobalServicesApischemeRulesGetGET /v1/{scheme}/{region}/schemerulesReturns a link to the Scheme Rules for this scheme and region
MydepositsDeveloperApi.LandlordServicesApilandlordGetGET /v1/{scheme}/{region}/landlord/{id}Retrieve landlord entity details for a landlord under a specified mydeposits member account
MydepositsDeveloperApi.LandlordServicesApilandlordPostPOST /v1/{scheme}/{region}/landlordCreate new landlord entity within a specified mydeposits member account
MydepositsDeveloperApi.LandlordServicesApilandlordPutPUT /v1/{scheme}/{region}/landlord/{id}Update a landlord entity within a specified mydeposits member account
MydepositsDeveloperApi.MemberAccountServicesApiaddMemberPOST /v1/{scheme}/{region}/memberCreate a new member account record
MydepositsDeveloperApi.MemberAccountServicesApimemberBranchCreatePOST /v1/{scheme}/{region}/member/branchCreate a new branch under a corporate landlord or agent member's account record
MydepositsDeveloperApi.MemberAccountServicesApimemberBranchGetGET /v1/{scheme}/{region}/member/branch/{id}Request details for a given branch under the member's account
MydepositsDeveloperApi.MemberAccountServicesApimemberBranchListGET /v1/{scheme}/{region}/member/branchesRequest all branches for a given corporate landlord or agent member
MydepositsDeveloperApi.MemberAccountServicesApimemberBranchPutPUT /v1/{scheme}/{region}/member/branch/{id}Update an existing branch
MydepositsDeveloperApi.MemberAccountServicesApimemberPaymentDetailsCreatePOST /v1/{scheme}/{region}/member/account/payment/detailCustodial only - Add repayment details under a member account record
MydepositsDeveloperApi.MemberAccountServicesApimemberPaymentDetailsDefaultPOST /v1/{scheme}/{region}/member/account/payment/{id}/defaultCustodial only - Set the default repayment details for the member's account
MydepositsDeveloperApi.MemberAccountServicesApimemberPaymentDetailsGetGET /v1/{scheme}/{region}/member/account/payment/detailsCustodial only - Request all stored UK repayment details for a given member
MydepositsDeveloperApi.MemberAccountServicesApisubscribeMemberPOST /v1/{scheme}/{region}/member/subscribeSubscribe a member to the specified scheme
MydepositsDeveloperApi.PropertyServicesApipropertyGetGET /v1/{scheme}/{region}/property/{id}Return all information for this property
MydepositsDeveloperApi.PropertyServicesApipropertyPostPOST /v1/{scheme}/{region}/propertyCreate a new property record within a specified mydeposits member account
MydepositsDeveloperApi.PropertyServicesApipropertyPutPUT /v1/{scheme}/{region}/property/{id}Update an existing property
MydepositsDeveloperApi.TenancyServicesApitenancyCertificateGET /v1/{scheme}/{region}/tenancy/{id}/depositprotectionRetrieve deposit protection PDF
MydepositsDeveloperApi.TenancyServicesApitenancyCheckoutPOST /v1/{scheme}/{region}/tenancy/{id}/checkoutCheckout a tenancy deposit protection
MydepositsDeveloperApi.TenancyServicesApitenancyGetGET /v1/{scheme}/{region}/tenancy/{id}Retrieve details of a tenancy
MydepositsDeveloperApi.TenancyServicesApitenancyGetListGET /v1/{scheme}/{region}/tenanciesRetrieve a list of all tenancies underneath an account
MydepositsDeveloperApi.TenancyServicesApitenancyPostPOST /v1/{scheme}/{region}/tenancyCreate new tenancy record within a specified mydeposits member account
MydepositsDeveloperApi.TenancyServicesApitenancyUnprotectPOST /v1/{scheme}/{region}/tenancy/{id}/unprotectSubmit a request to initiate a deposit release
MydepositsDeveloperApi.TenancyServicesApitenancyUnprotectAcceptPOST /v1/{scheme}/{region}/tenancy/{id}/unprotect/acceptCustodial only - Accept a tenant's deposit release request
MydepositsDeveloperApi.TenancyServicesApitenancyUnprotectCounterPOST /v1/{scheme}/{region}/tenancy/{id}/unprotect/counterCustodial only - Submit a counter offer to a tenant's release request
MydepositsDeveloperApi.TenancyServicesApitenancyUnprotectOTPPOST /v1/{scheme}/{region}/tenancy/{id}/otpRequest a One Time Password to initiate or respond to a release
MydepositsDeveloperApi.TenancyServicesApitenancyUnprotectSPTPOST /v1/{scheme}/{region}/tenancy/{id}/convertsptInsurance only - Convert a live protection to a statutory periodic tenancy

Documentation for Models

Documentation for Authorization

mydeposits_accessCode

mydeposits_implicit

  • Type: OAuth
  • Flow: password
  • Authorization URL:
  • Scopes: N/A
1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.9

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.12

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.2.2

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago