oro-sdk-apis 1.37.0 → 1.38.2

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.
@@ -1262,6 +1262,17 @@ var MetadataCategory;
1262
1262
  MetadataCategory["Raw"] = "Raw";
1263
1263
  })(MetadataCategory || (MetadataCategory = {}));
1264
1264
 
1265
+ var IndexKind;
1266
+
1267
+ (function (IndexKind) {
1268
+ IndexKind[IndexKind["consultUuid"] = 0] = "consultUuid";
1269
+ IndexKind[IndexKind["consultShortid"] = 1] = "consultShortid";
1270
+ IndexKind[IndexKind["firstName"] = 2] = "firstName";
1271
+ IndexKind[IndexKind["lastName"] = 3] = "lastName";
1272
+ IndexKind[IndexKind["healthId"] = 4] = "healthId";
1273
+ IndexKind[IndexKind["dob"] = 5] = "dob";
1274
+ })(IndexKind || (IndexKind = {}));
1275
+
1265
1276
  var ConsultService = /*#__PURE__*/function () {
1266
1277
  function ConsultService(api, baseURL) {
1267
1278
  this.api = api;
@@ -2447,14 +2458,26 @@ var PracticeService = /*#__PURE__*/function () {
2447
2458
 
2448
2459
  _proto.practiceGetPaymentsIntent = function practiceGetPaymentsIntent(practiceUuid, paymentIntentId) {
2449
2460
  return this.api.get(this.baseURL + "/v1/practices/" + practiceUuid + "/payments/intents/" + paymentIntentId);
2450
- };
2461
+ }
2462
+ /**
2463
+ * Updates a PracticePaymentIntent
2464
+ * @param practiceUuid the practice uuid
2465
+ * @param idPraticePaymentIntent the id of the PracticePaymentIntent to update
2466
+ * @param practicePaymentIntent the desired PracticePaymentIntent
2467
+ * @param userEmail the email of the user
2468
+ * @param promotionCode (optional) promotional code to apply
2469
+ * @param finalize (optional) if true will finalize the PracticePaymentIntent and related Stripe.Invoice. Once, finalized you cannot modify the PracticePaymentIntent anymore.
2470
+ * @returns the updated PracticePaymentIntent
2471
+ */
2472
+ ;
2451
2473
 
2452
- _proto.practiceUpdatePaymentsIntent = function practiceUpdatePaymentsIntent(practiceUuid, idPraticePaymentIntent, practicePaymentIntent, userEmail, promotionCode) {
2474
+ _proto.practiceUpdatePaymentsIntent = function practiceUpdatePaymentsIntent(practiceUuid, idPraticePaymentIntent, practicePaymentIntent, userEmail, promotionCode, finalize) {
2453
2475
  return this.api.put(this.baseURL + "/v1/practices/" + practiceUuid + "/payments/intents/" + idPraticePaymentIntent, _extends({}, practicePaymentIntent, {
2454
2476
  hashUserEmail: userEmail ? this.getPaymentIntentHashedEmail(userEmail) : undefined
2455
2477
  }), {
2456
2478
  params: {
2457
- promotionCode: promotionCode
2479
+ promotionCode: promotionCode,
2480
+ finalize: finalize
2458
2481
  }
2459
2482
  });
2460
2483
  }
@@ -3169,5 +3192,5 @@ var init = function init(services, authenticationCallback, useLocalStorage) {
3169
3192
  };
3170
3193
 
3171
3194
  export default init;
3172
- export { APIService, ApisPracticeManager, AssignmentStatus, AssistantType, AuthenticationBadRequest, AuthenticationFailed, AuthenticationServerError, AuthenticationUnconfirmedEmail, AxiosService, ClosedReasonType, ConsultService, DiagnosisService, DocumentType, DrugType, FeeStatus, GuardService, IdentityCreationBadRequest, IdentityCreationConflict, IdentityCreationFailed, IndexKey, LicenseStatus, MedicalStatus, MetadataCategory, OtherRoleType, PaymentStatus, PeriodType, PlanStatus, PlanType, PracticeConfigKind, PracticeEmailKind, PracticeService, PractitionerStatus, PractitionnerRoleType, PrescriptionStatus, RateDimension, SearchService, StripePriceType, SyncStatus, TaskStatus, TellerService, TransmissionKind, TransmissionStatus, VaultService, VisibilityType, WorkflowService, WorkflowType, hashToBase64String, init };
3195
+ export { APIService, ApisPracticeManager, AssignmentStatus, AssistantType, AuthenticationBadRequest, AuthenticationFailed, AuthenticationServerError, AuthenticationUnconfirmedEmail, AxiosService, ClosedReasonType, ConsultService, DiagnosisService, DocumentType, DrugType, FeeStatus, GuardService, IdentityCreationBadRequest, IdentityCreationConflict, IdentityCreationFailed, IndexKey, IndexKind, LicenseStatus, MedicalStatus, MetadataCategory, OtherRoleType, PaymentStatus, PeriodType, PlanStatus, PlanType, PracticeConfigKind, PracticeEmailKind, PracticeService, PractitionerStatus, PractitionnerRoleType, PrescriptionStatus, RateDimension, SearchService, StripePriceType, SyncStatus, TaskStatus, TellerService, TransmissionKind, TransmissionStatus, VaultService, VisibilityType, WorkflowService, WorkflowType, hashToBase64String, init };
3173
3196
  //# sourceMappingURL=oro-sdk-apis.esm.js.map