oro-sdk-apis 1.37.0 → 1.38.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,3 +11,4 @@ export * from './workflow';
11
11
  export * from './external';
12
12
  export * from './user';
13
13
  export * from './teller';
14
+ export * from './search';
@@ -371,7 +371,10 @@ export interface PracticePaymentIntent {
371
371
  numPlatformFeeAmount: number;
372
372
  idStripeInvoice: string;
373
373
  idStripePaymtIntent: string;
374
- stripeClientSecret: string;
374
+ /**
375
+ * This value is set only after the PracticePaymentIntent has been finalized and ready to be paid
376
+ */
377
+ stripeClientSecret?: string;
375
378
  dateCreatedAt?: Date;
376
379
  dateUpdateAt?: Date;
377
380
  }
@@ -5,7 +5,7 @@ export interface SearchResponse {
5
5
  results: SearchResult[];
6
6
  }
7
7
  export interface SearchResult {
8
- consultUUID: string;
8
+ consultUuid: string;
9
9
  kind: string;
10
10
  score: number;
11
11
  }
@@ -1195,6 +1195,15 @@ var IdentityCreationConflict = /*#__PURE__*/function (_Error7) {
1195
1195
  MetadataCategory["Raw"] = "Raw";
1196
1196
  })(exports.MetadataCategory || (exports.MetadataCategory = {}));
1197
1197
 
1198
+ (function (IndexKind) {
1199
+ IndexKind[IndexKind["consultUuid"] = 0] = "consultUuid";
1200
+ IndexKind[IndexKind["consultShortid"] = 1] = "consultShortid";
1201
+ IndexKind[IndexKind["firstName"] = 2] = "firstName";
1202
+ IndexKind[IndexKind["lastName"] = 3] = "lastName";
1203
+ IndexKind[IndexKind["healthId"] = 4] = "healthId";
1204
+ IndexKind[IndexKind["dob"] = 5] = "dob";
1205
+ })(exports.IndexKind || (exports.IndexKind = {}));
1206
+
1198
1207
  var ConsultService = /*#__PURE__*/function () {
1199
1208
  function ConsultService(api, baseURL) {
1200
1209
  this.api = api;
@@ -2380,14 +2389,26 @@ var PracticeService = /*#__PURE__*/function () {
2380
2389
 
2381
2390
  _proto.practiceGetPaymentsIntent = function practiceGetPaymentsIntent(practiceUuid, paymentIntentId) {
2382
2391
  return this.api.get(this.baseURL + "/v1/practices/" + practiceUuid + "/payments/intents/" + paymentIntentId);
2383
- };
2392
+ }
2393
+ /**
2394
+ * Updates a PracticePaymentIntent
2395
+ * @param practiceUuid the practice uuid
2396
+ * @param idPraticePaymentIntent the id of the PracticePaymentIntent to update
2397
+ * @param practicePaymentIntent the desired PracticePaymentIntent
2398
+ * @param userEmail the email of the user
2399
+ * @param promotionCode (optional) promotional code to apply
2400
+ * @param finalize (optional) if true will finalize the PracticePaymentIntent and related Stripe.Invoice. Once, finalized you cannot modify the PracticePaymentIntent anymore.
2401
+ * @returns the updated PracticePaymentIntent
2402
+ */
2403
+ ;
2384
2404
 
2385
- _proto.practiceUpdatePaymentsIntent = function practiceUpdatePaymentsIntent(practiceUuid, idPraticePaymentIntent, practicePaymentIntent, userEmail, promotionCode) {
2405
+ _proto.practiceUpdatePaymentsIntent = function practiceUpdatePaymentsIntent(practiceUuid, idPraticePaymentIntent, practicePaymentIntent, userEmail, promotionCode, finalize) {
2386
2406
  return this.api.put(this.baseURL + "/v1/practices/" + practiceUuid + "/payments/intents/" + idPraticePaymentIntent, _extends({}, practicePaymentIntent, {
2387
2407
  hashUserEmail: userEmail ? this.getPaymentIntentHashedEmail(userEmail) : undefined
2388
2408
  }), {
2389
2409
  params: {
2390
- promotionCode: promotionCode
2410
+ promotionCode: promotionCode,
2411
+ finalize: finalize
2391
2412
  }
2392
2413
  });
2393
2414
  }