@kushki/js 1.31.2 → 1.31.3
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.
|
@@ -47,6 +47,7 @@ export declare class CardService implements ICardService {
|
|
|
47
47
|
requestBinInfo(binBody: BinBody, mid: string, isTest: boolean, regional: boolean): Observable<BinInfoResponse>;
|
|
48
48
|
validate3DS(body: Validate3DSRequest, mid: string, isTest: boolean, regional: boolean, callback: (value: Validate3DsResponse | ErrorResponse) => void): void;
|
|
49
49
|
requestSecureInit(request: SecureInitRequest, mid: string, isTest: boolean, regional: boolean): Observable<SecureInitResponse>;
|
|
50
|
+
private _getCreateSubscriptionDataToTransform;
|
|
50
51
|
private _request3DSToken;
|
|
51
52
|
private _setupCompleteCardinal;
|
|
52
53
|
private _requestTokenGateway;
|
|
@@ -181,9 +181,7 @@ var CardService = /** @class */ (function () {
|
|
|
181
181
|
}), operators_1.concatMap(function (_a) {
|
|
182
182
|
var sift_object = _a[0], jwt = _a[1];
|
|
183
183
|
_this._checkRequestBody(subscriptionTokenRequest);
|
|
184
|
-
var data_to_transform =
|
|
185
|
-
if (sift_object.userId === null || sift_object.sessionId === null)
|
|
186
|
-
data_to_transform.siftObject = __assign({}, sift_object);
|
|
184
|
+
var data_to_transform = _this._getCreateSubscriptionDataToTransform(sift_object, subscriptionTokenRequest);
|
|
187
185
|
if (jwt !== undefined)
|
|
188
186
|
data_to_transform.jwt = jwt;
|
|
189
187
|
return rxjs_1.forkJoin([
|
|
@@ -248,6 +246,11 @@ var CardService = /** @class */ (function () {
|
|
|
248
246
|
jwt: jwt
|
|
249
247
|
}); }));
|
|
250
248
|
};
|
|
249
|
+
CardService.prototype._getCreateSubscriptionDataToTransform = function (siftObject, subscriptionTokenRequest) {
|
|
250
|
+
if (siftObject.userId === null || siftObject.sessionId === null)
|
|
251
|
+
return __assign({}, subscriptionTokenRequest);
|
|
252
|
+
return __assign(__assign({}, subscriptionTokenRequest), siftObject);
|
|
253
|
+
};
|
|
251
254
|
CardService.prototype._request3DSToken = function (body, mid, isTest, regional, callback, authorization) {
|
|
252
255
|
var _this = this;
|
|
253
256
|
if (isTest)
|