@lcdp/api-react-rest-client 2.14.2-LDS-4747-chargebee.18092152651 → 2.14.2-LDS-4164-add-rff.18092181533
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/package.json +1 -1
- package/rfx/src/apis/ManageRffApi.d.ts +29 -0
- package/{chargebee-hook/src/apis/ChargebeeHookApi.js → rfx/src/apis/ManageRffApi.js} +41 -29
- package/rfx/src/apis/index.d.ts +1 -0
- package/rfx/src/apis/index.js +1 -0
- package/rfx/src/models/RffCreationParameters.d.ts +37 -0
- package/rfx/src/models/RffCreationParameters.js +51 -0
- package/rfx/src/models/index.d.ts +1 -0
- package/rfx/src/models/index.js +1 -0
- package/chargebee-hook/index.d.ts +0 -1
- package/chargebee-hook/index.js +0 -17
- package/chargebee-hook/src/apis/ChargebeeHookApi.d.ts +0 -31
- package/chargebee-hook/src/apis/index.d.ts +0 -1
- package/chargebee-hook/src/apis/index.js +0 -19
- package/chargebee-hook/src/index.d.ts +0 -3
- package/chargebee-hook/src/index.js +0 -21
- package/chargebee-hook/src/models/HookRequest.d.ts +0 -85
- package/chargebee-hook/src/models/HookRequest.js +0 -67
- package/chargebee-hook/src/models/RestError.d.ts +0 -103
- package/chargebee-hook/src/models/RestError.js +0 -113
- package/chargebee-hook/src/models/index.d.ts +0 -2
- package/chargebee-hook/src/models/index.js +0 -20
- package/chargebee-hook/src/runtime.d.ts +0 -190
- package/chargebee-hook/src/runtime.js +0 -598
package/package.json
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of RFx (Request For X)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { RffCreationParameters } from '../models/index';
|
|
14
|
+
export interface CreateRffRequest {
|
|
15
|
+
rffCreationParameters?: RffCreationParameters;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class ManageRffApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Create request for feature
|
|
23
|
+
*/
|
|
24
|
+
createRffRaw(requestParameters: CreateRffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
25
|
+
/**
|
|
26
|
+
* Create request for feature
|
|
27
|
+
*/
|
|
28
|
+
createRff(requestParameters?: CreateRffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
29
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* lcdp-monolith-service
|
|
6
|
-
* This is the REST API of
|
|
6
|
+
* This is the REST API of RFx (Request For X)
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0.0
|
|
9
9
|
* Contact: contact@lecomptoirdespharmacies.fr
|
|
@@ -64,64 +64,76 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.
|
|
67
|
+
exports.ManageRffApi = void 0;
|
|
68
68
|
var runtime = require("../runtime");
|
|
69
69
|
var index_1 = require("../models/index");
|
|
70
70
|
/**
|
|
71
71
|
*
|
|
72
72
|
*/
|
|
73
|
-
var
|
|
74
|
-
__extends(
|
|
75
|
-
function
|
|
73
|
+
var ManageRffApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(ManageRffApi, _super);
|
|
75
|
+
function ManageRffApi() {
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
80
|
-
* Call chargebee hook
|
|
79
|
+
* Create request for feature
|
|
81
80
|
*/
|
|
82
|
-
|
|
81
|
+
ManageRffApi.prototype.createRffRaw = function (requestParameters, initOverrides) {
|
|
83
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
-
var queryParameters, headerParameters, response, response_1;
|
|
85
|
-
return __generator(this, function (
|
|
86
|
-
switch (
|
|
83
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_1;
|
|
84
|
+
return __generator(this, function (_c) {
|
|
85
|
+
switch (_c.label) {
|
|
87
86
|
case 0:
|
|
88
|
-
if (requestParameters['hookRequest'] == null) {
|
|
89
|
-
throw new runtime.RequiredError('hookRequest', 'Required parameter "hookRequest" was null or undefined when calling hook().');
|
|
90
|
-
}
|
|
91
87
|
queryParameters = {};
|
|
92
88
|
headerParameters = {};
|
|
93
89
|
headerParameters['Content-Type'] = 'application/json';
|
|
94
|
-
|
|
90
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
91
|
+
_a = headerParameters;
|
|
92
|
+
_b = "x-api-key";
|
|
93
|
+
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
95
94
|
case 1:
|
|
96
|
-
_a.
|
|
95
|
+
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
96
|
+
_c.label = 2;
|
|
97
|
+
case 2:
|
|
98
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
99
|
+
token = this.configuration.accessToken;
|
|
100
|
+
return [4 /*yield*/, token("bearerAuth", [])];
|
|
101
|
+
case 3:
|
|
102
|
+
tokenString = _c.sent();
|
|
103
|
+
if (tokenString) {
|
|
104
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
105
|
+
}
|
|
106
|
+
_c.label = 4;
|
|
107
|
+
case 4:
|
|
108
|
+
_c.trys.push([4, 6, , 7]);
|
|
97
109
|
return [4 /*yield*/, this.request({
|
|
98
|
-
path: "/
|
|
110
|
+
path: "/rffs",
|
|
99
111
|
method: 'POST',
|
|
100
112
|
headers: headerParameters,
|
|
101
113
|
query: queryParameters,
|
|
102
|
-
body: (0, index_1.
|
|
114
|
+
body: (0, index_1.RffCreationParametersToJSON)(requestParameters['rffCreationParameters']),
|
|
103
115
|
}, initOverrides)];
|
|
104
|
-
case
|
|
105
|
-
response =
|
|
116
|
+
case 5:
|
|
117
|
+
response = _c.sent();
|
|
106
118
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
107
|
-
case
|
|
108
|
-
response_1 =
|
|
119
|
+
case 6:
|
|
120
|
+
response_1 = _c.sent();
|
|
109
121
|
console.debug(response_1);
|
|
110
122
|
throw response_1;
|
|
111
|
-
case
|
|
123
|
+
case 7: return [2 /*return*/];
|
|
112
124
|
}
|
|
113
125
|
});
|
|
114
126
|
});
|
|
115
127
|
};
|
|
116
128
|
/**
|
|
117
|
-
*
|
|
118
|
-
* Call chargebee hook
|
|
129
|
+
* Create request for feature
|
|
119
130
|
*/
|
|
120
|
-
|
|
131
|
+
ManageRffApi.prototype.createRff = function (requestParameters, initOverrides) {
|
|
132
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
121
133
|
return __awaiter(this, void 0, void 0, function () {
|
|
122
134
|
return __generator(this, function (_a) {
|
|
123
135
|
switch (_a.label) {
|
|
124
|
-
case 0: return [4 /*yield*/, this.
|
|
136
|
+
case 0: return [4 /*yield*/, this.createRffRaw(requestParameters, initOverrides)];
|
|
125
137
|
case 1:
|
|
126
138
|
_a.sent();
|
|
127
139
|
return [2 /*return*/];
|
|
@@ -129,6 +141,6 @@ var ChargebeeHookApi = /** @class */ (function (_super) {
|
|
|
129
141
|
});
|
|
130
142
|
});
|
|
131
143
|
};
|
|
132
|
-
return
|
|
144
|
+
return ManageRffApi;
|
|
133
145
|
}(runtime.BaseAPI));
|
|
134
|
-
exports.
|
|
146
|
+
exports.ManageRffApi = ManageRffApi;
|
package/rfx/src/apis/index.d.ts
CHANGED
package/rfx/src/apis/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./ManageRffApi"), exports);
|
|
19
20
|
__exportStar(require("./ManageRfiApi"), exports);
|
|
20
21
|
__exportStar(require("./ManageRfilApi"), exports);
|
|
21
22
|
__exportStar(require("./ManageRfoiApi"), exports);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of RFx (Request For X)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface RffCreationParameters
|
|
16
|
+
*/
|
|
17
|
+
export interface RffCreationParameters {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof RffCreationParameters
|
|
22
|
+
*/
|
|
23
|
+
userId: number;
|
|
24
|
+
/**
|
|
25
|
+
* Name of the feature the user is interested in
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RffCreationParameters
|
|
28
|
+
*/
|
|
29
|
+
featureName: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the RffCreationParameters interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfRffCreationParameters(value: object): value is RffCreationParameters;
|
|
35
|
+
export declare function RffCreationParametersFromJSON(json: any): RffCreationParameters;
|
|
36
|
+
export declare function RffCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): RffCreationParameters;
|
|
37
|
+
export declare function RffCreationParametersToJSON(value?: RffCreationParameters | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of RFx (Request For X)
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.RffCreationParametersToJSON = exports.RffCreationParametersFromJSONTyped = exports.RffCreationParametersFromJSON = exports.instanceOfRffCreationParameters = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the RffCreationParameters interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfRffCreationParameters(value) {
|
|
21
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('featureName' in value) || value['featureName'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
exports.instanceOfRffCreationParameters = instanceOfRffCreationParameters;
|
|
28
|
+
function RffCreationParametersFromJSON(json) {
|
|
29
|
+
return RffCreationParametersFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
exports.RffCreationParametersFromJSON = RffCreationParametersFromJSON;
|
|
32
|
+
function RffCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'userId': json['userId'],
|
|
38
|
+
'featureName': json['featureName'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.RffCreationParametersFromJSONTyped = RffCreationParametersFromJSONTyped;
|
|
42
|
+
function RffCreationParametersToJSON(value) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'userId': value['userId'],
|
|
48
|
+
'featureName': value['featureName'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.RffCreationParametersToJSON = RffCreationParametersToJSON;
|
|
@@ -4,6 +4,7 @@ export * from './PaginatedObject';
|
|
|
4
4
|
export * from './PaginatedRfois';
|
|
5
5
|
export * from './PagingMetadata';
|
|
6
6
|
export * from './RestError';
|
|
7
|
+
export * from './RffCreationParameters';
|
|
7
8
|
export * from './RfiCreationParameters';
|
|
8
9
|
export * from './RfilCreationParameters';
|
|
9
10
|
export * from './RfoCreationParameters';
|
package/rfx/src/models/index.js
CHANGED
|
@@ -22,6 +22,7 @@ __exportStar(require("./PaginatedObject"), exports);
|
|
|
22
22
|
__exportStar(require("./PaginatedRfois"), exports);
|
|
23
23
|
__exportStar(require("./PagingMetadata"), exports);
|
|
24
24
|
__exportStar(require("./RestError"), exports);
|
|
25
|
+
__exportStar(require("./RffCreationParameters"), exports);
|
|
25
26
|
__exportStar(require("./RfiCreationParameters"), exports);
|
|
26
27
|
__exportStar(require("./RfilCreationParameters"), exports);
|
|
27
28
|
__exportStar(require("./RfoCreationParameters"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './src';
|
package/chargebee-hook/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./src"), exports);
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-monolith-service
|
|
3
|
-
* This is the REST API of LCDP Chargebee hook
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import * as runtime from '../runtime';
|
|
13
|
-
import type { HookRequest } from '../models/index';
|
|
14
|
-
export interface HookOperationRequest {
|
|
15
|
-
hookRequest: HookRequest;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
export declare class ChargebeeHookApi extends runtime.BaseAPI {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* Call chargebee hook
|
|
24
|
-
*/
|
|
25
|
-
hookRaw(requestParameters: HookOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* Call chargebee hook
|
|
29
|
-
*/
|
|
30
|
-
hook(requestParameters: HookOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
31
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ChargebeeHookApi';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
/* tslint:disable */
|
|
18
|
-
/* eslint-disable */
|
|
19
|
-
__exportStar(require("./ChargebeeHookApi"), exports);
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
/* tslint:disable */
|
|
18
|
-
/* eslint-disable */
|
|
19
|
-
__exportStar(require("./runtime"), exports);
|
|
20
|
-
__exportStar(require("./apis/index"), exports);
|
|
21
|
-
__exportStar(require("./models/index"), exports);
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-monolith-service
|
|
3
|
-
* This is the REST API of LCDP Chargebee hook
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface HookRequest
|
|
16
|
-
*/
|
|
17
|
-
export interface HookRequest {
|
|
18
|
-
/**
|
|
19
|
-
* API version (e.g., v2)
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof HookRequest
|
|
22
|
-
*/
|
|
23
|
-
api_version?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Event type (e.g., subscription_created, customer_updated)
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof HookRequest
|
|
28
|
-
*/
|
|
29
|
-
event_type: string;
|
|
30
|
-
/**
|
|
31
|
-
* Unique event identifier
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof HookRequest
|
|
34
|
-
*/
|
|
35
|
-
id: string;
|
|
36
|
-
/**
|
|
37
|
-
* Object type (e.g., event)
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof HookRequest
|
|
40
|
-
*/
|
|
41
|
-
object?: string;
|
|
42
|
-
/**
|
|
43
|
-
* Event timestamp (epoch seconds)
|
|
44
|
-
* @type {number}
|
|
45
|
-
* @memberof HookRequest
|
|
46
|
-
*/
|
|
47
|
-
occurred_at?: number;
|
|
48
|
-
/**
|
|
49
|
-
* Event source (e.g., admin_console, api)
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof HookRequest
|
|
52
|
-
*/
|
|
53
|
-
source?: string;
|
|
54
|
-
/**
|
|
55
|
-
* User who triggered the event
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof HookRequest
|
|
58
|
-
*/
|
|
59
|
-
user?: string;
|
|
60
|
-
/**
|
|
61
|
-
* Webhook status (e.g., scheduled)
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof HookRequest
|
|
64
|
-
*/
|
|
65
|
-
webhook_status?: string;
|
|
66
|
-
/**
|
|
67
|
-
* Event-specific content containing customer, subscription, etc.
|
|
68
|
-
* @type {object}
|
|
69
|
-
* @memberof HookRequest
|
|
70
|
-
*/
|
|
71
|
-
content?: object;
|
|
72
|
-
/**
|
|
73
|
-
* List of webhooks
|
|
74
|
-
* @type {Array<object>}
|
|
75
|
-
* @memberof HookRequest
|
|
76
|
-
*/
|
|
77
|
-
webhooks?: Array<object>;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Check if a given object implements the HookRequest interface.
|
|
81
|
-
*/
|
|
82
|
-
export declare function instanceOfHookRequest(value: object): value is HookRequest;
|
|
83
|
-
export declare function HookRequestFromJSON(json: any): HookRequest;
|
|
84
|
-
export declare function HookRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): HookRequest;
|
|
85
|
-
export declare function HookRequestToJSON(value?: HookRequest | null): any;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* lcdp-monolith-service
|
|
6
|
-
* This is the REST API of LCDP Chargebee hook
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.HookRequestToJSON = exports.HookRequestFromJSONTyped = exports.HookRequestFromJSON = exports.instanceOfHookRequest = void 0;
|
|
17
|
-
/**
|
|
18
|
-
* Check if a given object implements the HookRequest interface.
|
|
19
|
-
*/
|
|
20
|
-
function instanceOfHookRequest(value) {
|
|
21
|
-
if (!('event_type' in value) || value['event_type'] === undefined)
|
|
22
|
-
return false;
|
|
23
|
-
if (!('id' in value) || value['id'] === undefined)
|
|
24
|
-
return false;
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
exports.instanceOfHookRequest = instanceOfHookRequest;
|
|
28
|
-
function HookRequestFromJSON(json) {
|
|
29
|
-
return HookRequestFromJSONTyped(json, false);
|
|
30
|
-
}
|
|
31
|
-
exports.HookRequestFromJSON = HookRequestFromJSON;
|
|
32
|
-
function HookRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
-
if (json == null) {
|
|
34
|
-
return json;
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
'api_version': json['api_version'],
|
|
38
|
-
'event_type': json['event_type'],
|
|
39
|
-
'id': json['id'],
|
|
40
|
-
'object': json['object'],
|
|
41
|
-
'occurred_at': json['occurred_at'],
|
|
42
|
-
'source': json['source'],
|
|
43
|
-
'user': json['user'],
|
|
44
|
-
'webhook_status': json['webhook_status'],
|
|
45
|
-
'content': json['content'],
|
|
46
|
-
'webhooks': json['webhooks'],
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
exports.HookRequestFromJSONTyped = HookRequestFromJSONTyped;
|
|
50
|
-
function HookRequestToJSON(value) {
|
|
51
|
-
if (value == null) {
|
|
52
|
-
return value;
|
|
53
|
-
}
|
|
54
|
-
return {
|
|
55
|
-
'api_version': value['api_version'],
|
|
56
|
-
'event_type': value['event_type'],
|
|
57
|
-
'id': value['id'],
|
|
58
|
-
'object': value['object'],
|
|
59
|
-
'occurred_at': value['occurred_at'],
|
|
60
|
-
'source': value['source'],
|
|
61
|
-
'user': value['user'],
|
|
62
|
-
'webhook_status': value['webhook_status'],
|
|
63
|
-
'content': value['content'],
|
|
64
|
-
'webhooks': value['webhooks'],
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
exports.HookRequestToJSON = HookRequestToJSON;
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-monolith-service
|
|
3
|
-
* This is the REST API of LCDP Chargebee hook
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface RestError
|
|
16
|
-
*/
|
|
17
|
-
export interface RestError {
|
|
18
|
-
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature * `CODE023` - Invalid Sca Enrollment status * `CODE024` - Image missing * `CODE025` - Invalid International Bank Account Number
|
|
20
|
-
*
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof RestError
|
|
23
|
-
*/
|
|
24
|
-
code: RestErrorCodeEnum;
|
|
25
|
-
/**
|
|
26
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature * `MESSAGE023` - Invalid Sca Enrollment status * `MESSAGE024` - Image missing * `MESSAGE024` - Invalid International Bank Account Number
|
|
27
|
-
*
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof RestError
|
|
30
|
-
*/
|
|
31
|
-
message: RestErrorMessageEnum;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* @export
|
|
35
|
-
*/
|
|
36
|
-
export declare const RestErrorCodeEnum: {
|
|
37
|
-
readonly CODE000: "CODE000";
|
|
38
|
-
readonly CODE001: "CODE001";
|
|
39
|
-
readonly CODE002: "CODE002";
|
|
40
|
-
readonly CODE003: "CODE003";
|
|
41
|
-
readonly CODE004: "CODE004";
|
|
42
|
-
readonly CODE005: "CODE005";
|
|
43
|
-
readonly CODE006: "CODE006";
|
|
44
|
-
readonly CODE007: "CODE007";
|
|
45
|
-
readonly CODE008: "CODE008";
|
|
46
|
-
readonly CODE009: "CODE009";
|
|
47
|
-
readonly CODE010: "CODE010";
|
|
48
|
-
readonly CODE011: "CODE011";
|
|
49
|
-
readonly CODE012: "CODE012";
|
|
50
|
-
readonly CODE013: "CODE013";
|
|
51
|
-
readonly CODE014: "CODE014";
|
|
52
|
-
readonly CODE015: "CODE015";
|
|
53
|
-
readonly CODE016: "CODE016";
|
|
54
|
-
readonly CODE017: "CODE017";
|
|
55
|
-
readonly CODE018: "CODE018";
|
|
56
|
-
readonly CODE019: "CODE019";
|
|
57
|
-
readonly CODE020: "CODE020";
|
|
58
|
-
readonly CODE021: "CODE021";
|
|
59
|
-
readonly CODE022: "CODE022";
|
|
60
|
-
readonly CODE023: "CODE023";
|
|
61
|
-
readonly CODE024: "CODE024";
|
|
62
|
-
readonly CODE025: "CODE025";
|
|
63
|
-
};
|
|
64
|
-
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
65
|
-
/**
|
|
66
|
-
* @export
|
|
67
|
-
*/
|
|
68
|
-
export declare const RestErrorMessageEnum: {
|
|
69
|
-
readonly MESSAGE000: "Using outdated resource";
|
|
70
|
-
readonly MESSAGE001: "Login failed";
|
|
71
|
-
readonly MESSAGE002: "Cannot renew token";
|
|
72
|
-
readonly MESSAGE003: "Invalid User CGV";
|
|
73
|
-
readonly MESSAGE004: "Resource already exists";
|
|
74
|
-
readonly MESSAGE005: "User account is disabled";
|
|
75
|
-
readonly MESSAGE006: "Invalid schedule";
|
|
76
|
-
readonly MESSAGE007: "Wrong Address according CHRONOPOST";
|
|
77
|
-
readonly MESSAGE008: "Invalid Mangopay Mandate";
|
|
78
|
-
readonly MESSAGE009: "Invalid Status";
|
|
79
|
-
readonly MESSAGE010: "Image dimension exceeded";
|
|
80
|
-
readonly MESSAGE011: "Empty User Address";
|
|
81
|
-
readonly MESSAGE012: "Empty User Legal Name";
|
|
82
|
-
readonly MESSAGE013: "Invalid quantities";
|
|
83
|
-
readonly MESSAGE014: "Invalid Meta-Order";
|
|
84
|
-
readonly MESSAGE015: "Can not release quantity greater than claimed";
|
|
85
|
-
readonly MESSAGE016: "Can not release a negative quantity of items";
|
|
86
|
-
readonly MESSAGE017: "Batch is forbidden for sale";
|
|
87
|
-
readonly MESSAGE018: "Trial already used";
|
|
88
|
-
readonly MESSAGE019: "Unable to generate session from disposableToken for admin users";
|
|
89
|
-
readonly MESSAGE020: "ETag do not match";
|
|
90
|
-
readonly MESSAGE021: "Missing informations for Offisante subscription";
|
|
91
|
-
readonly MESSAGE022: "Disabled feature";
|
|
92
|
-
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
93
|
-
readonly MESSAGE024: "Image missing";
|
|
94
|
-
readonly MESSAGE025: "Invalid International Bank Account Number";
|
|
95
|
-
};
|
|
96
|
-
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
97
|
-
/**
|
|
98
|
-
* Check if a given object implements the RestError interface.
|
|
99
|
-
*/
|
|
100
|
-
export declare function instanceOfRestError(value: object): value is RestError;
|
|
101
|
-
export declare function RestErrorFromJSON(json: any): RestError;
|
|
102
|
-
export declare function RestErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): RestError;
|
|
103
|
-
export declare function RestErrorToJSON(value?: RestError | null): any;
|