@kushki/js 1.40.2-alpha-19735.1 → 1.40.2
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/lib/KushkiInfo.js +1 -1
- package/lib/gateway/KushkiGateway.d.ts +2 -2
- package/lib/infrastructure/EnvironmentEnum.d.ts +1 -1
- package/lib/infrastructure/EnvironmentEnum.js +1 -2
- package/lib/repository/IKushkiGateway.d.ts +2 -2
- package/lib/types/apple_pay_get_token_events.d.ts +6 -4
- package/package.json +1 -1
- package/lib/types/apple_pay_get_token_request.d.ts +0 -20
package/lib/KushkiInfo.js
CHANGED
|
@@ -12,7 +12,7 @@ const UtilsService_1 = require("./../lib/service/UtilsService");
|
|
|
12
12
|
*/
|
|
13
13
|
class KInfo {
|
|
14
14
|
static buildKushkiInfo(kushkiInfo) {
|
|
15
|
-
const kushki_js_version = "1.40.2
|
|
15
|
+
const kushki_js_version = "1.40.2";
|
|
16
16
|
if (kushkiInfo) {
|
|
17
17
|
if (UtilsService_1.UtilsService.sIsEmpty(kushkiInfo.platformVersion))
|
|
18
18
|
kushkiInfo.platformVersion = kushki_js_version;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "reflect-metadata";
|
|
3
3
|
import { IKushkiGateway } from "./../../lib/repository/IKushkiGateway";
|
|
4
4
|
import { Observable } from "rxjs";
|
|
5
|
-
import {
|
|
5
|
+
import { ApplePayPaymentData } from "./../../lib/types/apple_pay_get_token_events";
|
|
6
6
|
import { ApplePayStartSessionRequest } from "./../../lib/types/apple_pay_start_session_request";
|
|
7
7
|
import { BankListResponse } from "./../../lib/types/bank_list_response";
|
|
8
8
|
import { BinInfoResponse } from "./../../lib/types/bin_info_response";
|
|
@@ -79,7 +79,7 @@ export declare class KushkiGateway implements IKushkiGateway {
|
|
|
79
79
|
getUserId(subscriptionId: string, mid: string, testEnv: boolean, regional: boolean): Observable<GetUserId>;
|
|
80
80
|
validateAppleDomain(domain: string, mid: string, testEnv: boolean, regional: boolean): Observable<Validate3DsResponse>;
|
|
81
81
|
startApplePaySession(body: ApplePayStartSessionRequest, mid: string, testEnv: boolean, regional: boolean): Observable<object>;
|
|
82
|
-
getApplePayToken(body:
|
|
82
|
+
getApplePayToken(body: ApplePayPaymentData, mid: string, testEnv: boolean, regional: boolean): Observable<TokenResponse>;
|
|
83
83
|
private _assignChannel;
|
|
84
84
|
private _buildHeader;
|
|
85
85
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Environment enum file
|
|
4
4
|
*/
|
|
5
5
|
export declare enum EnvironmentEnum {
|
|
6
|
-
uat = "https://
|
|
6
|
+
uat = "https://api-uat.kushkipagos.com/",
|
|
7
7
|
prod = "https://api.kushkipagos.com/",
|
|
8
8
|
regionalUat = "https://regional-uat.kushkipagos.com/",
|
|
9
9
|
regionalProd = "https://regional.kushkipagos.com/"
|
|
@@ -4,10 +4,9 @@ exports.EnvironmentEnum = void 0;
|
|
|
4
4
|
/**
|
|
5
5
|
* Environment enum file
|
|
6
6
|
*/
|
|
7
|
-
// UAT: https://api-uat.kushkipagos.com/,
|
|
8
7
|
var EnvironmentEnum;
|
|
9
8
|
(function (EnvironmentEnum) {
|
|
10
|
-
EnvironmentEnum["uat"] = "https://
|
|
9
|
+
EnvironmentEnum["uat"] = "https://api-uat.kushkipagos.com/";
|
|
11
10
|
EnvironmentEnum["prod"] = "https://api.kushkipagos.com/";
|
|
12
11
|
EnvironmentEnum["regionalUat"] = "https://regional-uat.kushkipagos.com/";
|
|
13
12
|
EnvironmentEnum["regionalProd"] = "https://regional.kushkipagos.com/";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Interface for Kushki Gateway.
|
|
4
4
|
*/
|
|
5
5
|
import { Observable } from "rxjs";
|
|
6
|
-
import {
|
|
6
|
+
import { ApplePayPaymentData } from "./../../lib/types/apple_pay_get_token_events";
|
|
7
7
|
import { ApplePayStartSessionRequest } from "./../../lib/types/apple_pay_start_session_request";
|
|
8
8
|
import { BankListResponse } from "./../../lib/types/bank_list_response";
|
|
9
9
|
import { BinInfoResponse } from "./../../lib/types/bin_info_response";
|
|
@@ -188,5 +188,5 @@ export interface IKushkiGateway {
|
|
|
188
188
|
* @param testEnv - is test environment
|
|
189
189
|
* @param regional - Define if endpoint used regional URL
|
|
190
190
|
*/
|
|
191
|
-
getApplePayToken(body:
|
|
191
|
+
getApplePayToken(body: ApplePayPaymentData, mid: string, testEnv: boolean, regional: boolean): Observable<TokenResponse>;
|
|
192
192
|
}
|
|
@@ -5,10 +5,7 @@ export interface ApplePaymentEvent {
|
|
|
5
5
|
payment: {
|
|
6
6
|
billingContact?: ApplePayPaymentContact;
|
|
7
7
|
shippingContact?: ApplePayPaymentContact;
|
|
8
|
-
token:
|
|
9
|
-
paymentData: ApplePayPaymentData;
|
|
10
|
-
paymentMethod: ApplePayPaymentMethod;
|
|
11
|
-
};
|
|
8
|
+
token: ApplePayPaymentToken;
|
|
12
9
|
};
|
|
13
10
|
validationURL: string;
|
|
14
11
|
appleTokenResponse?: AppleTokenResponse;
|
|
@@ -29,6 +26,10 @@ export interface ApplePayPaymentContact {
|
|
|
29
26
|
countryCode: string;
|
|
30
27
|
addressLines: string[];
|
|
31
28
|
}
|
|
29
|
+
export interface ApplePayPaymentToken {
|
|
30
|
+
paymentData: ApplePayPaymentData;
|
|
31
|
+
paymentMethod: ApplePayPaymentMethod;
|
|
32
|
+
}
|
|
32
33
|
export interface ApplePayPaymentData {
|
|
33
34
|
data: string;
|
|
34
35
|
header: {
|
|
@@ -39,6 +40,7 @@ export interface ApplePayPaymentData {
|
|
|
39
40
|
};
|
|
40
41
|
signature: string;
|
|
41
42
|
version: string;
|
|
43
|
+
paymentMethod?: ApplePayPaymentMethod;
|
|
42
44
|
}
|
|
43
45
|
export interface ApplePayPaymentMethod {
|
|
44
46
|
network: string;
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/* tslint:disable:all */
|
|
2
|
-
/* tslint:disable:all */
|
|
3
|
-
|
|
4
|
-
export interface ApplePayGetTokenRequest {
|
|
5
|
-
data: string;
|
|
6
|
-
header: {
|
|
7
|
-
ephemeralPublicKey: string;
|
|
8
|
-
publicKeyHash: string;
|
|
9
|
-
transactionId: string;
|
|
10
|
-
[k: string]: any;
|
|
11
|
-
};
|
|
12
|
-
signature: string;
|
|
13
|
-
version: string;
|
|
14
|
-
paymentMethod: ApplePayPaymentMethod;
|
|
15
|
-
}
|
|
16
|
-
export interface ApplePayPaymentMethod {
|
|
17
|
-
network: string;
|
|
18
|
-
displayName: string;
|
|
19
|
-
type: string;
|
|
20
|
-
}
|