@p7m/billing-backend 0.1.1

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.
@@ -0,0 +1,164 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
+ * Billing Backend
19
+ * # API for managing billing of customers The purpose of this API is to manage customers, articles, recurring billing, and payments. The caller has to be authenticated with the system and provide a JWT token in the Authorization header of the HTTP request. When using the API you typically get this token by authenticating first with OAuth 2.0. When you are trying this API using the Swagger interface, you need to click the `Authorize` button and then again the Authorize button in the pop-up that gets opened.
20
+ *
21
+ * The version of the OpenAPI document: 0.1.1
22
+ * Contact: tech@p7m.de
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
29
+ /**
30
+ * The NewInvoice model module.
31
+ * @module model/NewInvoice
32
+ * @version 0.1.1
33
+ */
34
+ var NewInvoice = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>NewInvoice</code>.
37
+ * @alias module:model/NewInvoice
38
+ * @param numberGroup {String}
39
+ * @param customerId {String}
40
+ * @param currencyId {String}
41
+ */
42
+ function NewInvoice(numberGroup, customerId, currencyId) {
43
+ _classCallCheck(this, NewInvoice);
44
+ NewInvoice.initialize(this, numberGroup, customerId, currencyId);
45
+ }
46
+
47
+ /**
48
+ * Initializes the fields of this object.
49
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
50
+ * Only for internal use.
51
+ */
52
+ return _createClass(NewInvoice, null, [{
53
+ key: "initialize",
54
+ value: function initialize(obj, numberGroup, customerId, currencyId) {
55
+ obj['numberGroup'] = numberGroup;
56
+ obj['customerId'] = customerId;
57
+ obj['currencyId'] = currencyId;
58
+ }
59
+
60
+ /**
61
+ * Constructs a <code>NewInvoice</code> from a plain JavaScript object, optionally creating a new instance.
62
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
63
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
64
+ * @param {module:model/NewInvoice} obj Optional instance to populate.
65
+ * @return {module:model/NewInvoice} The populated <code>NewInvoice</code> instance.
66
+ */
67
+ }, {
68
+ key: "constructFromObject",
69
+ value: function constructFromObject(data, obj) {
70
+ if (data) {
71
+ obj = obj || new NewInvoice();
72
+ if (data.hasOwnProperty('numberGroup')) {
73
+ obj['numberGroup'] = _ApiClient["default"].convertToType(data['numberGroup'], 'String');
74
+ }
75
+ if (data.hasOwnProperty('invoiceNumber')) {
76
+ obj['invoiceNumber'] = _ApiClient["default"].convertToType(data['invoiceNumber'], 'Number');
77
+ }
78
+ if (data.hasOwnProperty('invoiceDate')) {
79
+ obj['invoiceDate'] = _ApiClient["default"].convertToType(data['invoiceDate'], 'Date');
80
+ }
81
+ if (data.hasOwnProperty('dueDate')) {
82
+ obj['dueDate'] = _ApiClient["default"].convertToType(data['dueDate'], 'Date');
83
+ }
84
+ if (data.hasOwnProperty('customerId')) {
85
+ obj['customerId'] = _ApiClient["default"].convertToType(data['customerId'], 'String');
86
+ }
87
+ if (data.hasOwnProperty('currencyId')) {
88
+ obj['currencyId'] = _ApiClient["default"].convertToType(data['currencyId'], 'String');
89
+ }
90
+ }
91
+ return obj;
92
+ }
93
+
94
+ /**
95
+ * Validates the JSON data with respect to <code>NewInvoice</code>.
96
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
97
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>NewInvoice</code>.
98
+ */
99
+ }, {
100
+ key: "validateJSON",
101
+ value: function validateJSON(data) {
102
+ // check to make sure all required properties are present in the JSON string
103
+ var _iterator = _createForOfIteratorHelper(NewInvoice.RequiredProperties),
104
+ _step;
105
+ try {
106
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
107
+ var property = _step.value;
108
+ if (!data.hasOwnProperty(property)) {
109
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
110
+ }
111
+ }
112
+ // ensure the json data is a string
113
+ } catch (err) {
114
+ _iterator.e(err);
115
+ } finally {
116
+ _iterator.f();
117
+ }
118
+ if (data['numberGroup'] && !(typeof data['numberGroup'] === 'string' || data['numberGroup'] instanceof String)) {
119
+ throw new Error("Expected the field `numberGroup` to be a primitive type in the JSON string but got " + data['numberGroup']);
120
+ }
121
+ // ensure the json data is a string
122
+ if (data['customerId'] && !(typeof data['customerId'] === 'string' || data['customerId'] instanceof String)) {
123
+ throw new Error("Expected the field `customerId` to be a primitive type in the JSON string but got " + data['customerId']);
124
+ }
125
+ // ensure the json data is a string
126
+ if (data['currencyId'] && !(typeof data['currencyId'] === 'string' || data['currencyId'] instanceof String)) {
127
+ throw new Error("Expected the field `currencyId` to be a primitive type in the JSON string but got " + data['currencyId']);
128
+ }
129
+ return true;
130
+ }
131
+ }]);
132
+ }();
133
+ NewInvoice.RequiredProperties = ["numberGroup", "customerId", "currencyId"];
134
+
135
+ /**
136
+ * @member {String} numberGroup
137
+ */
138
+ NewInvoice.prototype['numberGroup'] = undefined;
139
+
140
+ /**
141
+ * @member {Number} invoiceNumber
142
+ */
143
+ NewInvoice.prototype['invoiceNumber'] = undefined;
144
+
145
+ /**
146
+ * @member {Date} invoiceDate
147
+ */
148
+ NewInvoice.prototype['invoiceDate'] = undefined;
149
+
150
+ /**
151
+ * @member {Date} dueDate
152
+ */
153
+ NewInvoice.prototype['dueDate'] = undefined;
154
+
155
+ /**
156
+ * @member {String} customerId
157
+ */
158
+ NewInvoice.prototype['customerId'] = undefined;
159
+
160
+ /**
161
+ * @member {String} currencyId
162
+ */
163
+ NewInvoice.prototype['currencyId'] = undefined;
164
+ var _default = exports["default"] = NewInvoice;
@@ -0,0 +1,196 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
11
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
+ * Billing Backend
19
+ * # API for managing billing of customers The purpose of this API is to manage customers, articles, recurring billing, and payments. The caller has to be authenticated with the system and provide a JWT token in the Authorization header of the HTTP request. When using the API you typically get this token by authenticating first with OAuth 2.0. When you are trying this API using the Swagger interface, you need to click the `Authorize` button and then again the Authorize button in the pop-up that gets opened.
20
+ *
21
+ * The version of the OpenAPI document: 0.1.1
22
+ * Contact: tech@p7m.de
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
29
+ /**
30
+ * The NewInvoicePosition model module.
31
+ * @module model/NewInvoicePosition
32
+ * @version 0.1.1
33
+ */
34
+ var NewInvoicePosition = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>NewInvoicePosition</code>.
37
+ * @alias module:model/NewInvoicePosition
38
+ * @param positionNumber {Number}
39
+ * @param productCode {String}
40
+ * @param description {Array.<String>}
41
+ * @param quantityThousandth {Number}
42
+ * @param unitPrice {Number}
43
+ * @param allPrice {Number}
44
+ * @param vatRatePerMil {Number}
45
+ * @param serviceStart {Date}
46
+ * @param serviceEnd {Date}
47
+ */
48
+ function NewInvoicePosition(positionNumber, productCode, description, quantityThousandth, unitPrice, allPrice, vatRatePerMil, serviceStart, serviceEnd) {
49
+ _classCallCheck(this, NewInvoicePosition);
50
+ NewInvoicePosition.initialize(this, positionNumber, productCode, description, quantityThousandth, unitPrice, allPrice, vatRatePerMil, serviceStart, serviceEnd);
51
+ }
52
+
53
+ /**
54
+ * Initializes the fields of this object.
55
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
56
+ * Only for internal use.
57
+ */
58
+ return _createClass(NewInvoicePosition, null, [{
59
+ key: "initialize",
60
+ value: function initialize(obj, positionNumber, productCode, description, quantityThousandth, unitPrice, allPrice, vatRatePerMil, serviceStart, serviceEnd) {
61
+ obj['positionNumber'] = positionNumber;
62
+ obj['productCode'] = productCode;
63
+ obj['description'] = description;
64
+ obj['quantityThousandth'] = quantityThousandth;
65
+ obj['unitPrice'] = unitPrice;
66
+ obj['allPrice'] = allPrice;
67
+ obj['vatRatePerMil'] = vatRatePerMil;
68
+ obj['serviceStart'] = serviceStart;
69
+ obj['serviceEnd'] = serviceEnd;
70
+ }
71
+
72
+ /**
73
+ * Constructs a <code>NewInvoicePosition</code> from a plain JavaScript object, optionally creating a new instance.
74
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
75
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
76
+ * @param {module:model/NewInvoicePosition} obj Optional instance to populate.
77
+ * @return {module:model/NewInvoicePosition} The populated <code>NewInvoicePosition</code> instance.
78
+ */
79
+ }, {
80
+ key: "constructFromObject",
81
+ value: function constructFromObject(data, obj) {
82
+ if (data) {
83
+ obj = obj || new NewInvoicePosition();
84
+ if (data.hasOwnProperty('positionNumber')) {
85
+ obj['positionNumber'] = _ApiClient["default"].convertToType(data['positionNumber'], 'Number');
86
+ }
87
+ if (data.hasOwnProperty('productCode')) {
88
+ obj['productCode'] = _ApiClient["default"].convertToType(data['productCode'], 'String');
89
+ }
90
+ if (data.hasOwnProperty('description')) {
91
+ obj['description'] = _ApiClient["default"].convertToType(data['description'], ['String']);
92
+ }
93
+ if (data.hasOwnProperty('quantityThousandth')) {
94
+ obj['quantityThousandth'] = _ApiClient["default"].convertToType(data['quantityThousandth'], 'Number');
95
+ }
96
+ if (data.hasOwnProperty('unitPrice')) {
97
+ obj['unitPrice'] = _ApiClient["default"].convertToType(data['unitPrice'], 'Number');
98
+ }
99
+ if (data.hasOwnProperty('allPrice')) {
100
+ obj['allPrice'] = _ApiClient["default"].convertToType(data['allPrice'], 'Number');
101
+ }
102
+ if (data.hasOwnProperty('vatRatePerMil')) {
103
+ obj['vatRatePerMil'] = _ApiClient["default"].convertToType(data['vatRatePerMil'], 'Number');
104
+ }
105
+ if (data.hasOwnProperty('serviceStart')) {
106
+ obj['serviceStart'] = _ApiClient["default"].convertToType(data['serviceStart'], 'Date');
107
+ }
108
+ if (data.hasOwnProperty('serviceEnd')) {
109
+ obj['serviceEnd'] = _ApiClient["default"].convertToType(data['serviceEnd'], 'Date');
110
+ }
111
+ }
112
+ return obj;
113
+ }
114
+
115
+ /**
116
+ * Validates the JSON data with respect to <code>NewInvoicePosition</code>.
117
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
118
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>NewInvoicePosition</code>.
119
+ */
120
+ }, {
121
+ key: "validateJSON",
122
+ value: function validateJSON(data) {
123
+ // check to make sure all required properties are present in the JSON string
124
+ var _iterator = _createForOfIteratorHelper(NewInvoicePosition.RequiredProperties),
125
+ _step;
126
+ try {
127
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
128
+ var property = _step.value;
129
+ if (!data.hasOwnProperty(property)) {
130
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
131
+ }
132
+ }
133
+ // ensure the json data is a string
134
+ } catch (err) {
135
+ _iterator.e(err);
136
+ } finally {
137
+ _iterator.f();
138
+ }
139
+ if (data['productCode'] && !(typeof data['productCode'] === 'string' || data['productCode'] instanceof String)) {
140
+ throw new Error("Expected the field `productCode` to be a primitive type in the JSON string but got " + data['productCode']);
141
+ }
142
+ // ensure the json data is an array
143
+ if (!Array.isArray(data['description'])) {
144
+ throw new Error("Expected the field `description` to be an array in the JSON data but got " + data['description']);
145
+ }
146
+ return true;
147
+ }
148
+ }]);
149
+ }();
150
+ NewInvoicePosition.RequiredProperties = ["positionNumber", "productCode", "description", "quantityThousandth", "unitPrice", "allPrice", "vatRatePerMil", "serviceStart", "serviceEnd"];
151
+
152
+ /**
153
+ * @member {Number} positionNumber
154
+ */
155
+ NewInvoicePosition.prototype['positionNumber'] = undefined;
156
+
157
+ /**
158
+ * @member {String} productCode
159
+ */
160
+ NewInvoicePosition.prototype['productCode'] = undefined;
161
+
162
+ /**
163
+ * @member {Array.<String>} description
164
+ */
165
+ NewInvoicePosition.prototype['description'] = undefined;
166
+
167
+ /**
168
+ * @member {Number} quantityThousandth
169
+ */
170
+ NewInvoicePosition.prototype['quantityThousandth'] = undefined;
171
+
172
+ /**
173
+ * @member {Number} unitPrice
174
+ */
175
+ NewInvoicePosition.prototype['unitPrice'] = undefined;
176
+
177
+ /**
178
+ * @member {Number} allPrice
179
+ */
180
+ NewInvoicePosition.prototype['allPrice'] = undefined;
181
+
182
+ /**
183
+ * @member {Number} vatRatePerMil
184
+ */
185
+ NewInvoicePosition.prototype['vatRatePerMil'] = undefined;
186
+
187
+ /**
188
+ * @member {Date} serviceStart
189
+ */
190
+ NewInvoicePosition.prototype['serviceStart'] = undefined;
191
+
192
+ /**
193
+ * @member {Date} serviceEnd
194
+ */
195
+ NewInvoicePosition.prototype['serviceEnd'] = undefined;
196
+ var _default = exports["default"] = NewInvoicePosition;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
11
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
12
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
16
+ * Billing Backend
17
+ * # API for managing billing of customers The purpose of this API is to manage customers, articles, recurring billing, and payments. The caller has to be authenticated with the system and provide a JWT token in the Authorization header of the HTTP request. When using the API you typically get this token by authenticating first with OAuth 2.0. When you are trying this API using the Swagger interface, you need to click the `Authorize` button and then again the Authorize button in the pop-up that gets opened.
18
+ *
19
+ * The version of the OpenAPI document: 0.1.1
20
+ * Contact: tech@p7m.de
21
+ *
22
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
23
+ * https://openapi-generator.tech
24
+ * Do not edit the class manually.
25
+ *
26
+ */
27
+ /**
28
+ * Enum class Salutation.
29
+ * @enum {}
30
+ * @readonly
31
+ */
32
+ var Salutation = exports["default"] = /*#__PURE__*/function () {
33
+ function Salutation() {
34
+ _classCallCheck(this, Salutation);
35
+ /**
36
+ * value: "COMPANY"
37
+ * @const
38
+ */
39
+ _defineProperty(this, "COMPANY", "COMPANY");
40
+ /**
41
+ * value: "MR"
42
+ * @const
43
+ */
44
+ _defineProperty(this, "MR", "MR");
45
+ /**
46
+ * value: "MS"
47
+ * @const
48
+ */
49
+ _defineProperty(this, "MS", "MS");
50
+ /**
51
+ * value: "NONE"
52
+ * @const
53
+ */
54
+ _defineProperty(this, "NONE", "NONE");
55
+ }
56
+ return _createClass(Salutation, null, [{
57
+ key: "constructFromObject",
58
+ value:
59
+ /**
60
+ * Returns a <code>Salutation</code> enum value from a Javascript object name.
61
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
62
+ * @return {module:model/Salutation} The enum <code>Salutation</code> value.
63
+ */
64
+ function constructFromObject(object) {
65
+ return object;
66
+ }
67
+ }]);
68
+ }();
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "@p7m/billing-backend",
3
+ "version": "0.1.1",
4
+ "description": "# API for managing billing of customers The purpose of this API is to manage customers, articles, recurring billing, and payments. The caller has to be authenticated with the system and provide a JWT token in the Authorization header of the HTTP request. When using the API you typically get this token by authenticating first with OAuth 2.0. When you are trying this API using the Swagger interface, you need to click the `Authorize` button and then again the Authorize button in the pop-up that gets opened.",
5
+ "license": "Unlicense",
6
+ "main": "dist/index.js",
7
+ "scripts": {
8
+ "build": "babel src -d dist",
9
+ "prepare": "npm run build",
10
+ "test": "mocha --require @babel/register --recursive"
11
+ },
12
+ "browser": {
13
+ "fs": false
14
+ },
15
+ "dependencies": {
16
+ "@babel/cli": "^7.0.0",
17
+ "superagent": "^5.3.0"
18
+ },
19
+ "devDependencies": {
20
+ "@babel/core": "^7.0.0",
21
+ "@babel/plugin-proposal-class-properties": "^7.0.0",
22
+ "@babel/plugin-proposal-decorators": "^7.0.0",
23
+ "@babel/plugin-proposal-do-expressions": "^7.0.0",
24
+ "@babel/plugin-proposal-export-default-from": "^7.0.0",
25
+ "@babel/plugin-proposal-export-namespace-from": "^7.0.0",
26
+ "@babel/plugin-proposal-function-bind": "^7.0.0",
27
+ "@babel/plugin-proposal-function-sent": "^7.0.0",
28
+ "@babel/plugin-proposal-json-strings": "^7.0.0",
29
+ "@babel/plugin-proposal-logical-assignment-operators": "^7.0.0",
30
+ "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0",
31
+ "@babel/plugin-proposal-numeric-separator": "^7.0.0",
32
+ "@babel/plugin-proposal-optional-chaining": "^7.0.0",
33
+ "@babel/plugin-proposal-pipeline-operator": "^7.0.0",
34
+ "@babel/plugin-proposal-throw-expressions": "^7.0.0",
35
+ "@babel/plugin-syntax-dynamic-import": "^7.0.0",
36
+ "@babel/plugin-syntax-import-meta": "^7.0.0",
37
+ "@babel/preset-env": "^7.0.0",
38
+ "@babel/register": "^7.0.0",
39
+ "expect.js": "^0.3.1",
40
+ "mocha": "^8.0.1",
41
+ "sinon": "^7.2.0"
42
+ },
43
+ "files": [
44
+ "dist"
45
+ ]
46
+ }