@lcdp/api-react-rest-client 2.14.2 → 2.14.3-LDS-4938-monolith-repousser-la-fin-du-tr.18133250966
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/chargebee-hook/index.d.ts +1 -0
- package/chargebee-hook/index.js +17 -0
- package/chargebee-hook/src/apis/ChargebeeHookApi.d.ts +31 -0
- package/chargebee-hook/src/apis/ChargebeeHookApi.js +134 -0
- package/chargebee-hook/src/apis/index.d.ts +1 -0
- package/chargebee-hook/src/apis/index.js +19 -0
- package/chargebee-hook/src/index.d.ts +3 -0
- package/chargebee-hook/src/index.js +21 -0
- package/chargebee-hook/src/models/HookRequest.d.ts +85 -0
- package/chargebee-hook/src/models/HookRequest.js +67 -0
- package/chargebee-hook/src/models/RestError.d.ts +103 -0
- package/chargebee-hook/src/models/RestError.js +113 -0
- package/chargebee-hook/src/models/index.d.ts +2 -0
- package/chargebee-hook/src/models/index.js +20 -0
- package/chargebee-hook/src/runtime.d.ts +190 -0
- package/chargebee-hook/src/runtime.js +598 -0
- package/package.json +1 -1
- package/rfx/src/apis/ManageRffApi.d.ts +29 -0
- package/rfx/src/apis/ManageRffApi.js +146 -0
- 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/third-party/src/models/ThirdPartyLinkCreationParameters.d.ts +5 -2
- package/third-party/src/models/ThirdPartyLinkCreationParameters.js +5 -2
- package/user/src/models/OffisanteStatus.d.ts +3 -1
- package/user/src/models/OffisanteStatus.js +4 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src';
|
|
@@ -0,0 +1,17 @@
|
|
|
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);
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
41
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (_) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.ChargebeeHookApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var ChargebeeHookApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(ChargebeeHookApi, _super);
|
|
75
|
+
function ChargebeeHookApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* Call chargebee hook
|
|
81
|
+
*/
|
|
82
|
+
ChargebeeHookApi.prototype.hookRaw = function (requestParameters, initOverrides) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var queryParameters, headerParameters, response, response_1;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
switch (_a.label) {
|
|
87
|
+
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
|
+
queryParameters = {};
|
|
92
|
+
headerParameters = {};
|
|
93
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
94
|
+
_a.label = 1;
|
|
95
|
+
case 1:
|
|
96
|
+
_a.trys.push([1, 3, , 4]);
|
|
97
|
+
return [4 /*yield*/, this.request({
|
|
98
|
+
path: "/chargebee-hooks",
|
|
99
|
+
method: 'POST',
|
|
100
|
+
headers: headerParameters,
|
|
101
|
+
query: queryParameters,
|
|
102
|
+
body: (0, index_1.HookRequestToJSON)(requestParameters['hookRequest']),
|
|
103
|
+
}, initOverrides)];
|
|
104
|
+
case 2:
|
|
105
|
+
response = _a.sent();
|
|
106
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
107
|
+
case 3:
|
|
108
|
+
response_1 = _a.sent();
|
|
109
|
+
console.debug(response_1);
|
|
110
|
+
throw response_1;
|
|
111
|
+
case 4: return [2 /*return*/];
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* Call chargebee hook
|
|
119
|
+
*/
|
|
120
|
+
ChargebeeHookApi.prototype.hook = function (requestParameters, initOverrides) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
122
|
+
return __generator(this, function (_a) {
|
|
123
|
+
switch (_a.label) {
|
|
124
|
+
case 0: return [4 /*yield*/, this.hookRaw(requestParameters, initOverrides)];
|
|
125
|
+
case 1:
|
|
126
|
+
_a.sent();
|
|
127
|
+
return [2 /*return*/];
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
return ChargebeeHookApi;
|
|
133
|
+
}(runtime.BaseAPI));
|
|
134
|
+
exports.ChargebeeHookApi = ChargebeeHookApi;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ChargebeeHookApi';
|
|
@@ -0,0 +1,19 @@
|
|
|
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);
|
|
@@ -0,0 +1,21 @@
|
|
|
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);
|
|
@@ -0,0 +1,85 @@
|
|
|
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;
|
|
@@ -0,0 +1,67 @@
|
|
|
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;
|
|
@@ -0,0 +1,103 @@
|
|
|
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;
|
|
@@ -0,0 +1,113 @@
|
|
|
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.RestErrorToJSON = exports.RestErrorFromJSONTyped = exports.RestErrorFromJSON = exports.instanceOfRestError = exports.RestErrorMessageEnum = exports.RestErrorCodeEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
exports.RestErrorCodeEnum = {
|
|
21
|
+
CODE000: 'CODE000',
|
|
22
|
+
CODE001: 'CODE001',
|
|
23
|
+
CODE002: 'CODE002',
|
|
24
|
+
CODE003: 'CODE003',
|
|
25
|
+
CODE004: 'CODE004',
|
|
26
|
+
CODE005: 'CODE005',
|
|
27
|
+
CODE006: 'CODE006',
|
|
28
|
+
CODE007: 'CODE007',
|
|
29
|
+
CODE008: 'CODE008',
|
|
30
|
+
CODE009: 'CODE009',
|
|
31
|
+
CODE010: 'CODE010',
|
|
32
|
+
CODE011: 'CODE011',
|
|
33
|
+
CODE012: 'CODE012',
|
|
34
|
+
CODE013: 'CODE013',
|
|
35
|
+
CODE014: 'CODE014',
|
|
36
|
+
CODE015: 'CODE015',
|
|
37
|
+
CODE016: 'CODE016',
|
|
38
|
+
CODE017: 'CODE017',
|
|
39
|
+
CODE018: 'CODE018',
|
|
40
|
+
CODE019: 'CODE019',
|
|
41
|
+
CODE020: 'CODE020',
|
|
42
|
+
CODE021: 'CODE021',
|
|
43
|
+
CODE022: 'CODE022',
|
|
44
|
+
CODE023: 'CODE023',
|
|
45
|
+
CODE024: 'CODE024',
|
|
46
|
+
CODE025: 'CODE025'
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* @export
|
|
50
|
+
*/
|
|
51
|
+
exports.RestErrorMessageEnum = {
|
|
52
|
+
MESSAGE000: 'Using outdated resource',
|
|
53
|
+
MESSAGE001: 'Login failed',
|
|
54
|
+
MESSAGE002: 'Cannot renew token',
|
|
55
|
+
MESSAGE003: 'Invalid User CGV',
|
|
56
|
+
MESSAGE004: 'Resource already exists',
|
|
57
|
+
MESSAGE005: 'User account is disabled',
|
|
58
|
+
MESSAGE006: 'Invalid schedule',
|
|
59
|
+
MESSAGE007: 'Wrong Address according CHRONOPOST',
|
|
60
|
+
MESSAGE008: 'Invalid Mangopay Mandate',
|
|
61
|
+
MESSAGE009: 'Invalid Status',
|
|
62
|
+
MESSAGE010: 'Image dimension exceeded',
|
|
63
|
+
MESSAGE011: 'Empty User Address',
|
|
64
|
+
MESSAGE012: 'Empty User Legal Name',
|
|
65
|
+
MESSAGE013: 'Invalid quantities',
|
|
66
|
+
MESSAGE014: 'Invalid Meta-Order',
|
|
67
|
+
MESSAGE015: 'Can not release quantity greater than claimed',
|
|
68
|
+
MESSAGE016: 'Can not release a negative quantity of items',
|
|
69
|
+
MESSAGE017: 'Batch is forbidden for sale',
|
|
70
|
+
MESSAGE018: 'Trial already used',
|
|
71
|
+
MESSAGE019: 'Unable to generate session from disposableToken for admin users',
|
|
72
|
+
MESSAGE020: 'ETag do not match',
|
|
73
|
+
MESSAGE021: 'Missing informations for Offisante subscription',
|
|
74
|
+
MESSAGE022: 'Disabled feature',
|
|
75
|
+
MESSAGE023: 'Invalid Sca Enrollment status',
|
|
76
|
+
MESSAGE024: 'Image missing',
|
|
77
|
+
MESSAGE025: 'Invalid International Bank Account Number'
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the RestError interface.
|
|
81
|
+
*/
|
|
82
|
+
function instanceOfRestError(value) {
|
|
83
|
+
if (!('code' in value) || value['code'] === undefined)
|
|
84
|
+
return false;
|
|
85
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
86
|
+
return false;
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
exports.instanceOfRestError = instanceOfRestError;
|
|
90
|
+
function RestErrorFromJSON(json) {
|
|
91
|
+
return RestErrorFromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
exports.RestErrorFromJSON = RestErrorFromJSON;
|
|
94
|
+
function RestErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
'code': json['code'],
|
|
100
|
+
'message': json['message'],
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
exports.RestErrorFromJSONTyped = RestErrorFromJSONTyped;
|
|
104
|
+
function RestErrorToJSON(value) {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
return {
|
|
109
|
+
'code': value['code'],
|
|
110
|
+
'message': value['message'],
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
exports.RestErrorToJSON = RestErrorToJSON;
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./HookRequest"), exports);
|
|
20
|
+
__exportStar(require("./RestError"), exports);
|