@natch-the-storage/heathershaw-platform-types 1.19.2 → 1.19.3

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.
@@ -252,11 +252,13 @@ export interface DirectUserProfile {
252
252
  hubspotContactId?: string;
253
253
  }
254
254
  export type DirectUserProfileCreate = Omit<DirectUserProfile, 'id'>;
255
- export interface Order {
256
- id: number;
255
+ export type Order = ({
257
256
  partnerPharmacyProfileId?: number | null;
258
257
  patientRecordId?: number | null;
258
+ } | {
259
259
  directUserProfileId?: number | null;
260
+ }) & {
261
+ id: number;
260
262
  for: string;
261
263
  type: OrderType;
262
264
  address: OrderAddress;
@@ -290,7 +292,7 @@ export interface Order {
290
292
  reasonMarkedPaid?: string;
291
293
  paymentLinkToken?: string | null;
292
294
  log: LogItem[];
293
- }
295
+ };
294
296
  export type OrderCreate = Omit<Order, 'id' | 'status' | 'created' | 'draft' | 'paymentLinkToken' | 'paymentReferenceId'> & {
295
297
  draft?: boolean;
296
298
  };
@@ -301,6 +303,12 @@ export interface OrderAddress {
301
303
  address: Address;
302
304
  deliveryInstructions?: string;
303
305
  }
306
+ export interface ChargeOrder {
307
+ cardNumber: string;
308
+ cardHolder: string;
309
+ cardExpiry: string;
310
+ cvv: string;
311
+ }
304
312
  export interface PaperScriptReminder {
305
313
  id: number;
306
314
  orderId?: number;
@@ -1034,8 +1042,8 @@ export declare const ApiRoutes: {
1034
1042
  createPaymentLinkToken: string;
1035
1043
  getByPaymentLinkToken: (token: string) => string;
1036
1044
  updateByPaymentLinkToken: (token: string) => string;
1037
- handleHostedPaymentLinkExternal: (token: string) => string;
1038
- handleHostedPaymentLinkAuthenticated: (id: string) => string;
1045
+ chargePaymentLink: (token: string) => string;
1046
+ chargeOrder: (id: string) => string;
1039
1047
  };
1040
1048
  paperScriptReminders: {
1041
1049
  list: string;
@@ -457,8 +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
- handleHostedPaymentLinkExternal: (token) => `/orders/payment-links/${token}/hosted-payment-url`,
461
- handleHostedPaymentLinkAuthenticated: (id) => `/orders/${id}/hosted-payment-url`,
460
+ chargePaymentLink: (token) => `/orders/payment-links/${token}/charge`,
461
+ chargeOrder: (id) => `/orders/${id}/charge`,
462
462
  },
463
463
  paperScriptReminders: {
464
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.2",
3
+ "version": "1.19.3",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",