@chift/chift-nodejs 1.0.9 → 1.0.10

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.
@@ -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,12 +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;
77
81
  product_id?: string | undefined;
82
+ accounting_category_id?: string | undefined;
78
83
  }[];
79
84
  payments: {
80
85
  id?: string | undefined;
@@ -116,6 +121,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
116
121
  country?: string | undefined;
117
122
  }[] | undefined;
118
123
  loyalty?: number | undefined;
124
+ birthdate?: string | undefined;
119
125
  }[]>;
120
126
  getOrder(orderId: string): import("../types/api").RequestData<{
121
127
  id: string;
@@ -136,12 +142,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
136
142
  total: number;
137
143
  tax_amount: number;
138
144
  tax_rate?: number | undefined;
139
- description: string;
145
+ description?: string | undefined;
140
146
  discounts?: {
141
147
  name?: string | undefined;
142
148
  total: number;
143
149
  }[] | undefined;
144
150
  product_id?: string | undefined;
151
+ accounting_category_id?: string | undefined;
145
152
  }[];
146
153
  payments: {
147
154
  id?: string | undefined;
@@ -183,6 +190,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
183
190
  country?: string | undefined;
184
191
  }[] | undefined;
185
192
  loyalty?: number | undefined;
193
+ birthdate?: string | undefined;
186
194
  }>;
187
195
  createCustomer(customer: {
188
196
  first_name: string;
@@ -217,6 +225,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
217
225
  country?: string | undefined;
218
226
  }[] | undefined;
219
227
  loyalty?: number | undefined;
228
+ birthdate?: string | undefined;
220
229
  }>;
221
230
  getPaymentMethods(params: {}): import("../types/api").RequestData<{
222
231
  id: string;
@@ -225,9 +234,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
225
234
  }[]>;
226
235
  getProductCategories(params: {}): import("../types/api").RequestData<{
227
236
  id: string;
237
+ source_ref: {
238
+ id?: string | undefined;
239
+ model?: string | undefined;
240
+ };
228
241
  name: string;
229
- description?: string | undefined;
230
- id_parent?: string | undefined;
242
+ parent_id?: string | undefined;
231
243
  }[]>;
232
244
  getProducts(params: {}): import("../types/api").RequestData<{
233
245
  id: string;
@@ -238,6 +250,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
238
250
  unit_price: number;
239
251
  tax_rate: number;
240
252
  }[];
253
+ accounting_category_ids?: string[] | undefined;
241
254
  }[]>;
242
255
  getSales(params: {
243
256
  date_from: string;
@@ -292,12 +305,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
292
305
  total: number;
293
306
  tax_amount: number;
294
307
  tax_rate?: number | undefined;
295
- description: string;
308
+ description?: string | undefined;
296
309
  discounts?: {
297
310
  name?: string | undefined;
298
311
  total: number;
299
312
  }[] | undefined;
300
313
  product_id?: string | undefined;
314
+ accounting_category_id?: string | undefined;
301
315
  }[];
302
316
  payments: {
303
317
  id?: string | undefined;
@@ -320,14 +334,30 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
320
334
  total: number;
321
335
  }[] | undefined;
322
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
+ }[]>;
323
345
  }>;
324
346
  accounting: import("../types/api").ApiFor<{
325
- getAnalyticPlans(): import("../types/api").RequestData<{
347
+ getAnalyticPlans(params: {
348
+ folder_id?: string | undefined;
349
+ page?: number | undefined;
350
+ size?: number | undefined;
351
+ } | undefined): import("../types/api").RequestData<{
326
352
  id: string;
327
353
  name: string;
328
354
  active?: boolean | undefined;
329
355
  }[]>;
330
- getClients(): import("../types/api").RequestData<{
356
+ getClients(params: {
357
+ folder_id?: string | undefined;
358
+ page?: number | undefined;
359
+ size?: number | undefined;
360
+ } | undefined): import("../types/api").RequestData<{
331
361
  external_reference?: string | undefined;
332
362
  first_name?: string | undefined;
333
363
  last_name?: string | undefined;
@@ -398,6 +428,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
398
428
  account_number?: string | undefined;
399
429
  }, params: {
400
430
  force_merge?: string | undefined;
431
+ folder_id?: string | undefined;
401
432
  } | undefined): import("../types/api").RequestData<{
402
433
  external_reference?: string | undefined;
403
434
  first_name?: string | undefined;
@@ -434,7 +465,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
434
465
  company_number?: string | undefined;
435
466
  id?: string | undefined;
436
467
  }>;
437
- getClient(clientId: string): import("../types/api").RequestData<{
468
+ getClient(clientId: string, params: {
469
+ folder_id?: string | undefined;
470
+ } | undefined): import("../types/api").RequestData<{
438
471
  external_reference?: string | undefined;
439
472
  first_name?: string | undefined;
440
473
  last_name?: string | undefined;
@@ -502,7 +535,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
502
535
  postal_code?: string | undefined;
503
536
  country?: string | undefined;
504
537
  }[] | undefined;
505
- }): import("../types/api").RequestData<{
538
+ }, params: {
539
+ folder_id?: string | undefined;
540
+ } | undefined): import("../types/api").RequestData<{
506
541
  external_reference?: string | undefined;
507
542
  first_name?: string | undefined;
508
543
  last_name?: string | undefined;
@@ -538,7 +573,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
538
573
  company_number?: string | undefined;
539
574
  id?: string | undefined;
540
575
  }>;
541
- getSuppliers(): import("../types/api").RequestData<{
576
+ getSuppliers(params: {
577
+ folder_id?: string | undefined;
578
+ page?: number | undefined;
579
+ size?: number | undefined;
580
+ } | undefined): import("../types/api").RequestData<{
542
581
  external_reference?: string | undefined;
543
582
  first_name?: string | undefined;
544
583
  last_name?: string | undefined;
@@ -609,6 +648,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
609
648
  account_number?: string | undefined;
610
649
  }, params: {
611
650
  force_merge?: string | undefined;
651
+ folder_id?: string | undefined;
612
652
  } | undefined): import("../types/api").RequestData<{
613
653
  external_reference?: string | undefined;
614
654
  first_name?: string | undefined;
@@ -645,7 +685,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
645
685
  company_number?: string | undefined;
646
686
  id?: string | undefined;
647
687
  }>;
