@longvansoftware/service-js-client 1.15.7 → 1.15.9

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.
Files changed (93) hide show
  1. package/README.md +93 -93
  2. package/dist/src/graphql/accounting_service/mutations.js +96 -96
  3. package/dist/src/graphql/accounting_service/queries.js +57 -57
  4. package/dist/src/graphql/auth/mutations.js +235 -235
  5. package/dist/src/graphql/auth/queries.js +68 -68
  6. package/dist/src/graphql/campaign/mutations.d.ts +1 -0
  7. package/dist/src/graphql/campaign/mutations.js +34 -0
  8. package/dist/src/graphql/campaign/queries.d.ts +9 -0
  9. package/dist/src/graphql/campaign/queries.js +412 -0
  10. package/dist/src/graphql/cashbook/queries.d.ts +2 -0
  11. package/dist/src/graphql/cashbook/queries.js +99 -0
  12. package/dist/src/graphql/cloud/mutations.d.ts +4 -0
  13. package/dist/src/graphql/cloud/mutations.js +287 -241
  14. package/dist/src/graphql/cloud/queries.js +341 -341
  15. package/dist/src/graphql/computing/mutations.js +303 -303
  16. package/dist/src/graphql/computing/queries.js +548 -548
  17. package/dist/src/graphql/crm/mutations.d.ts +1 -0
  18. package/dist/src/graphql/crm/mutations.js +392 -375
  19. package/dist/src/graphql/crm/queries.d.ts +1 -0
  20. package/dist/src/graphql/crm/queries.js +359 -332
  21. package/dist/src/graphql/crm_camping/mutations.js +32 -32
  22. package/dist/src/graphql/crm_camping/queries.js +198 -198
  23. package/dist/src/graphql/orderGraphQL/mutations.js +351 -351
  24. package/dist/src/graphql/orderGraphQL/queries.js +387 -387
  25. package/dist/src/graphql/payment/mutations.js +45 -45
  26. package/dist/src/graphql/payment/queries.js +60 -60
  27. package/dist/src/graphql/paymentLV/mutations.js +19 -19
  28. package/dist/src/graphql/paymentLV/queries.js +75 -75
  29. package/dist/src/graphql/paymentV2/mutations.d.ts +3 -0
  30. package/dist/src/graphql/paymentV2/mutations.js +54 -0
  31. package/dist/src/graphql/paymentV2/queries.d.ts +6 -0
  32. package/dist/src/graphql/paymentV2/queries.js +186 -0
  33. package/dist/src/graphql/product/queries.js +891 -891
  34. package/dist/src/graphql/quicklab_service/mutations.js +154 -154
  35. package/dist/src/graphql/quicklab_service/queries.js +108 -108
  36. package/dist/src/graphql/resource_permission/mutations.js +57 -57
  37. package/dist/src/graphql/resource_permission/queries.js +13 -13
  38. package/dist/src/graphql/service/mutations.js +228 -228
  39. package/dist/src/graphql/service/queries.js +128 -128
  40. package/dist/src/graphql/store/mutations.d.ts +1 -0
  41. package/dist/src/graphql/store/mutations.js +29 -0
  42. package/dist/src/graphql/store/queries.d.ts +1 -0
  43. package/dist/src/graphql/store/queries.js +29 -0
  44. package/dist/src/graphql/user/mutations.js +214 -214
  45. package/dist/src/graphql/user/queries.js +312 -312
  46. package/dist/src/lib/accounting/index.d.ts +5 -0
  47. package/dist/src/lib/accounting/index.js +32 -0
  48. package/dist/src/lib/campaign/index.d.ts +20 -0
  49. package/dist/src/lib/campaign/index.js +213 -0
  50. package/dist/src/lib/cashbook/index.d.ts +6 -0
  51. package/dist/src/lib/cashbook/index.js +56 -0
  52. package/dist/src/lib/cloud/index.d.ts +4 -0
  53. package/dist/src/lib/cloud/index.js +69 -0
  54. package/dist/src/lib/comhub/index.d.ts +6 -0
  55. package/dist/src/lib/comhub/index.js +50 -0
  56. package/dist/src/lib/crm/index.d.ts +2 -0
  57. package/dist/src/lib/crm/index.js +40 -0
  58. package/dist/src/lib/deepLinkVietQr/index.d.ts +6 -0
  59. package/dist/src/lib/deepLinkVietQr/index.js +45 -0
  60. package/dist/src/lib/getImage/index.d.ts +4 -0
  61. package/dist/src/lib/getImage/index.js +10 -0
  62. package/dist/src/lib/image/index.d.ts +7 -0
  63. package/dist/src/lib/image/index.js +49 -0
  64. package/dist/src/lib/omnigateway/index.d.ts +7 -0
  65. package/dist/src/lib/omnigateway/index.js +58 -0
  66. package/dist/src/lib/paymentV2/index.d.ts +13 -0
  67. package/dist/src/lib/paymentV2/index.js +163 -0
  68. package/dist/src/lib/portal/index.d.ts +21 -0
  69. package/dist/src/lib/portal/index.js +225 -0
  70. package/dist/src/lib/serviceSDK.js +12 -12
  71. package/dist/src/lib/store/index.d.ts +30 -0
  72. package/dist/src/lib/store/index.js +74 -0
  73. package/dist/src/lib/token/index.d.ts +5 -0
  74. package/dist/src/lib/token/index.js +32 -0
  75. package/dist/src/lib/upload/index.d.ts +5 -0
  76. package/dist/src/lib/upload/index.js +35 -0
  77. package/dist/src/lib/warehouseV2/index.d.ts +13 -0
  78. package/dist/src/lib/warehouseV2/index.js +54 -0
  79. package/dist/src/lib/zca/index.d.ts +12 -0
  80. package/dist/src/lib/zca/index.js +41 -0
  81. package/dist/src/types/campaign.d.ts +14 -0
  82. package/dist/src/types/campaign.js +2 -0
  83. package/dist/src/types/invoice.d.ts +13 -0
  84. package/dist/src/types/invoice.js +2 -0
  85. package/dist/src/types/store.d.ts +158 -0
  86. package/dist/src/types/store.js +3 -0
  87. package/dist/src/utils/validatePhoneNumber.d.ts +1 -0
  88. package/dist/src/utils/validatePhoneNumber.js +20 -0
  89. package/package.json +44 -43
  90. package/dist/src/lib/service.d.ts +0 -14
  91. package/dist/src/lib/service.js +0 -101
  92. package/dist/src/utils/build-field-string.d.ts +0 -1
  93. package/dist/src/utils/build-field-string.js +0 -16
