@natch-the-storage/heathershaw-platform-types 1.19.1 → 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.
- package/build/validators.d.ts +11 -3
- package/package.json +1 -1
package/build/validators.d.ts
CHANGED
|
@@ -252,11 +252,13 @@ export interface DirectUserProfile {
|
|
|
252
252
|
hubspotContactId?: string;
|
|
253
253
|
}
|
|
254
254
|
export type DirectUserProfileCreate = Omit<DirectUserProfile, 'id'>;
|
|
255
|
-
export
|
|
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;
|