oro-sdk-apis 1.8.5 → 1.11.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/guard.d.ts +1 -0
- package/dist/models/practice.d.ts +12 -0
- package/dist/oro-sdk-apis.cjs.development.js +16 -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 +16 -3
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/practice.d.ts +13 -2
- package/package.json +1 -1
- package/src/models/guard.ts +1 -0
- package/src/models/practice.ts +12 -1
- package/src/services/practice.ts +17 -7
- package/LICENSE +0 -21
package/dist/oro-sdk-apis.esm.js
CHANGED
|
@@ -2448,13 +2448,26 @@ var PracticeService = /*#__PURE__*/function () {
|
|
|
2448
2448
|
|
|
2449
2449
|
_proto.getPaymentIntentHashedEmail = function getPaymentIntentHashedEmail(email) {
|
|
2450
2450
|
return Buffer.from(sha256().update(email.toLowerCase()).digest('hex'), 'hex').toString('base64');
|
|
2451
|
-
}
|
|
2451
|
+
}
|
|
2452
|
+
/**
|
|
2453
|
+
* Creates a PracticePaymentIntent
|
|
2454
|
+
* @param practiceUuid the uuid of the practice
|
|
2455
|
+
* @param planId the plan id to use
|
|
2456
|
+
* @param userEmail the email address of the user
|
|
2457
|
+
* @param isoLocality (optional) the desired locality
|
|
2458
|
+
* @param url_subdomain (optional) the url of the sub domain (@bruno-morel need you to document that)
|
|
2459
|
+
* @param promotionCode (optional) promotion code to apply
|
|
2460
|
+
* @param consultRequest (optional) consult request to use. If defined, when payment service call our hooks in practice, it will try to create a consult with these infos.
|
|
2461
|
+
* @returns
|
|
2462
|
+
*/
|
|
2463
|
+
;
|
|
2452
2464
|
|
|
2453
|
-
_proto.practiceCreatePaymentsIntent = function practiceCreatePaymentsIntent(practiceUuid, planId, userEmail, isoLocality, url_subdomain, promotionCode) {
|
|
2465
|
+
_proto.practiceCreatePaymentsIntent = function practiceCreatePaymentsIntent(practiceUuid, planId, userEmail, isoLocality, url_subdomain, promotionCode, consultRequest) {
|
|
2454
2466
|
return this.api.post(this.baseURL + "/v1/practices/" + practiceUuid + "/payments/intents/", {
|
|
2455
2467
|
idPlan: planId,
|
|
2456
2468
|
hashUserEmail: userEmail ? this.getPaymentIntentHashedEmail(userEmail) : undefined,
|
|
2457
|
-
isoLocality: isoLocality
|
|
2469
|
+
isoLocality: isoLocality,
|
|
2470
|
+
consultRequest: consultRequest
|
|
2458
2471
|
}, {
|
|
2459
2472
|
params: {
|
|
2460
2473
|
url_subdomain: url_subdomain,
|