@@ -2,50 +2,50 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CREATE_VAT_INVOICE_REQUEST = exports.CREATE_PAYMENT_ORDER_MUTATION = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.CREATE_PAYMENT_ORDER_MUTATION = (0, graphql_tag_1.gql) `
6
- mutation CreatePaymentOrder(
7
- $orgId: String!
8
- $orderId: String!
9
- $paymentMethod: String!
10
- $storeId: String!
11
- $source: String!
12
- $appliedAmount: BigDecimal
13
- $payDate: String
14
- $returnUrl: String
15
- $paymentType: String
16
- $createBy: String
17
- ) {
18
- createPaymentOrder(
19
- orgId: $orgId
20
- orderId: $orderId
21
- paymentMethod: $paymentMethod
22
- storeId: $storeId
23
- source: $source
24
- appliedAmount: $appliedAmount
25
- payDate: $payDate
26
- returnUrl: $returnUrl
27
- paymentType: $paymentType
28
- createBy: $createBy
29
- ) {
30
- code
31
- message
32
- data
33
- qrCodeUrl
34
- deeplink
35
- deeplinkMiniApp
36
- invoiceId
37
- orderId
38
- }
39
- }
5
+ exports.CREATE_PAYMENT_ORDER_MUTATION = (0, graphql_tag_1.gql) `
6
+ mutation CreatePaymentOrder(
7
+ $orgId: String!
8
+ $orderId: String!
9
+ $paymentMethod: String!
10
+ $storeId: String!
11
+ $source: String!
12
+ $appliedAmount: BigDecimal
13
+ $payDate: String
14
+ $returnUrl: String
15
+ $paymentType: String
16
+ $createBy: String
17
+ ) {
18
+ createPaymentOrder(
19
+ orgId: $orgId
20
+ orderId: $orderId
21
+ paymentMethod: $paymentMethod
22
+ storeId: $storeId
23
+ source: $source
24
+ appliedAmount: $appliedAmount
25
+ payDate: $payDate
26
+ returnUrl: $returnUrl
27
+ paymentType: $paymentType
28
+ createBy: $createBy
29
+ ) {
30
+ code
31
+ message
32
+ data
33
+ qrCodeUrl
34
+ deeplink
35
+ deeplinkMiniApp
36
+ invoiceId
37
+ orderId
38
+ }
39
+ }
40
40
  `;
41
- exports.CREATE_VAT_INVOICE_REQUEST = (0, graphql_tag_1.gql) `
42
- mutation CreateVatInvoiceRequest(
43
- $vatInvoiceRequest: VatInvoiceRequest!
44
- $createBy: String!
45
- ) {
46
- createVatInvoiceRequest(
47
- vatInvoiceRequest: $vatInvoiceRequest
48
- createBy: $createBy
49
- )
50
- }
41
+ exports.CREATE_VAT_INVOICE_REQUEST = (0, graphql_tag_1.gql) `
42
+ mutation CreateVatInvoiceRequest(
43
+ $vatInvoiceRequest: VatInvoiceRequest!
44
+ $createBy: String!
45
+ ) {
46
+ createVatInvoiceRequest(
47
+ vatInvoiceRequest: $vatInvoiceRequest
48
+ createBy: $createBy
49
+ )
50
+ }
51
51
  `;
