UNPKG

wk-nmi

Version:

This is a simple utility package

57 lines (56 loc) 1.32 kB
export type DayCustomSubscriptionInfo = { planPayments: string; planAmount: string; dayFrequency: string; startDate?: string; }; export type MonthCustomSubscriptionInfo = { planPayments: string; planAmount: string; monthFrequency: string; dayOfMonth: string; startDate?: string; }; export type SubDayRequest = { org?: string; type: string; userId: string; orderId: string; totalAmount: string; customSubscriptionInfo: DayCustomSubscriptionInfo; }; export type SubMonthRequest = Omit<SubDayRequest, "customSubscriptionInfo"> & { customSubscriptionInfo: MonthCustomSubscriptionInfo; }; type NmResponse = { response: string; responsetext: string; transactionid: string; response_code: string; customer_vault_id: string; subscription_id: string; }; export type SubscriptionResult = { req: SubDayRequest; org: string; nm_response: NmResponse; date: string; successful: boolean; }; interface Input { planPayments: string; planAmount: string; monthFrequency: string; dayOfMonth: string; } export interface errorInformation { type: string; loc: string[]; msg: string; input: Input; url: string; } export type MissingFieldsError = { detail: MissingFieldsError[]; }; export {};