@colijnit/transactionapi 1.1.62 → 1.1.63
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/build/enum/public-service-method.d.ts +1 -0
- package/build/enum/public-service-method.js +1 -0
- package/build/ione-api-transaction.d.ts +1 -0
- package/build/transaction-auth.d.ts +1 -0
- package/build/transaction-auth.js +3 -0
- package/build/transaction-public.d.ts +1 -0
- package/build/transaction-public.js +4 -0
- package/build/transaction.d.ts +1 -0
- package/build/transaction.js +3 -0
- package/package.json +3 -3
|
@@ -80,6 +80,7 @@ export declare enum PublicServiceMethod {
|
|
|
80
80
|
GetGoodsAllocationStatusWithHistory = "getGoodsAllocationStatusWithHistory",
|
|
81
81
|
GetCustomerGroups = "getCustomerGroups",
|
|
82
82
|
Commit = "commit",
|
|
83
|
+
Rollback = "rollback",
|
|
83
84
|
GetCashRegisters = "getCashRegisters",
|
|
84
85
|
SearchTransactions = "searchTransactions"
|
|
85
86
|
}
|
|
@@ -83,6 +83,7 @@ var PublicServiceMethod;
|
|
|
83
83
|
PublicServiceMethod["GetGoodsAllocationStatusWithHistory"] = "getGoodsAllocationStatusWithHistory";
|
|
84
84
|
PublicServiceMethod["GetCustomerGroups"] = "getCustomerGroups";
|
|
85
85
|
PublicServiceMethod["Commit"] = "commit";
|
|
86
|
+
PublicServiceMethod["Rollback"] = "rollback";
|
|
86
87
|
PublicServiceMethod["GetCashRegisters"] = "getCashRegisters";
|
|
87
88
|
PublicServiceMethod["SearchTransactions"] = "searchTransactions";
|
|
88
89
|
})(PublicServiceMethod = exports.PublicServiceMethod || (exports.PublicServiceMethod = {}));
|
|
@@ -102,6 +102,7 @@ export declare abstract class IoneApiTransaction {
|
|
|
102
102
|
abstract getCountries(): Promise<DataServiceResponseData>;
|
|
103
103
|
abstract getCustomerGroups(): Promise<DataServiceResponseData>;
|
|
104
104
|
abstract commit(): Promise<DataServiceResponseData>;
|
|
105
|
+
abstract rollback(): Promise<DataServiceResponseData>;
|
|
105
106
|
abstract getPrivacySettings(): Promise<DataServiceResponseData>;
|
|
106
107
|
abstract getMarketingCodes(): Promise<DataServiceResponseData>;
|
|
107
108
|
abstract getCommissionCodes(languageCode: string): Promise<DataServiceResponseData>;
|
|
@@ -95,6 +95,7 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
95
95
|
getCountries(): Promise<DataServiceResponseData>;
|
|
96
96
|
getCustomerGroups(): Promise<DataServiceResponseData>;
|
|
97
97
|
commit(): Promise<DataServiceResponseData>;
|
|
98
|
+
rollback(): Promise<DataServiceResponseData>;
|
|
98
99
|
getPrivacySettings(): Promise<DataServiceResponseData>;
|
|
99
100
|
getRelationPrivacySettings(): Promise<DataServiceResponseData>;
|
|
100
101
|
getCommissionCodes(languageCode: string): Promise<DataServiceResponseData>;
|
|
@@ -101,6 +101,9 @@ class TransactionAuth extends ione_api_transaction_1.IoneApiTransaction {
|
|
|
101
101
|
commit() {
|
|
102
102
|
return this._call(data_service_method_enum_1.DataServiceMethod.Commit, {}, backend_service_name_enum_1.BackendServiceName.DatasessionService);
|
|
103
103
|
}
|
|
104
|
+
rollback() {
|
|
105
|
+
return this._call(data_service_method_enum_1.DataServiceMethod.Rollback, {}, backend_service_name_enum_1.BackendServiceName.DatasessionService);
|
|
106
|
+
}
|
|
104
107
|
getPrivacySettings() {
|
|
105
108
|
return this.selectMultiple(module_name_enum_1.ModuleName.MasterData, master_data_object_name_enum_1.MasterDataObjectName.PrivacySettingDTO);
|
|
106
109
|
}
|
|
@@ -97,6 +97,7 @@ export declare class TransactionPublic extends IoneApiTransaction {
|
|
|
97
97
|
getCashRegisters(): Promise<DataServiceResponseData>;
|
|
98
98
|
getCustomerGroups(): Promise<DataServiceResponseData>;
|
|
99
99
|
commit(): Promise<DataServiceResponseData>;
|
|
100
|
+
rollback(): Promise<DataServiceResponseData>;
|
|
100
101
|
getPrivacySettings(): Promise<DataServiceResponseData>;
|
|
101
102
|
getMarketingCodes(): Promise<DataServiceResponseData>;
|
|
102
103
|
getCommissionCodes(languageCode: string): Promise<DataServiceResponseData>;
|
|
@@ -82,6 +82,10 @@ class TransactionPublic extends ione_api_transaction_1.IoneApiTransaction {
|
|
|
82
82
|
const data = { ...this.createServiceRequestData() };
|
|
83
83
|
return this._call(public_service_method_1.PublicServiceMethod.Commit, data);
|
|
84
84
|
}
|
|
85
|
+
async rollback() {
|
|
86
|
+
const data = { ...this.createServiceRequestData() };
|
|
87
|
+
return this._call(public_service_method_1.PublicServiceMethod.Rollback, data);
|
|
88
|
+
}
|
|
85
89
|
async getPrivacySettings() {
|
|
86
90
|
const data = { ...this.createServiceRequestData() };
|
|
87
91
|
return this._call(public_service_method_1.PublicServiceMethod.GetPrivacySettings, data);
|
package/build/transaction.d.ts
CHANGED
|
@@ -112,6 +112,7 @@ export declare class Transaction {
|
|
|
112
112
|
getCountries(): Promise<DataServiceResponseData>;
|
|
113
113
|
getCustomerGroups(): Promise<DataServiceResponseData>;
|
|
114
114
|
commit(): Promise<DataServiceResponseData>;
|
|
115
|
+
rollback(): Promise<DataServiceResponseData>;
|
|
115
116
|
getPrivacySettings(): Promise<DataServiceResponseData>;
|
|
116
117
|
getMarketingCodes(): Promise<DataServiceResponseData>;
|
|
117
118
|
getCommissionCodes(languageCode: string): Promise<DataServiceResponseData>;
|
package/build/transaction.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/transactionapi",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.63",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "grunt clean && tsc",
|
|
6
6
|
"browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@colijnit/ioneconnector": ">=2.1.10",
|
|
31
|
-
"@colijnit/mainapi": ">=1.0.
|
|
31
|
+
"@colijnit/mainapi": ">=1.0.4",
|
|
32
32
|
"@colijnit/relationapi": ">=1.0.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/jest": "^24.0.13",
|
|
36
36
|
"@colijnit/ioneconnector": "2.1.10",
|
|
37
|
-
"@colijnit/mainapi": "1.0.
|
|
37
|
+
"@colijnit/mainapi": "1.0.4",
|
|
38
38
|
"@colijnit/relationapi": "1.0.3",
|
|
39
39
|
"grunt": "^1.0.3",
|
|
40
40
|
"grunt-clean": "^0.4.0",
|