glide-nodejs-sdk
Version:
Glide NodeJS SDK
17 lines (13 loc) • 519 B
JavaScript
const { object, string, number, boolean } = require("yup");
const updateMerchantSchema = object().shape({
canLogin: boolean(),
sendEmail: boolean(),
callbackURL: string(),
sandboxCallbackURL: string(),
businessType: string().oneOf(["FINANCIAL-SERVICES", "INFORMATION-TECHNOLOGY"]),
});
const getMerchantTransactionSchema = object().shape({
page: number().default(1),
type: string().default("ALL").oneOf(["ALL", "CREDIT", "DEBIT"]),
});
module.exports = { updateMerchantSchema, getMerchantTransactionSchema };