@longvansoftware/service-js-client 1.18.7 → 1.18.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/orderGraphQL/queries.js +11 -45
- package/dist/src/graphql/paymentLV/mutations.js +1 -7
- package/dist/src/graphql/paymentLV/queries.d.ts +0 -1
- package/dist/src/graphql/paymentLV/queries.js +1 -53
- package/dist/src/lib/paymentLV/index.d.ts +0 -1
- package/dist/src/lib/paymentLV/index.js +0 -17
- package/package.json +1 -1
|
@@ -113,8 +113,6 @@ exports.GET_ORDER_DETAIL = (0, graphql_tag_1.gql) `
|
|
|
113
113
|
currencyCode
|
|
114
114
|
}
|
|
115
115
|
orderLineItemParentId
|
|
116
|
-
giftConditionProductId
|
|
117
|
-
giftQuantity
|
|
118
116
|
variant {
|
|
119
117
|
id
|
|
120
118
|
price {
|
|
@@ -137,47 +135,18 @@ exports.GET_ORDER_DETAIL = (0, graphql_tag_1.gql) `
|
|
|
137
135
|
value
|
|
138
136
|
title
|
|
139
137
|
}
|
|
138
|
+
resourceItems {
|
|
139
|
+
name
|
|
140
|
+
quantity
|
|
141
|
+
unit
|
|
142
|
+
productId
|
|
143
|
+
}
|
|
140
144
|
resourceConfigs {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
gift
|
|
147
|
-
giftQuantity
|
|
148
|
-
campaignId
|
|
149
|
-
campaignActionId
|
|
150
|
-
qualify
|
|
151
|
-
idParent
|
|
152
|
-
addQuantity
|
|
153
|
-
defaultQuantity
|
|
154
|
-
title
|
|
155
|
-
price
|
|
156
|
-
unitPrice
|
|
157
|
-
totalResource
|
|
158
|
-
}
|
|
159
|
-
resourceItems {
|
|
160
|
-
name
|
|
161
|
-
quantity
|
|
162
|
-
unit
|
|
163
|
-
productId
|
|
164
|
-
giftProductId
|
|
165
|
-
gift
|
|
166
|
-
giftQuantity
|
|
167
|
-
campaignId
|
|
168
|
-
campaignActionId
|
|
169
|
-
qualify
|
|
170
|
-
idParent
|
|
171
|
-
addQuantity
|
|
172
|
-
defaultQuantity
|
|
173
|
-
title
|
|
174
|
-
price
|
|
175
|
-
unitPrice
|
|
176
|
-
totalResource
|
|
177
|
-
unitGift
|
|
178
|
-
giftDuration
|
|
179
|
-
giftDurationUnit
|
|
180
|
-
}
|
|
145
|
+
name
|
|
146
|
+
quantity
|
|
147
|
+
unit
|
|
148
|
+
productId
|
|
149
|
+
}
|
|
181
150
|
itemType
|
|
182
151
|
}
|
|
183
152
|
serviceId
|
|
@@ -212,7 +181,6 @@ exports.GET_QUANTITY_ORDER_LINEITEMS = (0, graphql_tag_1.gql) `
|
|
|
212
181
|
}
|
|
213
182
|
itemType
|
|
214
183
|
orderLineItemParentId
|
|
215
|
-
giftConditionProductId
|
|
216
184
|
}
|
|
217
185
|
}
|
|
218
186
|
}
|
|
@@ -272,8 +240,6 @@ exports.GET_ORDER_LINE_ITEM_BY_SERVICE_ID = (0, graphql_tag_1.gql) `
|
|
|
272
240
|
updatedStamp
|
|
273
241
|
completedAt
|
|
274
242
|
orderLineItemParentId
|
|
275
|
-
giftConditionProductId
|
|
276
|
-
giftQuantity
|
|
277
243
|
orderStatus
|
|
278
244
|
totalVAT {
|
|
279
245
|
amount
|
|
@@ -5,16 +5,10 @@ const graphql_tag_1 = require("graphql-tag");
|
|
|
5
5
|
exports.CANCEL_PAYMENT = (0, graphql_tag_1.gql) `
|
|
6
6
|
mutation CancelPayment(
|
|
7
7
|
$paymentId: String!
|
|
8
|
-
$safeMode: Boolean!
|
|
9
8
|
$reason: String!
|
|
10
9
|
$createBy: String
|
|
11
10
|
) {
|
|
12
|
-
cancelPayment(
|
|
13
|
-
paymentId: $paymentId
|
|
14
|
-
safeMode: $safeMode
|
|
15
|
-
reason: $reason
|
|
16
|
-
createBy: $createBy
|
|
17
|
-
)
|
|
11
|
+
cancelPayment(paymentId: $paymentId, reason: $reason, createBy: $createBy)
|
|
18
12
|
}
|
|
19
13
|
`;
|
|
20
14
|
exports.CONFIRM_PAID_MANUAL = (0, graphql_tag_1.gql) `
|
|
@@ -2,4 +2,3 @@ export declare const PAYMENTS_BY_ORDERS: import("graphql").DocumentNode;
|
|
|
2
2
|
export declare const GET_TRANSFER_INFO: import("graphql").DocumentNode;
|
|
3
3
|
export declare const GET_PAYMENT_METHOD_TYPES: import("graphql").DocumentNode;
|
|
4
4
|
export declare const PAYMENT_METHODS: import("graphql").DocumentNode;
|
|
5
|
-
export declare const PAYMENT_STATUS: import("graphql").DocumentNode;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.PAYMENT_METHODS = exports.GET_PAYMENT_METHOD_TYPES = exports.GET_TRANSFER_INFO = 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!]!) {
|
|
7
7
|
paymentsByOrders(orderIds: $orderIds) {
|
|
8
8
|
methodCode
|
|
9
9
|
methodTypeCode
|
|
10
|
-
gatewayConfigId
|
|
11
10
|
partnerCode
|
|
12
11
|
totalAmount
|
|
13
12
|
fee
|
|
@@ -38,12 +37,6 @@ exports.PAYMENTS_BY_ORDERS = (0, graphql_tag_1.gql) `
|
|
|
38
37
|
baseMethodCode
|
|
39
38
|
confirmPaidBy
|
|
40
39
|
confirmPaidDate
|
|
41
|
-
qrCode
|
|
42
|
-
payUrl
|
|
43
|
-
customerId
|
|
44
|
-
attributes
|
|
45
|
-
paymentNote
|
|
46
|
-
payExpireDate
|
|
47
40
|
}
|
|
48
41
|
}
|
|
49
42
|
`;
|
|
@@ -88,48 +81,3 @@ exports.PAYMENT_METHODS = (0, graphql_tag_1.gql) `
|
|
|
88
81
|
}
|
|
89
82
|
}
|
|
90
83
|
`;
|
|
91
|
-
exports.PAYMENT_STATUS = (0, graphql_tag_1.gql) `
|
|
92
|
-
query PaymentStatus($paymentId: String!) {
|
|
93
|
-
paymentStatus(paymentId: $paymentId) {
|
|
94
|
-
methodCode
|
|
95
|
-
methodTypeCode
|
|
96
|
-
gatewayConfigId
|
|
97
|
-
partnerCode
|
|
98
|
-
totalAmount
|
|
99
|
-
fee
|
|
100
|
-
discountAmount
|
|
101
|
-
payDate
|
|
102
|
-
payType
|
|
103
|
-
transactionDate
|
|
104
|
-
orderId
|
|
105
|
-
paymentId
|
|
106
|
-
invoiceId
|
|
107
|
-
orderInfo
|
|
108
|
-
orderType
|
|
109
|
-
locale
|
|
110
|
-
merchantIp
|
|
111
|
-
extraData
|
|
112
|
-
storeID
|
|
113
|
-
bankCode
|
|
114
|
-
appUser
|
|
115
|
-
phone
|
|
116
|
-
email
|
|
117
|
-
address
|
|
118
|
-
statusCode
|
|
119
|
-
statusDescription
|
|
120
|
-
transactionId
|
|
121
|
-
createBy
|
|
122
|
-
methodDescription
|
|
123
|
-
methodMapping
|
|
124
|
-
baseMethodCode
|
|
125
|
-
confirmPaidBy
|
|
126
|
-
confirmPaidDate
|
|
127
|
-
qrCode
|
|
128
|
-
payUrl
|
|
129
|
-
customerId
|
|
130
|
-
attributes
|
|
131
|
-
paymentNote
|
|
132
|
-
payExpireDate
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
`;
|
|
@@ -9,5 +9,4 @@ export declare class PaymentLVService extends Service {
|
|
|
9
9
|
confirmPaidManual(paymentId: string, confirmBy: string): Promise<any>;
|
|
10
10
|
getPaymentMethodTypes(store: string): Promise<any>;
|
|
11
11
|
paymentMethods(): Promise<any>;
|
|
12
|
-
paymentStatus(paymentId: string): Promise<any>;
|
|
13
12
|
}
|
|
@@ -65,7 +65,6 @@ class PaymentLVService extends serviceSDK_1.Service {
|
|
|
65
65
|
const mutation = mutations_1.CANCEL_PAYMENT;
|
|
66
66
|
const variables = {
|
|
67
67
|
paymentId,
|
|
68
|
-
safeMode: true,
|
|
69
68
|
reason,
|
|
70
69
|
createBy,
|
|
71
70
|
};
|
|
@@ -129,21 +128,5 @@ class PaymentLVService extends serviceSDK_1.Service {
|
|
|
129
128
|
}
|
|
130
129
|
});
|
|
131
130
|
}
|
|
132
|
-
paymentStatus(paymentId) {
|
|
133
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
134
|
-
const query = queries_1.PAYMENT_STATUS;
|
|
135
|
-
const variables = {
|
|
136
|
-
paymentId,
|
|
137
|
-
};
|
|
138
|
-
try {
|
|
139
|
-
const response = yield this.graphqlQueryCustomHeader(query, variables);
|
|
140
|
-
return response.paymentStatus;
|
|
141
|
-
}
|
|
142
|
-
catch (error) {
|
|
143
|
-
console.log(`Error fetching get paymentStatus method: ${error}`);
|
|
144
|
-
throw error;
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
131
|
}
|
|
149
132
|
exports.PaymentLVService = PaymentLVService;
|