@aventurevc/api-schemas 0.8.456 → 0.8.457
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,14 +2,14 @@ import { z } from "zod/v4";
|
|
|
2
2
|
declare const BillingCreditPurchaseSchemaDefinition: z.ZodObject<{
|
|
3
3
|
amountCents: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
4
4
|
currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
-
expiresAt: z.
|
|
5
|
+
expiresAt: z.ZodISODateTime;
|
|
6
6
|
id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
7
|
-
pack: z.
|
|
7
|
+
pack: z.ZodEnum<{
|
|
8
8
|
USD_100: "USD_100";
|
|
9
9
|
USD_25: "USD_25";
|
|
10
10
|
USD_250: "USD_250";
|
|
11
11
|
USD_50: "USD_50";
|
|
12
|
-
}
|
|
12
|
+
}>;
|
|
13
13
|
paymentClientSecret: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
14
|
publishableKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
status: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -27,7 +27,7 @@ declare const BillingCreditPurchaseSchemaDefinition: z.ZodObject<{
|
|
|
27
27
|
PROCESSING: "PROCESSING";
|
|
28
28
|
};
|
|
29
29
|
}>>;
|
|
30
|
-
url: z.
|
|
30
|
+
url: z.ZodString;
|
|
31
31
|
}, z.core.$strip>;
|
|
32
32
|
type BillingCreditPurchaseDefinition = z.infer<typeof BillingCreditPurchaseSchemaDefinition>;
|
|
33
33
|
export interface BillingCreditPurchaseSchemaInput extends z.input<typeof BillingCreditPurchaseSchemaDefinition> {
|
|
@@ -5,14 +5,14 @@ import { BillingCreditPurchaseStatusSchema } from "./credit-purchase-status.js";
|
|
|
5
5
|
const BillingCreditPurchaseSchemaDefinition = z.object({
|
|
6
6
|
amountCents: z.number().int().nullish(),
|
|
7
7
|
currency: z.string().nullish(),
|
|
8
|
-
expiresAt: z.iso.datetime({ offset: true })
|
|
8
|
+
expiresAt: z.iso.datetime({ offset: true }),
|
|
9
9
|
id: z.uuid().nullish(),
|
|
10
|
-
pack: BillingCreditPackTypeSchema
|
|
10
|
+
pack: BillingCreditPackTypeSchema,
|
|
11
11
|
/** Only when bank authentication is required; finish with Stripe.js, then reread this purchase. */
|
|
12
12
|
paymentClientSecret: z.string().nullish(),
|
|
13
13
|
publishableKey: z.string().nullish(),
|
|
14
14
|
status: BillingCreditPurchaseStatusSchema.nullish(),
|
|
15
|
-
url: z.string()
|
|
15
|
+
url: z.string(),
|
|
16
16
|
});
|
|
17
17
|
/**
|
|
18
18
|
* Hosted Checkout destination and expiry for a prepaid credit pack.
|