@@ -2,66 +2,66 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GET_VAT_INVOICE_REQUEST_BY_ORDER = exports.GEN_QR_PAYMENT = exports.GET_PAYMENT_METHOD = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.GET_PAYMENT_METHOD = (0, graphql_tag_1.gql) `
6
- query GetPaymentMethod($orgId: String!, $storeChannelId: String) {
7
- getPaymentMethod(orgId: $orgId, storeChannelId: $storeChannelId) {
8
- id
9
- code
10
- name
11
- image
12
- description
13
- }
14
- }
5
+ exports.GET_PAYMENT_METHOD = (0, graphql_tag_1.gql) `
6
+ query GetPaymentMethod($orgId: String!, $storeChannelId: String) {
7
+ getPaymentMethod(orgId: $orgId, storeChannelId: $storeChannelId) {
8
+ id
9
+ code
10
+ name
11
+ image
12
+ description
13
+ }
14
+ }
15
15
  `;
16
- exports.GEN_QR_PAYMENT = (0, graphql_tag_1.gql) `
17
- query GenQRPayment(
18
- $orgId: String!
19
- $orderId: String!
20
- $storeId: String!
21
- $totalAmount: BigDecimal
22
- ) {
23
- genQRPayment(
24
- orgId: $orgId
25
- orderId: $orderId
26
- storeId: $storeId
27
- totalAmount: $totalAmount
28
- )
29
- }
16
+ exports.GEN_QR_PAYMENT = (0, graphql_tag_1.gql) `
17
+ query GenQRPayment(
18
+ $orgId: String!
19
+ $orderId: String!
20
+ $storeId: String!
21
+ $totalAmount: BigDecimal
22
+ ) {
23
+ genQRPayment(
24
+ orgId: $orgId
25
+ orderId: $orderId
26
+ storeId: $storeId
27
+ totalAmount: $totalAmount
28
+ )
29
+ }
30
30
  `;