648
- getSupplier(supplierId: string): import("../types/api").RequestData<{
688
+ getSupplier(supplierId: string, params: {
689
+ folder_id?: string | undefined;
690
+ } | undefined): import("../types/api").RequestData<{
649
691
  external_reference?: string | undefined;
650
692
  first_name?: string | undefined;
651
693
  last_name?: string | undefined;
@@ -713,7 +755,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
713
755
  postal_code?: string | undefined;
714
756
  country?: string | undefined;
715
757
  }[] | undefined;
716
- }): import("../types/api").RequestData<{
758
+ }, params: {
759
+ folder_id?: string | undefined;
760
+ } | undefined): import("../types/api").RequestData<{
717
761
  external_reference?: string | undefined;
718
762
  first_name?: string | undefined;
719
763
  last_name?: string | undefined;
@@ -752,8 +796,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
752
796
  createInvoice(invoice: {
753
797
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
754
798
  invoice_number?: string | undefined;
755
- invoice_date: string;
756
- due_date: string;
757
799
  currency: string;
758
800
  untaxed_amount: number;
759
801
  tax_amount: number;
@@ -761,6 +803,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
761
803
  reference?: string | undefined;
762
804
  payment_communication?: string | undefined;
763
805
  customer_memo?: string | undefined;
806
+ invoice_date: string;
807
+ due_date: string;
764
808
  partner_id: string;
765
809
  journal_id?: string | undefined;
766
810
  status?: "draft" | "posted" | undefined;
@@ -772,6 +816,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
772
816
  invoice_correction_credit_account_number?: string | undefined;
773
817
  invoice_correction_debit_account_number?: string | undefined;
774
818
  } | undefined;
819
+ nl_payment_terms_split?: {
820
+ g_account: {
821
+ amount: number;
822
+ iban: string;
823
+ };
824
+ n_account: {
825
+ amount: number;
826
+ iban: string;
827
+ };
828
+ } | undefined;
775
829
  lines: {
776
830
  line_number?: number | undefined;
777
831
  description: string;
@@ -789,11 +843,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
789
843
  }, params: {
790
844
  force_financial_period?: string | undefined;
791
845
  regroup_lines?: "true" | "false" | undefined;
846
+ folder_id?: string | undefined;
792
847
  } | undefined): import("../types/api").RequestData<{
793
848
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
794
849
  invoice_number?: string | undefined;
795
- invoice_date: string;
796
- due_date: string;
797
850
  currency: string;
798
851
  untaxed_amount: number;
799
852
  tax_amount: number;
@@ -802,6 +855,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
802
855
  payment_communication?: string | undefined;
803
856
  customer_memo?: string | undefined;
804
857
  id?: string | undefined;
858
+ invoice_date: string;
859
+ due_date: string;
805
860
  partner_id: string;
806
861
  journal_id: string;
807
862
  payments?: {
@@ -837,8 +892,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
837
892
  createInvoiceWithMultiplePlans(invoice: {
838
893
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
839
894
  invoice_number?: string | undefined;
840
- invoice_date: string;
841
- due_date: string;
842
895
  currency: string;
843
896
  untaxed_amount: number;
844
897
  tax_amount: number;
@@ -846,6 +899,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
846
899
  reference?: string | undefined;
847
900
  payment_communication?: string | undefined;
848
901
  customer_memo?: string | undefined;
902
+ invoice_date: string;
903
+ due_date: string;
849
904
  partner_id: string;
850
905
  journal_id?: string | undefined;
851
906
  status?: "draft" | "posted" | undefined;
@@ -857,6 +912,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
857
912
  invoice_correction_credit_account_number?: string | undefined;
858
913
  invoice_correction_debit_account_number?: string | undefined;
859
914
  } | undefined;
915
+ nl_payment_terms_split?: {
916
+ g_account: {
917
+ amount: number;
918
+ iban: string;
919
+ };
920
+ n_account: {
921
+ amount: number;
922
+ iban: string;
923
+ };
924
+ } | undefined;
860
925
  lines: {
861
926
  line_number?: number | undefined;
862
927
  description: string;
@@ -880,11 +945,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
880
945
  }, params: {
881
946
  force_financial_period?: string | undefined;
882
947
  regroup_lines?: "true" | "false" | undefined;
948
+ folder_id?: string | undefined;
883
949
  } | undefined): import("../types/api").RequestData<{
884
950
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
885
951
  invoice_number?: string | undefined;
886
- invoice_date: string;
887
- due_date: string;
888
952
  currency: string;
889
953
  untaxed_amount: number;
890
954
  tax_amount: number;
@@ -893,6 +957,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
893
957
  payment_communication?: string | undefined;
894
958
  customer_memo?: string | undefined;
895
959
  id?: string | undefined;
960
+ invoice_date: string;
961
+ due_date: string;
896
962
  partner_id: string;
897
963
  journal_id: string;
898
964
  payments?: {
@@ -934,8 +1000,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
934
1000
  getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
935
1001
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
936
1002
  invoice_number?: string | undefined;
937
- invoice_date: string;
938
- due_date: string;
939
1003
  currency: string;
940
1004
  untaxed_amount: number;
941
1005
  tax_amount: number;
@@ -944,6 +1008,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
944
1008
  payment_communication?: string | undefined;
945
1009
  customer_memo?: string | undefined;
946
1010
  id?: string | undefined;
1011
+ invoice_date: string;
1012
+ due_date: string;
947
1013
  partner_id: string;
948
1014
  journal_id: string;
949
1015
  payments?: {
@@ -978,11 +1044,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
978
1044
  }[]>;
979
1045
  getInvoice(invoiceId: string, params: {
980
1046
  include_payments?: "true" | "false" | undefined;
1047
+ folder_id?: string | undefined;
981
1048
  } | undefined): import("../types/api").RequestData<{
982
1049
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
983
1050
  invoice_number?: string | undefined;
984
- invoice_date: string;
985
- due_date: string;
986
1051
  currency: string;
987
1052
  untaxed_amount: number;
988
1053
  tax_amount: number;
@@ -991,6 +1056,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
991
1056
  payment_communication?: string | undefined;
992
1057
  customer_memo?: string | undefined;
993
1058
  id?: string | undefined;
1059
+ invoice_date: string;
1060
+ due_date: string;
994
1061
  partner_id: string;
995
1062
  journal_id: string;
996
1063
  payments?: {
@@ -1025,11 +1092,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1025
1092
  }>;
1026
1093
  getInvoiceWithMultiplePlans(invoiceId: string, params: {
1027
1094
  include_payments?: "true" | "false" | undefined;
1095
+ folder_id?: string | undefined;
1028
1096
  } | undefined): import("../types/api").RequestData<{
1029
1097
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1030
1098
  invoice_number?: string | undefined;
1031
- invoice_date: string;
1032
- due_date: string;
1033
1099
  currency: string;
1034
1100
  untaxed_amount: number;
1035
1101
  tax_amount: number;
@@ -1038,6 +1104,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1038
1104
  payment_communication?: string | undefined;
1039
1105
  customer_memo?: string | undefined;
1040
1106
  id?: string | undefined;
1107
+ invoice_date: string;
1108
+ due_date: string;
1041
1109
  partner_id: string;
1042
1110
  journal_id: string;
1043
1111
  payments?: {
@@ -1079,8 +1147,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1079
1147
  getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
1080
1148
  invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
1081
1149
  invoice_number?: string | undefined;
1082
- invoice_date: string;
1083
- due_date: string;
1084
1150
  currency: string;
1085
1151
  untaxed_amount: number;
1086
1152
  tax_amount: number;
@@ -1089,6 +1155,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1089
1155
  payment_communication?: string | undefined;
1090
1156
  customer_memo?: string | undefined;
1091
1157
  id?: string | undefined;
1158
+ invoice_date: string;
1159
+ due_date: string;
1092
1160
  partner_id: string;
1093
1161
  journal_id: string;
1094
1162
  payments?: {
@@ -1132,7 +1200,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1132
1200
  code: string;
1133
1201
  name: string;
1134
1202
  currency: string;
1135
- }): import("../types/api").RequestData<{
1203
+ }, params: {
1204
+ folder_id?: string | undefined;
1205
+ } | undefined): import("../types/api").RequestData<{
1136
1206
  id: string;
1137
1207
  active: boolean;
1138
1208
  code?: string | undefined;
@@ -1142,7 +1212,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1142
1212
  credit?: number | undefined;
1143
1213
  debit?: number | undefined;
1144
1214
  }>;
1145
- getAnalyticAccounts(): import("../types/api").RequestData<{
1215
+ getAnalyticAccounts(params: {
1216
+ folder_id?: string | undefined;
1217
+ page?: number | undefined;
1218
+ size?: number | undefined;
1219
+ } | undefined): import("../types/api").RequestData<{
1146
1220
  id: string;
1147
1221
  active: boolean;
1148
1222
  code?: string | undefined;
@@ -1157,7 +1231,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1157
1231
  code: string;
1158
1232
  name: string;
1159
1233
  currency: string;
1160
- }): import("../types/api").RequestData<{
1234
+ }, params: {
1235
+ folder_id?: string | undefined;
1236
+ } | undefined): import("../types/api").RequestData<{
1161
1237
  id: string;
1162
1238
  active: boolean;
1163
1239
  code?: string | undefined;
@@ -1168,7 +1244,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1168
1244
  debit?: number | undefined;
1169
1245
  analytic_plan: string;
1170
1246
  }>;
1171
- getAnalyticAccount(analytic_account_id: string): import("../types/api").RequestData<{
1247
+ getAnalyticAccount(analytic_account_id: string, params: {
1248
+ folder_id?: string | undefined;
1249
+ } | undefined): import("../types/api").RequestData<{
1172
1250
  id: string;
1173
1251
  active: boolean;
1174
1252
  code?: string | undefined;
@@ -1183,7 +1261,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1183
1261
  code?: string | undefined;
1184
1262
  name?: string | undefined;
1185
1263
  currency?: string | undefined;
1186
- }): import("../types/api").RequestData<{
1264
+ }, params: {
1265
+ folder_id?: string | undefined;
1266
+ } | undefined): import("../types/api").RequestData<{
1187
1267
  id: string;
1188
1268
  active: boolean;
1189
1269
  code?: string | undefined;
@@ -1193,7 +1273,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1193
1273
  credit?: number | undefined;
1194
1274
  debit?: number | undefined;
1195
1275
  }>;
1196
- getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string): import("../types/api").RequestData<{
1276
+ getAnalyticAccountWithMultiplePlans(analytic_account_id: string, analytic_plan: string, params: {
1277
+ folder_id?: string | undefined;
1278
+ } | undefined): import("../types/api").RequestData<{
1197
1279
  id: string;
1198
1280
  active: boolean;
1199
1281
  code?: string | undefined;
@@ -1209,7 +1291,9 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1209
1291
  code?: string | undefined;
1210
1292
  name?: string | undefined;
1211
1293
  currency?: string | undefined;
1212
- }): import("../types/api").RequestData<{
1294
+ }, params: {
1295
+ folder_id?: string | undefined;
1296
+ } | undefined): import("../types/api").RequestData<{
1213
1297
  id: string;
1214
1298
  active: boolean;
1215
1299
  code?: string | undefined;
@@ -1220,7 +1304,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1220
1304
  debit?: number | undefined;
1221
1305
  analytic_plan: string;
1222
1306
  }>;
1223
- getAnalyticAccountsWithMultiplePlans(): import("../types/api").RequestData<{
1307
+ getAnalyticAccountsWithMultiplePlans(params: {
1308
+ folder_id?: string | undefined;
1309
+ page?: number | undefined;
1310
+ size?: number | undefined;
1311
+ } | undefined): import("../types/api").RequestData<{
1224
1312
  id: string;
1225
1313
  active: boolean;
1226
1314
  code?: string | undefined;
@@ -1231,16 +1319,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1231
1319
  debit?: number | undefined;
1232
1320
  analytic_plan: string;
1233
1321
  }[]>;
1234
- getAnalyticLinesOfAccount(analytic_account_id: string): import("../types/api").RequestData<{
1235
- account_id: string;
1236
- description: string;
1237
- amount: number;
1238
- date: string;
1239
- id?: string | undefined;
1240
- }[]>;
1241
1322
  getJournalEntries(params: {
1242
1323
  date_from: string;
1243
1324
  date_to: string;
1325
+ folder_id?: string | undefined;
1244
1326
  unposted_allowed: "true" | "false";
1245
1327
  journal_id: string;
1246
1328
  partner_id?: string | undefined;
@@ -1272,6 +1354,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1272
1354
  getJournalEntriesWithMultiplePlans(params: {
1273
1355
  date_from: string;
1274
1356
  date_to: string;
1357
+ folder_id?: string | undefined;
1275
1358
  unposted_allowed: "true" | "false";
1276
1359
  journal_id: string;
1277
1360
  partner_id?: string | undefined;
@@ -1305,7 +1388,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1305
1388
  }[] | undefined;
1306
1389
  }[] | undefined;
1307
1390
  }[]>;
1308
- getPaymentsByInvoiceId(invoice_id: string): import("../types/api").RequestData<{
1391
+ getPaymentsByInvoiceId(invoice_id: string, params: {
1392
+ folder_id?: string | undefined;
1393
+ page?: number | undefined;
1394
+ size?: number | undefined;
1395
+ } | undefined): import("../types/api").RequestData<{
1309
1396
  id: string;
1310
1397
  name: string;
1311
1398
  currency: string;
@@ -1319,23 +1406,32 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1319
1406
  communication?: string | undefined;
1320
1407
  matching_number?: string | undefined;
1321
1408
  }[]>;
1322
- getJournals(): import("../types/api").RequestData<{
1409
+ getJournals(params: {
1410
+ folder_id?: string | undefined;
1411
+ page?: number | undefined;
1412
+ size?: number | undefined;
1413
+ } | undefined): import("../types/api").RequestData<{
1323
1414
  id: string;
1324
- code: string;
1415
+ code?: string | undefined;
1325
1416
  name: string;
1326
1417
  journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
1327
1418
  }[]>;
1328
- getVatCodes(): import("../types/api").RequestData<{
1419
+ getVatCodes(params: {
1420
+ folder_id?: string | undefined;
1421
+ page?: number | undefined;
1422
+ size?: number | undefined;
1423
+ } | undefined): import("../types/api").RequestData<{
1329
1424
  id: string;
1330
1425
  code?: string | undefined;
1331
1426
  label: string;
1332
1427
  scope?: "unknown" | "nat" | "eu" | "int" | undefined;
1333
1428
  rate: number;
1334
1429
  type: "unknown" | "sale" | "purchase" | "both";
1430
+ deductible_account?: string | undefined;
1431
+ payable_account?: string | undefined;
1335
1432
  }[]>;
1336
1433
  getMiscOperations(params: {}): import("../types/api").RequestData<{
1337
1434
  operation_number?: string | undefined;
1338
- operation_date: string;
1339
1435
  currency: string;
1340
1436
  currency_exchange_rate?: number | undefined;
1341
1437
  lines: {
@@ -1347,13 +1443,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1347
1443
  partner_id?: string | undefined;
1348
1444
  analytic_account?: string | undefined;
1349
1445
  }[];
1446
+ operation_date?: string | undefined;
1350
1447
  journal_id: string;
1351
1448
  status: "draft" | "posted" | "cancelled" | "matched";
1352
1449
  id: string;
1353
1450
  }[]>;
1354
1451
  createMiscOperation(operation: {
1355
1452
  operation_number?: string | undefined;
1356
- operation_date: string;
1357
1453
  currency: string;
1358
1454
  currency_exchange_rate?: number | undefined;
1359
1455
  lines: {
@@ -1365,11 +1461,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1365
1461
  partner_id?: string | undefined;
1366
1462
  analytic_account?: string | undefined;
1367
1463
  }[];
1464
+ operation_date: string;
1368
1465
  journal_id?: string | undefined;
1369
1466
  status?: "draft" | "posted" | undefined;
1370
- }): import("../types/api").RequestData<{
1467
+ }, params: {
1468
+ folder_id?: string | undefined;
1469
+ } | undefined): import("../types/api").RequestData<{
1371
1470
  operation_number?: string | undefined;
1372
- operation_date: string;
1373
1471
  currency: string;
1374
1472
  currency_exchange_rate?: number | undefined;
1375
1473
  lines: {
@@ -1381,13 +1479,15 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1381
1479
  partner_id?: string | undefined;
1382
1480
  analytic_account?: string | undefined;
1383
1481
  }[];
1482
+ operation_date?: string | undefined;
1384
1483
  journal_id: string;
1385
1484
  status: "draft" | "posted" | "cancelled" | "matched";
1386
1485
  id: string;
1387
1486
  }>;
1388
- getMiscOperation(operation_id: string): import("../types/api").RequestData<{
1487
+ getMiscOperation(operation_id: string, params: {
1488
+ folder_id?: string | undefined;
1489
+ } | undefined): import("../types/api").RequestData<{
1389
1490
  operation_number?: string | undefined;
1390
- operation_date: string;
1391
1491
  currency: string;
1392
1492
  currency_exchange_rate?: number | undefined;
1393
1493
  lines: {
@@ -1399,6 +1499,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1399
1499
  partner_id?: string | undefined;
1400
1500
  analytic_account?: string | undefined;
1401
1501
  }[];
1502
+ operation_date?: string | undefined;
1402
1503
  journal_id: string;
1403
1504
  status: "draft" | "posted" | "cancelled" | "matched";
1404
1505
  id: string;
@@ -1407,11 +1508,21 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1407
1508
  base64_string: string;
1408
1509
  }, params: {
1409
1510
  overwrite_existing?: "true" | "false" | undefined;
1511
+ folder_id?: string | undefined;
1410
1512
  } | undefined): import("../types/api").RequestData<{
1411
1513
  content: {
1412
1514
  'application/json': unknown;
1413
1515
  };
1414
1516
  }>;
1517
+ getAttachments(params: {
1518
+ type: "invoice" | "entry";
1519
+ document_id: string;
1520
+ folder_id?: string | undefined;
1521
+ page?: number | undefined;
1522
+ size?: number | undefined;
1523
+ }): import("../types/api").RequestData<{
1524
+ base64_string: string;
1525
+ }[]>;
1415
1526
  getChartOfAccounts(params: {}): import("../types/api").RequestData<{
1416
1527
  number: string;
1417
1528
  name: string;
@@ -1422,13 +1533,21 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1422
1533
  accounts: string[];
1423
1534
  start: string;
1424
1535
  end: string;
1425
- }): import("../types/api").RequestData<{
1536
+ }, params: {
1537
+ folder_id?: string | undefined;
1538
+ page?: number | undefined;
1539
+ size?: number | undefined;
1540
+ } | undefined): import("../types/api").RequestData<{
1426
1541
  account_number: string;
1427
1542
  debit: number;
1428
1543
  credit: number;
1429
1544
  balance: number;
1430
1545
  }[]>;
1431
- getEmployees(): import("../types/api").RequestData<{
1546
+ getEmployees(params: {
1547
+ folder_id?: string | undefined;
1548
+ page?: number | undefined;
1549
+ size?: number | undefined;
1550
+ } | undefined): import("../types/api").RequestData<{
1432
1551
  id: string;
1433
1552
  name: string;
1434
1553
  first_name?: string | undefined;
@@ -1442,6 +1561,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1442
1561
  account_number?: string | undefined;
1443
1562
  }[]>;
1444
1563
  getOutstandings(params: {
1564
+ folder_id?: string | undefined;
1445
1565
  unposted_allowed: "true" | "false";
1446
1566
  type: "client" | "supplier";
1447
1567
  }): import("../types/api").RequestData<{
@@ -1458,6 +1578,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1458
1578
  partner_id: string;
1459
1579
  account_number: string;
1460
1580
  reference?: string | undefined;
1581
+ payment_communication?: string | undefined;
1461
1582
  posted: boolean;
1462
1583
  }[]>;
1463
1584
  createFinancialEntryOld(financial_entry: {
@@ -1477,6 +1598,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1477
1598
  pdf?: string | undefined;
1478
1599
  }, params: {
1479
1600
  financial_counterpart_account?: string | undefined;
1601
+ folder_id?: string | undefined;
1480
1602
  } | undefined): import("../types/api").RequestData<{
1481
1603
  date: string;
1482
1604
  journal_id: string;
@@ -1510,6 +1632,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1510
1632
  pdf?: string | undefined;
1511
1633
  }, params: {
1512
1634
  financial_counterpart_account?: string | undefined;
1635
+ folder_id?: string | undefined;
1513
1636
  } | undefined): import("../types/api").RequestData<{
1514
1637
  date: string;
1515
1638
  journal_id: string;
@@ -1526,7 +1649,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1526
1649
  counterpart_account: string;
1527
1650
  }[];
1528
1651
  }[]>;
1529
- createJournalEntry(journal_entry: {
1652
+ createJournalEntryOld(journal_entry: {
1530
1653
  reference?: string | undefined;
1531
1654
  due_date?: string | undefined;
1532
1655
  journal_id: string;
@@ -1547,8 +1670,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1547
1670
  percentage: number;
1548
1671
  }[];
1549
1672
  }[] | undefined;
1550
- pdf?: string | undefined;
1551
1673
  }[];
1674
+ pdf?: string | undefined;
1552
1675
  }): import("../types/api").RequestData<{
1553
1676
  reference?: string | undefined;
1554
1677
  due_date?: string | undefined;
@@ -1579,6 +1702,79 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1579
1702
  }[] | undefined;
1580
1703
  }[] | undefined;
1581
1704
  }>;
1705
+ createJournalEntry(journal_entry: {
1706
+ reference?: string | undefined;
1707
+ due_date?: string | undefined;
1708
+ journal_id: string;
1709
+ number: string;
1710
+ currency: string;
1711
+ currency_exchange_rate?: number | undefined;
1712
+ date: string;
1713
+ items: {
1714
+ account_type: "general_account" | "customer_account" | "supplier_account" | "employee_account";
1715
+ account: string;
1716
+ force_general_account?: string | undefined;
1717
+ prioritise_thirdparty_account?: boolean | undefined;
1718
+ description?: string | undefined;
1719
+ debit: number;
1720
+ credit: number;
1721
+ analytic_distribution?: {
1722
+ analytic_plan: string;
1723
+ analytic_accounts: {
1724
+ analytic_account: string;
1725
+ percentage: number;
1726
+ }[];
1727
+ }[] | undefined;
1728
+ tax_code?: string | undefined;
1729
+ }[];
1730
+ pdf?: string | undefined;
1731
+ posted?: boolean | undefined;
1732
+ }, params: {
1733
+ folder_id?: string | undefined;
1734
+ } | undefined): import("../types/api").RequestData<{
1735
+ reference?: string | undefined;
1736
+ due_date?: string | undefined;
1737
+ journal_id: string;
1738
+ name?: string | undefined;
1739
+ journal_name: string;
1740
+ date?: string | undefined;
1741
+ posted?: boolean | undefined;
1742
+ id: string;
1743
+ items?: {
1744
+ account_number: string;
1745
+ partner_id?: string | undefined;
1746
+ description?: string | undefined;
1747
+ debit: number;
1748
+ credit: number;
1749
+ currency: string;
1750
+ currency_exchange_rate?: number | undefined;
1751
+ id: string;
1752
+ partner_name?: string | undefined;
1753
+ account_name: string;
1754
+ matching_numbers?: string[] | undefined;
1755
+ analytic_distribution?: {
1756
+ analytic_plan: string;
1757
+ analytic_accounts: {
1758
+ analytic_account: string;
1759
+ percentage: number;
1760
+ }[];
1761
+ }[] | undefined;
1762
+ }[] | undefined;
1763
+ }>;
1764
+ matchEntries(body: {
1765
+ entries: string[];
1766
+ partner_id: string;
1767
+ }, params: {
1768
+ folder_id?: string | undefined;
1769
+ } | undefined): import("../types/api").RequestData<{
1770
+ matching_number: string;
1771
+ balance: number;
1772
+ }>;
1773
+ getFolders(): import("../types/api").RequestData<{
1774
+ id: string;
1775
+ name: string;
1776
+ selected?: boolean | undefined;
1777
+ }[]>;
1582
1778
  }>;
1583
1779
  invoicing: import("../types/api").ApiFor<{
1584
1780
  getInvoices(params: {
@@ -1586,6 +1782,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1586
1782
  payment_status?: "all" | "paid" | "unpaid" | undefined;
1587
1783
  date_from?: string | undefined;
1588
1784
  date_to?: string | undefined;
1785
+ updated_after?: string | undefined;
1589
1786
  page?: number | undefined;
1590
1787
  size?: number | undefined;
1591
1788
  } | undefined): import("../types/api").RequestData<{
@@ -1628,6 +1825,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1628
1825
  model?: string | undefined;
1629
1826
  name?: string | undefined;
1630
1827
  } | undefined;
1828
+ outstanding_amount?: number | undefined;
1829
+ last_updated_on?: string | undefined;
1631
1830
  }[]>;
1632
1831
  getInvoiceById(invoiceId: string, params: {
1633
1832
  include_pdf?: "true" | "false" | undefined;
@@ -1671,6 +1870,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1671
1870
  model?: string | undefined;
1672
1871
  name?: string | undefined;
1673
1872
  } | undefined;
1873
+ outstanding_amount?: number | undefined;
1874
+ last_updated_on?: string | undefined;
1674
1875
  }>;
1675
1876
  createInvoice(invoice: {
1676
1877
  currency: string;
@@ -1707,6 +1908,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1707
1908
  model?: string | undefined;
1708
1909
  name?: string | undefined;
1709
1910
  } | undefined;
1911
+ outstanding_amount?: number | undefined;
1710
1912
  }): import("../types/api").RequestData<{
1711
1913
  id: string;
1712
1914
  source_ref: {
@@ -1747,6 +1949,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
1747
1949
  model?: string | undefined;
1748
1950
  name?: string | undefined;
1749
1951
  } | undefined;
1952
+ outstanding_amount?: number | undefined;
1953
+ last_updated_on?: string | undefined;
1750
1954
  }>;
1751
1955
  getProducts(): import("../types/api").RequestData<{
1752
1956
  id: string;
@@ -2059,6 +2263,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2059
2263
  currency?: string | undefined;
2060
2264
  addresses?: {
2061
2265
  address_type: "main" | "delivery" | "invoice";
2266
+ company_name?: string | undefined;
2062
2267
  first_name?: string | undefined;
2063
2268
  last_name?: string | undefined;
2064
2269
  street?: string | undefined;
@@ -2152,6 +2357,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2152
2357
  currency?: string | undefined;
2153
2358
  addresses?: {
2154
2359
  address_type: "main" | "delivery" | "invoice";
2360
+ company_name?: string | undefined;
2155
2361
  first_name?: string | undefined;
2156
2362
  last_name?: string | undefined;
2157
2363
  street?: string | undefined;
@@ -2304,15 +2510,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2304
2510
  };
2305
2511
  order_number?: string | undefined;
2306
2512
  customer?: {
2307
- email: string;
2308
2513
  first_name?: string | undefined;
2309
2514
  last_name?: string | undefined;
2310
2515
  phone?: string | undefined;
2311
2516
  internal_notes?: string | undefined;
2517
+ email?: string | undefined;
2312
2518
  id: string;
2313
2519
  } | undefined;
2314
2520
  billing_address?: {
2315
2521
  address_type: "main" | "delivery" | "invoice";
2522
+ company_name?: string | undefined;
2316
2523
  first_name?: string | undefined;
2317
2524
  last_name?: string | undefined;
2318
2525
  street?: string | undefined;
@@ -2326,6 +2533,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2326
2533
  } | undefined;
2327
2534
  shipping_address?: {
2328
2535
  address_type: "main" | "delivery" | "invoice";
2536
+ company_name?: string | undefined;
2329
2537
  first_name?: string | undefined;
2330
2538
  last_name?: string | undefined;
2331
2539
  street?: string | undefined;
@@ -2351,6 +2559,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2351
2559
  total: number;
2352
2560
  refunded_amount?: number | undefined;
2353
2561
  detailed_refunds?: {
2562
+ id: string;
2563
+ source_ref: {
2564
+ id?: string | undefined;
2565
+ model?: string | undefined;
2566
+ };
2354
2567
  created_on?: string | undefined;
2355
2568
  total: number;
2356
2569
  reason?: string | undefined;
@@ -2367,6 +2580,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2367
2580
  total: number;
2368
2581
  }[] | undefined;
2369
2582
  other?: number | undefined;
2583
+ shipping_refunds?: {
2584
+ untaxed_amount: number;
2585
+ tax_amount: number;
2586
+ total: number;
2587
+ }[] | undefined;
2370
2588
  }[] | undefined;
2371
2589
  currency: string;
2372
2590
  note?: string | undefined;
@@ -2376,6 +2594,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2376
2594
  id?: string | undefined;
2377
2595
  model?: string | undefined;
2378
2596
  };
2597
+ created_on?: string | undefined;
2379
2598
  variant?: {
2380
2599
  id: string;
2381
2600
  sku?: string | undefined;
@@ -2384,6 +2603,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2384
2603
  quantity: number;
2385
2604
  unit_price: number;
2386
2605
  description: string;
2606
+ tax_id?: string | undefined;
2387
2607
  tax_rate: number;
2388
2608
  untaxed_amount: number;
2389
2609
  tax_amount: number;
@@ -2393,22 +2613,42 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2393
2613
  description: string;
2394
2614
  amount: number;
2395
2615
  }[] | undefined;
2616
+ gift_card?: boolean | undefined;
2396
2617
  }[];
2397
2618
  other_fees?: {
2619
+ created_on?: string | undefined;
2398
2620
  type: "other" | "shipping";
2399
2621
  tax_rate: number;
2622
+ tax_id?: string | undefined;
2623
+ discounts?: {
2624
+ name: string;
2625
+ description: string;
2626
+ amount: number;
2627
+ }[] | undefined;
2400
2628
  untaxed_amount: number;
2401
2629
  tax_amount: number;
2402
2630
  total: number;
2403
2631
  }[] | undefined;
2632
+ payment_method_id?: string | undefined;
2633
+ transactions?: {
2634
+ id: string;
2635
+ payment_method_id?: string | undefined;
2636
+ payment_method_name?: string | undefined;
2637
+ amount: number;
2638
+ status: "failed" | "pending" | "success";
2639
+ }[] | undefined;
2640
+ payment_methods?: {
2641
+ id: string;
2642
+ name?: string | undefined;
2643
+ }[] | undefined;
2404
2644
  }[]>;
2405
2645
  createOrder(order: {
2406
2646
  customer: {
2407
- email: string;
2408
2647
  first_name?: string | undefined;
2409
2648
  last_name?: string | undefined;
2410
2649
  phone?: string | undefined;
2411
2650
  internal_notes?: string | undefined;
2651
+ email: string;
2412
2652
  };
2413
2653
  billing_address: {
2414
2654
  first_name: string;
@@ -2451,15 +2691,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2451
2691
  };
2452
2692
  order_number?: string | undefined;
2453
2693
  customer?: {
2454
- email: string;
2455
2694
  first_name?: string | undefined;
2456
2695
  last_name?: string | undefined;
2457
2696
  phone?: string | undefined;
2458
2697
  internal_notes?: string | undefined;
2698
+ email?: string | undefined;
2459
2699
  id: string;
2460
2700
  } | undefined;
2461
2701
  billing_address?: {
2462
2702
  address_type: "main" | "delivery" | "invoice";
2703
+ company_name?: string | undefined;
2463
2704
  first_name?: string | undefined;
2464
2705
  last_name?: string | undefined;
2465
2706
  street?: string | undefined;
@@ -2473,6 +2714,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2473
2714
  } | undefined;
2474
2715
  shipping_address?: {
2475
2716
  address_type: "main" | "delivery" | "invoice";
2717
+ company_name?: string | undefined;
2476
2718
  first_name?: string | undefined;
2477
2719
  last_name?: string | undefined;
2478
2720
  street?: string | undefined;
@@ -2498,6 +2740,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2498
2740
  total: number;
2499
2741
  refunded_amount?: number | undefined;
2500
2742
  detailed_refunds?: {
2743
+ id: string;
2744
+ source_ref: {
2745
+ id?: string | undefined;
2746
+ model?: string | undefined;
2747
+ };
2501
2748
  created_on?: string | undefined;
2502
2749
  total: number;
2503
2750
  reason?: string | undefined;
@@ -2514,6 +2761,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2514
2761
  total: number;
2515
2762
  }[] | undefined;
2516
2763
  other?: number | undefined;
2764
+ shipping_refunds?: {
2765
+ untaxed_amount: number;
2766
+ tax_amount: number;
2767
+ total: number;
2768
+ }[] | undefined;
2517
2769
  }[] | undefined;
2518
2770
  currency: string;
2519
2771
  note?: string | undefined;
@@ -2523,6 +2775,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2523
2775
  id?: string | undefined;
2524
2776
  model?: string | undefined;
2525
2777
  };
2778
+ created_on?: string | undefined;
2526
2779
  variant?: {
2527
2780
  id: string;
2528
2781
  sku?: string | undefined;
@@ -2531,6 +2784,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2531
2784
  quantity: number;
2532
2785
  unit_price: number;
2533
2786
  description: string;
2787
+ tax_id?: string | undefined;
2534
2788
  tax_rate: number;
2535
2789
  untaxed_amount: number;
2536
2790
  tax_amount: number;
@@ -2540,14 +2794,34 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2540
2794
  description: string;
2541
2795
  amount: number;
2542
2796
  }[] | undefined;
2797
+ gift_card?: boolean | undefined;
2543
2798
  }[];
