2.3.8 • Published 2 years ago

@yek-plus/ivd v2.3.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

IVD Lib V2

Installing

npm install @yek-plus/ivd
yarn add @yek-plus/ivd

Basic Usage

const Ivd = require("@yek-plus/ivd");
const ivd = new Ivd()
ivd.methods.Org({
    ilCode: Tax State Code,
    vdCode: Tax Province Code,
    tckNo:Turkish Identification Number,
    vNo: Tax Number,
  })
  .then(console.log);

Setup

constructor

Inputs

propertytyperequireddefaultdescription
fetchFetchfalseFetch from node-fetch packagefetch function

update

Inputs

propertytyperequireddefaultdescription
optionsobjecttruenullcontractor fields object
options.fetchFetchfalseFetch from node-fetch packagefetch function

Methods

Org

Inputs

propertytyperequireddefaultdescription
ilCodestringtruenullState Code
vdCodestringtruenullTax region code
tcknstringtruenullTurkish Identification Number
vNostringtruenullTax Number

Response

propertytypedescription
statusbooleanShows method is return without error
dataobjectIf method return with error, it will be null
data.statusstringStatus of organization
data.status_textstringStatus text of organization
data.tckNostringIf check with tckNo org, it will returns tckNo back
data.vkNostringIf check with vkNo org, it will returns vkNo back
data.vdCodestringReturns vdCode back
data.titlestringTitle of organization
data.validbooleanOrganization is active status

Usage

const Ivd = require("@yek-plus/ivd");
const ivd = new Ivd()
ivd.methods.Org({
    ilCode: Tax State Code,
    vdCode: Tax Province Code,
    tckNo:Turkish Identification Number,
    vNo: Tax Number,
  })
  .then(console.log);

IlList

Inputs

propertytyperequireddefaultdescription

Response

propertytypedescription
statusbooleanShows method is return without error
dataarrayIf method return with error, it will be null
data[]objectState item
data[].codestringCode of state
data[].namestringName of state

Usage

const Ivd = require('@yek-plus/ivd')
const ivd = new Ivd()
ivd.methods.IlList().then(console.log)

DaireList

Inputs

propertytyperequireddefaultdescription
ilCodestringtruenullCode of state

Response

propertytypedescription
statusbooleanShows method is return without error
dataarrayIf method return with error, it will be null
data[]objecttax region item
data[].codestringCode of state
data[].namestringName of state
data[].orgOidstringOrgOid of state
data[].code-namestringCode-name combination of state
data[].name-codestringName-code combination of state
data[].ilcodestringReturns ilCode

Usage

const Ivd = require('@yek-plus/ivd')
const ivd = new Ivd()
ivd.methods
  .DaireList({
    ilCode: '035',
  })
  .then(console.log)