cecon-interfaces 1.0.14 → 1.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (258) hide show
  1. package/dist/company/entities/company.entity.d.ts +38 -0
  2. package/dist/company/entities/company.entity.js +50 -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/index.d.ts +1 -0
  10. package/dist/device/entities/device.entity.d.ts +19 -0
  11. package/dist/device/entities/device.entity.js +35 -0
  12. package/dist/device/entities/index.d.ts +3 -0
  13. package/dist/device/entities/index.js +10 -0
  14. package/dist/device/entities/metadata.entity.d.ts +6 -0
  15. package/dist/device/entities/metadata.entity.js +21 -0
  16. package/dist/device/entities/natigo.entity.d.ts +8 -0
  17. package/dist/device/entities/natigo.entity.js +23 -0
  18. package/dist/device/enums/index.d.ts +1 -0
  19. package/dist/device/enums/index.js +6 -0
  20. package/dist/device/index.d.ts +3 -4
  21. package/dist/device/index.js +17 -4
  22. package/dist/device/interfaces/index.d.ts +3 -0
  23. package/dist/device/interfaces/index.js +3 -0
  24. package/dist/esm2022/company/entities/company.entity.mjs +46 -0
  25. package/dist/esm2022/company/entities/index.mjs +3 -0
  26. package/dist/esm2022/company/enums/index.mjs +4 -0
  27. package/dist/esm2022/company/index.mjs +4 -4
  28. package/dist/esm2022/company/interfaces/index.mjs +2 -0
  29. package/dist/esm2022/device/entities/device.entity.mjs +31 -0
  30. package/dist/esm2022/device/entities/index.mjs +5 -0
  31. package/dist/esm2022/device/entities/metadata.entity.mjs +17 -0
  32. package/dist/esm2022/device/entities/natigo.entity.mjs +19 -0
  33. package/dist/esm2022/device/enums/index.mjs +3 -0
  34. package/dist/esm2022/device/index.mjs +4 -3
  35. package/dist/esm2022/device/interfaces/index.mjs +3 -0
  36. package/dist/esm2022/general/entities/address.entity.mjs +24 -0
  37. package/dist/esm2022/general/entities/coords.entity.mjs +14 -0
  38. package/dist/esm2022/general/entities/delivery-area.entity.mjs +23 -0
  39. package/dist/esm2022/general/entities/dellivery-area-fixed.entity.mjs +20 -0
  40. package/dist/esm2022/general/entities/index.mjs +13 -0
  41. package/dist/esm2022/general/entities/messager-channel.entity.mjs +18 -0
  42. package/dist/esm2022/general/entities/mobyo-apiconfig.entity.mjs +21 -0
  43. package/dist/esm2022/general/entities/origin.entity.mjs +22 -0
  44. package/dist/esm2022/general/entities/payment-method.entity.mjs +31 -0
  45. package/dist/esm2022/general/entities/payment-provider-agent.entity.mjs +17 -0
  46. package/dist/esm2022/general/entities/payment-provider.entity.mjs +29 -0
  47. package/dist/esm2022/general/entities/payment-token-data.entity.mjs +22 -0
  48. package/dist/esm2022/general/entities/payment-token.entity.mjs +21 -0
  49. package/dist/esm2022/general/enums/index.mjs +7 -0
  50. package/dist/esm2022/general/enums/payment-type.enum.mjs +2 -1
  51. package/dist/esm2022/general/index.mjs +4 -7
  52. package/dist/esm2022/general/interfaces/i-address.mjs +1 -1
  53. package/dist/esm2022/general/interfaces/{i-mobyo-server-api.mjs → i-mobyo-api-config.mjs} +1 -1
  54. package/dist/esm2022/general/interfaces/i-payment-provider.mjs +1 -1
  55. package/dist/esm2022/general/interfaces/i-payment-token-data.mjs +3 -0
  56. package/dist/esm2022/general/interfaces/i-payment-token.mjs +3 -0
  57. package/dist/esm2022/general/interfaces/index.mjs +3 -0
  58. package/dist/esm2022/index.mjs +2 -2
  59. package/dist/esm2022/order/entities/index.mjs +20 -0
  60. package/dist/esm2022/order/entities/order-additional-fees.entity.mjs +17 -0
  61. package/dist/esm2022/order/entities/order-benefits-sponsor-ship.entity.mjs +17 -0
  62. package/dist/esm2022/order/entities/order-benefits.entity.mjs +21 -0
  63. package/dist/esm2022/order/entities/order-cancellation.entity.mjs +18 -0
  64. package/dist/esm2022/order/entities/order-customer-phone.entity.mjs +19 -0
  65. package/dist/esm2022/order/entities/order-customer.entity.mjs +23 -0
  66. package/dist/esm2022/order/entities/order-item-composition.entity.mjs +21 -0
  67. package/dist/esm2022/order/entities/order-item-option.entity.mjs +30 -0
  68. package/dist/esm2022/order/entities/order-item.entity.mjs +36 -0
  69. package/dist/esm2022/order/entities/order-payment-card.entity.mjs +16 -0
  70. package/dist/esm2022/order/entities/order-payment-cash.entity.mjs +16 -0
  71. package/dist/esm2022/order/entities/order-payment-method.entity.mjs +27 -0
  72. package/dist/esm2022/order/entities/order-payment-pix.entity.mjs +17 -0
  73. package/dist/esm2022/order/entities/order-payment-wallet.entity.mjs +16 -0
  74. package/dist/esm2022/order/entities/order-payment.entity.mjs +18 -0
  75. package/dist/esm2022/order/entities/order-scale-item.entity.mjs +17 -0
  76. package/dist/esm2022/order/entities/order-scale-price.entity.mjs +17 -0
  77. package/dist/esm2022/order/entities/order-total.entity.mjs +20 -0
  78. package/dist/esm2022/order/entities/order.entity.mjs +34 -0
  79. package/dist/esm2022/order/enums/index.mjs +3 -0
  80. package/dist/esm2022/{general/enums/order-satus.enum.mjs → order/enums/order-status.enum.mjs} +1 -1
  81. package/dist/esm2022/order/index.mjs +4 -0
  82. package/dist/esm2022/order/interfaces/i-order-additional-fee.mjs +2 -0
  83. package/dist/esm2022/order/interfaces/i-order-benefits-sponsor-ship.mjs +2 -0
  84. package/dist/esm2022/order/interfaces/i-order-benefits.mjs +2 -0
  85. package/dist/esm2022/order/interfaces/i-order-cancellation.mjs +2 -0
  86. package/dist/esm2022/order/interfaces/i-order-customer-phone.mjs +2 -0
  87. package/dist/esm2022/order/interfaces/i-order-customer.mjs +2 -0
  88. package/dist/esm2022/order/interfaces/i-order-item-composition.mjs +2 -0
  89. package/dist/esm2022/order/interfaces/i-order-item-option.mjs +2 -0
  90. package/dist/esm2022/order/interfaces/i-order-item.mjs +2 -0
  91. package/dist/esm2022/order/interfaces/i-order-payment-card.mjs +2 -0
  92. package/dist/esm2022/order/interfaces/i-order-payment-cash.mjs +2 -0
  93. package/dist/esm2022/order/interfaces/i-order-payment-method.mjs +2 -0
  94. package/dist/esm2022/order/interfaces/i-order-payment-pix.mjs +2 -0
  95. package/dist/esm2022/order/interfaces/i-order-payment-wallet.mjs +2 -0
  96. package/dist/esm2022/order/interfaces/i-order-payment.mjs +2 -0
  97. package/dist/esm2022/order/interfaces/i-order-scale-item.mjs +2 -0
  98. package/dist/esm2022/order/interfaces/i-order-scale-price.mjs +2 -0
  99. package/dist/esm2022/order/interfaces/i-order-total.mjs +2 -0
  100. package/dist/esm2022/order/interfaces/i-order.mjs +2 -0
  101. package/dist/esm2022/order/interfaces/index.mjs +2 -0
  102. package/dist/esm2022/purchases/entities/app-info.entity.mjs +18 -0
  103. package/dist/esm2022/purchases/entities/index.mjs +3 -0
  104. package/dist/esm2022/purchases/entities/purchase.entity.mjs +23 -0
  105. package/dist/esm2022/purchases/index.mjs +3 -3
  106. package/dist/esm2022/purchases/interfaces/i-purchase.mjs +1 -1
  107. package/dist/esm2022/purchases/interfaces/index.mjs +2 -0
  108. package/dist/fesm2022/cecon-interfaces.mjs +876 -31
  109. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  110. package/dist/general/entities/address.entity.d.ts +12 -0
  111. package/dist/general/entities/address.entity.js +28 -0
  112. package/dist/general/entities/coords.entity.d.ts +5 -0
  113. package/dist/general/entities/coords.entity.js +18 -0
  114. package/dist/general/entities/delivery-area.entity.d.ts +12 -0
  115. package/dist/general/entities/delivery-area.entity.js +27 -0
  116. package/dist/general/entities/dellivery-area-fixed.entity.d.ts +8 -0
  117. package/dist/general/entities/dellivery-area-fixed.entity.js +24 -0
  118. package/dist/general/entities/index.d.ts +12 -0
  119. package/dist/general/entities/index.js +27 -0
  120. package/dist/general/entities/messager-channel.entity.d.ts +6 -0
  121. package/dist/general/entities/messager-channel.entity.js +22 -0
  122. package/dist/general/entities/mobyo-apiconfig.entity.d.ts +9 -0
  123. package/dist/general/entities/mobyo-apiconfig.entity.js +25 -0
  124. package/dist/general/entities/origin.entity.d.ts +10 -0
  125. package/dist/general/entities/origin.entity.js +26 -0
  126. package/dist/general/entities/payment-method.entity.d.ts +19 -0
  127. package/dist/general/entities/payment-method.entity.js +35 -0
  128. package/dist/general/entities/payment-provider-agent.entity.d.ts +5 -0
  129. package/dist/general/entities/payment-provider-agent.entity.js +21 -0
  130. package/dist/general/entities/payment-provider.entity.d.ts +18 -0
  131. package/dist/general/entities/payment-provider.entity.js +33 -0
  132. package/dist/general/entities/payment-token-data.entity.d.ts +10 -0
  133. package/dist/general/entities/payment-token-data.entity.js +26 -0
  134. package/dist/general/entities/payment-token.entity.d.ts +9 -0
  135. package/dist/general/entities/payment-token.entity.js +25 -0
  136. package/dist/general/enums/index.d.ts +6 -0
  137. package/dist/general/enums/index.js +15 -0
  138. package/dist/general/enums/payment-type.enum.d.ts +1 -0
  139. package/dist/general/enums/payment-type.enum.js +1 -0
  140. package/dist/general/index.d.ts +3 -17
  141. package/dist/general/index.js +17 -12
  142. package/dist/general/interfaces/i-address.d.ts +2 -0
  143. package/dist/general/interfaces/i-payment-provider.d.ts +1 -1
  144. package/dist/general/interfaces/{i-payment-tokens.d.ts → i-payment-token.d.ts} +1 -1
  145. package/dist/general/interfaces/index.d.ts +12 -0
  146. package/dist/general/interfaces/index.js +3 -0
  147. package/dist/index.d.ts +1 -0
  148. package/dist/index.js +1 -1
  149. package/dist/order/entities/index.d.ts +19 -0
  150. package/dist/order/entities/index.js +41 -0
  151. package/dist/order/entities/order-additional-fees.entity.d.ts +5 -0
  152. package/dist/order/entities/order-additional-fees.entity.js +21 -0
  153. package/dist/order/entities/order-benefits-sponsor-ship.entity.d.ts +5 -0
  154. package/dist/order/entities/order-benefits-sponsor-ship.entity.js +21 -0
  155. package/dist/order/entities/order-benefits.entity.d.ts +10 -0
  156. package/dist/order/entities/order-benefits.entity.js +25 -0
  157. package/dist/order/entities/order-cancellation.entity.d.ts +6 -0
  158. package/dist/order/entities/order-cancellation.entity.js +22 -0
  159. package/dist/order/entities/order-customer-phone.entity.d.ts +7 -0
  160. package/dist/order/entities/order-customer-phone.entity.js +23 -0
  161. package/dist/order/entities/order-customer.entity.d.ts +11 -0
  162. package/dist/order/entities/order-customer.entity.js +27 -0
  163. package/dist/order/entities/order-item-composition.entity.d.ts +9 -0
  164. package/dist/order/entities/order-item-composition.entity.js +25 -0
  165. package/dist/order/entities/order-item-option.entity.d.ts +18 -0
  166. package/dist/order/entities/order-item-option.entity.js +34 -0
  167. package/dist/order/entities/order-item.entity.d.ts +26 -0
  168. package/dist/order/entities/order-item.entity.js +40 -0
  169. package/dist/order/entities/order-payment-card.entity.d.ts +4 -0
  170. package/dist/order/entities/order-payment-card.entity.js +20 -0
  171. package/dist/order/entities/order-payment-cash.entity.d.ts +4 -0
  172. package/dist/order/entities/order-payment-cash.entity.js +20 -0
  173. package/dist/order/entities/order-payment-method.entity.d.ts +19 -0
  174. package/dist/order/entities/order-payment-method.entity.js +31 -0
  175. package/dist/order/entities/order-payment-pix.entity.d.ts +5 -0
  176. package/dist/order/entities/order-payment-pix.entity.js +21 -0
  177. package/dist/order/entities/order-payment-wallet.entity.d.ts +4 -0
  178. package/dist/order/entities/order-payment-wallet.entity.js +20 -0
  179. package/dist/order/entities/order-payment.entity.d.ts +7 -0
  180. package/dist/order/entities/order-payment.entity.js +22 -0
  181. package/dist/order/entities/order-scale-item.entity.d.ts +5 -0
  182. package/dist/order/entities/order-scale-item.entity.js +21 -0
  183. package/dist/order/entities/order-scale-price.entity.d.ts +6 -0
  184. package/dist/order/entities/order-scale-price.entity.js +21 -0
  185. package/dist/order/entities/order-total.entity.d.ts +8 -0
  186. package/dist/order/entities/order-total.entity.js +24 -0
  187. package/dist/order/entities/order.entity.d.ts +27 -0
  188. package/dist/order/entities/order.entity.js +38 -0
  189. package/dist/order/enums/index.d.ts +1 -0
  190. package/dist/order/enums/index.js +6 -0
  191. package/dist/order/index.d.ts +3 -0
  192. package/dist/order/index.js +19 -0
  193. package/dist/order/interfaces/i-order-additional-fee.d.ts +4 -0
  194. package/dist/order/interfaces/i-order-additional-fee.js +2 -0
  195. package/dist/order/interfaces/i-order-benefits-sponsor-ship.d.ts +4 -0
  196. package/dist/order/interfaces/i-order-benefits-sponsor-ship.js +2 -0
  197. package/dist/order/interfaces/i-order-benefits.d.ts +9 -0
  198. package/dist/order/interfaces/i-order-benefits.js +2 -0
  199. package/dist/order/interfaces/i-order-cancellation.d.ts +5 -0
  200. package/dist/order/interfaces/i-order-cancellation.js +2 -0
  201. package/dist/order/interfaces/i-order-customer-phone.d.ts +6 -0
  202. package/dist/order/interfaces/i-order-customer-phone.js +2 -0
  203. package/dist/order/interfaces/i-order-customer.d.ts +10 -0
  204. package/dist/order/interfaces/i-order-customer.js +2 -0
  205. package/dist/order/interfaces/i-order-item-composition.d.ts +8 -0
  206. package/dist/order/interfaces/i-order-item-composition.js +2 -0
  207. package/dist/order/interfaces/i-order-item-option.d.ts +17 -0
  208. package/dist/order/interfaces/i-order-item-option.js +2 -0
  209. package/dist/order/interfaces/i-order-item.d.ts +25 -0
  210. package/dist/order/interfaces/i-order-item.js +2 -0
  211. package/dist/order/interfaces/i-order-payment-card.d.ts +3 -0
  212. package/dist/order/interfaces/i-order-payment-card.js +2 -0
  213. package/dist/order/interfaces/i-order-payment-cash.d.ts +3 -0
  214. package/dist/order/interfaces/i-order-payment-cash.js +2 -0
  215. package/dist/order/interfaces/i-order-payment-method.d.ts +18 -0
  216. package/dist/order/interfaces/i-order-payment-method.js +2 -0
  217. package/dist/order/interfaces/i-order-payment-pix.d.ts +4 -0
  218. package/dist/order/interfaces/i-order-payment-pix.js +2 -0
  219. package/dist/order/interfaces/i-order-payment-wallet.d.ts +3 -0
  220. package/dist/order/interfaces/i-order-payment-wallet.js +2 -0
  221. package/dist/order/interfaces/i-order-payment.d.ts +6 -0
  222. package/dist/order/interfaces/i-order-payment.js +2 -0
  223. package/dist/order/interfaces/i-order-scale-item.d.ts +4 -0
  224. package/dist/order/interfaces/i-order-scale-item.js +2 -0
  225. package/dist/order/interfaces/i-order-scale-price.d.ts +5 -0
  226. package/dist/order/interfaces/i-order-scale-price.js +2 -0
  227. package/dist/order/interfaces/i-order-total.d.ts +12 -0
  228. package/dist/order/interfaces/i-order-total.js +2 -0
  229. package/dist/order/interfaces/i-order.d.ts +26 -0
  230. package/dist/order/interfaces/i-order.js +2 -0
  231. package/dist/order/interfaces/index.d.ts +19 -0
  232. package/dist/order/interfaces/index.js +2 -0
  233. package/dist/package.json +1 -1
  234. package/dist/purchases/entities/app-info.entity.d.ts +6 -0
  235. package/dist/purchases/entities/app-info.entity.js +22 -0
  236. package/dist/purchases/entities/index.d.ts +2 -0
  237. package/dist/purchases/entities/index.js +7 -0
  238. package/dist/purchases/entities/purchase.entity.d.ts +10 -0
  239. package/dist/purchases/entities/purchase.entity.js +44 -0
  240. package/dist/purchases/index.d.ts +2 -3
  241. package/dist/purchases/index.js +16 -1
  242. package/dist/purchases/interfaces/i-purchase.d.ts +7 -15
  243. package/dist/purchases/interfaces/index.d.ts +2 -0
  244. package/dist/purchases/interfaces/index.js +2 -0
  245. package/package.json +1 -1
  246. package/tsconfig.json +3 -3
  247. package/dist/esm2022/general/interfaces/i-payment-tokens-data.mjs +0 -3
  248. package/dist/esm2022/general/interfaces/i-payment-tokens.mjs +0 -3
  249. package/dist/esm2022/purchases/interfaces/i-payment-details.mjs +0 -2
  250. package/dist/purchases/interfaces/i-payment-details.d.ts +0 -17
  251. /package/dist/{general/interfaces/i-mobyo-server-api.js → company/interfaces/index.js} +0 -0
  252. /package/dist/general/interfaces/{i-mobyo-server-api.d.ts → i-mobyo-api-config.d.ts} +0 -0
  253. /package/dist/{purchases/interfaces/i-payment-details.js → general/interfaces/i-mobyo-api-config.js} +0 -0
  254. /package/dist/general/interfaces/{i-payment-tokens-data.d.ts → i-payment-token-data.d.ts} +0 -0
  255. /package/dist/general/interfaces/{i-payment-tokens-data.js → i-payment-token-data.js} +0 -0
  256. /package/dist/general/interfaces/{i-payment-tokens.js → i-payment-token.js} +0 -0
  257. /package/dist/{general/enums/order-satus.enum.d.ts → order/enums/order-status.enum.d.ts} +0 -0
  258. /package/dist/{general/enums/order-satus.enum.js → order/enums/order-status.enum.js} +0 -0
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderItemEntity = void 0;
4
+ var order_scale_price_entity_1 = require("./order-scale-price.entity");
5
+ var OrderItemEntity = /** @class */ (function () {
6
+ // #endregion Properties (20)
7
+ // #region Constructors (1)
8
+ function OrderItemEntity(data) {
9
+ // #region Properties (20)
10
+ this.composition = [];
11
+ this.ean = '';
12
+ this.externalCode = '';
13
+ this.id = '';
14
+ this.index = 0;
15
+ this.name = '';
16
+ this.observations = '';
17
+ this.options = [];
18
+ this.optionsPrice = 0;
19
+ this.picture = '';
20
+ this.preparationPlaceId = '';
21
+ this.price = 0;
22
+ this.productId = 0;
23
+ this.quantity = 0;
24
+ this.scalePrices = new order_scale_price_entity_1.OrderScaleEntity();
25
+ this.skill = '';
26
+ this.totalPrice = 0;
27
+ this.unit = '';
28
+ this.unitPrice = 0;
29
+ this.weight = 0;
30
+ if (data) {
31
+ for (var key in data) {
32
+ if (data.hasOwnProperty(key) && key in this) {
33
+ this[key] = data[key];
34
+ }
35
+ }
36
+ }
37
+ }
38
+ return OrderItemEntity;
39
+ }());
40
+ exports.OrderItemEntity = OrderItemEntity;
@@ -0,0 +1,4 @@
1
+ export declare class OrderPaymentCardEntity {
2
+ brand: string;
3
+ constructor(data?: Partial<OrderPaymentCardEntity>);
4
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderPaymentCardEntity = void 0;
4
+ var OrderPaymentCardEntity = /** @class */ (function () {
5
+ // #endregion Properties (1)
6
+ // #region Constructors (1)
7
+ function OrderPaymentCardEntity(data) {
8
+ // #region Properties (1)
9
+ this.brand = '';
10
+ if (data) {
11
+ for (var key in data) {
12
+ if (data.hasOwnProperty(key) && key in this) {
13
+ this[key] = data[key];
14
+ }
15
+ }
16
+ }
17
+ }
18
+ return OrderPaymentCardEntity;
19
+ }());
20
+ exports.OrderPaymentCardEntity = OrderPaymentCardEntity;
@@ -0,0 +1,4 @@
1
+ export declare class OrderPaymentCashEntity {
2
+ changeFor: number;
3
+ constructor(data?: Partial<OrderPaymentCashEntity>);
4
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderPaymentCashEntity = void 0;
4
+ var OrderPaymentCashEntity = /** @class */ (function () {
5
+ // #endregion Properties (1)
6
+ // #region Constructors (1)
7
+ function OrderPaymentCashEntity(data) {
8
+ // #region Properties (1)
9
+ this.changeFor = 0;
10
+ if (data) {
11
+ for (var key in data) {
12
+ if (data.hasOwnProperty(key) && key in this) {
13
+ this[key] = data[key];
14
+ }
15
+ }
16
+ }
17
+ }
18
+ return OrderPaymentCashEntity;
19
+ }());
20
+ exports.OrderPaymentCashEntity = OrderPaymentCashEntity;
@@ -0,0 +1,19 @@
1
+ import { PaymentTypeEnum } from '../../general';
2
+ import { OrderPaymentCardEntity } from './order-payment-card.entity';
3
+ import { OrderPaymentCashEntity } from './order-payment-cash.entity';
4
+ import { OrderPaymentPixEntity } from './order-payment-pix.entity';
5
+ import { OrderPaymentWalletEntity } from './order-payment-wallet.entity';
6
+ export declare class OrderPaymentMethodEntity {
7
+ card?: OrderPaymentCardEntity | null;
8
+ cash?: OrderPaymentCashEntity | null;
9
+ code: string;
10
+ currency: string;
11
+ id: string;
12
+ method: PaymentTypeEnum;
13
+ pix?: OrderPaymentPixEntity | null;
14
+ prepaid: boolean;
15
+ type: 'ONLINE' | 'OFFLINE';
16
+ value: number;
17
+ wallet?: OrderPaymentWalletEntity | null;
18
+ constructor(data?: Partial<OrderPaymentMethodEntity>);
19
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderPaymentMethodEntity = void 0;
4
+ var general_1 = require("../../general");
5
+ var OrderPaymentMethodEntity = /** @class */ (function () {
6
+ // #endregion Properties (11)
7
+ // #region Constructors (1)
8
+ function OrderPaymentMethodEntity(data) {
9
+ // #region Properties (11)
10
+ this.card = null;
11
+ this.cash = null;
12
+ this.code = '';
13
+ this.currency = 'BRL';
14
+ this.id = '';
15
+ this.method = general_1.PaymentTypeEnum.CASH;
16
+ this.pix = null;
17
+ this.prepaid = false;
18
+ this.type = 'OFFLINE';
19
+ this.value = 0;
20
+ this.wallet = null;
21
+ if (data) {
22
+ for (var key in data) {
23
+ if (data.hasOwnProperty(key) && key in this) {
24
+ this[key] = data[key];
25
+ }
26
+ }
27
+ }
28
+ }
29
+ return OrderPaymentMethodEntity;
30
+ }());
31
+ exports.OrderPaymentMethodEntity = OrderPaymentMethodEntity;
@@ -0,0 +1,5 @@
1
+ export declare class OrderPaymentPixEntity {
2
+ pixKey: string;
3
+ urlQrImage: string;
4
+ constructor(data?: Partial<OrderPaymentPixEntity>);
5
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderPaymentPixEntity = void 0;
4
+ var OrderPaymentPixEntity = /** @class */ (function () {
5
+ // #endregion Properties (2)
6
+ // #region Constructors (1)
7
+ function OrderPaymentPixEntity(data) {
8
+ // #region Properties (2)
9
+ this.pixKey = '';
10
+ this.urlQrImage = '';
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 OrderPaymentPixEntity;
20
+ }());
21
+ exports.OrderPaymentPixEntity = OrderPaymentPixEntity;
@@ -0,0 +1,4 @@
1
+ export declare class OrderPaymentWalletEntity {
2
+ name: string;
3
+ constructor(data?: Partial<OrderPaymentWalletEntity>);
4
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderPaymentWalletEntity = void 0;
4
+ var OrderPaymentWalletEntity = /** @class */ (function () {
5
+ // #endregion Properties (1)
6
+ // #region Constructors (1)
7
+ function OrderPaymentWalletEntity(data) {
8
+ // #region Properties (1)
9
+ this.name = '';
10
+ if (data) {
11
+ for (var key in data) {
12
+ if (data.hasOwnProperty(key) && key in this) {
13
+ this[key] = data[key];
14
+ }
15
+ }
16
+ }
17
+ }
18
+ return OrderPaymentWalletEntity;
19
+ }());
20
+ exports.OrderPaymentWalletEntity = OrderPaymentWalletEntity;
@@ -0,0 +1,7 @@
1
+ import { OrderPaymentMethodEntity } from './order-payment-method.entity';
2
+ export declare class OrderPaymentEntity {
3
+ methods: OrderPaymentMethodEntity[];
4
+ pending: number;
5
+ prepaid: number;
6
+ constructor(data?: Partial<OrderPaymentEntity>);
7
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderPaymentEntity = void 0;
4
+ var OrderPaymentEntity = /** @class */ (function () {
5
+ // #endregion Properties (3)
6
+ // #region Constructors (1)
7
+ function OrderPaymentEntity(data) {
8
+ // #region Properties (3)
9
+ this.methods = [];
10
+ this.pending = 0;
11
+ this.prepaid = 0;
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 OrderPaymentEntity;
21
+ }());
22
+ exports.OrderPaymentEntity = OrderPaymentEntity;
@@ -0,0 +1,5 @@
1
+ export declare class OrderScaleItemEntity {
2
+ minQuantity: number;
3
+ price: number;
4
+ constructor(data?: Partial<OrderScaleItemEntity>);
5
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderScaleItemEntity = void 0;
4
+ var OrderScaleItemEntity = /** @class */ (function () {
5
+ // #endregion Properties (2)
6
+ // #region Constructors (1)
7
+ function OrderScaleItemEntity(data) {
8
+ // #region Properties (2)
9
+ this.minQuantity = 0;
10
+ this.price = 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 OrderScaleItemEntity;
20
+ }());
21
+ exports.OrderScaleItemEntity = OrderScaleItemEntity;
@@ -0,0 +1,6 @@
1
+ import { OrderScaleItemEntity } from './order-scale-item.entity';
2
+ export declare class OrderScaleEntity {
3
+ defaultPrice: number;
4
+ scales: OrderScaleItemEntity[];
5
+ constructor(data?: Partial<OrderScaleEntity>);
6
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderScaleEntity = void 0;
4
+ var OrderScaleEntity = /** @class */ (function () {
5
+ // #endregion Properties (2)
6
+ // #region Constructors (1)
7
+ function OrderScaleEntity(data) {
8
+ // #region Properties (2)
9
+ this.defaultPrice = 0;
10
+ this.scales = [];
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 OrderScaleEntity;
20
+ }());
21
+ exports.OrderScaleEntity = OrderScaleEntity;
@@ -0,0 +1,8 @@
1
+ export declare class OrderTotalEntity {
2
+ additionalFees: number;
3
+ benefits: number;
4
+ deliveryFee: number;
5
+ orderAmount: number;
6
+ subTotal: number;
7
+ constructor(data?: Partial<OrderTotalEntity>);
8
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderTotalEntity = void 0;
4
+ var OrderTotalEntity = /** @class */ (function () {
5
+ // #endregion Properties (5)
6
+ // #region Constructors (1)
7
+ function OrderTotalEntity(data) {
8
+ // #region Properties (5)
9
+ this.additionalFees = 0;
10
+ this.benefits = 0;
11
+ this.deliveryFee = 0;
12
+ this.orderAmount = 0;
13
+ this.subTotal = 0;
14
+ if (data) {
15
+ for (var key in data) {
16
+ if (data.hasOwnProperty(key) && key in this) {
17
+ this[key] = data[key];
18
+ }
19
+ }
20
+ }
21
+ }
22
+ return OrderTotalEntity;
23
+ }());
24
+ exports.OrderTotalEntity = OrderTotalEntity;
@@ -0,0 +1,27 @@
1
+ import { OrderStatusEnum } from '../enums';
2
+ import { OrderAdditionalFeeEntity } from './order-additional-fees.entity';
3
+ import { OrderBenefitsEntity } from './order-benefits.entity';
4
+ import { OrderCancellationEntity } from './order-cancellation.entity';
5
+ import { OrderCustomerEntity } from './order-customer.entity';
6
+ import { OrderItemEntity } from './order-item.entity';
7
+ import { OrderPaymentEntity } from './order-payment.entity';
8
+ import { OrderTotalEntity } from './order-total.entity';
9
+ export declare class OrderEntity {
10
+ additionalFees: OrderAdditionalFeeEntity[];
11
+ benefits: OrderBenefitsEntity[];
12
+ cancellation: OrderCancellationEntity;
13
+ companyId: string;
14
+ containerId: string;
15
+ createdAt: number;
16
+ customer: OrderCustomerEntity;
17
+ id: string;
18
+ items: OrderItemEntity[];
19
+ payments: OrderPaymentEntity;
20
+ salesChannel: string;
21
+ sandbox: boolean;
22
+ status: OrderStatusEnum;
23
+ total: OrderTotalEntity;
24
+ updatedAt: number;
25
+ version: string;
26
+ constructor(data?: Partial<OrderEntity>);
27
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrderEntity = void 0;
4
+ var enums_1 = require("../enums");
5
+ var order_cancellation_entity_1 = require("./order-cancellation.entity");
6
+ var order_customer_entity_1 = require("./order-customer.entity");
7
+ var order_payment_entity_1 = require("./order-payment.entity");
8
+ var order_total_entity_1 = require("./order-total.entity");
9
+ var OrderEntity = /** @class */ (function () {
10
+ function OrderEntity(data) {
11
+ // #region Properties (16)
12
+ this.additionalFees = [];
13
+ this.benefits = [];
14
+ this.cancellation = new order_cancellation_entity_1.OrderCancellationEntity();
15
+ this.companyId = '';
16
+ this.containerId = '';
17
+ this.createdAt = Date.now();
18
+ this.customer = new order_customer_entity_1.OrderCustomerEntity();
19
+ this.id = '';
20
+ this.items = [];
21
+ this.payments = new order_payment_entity_1.OrderPaymentEntity();
22
+ this.salesChannel = '';
23
+ this.sandbox = false;
24
+ this.status = enums_1.OrderStatusEnum.PENDING;
25
+ this.total = new order_total_entity_1.OrderTotalEntity();
26
+ this.updatedAt = Date.now();
27
+ this.version = '';
28
+ if (data) {
29
+ for (var key in data) {
30
+ if (data.hasOwnProperty(key) && key in this) {
31
+ this[key] = data[key];
32
+ }
33
+ }
34
+ }
35
+ }
36
+ return OrderEntity;
37
+ }());
38
+ exports.OrderEntity = OrderEntity;
@@ -0,0 +1 @@
1
+ export { OrderStatusEnum } from './order-status.enum';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // index.ts
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.OrderStatusEnum = void 0;
5
+ var order_status_enum_1 = require("./order-status.enum");
6
+ Object.defineProperty(exports, "OrderStatusEnum", { enumerable: true, get: function () { return order_status_enum_1.OrderStatusEnum; } });
@@ -0,0 +1,3 @@
1
+ export * from './entities';
2
+ export * from './enums';
3
+ export * from './interfaces';
@@ -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
+ __exportStar(require("./entities"), exports);
18
+ __exportStar(require("./enums"), exports);
19
+ __exportStar(require("./interfaces"), exports);
@@ -0,0 +1,4 @@
1
+ export interface IOrderAdditionalFee {
2
+ type: string;
3
+ value: number;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface ISponsorshipValues {
2
+ name: string;
3
+ value: number;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { ISponsorshipValues } from './i-order-benefits-sponsor-ship';
2
+ export interface IOrderBenefits {
3
+ description: string;
4
+ id: string;
5
+ sponsorshipValues: ISponsorshipValues[];
6
+ target: string;
7
+ targetId: string;
8
+ value: number;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface IOrderCancellation {
2
+ cancellationBy: string;
3
+ cancellationCode: string;
4
+ reason: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface IOrdersCustomerPhone {
2
+ description: String;
3
+ localizer: String;
4
+ localizerExpiration: String;
5
+ number: String;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { IOrdersCustomerPhone } from './i-order-customer-phone';
2
+ export interface IOrderCustomer {
3
+ documentNumber: string;
4
+ email: string;
5
+ id: string;
6
+ name: string;
7
+ ordersCountOnMerchant: number;
8
+ phone: IOrdersCustomerPhone;
9
+ picture: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export interface IOrderItemComposition {
2
+ amount: number;
3
+ code: string;
4
+ description: string;
5
+ imageURL: string;
6
+ quantity: number;
7
+ unit: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ export interface IOrderItemOption {
2
+ ean: string;
3
+ externalCode: string;
4
+ id: string;
5
+ index: number;
6
+ name: string;
7
+ options: IOrderItemOption[];
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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
1
+ import { IOrderItemComposition } from './i-order-item-composition';
2
+ import { IOrderItemOption } from './i-order-item-option';
3
+ import { IOrderScale } from './i-order-scale-price';
4
+ export interface IOrderItem {
5
+ composition: IOrderItemComposition[];
6
+ ean: string;
7
+ externalCode: string;
8
+ id: string;
9
+ index: number;
10
+ name: string;
11
+ observations: string;
12
+ options: IOrderItemOption[];
13
+ optionsPrice: number;
14
+ picture: string;
15
+ preparationPlaceId: string;
16
+ price: number;
17
+ productId: number;
18
+ quantity: number;
19
+ scalePrices: IOrderScale;
20
+ skill: string;
21
+ totalPrice: number;
22
+ unit: string;
23
+ unitPrice: number;
24
+ weight: number;
25
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface IOrderPaymentCard {
2
+ brand: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface IOrderPaymentCash {
2
+ changeFor: Number;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ import { PaymentTypeEnum } from '../../general';
2
+ import { IOrderPaymentCard } from './i-order-payment-card';
3
+ import { IOrderPaymentCash } from './i-order-payment-cash';
4
+ import { IOrderPaymentPix } from './i-order-payment-pix';
5
+ import { IOrderPaymentWallet } from './i-order-payment-wallet';
6
+ export interface IOrderPaymentMethod {
7
+ card?: IOrderPaymentCard;
8
+ cash?: IOrderPaymentCash;
9
+ code: string;
10
+ currency: 'BRL';
11
+ id: string;
12
+ method: PaymentTypeEnum;
13
+ pix?: IOrderPaymentPix;
14
+ prepaid: boolean;
15
+ type: 'ONLINE' | 'OFFLINE';
16
+ value: number;
17
+ wallet?: IOrderPaymentWallet;
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface IOrderPaymentPix {
2
+ pixKey: string;
3
+ urlQrImage: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface IOrderPaymentWallet {
2
+ name: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { IOrderPaymentMethod } from './i-order-payment-method';
2
+ export interface IOrderPayment {
3
+ methods: IOrderPaymentMethod[];
4
+ pending: number;
5
+ prepaid: number;
6
+ }