31
- exports.GET_VAT_INVOICE_REQUEST_BY_ORDER = (0, graphql_tag_1.gql) `
32
- query GetVatInvoiceRequestByOrder(
33
- $orgId: String!
34
- $orderId: String!
35
- $offset: Int
36
- $pageSize: Int
37
- ) {
38
- getVatInvoiceRequestByOrder(
39
- orgId: $orgId
40
- orderId: $orderId
41
- offset: $offset
42
- pageSize: $pageSize
43
- ) {
44
- content {
45
- id
46
- partyId
47
- orderIds
48
- vatInfoId
49
- taxCode
50
- represent
51
- company
52
- address
53
- receiverName
54
- receiverEmail
55
- note
56
- createdBy
57
- createdStamp
58
- updatedBy
59
- updatedStamp
60
- }
61
- totalElements
62
- totalPages
63
- number
64
- size
65
- }
66
- }
31
+ exports.GET_VAT_INVOICE_REQUEST_BY_ORDER = (0, graphql_tag_1.gql) `
32
+ query GetVatInvoiceRequestByOrder(
33
+ $orgId: String!
34
+ $orderId: String!
35
+ $offset: Int
36
+ $pageSize: Int
37
+ ) {
38
+ getVatInvoiceRequestByOrder(
39
+ orgId: $orgId
40
+ orderId: $orderId
41
+ offset: $offset
42
+ pageSize: $pageSize
43
+ ) {
44
+ content {
45
+ id
46
+ partyId
47
+ orderIds
48
+ vatInfoId
49
+ taxCode
50
+ represent
51
+ company
52
+ address
53
+ receiverName
54
+ receiverEmail
55
+ note
56
+ createdBy
57
+ createdStamp
58
+ updatedBy
59
+ updatedStamp
60
+ }
61
+ totalElements
62
+ totalPages
63
+ number
64
+ size
65
+ }
66
+ }
67
67
  `;
@@ -2,24 +2,24 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CONFIRM_PAID_MANUAL = exports.CANCEL_PAYMENT = void 0;
4
4
  const graphql_tag_1 = require("graphql-tag");
5
- exports.CANCEL_PAYMENT = (0, graphql_tag_1.gql) `
6
- mutation CancelPayment(
7
- $paymentId: String!
8
- $reason: String!
9
- $createBy: String
10
- ) {
11
- cancelPayment(paymentId: $paymentId, reason: $reason, createBy: $createBy)
12
- }
5
+ exports.CANCEL_PAYMENT = (0, graphql_tag_1.gql) `
6
+ mutation CancelPayment(
7
+ $paymentId: String!
8
+ $reason: String!
9
+ $createBy: String
10
+ ) {
11
+ cancelPayment(paymentId: $paymentId, reason: $reason, createBy: $createBy)
12
+ }
13
13
  `;
