pnz-payments-sdk
Version:
PNZ Payments Account and Transaction API
24 lines • 1.01 kB
JavaScript
/**
* Account and Transaction API SpecificationLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { lazy, number, object, optional, string } from '../schema';
import { amountSchema } from './amount';
import { feeSchema } from './fee';
import { offerTypeEnumSchema } from './offerTypeEnum';
export const offerModelSchema = object({
accountId: ['AccountId', string()],
offerId: ['OfferId', optional(string())],
offerType: ['OfferType', optional(offerTypeEnumSchema)],
description: ['Description', optional(string())],
startDateTime: ['StartDateTime', optional(string())],
endDateTime: ['EndDateTime', optional(string())],
amount: ['Amount', optional(lazy(() => amountSchema))],
fee: ['Fee', optional(lazy(() => feeSchema))],
rate: ['Rate', optional(string())],
value: ['Value', optional(number())],
term: ['Term', optional(string())],
uRL: ['URL', optional(string())],
});
//# sourceMappingURL=offerModel.js.map