@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.
@@ -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
- chargeOrder: (token: string) => string;
1037
+ handleHostedPaymentLinkExternal: (token: string) => string;
1038
+ handleHostedPaymentLinkAuthenticated: (id: string) => string;
1037
1039
  };
1038
1040
  paperScriptReminders: {
1039
1041
  list: string;
@@ -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
- chargeOrder: (token) => `/orders/payment-links/${token}/charge`,
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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.19.0",
3
+ "version": "1.19.2",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",