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

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,7 +252,7 @@ export interface DirectUserProfile {
252
252
  hubspotContactId?: string;
253
253
  }
254
254
  export type DirectUserProfileCreate = Omit<DirectUserProfile, 'id'>;
255
- export interface Order {
255
+ export type Order = {
256
256
  id: number;
257
257
  partnerPharmacyProfileId?: number | null;
258
258
  patientRecordId?: number | null;
@@ -290,7 +290,7 @@ export interface Order {
290
290
  reasonMarkedPaid?: string;
291
291
  paymentLinkToken?: string | null;
292
292
  log: LogItem[];
293
- }
293
+ };
294
294
  export type OrderCreate = Omit<Order, 'id' | 'status' | 'created' | 'draft' | 'paymentLinkToken' | 'paymentReferenceId'> & {
295
295
  draft?: boolean;
296
296
  };
@@ -301,6 +301,12 @@ export interface OrderAddress {
301
301
  address: Address;
302
302
  deliveryInstructions?: string;
303
303
  }
304
+ export interface ChargeOrder {
305
+ cardNumber: string;
306
+ cardHolder: string;
307
+ cardExpiry: string;
308
+ cvv: string;
309
+ }
304
310
  export interface PaperScriptReminder {
305
311
  id: number;
306
312
  orderId?: number;
@@ -1034,8 +1040,8 @@ export declare const ApiRoutes: {
1034
1040
  createPaymentLinkToken: string;
1035
1041
  getByPaymentLinkToken: (token: string) => string;
1036
1042
  updateByPaymentLinkToken: (token: string) => string;
1037
- handleHostedPaymentLinkExternal: (token: string) => string;
1038
- handleHostedPaymentLinkAuthenticated: (id: string) => string;
1043
+ chargePaymentLink: (token: string) => string;
1044
+ chargeOrder: (id: string) => string;
1039
1045
  };
1040
1046
  paperScriptReminders: {
1041
1047
  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.4",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",