Options
All
  • Public
  • Public/Protected
  • All
Menu

Inner module.Define default request config with the API spec .

Index

Variables

Const BusinessConfigs

BusinessConfigs: ConfigStruct[] = _BusinessConfigs()

Default request config for each Business Action. Index corresponds to the order of enumeration.

Const CommonConfigs

CommonConfigs: ConfigStruct[] = _CommonConfigs()

Default request config for each Common Action. Index corresponds to the order of enumeration.

Const Sch_YN

Sch_YN: StringSchema = Joi.string().valid('Y', 'N').required()

Y/N schema

Const Sch_barcode

Sch_barcode: StringSchema = Joi.string().valid('QRCode', 'Barcode').required()

bar code type schema

Const Sch_cardType

Sch_cardType: StringSchema = Joi.string().valid(CarrierCardType.EasyCard,CarrierCardType.ICASH,CarrierCardType.IPASS,CarrierCardType.MOICACDC,CarrierCardType.Mobile).required()

cardType schema

Const Sch_invDate

Sch_invDate: StringSchema = Joi.string().regex(/^[0-9]{4}\/[0-9]{2}\/[0-9]{2}$/, 'yyyy/MM/dd').required()

invDate schema

Const Sch_invNum

Sch_invNum: StringSchema = Joi.string().regex(/^[A-Z]{2}[0-9]{8}$/, '[A-Z]{2}[0-9]{8}').required()

invNum schema

Const Sch_invTerm

Sch_invTerm: StringSchema = Joi.string().regex(/^[0-9]{5}$/, 'yyyMM').required()

invTerm schema

Const Sch_verify

Sch_verify: StringSchema = Joi.string().regex(/^(?=.*\d)(?=.*[a-zA-Z])([^'"+=?\\\/\s]){8,16}$/, 'password').required()

verify code (password) schema

Functions

Sch_digits

  • Sch_digits(n?: undefined | number): StringSchema
  • digit string schema

    Parameters

    • Optional n: undefined | number

    Returns StringSchema

Sch_when

  • Sch_when(ref: string, opt: WhenOptions): AlternativesSchema
  • when condition schema

    Parameters

    • ref: string
    • opt: WhenOptions

    Returns AlternativesSchema

_BusinessConfigs

_CommonConfigs

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc