@chift/chift-nodejs 1.0.5 → 1.0.7

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.
Files changed (70) hide show
  1. package/.github/workflows/ci.yml +38 -38
  2. package/CHANGELOG.md +22 -0
  3. package/dist/src/modules/accounting.d.ts +6 -6
  4. package/dist/src/modules/accounting.js +17 -11
  5. package/dist/src/modules/api.d.ts +1925 -27777
  6. package/dist/src/modules/consumer.d.ts +372 -70
  7. package/dist/src/modules/consumer.js +10 -0
  8. package/dist/src/modules/consumers.d.ts +1931 -396
  9. package/dist/src/modules/ecommerce.d.ts +8 -0
  10. package/dist/src/modules/ecommerce.js +28 -0
  11. package/dist/src/modules/flow.js +1 -1
  12. package/dist/src/modules/internalApi.js +10 -5
  13. package/dist/src/modules/pos.d.ts +6 -0
  14. package/dist/src/modules/pos.js +21 -0
  15. package/dist/src/modules/sync.d.ts +1552 -324
  16. package/dist/src/modules/syncs.d.ts +8 -27387
  17. package/dist/src/modules/syncs.js +10 -0
  18. package/dist/test/modules/accounting.test.js +0 -11
  19. package/dist/test/modules/ecommerce.test.js +34 -7
  20. package/dist/test/modules/pos.test.js +18 -0
  21. package/jest.config.ts +1 -1
  22. package/package.json +2 -2
  23. package/src/modules/accounting.ts +25 -13
  24. package/src/modules/api.ts +2 -2
  25. package/src/modules/consumer.ts +21 -0
  26. package/src/modules/ecommerce.ts +52 -0
  27. package/src/modules/flow.ts +1 -1
  28. package/src/modules/pos.ts +40 -0
  29. package/src/modules/sync.ts +1 -1
  30. package/src/modules/syncs.ts +34 -3
  31. package/src/types/public-api/schema.d.ts +3299 -1950
  32. package/test/modules/accounting.test.ts +0 -14
  33. package/test/modules/consumer.test.ts +1 -1
  34. package/test/modules/ecommerce.test.ts +34 -3
  35. package/test/modules/pos.test.ts +21 -0
  36. package/.eslintcache +0 -1
  37. package/coverage/clover.xml +0 -1645
  38. package/coverage/coverage-final.json +0 -19
  39. package/coverage/lcov-report/base.css +0 -224
  40. package/coverage/lcov-report/block-navigation.js +0 -87
  41. package/coverage/lcov-report/favicon.png +0 -0
  42. package/coverage/lcov-report/index.html +0 -146
  43. package/coverage/lcov-report/prettify.css +0 -1
  44. package/coverage/lcov-report/prettify.js +0 -2
  45. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  46. package/coverage/lcov-report/sorter.js +0 -196
  47. package/coverage/lcov-report/src/helpers/index.html +0 -131
  48. package/coverage/lcov-report/src/helpers/openapi.ts.html +0 -151
  49. package/coverage/lcov-report/src/helpers/settings.ts.html +0 -94
  50. package/coverage/lcov-report/src/index.html +0 -116
  51. package/coverage/lcov-report/src/index.ts.html +0 -88
  52. package/coverage/lcov-report/src/modules/accounting.ts.html +0 -1156
  53. package/coverage/lcov-report/src/modules/api.ts.html +0 -190
  54. package/coverage/lcov-report/src/modules/consumer.ts.html +0 -616
  55. package/coverage/lcov-report/src/modules/consumers.ts.html +0 -331
  56. package/coverage/lcov-report/src/modules/custom.ts.html +0 -193
  57. package/coverage/lcov-report/src/modules/datastores.ts.html +0 -142
  58. package/coverage/lcov-report/src/modules/ecommerce.ts.html +0 -331
  59. package/coverage/lcov-report/src/modules/flow.ts.html +0 -589
  60. package/coverage/lcov-report/src/modules/index.html +0 -326
  61. package/coverage/lcov-report/src/modules/integrations.ts.html +0 -151
  62. package/coverage/lcov-report/src/modules/internalApi.ts.html +0 -586
  63. package/coverage/lcov-report/src/modules/invoicing.ts.html +0 -391
  64. package/coverage/lcov-report/src/modules/pos.ts.html +0 -421
  65. package/coverage/lcov-report/src/modules/sync.ts.html +0 -316
  66. package/coverage/lcov-report/src/modules/syncs.ts.html +0 -169
  67. package/coverage/lcov-report/src/modules/webhooks.ts.html +0 -343
  68. package/coverage/lcov.info +0 -1976
  69. package/dist/test/modules/flow.test.d.ts +0 -1
  70. package/dist/test/modules/flow.test.js +0 -69
@@ -13,6 +13,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
13
13
  api: string;
14
14
  data?: Record<string, never> | undefined;
15
15
  status: "active" | "inactive";
16
+ agent?: {
17
+ status: "up" | "down";
18
+ } | undefined;
16
19
  }[]>;
17
20
  createConnection: (body?: components['schemas']['PostConnectionItem']) => Promise<{
18
21
  url: string;
@@ -23,6 +26,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
23
26
  deleteConnection: (connectionId: string) => Promise<{
24
27
  content: never;
25
28
  }>;
29
+ enableFlow: (syncId: string, flowId: string, body: components['schemas']['EnableFlowConsumer']) => Promise<SimpleResponseModel>;
26
30
  getSyncUrl: (body: components['schemas']['CreateConsumerSyncItem']) => Promise<{
27
31
  url: string;
28
32
  }>;
@@ -69,11 +73,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
69
73
  total: number;
70
74
  tax_amount: number;
71
75
  tax_rate?: number | undefined;
72
- description: string;
76
+ description?: string | undefined;
73
77
  discounts?: {
74
78
  name?: string | undefined;
75
79
  total: number;
76
80
  }[] | undefined;
81
+ product_id?: string | undefined;
82
+ accounting_category_id?: string | undefined;
77
83
  }[];
78
84
  payments: {
79
85
  id?: string | undefined;
@@ -115,6 +121,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
115
121
  country?: string | undefined;
116
122
  }[] | undefined;
117
123
  loyalty?: number | undefined;
124
+ birthdate?: string | undefined;
118
125
  }[]>;
119
126
  getOrder(orderId: string): import("../types/api").RequestData<{
120
127
  id: string;
@@ -135,11 +142,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
135
142
  total: number;
136
143
  tax_amount: number;
137
144
  tax_rate?: number | undefined;
138
- description: string;
145
+ description?: string | undefined;
139
146
  discounts?: {
140
147
  name?: string | undefined;
141
148
  total: number;
142
149
  }[] | undefined;
150
+ product_id?: string | undefined;
151
+ accounting_category_id?: string | undefined;
143
152
  }[];
