cecon-interfaces 1.0.15 → 1.0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (260) hide show
  1. package/dist/company/entities/company.entity.d.ts +39 -0
  2. package/dist/company/entities/company.entity.js +51 -0
  3. package/dist/company/entities/index.d.ts +1 -0
  4. package/dist/company/entities/index.js +6 -0
  5. package/dist/company/enums/index.d.ts +2 -0
  6. package/dist/company/enums/index.js +8 -0
  7. package/dist/company/index.d.ts +3 -3
  8. package/dist/company/index.js +17 -6
  9. package/dist/company/interfaces/i-company.d.ts +1 -0
  10. package/dist/company/interfaces/index.d.ts +1 -0
  11. package/dist/device/entities/device.entity.d.ts +19 -0
  12. package/dist/device/entities/device.entity.js +35 -0
  13. package/dist/device/entities/index.d.ts +3 -0
  14. package/dist/device/entities/index.js +10 -0
  15. package/dist/device/entities/metadata.entity.d.ts +6 -0
  16. package/dist/device/entities/metadata.entity.js +21 -0
  17. package/dist/device/entities/natigo.entity.d.ts +8 -0
  18. package/dist/device/entities/natigo.entity.js +23 -0
  19. package/dist/device/enums/index.d.ts +1 -0
  20. package/dist/device/enums/index.js +6 -0
  21. package/dist/device/index.d.ts +3 -4
  22. package/dist/device/index.js +17 -4
  23. package/dist/device/interfaces/index.d.ts +3 -0
  24. package/dist/device/interfaces/index.js +3 -0
  25. package/dist/esm2022/company/entities/company.entity.mjs +47 -0
  26. package/dist/esm2022/company/entities/index.mjs +3 -0
  27. package/dist/esm2022/company/enums/index.mjs +4 -0
  28. package/dist/esm2022/company/index.mjs +4 -4
  29. package/dist/esm2022/company/interfaces/i-company.mjs +1 -1
  30. package/dist/esm2022/company/interfaces/index.mjs +2 -0
  31. package/dist/esm2022/device/entities/device.entity.mjs +31 -0
  32. package/dist/esm2022/device/entities/index.mjs +5 -0
  33. package/dist/esm2022/device/entities/metadata.entity.mjs +17 -0
  34. package/dist/esm2022/device/entities/natigo.entity.mjs +19 -0
  35. package/dist/esm2022/device/enums/index.mjs +3 -0
  36. package/dist/esm2022/device/index.mjs +4 -3
  37. package/dist/esm2022/device/interfaces/index.mjs +3 -0
  38. package/dist/esm2022/general/entities/address.entity.mjs +24 -0
  39. package/dist/esm2022/general/entities/coords.entity.mjs +14 -0
  40. package/dist/esm2022/general/entities/delivery-area.entity.mjs +23 -0
  41. package/dist/esm2022/general/entities/dellivery-area-fixed.entity.mjs +20 -0
  42. package/dist/esm2022/general/entities/index.mjs +13 -0
  43. package/dist/esm2022/general/entities/messager-channel.entity.mjs +18 -0
  44. package/dist/esm2022/general/entities/mobyo-apiconfig.entity.mjs +21 -0
  45. package/dist/esm2022/general/entities/origin.entity.mjs +22 -0
  46. package/dist/esm2022/general/entities/payment-method.entity.mjs +31 -0
  47. package/dist/esm2022/general/entities/payment-provider-agent.entity.mjs +17 -0
  48. package/dist/esm2022/general/entities/payment-provider.entity.mjs +29 -0
  49. package/dist/esm2022/general/entities/payment-token-data.entity.mjs +22 -0
  50. package/dist/esm2022/general/entities/payment-token.entity.mjs +21 -0
  51. package/dist/esm2022/general/enums/index.mjs +7 -0
  52. package/dist/esm2022/general/enums/payment-type.enum.mjs +2 -1
  53. package/dist/esm2022/general/index.mjs +4 -7
  54. package/dist/esm2022/general/interfaces/i-address.mjs +1 -1
  55. package/dist/esm2022/general/interfaces/{i-mobyo-server-api.mjs → i-mobyo-api-config.mjs} +1 -1
  56. package/dist/esm2022/general/interfaces/i-payment-provider.mjs +1 -1
  57. package/dist/esm2022/general/interfaces/i-payment-token-data.mjs +3 -0
  58. package/dist/esm2022/general/interfaces/i-payment-token.mjs +3 -0
  59. package/dist/esm2022/general/interfaces/index.mjs +3 -0
  60. package/dist/esm2022/index.mjs +2 -2
  61. package/dist/esm2022/order/entities/index.mjs +20 -0
  62. package/dist/esm2022/order/entities/order-additional-fees.entity.mjs +17 -0
  63. package/dist/esm2022/order/entities/order-benefits-sponsor-ship.entity.mjs +17 -0
  64. package/dist/esm2022/order/entities/order-benefits.entity.mjs +21 -0
  65. package/dist/esm2022/order/entities/order-cancellation.entity.mjs +18 -0
  66. package/dist/esm2022/order/entities/order-customer-phone.entity.mjs +19 -0
  67. package/dist/esm2022/order/entities/order-customer.entity.mjs +23 -0
  68. package/dist/esm2022/order/entities/order-item-composition.entity.mjs +21 -0
  69. package/dist/esm2022/order/entities/order-item-option.entity.mjs +30 -0
  70. package/dist/esm2022/order/entities/order-item.entity.mjs +36 -0
  71. package/dist/esm2022/order/entities/order-payment-card.entity.mjs +16 -0
  72. package/dist/esm2022/order/entities/order-payment-cash.entity.mjs +16 -0
  73. package/dist/esm2022/order/entities/order-payment-method.entity.mjs +27 -0
  74. package/dist/esm2022/order/entities/order-payment-pix.entity.mjs +17 -0
  75. package/dist/esm2022/order/entities/order-payment-wallet.entity.mjs +16 -0
  76. package/dist/esm2022/order/entities/order-payment.entity.mjs +18 -0
  77. package/dist/esm2022/order/entities/order-scale-item.entity.mjs +17 -0
  78. package/dist/esm2022/order/entities/order-scale-price.entity.mjs +17 -0
  79. package/dist/esm2022/order/entities/order-total.entity.mjs +20 -0
  80. package/dist/esm2022/order/entities/order.entity.mjs +34 -0
  81. package/dist/esm2022/order/enums/index.mjs +3 -0
  82. package/dist/esm2022/{general/enums/order-satus.enum.mjs → order/enums/order-status.enum.mjs} +1 -1
  83. package/dist/esm2022/order/index.mjs +4 -0
  84. package/dist/esm2022/order/interfaces/i-order-additional-fee.mjs +2 -0
  85. package/dist/esm2022/order/interfaces/i-order-benefits-sponsor-ship.mjs +2 -0
  86. package/dist/esm2022/order/interfaces/i-order-benefits.mjs +2 -0
  87. package/dist/esm2022/order/interfaces/i-order-cancellation.mjs +2 -0
  88. package/dist/esm2022/order/interfaces/i-order-customer-phone.mjs +2 -0
  89. package/dist/esm2022/order/interfaces/i-order-customer.mjs +2 -0
  90. package/dist/esm2022/order/interfaces/i-order-item-composition.mjs +2 -0
  91. package/dist/esm2022/order/interfaces/i-order-item-option.mjs +2 -0
  92. package/dist/esm2022/order/interfaces/i-order-item.mjs +2 -0
  93. package/dist/esm2022/order/interfaces/i-order-payment-card.mjs +2 -0
  94. package/dist/esm2022/order/interfaces/i-order-payment-cash.mjs +2 -0
  95. package/dist/esm2022/order/interfaces/i-order-payment-method.mjs +2 -0
  96. package/dist/esm2022/order/interfaces/i-order-payment-pix.mjs +2 -0
  97. package/dist/esm2022/order/interfaces/i-order-payment-wallet.mjs +2 -0
  98. package/dist/esm2022/order/interfaces/i-order-payment.mjs +2 -0
  99. package/dist/esm2022/order/interfaces/i-order-scale-item.mjs +2 -0
  100. package/dist/esm2022/order/interfaces/i-order-scale-price.mjs +2 -0
  101. package/dist/esm2022/order/interfaces/i-order-total.mjs +2 -0
  102. package/dist/esm2022/order/interfaces/i-order.mjs +2 -0
  103. package/dist/esm2022/order/interfaces/index.mjs +2 -0
  104. package/dist/esm2022/purchases/entities/app-info.entity.mjs +18 -0
  105. package/dist/esm2022/purchases/entities/index.mjs +3 -0
  106. package/dist/esm2022/purchases/entities/purchase.entity.mjs +23 -0
  107. package/dist/esm2022/purchases/index.mjs +3 -3
  108. package/dist/esm2022/purchases/interfaces/i-purchase.mjs +1 -1
  109. package/dist/esm2022/purchases/interfaces/index.mjs +2 -0
  110. package/dist/fesm2022/cecon-interfaces.mjs +877 -31
  111. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  112. package/dist/general/entities/address.entity.d.ts +12 -0
  113. package/dist/general/entities/address.entity.js +28 -0
  114. package/dist/general/entities/coords.entity.d.ts +5 -0
  115. package/dist/general/entities/coords.entity.js +18 -0
  116. package/dist/general/entities/delivery-area.entity.d.ts +12 -0
  117. package/dist/general/entities/delivery-area.entity.js +27 -0
  118. package/dist/general/entities/dellivery-area-fixed.entity.d.ts +8 -0
  119. package/dist/general/entities/dellivery-area-fixed.entity.js +24 -0
  120. package/dist/general/entities/index.d.ts +12 -0
  121. package/dist/general/entities/index.js +27 -0
  122. package/dist/general/entities/messager-channel.entity.d.ts +6 -0
  123. package/dist/general/entities/messager-channel.entity.js +22 -0
  124. package/dist/general/entities/mobyo-apiconfig.entity.d.ts +9 -0
  125. package/dist/general/entities/mobyo-apiconfig.entity.js +25 -0
  126. package/dist/general/entities/origin.entity.d.ts +10 -0
  127. package/dist/general/entities/origin.entity.js +26 -0
  128. package/dist/general/entities/payment-method.entity.d.ts +19 -0
  129. package/dist/general/entities/payment-method.entity.js +35 -0
  130. package/dist/general/entities/payment-provider-agent.entity.d.ts +5 -0
  131. package/dist/general/entities/payment-provider-agent.entity.js +21 -0
  132. package/dist/general/entities/payment-provider.entity.d.ts +18 -0
  133. package/dist/general/entities/payment-provider.entity.js +33 -0
  134. package/dist/general/entities/payment-token-data.entity.d.ts +10 -0
  135. package/dist/general/entities/payment-token-data.entity.js +26 -0
  136. package/dist/general/entities/payment-token.entity.d.ts +9 -0
  137. package/dist/general/entities/payment-token.entity.js +25 -0
  138. package/dist/general/enums/index.d.ts +6 -0
  139. package/dist/general/enums/index.js +15 -0
  140. package/dist/general/enums/payment-type.enum.d.ts +1 -0
  141. package/dist/general/enums/payment-type.enum.js +1 -0
  142. package/dist/general/index.d.ts +3 -17
  143. package/dist/general/index.js +17 -12
  144. package/dist/general/interfaces/i-address.d.ts +2 -0
  145. package/dist/general/interfaces/i-payment-provider.d.ts +1 -1
  146. package/dist/general/interfaces/{i-payment-tokens.d.ts → i-payment-token.d.ts} +1 -1
  147. package/dist/general/interfaces/index.d.ts +12 -0
  148. package/dist/general/interfaces/index.js +3 -0
  149. package/dist/index.d.ts +1 -0
  150. package/dist/index.js +1 -1
  151. package/dist/order/entities/index.d.ts +19 -0
  152. package/dist/order/entities/index.js +41 -0
  153. package/dist/order/entities/order-additional-fees.entity.d.ts +5 -0
  154. package/dist/order/entities/order-additional-fees.entity.js +21 -0
  155. package/dist/order/entities/order-benefits-sponsor-ship.entity.d.ts +5 -0
  156. package/dist/order/entities/order-benefits-sponsor-ship.entity.js +21 -0
  157. package/dist/order/entities/order-benefits.entity.d.ts +10 -0
  158. package/dist/order/entities/order-benefits.entity.js +25 -0
  159. package/dist/order/entities/order-cancellation.entity.d.ts +6 -0
  160. package/dist/order/entities/order-cancellation.entity.js +22 -0
  161. package/dist/order/entities/order-customer-phone.entity.d.ts +7 -0
  162. package/dist/order/entities/order-customer-phone.entity.js +23 -0
  163. package/dist/order/entities/order-customer.entity.d.ts +11 -0
  164. package/dist/order/entities/order-customer.entity.js +27 -0
  165. package/dist/order/entities/order-item-composition.entity.d.ts +9 -0
  166. package/dist/order/entities/order-item-composition.entity.js +25 -0
  167. package/dist/order/entities/order-item-option.entity.d.ts +18 -0
  168. package/dist/order/entities/order-item-option.entity.js +34 -0
  169. package/dist/order/entities/order-item.entity.d.ts +26 -0
  170. package/dist/order/entities/order-item.entity.js +40 -0
  171. package/dist/order/entities/order-payment-card.entity.d.ts +4 -0
  172. package/dist/order/entities/order-payment-card.entity.js +20 -0
  173. package/dist/order/entities/order-payment-cash.entity.d.ts +4 -0
  174. package/dist/order/entities/order-payment-cash.entity.js +20 -0
  175. package/dist/order/entities/order-payment-method.entity.d.ts +19 -0
  176. package/dist/order/entities/order-payment-method.entity.js +31 -0
  177. package/dist/order/entities/order-payment-pix.entity.d.ts +5 -0
  178. package/dist/order/entities/order-payment-pix.entity.js +21 -0
  179. package/dist/order/entities/order-payment-wallet.entity.d.ts +4 -0
  180. package/dist/order/entities/order-payment-wallet.entity.js +20 -0
  181. package/dist/order/entities/order-payment.entity.d.ts +7 -0
  182. package/dist/order/entities/order-payment.entity.js +22 -0
  183. package/dist/order/entities/order-scale-item.entity.d.ts +5 -0
  184. package/dist/order/entities/order-scale-item.entity.js +21 -0
  185. package/dist/order/entities/order-scale-price.entity.d.ts +6 -0
  186. package/dist/order/entities/order-scale-price.entity.js +21 -0
  187. package/dist/order/entities/order-total.entity.d.ts +8 -0
  188. package/dist/order/entities/order-total.entity.js +24 -0
  189. package/dist/order/entities/order.entity.d.ts +27 -0
  190. package/dist/order/entities/order.entity.js +38 -0
  191. package/dist/order/enums/index.d.ts +1 -0
  192. package/dist/order/enums/index.js +6 -0
  193. package/dist/order/index.d.ts +3 -0
  194. package/dist/order/index.js +19 -0
  195. package/dist/order/interfaces/i-order-additional-fee.d.ts +4 -0
  196. package/dist/order/interfaces/i-order-additional-fee.js +2 -0
  197. package/dist/order/interfaces/i-order-benefits-sponsor-ship.d.ts +4 -0
  198. package/dist/order/interfaces/i-order-benefits-sponsor-ship.js +2 -0
  199. package/dist/order/interfaces/i-order-benefits.d.ts +9 -0
  200. package/dist/order/interfaces/i-order-benefits.js +2 -0
  201. package/dist/order/interfaces/i-order-cancellation.d.ts +5 -0
  202. package/dist/order/interfaces/i-order-cancellation.js +2 -0
  203. package/dist/order/interfaces/i-order-customer-phone.d.ts +6 -0
  204. package/dist/order/interfaces/i-order-customer-phone.js +2 -0
  205. package/dist/order/interfaces/i-order-customer.d.ts +10 -0
  206. package/dist/order/interfaces/i-order-customer.js +2 -0
  207. package/dist/order/interfaces/i-order-item-composition.d.ts +8 -0
  208. package/dist/order/interfaces/i-order-item-composition.js +2 -0
  209. package/dist/order/interfaces/i-order-item-option.d.ts +17 -0
  210. package/dist/order/interfaces/i-order-item-option.js +2 -0
  211. package/dist/order/interfaces/i-order-item.d.ts +25 -0
  212. package/dist/order/interfaces/i-order-item.js +2 -0
  213. package/dist/order/interfaces/i-order-payment-card.d.ts +3 -0
  214. package/dist/order/interfaces/i-order-payment-card.js +2 -0
  215. package/dist/order/interfaces/i-order-payment-cash.d.ts +3 -0
  216. package/dist/order/interfaces/i-order-payment-cash.js +2 -0
  217. package/dist/order/interfaces/i-order-payment-method.d.ts +18 -0
  218. package/dist/order/interfaces/i-order-payment-method.js +2 -0
  219. package/dist/order/interfaces/i-order-payment-pix.d.ts +4 -0
  220. package/dist/order/interfaces/i-order-payment-pix.js +2 -0
  221. package/dist/order/interfaces/i-order-payment-wallet.d.ts +3 -0
  222. package/dist/order/interfaces/i-order-payment-wallet.js +2 -0
  223. package/dist/order/interfaces/i-order-payment.d.ts +6 -0
  224. package/dist/order/interfaces/i-order-payment.js +2 -0
  225. package/dist/order/interfaces/i-order-scale-item.d.ts +4 -0
  226. package/dist/order/interfaces/i-order-scale-item.js +2 -0
  227. package/dist/order/interfaces/i-order-scale-price.d.ts +5 -0
  228. package/dist/order/interfaces/i-order-scale-price.js +2 -0
  229. package/dist/order/interfaces/i-order-total.d.ts +12 -0
  230. package/dist/order/interfaces/i-order-total.js +2 -0
  231. package/dist/order/interfaces/i-order.d.ts +26 -0
  232. package/dist/order/interfaces/i-order.js +2 -0
  233. package/dist/order/interfaces/index.d.ts +19 -0
  234. package/dist/order/interfaces/index.js +2 -0
  235. package/dist/package.json +2 -4
  236. package/dist/purchases/entities/app-info.entity.d.ts +6 -0
  237. package/dist/purchases/entities/app-info.entity.js +22 -0
  238. package/dist/purchases/entities/index.d.ts +2 -0
  239. package/dist/purchases/entities/index.js +7 -0
  240. package/dist/purchases/entities/purchase.entity.d.ts +10 -0
  241. package/dist/purchases/entities/purchase.entity.js +44 -0
  242. package/dist/purchases/index.d.ts +2 -3
  243. package/dist/purchases/index.js +16 -1
  244. package/dist/purchases/interfaces/i-purchase.d.ts +7 -15
  245. package/dist/purchases/interfaces/index.d.ts +2 -0
  246. package/dist/purchases/interfaces/index.js +2 -0
  247. package/package.json +2 -4
  248. package/tsconfig.json +3 -3
  249. package/dist/esm2022/general/interfaces/i-payment-tokens-data.mjs +0 -3
  250. package/dist/esm2022/general/interfaces/i-payment-tokens.mjs +0 -3
  251. package/dist/esm2022/purchases/interfaces/i-payment-details.mjs +0 -2
  252. package/dist/purchases/interfaces/i-payment-details.d.ts +0 -17
  253. /package/dist/{general/interfaces/i-mobyo-server-api.js → company/interfaces/index.js} +0 -0
  254. /package/dist/general/interfaces/{i-mobyo-server-api.d.ts → i-mobyo-api-config.d.ts} +0 -0
  255. /package/dist/{purchases/interfaces/i-payment-details.js → general/interfaces/i-mobyo-api-config.js} +0 -0
  256. /package/dist/general/interfaces/{i-payment-tokens-data.d.ts → i-payment-token-data.d.ts} +0 -0
  257. /package/dist/general/interfaces/{i-payment-tokens-data.js → i-payment-token-data.js} +0 -0
  258. /package/dist/general/interfaces/{i-payment-tokens.js → i-payment-token.js} +0 -0
  259. /package/dist/{general/enums/order-satus.enum.d.ts → order/enums/order-status.enum.d.ts} +0 -0
  260. /package/dist/{general/enums/order-satus.enum.js → order/enums/order-status.enum.js} +0 -0
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentTokenDataEntity = void 0;
4
+ var PaymentTokenDataEntity = /** @class */ (function () {
5
+ // #endregion Properties (7)
6
+ // #region Constructors (1)
7
+ function PaymentTokenDataEntity(data) {
8
+ // #region Properties (7)
9
+ this.bin = '';
10
+ this.brand = '';
11
+ this.displayNumber = '';
12
+ this.firstDigits = '';
13
+ this.maskedNumber = '';
14
+ this.month = 0;
15
+ this.year = 0;
16
+ if (data) {
17
+ for (var key in data) {
18
+ if (data.hasOwnProperty(key) && key in this) {
19
+ this[key] = data[key];
20
+ }
21
+ }
22
+ }
23
+ }
24
+ return PaymentTokenDataEntity;
25
+ }());
26
+ exports.PaymentTokenDataEntity = PaymentTokenDataEntity;
@@ -0,0 +1,9 @@
1
+ import { PaymentTokenDataEntity } from './payment-token-data.entity';
2
+ export declare class PaymentTokenEntity {
3
+ customerId: string;
4
+ data: PaymentTokenDataEntity;
5
+ description: string;
6
+ id: string;
7
+ itemType: string;
8
+ constructor(data?: Partial<PaymentTokenEntity>);
9
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentTokenEntity = void 0;
4
+ var payment_token_data_entity_1 = require("./payment-token-data.entity");
5
+ var PaymentTokenEntity = /** @class */ (function () {
6
+ // #endregion Properties (5)
7
+ // #region Constructors (1)
8
+ function PaymentTokenEntity(data) {
9
+ // #region Properties (5)
10
+ this.customerId = '';
11
+ this.data = new payment_token_data_entity_1.PaymentTokenDataEntity();
12
+ this.description = '';
13
+ this.id = '';
14
+ this.itemType = '';
15
+ if (data) {
16
+ for (var key in data) {
17
+ if (data.hasOwnProperty(key) && key in this) {
18
+ this[key] = data[key];
19
+ }
20
+ }
21
+ }
22
+ }
23
+ return PaymentTokenEntity;
24
+ }());
25
+ exports.PaymentTokenEntity = PaymentTokenEntity;
@@ -0,0 +1,6 @@
1
+ export { DocTypeEnum } from './doc-type.enum';
2
+ export { LeadOriginEnum } from './lead-origin.enum';
3
+ export { PaymentChannelEnum } from './payment-channel.enum';
4
+ export { PaymentModeEnum } from './payment-mode.enum';
5
+ export { PaymentTypeEnum } from './payment-type.enum';
6
+ export { PaymentProviderEnum } from './providers.enum';
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentProviderEnum = exports.PaymentTypeEnum = exports.PaymentModeEnum = exports.PaymentChannelEnum = exports.LeadOriginEnum = exports.DocTypeEnum = void 0;
4
+ var doc_type_enum_1 = require("./doc-type.enum");
5
+ Object.defineProperty(exports, "DocTypeEnum", { enumerable: true, get: function () { return doc_type_enum_1.DocTypeEnum; } });
6
+ var lead_origin_enum_1 = require("./lead-origin.enum");
7
+ Object.defineProperty(exports, "LeadOriginEnum", { enumerable: true, get: function () { return lead_origin_enum_1.LeadOriginEnum; } });
8
+ var payment_channel_enum_1 = require("./payment-channel.enum");
9
+ Object.defineProperty(exports, "PaymentChannelEnum", { enumerable: true, get: function () { return payment_channel_enum_1.PaymentChannelEnum; } });
10
+ var payment_mode_enum_1 = require("./payment-mode.enum");
11
+ Object.defineProperty(exports, "PaymentModeEnum", { enumerable: true, get: function () { return payment_mode_enum_1.PaymentModeEnum; } });
12
+ var payment_type_enum_1 = require("./payment-type.enum");
13
+ Object.defineProperty(exports, "PaymentTypeEnum", { enumerable: true, get: function () { return payment_type_enum_1.PaymentTypeEnum; } });
14
+ var providers_enum_1 = require("./providers.enum");
15
+ Object.defineProperty(exports, "PaymentProviderEnum", { enumerable: true, get: function () { return providers_enum_1.PaymentProviderEnum; } });
@@ -12,6 +12,7 @@ export declare enum PaymentTypeEnum {
12
12
  E_WALLET = "E_WALLET",
13
13
  DIRECT_DEBIT = "DIRECT_DEBIT",
14
14
  PAYPAL = "PAYPAL",
15
+ CHECKOUTPRO = "CHECKOUTPRO",
15
16
  WIRE_TRANSFER = "WIRE_TRANSFER",
16
17
  GIFT_CARD = "GIFT_CARD",
17
18
  VOUCHER = "VOUCHER",
@@ -16,6 +16,7 @@ var PaymentTypeEnum;
16
16
  PaymentTypeEnum["E_WALLET"] = "E_WALLET";
17
17
  PaymentTypeEnum["DIRECT_DEBIT"] = "DIRECT_DEBIT";
18
18
  PaymentTypeEnum["PAYPAL"] = "PAYPAL";
19
+ PaymentTypeEnum["CHECKOUTPRO"] = "CHECKOUTPRO";
19
20
  PaymentTypeEnum["WIRE_TRANSFER"] = "WIRE_TRANSFER";
20
21
  PaymentTypeEnum["GIFT_CARD"] = "GIFT_CARD";
21
22
  PaymentTypeEnum["VOUCHER"] = "VOUCHER";
@@ -1,17 +1,3 @@
1
- export { DocTypeEnum } from './enums/doc-type.enum';
2
- export { LeadOriginEnum } from './enums/lead-origin.enum';
3
- export { PaymentChannelEnum } from './enums/payment-channel.enum';
4
- export { PaymentModeEnum } from './enums/payment-mode.enum';
5
- export { PaymentTypeEnum } from './enums/payment-type.enum';
6
- export { IAddress } from './interfaces/i-address';
7
- export { ICoords } from './interfaces/i-coords';
8
- export { IDeliveryArea } from './interfaces/i-delivery-area';
9
- export { IDeliveryAreaFixed } from './interfaces/i-delivery-area-fixed';
10
- export { IMessagerChannel } from './interfaces/i-messager-channel';
11
- export { IMobyoApiConfig } from './interfaces/i-mobyo-server-api';
12
- export { IOrigin } from './interfaces/i-origin';
13
- export { IPaymentMethod } from './interfaces/i-payment-method';
14
- export { IPaymentProvider } from './interfaces/i-payment-provider';
15
- export { IPaymentProviderAgent } from './interfaces/i-payment-provider-agent';
16
- export { IPaymentToken } from './interfaces/i-payment-tokens';
17
- export { IPaymentTokenData } from './interfaces/i-payment-tokens-data';
1
+ export * from './entities';
2
+ export * from './enums';
3
+ export * from './interfaces';
@@ -1,14 +1,19 @@
1
1
  "use strict";
2
- // index.ts
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
+ };
3
16
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.PaymentTypeEnum = exports.PaymentModeEnum = exports.PaymentChannelEnum = exports.LeadOriginEnum = exports.DocTypeEnum = void 0;
5
- var doc_type_enum_1 = require("./enums/doc-type.enum");
6
- Object.defineProperty(exports, "DocTypeEnum", { enumerable: true, get: function () { return doc_type_enum_1.DocTypeEnum; } });
7
- var lead_origin_enum_1 = require("./enums/lead-origin.enum");
8
- Object.defineProperty(exports, "LeadOriginEnum", { enumerable: true, get: function () { return lead_origin_enum_1.LeadOriginEnum; } });
9
- var payment_channel_enum_1 = require("./enums/payment-channel.enum");
10
- Object.defineProperty(exports, "PaymentChannelEnum", { enumerable: true, get: function () { return payment_channel_enum_1.PaymentChannelEnum; } });
11
- var payment_mode_enum_1 = require("./enums/payment-mode.enum");
12
- Object.defineProperty(exports, "PaymentModeEnum", { enumerable: true, get: function () { return payment_mode_enum_1.PaymentModeEnum; } });
13
- var payment_type_enum_1 = require("./enums/payment-type.enum");
14
- Object.defineProperty(exports, "PaymentTypeEnum", { enumerable: true, get: function () { return payment_type_enum_1.PaymentTypeEnum; } });
17
+ __exportStar(require("./entities"), exports);
18
+ __exportStar(require("./enums"), exports);
19
+ __exportStar(require("./interfaces"), exports);
@@ -1,3 +1,4 @@
1
+ import { ICoords } from './i-coords';
1
2
  export interface IAddress {
2
3
  city: string;
3
4
  complement?: string;
@@ -6,4 +7,5 @@ export interface IAddress {
6
7
  state: string;
7
8
  streetName: string;
8
9
  streetNumber: string;
10
+ coords?: ICoords;
9
11
  }
@@ -1,5 +1,5 @@
1
1
  import { IPaymentProviderAgent } from './i-payment-provider-agent';
2
- import { IPaymentToken } from './i-payment-tokens';
2
+ import { IPaymentToken } from './i-payment-token';
3
3
  export interface IPaymentProvider {
4
4
  accountId: string;
5
5
  active: boolean;
@@ -1,4 +1,4 @@
1
- import { IPaymentTokenData } from './i-payment-tokens-data';
1
+ import { IPaymentTokenData } from './i-payment-token-data';
2
2
  export interface IPaymentToken {
3
3
  customerId: string;
4
4
  data: IPaymentTokenData;
@@ -0,0 +1,12 @@
1
+ export { IAddress } from './i-address';
2
+ export { ICoords } from './i-coords';
3
+ export { IDeliveryArea } from './i-delivery-area';
4
+ export { IDeliveryAreaFixed } from './i-delivery-area-fixed';
5
+ export { IMessagerChannel } from './i-messager-channel';
6
+ export { IMobyoApiConfig } from './i-mobyo-api-config';
7
+ export { IOrigin } from './i-origin';
8
+ export { IPaymentMethod } from './i-payment-method';
9
+ export { IPaymentProvider } from './i-payment-provider';
10
+ export { IPaymentProviderAgent } from './i-payment-provider-agent';
11
+ export { IPaymentToken } from './i-payment-token';
12
+ export { IPaymentTokenData } from './i-payment-token-data';
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // index.ts
3
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './company';
2
2
  export * from './device';
3
3
  export * from './general';
4
+ export * from './order';
4
5
  export * from './purchases';
package/dist/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
- // index.ts
3
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
3
  if (k2 === undefined) k2 = k;
5
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -18,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
17
  __exportStar(require("./company"), exports);
19
18
  __exportStar(require("./device"), exports);
20
19
  __exportStar(require("./general"), exports);
20
+ __exportStar(require("./order"), exports);
21
21
  __exportStar(require("./purchases"), exports);
@@ -0,0 +1,19 @@
1
+ export { OrderAdditionalFeeEntity } from './order-additional-fees.entity';
2
+ export { SponsorshipValuesEntity } from './order-benefits-sponsor-ship.entity';
3
+ export { OrderBenefitsEntity } from './order-benefits.entity';
4
+ export { OrderCancellationEntity } from './order-cancellation.entity';
5
+ export { OrdersCustomerPhoneEntity } from './order-customer-phone.entity';
6
+ export { OrderCustomerEntity } from './order-customer.entity';
7
+ export { OrderItemCompositionEntity } from './order-item-composition.entity';
8
+ export { OrderItemOptionEntity } from './order-item-option.entity';
9
+ export { OrderItemEntity } from './order-item.entity';
10
+ export { OrderPaymentCardEntity } from './order-payment-card.entity';
11
+ export { OrderPaymentCashEntity } from './order-payment-cash.entity';
12
+ export { OrderPaymentMethodEntity } from './order-payment-method.entity';
13
+ export { OrderPaymentPixEntity } from './order-payment-pix.entity';
14
+ export { OrderPaymentWalletEntity } from './order-payment-wallet.entity';
15
+ export { OrderPaymentEntity } from './order-payment.entity';
16
+ export { OrderScaleItemEntity } from './order-scale-item.entity';
17
+ export { OrderScaleEntity } from './order-scale-price.entity';
18
+ export { OrderTotalEntity } from './order-total.entity';
19
+ export { OrderEntity } from './order.entity';
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderEntity = exports.OrderTotalEntity = exports.OrderScaleEntity = exports.OrderScaleItemEntity = exports.OrderPaymentEntity = exports.OrderPaymentWalletEntity = exports.OrderPaymentPixEntity = exports.OrderPaymentMethodEntity = exports.OrderPaymentCashEntity = exports.OrderPaymentCardEntity = exports.OrderItemEntity = exports.OrderItemOptionEntity = exports.OrderItemCompositionEntity = exports.OrderCustomerEntity = exports.OrdersCustomerPhoneEntity = exports.OrderCancellationEntity = exports.OrderBenefitsEntity = exports.SponsorshipValuesEntity = exports.OrderAdditionalFeeEntity = void 0;
4
+ var order_additional_fees_entity_1 = require("./order-additional-fees.entity");
5
+ Object.defineProperty(exports, "OrderAdditionalFeeEntity", { enumerable: true, get: function () { return order_additional_fees_entity_1.OrderAdditionalFeeEntity; } });
6
+ var order_benefits_sponsor_ship_entity_1 = require("./order-benefits-sponsor-ship.entity");
7
+ Object.defineProperty(exports, "SponsorshipValuesEntity", { enumerable: true, get: function () { return order_benefits_sponsor_ship_entity_1.SponsorshipValuesEntity; } });
8
+ var order_benefits_entity_1 = require("./order-benefits.entity");
9
+ Object.defineProperty(exports, "OrderBenefitsEntity", { enumerable: true, get: function () { return order_benefits_entity_1.OrderBenefitsEntity; } });
10
+ var order_cancellation_entity_1 = require("./order-cancellation.entity");
11
+ Object.defineProperty(exports, "OrderCancellationEntity", { enumerable: true, get: function () { return order_cancellation_entity_1.OrderCancellationEntity; } });
12
+ var order_customer_phone_entity_1 = require("./order-customer-phone.entity");
13
+ Object.defineProperty(exports, "OrdersCustomerPhoneEntity", { enumerable: true, get: function () { return order_customer_phone_entity_1.OrdersCustomerPhoneEntity; } });
14
+ var order_customer_entity_1 = require("./order-customer.entity");
15
+ Object.defineProperty(exports, "OrderCustomerEntity", { enumerable: true, get: function () { return order_customer_entity_1.OrderCustomerEntity; } });
16
+ var order_item_composition_entity_1 = require("./order-item-composition.entity");
17
+ Object.defineProperty(exports, "OrderItemCompositionEntity", { enumerable: true, get: function () { return order_item_composition_entity_1.OrderItemCompositionEntity; } });
18
+ var order_item_option_entity_1 = require("./order-item-option.entity");
19
+ Object.defineProperty(exports, "OrderItemOptionEntity", { enumerable: true, get: function () { return order_item_option_entity_1.OrderItemOptionEntity; } });
20
+ var order_item_entity_1 = require("./order-item.entity");
21
+ Object.defineProperty(exports, "OrderItemEntity", { enumerable: true, get: function () { return order_item_entity_1.OrderItemEntity; } });
22
+ var order_payment_card_entity_1 = require("./order-payment-card.entity");
23
+ Object.defineProperty(exports, "OrderPaymentCardEntity", { enumerable: true, get: function () { return order_payment_card_entity_1.OrderPaymentCardEntity; } });
24
+ var order_payment_cash_entity_1 = require("./order-payment-cash.entity");
25
+ Object.defineProperty(exports, "OrderPaymentCashEntity", { enumerable: true, get: function () { return order_payment_cash_entity_1.OrderPaymentCashEntity; } });
26
+ var order_payment_method_entity_1 = require("./order-payment-method.entity");
27
+ Object.defineProperty(exports, "OrderPaymentMethodEntity", { enumerable: true, get: function () { return order_payment_method_entity_1.OrderPaymentMethodEntity; } });
28
+ var order_payment_pix_entity_1 = require("./order-payment-pix.entity");
29
+ Object.defineProperty(exports, "OrderPaymentPixEntity", { enumerable: true, get: function () { return order_payment_pix_entity_1.OrderPaymentPixEntity; } });
30
+ var order_payment_wallet_entity_1 = require("./order-payment-wallet.entity");
31
+ Object.defineProperty(exports, "OrderPaymentWalletEntity", { enumerable: true, get: function () { return order_payment_wallet_entity_1.OrderPaymentWalletEntity; } });
32
+ var order_payment_entity_1 = require("./order-payment.entity");
33
+ Object.defineProperty(exports, "OrderPaymentEntity", { enumerable: true, get: function () { return order_payment_entity_1.OrderPaymentEntity; } });
34
+ var order_scale_item_entity_1 = require("./order-scale-item.entity");
35
+ Object.defineProperty(exports, "OrderScaleItemEntity", { enumerable: true, get: function () { return order_scale_item_entity_1.OrderScaleItemEntity; } });
36
+ var order_scale_price_entity_1 = require("./order-scale-price.entity");
37
+ Object.defineProperty(exports, "OrderScaleEntity", { enumerable: true, get: function () { return order_scale_price_entity_1.OrderScaleEntity; } });
38
+ var order_total_entity_1 = require("./order-total.entity");
39
+ Object.defineProperty(exports, "OrderTotalEntity", { enumerable: true, get: function () { return order_total_entity_1.OrderTotalEntity; } });
40
+ var order_entity_1 = require("./order.entity");
41
+ Object.defineProperty(exports, "OrderEntity", { enumerable: true, get: function () { return order_entity_1.OrderEntity; } });
@@ -0,0 +1,5 @@
1
+ export declare class OrderAdditionalFeeEntity {
2
+ type: string;
3
+ value: number;
4
+ constructor(data?: Partial<OrderAdditionalFeeEntity>);
5
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderAdditionalFeeEntity = void 0;
4
+ var OrderAdditionalFeeEntity = /** @class */ (function () {
5
+ // #endregion Properties (2)
6
+ // #region Constructors (1)
7
+ function OrderAdditionalFeeEntity(data) {
8
+ // #region Properties (2)
9
+ this.type = '';
10
+ this.value = 0;
11
+ if (data) {
12
+ for (var key in data) {
13
+ if (data.hasOwnProperty(key) && key in this) {
14
+ this[key] = data[key];
15
+ }
16
+ }
17
+ }
18
+ }
19
+ return OrderAdditionalFeeEntity;
20
+ }());
21
+ exports.OrderAdditionalFeeEntity = OrderAdditionalFeeEntity;
@@ -0,0 +1,5 @@
1
+ export declare class SponsorshipValuesEntity {
2
+ name: string;
3
+ value: number;
4
+ constructor(data?: Partial<SponsorshipValuesEntity>);
5
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SponsorshipValuesEntity = void 0;
4
+ var SponsorshipValuesEntity = /** @class */ (function () {
5
+ // #endregion Properties (2)
6
+ // #region Constructors (1)
7
+ function SponsorshipValuesEntity(data) {
8
+ // #region Properties (2)
9
+ this.name = '';
10
+ this.value = 0;
11
+ if (data) {
12
+ for (var key in data) {
13
+ if (data.hasOwnProperty(key) && key in this) {
14
+ this[key] = data[key];
15
+ }
16
+ }
17
+ }
18
+ }
19
+ return SponsorshipValuesEntity;
20
+ }());
21
+ exports.SponsorshipValuesEntity = SponsorshipValuesEntity;
@@ -0,0 +1,10 @@
1
+ import { SponsorshipValuesEntity } from './order-benefits-sponsor-ship.entity';
2
+ export declare class OrderBenefitsEntity {
3
+ description: string;
4
+ id: string;
5
+ sponsorshipValues: SponsorshipValuesEntity[];
6
+ target: string;
7
+ targetId: string;
8
+ value: number;
9
+ constructor(data?: Partial<OrderBenefitsEntity>);
10
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderBenefitsEntity = void 0;
4
+ var OrderBenefitsEntity = /** @class */ (function () {
5
+ // #endregion Properties (6)
6
+ // #region Constructors (1)
7
+ function OrderBenefitsEntity(data) {
8
+ // #region Properties (6)
9
+ this.description = '';
10
+ this.id = '';
11
+ this.sponsorshipValues = [];
12
+ this.target = '';
13
+ this.targetId = '';
14
+ this.value = 0;
15
+ if (data) {
16
+ for (var key in data) {
17
+ if (data.hasOwnProperty(key) && key in this) {
18
+ this[key] = data[key];
19
+ }
20
+ }
21
+ }
22
+ }
23
+ return OrderBenefitsEntity;
24
+ }());
25
+ exports.OrderBenefitsEntity = OrderBenefitsEntity;
@@ -0,0 +1,6 @@
1
+ export declare class OrderCancellationEntity {
2
+ cancellationBy: string;
3
+ cancellationCode: string;
4
+ reason: string;
5
+ constructor(data?: Partial<OrderCancellationEntity>);
6
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderCancellationEntity = void 0;
4
+ var OrderCancellationEntity = /** @class */ (function () {
5
+ // #endregion Properties (3)
6
+ // #region Constructors (1)
7
+ function OrderCancellationEntity(data) {
8
+ // #region Properties (3)
9
+ this.cancellationBy = '';
10
+ this.cancellationCode = '';
11
+ this.reason = '';
12
+ if (data) {
13
+ for (var key in data) {
14
+ if (data.hasOwnProperty(key) && key in this) {
15
+ this[key] = data[key];
16
+ }
17
+ }
18
+ }
19
+ }
20
+ return OrderCancellationEntity;
21
+ }());
22
+ exports.OrderCancellationEntity = OrderCancellationEntity;
@@ -0,0 +1,7 @@
1
+ export declare class OrdersCustomerPhoneEntity {
2
+ description: string;
3
+ localizer: string;
4
+ localizerExpiration: string;
5
+ number: string;
6
+ constructor(data?: Partial<OrdersCustomerPhoneEntity>);
7
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrdersCustomerPhoneEntity = void 0;
4
+ var OrdersCustomerPhoneEntity = /** @class */ (function () {
5
+ // #endregion Properties (4)
6
+ // #region Constructors (1)
7
+ function OrdersCustomerPhoneEntity(data) {
8
+ // #region Properties (4)
9
+ this.description = '';
10
+ this.localizer = '';
11
+ this.localizerExpiration = '';
12
+ this.number = '';
13
+ if (data) {
14
+ for (var key in data) {
15
+ if (data.hasOwnProperty(key) && key in this) {
16
+ this[key] = data[key];
17
+ }
18
+ }
19
+ }
20
+ }
21
+ return OrdersCustomerPhoneEntity;
22
+ }());
23
+ exports.OrdersCustomerPhoneEntity = OrdersCustomerPhoneEntity;
@@ -0,0 +1,11 @@
1
+ import { OrdersCustomerPhoneEntity } from './order-customer-phone.entity';
2
+ export declare class OrderCustomerEntity {
3
+ documentNumber: string;
4
+ email: string;
5
+ id: string;
6
+ name: string;
7
+ ordersCountOnMerchant: number;
8
+ phone: OrdersCustomerPhoneEntity;
9
+ picture: string;
10
+ constructor(data?: Partial<OrderCustomerEntity>);
11
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderCustomerEntity = void 0;
4
+ var order_customer_phone_entity_1 = require("./order-customer-phone.entity");
5
+ var OrderCustomerEntity = /** @class */ (function () {
6
+ // #endregion Properties (7)
7
+ // #region Constructors (1)
8
+ function OrderCustomerEntity(data) {
9
+ // #region Properties (7)
10
+ this.documentNumber = '';
11
+ this.email = '';
12
+ this.id = '';
13
+ this.name = '';
14
+ this.ordersCountOnMerchant = 0;
15
+ this.phone = new order_customer_phone_entity_1.OrdersCustomerPhoneEntity();
16
+ this.picture = '';
17
+ if (data) {
18
+ for (var key in data) {
19
+ if (data.hasOwnProperty(key) && key in this) {
20
+ this[key] = data[key];
21
+ }
22
+ }
23
+ }
24
+ }
25
+ return OrderCustomerEntity;
26
+ }());
27
+ exports.OrderCustomerEntity = OrderCustomerEntity;
@@ -0,0 +1,9 @@
1
+ export declare class OrderItemCompositionEntity {
2
+ amount: number;
3
+ code: string;
4
+ description: string;
5
+ imageURL: string;
6
+ quantity: number;
7
+ unit: string;
8
+ constructor(data?: Partial<OrderItemCompositionEntity>);
9
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderItemCompositionEntity = void 0;
4
+ var OrderItemCompositionEntity = /** @class */ (function () {
5
+ // #endregion Properties (6)
6
+ // #region Constructors (1)
7
+ function OrderItemCompositionEntity(data) {
8
+ // #region Properties (6)
9
+ this.amount = 0;
10
+ this.code = '';
11
+ this.description = '';
12
+ this.imageURL = '';
13
+ this.quantity = 0;
14
+ this.unit = '';
15
+ if (data) {
16
+ for (var key in data) {
17
+ if (data.hasOwnProperty(key) && key in this) {
18
+ this[key] = data[key];
19
+ }
20
+ }
21
+ }
22
+ }
23
+ return OrderItemCompositionEntity;
24
+ }());
25
+ exports.OrderItemCompositionEntity = OrderItemCompositionEntity;
@@ -0,0 +1,18 @@
1
+ export declare class OrderItemOptionEntity {
2
+ ean: string;
3
+ externalCode: string;
4
+ id: string;
5
+ index: number;
6
+ name: string;
7
+ options: OrderItemOptionEntity[];
8
+ optionsPrice: number;
9
+ preparationPlaceId: string;
10
+ price: number;
11
+ productId: string;
12
+ quantity: number;
13
+ skill: string;
14
+ totalPrice: number;
15
+ unit: string;
16
+ weight: number;
17
+ constructor(data?: Partial<OrderItemOptionEntity>);
18
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderItemOptionEntity = void 0;
4
+ var OrderItemOptionEntity = /** @class */ (function () {
5
+ // #endregion Properties (15)
6
+ // #region Constructors (1)
7
+ function OrderItemOptionEntity(data) {
8
+ // #region Properties (15)
9
+ this.ean = '';
10
+ this.externalCode = '';
11
+ this.id = '';
12
+ this.index = 0;
13
+ this.name = '';
14
+ this.options = [];
15
+ this.optionsPrice = 0;
16
+ this.preparationPlaceId = '';
17
+ this.price = 0;
18
+ this.productId = '';
19
+ this.quantity = 0;
20
+ this.skill = '';
21
+ this.totalPrice = 0;
22
+ this.unit = '';
23
+ this.weight = 0;
24
+ if (data) {
25
+ for (var key in data) {
26
+ if (data.hasOwnProperty(key) && key in this) {
27
+ this[key] = data[key];
28
+ }
29
+ }
30
+ }
31
+ }
32
+ return OrderItemOptionEntity;
33
+ }());
34
+ exports.OrderItemOptionEntity = OrderItemOptionEntity;
@@ -0,0 +1,26 @@
1
+ import { OrderItemCompositionEntity } from './order-item-composition.entity';
2
+ import { OrderItemOptionEntity } from './order-item-option.entity';
3
+ import { OrderScaleEntity } from './order-scale-price.entity';
4
+ export declare class OrderItemEntity {
5
+ composition: OrderItemCompositionEntity[];
6
+ ean: string;
7
+ externalCode: string;
8
+ id: string;
9
+ index: number;
10
+ name: string;
11
+ observations: string;
12
+ options: OrderItemOptionEntity[];
13
+ optionsPrice: number;
14
+ picture: string;
15
+ preparationPlaceId: string;
16
+ price: number;
17
+ productId: number;
18
+ quantity: number;
19
+ scalePrices: OrderScaleEntity;
20
+ skill: string;
21
+ totalPrice: number;
22
+ unit: string;
23
+ unitPrice: number;
24
+ weight: number;
25
+ constructor(data?: Partial<OrderItemEntity>);
26
+ }