@natch-the-storage/heathershaw-platform-types 1.15.14 → 1.16.0

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.
@@ -195,8 +195,9 @@ export interface Order {
195
195
  requiredDate: string;
196
196
  draft: boolean;
197
197
  reasonMarkedPaid?: string;
198
+ paymentLinkToken?: string;
198
199
  }
199
- export type OrderCreate = Omit<Order, 'id' | 'status' | 'created' | 'draft'> & {
200
+ export type OrderCreate = Omit<Order, 'id' | 'status' | 'created' | 'draft' | 'paymentLinkToken'> & {
200
201
  draft?: boolean;
201
202
  };
202
203
  export type OrderUpdate = Partial<Order> & {
@@ -893,6 +894,9 @@ export declare const ApiRoutes: {
893
894
  create: string;
894
895
  update: string;
895
896
  delete: (id: number) => string;
897
+ createPaymentLinkToken: string;
898
+ getByPaymentLinkToken: (token: string) => string;
899
+ updateByPaymentLinkToken: (token: string) => string;
896
900
  };
897
901
  paperScriptReminders: {
898
902
  list: string;
@@ -277,6 +277,9 @@ export const ApiRoutes = {
277
277
  create: '/api/orders',
278
278
  update: '/api/orders',
279
279
  delete: (id) => `/api/orders/${id}`,
280
+ createPaymentLinkToken: '/api/orders/payment-links',
281
+ getByPaymentLinkToken: (token) => `/api/orders/payment-links/${token}`,
282
+ updateByPaymentLinkToken: (token) => `/api/orders/payment-links/${token}`,
280
283
  },
281
284
  paperScriptReminders: {
282
285
  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.15.14",
3
+ "version": "1.16.0",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",