oro-sdk-apis 1.37.0 → 1.38.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/models/index.d.ts +1 -0
- package/dist/models/practice.d.ts +4 -1
- package/dist/models/search.d.ts +1 -1
- package/dist/oro-sdk-apis.cjs.development.js +24 -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 +27 -4
- 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/index.ts +1 -0
- package/src/models/practice.ts +94 -91
- package/src/models/search.ts +1 -1
- package/src/services/practice.ts +13 -2
package/dist/models/index.d.ts
CHANGED
@@ -371,7 +371,10 @@ export interface PracticePaymentIntent {
|
|
371
371
|
numPlatformFeeAmount: number;
|
372
372
|
idStripeInvoice: string;
|
373
373
|
idStripePaymtIntent: string;
|
374
|
-
|
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
|
}
|
package/dist/models/search.d.ts
CHANGED
@@ -1195,6 +1195,15 @@ var IdentityCreationConflict = /*#__PURE__*/function (_Error7) {
|
|
1195
1195
|
MetadataCategory["Raw"] = "Raw";
|
1196
1196
|
})(exports.MetadataCategory || (exports.MetadataCategory = {}));
|
1197
1197
|
|
1198
|
+
(function (IndexKind) {
|
1199
|
+
IndexKind[IndexKind["consultUuid"] = 0] = "consultUuid";
|
1200
|
+
IndexKind[IndexKind["consultShortid"] = 1] = "consultShortid";
|
1201
|
+
IndexKind[IndexKind["firstName"] = 2] = "firstName";
|
1202
|
+
IndexKind[IndexKind["lastName"] = 3] = "lastName";
|
1203
|
+
IndexKind[IndexKind["healthId"] = 4] = "healthId";
|
1204
|
+
IndexKind[IndexKind["dob"] = 5] = "dob";
|
1205
|
+
})(exports.IndexKind || (exports.IndexKind = {}));
|
1206
|
+
|
1198
1207
|
var ConsultService = /*#__PURE__*/function () {
|
1199
1208
|
function ConsultService(api, baseURL) {
|
1200
1209
|
this.api = api;
|
@@ -2380,14 +2389,26 @@ var PracticeService = /*#__PURE__*/function () {
|
|
2380
2389
|
|
2381
2390
|
_proto.practiceGetPaymentsIntent = function practiceGetPaymentsIntent(practiceUuid, paymentIntentId) {
|
2382
2391
|
return this.api.get(this.baseURL + "/v1/practices/" + practiceUuid + "/payments/intents/" + paymentIntentId);
|
2383
|
-
}
|
2392
|
+
}
|
2393
|
+
/**
|
2394
|
+
* Updates a PracticePaymentIntent
|
2395
|
+
* @param practiceUuid the practice uuid
|
2396
|
+
* @param idPraticePaymentIntent the id of the PracticePaymentIntent to update
|
2397
|
+
* @param practicePaymentIntent the desired PracticePaymentIntent
|
2398
|
+
* @param userEmail the email of the user
|
2399
|
+
* @param promotionCode (optional) promotional code to apply
|
2400
|
+
* @param finalize (optional) if true will finalize the PracticePaymentIntent and related Stripe.Invoice. Once, finalized you cannot modify the PracticePaymentIntent anymore.
|
2401
|
+
* @returns the updated PracticePaymentIntent
|
2402
|
+
*/
|
2403
|
+
;
|
2384
2404
|
|
2385
|
-
_proto.practiceUpdatePaymentsIntent = function practiceUpdatePaymentsIntent(practiceUuid, idPraticePaymentIntent, practicePaymentIntent, userEmail, promotionCode) {
|
2405
|
+
_proto.practiceUpdatePaymentsIntent = function practiceUpdatePaymentsIntent(practiceUuid, idPraticePaymentIntent, practicePaymentIntent, userEmail, promotionCode, finalize) {
|
2386
2406
|
return this.api.put(this.baseURL + "/v1/practices/" + practiceUuid + "/payments/intents/" + idPraticePaymentIntent, _extends({}, practicePaymentIntent, {
|
2387
2407
|
hashUserEmail: userEmail ? this.getPaymentIntentHashedEmail(userEmail) : undefined
|
2388
2408
|
}), {
|
2389
2409
|
params: {
|
2390
|
-
promotionCode: promotionCode
|
2410
|
+
promotionCode: promotionCode,
|
2411
|
+
finalize: finalize
|
2391
2412
|
}
|
2392
2413
|
});
|
2393
2414
|
}
|