@natch-the-storage/heathershaw-platform-types 1.19.0 → 1.19.2
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/build/validators.d.ts +4 -2
- package/build/validators.js +2 -1
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -268,6 +268,7 @@ export interface Order {
|
|
|
268
268
|
orderChangeNotes?: string | null;
|
|
269
269
|
paymentModeAtOrder: PaymentModeAtOrder;
|
|
270
270
|
paymentStatus: PaymentStatus;
|
|
271
|
+
paymentReferenceId?: string;
|
|
271
272
|
shippingType?: ShippingType;
|
|
272
273
|
shippingFee: number;
|
|
273
274
|
total: number;
|
|
@@ -290,7 +291,7 @@ export interface Order {
|
|
|
290
291
|
paymentLinkToken?: string | null;
|
|
291
292
|
log: LogItem[];
|
|
292
293
|
}
|
|
293
|
-
export type OrderCreate = Omit<Order, 'id' | 'status' | 'created' | 'draft' | 'paymentLinkToken'> & {
|
|
294
|
+
export type OrderCreate = Omit<Order, 'id' | 'status' | 'created' | 'draft' | 'paymentLinkToken' | 'paymentReferenceId'> & {
|
|
294
295
|
draft?: boolean;
|
|
295
296
|
};
|
|
296
297
|
export type OrderUpdate = Partial<Order> & Pick<Order, 'id'>;
|
|
@@ -1033,7 +1034,8 @@ export declare const ApiRoutes: {
|
|
|
1033
1034
|
createPaymentLinkToken: string;
|
|
1034
1035
|
getByPaymentLinkToken: (token: string) => string;
|
|
1035
1036
|
updateByPaymentLinkToken: (token: string) => string;
|
|
1036
|
-
|
|
1037
|
+
handleHostedPaymentLinkExternal: (token: string) => string;
|
|
1038
|
+
handleHostedPaymentLinkAuthenticated: (id: string) => string;
|
|
1037
1039
|
};
|
|
1038
1040
|
paperScriptReminders: {
|
|
1039
1041
|
list: string;
|
package/build/validators.js
CHANGED
|
@@ -457,7 +457,8 @@ export const ApiRoutes = {
|
|
|
457
457
|
createPaymentLinkToken: '/api/orders/payment-links',
|
|
458
458
|
getByPaymentLinkToken: (token) => `/api/orders/payment-links/${token}`,
|
|
459
459
|
updateByPaymentLinkToken: (token) => `/api/orders/payment-links/${token}`,
|
|
460
|
-
|
|
460
|
+
handleHostedPaymentLinkExternal: (token) => `/orders/payment-links/${token}/hosted-payment-url`,
|
|
461
|
+
handleHostedPaymentLinkAuthenticated: (id) => `/orders/${id}/hosted-payment-url`,
|
|
461
462
|
},
|
|
462
463
|
paperScriptReminders: {
|
|
463
464
|
list: '/api/paper-script-reminders',
|