144
153
  payments: {
145
154
  id?: string | undefined;
@@ -181,6 +190,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
181
190
  country?: string | undefined;
182
191
  }[] | undefined;
183
192
  loyalty?: number | undefined;
193
+ birthdate?: string | undefined;
184
194
  }>;
185
195
  createCustomer(customer: {
186
196
  first_name: string;
@@ -215,12 +225,33 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
215
225
  country?: string | undefined;
216
226
  }[] | undefined;
217
227
  loyalty?: number | undefined;
228
+ birthdate?: string | undefined;
218
229
  }>;
219
230
  getPaymentMethods(params: {}): import("../types/api").RequestData<{
220
231
  id: string;
221
232
  name: string;
222
233
  extra?: string | undefined;
223
234
  }[]>;
235
+ getProductCategories(params: {}): import("../types/api").RequestData<{
236
+ id: string;
237
+ source_ref: {
238
+ id?: string | undefined;
239
+ model?: string | undefined;
240
+ };
241
+ name: string;
242
+ parent_id?: string | undefined;
243
+ }[]>;
244
+ getProducts(params: {}): import("../types/api").RequestData<{
245
+ id: string;
246
+ categories?: string[] | undefined;
247
+ name: string;
248
+ description?: string | undefined;
249
+ prices: {
250
+ unit_price: number;
251
+ tax_rate: number;
252
+ }[];
253
+ accounting_category_ids?: string[] | undefined;
254
+ }[]>;
224
255
  getSales(params: {
225
256
  date_from: string;
226
257
  date_to: string;
@@ -274,11 +305,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
274
305
  total: number;
275
306
  tax_amount: number;
276
307
  tax_rate?: number | undefined;
277
- description: string;
308
+ description?: string | undefined;
278
309
  discounts?: {
279
310
  name?: string | undefined;
280
311
  total: number;
281
312
  }[] | undefined;
313
+ product_id?: string | undefined;
314
+ accounting_category_id?: string | undefined;
282
315
  }[];
283
316
  payments: {
284
317
  id?: string | undefined;
@@ -301,6 +334,14 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
301
334
  total: number;
302
335
  }[] | undefined;
303
336
  }>;
337
+ getAccountingCategories(params: {}): import("../types/api").RequestData<{
338
+ id: string;
339
+ name: string;
340
+ id_parent?: string | undefined;
341
+ code?: string | undefined;
342
+ ledger_account_code?: string | undefined;
343
+ posting_account_code?: string | undefined;
344
+ }[]>;
304
345
  }>;
305
346
  accounting: import("../types/api").ApiFor<{
306
347
  getAnalyticPlans(): import("../types/api").RequestData<{
@@ -379,6 +420,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
379
420
  account_number?: string | undefined;
380
421
  }, params: {
381
422
  force_merge?: string | undefined;
423
+ folder_id?: string | undefined;
382
424
  } | undefined): import("../types/api").RequestData<{
383
425
  external_reference?: string | undefined;
384
426
  first_name?: string | undefined;
@@ -590,6 +632,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
590
632
  account_number?: string | undefined;
591
633
  }, params: {
592
634
  force_merge?: string | undefined;
635
+ folder_id?: string | undefined;
593
636
  } | undefined): import("../types/api").RequestData<{
594
637
  external_reference?: string | undefined;
595
638
  first_name?: string | undefined;
@@ -733,8 +776,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
733
776
  createInvoice(invoice: {
734
777
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
735
778
  invoice_number?: string | undefined;
736
- invoice_date: string;
737
- due_date: string;
738
779
  currency: string;
739
780
  untaxed_amount: number;
740
781
  tax_amount: number;
@@ -742,6 +783,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
742
783
  reference?: string | undefined;
743
784
  payment_communication?: string | undefined;
744
785
  customer_memo?: string | undefined;
786
+ invoice_date: string;
787
+ due_date: string;
745
788
  partner_id: string;
746
789
  journal_id?: string | undefined;
747
790
  status?: "draft" | "posted" | undefined;
@@ -753,6 +796,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
753
796
  invoice_correction_credit_account_number?: string | undefined;
754
797
  invoice_correction_debit_account_number?: string | undefined;
755
798
  } | undefined;
799
+ nl_payment_terms_split?: {
800
+ g_account: {
801
+ amount: number;
802
+ iban: string;
803
+ };
804
+ n_account: {
805
+ amount: number;
806
+ iban: string;
807
+ };
808
+ } | undefined;
756
809
  lines: {
757
810
  line_number?: number | undefined;
758
811
  description: string;
@@ -770,11 +823,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
770
823
  }, params: {
771
824
  force_financial_period?: string | undefined;
772
825
  regroup_lines?: "true" | "false" | undefined;
826
+ folder_id?: string | undefined;
773
827
  } | undefined): import("../types/api").RequestData<{
774
828
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
775
829
  invoice_number?: string | undefined;
776
- invoice_date: string;
777
- due_date: string;
778
830
  currency: string;
779
831
  untaxed_amount: number;
780
832
  tax_amount: number;
@@ -783,6 +835,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
783
835
  payment_communication?: string | undefined;
784
836
  customer_memo?: string | undefined;
785
837
  id?: string | undefined;
838
+ invoice_date: string;
839
+ due_date: string;
786
840
  partner_id: string;
787
841
  journal_id: string;
788
842
  payments?: {
@@ -818,8 +872,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
818
872
  createInvoiceWithMultiplePlans(invoice: {
819
873
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
820
874
  invoice_number?: string | undefined;
821
- invoice_date: string;
822
- due_date: string;
823
875
  currency: string;
824
876
  untaxed_amount: number;
825
877
  tax_amount: number;
@@ -827,6 +879,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
827
879
  reference?: string | undefined;
828
880
  payment_communication?: string | undefined;
829
881
  customer_memo?: string | undefined;
882
+ invoice_date: string;
883
+ due_date: string;
830
884
  partner_id: string;
831
885
  journal_id?: string | undefined;
832
886
  status?: "draft" | "posted" | undefined;
@@ -838,6 +892,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
838
892
  invoice_correction_credit_account_number?: string | undefined;
839
893
  invoice_correction_debit_account_number?: string | undefined;
840
894
  } | undefined;
895
+ nl_payment_terms_split?: {
896
+ g_account: {
897
+ amount: number;
898
+ iban: string;
899
+ };
900
+ n_account: {
901
+ amount: number;
902
+ iban: string;
903
+ };
904
+ } | undefined;
841
905
  lines: {
842
906
  line_number?: number | undefined;
843
907
  description: string;
@@ -861,11 +925,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
861
925
  }, params: {
862
926
  force_financial_period?: string | undefined;
863
927
  regroup_lines?: "true" | "false" | undefined;
928
+ folder_id?: string | undefined;
864
929
  } | undefined): import("../types/api").RequestData<{
865
930
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
866
931
  invoice_number?: string | undefined;
867
- invoice_date: string;
868
- due_date: string;
869
932
  currency: string;
870
933
  untaxed_amount: number;
871
934
  tax_amount: number;
@@ -874,6 +937,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
874
937
  payment_communication?: string | undefined;
875
938
  customer_memo?: string | undefined;
876
939
  id?: string | undefined;
940
+ invoice_date: string;
941
+ due_date: string;
877
942
  partner_id: string;
878
943
  journal_id: string;
879
944
  payments?: {
@@ -915,8 +980,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
915
980
  getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
916
981
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
917
982
  invoice_number?: string | undefined;
918
- invoice_date: string;
919
- due_date: string;
920
983
  currency: string;
921
984
  untaxed_amount: number;
922
985
  tax_amount: number;
@@ -925,6 +988,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
925
988
  payment_communication?: string | undefined;
926
989
  customer_memo?: string | undefined;
927
990
  id?: string | undefined;
991
+ invoice_date: string;
992
+ due_date: string;
928
993
  partner_id: string;
929
994
  journal_id: string;
930
995
  payments?: {
@@ -959,11 +1024,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
959
1024
  }[]>;
960
1025
  getInvoice(invoiceId: string, params: {
961
1026
  include_payments?: "true" | "false" | undefined;
1027
+ folder_id?: string | undefined;
962
1028
  } | undefined): import("../types/api").RequestData<{
963
1029
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
964
1030
  invoice_number?: string | undefined;
965
- invoice_date: string;
966
- due_date: string;
967
1031
  currency: string;
968
1032
  untaxed_amount: number;
969
1033
  tax_amount: number;
@@ -972,6 +1036,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
972
1036
  payment_communication?: string | undefined;
973
1037
  customer_memo?: string | undefined;
974
1038
  id?: string | undefined;
1039
+ invoice_date: string;
1040
+ due_date: string;
975
1041
  partner_id: string;
976
1042
  journal_id: string;
977
1043
  payments?: {
@@ -1006,11 +1072,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1006
1072
  }>;
1007
1073
  getInvoiceWithMultiplePlans(invoiceId: string, params: {
1008
1074
  include_payments?: "true" | "false" | undefined;
1075
+ folder_id?: string | undefined;
1009
1076
  } | undefined): import("../types/api").RequestData<{
1010
1077
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1011
1078
  invoice_number?: string | undefined;
1012
- invoice_date: string;
1013
- due_date: string;
1014
1079
  currency: string;
1015
1080
  untaxed_amount: number;
1016
1081
  tax_amount: number;
@@ -1019,6 +1084,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1019
1084
  payment_communication?: string | undefined;
1020
1085
  customer_memo?: string | undefined;
1021
1086
  id?: string | undefined;
1087
+ invoice_date: string;
1088
+ due_date: string;
1022
1089
  partner_id: string;
1023
1090
  journal_id: string;
1024
1091
  payments?: {
@@ -1060,8 +1127,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1060
1127
  getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
1061
1128
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1062
1129
  invoice_number?: string | undefined;
1063
- invoice_date: string;
1064
- due_date: string;
1065
1130
  currency: string;
1066
1131
  untaxed_amount: number;
1067
1132
  tax_amount: number;
@@ -1070,6 +1135,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1070
1135
  payment_communication?: string | undefined;
1071
1136
  customer_memo?: string | undefined;
1072
1137
  id?: string | undefined;
1138
+ invoice_date: string;
1139
+ due_date: string;
1073
1140
  partner_id: string;
1074
1141
  journal_id: string;
1075
1142
  payments?: {
@@ -1114,21 +1181,21 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1114
1181
  name: string;
1115
1182
  currency: string;
1116
1183
  }): import("../types/api").RequestData<{
1117
- active?: boolean | undefined;
1184
+ id: string;
1185
+ active: boolean;
1118
1186
  code?: string | undefined;
1119
- name?: string | undefined;
1187
+ name: string;
1120
1188
  currency?: string | undefined;
1121
- id?: string | undefined;
1122
1189
  balance?: number | undefined;
1123
1190
  credit?: number | undefined;
1124
1191
  debit?: number | undefined;
1125
1192
  }>;
1126
1193
  getAnalyticAccounts(): import("../types/api").RequestData<{
1127
- active?: boolean | undefined;
1194
+ id: string;
1195
+ active: boolean;
1128
1196
  code?: string | undefined;
1129
- name?: string | undefined;
1197
+ name: string;
1130
1198
  currency?: string | undefined;
1131
- id?: string | undefined;
1132
1199
  balance?: number | undefined;
1133
1200
  credit?: number | undefined;
1134
1201
  debit?: number | undefined;
@@ -1139,22 +1206,22 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1139
1206
  name: string;
1140
1207
  currency: string;
1141
1208
  }): import("../types/api").RequestData<{
1142
- active?: boolean | undefined;
1209
+ id: string;
1210
+ active: boolean;
1143
1211
  code?: string | undefined;
1144
- name?: string | undefined;
1212
+ name: string;
1145
1213
  currency?: string | undefined;
1146
- id?: string | undefined;
1147
1214
  balance?: number | undefined;
1148
1215
  credit?: number | undefined;
1149
1216
  debit?: number | undefined;
1150
1217
  analytic_plan: string;
1151
1218
  }>;
1152
1219
  getAnalyticAccount(analytic_account_id: string): import("../types/api").RequestData<{
1153
- active?: boolean | undefined;
1220
+ id: string;
1221
+ active: boolean;
1154
1222
  code?: string | undefined;
1155
- name?: string | undefined;
1223
+ name: string;
1156
1224
  currency?: string | undefined;
1157
- id?: string | undefined;
1158
1225
  balance?: number | undefined;
1159
1226
  credit?: number | undefined;
1160
1227
  debit?: number | undefined;
@@ -1165,21 +1232,21 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1165
1232
  name?: string | undefined;
1166
1233
  currency?: string | undefined;
1167
1234
  }): import("../types/api").RequestData<{
1168
- active?: boolean | undefined;
1235
+ id: string;
1236
+ active: boolean;
1169
1237
  code?: string | undefined;
1170
- name?: string | undefined;
1238
+ name: string;
1171
1239
  currency?: string | undefined;
1172
- id?: string | undefined;
1173
1240
  balance?: number | undefined;
1174
1241
  credit?: number | undefined;
1175
1242
  debit?: number | undefined;
1176
1243
  }>;
1177
1244
  getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string): import("../types/api").RequestData<{
1178
- active?: boolean | undefined;
1245
+ id: string;
1246
+ active: boolean;
1179
1247
  code?: string | undefined;
1180
- name?: string | undefined;
1248
+ name: string;
1181
1249
  currency?: string | undefined;
1182
- id?: string | undefined;
1183
1250
  balance?: number | undefined;
1184
1251
  credit?: number | undefined;
1185
1252
  debit?: number | undefined;
@@ -1191,37 +1258,31 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1191
1258
  name?: string | undefined;
1192
1259
  currency?: string | undefined;
1193
1260
  }): import("../types/api").RequestData<{
1194
- active?: boolean | undefined;
1261
+ id: string;
1262
+ active: boolean;
1195
1263
  code?: string | undefined;
1196
- name?: string | undefined;
1264
+ name: string;
1197
1265
  currency?: string | undefined;
1198
- id?: string | undefined;
1199
1266
  balance?: number | undefined;
1200
1267
  credit?: number | undefined;
1201
1268
  debit?: number | undefined;
1202
1269
  analytic_plan: string;
1203
1270
  }>;
1204
1271
  getAnalyticAccountsWithMultiplePlans(): import("../types/api").RequestData<{
1205
- active?: boolean | undefined;
1272
+ id: string;
1273
+ active: boolean;
1206
1274
  code?: string | undefined;
1207
- name?: string | undefined;
1275
+ name: string;
1208
1276
  currency?: string | undefined;
1209
- id?: string | undefined;
1210
1277
  balance?: number | undefined;
1211
1278
  credit?: number | undefined;
1212
1279
  debit?: number | undefined;
1213
1280
  analytic_plan: string;
1214
1281
  }[]>;
1215
- getAnalyticLinesOfAccount(analytic_account_id: string): import("../types/api").RequestData<{
1216
- account_id: string;
1217
- description: string;
1218
- amount: number;
1219
- date: string;
1220
- id?: string | undefined;
1221
- }[]>;
1222
1282
  getJournalEntries(params: {
1223
1283
  date_from: string;
1224
1284
  date_to: string;
1285
+ folder_id?: string | undefined;
1225
1286
  unposted_allowed: "true" | "false";
1226
1287
  journal_id: string;
1227
1288
  partner_id?: string | undefined;
@@ -1253,6 +1314,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1253
1314
  getJournalEntriesWithMultiplePlans(params: {
1254
1315
  date_from: string;
1255
1316
  date_to: string;
1317
+ folder_id?: string | undefined;
1256
1318
  unposted_allowed: "true" | "false";
1257
1319
  journal_id: string;
1258
1320
  partner_id?: string | undefined;
@@ -1302,7 +1364,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1302
1364
  }[]>;
1303
1365
  getJournals(): import("../types/api").RequestData<{
1304
1366
  id: string;
1305
- code: string;
1367
+ code?: string | undefined;
1306
1368
  name: string;
1307
1369
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1308
1370
  }[]>;
@@ -1313,10 +1375,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1313
1375
  scope?: "unknown" | "nat" | "eu" | "int" | undefined;
1314
1376
  rate: number;
1315
1377
  type: "unknown" | "sale" | "purchase" | "both";
1378
+ deductible_account?: string | undefined;
1379
+ payable_account?: string | undefined;
1316
1380
  }[]>;
1317
1381
  getMiscOperations(params: {}): import("../types/api").RequestData<{
1318
1382
  operation_number?: string | undefined;
1319
- operation_date: string;
1320
1383
  currency: string;
1321
1384
  currency_exchange_rate?: number | undefined;
1322
1385
  lines: {
@@ -1328,13 +1391,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1328
1391
  partner_id?: string | undefined;
1329
1392
  analytic_account?: string | undefined;
1330
1393
  }[];
1394
+ operation_date?: string | undefined;
1331
1395
  journal_id: string;
1332
1396
  status: "draft" | "posted" | "cancelled" | "matched";
1333
1397
  id: string;
1334
1398
  }[]>;
1335
1399
  createMiscOperation(operation: {
1336
1400
  operation_number?: string | undefined;
1337
- operation_date: string;
1338
1401
  currency: string;
1339
1402
  currency_exchange_rate?: number | undefined;
1340
1403
  lines: {
@@ -1346,11 +1409,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1346
1409
  partner_id?: string | undefined;
1347
1410
  analytic_account?: string | undefined;
1348
1411
  }[];
1412
+ operation_date: string;
1349
1413
  journal_id?: string | undefined;
1350
1414
  status?: "draft" | "posted" | undefined;
1351
- }): import("../types/api").RequestData<{
1415
+ }, params: {
1416
+ folder_id?: string | undefined;
1417
+ } | undefined): import("../types/api").RequestData<{
1352
1418
  operation_number?: string | undefined;
1353
- operation_date: string;
1354
1419
  currency: string;
1355
1420
  currency_exchange_rate?: number | undefined;
1356
1421
  lines: {
@@ -1362,13 +1427,15 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1362
1427
  partner_id?: string | undefined;
1363
1428
  analytic_account?: string | undefined;
1364
1429
  }[];
1430
+ operation_date?: string | undefined;
1365
1431
  journal_id: string;
1366
1432
  status: "draft" | "posted" | "cancelled" | "matched";
1367
1433
  id: string;
1368
1434
  }>;
1369
- getMiscOperation(operation_id: string): import("../types/api").RequestData<{
1435
+ getMiscOperation(operation_id: string, params: {
1436
+ folder_id?: string | undefined;
1437
+ } | undefined): import("../types/api").RequestData<{
1370
1438
  operation_number?: string | undefined;
1371
- operation_date: string;
1372
1439
  currency: string;
1373
1440
  currency_exchange_rate?: number | undefined;
1374
1441
  lines: {
@@ -1380,6 +1447,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1380
1447
  partner_id?: string | undefined;
1381
1448
  analytic_account?: string | undefined;
1382
1449
  }[];
1450
+ operation_date?: string | undefined;
1383
1451
  journal_id: string;
1384
1452
  status: "draft" | "posted" | "cancelled" | "matched";
1385
1453
  id: string;
@@ -1388,6 +1456,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1388
1456
  base64_string: string;
1389
1457
  }, params: {
1390
1458
  overwrite_existing?: "true" | "false" | undefined;
1459
+ folder_id?: string | undefined;
1391
1460
  } | undefined): import("../types/api").RequestData<{
1392
1461
  content: {
1393
1462
  'application/json': unknown;
@@ -1403,13 +1472,21 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1403
1472
  accounts: string[];
1404
1473
  start: string;
1405
1474
  end: string;
1406
- }): import("../types/api").RequestData<{
1475
+ }, params: {
1476
+ folder_id?: string | undefined;
1477
+ page?: number | undefined;
1478
+ size?: number | undefined;
1479
+ } | undefined): import("../types/api").RequestData<{
1407
1480
  account_number: string;
1408
1481
  debit: number;
1409
1482
  credit: number;
1410
1483
  balance: number;
1411
1484
  }[]>;
1412
- getEmployees(): import("../types/api").RequestData<{
1485
+ getEmployees(params: {
1486
+ folder_id?: string | undefined;
1487
+ page?: number | undefined;
1488
+ size?: number | undefined;
1489
+ } | undefined): import("../types/api").RequestData<{
1413
1490
  id: string;
1414
1491
  name: string;
1415
1492
  first_name?: string | undefined;
@@ -1423,6 +1500,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1423
1500
  account_number?: string | undefined;
1424
1501
  }[]>;
1425
1502
  getOutstandings(params: {
1503
+ folder_id?: string | undefined;
1426
1504
  unposted_allowed: "true" | "false";
1427
1505
  type: "client" | "supplier";
1428
1506
  }): import("../types/api").RequestData<{
@@ -1439,6 +1517,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1439
1517
  partner_id: string;
1440
1518
  account_number: string;
1441
1519
  reference?: string | undefined;
1520
+ payment_communication?: string | undefined;
1442
1521
  posted: boolean;
1443
1522
  }[]>;
1444
1523
  createFinancialEntryOld(financial_entry: {
@@ -1458,6 +1537,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1458
1537
  pdf?: string | undefined;
1459
1538
  }, params: {
1460
1539
  financial_counterpart_account?: string | undefined;
1540
+ folder_id?: string | undefined;
1461
1541
  } | undefined): import("../types/api").RequestData<{
1462
1542
  date: string;
1463
1543
  journal_id: string;
@@ -1491,6 +1571,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1491
1571
  pdf?: string | undefined;
1492
1572
  }, params: {
1493
1573
  financial_counterpart_account?: string | undefined;
1574
+ folder_id?: string | undefined;
1494
1575
  } | undefined): import("../types/api").RequestData<{
1495
1576
  date: string;
1496
1577
  journal_id: string;
@@ -1507,7 +1588,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1507
1588
  counterpart_account: string;
1508
1589
  }[];
1509
1590
  }[]>;
1510
- createJournalEntry(journal_entry: {
1591
+ createJournalEntryOld(journal_entry: {
1511
1592
  reference?: string | undefined;
1512
1593
  due_date?: string | undefined;
1513
1594
  journal_id: string;
@@ -1528,8 +1609,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1528
1609
  percentage: number;
1529
1610
  }[];
1530
1611
  }[] | undefined;
1531
- pdf?: string | undefined;
1532
1612
  }[];
1613
+ pdf?: string | undefined;
1533
1614
  }): import("../types/api").RequestData<{
1534
1615
  reference?: string | undefined;
1535
1616
  due_date?: string | undefined;
@@ -1560,6 +1641,65 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1560
1641
  }[] | undefined;
1561
1642
  }[] | undefined;
1562
1643
  }>;
1644
+ createJournalEntry(journal_entry: {
1645
+ reference?: string | undefined;
1646
+ due_date?: string | undefined;
1647
+ journal_id: string;
1648
+ number: string;
1649
+ currency: string;
1650
+ currency_exchange_rate?: number | undefined;
1651
+ date: string;
1652
+ items: {
1653
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1654
+ account: string;
1655
+ force_general_account?: string | undefined;
1656
+ prioritise_thirdparty_account?: boolean | undefined;
1657
+ description?: string | undefined;
1658
+ debit: number;
1659
+ credit: number;
1660
+ analytic_distribution?: {
1661
+ analytic_plan: string;
1662
+ analytic_accounts: {
1663
+ analytic_account: string;
1664
+ percentage: number;
1665
+ }[];
1666
+ }[] | undefined;
1667
+ tax_code?: string | undefined;
1668
+ }[];
1669
+ pdf?: string | undefined;
1670
+ posted?: boolean | undefined;
1671
+ }, params: {
1672
+ folder_id?: string | undefined;
1673
+ } | undefined): import("../types/api").RequestData<{
1674
+ reference?: string | undefined;
1675
+ due_date?: string | undefined;
1676
+ journal_id: string;
1677
+ name?: string | undefined;
1678
+ journal_name: string;
1679
+ date?: string | undefined;
1680
+ posted?: boolean | undefined;
1681
+ id: string;
1682
+ items?: {
1683
+ account_number: string;
1684
+ partner_id?: string | undefined;
1685
+ description?: string | undefined;
1686
+ debit: number;
1687
+ credit: number;
1688
+ currency: string;
1689
+ currency_exchange_rate?: number | undefined;
1690
+ id: string;
1691
+ partner_name?: string | undefined;
1692
+ account_name: string;
1693
+ matching_numbers?: string[] | undefined;
1694
+ analytic_distribution?: {
1695
+ analytic_plan: string;
1696
+ analytic_accounts: {
1697
+ analytic_account: string;
1698
+ percentage: number;
1699
+ }[];
1700
+ }[] | undefined;
1701
+ }[] | undefined;
1702
+ }>;
1563
1703
  }>;
1564
1704
  invoicing: import("../types/api").ApiFor<{
1565
1705
  getInvoices(params: {
@@ -1567,6 +1707,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1567
1707
  payment_status?: "all" | "paid" | "unpaid" | undefined;
1568
1708
  date_from?: string | undefined;
1569
1709
  date_to?: string | undefined;
1710
+ updated_after?: string | undefined;
1570
1711
  page?: number | undefined;
1571
1712
  size?: number | undefined;
1572
1713
  } | undefined): import("../types/api").RequestData<{
@@ -1609,6 +1750,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1609
1750
  model?: string | undefined;
1610
1751
  name?: string | undefined;
1611
1752
  } | undefined;
1753
+ outstanding_amount?: number | undefined;
1754
+ last_updated_on?: string | undefined;
1612
1755
  }[]>;
1613
1756
  getInvoiceById(invoiceId: string, params: {
1614
1757
  include_pdf?: "true" | "false" | undefined;
@@ -1652,6 +1795,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1652
1795
  model?: string | undefined;
1653
1796
  name?: string | undefined;
1654
1797
  } | undefined;
1798
+ outstanding_amount?: number | undefined;
1799
+ last_updated_on?: string | undefined;
1655
1800
  }>;
1656
1801
  createInvoice(invoice: {
1657
1802
  currency: string;
@@ -1688,6 +1833,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1688
1833
  model?: string | undefined;
1689
1834
  name?: string | undefined;
1690
1835
  } | undefined;
1836
+ outstanding_amount?: number | undefined;
1691
1837
  }): import("../types/api").RequestData<{
1692
1838
  id: string;
1693
1839
  source_ref: {
@@ -1728,6 +1874,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1728
1874
  model?: string | undefined;
1729
1875
  name?: string | undefined;
1730
1876
  } | undefined;
1877
+ outstanding_amount?: number | undefined;
1878
+ last_updated_on?: string | undefined;
1731
1879
  }>;
