@be-link/pos-cli-nodejs 1.0.51-beta.0 → 1.0.51-beta.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.
Files changed (96) hide show
  1. package/package.json +17 -14
  2. package/{dist/pos → pos}/modules/orderQuery/types.d.ts +1 -1
  3. package/{dist/pos → pos}/modules/orderQuery/user.d.ts +1 -1
  4. package/{dist/pos → pos}/modules/orderQuery/user.js +4 -2
  5. package/{dist/types.d.ts → types.d.ts} +36 -5
  6. package/utils/posProxy/comboInfoProxy.d.ts +19 -0
  7. package/utils/posProxy/comboInfoProxy.js +30 -0
  8. package/utils/posProxy/index.d.ts +5 -0
  9. package/utils/posProxy/index.js +40 -0
  10. package/utils/posProxy/itemInfoProxy.d.ts +129 -0
  11. package/utils/posProxy/itemInfoProxy.js +105 -0
  12. package/utils/posProxy/skuInfoProxy.d.ts +70 -0
  13. package/utils/posProxy/skuInfoProxy.js +83 -0
  14. package/utils/posProxy/venueInfoProxy.d.ts +22 -0
  15. package/utils/posProxy/venueInfoProxy.js +30 -0
  16. package/.github/workflows/JMeter.yml +0 -92
  17. package/.husky/commit-msg +0 -4
  18. package/.versionrc +0 -22
  19. package/CHANGELOG.md +0 -599
  20. package/Makefile +0 -4
  21. package/ceshi.jmx +0 -326
  22. package/ci/index.ts +0 -73
  23. package/commitlint.config.js +0 -3
  24. package/dist/README.md +0 -40
  25. package/dist/package.json +0 -54
  26. package/jest.config.js +0 -194
  27. package/src/errors/BizError.ts +0 -10
  28. package/src/errors/SystemError.ts +0 -10
  29. package/src/index.ts +0 -33
  30. package/src/pos/http.ts +0 -70
  31. package/src/pos/modules/dataMigrate/service.ts +0 -18
  32. package/src/pos/modules/dataMigrate/types.ts +0 -11
  33. package/src/pos/modules/orderCore/service.ts +0 -80
  34. package/src/pos/modules/orderCore/types.ts +0 -418
  35. package/src/pos/modules/orderFulfill/service.ts +0 -126
  36. package/src/pos/modules/orderFulfill/types.ts +0 -548
  37. package/src/pos/modules/orderJob/service.ts +0 -87
  38. package/src/pos/modules/orderJob/types.ts +0 -54
  39. package/src/pos/modules/orderNote/service.ts +0 -29
  40. package/src/pos/modules/orderNote/types.ts +0 -78
  41. package/src/pos/modules/orderQuery/commodity.ts +0 -59
  42. package/src/pos/modules/orderQuery/store.ts +0 -24
  43. package/src/pos/modules/orderQuery/supplier.ts +0 -34
  44. package/src/pos/modules/orderQuery/types.ts +0 -1159
  45. package/src/pos/modules/orderQuery/user.ts +0 -83
  46. package/src/pos/modules/orderQuery/web.ts +0 -26
  47. package/src/pos/modules/service.ts +0 -31
  48. package/src/types.ts +0 -1237
  49. package/src/utils/env.ts +0 -14
  50. package/src/utils/string.ts +0 -6
  51. package/tsconfig.json +0 -114
  52. package/typedoc.json +0 -15
  53. /package/{dist/errors → errors}/BizError.d.ts +0 -0
  54. /package/{dist/errors → errors}/BizError.js +0 -0
  55. /package/{dist/errors → errors}/SystemError.d.ts +0 -0
  56. /package/{dist/errors → errors}/SystemError.js +0 -0
  57. /package/{dist/index.d.ts → index.d.ts} +0 -0
  58. /package/{dist/index.js → index.js} +0 -0
  59. /package/{dist/pos → pos}/http.d.ts +0 -0
  60. /package/{dist/pos → pos}/http.js +0 -0
  61. /package/{dist/pos → pos}/modules/dataMigrate/service.d.ts +0 -0
  62. /package/{dist/pos → pos}/modules/dataMigrate/service.js +0 -0
  63. /package/{dist/pos → pos}/modules/dataMigrate/types.d.ts +0 -0
  64. /package/{dist/pos → pos}/modules/dataMigrate/types.js +0 -0
  65. /package/{dist/pos → pos}/modules/orderCore/service.d.ts +0 -0
  66. /package/{dist/pos → pos}/modules/orderCore/service.js +0 -0
  67. /package/{dist/pos → pos}/modules/orderCore/types.d.ts +0 -0
  68. /package/{dist/pos → pos}/modules/orderCore/types.js +0 -0
  69. /package/{dist/pos → pos}/modules/orderFulfill/service.d.ts +0 -0
  70. /package/{dist/pos → pos}/modules/orderFulfill/service.js +0 -0
  71. /package/{dist/pos → pos}/modules/orderFulfill/types.d.ts +0 -0
  72. /package/{dist/pos → pos}/modules/orderFulfill/types.js +0 -0
  73. /package/{dist/pos → pos}/modules/orderJob/service.d.ts +0 -0
  74. /package/{dist/pos → pos}/modules/orderJob/service.js +0 -0
  75. /package/{dist/pos → pos}/modules/orderJob/types.d.ts +0 -0
  76. /package/{dist/pos → pos}/modules/orderJob/types.js +0 -0
  77. /package/{dist/pos → pos}/modules/orderNote/service.d.ts +0 -0
  78. /package/{dist/pos → pos}/modules/orderNote/service.js +0 -0
  79. /package/{dist/pos → pos}/modules/orderNote/types.d.ts +0 -0
  80. /package/{dist/pos → pos}/modules/orderNote/types.js +0 -0
  81. /package/{dist/pos → pos}/modules/orderQuery/commodity.d.ts +0 -0
  82. /package/{dist/pos → pos}/modules/orderQuery/commodity.js +0 -0
  83. /package/{dist/pos → pos}/modules/orderQuery/store.d.ts +0 -0
  84. /package/{dist/pos → pos}/modules/orderQuery/store.js +0 -0
  85. /package/{dist/pos → pos}/modules/orderQuery/supplier.d.ts +0 -0
  86. /package/{dist/pos → pos}/modules/orderQuery/supplier.js +0 -0
  87. /package/{dist/pos → pos}/modules/orderQuery/types.js +0 -0
  88. /package/{dist/pos → pos}/modules/orderQuery/web.d.ts +0 -0
  89. /package/{dist/pos → pos}/modules/orderQuery/web.js +0 -0
  90. /package/{dist/pos → pos}/modules/service.d.ts +0 -0
  91. /package/{dist/pos → pos}/modules/service.js +0 -0
  92. /package/{dist/types.js → types.js} +0 -0
  93. /package/{dist/utils → utils}/env.d.ts +0 -0
  94. /package/{dist/utils → utils}/env.js +0 -0
  95. /package/{dist/utils → utils}/string.d.ts +0 -0
  96. /package/{dist/utils → utils}/string.js +0 -0
