oro-sdk-apis 1.37.0 → 1.38.0

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.
@@ -2447,14 +2447,26 @@ var PracticeService = /*#__PURE__*/function () {
2447
2447
 
2448
2448
  _proto.practiceGetPaymentsIntent = function practiceGetPaymentsIntent(practiceUuid, paymentIntentId) {
2449
2449
  return this.api.get(this.baseURL + "/v1/practices/" + practiceUuid + "/payments/intents/" + paymentIntentId);
2450
- };
2450
+ }
2451
+ /**
2452
+ * Updates a PracticePaymentIntent
2453
+ * @param practiceUuid the practice uuid
2454
+ * @param idPraticePaymentIntent the id of the PracticePaymentIntent to update
2455
+ * @param practicePaymentIntent the desired PracticePaymentIntent
2456
+ * @param userEmail the email of the user
2457
+ * @param promotionCode (optional) promotional code to apply
2458
+ * @param finalize (optional) if true will finalize the PracticePaymentIntent and related Stripe.Invoice. Once, finalized you cannot modify the PracticePaymentIntent anymore.
2459
+ * @returns the updated PracticePaymentIntent
2460
+ */
2461
+ ;
2451
2462
 
2452
- _proto.practiceUpdatePaymentsIntent = function practiceUpdatePaymentsIntent(practiceUuid, idPraticePaymentIntent, practicePaymentIntent, userEmail, promotionCode) {
2463
+ _proto.practiceUpdatePaymentsIntent = function practiceUpdatePaymentsIntent(practiceUuid, idPraticePaymentIntent, practicePaymentIntent, userEmail, promotionCode, finalize) {
2453
2464
  return this.api.put(this.baseURL + "/v1/practices/" + practiceUuid + "/payments/intents/" + idPraticePaymentIntent, _extends({}, practicePaymentIntent, {
2454
2465
  hashUserEmail: userEmail ? this.getPaymentIntentHashedEmail(userEmail) : undefined
2455
2466
  }), {
2456
2467
  params: {
2457
- promotionCode: promotionCode
2468
+ promotionCode: promotionCode,
2469
+ finalize: finalize
2458
2470
  }
2459
2471
  });
2460
2472
  }