@longvansoftware/storefront-js-client 3.3.5 → 3.3.7
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.
|
@@ -239,11 +239,13 @@ exports.GET_PAYMENT_METHOD_TYPES_V2 = (0, graphql_tag_1.gql) `
|
|
|
239
239
|
$partnerId: String!
|
|
240
240
|
$storeId: String!
|
|
241
241
|
$storeActive: StoreActive
|
|
242
|
+
$allMethodTypes: Boolean
|
|
242
243
|
) {
|
|
243
244
|
getPaymentMethodTypes(
|
|
244
245
|
partnerId: $partnerId
|
|
245
246
|
storeId: $storeId
|
|
246
247
|
storeActive: $storeActive
|
|
248
|
+
allMethodTypes: $allMethodTypes
|
|
247
249
|
) {
|
|
248
250
|
code
|
|
249
251
|
name
|
|
@@ -14,5 +14,5 @@ export declare class PaymentServiceV2 extends Service {
|
|
|
14
14
|
handleCreateGatewayConfig(input: any, cassoApiKey: string): Promise<any>;
|
|
15
15
|
handleUpdateGatewayConfig(input: any, cassoApiKey: string): Promise<any>;
|
|
16
16
|
getPaymentGatewaysByMethodCode(methodCode: string): Promise<any>;
|
|
17
|
-
getPaymentMethodTypesV2(storeActive: any): Promise<any>;
|
|
17
|
+
getPaymentMethodTypesV2(storeActive: any, allMethodTypes: boolean): Promise<any>;
|
|
18
18
|
}
|
|
@@ -225,13 +225,14 @@ class PaymentServiceV2 extends serviceSDK_1.Service {
|
|
|
225
225
|
}
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
|
-
getPaymentMethodTypesV2(storeActive) {
|
|
228
|
+
getPaymentMethodTypesV2(storeActive, allMethodTypes) {
|
|
229
229
|
return __awaiter(this, void 0, void 0, function* () {
|
|
230
230
|
const queries = queries_1.GET_PAYMENT_METHOD_TYPES_V2;
|
|
231
231
|
const variables = {
|
|
232
232
|
partnerId: this.orgId,
|
|
233
233
|
storeId: this.storeId,
|
|
234
|
-
storeActive: storeActive
|
|
234
|
+
storeActive: storeActive,
|
|
235
|
+
allMethodTypes: allMethodTypes
|
|
235
236
|
};
|
|
236
237
|
try {
|
|
237
238
|
const response = yield this.graphqlQueryV3(queries, variables);
|
|
@@ -38,7 +38,7 @@ export declare class ProductService extends Service {
|
|
|
38
38
|
getDetailStores(): Promise<any>;
|
|
39
39
|
getDetailStoresV2(storeId: string): Promise<any>;
|
|
40
40
|
getProductImage: (productId: string) => Promise<any>;
|
|
41
|
-
getCategory(typeBuild: string, level: number): Promise<any>;
|
|
41
|
+
getCategory(typeBuild: string, level: number, storeId: string): Promise<any>;
|
|
42
42
|
getProduct(dataQuery: any): Promise<any>;
|
|
43
43
|
updateProductTitle(productId: string, title: string, updatedBy: string): Promise<any>;
|
|
44
44
|
updatePrice(productId: string, price: string, updatedBy: string): Promise<any>;
|
|
@@ -195,12 +195,12 @@ class ProductService extends serviceSDK_1.Service {
|
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
|
-
getCategory(typeBuild, level) {
|
|
198
|
+
getCategory(typeBuild, level, storeId) {
|
|
199
199
|
return __awaiter(this, void 0, void 0, function* () {
|
|
200
200
|
const query = queries_1.GET_CATEGORIES_QUERY;
|
|
201
201
|
const variables = {
|
|
202
202
|
partnerId: this.orgId,
|
|
203
|
-
storeChannel:
|
|
203
|
+
storeChannel: storeId,
|
|
204
204
|
typeBuild,
|
|
205
205
|
level,
|
|
206
206
|
};
|