1732
1880
  getProducts(): import("../types/api").RequestData<{
1733
1881
  id: string;
@@ -1743,6 +1891,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1743
1891
  category?: string | undefined;
1744
1892
  currency?: string | undefined;
1745
1893
  description?: string | undefined;
1894
+ available_quantity?: number | undefined;
1895
+ cost?: number | undefined;
1746
1896
  }[]>;
1747
1897
  getProductById(productId: string): import("../types/api").RequestData<{
1748
1898
  id: string;
@@ -1758,6 +1908,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1758
1908
  category?: string | undefined;
1759
1909
  currency?: string | undefined;
1760
1910
  description?: string | undefined;
1911
+ available_quantity?: number | undefined;
1912
+ cost?: number | undefined;
1761
1913
  }>;
1762
1914
  createProduct(product: {
1763
1915
  name: string;
@@ -1782,6 +1934,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1782
1934
  category?: string | undefined;
1783
1935
  currency?: string | undefined;
1784
1936
  description?: string | undefined;
1937
+ available_quantity?: number | undefined;
1938
+ cost?: number | undefined;
1785
1939
  }>;
1786
1940
  getTaxes(): import("../types/api").RequestData<{
1787
1941
  id: string;
@@ -1890,7 +2044,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1890
2044
  birthdate?: string | undefined;
1891
2045
  gender?: "H" | "F" | "N/A" | undefined;
1892
2046
  addresses?: {
1893
- address_type: "main" | "delivery" | "invoice";
2047
+ address_type: "main" | "delivery" | "invoice" | "other";
1894
2048
  name?: string | undefined;
1895
2049
  number?: string | undefined;
1896
2050
  box?: string | undefined;
@@ -1930,7 +2084,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1930
2084
  birthdate?: string | undefined;
1931
2085
  gender?: "H" | "F" | "N/A" | undefined;
1932
2086
  addresses?: {
1933
- address_type: "main" | "delivery" | "invoice";
2087
+ address_type: "main" | "delivery" | "invoice" | "other";
1934
2088
  name?: string | undefined;
1935
2089
  number?: string | undefined;
1936
2090
  box?: string | undefined;
@@ -1965,7 +2119,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1965
2119
  birthdate?: string | undefined;
1966
2120
  gender?: "H" | "F" | "N/A" | undefined;
1967
2121
  addresses?: {
1968
- address_type: "main" | "delivery" | "invoice";
2122
+ address_type: "main" | "delivery" | "invoice" | "other";
1969
2123
  name?: string | undefined;
1970
2124
  number?: string | undefined;
1971
2125
  box?: string | undefined;
@@ -2004,7 +2158,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2004
2158
  birthdate?: string | undefined;
2005
2159
  gender?: "H" | "F" | "N/A" | undefined;
2006
2160
  addresses?: {
2007
- address_type: "main" | "delivery" | "invoice";
2161
+ address_type: "main" | "delivery" | "invoice" | "other";
2008
2162
  name?: string | undefined;
2009
2163
  number?: string | undefined;
2010
2164
  box?: string | undefined;
@@ -2034,6 +2188,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2034
2188
  currency?: string | undefined;
2035
2189
  addresses?: {
2036
2190
  address_type: "main" | "delivery" | "invoice";
2191
+ company_name?: string | undefined;
2037
2192
  first_name?: string | undefined;
2038
2193
  last_name?: string | undefined;
2039
2194
  street?: string | undefined;
@@ -2127,6 +2282,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2127
2282
  currency?: string | undefined;
2128
2283
  addresses?: {
2129
2284
  address_type: "main" | "delivery" | "invoice";
2285
+ company_name?: string | undefined;
2130
2286
  first_name?: string | undefined;
2131
2287
  last_name?: string | undefined;
2132
2288
  street?: string | undefined;
@@ -2279,15 +2435,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2279
2435
  };
2280
2436
  order_number?: string | undefined;
2281
2437
  customer?: {
2282
- email: string;
2283
2438
  first_name?: string | undefined;
2284
2439
  last_name?: string | undefined;
2285
2440
  phone?: string | undefined;
2286
2441
  internal_notes?: string | undefined;
2442
+ email?: string | undefined;
2287
2443
  id: string;
2288
2444
  } | undefined;
2289
2445
  billing_address?: {
2290
2446
  address_type: "main" | "delivery" | "invoice";
2447
+ company_name?: string | undefined;
2291
2448
  first_name?: string | undefined;
2292
2449
  last_name?: string | undefined;
2293
2450
  street?: string | undefined;
@@ -2301,6 +2458,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2301
2458
  } | undefined;
2302
2459
  shipping_address?: {
2303
2460
  address_type: "main" | "delivery" | "invoice";
2461
+ company_name?: string | undefined;
2304
2462
  first_name?: string | undefined;
2305
2463
  last_name?: string | undefined;
2306
2464
  street?: string | undefined;
@@ -2326,6 +2484,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2326
2484
  total: number;
2327
2485
  refunded_amount?: number | undefined;
2328
2486
  detailed_refunds?: {
2487
+ id: string;
2488
+ source_ref: {
2489
+ id?: string | undefined;
2490
+ model?: string | undefined;
2491
+ };
2329
2492
  created_on?: string | undefined;
2330
2493
  total: number;
2331
2494
  reason?: string | undefined;
@@ -2342,6 +2505,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2342
2505
  total: number;
2343
2506
  }[] | undefined;
2344
2507
  other?: number | undefined;
2508
+ shipping_refunds?: {
2509
+ untaxed_amount: number;
2510
+ tax_amount: number;
2511
+ total: number;
2512
+ }[] | undefined;
2345
2513
  }[] | undefined;
2346
2514
  currency: string;
2347
2515
  note?: string | undefined;
@@ -2351,6 +2519,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2351
2519
  id?: string | undefined;
2352
2520
  model?: string | undefined;
2353
2521
  };
2522
+ created_on?: string | undefined;
2354
2523
  variant?: {
2355
2524
  id: string;
2356
2525
  sku?: string | undefined;
@@ -2359,6 +2528,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2359
2528
  quantity: number;
2360
2529
  unit_price: number;
2361
2530
  description: string;
2531
+ tax_id?: string | undefined;
2362
2532
  tax_rate: number;
2363
2533
  untaxed_amount: number;
2364
2534
  tax_amount: number;
@@ -2368,22 +2538,42 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2368
2538
  description: string;
2369
2539
  amount: number;
2370
2540
  }[] | undefined;
2541
+ gift_card?: boolean | undefined;
2371
2542
  }[];
2372
2543
  other_fees?: {
2544
+ created_on?: string | undefined;
2373
2545
  type: "other" | "shipping";
2374
2546
  tax_rate: number;
2547
+ tax_id?: string | undefined;
2548
+ discounts?: {
2549
+ name: string;
2550
+ description: string;
2551
+ amount: number;
2552
+ }[] | undefined;
2375
2553
  untaxed_amount: number;
2376
2554
  tax_amount: number;
2377
2555
  total: number;
2378
2556
  }[] | undefined;
2557
+ payment_method_id?: string | undefined;
2558
+ transactions?: {
2559
+ id: string;
2560
+ payment_method_id?: string | undefined;
2561
+ payment_method_name?: string | undefined;
2562
+ amount: number;
2563
+ status: "failed" | "pending" | "success";
2564
+ }[] | undefined;
2565
+ payment_methods?: {
2566
+ id: string;
2567
+ name?: string | undefined;
2568
+ }[] | undefined;
2379
2569
  }[]>;
2380
2570
  createOrder(order: {
2381
2571
  customer: {
2382
- email: string;
2383
2572
  first_name?: string | undefined;
2384
2573
  last_name?: string | undefined;
2385
2574
  phone?: string | undefined;
2386
2575
  internal_notes?: string | undefined;
2576
+ email: string;
2387
2577
  };
2388
2578
  billing_address: {
2389
2579
  first_name: string;
@@ -2426,15 +2616,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2426
2616
  };
2427
2617
  order_number?: string | undefined;
2428
2618
  customer?: {
2429
- email: string;
2430
2619
  first_name?: string | undefined;
2431
2620
  last_name?: string | undefined;
2432
2621
  phone?: string | undefined;
2433
2622
  internal_notes?: string | undefined;
2623
+ email?: string | undefined;
2434
2624
  id: string;
2435
2625
  } | undefined;
2436
2626
  billing_address?: {
2437
2627
  address_type: "main" | "delivery" | "invoice";
2628
+ company_name?: string | undefined;
2438
2629
  first_name?: string | undefined;
2439
2630
  last_name?: string | undefined;
2440
2631
  street?: string | undefined;
@@ -2448,6 +2639,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2448
2639
  } | undefined;
2449
2640
  shipping_address?: {
2450
2641
  address_type: "main" | "delivery" | "invoice";
2642
+ company_name?: string | undefined;
2451
2643
  first_name?: string | undefined;
2452
2644
  last_name?: string | undefined;
2453
2645
  street?: string | undefined;
@@ -2473,6 +2665,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2473
2665
  total: number;
2474
2666
  refunded_amount?: number | undefined;
2475
2667
  detailed_refunds?: {
2668
+ id: string;
2669
+ source_ref: {
2670
+ id?: string | undefined;
2671
+ model?: string | undefined;
2672
+ };
2476
2673
  created_on?: string | undefined;
2477
2674
  total: number;
2478
2675
  reason?: string | undefined;
@@ -2489,6 +2686,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2489
2686
  total: number;
2490
2687
  }[] | undefined;
2491
2688
  other?: number | undefined;
2689
+ shipping_refunds?: {
2690
+ untaxed_amount: number;
2691
+ tax_amount: number;
2692
+ total: number;
2693
+ }[] | undefined;
2492
2694
  }[] | undefined;
2493
2695
  currency: string;
2494
2696
  note?: string | undefined;
@@ -2498,6 +2700,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2498
2700
  id?: string | undefined;
2499
2701
  model?: string | undefined;
2500
2702
  };
2703
+ created_on?: string | undefined;
2501
2704
  variant?: {
2502
2705
  id: string;
2503
2706
  sku?: string | undefined;
@@ -2506,6 +2709,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2506
2709
  quantity: number;
2507
2710
  unit_price: number;
2508
2711
  description: string;
2712
+ tax_id?: string | undefined;
2509
2713
  tax_rate: number;
2510
2714
  untaxed_amount: number;
2511
2715
  tax_amount: number;
@@ -2515,14 +2719,34 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2515
2719
  description: string;
2516
2720
  amount: number;
2517
2721
  }[] | undefined;
2722
+ gift_card?: boolean | undefined;
2518
2723
  }[];
2519
2724
  other_fees?: {
2725
+ created_on?: string | undefined;
2520
2726
  type: "other" | "shipping";
2521
2727
  tax_rate: number;
2728
+ tax_id?: string | undefined;
2729
+ discounts?: {
2730
+ name: string;
2731
+ description: string;
2732
+ amount: number;
2733
+ }[] | undefined;
2522
2734
  untaxed_amount: number;
2523
2735
  tax_amount: number;
2524
2736
  total: number;
2525
2737
  }[] | undefined;
2738
+ payment_method_id?: string | undefined;
2739
+ transactions?: {
2740
+ id: string;
2741
+ payment_method_id?: string | undefined;
2742
+ payment_method_name?: string | undefined;
2743
+ amount: number;
2744
+ status: "failed" | "pending" | "success";
2745
+ }[] | undefined;
2746
+ payment_methods?: {
2747
+ id: string;
2748
+ name?: string | undefined;
2749
+ }[] | undefined;
2526
2750
  }>;
2527
2751
  getOrder(orderId: string): import("../types/api").RequestData<{
2528
2752
  id: string;
@@ -2532,15 +2756,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2532
2756
  };
2533
2757
  order_number?: string | undefined;
2534
2758
  customer?: {
2535
- email: string;
2536
2759
  first_name?: string | undefined;
2537
2760
  last_name?: string | undefined;
2538
2761
  phone?: string | undefined;
2539
2762
  internal_notes?: string | undefined;
2763
+ email?: string | undefined;
2540
2764
  id: string;
2541
2765
  } | undefined;
2542
2766
  billing_address?: {
2543
2767
  address_type: "main" | "delivery" | "invoice";
2768
+ company_name?: string | undefined;
2544
2769
  first_name?: string | undefined;
2545
2770
  last_name?: string | undefined;
2546
2771
  street?: string | undefined;
@@ -2554,6 +2779,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2554
2779
  } | undefined;
2555
2780
  shipping_address?: {
2556
2781
  address_type: "main" | "delivery" | "invoice";
2782
+ company_name?: string | undefined;
2557
2783
  first_name?: string | undefined;
2558
2784
  last_name?: string | undefined;
2559
2785
  street?: string | undefined;
@@ -2579,6 +2805,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2579
2805
  total: number;
2580
2806
  refunded_amount?: number | undefined;
2581
2807
  detailed_refunds?: {
2808
+ id: string;
2809
+ source_ref: {
2810
+ id?: string | undefined;
2811
+ model?: string | undefined;
2812
+ };
2582
2813
  created_on?: string | undefined;
2583
2814
  total: number;
2584
2815
  reason?: string | undefined;
@@ -2595,6 +2826,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2595
2826
  total: number;
2596
2827
  }[] | undefined;
2597
2828
  other?: number | undefined;
2829
+ shipping_refunds?: {
2830
+ untaxed_amount: number;
2831
+ tax_amount: number;
2832
+ total: number;
2833
+ }[] | undefined;
2598
2834
  }[] | undefined;
2599
2835
  currency: string;
2600
2836
  note?: string | undefined;
@@ -2604,6 +2840,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2604
2840
  id?: string | undefined;
2605
2841
  model?: string | undefined;
2606
2842
  };
2843
+ created_on?: string | undefined;
2607
2844
  variant?: {
2608
2845
  id: string;
2609
2846
  sku?: string | undefined;
@@ -2612,6 +2849,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2612
2849
  quantity: number;
2613
2850
  unit_price: number;
2614
2851
  description: string;
2852
+ tax_id?: string | undefined;
2615
2853
  tax_rate: number;
2616
2854
  untaxed_amount: number;
2617
2855
  tax_amount: number;
@@ -2621,15 +2859,67 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2621
2859
  description: string;
2622
2860
  amount: number;
2623
2861
  }[] | undefined;
2862
+ gift_card?: boolean | undefined;
2624
2863
  }[];
2625
2864
  other_fees?: {
2865
+ created_on?: string | undefined;
2626
2866
  type: "other" | "shipping";
2627
2867
  tax_rate: number;
2868
+ tax_id?: string | undefined;
2869
+ discounts?: {
2870
+ name: string;
2871
+ description: string;
2872
+ amount: number;
2873
+ }[] | undefined;
2628
2874
  untaxed_amount: number;
2629
2875
  tax_amount: number;
2630
2876
  total: number;
2631
2877
  }[] | undefined;
2878
+ payment_method_id?: string | undefined;
2879
+ transactions?: {
2880
+ id: string;
2881
+ payment_method_id?: string | undefined;
2882
+ payment_method_name?: string | undefined;
2883
+ amount: number;
2884
+ status: "failed" | "pending" | "success";
2885
+ }[] | undefined;
2886
+ payment_methods?: {
2887
+ id: string;
2888
+ name?: string | undefined;
2889
+ }[] | undefined;
2632
2890
  }>;