14
- exports.CONFIRM_PAID_MANUAL = (0, graphql_tag_1.gql) `
15
- mutation ConfirmPaidManual($paymentId: String!, $confirmBy: String) {
16
- confirmPaidManual(paymentId: $paymentId, confirmBy: $confirmBy) {
17
- code
18
- message
19
- data
20
- qrCodeUrl
21
- deeplink
22
- deeplinkMiniApp
23
- }
24
- }
14
+ exports.CONFIRM_PAID_MANUAL = (0, graphql_tag_1.gql) `
15
+ mutation ConfirmPaidManual($paymentId: String!, $confirmBy: String) {
16
+ confirmPaidManual(paymentId: $paymentId, confirmBy: $confirmBy) {
17
+ code
18
+ message
19
+ data
20
+ qrCodeUrl
21
+ deeplink
22
+ deeplinkMiniApp
23
+ }
24
+ }
25
25
  `;
@@ -2,82 +2,82 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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
- exports.PAYMENTS_BY_ORDERS = (0, graphql_tag_1.gql) `
6
- query PaymentsByOrders($orderIds: [String!]!) {
7
- paymentsByOrders(orderIds: $orderIds) {
8
- methodCode
9
- methodTypeCode
10
- partnerCode
11
- totalAmount
12
- fee
13
- discountAmount
14
- payDate
15
- payType
16
- transactionDate
17
- orderId
18
- paymentId
19
- invoiceId
20
- orderInfo
21
- orderType
22
- locale
23
- merchantIp
24
- extraData
25
- storeID
26
- bankCode
27
- appUser
28
- phone
29
- email
30
- address
31
- statusCode
32
- statusDescription
33
- transactionId
34
- createBy
35
- methodDescription
36
- methodMapping
37
- baseMethodCode
38
- confirmPaidBy
39
- confirmPaidDate
40
- }
41
- }
5
+ exports.PAYMENTS_BY_ORDERS = (0, graphql_tag_1.gql) `
6
+ query PaymentsByOrders($orderIds: [String!]!) {
7
+ paymentsByOrders(orderIds: $orderIds) {
8
+ methodCode
9
+ methodTypeCode
10
+ partnerCode
11
+ totalAmount
12
+ fee
13
+ discountAmount
14
+ payDate
15
+ payType
16
+ transactionDate
17
+ orderId
18
+ paymentId
19
+ invoiceId
20
+ orderInfo
21
+ orderType
22
+ locale
23
+ merchantIp
24
+ extraData
25
+ storeID
26
+ bankCode
27
+ appUser
28
+ phone
29
+ email
30
+ address
31
+ statusCode
32
+ statusDescription
33
+ transactionId
34
+ createBy
35
+ methodDescription
36
+ methodMapping
37
+ baseMethodCode
38
+ confirmPaidBy
39
+ confirmPaidDate
40
+ }
41
+ }
42
42
  `;
43
- exports.GET_TRANSFER_INFO = (0, graphql_tag_1.gql) `
44
- query GetTransferInfor(
45
- $partnerId: String!
46
- $storeId: String!
47
- $paymentId: String
48
- ) {
49
- getTransferInfo(
50
- partnerId: $partnerId
51
- storeId: $storeId
52
- paymentId: $paymentId
53
- ) {
54
- bankCode
55
- bankName
56
- accountNumber
57
- accountName
58
- description
59
- transferInfo
60
- }
61
- }
43
+ exports.GET_TRANSFER_INFO = (0, graphql_tag_1.gql) `
44
+ query GetTransferInfor(
45
+ $partnerId: String!
46
+ $storeId: String!
47
+ $paymentId: String
48
+ ) {
49
+ getTransferInfo(
50
+ partnerId: $partnerId
51
+ storeId: $storeId
52
+ paymentId: $paymentId
53
+ ) {
54
+ bankCode
55
+ bankName
56
+ accountNumber
57
+ accountName
58
+ description
59
+ transferInfo
60
+ }
61
+ }
62
62
  `;
63
- exports.GET_PAYMENT_METHOD_TYPES = (0, graphql_tag_1.gql) `
64
- query GetPaymentMethodTypes($partnerId: String!, $storeId: String!) {
65
- getPaymentMethodTypes(partnerId: $partnerId, storeId: $storeId) {
66
- code
67
- name
68
- description
69
- image
70
- }
71
- }
63
+ exports.GET_PAYMENT_METHOD_TYPES = (0, graphql_tag_1.gql) `
64
+ query GetPaymentMethodTypes($partnerId: String!, $storeId: String!) {
65
+ getPaymentMethodTypes(partnerId: $partnerId, storeId: $storeId) {
66
+ code
67
+ name
68
+ description
69
+ image
70
+ }
71
+ }
72
72
  `;