2544
2799
  other_fees?: {
2800
+ created_on?: string | undefined;
2545
2801
  type: "other" | "shipping";
2546
2802
  tax_rate: number;
2803
+ tax_id?: string | undefined;
2804
+ discounts?: {
2805
+ name: string;
2806
+ description: string;
2807
+ amount: number;
2808
+ }[] | undefined;
2547
2809
  untaxed_amount: number;
2548
2810
  tax_amount: number;
2549
2811
  total: number;
2550
2812
  }[] | undefined;
2813
+ payment_method_id?: string | undefined;
2814
+ transactions?: {
2815
+ id: string;
2816
+ payment_method_id?: string | undefined;
2817
+ payment_method_name?: string | undefined;
2818
+ amount: number;
2819
+ status: "failed" | "pending" | "success";
2820
+ }[] | undefined;
2821
+ payment_methods?: {
2822
+ id: string;
2823
+ name?: string | undefined;
2824
+ }[] | undefined;
2551
2825
  }>;
2552
2826
  getOrder(orderId: string): import("../types/api").RequestData<{
2553
2827
  id: string;
@@ -2557,15 +2831,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2557
2831
  };
2558
2832
  order_number?: string | undefined;
2559
2833
  customer?: {
2560
- email: string;
2561
2834
  first_name?: string | undefined;
2562
2835
  last_name?: string | undefined;
2563
2836
  phone?: string | undefined;
2564
2837
  internal_notes?: string | undefined;
2838
+ email?: string | undefined;
2565
2839
  id: string;
2566
2840
  } | undefined;
2567
2841
  billing_address?: {
2568
2842
  address_type: "main" | "delivery" | "invoice";
2843
+ company_name?: string | undefined;
2569
2844
  first_name?: string | undefined;
2570
2845
  last_name?: string | undefined;
2571
2846
  street?: string | undefined;
@@ -2579,6 +2854,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2579
2854
  } | undefined;