2891
+ getPaymentMethods(params: {}): import("../types/api").RequestData<{
2892
+ id: string;
2893
+ source_ref: {
2894
+ id?: string | undefined;
2895
+ model?: string | undefined;
2896
+ };
2897
+ name: string;
2898
+ active: boolean;
2899
+ }[]>;
2900
+ getProductCategories(params: {}): import("../types/api").RequestData<{
2901
+ id: string;
2902
+ source_ref: {
2903
+ id?: string | undefined;
2904
+ model?: string | undefined;
2905
+ };
2906
+ name: string;
2907
+ parent_id?: string | undefined;
2908
+ }[]>;
2909
+ getTaxes(params: {}): import("../types/api").RequestData<{
2910
+ id: string;
2911
+ source_ref: {
2912
+ id?: string | undefined;
2913
+ model?: string | undefined;
2914
+ };
2915
+ label: string;
2916
+ rate: number;
2917
+ country?: string | undefined;
2918
+ }[]>;
2919
+ getCountries(params: {}): import("../types/api").RequestData<{
2920
+ code: string;
2921
+ name: string;
2922
+ }[]>;
2633
2923
  }>;
2634
2924
  custom: import("../types/api").ApiFor<{
2635
2925
  get(name: string, resource: string, params?: any): import("../types/api").RequestData<any>;
@@ -2655,12 +2945,17 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2655
2945
  link_createdon: string;
2656
2946
  link_mappings?: {
2657
2947
  name: string;
2658
- description: string;
2948
+ description?: string | undefined;
2949
+ display_order?: number | undefined;
2950
+ challenge_question?: string | undefined;
2659
2951
  values: {
2660
2952
  source_id: string;
2661
2953
  target_id: string;
2662
2954
  }[];
2955
+ sub_mapping_name: string;
2956
+ sub_mapping_description?: string | undefined;
2663
2957
  }[] | undefined;
2958
+ link_metadata?: Record<string, never> | undefined;
2664
2959
  enabled_flows?: {
2665
2960
  name: string;
2666
2961
  description?: string | undefined;
@@ -2685,6 +2980,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2685
2980
  }[] | undefined;
2686
2981
  } | undefined;
2687
2982
  values: Record<string, never>;
2983
+ enabled_on?: string | undefined;
2984
+ trigger: {
2985
+ id: string;
2986
+ type: "timer" | "event";
2987
+ cronschedule?: string | undefined;
2988
+ };
2688
2989
  }[] | undefined;
2689
2990
  }>;
2690
2991
  getDataByDataStoreName: (dataStoreName: string, params?: object) => Promise<{
@@ -2702,6 +3003,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2702
3003
  id: string;
2703
3004
  created_on: string;
2704
3005
  }[]>;
3006
+ deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<SimpleResponseModel>;
2705
3007
  logData: (logs: ConsumerLog[]) => Promise<SimpleResponseModel>;
2706
3008
  };
2707
3009
  export { Consumer };