@natch-the-storage/heathershaw-platform-types 1.20.5 → 1.20.6

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.
@@ -319,10 +319,10 @@ export interface PaymentCardDetails {
319
319
  }
320
320
  /** Links to chargeUpdateFields in the API */
321
321
  type chargeUpdateFields = {
322
- orderUpdate?: Omit<OrderUpdate, 'directUserProfileId' | 'partnerPharmacyProfileId' | 'patientRecordId' | 'paymentStatus' | 'paymentLinkToken' | 'paymentReferenceId'>;
322
+ orderUpdate?: Omit<OrderUpdate, 'id' | 'directUserProfileId' | 'partnerPharmacyProfileId' | 'patientRecordId' | 'paymentStatus' | 'paymentLinkToken' | 'paymentReferenceId'>;
323
323
  patientRecordUpdate?: Pick<PatientRecordUpdate, 'addresses' | 'healthInfo'>;
324
324
  };
325
- /** Links to chargeOrderBodySchema in the API, used for already tokenised cards */
325
+ /** Links to chargeOrderBodySchema in the API */
326
326
  export type ScaSessionBodySchema = PaymentCardDetails;
327
327
  /** Links to scaResultSchema in the API */
328
328
  export type ScaResult = {
@@ -344,6 +344,20 @@ export type ChargeOrder = chargeUpdateFields & {
344
344
  };
345
345
  /** Links to chargeOrderMotoBodySchema in the API */
346
346
  export type ChargeOrderMotoBody = chargeUpdateFields & PaymentCardDetails;
347
+ /** Links to the openScaSession function in the API
348
+ * Is the shape of the response
349
+ */
350
+ export interface ScaSessionResponse {
351
+ accessToken: string;
352
+ verification: string;
353
+ cardToken: string;
354
+ cardType?: string;
355
+ reference: string;
356
+ amount: number;
357
+ currency: string;
358
+ username: string;
359
+ environment: string;
360
+ }
347
361
  export interface PaperScriptReminder {
348
362
  id: number;
349
363
  orderId?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natch-the-storage/heathershaw-platform-types",
3
- "version": "1.20.5",
3
+ "version": "1.20.6",
4
4
  "description": "Interfaces and routes to use on the client",
5
5
  "license": "ISC",
6
6
  "author": "Natch Surana",