2580
2855
  shipping_address?: {
2581
2856
  address_type: "main" | "delivery" | "invoice";
2857
+ company_name?: string | undefined;
2582
2858
  first_name?: string | undefined;
2583
2859
  last_name?: string | undefined;
2584
2860
  street?: string | undefined;
@@ -2604,6 +2880,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2604
2880
  total: number;
2605
2881
  refunded_amount?: number | undefined;
2606
2882
  detailed_refunds?: {
2883
+ id: string;
2884
+ source_ref: {
2885
+ id?: string | undefined;
2886
+ model?: string | undefined;
2887
+ };
2607
2888
  created_on?: string | undefined;
2608
2889
  total: number;
2609
2890
  reason?: string | undefined;
@@ -2620,6 +2901,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2620
2901
  total: number;
2621
2902
  }[] | undefined;
2622
2903
  other?: number | undefined;
2904
+ shipping_refunds?: {
2905
+ untaxed_amount: number;
2906
+ tax_amount: number;
2907
+ total: number;
2908
+ }[] | undefined;
2623
2909
  }[] | undefined;
2624
2910
  currency: string;
2625
2911
  note?: string | undefined;
@@ -2629,6 +2915,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2629
2915
  id?: string | undefined;
2630
2916
  model?: string | undefined;
2631
2917
  };
2918
+ created_on?: string | undefined;
2632
2919
  variant?: {
2633
2920
  id: string;
2634
2921
  sku?: string | undefined;
@@ -2637,6 +2924,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2637
2924
  quantity: number;
2638
2925
  unit_price: number;
2639
2926
  description: string;
2927
+ tax_id?: string | undefined;
2640
2928
  tax_rate: number;
2641
2929
  untaxed_amount: number;
2642
2930
  tax_amount: number;
@@ -2646,15 +2934,67 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2646
2934
  description: string;
2647
2935
  amount: number;
2648
2936
  }[] | undefined;
2937
+ gift_card?: boolean | undefined;
2649
2938
  }[];
2650
2939
  other_fees?: {
2940
+ created_on?: string | undefined;
2651
2941
  type: "other" | "shipping";
2652
2942
  tax_rate: number;
2943
+ tax_id?: string | undefined;
2944
+ discounts?: {
2945
+ name: string;
2946
+ description: string;
2947
+ amount: number;
2948
+ }[] | undefined;
2653
2949
  untaxed_amount: number;
2654
2950
  tax_amount: number;
2655
2951
  total: number;
2656
2952
  }[] | undefined;
2953
+ payment_method_id?: string | undefined;
2954
+ transactions?: {
2955
+ id: string;
2956
+ payment_method_id?: string | undefined;
2957
+ payment_method_name?: string | undefined;
2958
+ amount: number;
2959
+ status: "failed" | "pending" | "success";
2960
+ }[] | undefined;
2961
+ payment_methods?: {
2962
+ id: string;
2963
+ name?: string | undefined;
2964
+ }[] | undefined;
2657
2965
  }>;
2966
+ getPaymentMethods(params: {}): import("../types/api").RequestData<{
2967
+ id: string;
2968
+ source_ref: {
2969
+ id?: string | undefined;
2970
+ model?: string | undefined;
2971
+ };
2972
+ name: string;
2973
+ active: boolean;
2974
+ }[]>;
2975
+ getProductCategories(params: {}): import("../types/api").RequestData<{
2976
+ id: string;
2977
+ source_ref: {
2978
+ id?: string | undefined;
2979
+ model?: string | undefined;
2980
+ };
2981
+ name: string;
2982
+ parent_id?: string | undefined;
2983
+ }[]>;
2984
+ getTaxes(params: {}): import("../types/api").RequestData<{
2985
+ id: string;
2986
+ source_ref: {
2987
+ id?: string | undefined;
2988
+ model?: string | undefined;
2989
+ };
2990
+ label: string;
2991
+ rate: number;
2992
+ country?: string | undefined;
2993
+ }[]>;
2994
+ getCountries(params: {}): import("../types/api").RequestData<{
2995
+ code: string;
2996
+ name: string;
2997
+ }[]>;
2658
2998
  }>;
2659
2999
  custom: import("../types/api").ApiFor<{
2660
3000
  get(name: string, resource: string, params?: any): import("../types/api").RequestData<any>;
@@ -2680,12 +3020,15 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2680
3020
  link_createdon: string;
2681
3021
  link_mappings?: {
2682
3022
  name: string;
2683
- description: string;
2684
- logic?: Record<string, never> | undefined;
3023
+ description?: string | undefined;
3024
+ display_order?: number | undefined;
3025
+ challenge_question?: string | undefined;
2685
3026
  values: {
2686
3027
  source_id: string;
2687
3028
  target_id: string;
2688
3029
  }[];
3030
+ sub_mapping_name: string;
3031
+ sub_mapping_description?: string | undefined;
2689
3032
  }[] | undefined;
2690
3033
  link_metadata?: Record<string, never> | undefined;
2691
3034
  enabled_flows?: {
@@ -2712,7 +3055,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2712
3055
  }[] | undefined;
2713
3056
  } | undefined;
2714
3057
  values: Record<string, never>;
2715
- enabled_on: string;
3058
+ enabled_on?: string | undefined;
3059
+ trigger: {
3060
+ id: string;
3061
+ type: "timer" | "event";
3062
+ cronschedule?: string | undefined;
3063
+ };
2716
3064
  }[] | undefined;
2717
3065
  }>;
2718
3066
  getDataByDataStoreName: (dataStoreName: string, params?: object) => Promise<{
@@ -2730,6 +3078,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
2730
3078
  id: string;
2731
3079
  created_on: string;
2732
3080
  }[]>;
3081
+ deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<SimpleResponseModel>;
2733
3082
  logData: (logs: ConsumerLog[]) => Promise<SimpleResponseModel>;
2734
3083
  };
2735
3084
  export { Consumer };