/** * PagarmeApiSDKLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { lazy, object, optional, Schema, string } from '../schema'; import { CreateCardRequest, createCardRequestSchema, } from './createCardRequest'; /** The settings for creating a voucher payment */ export interface CreateVoucherPaymentRequest { /** The text that will be shown on the voucher's statement */ statementDescriptor?: string; /** Card id */ cardId?: string; /** Card token */ cardToken?: string; /** Card info */ card?: CreateCardRequest; /** Defines whether the card has been used one or more times. */ recurrencyCycle?: string; } export const createVoucherPaymentRequestSchema: Schema = object( { statementDescriptor: ['statement_descriptor', optional(string())], cardId: ['card_id', optional(string())], cardToken: ['card_token', optional(string())], card: ['Card', optional(lazy(() => createCardRequestSchema))], recurrencyCycle: ['recurrency_cycle', optional(string())], } );