@reactionary/core 0.10.6 → 0.10.7
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.
- package/package.json +1 -1
- package/schemas/models/payment.model.js +1 -1
- package/src/schemas/models/checkout.model.d.ts +3 -3
- package/src/schemas/models/order.model.d.ts +3 -3
- package/src/schemas/models/payment.model.d.ts +6 -6
- package/src/schemas/mutations/analytics/index.d.ts +3 -3
- package/src/schemas/mutations/analytics/purchase.mutation.d.ts +3 -3
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import * as z from "zod";
|
|
|
2
2
|
import { BaseModelSchema, ImageSchema } from "./base.model.js";
|
|
3
3
|
import { PaymentInstructionIdentifierSchema, PaymentMethodIdentifierSchema } from "./identifiers.model.js";
|
|
4
4
|
import { MonetaryAmountSchema } from "./price.model.js";
|
|
5
|
-
const PaymentStatusSchema = z.enum(["pending", "authorized", "canceled", "
|
|
5
|
+
const PaymentStatusSchema = z.enum(["pending", "authorized", "canceled", "captured", "partial_captured", "refunded", "partial_refunded"]);
|
|
6
6
|
const PaymentProtocolDataSchema = z.looseObject({
|
|
7
7
|
key: z.string(),
|
|
8
8
|
value: z.string()
|
|
@@ -2888,10 +2888,10 @@ export declare const CheckoutSchema: z.ZodObject<{
|
|
|
2888
2888
|
pending: "pending";
|
|
2889
2889
|
authorized: "authorized";
|
|
2890
2890
|
canceled: "canceled";
|
|
2891
|
-
|
|
2892
|
-
|
|
2891
|
+
captured: "captured";
|
|
2892
|
+
partial_captured: "partial_captured";
|
|
2893
2893
|
refunded: "refunded";
|
|
2894
|
-
|
|
2894
|
+
partial_refunded: "partial_refunded";
|
|
2895
2895
|
}>;
|
|
2896
2896
|
}, z.core.$loose>>>;
|
|
2897
2897
|
readyForFinalization: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -3095,10 +3095,10 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
3095
3095
|
pending: "pending";
|
|
3096
3096
|
authorized: "authorized";
|
|
3097
3097
|
canceled: "canceled";
|
|
3098
|
-
|
|
3099
|
-
|
|
3098
|
+
captured: "captured";
|
|
3099
|
+
partial_captured: "partial_captured";
|
|
3100
3100
|
refunded: "refunded";
|
|
3101
|
-
|
|
3101
|
+
partial_refunded: "partial_refunded";
|
|
3102
3102
|
}>;
|
|
3103
3103
|
}, z.core.$loose>>;
|
|
3104
3104
|
cartReference: z.ZodOptional<z.ZodObject<{
|
|
@@ -4,10 +4,10 @@ export declare const PaymentStatusSchema: z.ZodEnum<{
|
|
|
4
4
|
pending: "pending";
|
|
5
5
|
authorized: "authorized";
|
|
6
6
|
canceled: "canceled";
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
captured: "captured";
|
|
8
|
+
partial_captured: "partial_captured";
|
|
9
9
|
refunded: "refunded";
|
|
10
|
-
|
|
10
|
+
partial_refunded: "partial_refunded";
|
|
11
11
|
}>;
|
|
12
12
|
export declare const PaymentProtocolDataSchema: z.ZodObject<{
|
|
13
13
|
key: z.ZodString;
|
|
@@ -231,10 +231,10 @@ export declare const PaymentInstructionSchema: z.ZodObject<{
|
|
|
231
231
|
pending: "pending";
|
|
232
232
|
authorized: "authorized";
|
|
233
233
|
canceled: "canceled";
|
|
234
|
-
|
|
235
|
-
|
|
234
|
+
captured: "captured";
|
|
235
|
+
partial_captured: "partial_captured";
|
|
236
236
|
refunded: "refunded";
|
|
237
|
-
|
|
237
|
+
partial_refunded: "partial_refunded";
|
|
238
238
|
}>;
|
|
239
239
|
}, z.core.$loose>;
|
|
240
240
|
export type PaymentInstruction = InferType<typeof PaymentInstructionSchema>;
|
|
@@ -2469,10 +2469,10 @@ export declare const AnalyticsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
2469
2469
|
pending: "pending";
|
|
2470
2470
|
authorized: "authorized";
|
|
2471
2471
|
canceled: "canceled";
|
|
2472
|
-
|
|
2473
|
-
|
|
2472
|
+
captured: "captured";
|
|
2473
|
+
partial_captured: "partial_captured";
|
|
2474
2474
|
refunded: "refunded";
|
|
2475
|
-
|
|
2475
|
+
partial_refunded: "partial_refunded";
|
|
2476
2476
|
}>;
|
|
2477
2477
|
}, z.core.$loose>>;
|
|
2478
2478
|
cartReference: z.ZodOptional<z.ZodObject<{
|
|
@@ -2342,10 +2342,10 @@ export declare const AnalyticsMutationPurchaseEventSchema: z.ZodObject<{
|
|
|
2342
2342
|
pending: "pending";
|
|
2343
2343
|
authorized: "authorized";
|
|
2344
2344
|
canceled: "canceled";
|
|
2345
|
-
|
|
2346
|
-
|
|
2345
|
+
captured: "captured";
|
|
2346
|
+
partial_captured: "partial_captured";
|
|
2347
2347
|
refunded: "refunded";
|
|
2348
|
-
|
|
2348
|
+
partial_refunded: "partial_refunded";
|
|
2349
2349
|
}>;
|
|
2350
2350
|
}, z.core.$loose>>;
|
|
2351
2351
|
cartReference: z.ZodOptional<z.ZodObject<{
|