oro-sdk-apis 1.54.0 → 1.54.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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.54.0",
2
+ "version": "1.54.3",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -119,7 +119,10 @@ export interface TreatmentAndDrugPrescription {
119
119
  notes?: string
120
120
  status: PlanStatus
121
121
  uuidTreatmentPlan: string
122
- decidedAt: string
122
+ /**
123
+ * this field is used to store the datetime when the patient accepted or refused the prescription
124
+ */
125
+ decidedAt?: string
123
126
  createdAt: string
124
127
  }
125
128
  export interface TreatmentPlans {
@@ -163,4 +166,4 @@ export interface TreatmentPlansResponseEntry {
163
166
  treatmentPlan: TreatmentPlan
164
167
  }
165
168
 
166
- export interface TreatmentPlansResponse extends Array<TreatmentPlansResponseEntry> {}
169
+ export interface TreatmentPlansResponse extends Array<TreatmentPlansResponseEntry> {}
@@ -529,6 +529,14 @@ export interface PracticePaymentIntent {
529
529
  dateUpdateAt?: Date
530
530
  }
531
531
 
532
+ /**
533
+ * All the PaymentIntentRequestMetadata Kind available
534
+ */
535
+ export enum PaymentIntentRequestMetadataKind {
536
+ ConsultRequestMetadata = 'ConsultRequestMetadata',
537
+ RefillTreatmentRequestMetadata = 'RefillTreatmentRequestMetadata',
538
+ }
539
+
532
540
  /**
533
541
  * This interface is used as metadata when creating Stripe Invoice.
534
542
  * It will be used to create the consult when stripe use our hook.
@@ -539,7 +547,7 @@ export interface ConsultRequestMetadata {
539
547
  *
540
548
  * Note: it can be `undefined` to handle backward compatibility when this interface didn't had a `kind`
541
549
  */
542
- kind: 'ConsultRequestMetadata' | undefined
550
+ kind: PaymentIntentRequestMetadataKind.ConsultRequestMetadata | undefined
543
551
  /**
544
552
  * The specialty required by the consultation
545
553
  */
@@ -562,15 +570,11 @@ export interface RefillTreatmentRequestMetadata {
562
570
  /**
563
571
  * Defines the kind of `PaymentIntentRequestMetadata` it is
564
572
  */
565
- kind: 'RefillTreatmentRequestMetadata'
573
+ kind: PaymentIntentRequestMetadataKind.RefillTreatmentRequestMetadata
566
574
  /**
567
575
  * The consult uuid to refill
568
576
  */
569
577
  consultUuid: string
570
- /**
571
- * The treatment plan uuid to refill
572
- */
573
- uuidTreatmentPlan: string
574
578
  }
575
579
 
576
580
  /**