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.
@@ -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
  }
@@ -2380,14 +2380,26 @@ var PracticeService = /*#__PURE__*/function () {
2380
2380
 
2381
2381
  _proto.practiceGetPaymentsIntent = function practiceGetPaymentsIntent(practiceUuid, paymentIntentId) {
2382
2382
  return this.api.get(this.baseURL + "/v1/practices/" + practiceUuid + "/payments/intents/" + paymentIntentId);
2383
- };
2383
+ }
2384
+ /**
2385
+ * Updates a PracticePaymentIntent
2386
+ * @param practiceUuid the practice uuid
2387
+ * @param idPraticePaymentIntent the id of the PracticePaymentIntent to update
2388
+ * @param practicePaymentIntent the desired PracticePaymentIntent
2389
+ * @param userEmail the email of the user
2390
+ * @param promotionCode (optional) promotional code to apply
2391
+ * @param finalize (optional) if true will finalize the PracticePaymentIntent and related Stripe.Invoice. Once, finalized you cannot modify the PracticePaymentIntent anymore.
2392
+ * @returns the updated PracticePaymentIntent
2393
+ */
2394
+ ;
2384
2395
 
2385
- _proto.practiceUpdatePaymentsIntent = function practiceUpdatePaymentsIntent(practiceUuid, idPraticePaymentIntent, practicePaymentIntent, userEmail, promotionCode) {
2396
+ _proto.practiceUpdatePaymentsIntent = function practiceUpdatePaymentsIntent(practiceUuid, idPraticePaymentIntent, practicePaymentIntent, userEmail, promotionCode, finalize) {
2386
2397
  return this.api.put(this.baseURL + "/v1/practices/" + practiceUuid + "/payments/intents/" + idPraticePaymentIntent, _extends({}, practicePaymentIntent, {
2387
2398
  hashUserEmail: userEmail ? this.getPaymentIntentHashedEmail(userEmail) : undefined
2388
2399
  }), {
2389
2400
  params: {
2390
- promotionCode: promotionCode
2401
+ promotionCode: promotionCode,
2402
+ finalize: finalize
2391
2403
  }
2392
2404
  });
2393
2405
  }