@or-sdk/billing 31.9.2 → 31.9.3-beta.13183.0
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/cjs/api/customerAccountActionsApi/index.js +14 -0
- package/dist/cjs/api/customerAccountActionsApi/index.js.map +1 -1
- package/dist/esm/api/customerAccountActionsApi/index.js +9 -0
- package/dist/esm/api/customerAccountActionsApi/index.js.map +1 -1
- package/dist/types/api/customerAccountActionsApi/index.d.ts +2 -1
- package/dist/types/api/customerAccountActionsApi/index.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/api/customerAccountActionsApi/index.ts +13 -1
|
@@ -73,6 +73,20 @@ var CustomerAccountActionsApi = (function (_super) {
|
|
|
73
73
|
});
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
|
+
CustomerAccountActionsApi.prototype.createDeactivationJobs = function (data) {
|
|
77
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
78
|
+
return __generator(this, function (_a) {
|
|
79
|
+
switch (_a.label) {
|
|
80
|
+
case 0: return [4, this.apiCall({
|
|
81
|
+
method: 'POST',
|
|
82
|
+
route: "".concat(this.apiBasePath, "/deactivation-jobs"),
|
|
83
|
+
data: data,
|
|
84
|
+
})];
|
|
85
|
+
case 1: return [2, _a.sent()];
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
};
|
|
76
90
|
return CustomerAccountActionsApi;
|
|
77
91
|
}(baseApi_1.BaseApi));
|
|
78
92
|
exports.default = CustomerAccountActionsApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/customerAccountActionsApi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/customerAccountActionsApi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,sCAAqC;AAErC;IAAuD,6CAAO;IAA9D;;QACmB,iBAAW,GAAG,0BAA0B,CAAC;;IAiB5D,CAAC;IAfc,8CAAU,GAAvB,UAAwB,IAAqC;;;;4BACpD,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,MAAM;4BACd,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,UAAO;4BACjC,IAAI,MAAA;yBACL,CAAC,EAAA;4BAJF,WAAO,SAIL,EAAC;;;;KACJ;IAEY,0DAAsB,GAAnC,UAAoC,IAAsC;;;;4BACjE,WAAM,IAAI,CAAC,OAAO,CAAC;4BACxB,MAAM,EAAE,MAAM;4BACd,KAAK,EAAE,UAAG,IAAI,CAAC,WAAW,uBAAoB;4BAC9C,IAAI,MAAA;yBACL,CAAC,EAAA;4BAJF,WAAO,SAIL,EAAC;;;;KACJ;IACH,gCAAC;AAAD,CAAC,AAlBD,CAAuD,iBAAO,GAkB7D"}
|
|
@@ -22,5 +22,14 @@ export default class CustomerAccountActionsApi extends BaseApi {
|
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
+
createDeactivationJobs(data) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
return yield this.apiCall({
|
|
28
|
+
method: 'POST',
|
|
29
|
+
route: `${this.apiBasePath}/deactivation-jobs`,
|
|
30
|
+
data,
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
}
|
|
25
34
|
}
|
|
26
35
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/customerAccountActionsApi/index.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/customerAccountActionsApi/index.ts"],"names":[],"mappings":";;;;;;;;;AAMA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,MAAM,CAAC,OAAO,OAAO,yBAA0B,SAAQ,OAAO;IAA9D;;QACmB,gBAAW,GAAG,0BAA0B,CAAC;IAiB5D,CAAC;IAfc,UAAU,CAAC,IAAqC;;YAC3D,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;gBACxB,MAAM,EAAE,MAAM;gBACd,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,OAAO;gBACjC,IAAI;aACL,CAAC,CAAC;QACL,CAAC;KAAA;IAEY,sBAAsB,CAAC,IAAsC;;YACxE,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC;gBACxB,MAAM,EAAE,MAAM;gBACd,KAAK,EAAE,GAAG,IAAI,CAAC,WAAW,oBAAoB;gBAC9C,IAAI;aACL,CAAC,CAAC;QACL,CAAC;KAAA;CACF"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { CreateCustomerAccountActionsDto, CustomerAccountActionJobResultDto } from '@onereach/billing-dto';
|
|
1
|
+
import { CreateAccountDeactivationJobsDto, CreateCustomerAccountActionsDto, CustomerAccountActionJobResultDto } from '@onereach/billing-dto';
|
|
2
2
|
import { BaseApi } from '../baseApi';
|
|
3
3
|
export default class CustomerAccountActionsApi extends BaseApi {
|
|
4
4
|
private readonly apiBasePath;
|
|
5
5
|
createJobs(data: CreateCustomerAccountActionsDto): Promise<CustomerAccountActionJobResultDto>;
|
|
6
|
+
createDeactivationJobs(data: CreateAccountDeactivationJobsDto): Promise<CustomerAccountActionJobResultDto>;
|
|
6
7
|
}
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/customerAccountActionsApi/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/api/customerAccountActionsApi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gCAAgC,EAChC,+BAA+B,EAC/B,iCAAiC,EAClC,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,MAAM,CAAC,OAAO,OAAO,yBAA0B,SAAQ,OAAO;IAC5D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA8B;IAE7C,UAAU,CAAC,IAAI,EAAE,+BAA+B,GAAG,OAAO,CAAC,iCAAiC,CAAC;IAQ7F,sBAAsB,CAAC,IAAI,EAAE,gCAAgC,GAAG,OAAO,CAAC,iCAAiC,CAAC;CAOxH"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@or-sdk/billing",
|
|
3
|
-
"version": "31.9.
|
|
3
|
+
"version": "31.9.3-beta.13183.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/types/index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@onereach/billing-dto": "^31.9.
|
|
10
|
-
"@onereach/billing-shared": "^31.9.
|
|
9
|
+
"@onereach/billing-dto": "^31.9.3-beta.13183.0",
|
|
10
|
+
"@onereach/billing-shared": "^31.9.3-beta.13183.0",
|
|
11
11
|
"@or-sdk/base": "^0.42.4",
|
|
12
12
|
"@or-sdk/discovery": "1.10.6",
|
|
13
13
|
"@types/qs": "6.14.0",
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
CreateAccountDeactivationJobsDto,
|
|
3
|
+
CreateCustomerAccountActionsDto,
|
|
4
|
+
CustomerAccountActionJobResultDto,
|
|
5
|
+
} from '@onereach/billing-dto';
|
|
2
6
|
|
|
3
7
|
import { BaseApi } from '../baseApi';
|
|
4
8
|
|
|
@@ -12,4 +16,12 @@ export default class CustomerAccountActionsApi extends BaseApi {
|
|
|
12
16
|
data,
|
|
13
17
|
});
|
|
14
18
|
}
|
|
19
|
+
|
|
20
|
+
public async createDeactivationJobs(data: CreateAccountDeactivationJobsDto): Promise<CustomerAccountActionJobResultDto> {
|
|
21
|
+
return await this.apiCall({
|
|
22
|
+
method: 'POST',
|
|
23
|
+
route: `${this.apiBasePath}/deactivation-jobs`,
|
|
24
|
+
data,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
15
27
|
}
|