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.
- package/dist/models/practice.d.ts +4 -1
- package/dist/oro-sdk-apis.cjs.development.js +15 -3
- package/dist/oro-sdk-apis.cjs.development.js.map +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk-apis.esm.js +15 -3
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/practice.d.ts +11 -1
- package/package.json +1 -1
- package/src/models/practice.ts +94 -91
- package/src/services/practice.ts +13 -2
package/dist/oro-sdk-apis.esm.js
CHANGED
@@ -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
|
}
|