ResourceSchema
const ResourceSchema: ZodObject<{
api: ZodOptional<ZodObject<{
links: ZodOptional<ZodRecord<ZodString, ZodObject<{
href: ZodString;
}, $strip>>>;
redactions: ZodOptional<ZodArray<ZodObject<{
path: ZodString;
reason: ZodEnum<{
internal: ...;
secret: ...;
}>;
}, $strip>>>;
}, $strip>>;
appStore: ZodNullable<ZodObject<{
originalTransactionId: ZodString;
}, $strip>>;
createdAt: ZodISODateTime;
customer: ZodUUID;
grantedBy: ZodNullable<ZodObject<{
id: ZodString;
kind: ZodEnum<{
adminApiKey: "adminApiKey";
user: "user";
}>;
}, $strip>>;
id: ZodUUID;
object: ZodLiteral<"product_grant">;
payment: ZodOptional<ZodObject<{
amountPaid: ZodNullable<ZodNumber>;
amountRefunded: ZodNullable<ZodNumber>;
amountUnrefunded: ZodNullable<ZodNumber>;
currency: ZodNullable<ZodString>;
refundHistoryAvailable: ZodBoolean;
refunds: ZodArray<ZodObject<{
currency: ZodString;
refundAmount: ZodNumber;
status: ZodEnum<{
canceled: "canceled";
failed: "failed";
pending: "pending";
requires_action: "requires_action";
succeeded: "succeeded";
}>;
stripeChargeId: ZodString;
stripePaymentIntentId: ZodNullable<ZodString>;
stripeRefundCreatedAt: ZodNumber;
stripeRefundId: ZodString;
}, $strip>>;
stripeChargeId: ZodNullable<ZodString>;
stripeCheckoutSessionId: ZodNullable<ZodString>;
stripeSubscriptionTerminal: ZodNullable<ZodBoolean>;
}, $strip>>;
period: ZodNullable<ZodObject<{
end: ZodNullable<ZodISODateTime>;
start: ZodNullable<ZodISODateTime>;
}, $strip>>;
product: ZodObject<{
billingInterval: ZodEnum<typeof BillingInterval>;
displayName: ZodNullable<ZodString>;
id: ZodUUID;
isDefault: ZodBoolean;
sku: ZodNullable<ZodString>;
}, $strip>;
source: ZodEnum<{
appStore: "appStore";
default: "default";
manual: "manual";
stripe: "stripe";
}>;
status: ZodEnum<{
active: "active";
completed: "completed";
refunded: "refunded";
}>;
stripe: ZodNullable<ZodObject<{
checkoutSession: ZodNullable<ZodString>;
customer: ZodNullable<ZodString>;
invoice: ZodNullable<ZodString>;
paymentIntent: ZodNullable<ZodString>;
subscription: ZodNullable<ZodString>;
}, $strip>>;
updatedAt: ZodISODateTime;
}, $strip>;Last updated on