@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
31 lines • 1.15 kB
JavaScript
import { z } from 'zod';
import { BaseResponseSchema, BaseGetParamsSchema } from '../../../core/schemas';
// Element Payment Parameters Schema
export const ElementPaymentParamsSchema = BaseGetParamsSchema.extend({
// Billing Information
billingAddress1: z.string(),
billingAddress2: z.string().optional(),
billingCity: z.string(),
billingCountry: z.string(),
billingFirstName: z.string(),
billingLastName: z.string(),
billingPostalCode: z.string(),
billingState: z.string(),
// Payment Information
ccNumber: z.string(),
cvv: z.string(),
expMonth: z.string(),
expYear: z.string(),
// Shipping Information
shippingAddress1: z.string(),
shippingAddress2: z.string().optional(),
shippingCity: z.string(),
shippingCountry: z.string(),
shippingFirstName: z.string(),
shippingLastName: z.string(),
shippingPostalCode: z.string(),
shippingState: z.string(),
});
// Element Payment Response Schema (actual response structure not specified in API docs)
export const ElementPaymentResponseSchema = BaseResponseSchema(z.unknown());
//# sourceMappingURL=element.js.map