73
- exports.PAYMENT_METHODS = (0, graphql_tag_1.gql) `
74
- query PaymentMethods($partnerCode: String!) {
75
- paymentMethods(partnerCode: $partnerCode) {
76
- id
77
- code
78
- name
79
- description
80
- image
81
- }
82
- }
73
+ exports.PAYMENT_METHODS = (0, graphql_tag_1.gql) `
74
+ query PaymentMethods($partnerCode: String!) {
75
+ paymentMethods(partnerCode: $partnerCode) {
76
+ id
77
+ code
78
+ name
79
+ description
80
+ image
81
+ }
82
+ }
83
83
  `;
@@ -0,0 +1,3 @@
1
+ export declare const CANCEL_PAYMENT: import("graphql").DocumentNode;
2
+ export declare const CONFIRM_TO_GATEWAY: import("graphql").DocumentNode;
3
+ export declare const CONFIRM_PAYMENT_SUCCESS_MANUAL: import("graphql").DocumentNode;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CONFIRM_PAYMENT_SUCCESS_MANUAL = exports.CONFIRM_TO_GATEWAY = exports.CANCEL_PAYMENT = void 0;
4
+ const graphql_tag_1 = require("graphql-tag");
5
+ exports.CANCEL_PAYMENT = (0, graphql_tag_1.gql) `
6
+ mutation CancelPayment($paymentId: String!, $reason: String!) {
7
+ cancelPayment(paymentId: $paymentId, reason: $reason)
8
+ }
9
+ `;
10
+ exports.CONFIRM_TO_GATEWAY = (0, graphql_tag_1.gql) `
11
+ mutation ConfirmToGateWay(
12
+ $paymentId: String!
13
+ $methodCode: String
14
+ $returnUrl: String
15
+ ) {
16
+ confirmToGateway(
17
+ paymentId: $paymentId
18
+ methodCode: $methodCode
19
+ returnUrl: $returnUrl
20
+ ) {
21
+ code
22
+ message
23
+ data
24
+ qrCodeUrl
25
+ deeplink
26
+ deeplinkMiniApp
27
+ paymentId
28
+ gwConfigId
29
+ }
30
+ }
31
+ `;
32
+ exports.CONFIRM_PAYMENT_SUCCESS_MANUAL = (0, graphql_tag_1.gql) `
33
+ mutation ConfirmPaymentSuccessManual(
34
+ $paymentId: String!
35
+ $transactionNo: String!
36
+ $note: String
37
+ $confirmBy: String!
38
+ ) {
39
+ confirmPaymentSuccessManual(
40
+ paymentId: $paymentId
41
+ transactionNo: $transactionNo
42
+ note: $note
43
+ confirmBy: $confirmBy
44
+ ) {
45
+ code
46
+ message
47
+ data
48
+ qrCodeUrl
49
+ deeplink
50
+ deeplinkMiniApp
51
+ paymentId
52
+ }
53
+ }
54
+ `;
@@ -0,0 +1,6 @@
1
+ export declare const PAYMENTS_BY_ORDERS: import("graphql").DocumentNode;
2
+ export declare const PAYMENT_METHODS: import("graphql").DocumentNode;
3
+ export declare const GET_PAYMENT_METHOD_TYPES: import("graphql").DocumentNode;
4
+ export declare const PAYMENT_INFO: import("graphql").DocumentNode;
5
+ export declare const PAYMENT_STATUS: import("graphql").DocumentNode;
6
+ export declare const GW_CONFIG_DETAIL: import("graphql").DocumentNode;
@@ -0,0 +1,186 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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
+ const graphql_tag_1 = require("graphql-tag");
5
+ exports.PAYMENTS_BY_ORDERS = (0, graphql_tag_1.gql) `
6
+ query PaymentsByOrders($orderIds: [String!]!) {
7
+ paymentsByOrders(orderIds: $orderIds) {
8
+ methodCode
9
+ methodTypeCode
10
+ gatewayConfigId
11
+ partnerCode
12
+ totalAmount
13
+ fee
14
+ discountAmount
15
+ payDate
16
+ payType
17
+ transactionDate
18
+ orderId
19
+ paymentId
20
+ invoiceId
21
+ orderInfo
22
+ orderType
23
+ locale
24
+ merchantIp
25
+ extraData
26
+ storeID
27
+ bankCode
28
+ appUser
29
+ phone
30
+ email
31
+ address
32
+ statusCode
33
+ statusDescription
34
+ transactionId
35
+ createBy
36
+ methodDescription
37
+ methodMapping
38
+ baseMethodCode
39
+ confirmPaidBy
40
+ confirmPaidDate
41
+ qrCode
42
+ payUrl
43
+ paymentNote
44
+ }
45
+ }
46
+ `;
47
+ exports.PAYMENT_METHODS = (0, graphql_tag_1.gql) `
48
+ query PaymentMethods($partnerCode: String) {
49
+ paymentMethods(partnerCode: $partnerCode) {
50
+ id
51
+ code
52
+ name
53
+ description
54
+ image
55
+ }
56
+ }
57
+ `;
58
+ exports.GET_PAYMENT_METHOD_TYPES = (0, graphql_tag_1.gql) `
59
+ query GetPaymentMethodTypes($partnerId: String!, $storeId: String!) {
60
+ getPaymentMethodTypes(partnerId: $partnerId, storeId: $storeId) {
61
+ code
62
+ name
63
+ description
64
+ image
65
+ }
66
+ }
67
+ `;
68
+ exports.PAYMENT_INFO = (0, graphql_tag_1.gql) `
69
+ query PaymentInfo($paymentId: String!) {
70
+ paymentInfo(paymentId: $paymentId) {
71
+ id
72
+ payType
73
+ payDate
74
+ dueDate
75
+ completePayment
76
+ paymentTerm
77
+ methodCode
78
+ methodTypeCode
79
+ gatewayConfigId
80
+ partnerCode
81
+ totalAmount
82
+ remain
83
+ currCode
84
+ invoiceId
85
+ orderId
86
+ orderInfo
87
+ orderGroup
88
+ orderType
89
+ returnUrl
90
+ ipnUrl
91
+ merchantIp
92
+ extraData
93
+ storeID
94
+ bankCode
95
+ appUser
96
+ phone
97
+ email
98
+ address
99
+ signature
100
+ createBy
101
+ transactionId
102
+ baseMethodCode
103
+ retry
104
+ postToOrder
105
+ editAble
106
+ approved
107
+ statusCode
108
+ paymentGroup
109
+ userId
110
+ type
111
+ attributes
112
+ items {
113
+ id
114
+ partnerCode
115
+ paymentId
116
+ type
117
+ orderId
118
+ invoiceId
119
+ orderGroup
120
+ orderType
121
+ orderInfo
122
+ totalAmount
123
+ }
124
+ }
125
+ }
126
+ `;
127
+ exports.PAYMENT_STATUS = (0, graphql_tag_1.gql) `
128
+ query PaymentStatus($paymentId: String!) {
129
+ paymentStatus(paymentId: $paymentId) {
130
+ methodCode
131
+ methodTypeCode
132
+ gatewayConfigId
133
+ partnerCode
134
+ totalAmount
135
+ fee
136
+ discountAmount
137
+ payDate
138
+ payType
139
+ transactionDate
140
+ paymentId
141
+ invoiceId
142
+ orderInfo
143
+ orderType
144
+ locale
145
+ merchantIp
146
+ extraData
147
+ storeID
148
+ bankCode
149
+ appUser
150
+ phone
151
+ email
152
+ address
153
+ statusCode
154
+ statusDescription
155
+ transactionId
156
+ createBy
157
+ methodDescription
158
+ methodMapping
159
+ baseMethodCode
160
+ confirmPaidBy
161
+ confirmPaidDate
162
+ qrCode
163
+ payUrl
164
+ attributes
165
+ }
166
+ }
167
+ `;
168
+ exports.GW_CONFIG_DETAIL = (0, graphql_tag_1.gql) `
169
+ query GwConfigDetail($configId: String!) {
170
+ gwConfigDetail(configId: $configId) {
171
+ id
172
+ name
173
+ methodCode
174
+ partnerCode
175
+ subMethodCode
176
+ gwPartnerCode
177
+ gwPartnerName
178
+ gwSubChannel
179
+ gwMethodVersion
180
+ accessKey
181
+ secretKey
182
+ description
183
+ activated
184
+ }
185
+ }
186
+ `;