package/jest.config.js DELETED
@@ -1,194 +0,0 @@
1
- /*
2
- * For a detailed explanation regarding each configuration property, visit:
3
- * https://jestjs.io/docs/configuration
4
- */
5
-
6
- module.exports = {
7
- // All imported modules in your tests should be mocked automatically
8
- // automock: false,
9
-
10
- // Stop running tests after `n` failures
11
- // bail: 0,
12
-
13
- // The directory where Jest should store its cached dependency information
14
- // cacheDirectory: "/private/var/folders/dt/kcn7j7yj36n1881sqpgzqv3c0000gn/T/jest_dx",
15
-
16
- // Automatically clear mock calls and instances between every test
17
- clearMocks: true,
18
-
19
- // Indicates whether the coverage information should be collected while executing the test
20
- // collectCoverage: false,
21
-
22
- // An array of glob patterns indicating a set of files for which coverage information should be collected
23
- // collectCoverageFrom: undefined,
24
-
25
- // The directory where Jest should output its coverage files
26
- // coverageDirectory: undefined,
27
-
28
- // An array of regexp pattern strings used to skip coverage collection
29
- // coveragePathIgnorePatterns: [
30
- // "/node_modules/"
31
- // ],
32
-
33
- // Indicates which provider should be used to instrument code for coverage
34
- coverageProvider: 'v8',
35
-
36
- // A list of reporter names that Jest uses when writing coverage reports
37
- // coverageReporters: [
38
- // "json",
39
- // "text",
40
- // "lcov",
41
- // "clover"
42
- // ],
43
-
44
- // An object that configures minimum threshold enforcement for coverage results
45
- // coverageThreshold: undefined,
46
-
47
- // A path to a custom dependency extractor
48
- // dependencyExtractor: undefined,
49
-
50
- // Make calling deprecated APIs throw helpful error messages
51
- // errorOnDeprecated: false,
52
-
53
- // Force coverage collection from ignored files using an array of glob patterns
54
- // forceCoverageMatch: [],
55
-
56
- // A path to a module which exports an async function that is triggered once before all test suites
57
- // globalSetup: undefined,
58
-
59
- // A path to a module which exports an async function that is triggered once after all test suites
60
- // globalTeardown: undefined,
61
-
62
- // A set of global variables that need to be available in all test environments
63
- // globals: {},
64
-
65
- // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
66
- // maxWorkers: "50%",
67
-
68
- // An array of directory names to be searched recursively up from the requiring module's location
69
- // moduleDirectories: [
70
- // "node_modules"
71
- // ],
72
-
73
- // An array of file extensions your modules use
74
- moduleFileExtensions: [
75
- "js",
76
- "jsx",
77
- "ts",
78
- "tsx",
79
- "json",
80
- "node"
81
- ],
82
-
83
- // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
84
- // moduleNameMapper: {},
85
-
86
- // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
87
- // modulePathIgnorePatterns: [],
88
-
89
- // Activates notifications for test results
90
- // notify: false,
91
-
92
- // An enum that specifies notification mode. Requires { notify: true }
93
- // notifyMode: "failure-change",
94
-
95
- // A preset that is used as a base for Jest's configuration
96
- preset: 'ts-jest',
97
-
98
- // Run tests from one or more projects
99
- // projects: undefined,
100
-
101
- // Use this configuration option to add custom reporters to Jest
102
- // reporters: undefined,
103
-
104
- // Automatically reset mock state between every test
105
- // resetMocks: false,
106
-
107
- // Reset the module registry before running each individual test
108
- // resetModules: false,
109
-
110
- // A path to a custom resolver
111
- // resolver: undefined,
112
-
113
- // Automatically restore mock state between every test
114
- // restoreMocks: false,
115
-
116
- // The root directory that Jest should scan for tests and modules within
117
- // rootDir: undefined,
118
-
119
- // A list of paths to directories that Jest should use to search for files in
120
- // roots: [
121
- // "<rootDir>"
122
- // ],
123
-
124
- // Allows you to use a custom runner instead of Jest's default test runner
125
- // runner: "jest-runner",
126
-
127
- // The paths to modules that run some code to configure or set up the testing environment before each test
128
- // setupFiles: [],
129
-
130
- // A list of paths to modules that run some code to configure or set up the testing framework before each test
131
- // setupFilesAfterEnv: [],
132
-
133
- // The number of seconds after which a test is considered as slow and reported as such in the results.
134
- // slowTestThreshold: 5,
135
-
136
- // A list of paths to snapshot serializer modules Jest should use for snapshot testing
137
- // snapshotSerializers: [],
138
-
139
- // The test environment that will be used for testing
140
- // testEnvironment: "jest-environment-node",
141
-
142
- // Options that will be passed to the testEnvironment
143
- // testEnvironmentOptions: {},
144
-
145
- // Adds a location field to test results
146
- // testLocationInResults: false,
147
-
148
- // The glob patterns Jest uses to detect test files
149
- // testMatch: [
150
- // "**/__tests__/**/*.[jt]s?(x)",
151
- // "**/?(*.)+(spec|test).[tj]s?(x)"
152
- // ],
153
-
154
- // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
155
- // testPathIgnorePatterns: [
156
- // "/node_modules/"
157
- // ],
158
-
159
- // The regexp pattern or array of patterns that Jest uses to detect test files
160
- // testRegex: [],
161
-
162
- // This option allows the use of a custom results processor
163
- // testResultsProcessor: undefined,
164
-
165
- // This option allows use of a custom test runner
166
- // testRunner: "jest-circus/runner",
167
-
168
- // This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
169
- // testURL: "http://localhost",
170
-
171
- // Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
172
- // timers: "real",
173
-
174
- // A map from regular expressions to paths to transformers
175
- transform: { "^.+\\.ts?$": "ts-jest" },
176
-
177
- // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
178
- // transformIgnorePatterns: [
179
- // "/node_modules/",
180
- // "\\.pnp\\.[^\\/]+$"
181
- // ],
182
-
183
- // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
184
- // unmockedModulePathPatterns: undefined,
185
-
186
- // Indicates whether each individual test should be reported during the run
187
- // verbose: undefined,
188
-
189
- // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
190
- // watchPathIgnorePatterns: [],
191
-
192
- // Whether to use watchman for file crawling
193
- // watchman: true,
194
- }
@@ -1,10 +0,0 @@
1
- export default class BizError extends Error {
2
-
3
- code: number
4
-
5
- constructor(message: string, code: number = 400) {
6
- super(message)
7
- this.code = code
8
- this.name = 'BizError'
9
- }
10
- }
@@ -1,10 +0,0 @@
1
- export default class SystemError extends Error {
2
-
3
- code: number
4
-
5
- constructor(message: string, code: number = 500) {
6
- super(message)
7
- this.code = code
8
- this.name = 'SystemError'
9
- }
10
- }
package/src/index.ts DELETED
@@ -1,33 +0,0 @@
1
- import * as PosConstants from 'vitality-meta/enums/pos'
2
- import * as PosDto from './types'
3
- import BizError from './errors/BizError'
4
-
5
- import orderCoreService from './pos/modules/orderCore/service'
6
- import orderFulfillService from './pos/modules/orderFulfill/service'
7
- import queryByCommodityService from './pos/modules/orderQuery/commodity'
8
- import queryByStoreService from './pos/modules/orderQuery/store'
9
- import queryByUserService from './pos/modules/orderQuery/user'
10
- import queryByWebService from './pos/modules/orderQuery/web'
11
- import queryBySupplierService from './pos/modules/orderQuery/supplier'
12
- import orderNoteService from './pos/modules/orderNote/service'
13
- import orderJobService from './pos/modules/orderJob/service'
14
- import dataMigrateService from './pos/modules/dataMigrate/service'
15
-
16
- export {
17
- /** 业务模块 */
18
- orderCoreService,
19
- orderFulfillService,
20
- queryByCommodityService,
21
- queryByStoreService,
22
- queryByUserService,
23
- queryByWebService,
24
- queryBySupplierService,
25
- orderNoteService,
26
- orderJobService,
27
- dataMigrateService,
28
- /** 枚举类 */
29
- PosConstants,
30
- PosDto,
31
- /** 错误类 */
32
- BizError
33
- }
package/src/pos/http.ts DELETED
@@ -1,70 +0,0 @@
1
- import axios, {AxiosError} from 'axios'
2
- import { v4 as uuidV4 } from 'uuid'
3
- import BizError from '../errors/BizError'
4
- import SystemError from '../errors/SystemError'
5
- import axiosRetry from 'axios-retry'
6
-
7
- const axiosInstance = axios.create(
8
- {
9
- timeout: 55000,
10
- httpsAgent: new (require('https').Agent)({ keepAlive: true }),
11
- httpAgent: new (require('http').Agent)({ keepAlive: true }),
12
- }
13
- )
14
-
15
- axiosRetry(axiosInstance, {
16
- retries: 1,
17
- retryCondition(error) {
18
- console.info('errorMessage', error.message)
19
- console.info('errorResponse', error.response ? error.response.data : null)
20
- const isSocketHangUp = error.message.includes('socket hang up')
21
- return isSocketHangUp || error.message.includes('getaddrinfo ENOTFOUND') || (Boolean(error.response) && [502, 503].includes(error.response!.status))
22
- },
23
- retryDelay: (retryCount, error) => {
24
- console.info(`retryCount: ${retryCount}, retryDelay: ${retryCount * 500}`)
25
- return retryCount * 500
26
- },
27
- onRetry(retryCount, error, requestConfig) {
28
- console.info(`retryCount: ${retryCount}, onRetry: ${error}, requestHeader: ${JSON.stringify(requestConfig.headers)}`)
29
- },
30
- })
31
-
32
- type ResponseData = {
33
- data: any
34
- message: string
35
- }
36
-
37
- export async function callApi<T extends (args: any) => Promise<any>>(url: string, ...request: Parameters<T>)
38
- : Promise<Awaited<ReturnType<T>>>
39
- {
40
- const requestId = uuidV4()
41
- try {
42
- console.info(`准备发起POS请求[${requestId}]: ${url}, 参数: ${JSON.stringify(request)}`)
43
- const response = await axiosInstance.post(url, request[0], {
44
- headers: {
45
- 'X-Request-Id': requestId,
46
- 'x-belink-accessType': 'authorizationTokenInside',
47
- 'x-belink-authorization': process.env.authorizationTokenInside || ""
48
- }
49
- })
50
- const responseData = response.data as ResponseData
51
- return responseData.data
52
- } catch (error: any) {
53
- const axiosError = error as AxiosError
54
- const ErrorClass = axiosError.response
55
- ? axiosError.response.status === 400
56
- ? BizError
57
- : SystemError
58
- : SystemError
59
- if (axiosError.response) {
60
- const response = axiosError.response
61
- const data = response.data as ResponseData
62
- console.error(`POS 异常[${requestId}]: ${axiosError.message}`)
63
- console.info('响应信息', data.message)
64
- console.error('异常堆栈', JSON.stringify(error.stack))
65
- throw new ErrorClass(data.message || 'Pos Error', response.status)
66
- }
67
- console.error(`POS 未知异常[${requestId}]: ${axiosError.message}`, error.stack)
68
- throw error
69
- }
70
- }
@@ -1,18 +0,0 @@
1
- import { Service } from './types'
2
- import { callApi } from '../../http'
3
- import BaseService from '../service'
4
-
5
- class DataMigrateService extends BaseService implements Service.DataMigrateController {
6
- protected prefixUrl: string = '/dataMigrate'
7
-
8
- pos(): Promise<void> {
9
- return callApi<Service.DataMigrateController['pos']>(this.getApiUrl(this.pos))
10
- }
11
- rev(): Promise<void> {
12
- return callApi<Service.DataMigrateController['rev']>(this.getApiUrl(this.rev))
13
- }
14
- }
15
-
16
- const dataMigrateService = new DataMigrateService()
17
-
18
- export default dataMigrateService
@@ -1,11 +0,0 @@
1
- import * as PosConstants from 'vitality-meta/enums/pos'
2
- import * as DTO from '../../../types'
3
-
4
-
5
- export namespace Service {
6
-
7
- export interface DataMigrateController {
8
- pos(): Promise<void>
9
- rev(): Promise<void>
10
- }
11
- }
@@ -1,80 +0,0 @@
1
- import { Service } from './types'
2
- import { callApi } from '../../http'
3
- import BaseService from '../service'
4
- import { IPositiveOrderInvoice } from '../../../types'
5
-
6
- class OrderCoreService extends BaseService implements Service.OrderCoreController {
7
- protected prefixUrl: string = '/core'
8
-
9
- orderFulfill(request: Service.Request.orderFulfill): Promise<void> {
10
- return callApi<Service.OrderCoreController['orderFulfill']>(this.getApiUrl(this.orderFulfill), request)
11
- }
12
-
13
- updateOrderInvoice(request: IPositiveOrderInvoice): Promise<string> {
14
- return callApi<Service.OrderCoreController['updateOrderInvoice']>(this.getApiUrl(this.updateOrderInvoice), request)
15
- }
16
- orderCreateInvoice(request: IPositiveOrderInvoice): Promise<IPositiveOrderInvoice> {
17
- return callApi<Service.OrderCoreController['orderCreateInvoice']>(this.getApiUrl(this.orderCreateInvoice), request)
18
- }
19
- onRefundTrigger(request: Service.Request.onRefundTrigger): Promise<void> {
20
- return callApi<Service.OrderCoreController['onRefundTrigger']>(this.getApiUrl(this.onRefundTrigger), request)
21
- }
22
- orderCreate(request: Service.Request.orderCreate): Promise<Service.Response.orderCreate> {
23
- return callApi<Service.OrderCoreController['orderCreate']>(this.getApiUrl(this.orderCreate), request)
24
- }
25
- thirdOrderInfoConfirmed(request: Service.Request.thirdOrderInfoConfirmed) {
26
- return callApi<Service.OrderCoreController['thirdOrderInfoConfirmed']>(this.getApiUrl(this.thirdOrderInfoConfirmed), request)
27
- }
28
- platformReject(request: Service.Request.platformReject) {
29
- return callApi<Service.OrderCoreController['platformReject']>(this.getApiUrl(this.platformReject), request)
30
- }
31
- supplierRejected(request: Service.Request.supplierRejected) {
32
- return callApi<Service.OrderCoreController['supplierRejected']>(this.getApiUrl(this.supplierRejected), request)
33
- }
34
- supplierConfirmed(request: Service.Request.supplierConfirmed) {
35
- return callApi<Service.OrderCoreController['supplierConfirmed']>(this.getApiUrl(this.supplierConfirmed), request)
36
- }
37
- submittedToSupplier(request: Service.Request.submittedToSupplier) {
38
- return callApi<Service.OrderCoreController['submittedToSupplier']>(this.getApiUrl(this.submittedToSupplier), request)
39
- }
40
- sendOrderPaidNotification(request: Service.Request.sendOrderPaidNotification) {
41
- return callApi<Service.OrderCoreController['sendOrderPaidNotification']>(this.getApiUrl(this.sendOrderPaidNotification), request)
42
- }
43
- orderSettled(request: Service.Request.orderSettled): Promise<void> {
44
- return callApi<Service.OrderCoreController['orderSettled']>(this.getApiUrl(this.orderSettled), request)
45
- }
46
- changeOrderContactInfo(request: Service.Request.changeOrderContactInfo): Promise<void> {
47
- return callApi<Service.OrderCoreController['changeOrderContactInfo']>(this.getApiUrl(this.changeOrderContactInfo), request)
48
- }
49
- changeOrderPromotionStatus(request: Service.Request.changeOrderPromotionStatusRequest): Promise<void> {
50
- return callApi<Service.OrderCoreController['changeOrderPromotionStatus']>(this.getApiUrl(this.changeOrderPromotionStatus), request)
51
- }
52
- rescheduleOrder(request: Service.Request.IRescheduleOrder): Promise<void> {
53
- return callApi<Service.OrderCoreController['rescheduleOrder']>(this.getApiUrl(this.rescheduleOrder), request)
54
- }
55
- batchSubmitOrders(request: Service.Request.IBatchSubmitOrders): Promise<void> {
56
- return callApi<Service.OrderCoreController['batchSubmitOrders']>(this.getApiUrl(this.batchSubmitOrders), request)
57
- }
58
- batchConfirmOrders(request: Service.Request.IBatchConfirmOrders): Promise<void> {
59
- return callApi<Service.OrderCoreController['batchConfirmOrders']>(this.getApiUrl(this.batchConfirmOrders), request)
60
- }
61
- batchRejectOrders(request: Service.Request.IBatchRejectOrders): Promise<void> {
62
- return callApi<Service.OrderCoreController['batchRejectOrders']>(this.getApiUrl(this.batchRejectOrders), request)
63
- }
64
- batchRollbackOrdersToPending(request: Service.Request.IBatchRollbackOrdersToPending): Promise<void> {
65
- return callApi<Service.OrderCoreController['batchRollbackOrdersToPending']>(this.getApiUrl(this.batchRollbackOrdersToPending), request)
66
- }
67
- updateOrderAttribute(request: Service.Request.IUpdateOrderAttribute): Promise<void> {
68
- return callApi<Service.OrderCoreController['updateOrderAttribute']>(this.getApiUrl(this.updateOrderAttribute), request)
69
- }
70
- orderPayFailed(request: { orderId: string }): Promise<void> {
71
- return callApi<Service.OrderCoreController['orderPayFailed']>(this.getApiUrl(this.orderPayFailed), request)
72
- }
73
- compensateOrderPended(request: { orderId: string; isPaidCheck: boolean }): Promise<void> {
74
- return callApi<Service.OrderCoreController['compensateOrderPended']>(this.getApiUrl(this.compensateOrderPended), request)
75
- }
76
- }
77
-
78
- const orderCoreService = new OrderCoreService()
79
-
80
- export default orderCoreService