@longvansoftware/storefront-js-client 2.4.6 → 2.4.8
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/src/graphql/paymentV2/mutations.js +1 -0
- package/dist/src/graphql/paymentV2/queries.d.ts +1 -0
- package/dist/src/graphql/paymentV2/queries.js +20 -1
- package/dist/src/lib/paymentV2/index.d.ts +1 -0
- package/dist/src/lib/paymentV2/index.js +15 -0
- package/dist/src/lib/portal/index.d.ts +1 -0
- package/dist/src/lib/portal/index.js +5 -0
- package/package.json +1 -1
|
@@ -3,3 +3,4 @@ export declare const PAYMENT_METHODS: import("graphql").DocumentNode;
|
|
|
3
3
|
export declare const GET_PAYMENT_METHOD_TYPES: import("graphql").DocumentNode;
|
|
4
4
|
export declare const PAYMENT_INFO: import("graphql").DocumentNode;
|
|
5
5
|
export declare const PAYMENT_STATUS: import("graphql").DocumentNode;
|
|
6
|
+
export declare const GW_CONFIG_DETAIL: import("graphql").DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PAYMENT_STATUS = exports.PAYMENT_INFO = exports.GET_PAYMENT_METHOD_TYPES = exports.PAYMENT_METHODS = exports.PAYMENTS_BY_ORDERS = void 0;
|
|
3
|
+
exports.GW_CONFIG_DETAIL = exports.PAYMENT_STATUS = exports.PAYMENT_INFO = exports.GET_PAYMENT_METHOD_TYPES = exports.PAYMENT_METHODS = exports.PAYMENTS_BY_ORDERS = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
5
|
exports.PAYMENTS_BY_ORDERS = (0, graphql_tag_1.gql) `
|
|
6
6
|
query PaymentsByOrders($orderIds: [String!]!) {
|
|
@@ -164,3 +164,22 @@ exports.PAYMENT_STATUS = (0, graphql_tag_1.gql) `
|
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
`;
|
|
167
|
+
exports.GW_CONFIG_DETAIL = (0, graphql_tag_1.gql) `
|
|
168
|
+
query GwConfigDetail ($configId: String!){
|
|
169
|
+
gwConfigDetail(configId: $configId){
|
|
170
|
+
id
|
|
171
|
+
name
|
|
172
|
+
methodCode
|
|
173
|
+
partnerCode
|
|
174
|
+
subMethodCode
|
|
175
|
+
gwPartnerCode
|
|
176
|
+
gwPartnerName
|
|
177
|
+
gwSubChannel
|
|
178
|
+
gwMethodVersion
|
|
179
|
+
accessKey
|
|
180
|
+
secretKey
|
|
181
|
+
description
|
|
182
|
+
activated
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
`;
|
|
@@ -8,4 +8,5 @@ export declare class PaymentServiceV2 extends Service {
|
|
|
8
8
|
paymentInfo(paymentId: string): Promise<any>;
|
|
9
9
|
confirmToGateway(paymentId: string, methodCode: string, returnUrl: string): Promise<any>;
|
|
10
10
|
paymentStatus(paymentId: string): Promise<any>;
|
|
11
|
+
gwConfigDetail(configId: string): Promise<any>;
|
|
11
12
|
}
|
|
@@ -126,5 +126,20 @@ class PaymentServiceV2 extends serviceSDK_1.Service {
|
|
|
126
126
|
}
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
+
gwConfigDetail(configId) {
|
|
130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
131
|
+
const query = queries_1.GW_CONFIG_DETAIL;
|
|
132
|
+
const variables = {
|
|
133
|
+
configId,
|
|
134
|
+
};
|
|
135
|
+
try {
|
|
136
|
+
const response = yield this.graphqlQueryV3(query, variables);
|
|
137
|
+
return response.gwConfigDetail;
|
|
138
|
+
}
|
|
139
|
+
catch (error) {
|
|
140
|
+
throw error;
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
}
|
|
129
144
|
}
|
|
130
145
|
exports.PaymentServiceV2 = PaymentServiceV2;
|
|
@@ -5,4 +5,5 @@ export declare class PortalService extends Service {
|
|
|
5
5
|
updateDynamicForm(dataRequest: any): Promise<any>;
|
|
6
6
|
createTag(title: string, createBy: string, partnerId?: string): Promise<any>;
|
|
7
7
|
searchTag(partnerId?: string, title?: string, id?: string, search?: string): Promise<any>;
|
|
8
|
+
redirectLink(sku?: string, id?: string): string;
|
|
8
9
|
}
|
|
@@ -72,5 +72,10 @@ class PortalService extends serviceSDK_1.Service {
|
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
}
|
|
75
|
+
//
|
|
76
|
+
redirectLink(sku, id) {
|
|
77
|
+
const url = `${this.endpoint}/facility/manager/session/inventory-item-by-product.xhtml?${sku ? `sku=${sku}` : `id=${id}`}&orgId=${this.orgId}`;
|
|
78
|
+
return url;
|
|
79
|
+
}
|
|
75
80
|
}
|
|
76
81
|
exports.PortalService = PortalService;
|