@chift/chift-nodejs 1.0.6 → 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.
- package/.github/workflows/ci.yml +38 -38
- package/CHANGELOG.md +18 -0
- package/dist/src/modules/accounting.d.ts +6 -6
- package/dist/src/modules/accounting.js +17 -11
- package/dist/src/modules/api.d.ts +1673 -27960
- package/dist/src/modules/consumer.d.ts +320 -46
- package/dist/src/modules/consumer.js +10 -0
- package/dist/src/modules/consumers.d.ts +1650 -260
- package/dist/src/modules/ecommerce.d.ts +8 -0
- package/dist/src/modules/ecommerce.js +28 -0
- package/dist/src/modules/flow.js +1 -1
- package/dist/src/modules/pos.d.ts +3 -1
- package/dist/src/modules/pos.js +7 -0
- package/dist/src/modules/sync.d.ts +1321 -209
- package/dist/src/modules/syncs.d.ts +8 -27677
- package/dist/src/modules/syncs.js +10 -0
- package/dist/test/modules/accounting.test.js +0 -11
- package/dist/test/modules/ecommerce.test.js +34 -7
- package/dist/test/modules/pos.test.js +10 -5
- package/package.json +2 -2
- package/src/modules/accounting.ts +25 -13
- package/src/modules/api.ts +2 -2
- package/src/modules/consumer.ts +21 -0
- package/src/modules/ecommerce.ts +52 -0
- package/src/modules/flow.ts +1 -1
- package/src/modules/pos.ts +15 -1
- package/src/modules/syncs.ts +32 -1
- package/src/types/public-api/schema.d.ts +3624 -2621
- package/test/modules/accounting.test.ts +0 -14
- package/test/modules/ecommerce.test.ts +34 -3
- package/test/modules/pos.test.ts +11 -5
- package/.eslintcache +0 -1
- package/coverage/clover.xml +0 -1645
- package/coverage/coverage-final.json +0 -19
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -146
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov-report/src/helpers/index.html +0 -131
- package/coverage/lcov-report/src/helpers/openapi.ts.html +0 -151
- package/coverage/lcov-report/src/helpers/settings.ts.html +0 -94
- package/coverage/lcov-report/src/index.html +0 -116
- package/coverage/lcov-report/src/index.ts.html +0 -88
- package/coverage/lcov-report/src/modules/accounting.ts.html +0 -1156
- package/coverage/lcov-report/src/modules/api.ts.html +0 -190
- package/coverage/lcov-report/src/modules/consumer.ts.html +0 -616
- package/coverage/lcov-report/src/modules/consumers.ts.html +0 -331
- package/coverage/lcov-report/src/modules/custom.ts.html +0 -193
- package/coverage/lcov-report/src/modules/datastores.ts.html +0 -142
- package/coverage/lcov-report/src/modules/ecommerce.ts.html +0 -331
- package/coverage/lcov-report/src/modules/flow.ts.html +0 -589
- package/coverage/lcov-report/src/modules/index.html +0 -326
- package/coverage/lcov-report/src/modules/integrations.ts.html +0 -151
- package/coverage/lcov-report/src/modules/internalApi.ts.html +0 -586
- package/coverage/lcov-report/src/modules/invoicing.ts.html +0 -391
- package/coverage/lcov-report/src/modules/pos.ts.html +0 -421
- package/coverage/lcov-report/src/modules/sync.ts.html +0 -316
- package/coverage/lcov-report/src/modules/syncs.ts.html +0 -169
- package/coverage/lcov-report/src/modules/webhooks.ts.html +0 -343
- package/coverage/lcov.info +0 -1976
- package/dist/test/modules/flow.test.d.ts +0 -1
- 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,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
|
|
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
|
|
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
|
-
|
|
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
|
|
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,6 +334,14 @@ 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
347
|
getAnalyticPlans(): import("../types/api").RequestData<{
|
|
@@ -398,6 +420,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
398
420
|
account_number?: string | undefined;
|
|
399
421
|
}, params: {
|
|
400
422
|
force_merge?: string | undefined;
|
|
423
|
+
folder_id?: string | undefined;
|
|
401
424
|
} | undefined): import("../types/api").RequestData<{
|
|
402
425
|
external_reference?: string | undefined;
|
|
403
426
|
first_name?: string | undefined;
|
|
@@ -609,6 +632,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
609
632
|
account_number?: string | undefined;
|
|
610
633
|
}, params: {
|
|
611
634
|
force_merge?: string | undefined;
|
|
635
|
+
folder_id?: string | undefined;
|
|
612
636
|
} | undefined): import("../types/api").RequestData<{
|
|
613
637
|
external_reference?: string | undefined;
|
|
614
638
|
first_name?: string | undefined;
|
|
@@ -752,8 +776,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
752
776
|
createInvoice(invoice: {
|
|
753
777
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
754
778
|
invoice_number?: string | undefined;
|
|
755
|
-
invoice_date: string;
|
|
756
|
-
due_date: string;
|
|
757
779
|
currency: string;
|
|
758
780
|
untaxed_amount: number;
|
|
759
781
|
tax_amount: number;
|
|
@@ -761,6 +783,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
761
783
|
reference?: string | undefined;
|
|
762
784
|
payment_communication?: string | undefined;
|
|
763
785
|
customer_memo?: string | undefined;
|
|
786
|
+
invoice_date: string;
|
|
787
|
+
due_date: string;
|
|
764
788
|
partner_id: string;
|
|
765
789
|
journal_id?: string | undefined;
|
|
766
790
|
status?: "draft" | "posted" | undefined;
|
|
@@ -772,6 +796,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
772
796
|
invoice_correction_credit_account_number?: string | undefined;
|
|
773
797
|
invoice_correction_debit_account_number?: string | undefined;
|
|
774
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;
|
|
775
809
|
lines: {
|
|
776
810
|
line_number?: number | undefined;
|
|
777
811
|
description: string;
|
|
@@ -789,11 +823,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
789
823
|
}, params: {
|
|
790
824
|
force_financial_period?: string | undefined;
|
|
791
825
|
regroup_lines?: "true" | "false" | undefined;
|
|
826
|
+
folder_id?: string | undefined;
|
|
792
827
|
} | undefined): import("../types/api").RequestData<{
|
|
793
828
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
794
829
|
invoice_number?: string | undefined;
|
|
795
|
-
invoice_date: string;
|
|
796
|
-
due_date: string;
|
|
797
830
|
currency: string;
|
|
798
831
|
untaxed_amount: number;
|
|
799
832
|
tax_amount: number;
|
|
@@ -802,6 +835,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
802
835
|
payment_communication?: string | undefined;
|
|
803
836
|
customer_memo?: string | undefined;
|
|
804
837
|
id?: string | undefined;
|
|
838
|
+
invoice_date: string;
|
|
839
|
+
due_date: string;
|
|
805
840
|
partner_id: string;
|
|
806
841
|
journal_id: string;
|
|
807
842
|
payments?: {
|
|
@@ -837,8 +872,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
837
872
|
createInvoiceWithMultiplePlans(invoice: {
|
|
838
873
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
839
874
|
invoice_number?: string | undefined;
|
|
840
|
-
invoice_date: string;
|
|
841
|
-
due_date: string;
|
|
842
875
|
currency: string;
|
|
843
876
|
untaxed_amount: number;
|
|
844
877
|
tax_amount: number;
|
|
@@ -846,6 +879,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
846
879
|
reference?: string | undefined;
|
|
847
880
|
payment_communication?: string | undefined;
|
|
848
881
|
customer_memo?: string | undefined;
|
|
882
|
+
invoice_date: string;
|
|
883
|
+
due_date: string;
|
|
849
884
|
partner_id: string;
|
|
850
885
|
journal_id?: string | undefined;
|
|
851
886
|
status?: "draft" | "posted" | undefined;
|
|
@@ -857,6 +892,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
857
892
|
invoice_correction_credit_account_number?: string | undefined;
|
|
858
893
|
invoice_correction_debit_account_number?: string | undefined;
|
|
859
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;
|
|
860
905
|
lines: {
|
|
861
906
|
line_number?: number | undefined;
|
|
862
907
|
description: string;
|
|
@@ -880,11 +925,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
880
925
|
}, params: {
|
|
881
926
|
force_financial_period?: string | undefined;
|
|
882
927
|
regroup_lines?: "true" | "false" | undefined;
|
|
928
|
+
folder_id?: string | undefined;
|
|
883
929
|
} | undefined): import("../types/api").RequestData<{
|
|
884
930
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
885
931
|
invoice_number?: string | undefined;
|
|
886
|
-
invoice_date: string;
|
|
887
|
-
due_date: string;
|
|
888
932
|
currency: string;
|
|
889
933
|
untaxed_amount: number;
|
|
890
934
|
tax_amount: number;
|
|
@@ -893,6 +937,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
893
937
|
payment_communication?: string | undefined;
|
|
894
938
|
customer_memo?: string | undefined;
|
|
895
939
|
id?: string | undefined;
|
|
940
|
+
invoice_date: string;
|
|
941
|
+
due_date: string;
|
|
896
942
|
partner_id: string;
|
|
897
943
|
journal_id: string;
|
|
898
944
|
payments?: {
|
|
@@ -934,8 +980,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
934
980
|
getInvoicesByType(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
|
|
935
981
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
936
982
|
invoice_number?: string | undefined;
|
|
937
|
-
invoice_date: string;
|
|
938
|
-
due_date: string;
|
|
939
983
|
currency: string;
|
|
940
984
|
untaxed_amount: number;
|
|
941
985
|
tax_amount: number;
|
|
@@ -944,6 +988,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
944
988
|
payment_communication?: string | undefined;
|
|
945
989
|
customer_memo?: string | undefined;
|
|
946
990
|
id?: string | undefined;
|
|
991
|
+
invoice_date: string;
|
|
992
|
+
due_date: string;
|
|
947
993
|
partner_id: string;
|
|
948
994
|
journal_id: string;
|
|
949
995
|
payments?: {
|
|
@@ -978,11 +1024,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
978
1024
|
}[]>;
|
|
979
1025
|
getInvoice(invoiceId: string, params: {
|
|
980
1026
|
include_payments?: "true" | "false" | undefined;
|
|
1027
|
+
folder_id?: string | undefined;
|
|
981
1028
|
} | undefined): import("../types/api").RequestData<{
|
|
982
1029
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
983
1030
|
invoice_number?: string | undefined;
|
|
984
|
-
invoice_date: string;
|
|
985
|
-
due_date: string;
|
|
986
1031
|
currency: string;
|
|
987
1032
|
untaxed_amount: number;
|
|
988
1033
|
tax_amount: number;
|
|
@@ -991,6 +1036,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
991
1036
|
payment_communication?: string | undefined;
|
|
992
1037
|
customer_memo?: string | undefined;
|
|
993
1038
|
id?: string | undefined;
|
|
1039
|
+
invoice_date: string;
|
|
1040
|
+
due_date: string;
|
|
994
1041
|
partner_id: string;
|
|
995
1042
|
journal_id: string;
|
|
996
1043
|
payments?: {
|
|
@@ -1025,11 +1072,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1025
1072
|
}>;
|
|
1026
1073
|
getInvoiceWithMultiplePlans(invoiceId: string, params: {
|
|
1027
1074
|
include_payments?: "true" | "false" | undefined;
|
|
1075
|
+
folder_id?: string | undefined;
|
|
1028
1076
|
} | undefined): import("../types/api").RequestData<{
|
|
1029
1077
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1030
1078
|
invoice_number?: string | undefined;
|
|
1031
|
-
invoice_date: string;
|
|
1032
|
-
due_date: string;
|
|
1033
1079
|
currency: string;
|
|
1034
1080
|
untaxed_amount: number;
|
|
1035
1081
|
tax_amount: number;
|
|
@@ -1038,6 +1084,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1038
1084
|
payment_communication?: string | undefined;
|
|
1039
1085
|
customer_memo?: string | undefined;
|
|
1040
1086
|
id?: string | undefined;
|
|
1087
|
+
invoice_date: string;
|
|
1088
|
+
due_date: string;
|
|
1041
1089
|
partner_id: string;
|
|
1042
1090
|
journal_id: string;
|
|
1043
1091
|
payments?: {
|
|
@@ -1079,8 +1127,6 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1079
1127
|
getInvoicesByTypeWithMultiplePlans(invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund", params: {}): import("../types/api").RequestData<{
|
|
1080
1128
|
invoice_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund";
|
|
1081
1129
|
invoice_number?: string | undefined;
|
|
1082
|
-
invoice_date: string;
|
|
1083
|
-
due_date: string;
|
|
1084
1130
|
currency: string;
|
|
1085
1131
|
untaxed_amount: number;
|
|
1086
1132
|
tax_amount: number;
|
|
@@ -1089,6 +1135,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1089
1135
|
payment_communication?: string | undefined;
|
|
1090
1136
|
customer_memo?: string | undefined;
|
|
1091
1137
|
id?: string | undefined;
|
|
1138
|
+
invoice_date: string;
|
|
1139
|
+
due_date: string;
|
|
1092
1140
|
partner_id: string;
|
|
1093
1141
|
journal_id: string;
|
|
1094
1142
|
payments?: {
|
|
@@ -1231,16 +1279,10 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1231
1279
|
debit?: number | undefined;
|
|
1232
1280
|
analytic_plan: string;
|
|
1233
1281
|
}[]>;
|
|
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
1282
|
getJournalEntries(params: {
|
|
1242
1283
|
date_from: string;
|
|
1243
1284
|
date_to: string;
|
|
1285
|
+
folder_id?: string | undefined;
|
|
1244
1286
|
unposted_allowed: "true" | "false";
|
|
1245
1287
|
journal_id: string;
|
|
1246
1288
|
partner_id?: string | undefined;
|
|
@@ -1272,6 +1314,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1272
1314
|
getJournalEntriesWithMultiplePlans(params: {
|
|
1273
1315
|
date_from: string;
|
|
1274
1316
|
date_to: string;
|
|
1317
|
+
folder_id?: string | undefined;
|
|
1275
1318
|
unposted_allowed: "true" | "false";
|
|
1276
1319
|
journal_id: string;
|
|
1277
1320
|
partner_id?: string | undefined;
|
|
@@ -1321,7 +1364,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1321
1364
|
}[]>;
|
|
1322
1365
|
getJournals(): import("../types/api").RequestData<{
|
|
1323
1366
|
id: string;
|
|
1324
|
-
code
|
|
1367
|
+
code?: string | undefined;
|
|
1325
1368
|
name: string;
|
|
1326
1369
|
journal_type: "customer_invoice" | "customer_refund" | "supplier_invoice" | "supplier_refund" | "financial_operation" | "miscellaneous_operation" | "unknown";
|
|
1327
1370
|
}[]>;
|
|
@@ -1332,10 +1375,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1332
1375
|
scope?: "unknown" | "nat" | "eu" | "int" | undefined;
|
|
1333
1376
|
rate: number;
|
|
1334
1377
|
type: "unknown" | "sale" | "purchase" | "both";
|
|
1378
|
+
deductible_account?: string | undefined;
|
|
1379
|
+
payable_account?: string | undefined;
|
|
1335
1380
|
}[]>;
|
|
1336
1381
|
getMiscOperations(params: {}): import("../types/api").RequestData<{
|
|
1337
1382
|
operation_number?: string | undefined;
|
|
1338
|
-
operation_date: string;
|
|
1339
1383
|
currency: string;
|
|
1340
1384
|
currency_exchange_rate?: number | undefined;
|
|
1341
1385
|
lines: {
|
|
@@ -1347,13 +1391,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1347
1391
|
partner_id?: string | undefined;
|
|
1348
1392
|
analytic_account?: string | undefined;
|
|
1349
1393
|
}[];
|
|
1394
|
+
operation_date?: string | undefined;
|
|
1350
1395
|
journal_id: string;
|
|
1351
1396
|
status: "draft" | "posted" | "cancelled" | "matched";
|
|
1352
1397
|
id: string;
|
|
1353
1398
|
}[]>;
|
|
1354
1399
|
createMiscOperation(operation: {
|
|
1355
1400
|
operation_number?: string | undefined;
|
|
1356
|
-
operation_date: string;
|
|
1357
1401
|
currency: string;
|
|
1358
1402
|
currency_exchange_rate?: number | undefined;
|
|
1359
1403
|
lines: {
|
|
@@ -1365,11 +1409,13 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1365
1409
|
partner_id?: string | undefined;
|
|
1366
1410
|
analytic_account?: string | undefined;
|
|
1367
1411
|
}[];
|
|
1412
|
+
operation_date: string;
|
|
1368
1413
|
journal_id?: string | undefined;
|
|
1369
1414
|
status?: "draft" | "posted" | undefined;
|
|
1370
|
-
}
|
|
1415
|
+
}, params: {
|
|
1416
|
+
folder_id?: string | undefined;
|
|
1417
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1371
1418
|
operation_number?: string | undefined;
|
|
1372
|
-
operation_date: string;
|
|
1373
1419
|
currency: string;
|
|
1374
1420
|
currency_exchange_rate?: number | undefined;
|
|
1375
1421
|
lines: {
|
|
@@ -1381,13 +1427,15 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1381
1427
|
partner_id?: string | undefined;
|
|
1382
1428
|
analytic_account?: string | undefined;
|
|
1383
1429
|
}[];
|
|
1430
|
+
operation_date?: string | undefined;
|
|
1384
1431
|
journal_id: string;
|
|
1385
1432
|
status: "draft" | "posted" | "cancelled" | "matched";
|
|
1386
1433
|
id: string;
|
|
1387
1434
|
}>;
|
|
1388
|
-
getMiscOperation(operation_id: string
|
|
1435
|
+
getMiscOperation(operation_id: string, params: {
|
|
1436
|
+
folder_id?: string | undefined;
|
|
1437
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1389
1438
|
operation_number?: string | undefined;
|
|
1390
|
-
operation_date: string;
|
|
1391
1439
|
currency: string;
|
|
1392
1440
|
currency_exchange_rate?: number | undefined;
|
|
1393
1441
|
lines: {
|
|
@@ -1399,6 +1447,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1399
1447
|
partner_id?: string | undefined;
|
|
1400
1448
|
analytic_account?: string | undefined;
|
|
1401
1449
|
}[];
|
|
1450
|
+
operation_date?: string | undefined;
|
|
1402
1451
|
journal_id: string;
|
|
1403
1452
|
status: "draft" | "posted" | "cancelled" | "matched";
|
|
1404
1453
|
id: string;
|
|
@@ -1407,6 +1456,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1407
1456
|
base64_string: string;
|
|
1408
1457
|
}, params: {
|
|
1409
1458
|
overwrite_existing?: "true" | "false" | undefined;
|
|
1459
|
+
folder_id?: string | undefined;
|
|
1410
1460
|
} | undefined): import("../types/api").RequestData<{
|
|
1411
1461
|
content: {
|
|
1412
1462
|
'application/json': unknown;
|
|
@@ -1422,13 +1472,21 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1422
1472
|
accounts: string[];
|
|
1423
1473
|
start: string;
|
|
1424
1474
|
end: string;
|
|
1425
|
-
}
|
|
1475
|
+
}, params: {
|
|
1476
|
+
folder_id?: string | undefined;
|
|
1477
|
+
page?: number | undefined;
|
|
1478
|
+
size?: number | undefined;
|
|
1479
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1426
1480
|
account_number: string;
|
|
1427
1481
|
debit: number;
|
|
1428
1482
|
credit: number;
|
|
1429
1483
|
balance: number;
|
|
1430
1484
|
}[]>;
|
|
1431
|
-
getEmployees(
|
|
1485
|
+
getEmployees(params: {
|
|
1486
|
+
folder_id?: string | undefined;
|
|
1487
|
+
page?: number | undefined;
|
|
1488
|
+
size?: number | undefined;
|
|
1489
|
+
} | undefined): import("../types/api").RequestData<{
|
|
1432
1490
|
id: string;
|
|
1433
1491
|
name: string;
|
|
1434
1492
|
first_name?: string | undefined;
|
|
@@ -1442,6 +1500,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1442
1500
|
account_number?: string | undefined;
|
|
1443
1501
|
}[]>;
|
|
1444
1502
|
getOutstandings(params: {
|
|
1503
|
+
folder_id?: string | undefined;
|
|
1445
1504
|
unposted_allowed: "true" | "false";
|
|
1446
1505
|
type: "client" | "supplier";
|
|
1447
1506
|
}): import("../types/api").RequestData<{
|
|
@@ -1458,6 +1517,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1458
1517
|
partner_id: string;
|
|
1459
1518
|
account_number: string;
|
|
1460
1519
|
reference?: string | undefined;
|
|
1520
|
+
payment_communication?: string | undefined;
|
|
1461
1521
|
posted: boolean;
|
|
1462
1522
|
}[]>;
|
|
1463
1523
|
createFinancialEntryOld(financial_entry: {
|
|
@@ -1477,6 +1537,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1477
1537
|
pdf?: string | undefined;
|
|
1478
1538
|
}, params: {
|
|
1479
1539
|
financial_counterpart_account?: string | undefined;
|
|
1540
|
+
folder_id?: string | undefined;
|
|
1480
1541
|
} | undefined): import("../types/api").RequestData<{
|
|
1481
1542
|
date: string;
|
|
1482
1543
|
journal_id: string;
|
|
@@ -1510,6 +1571,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1510
1571
|
pdf?: string | undefined;
|
|
1511
1572
|
}, params: {
|
|
1512
1573
|
financial_counterpart_account?: string | undefined;
|
|
1574
|
+
folder_id?: string | undefined;
|
|
1513
1575
|
} | undefined): import("../types/api").RequestData<{
|
|
1514
1576
|
date: string;
|
|
1515
1577
|
journal_id: string;
|
|
@@ -1526,7 +1588,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1526
1588
|
counterpart_account: string;
|
|
1527
1589
|
}[];
|
|
1528
1590
|
}[]>;
|
|
1529
|
-
|
|
1591
|
+
createJournalEntryOld(journal_entry: {
|
|
1530
1592
|
reference?: string | undefined;
|
|
1531
1593
|
due_date?: string | undefined;
|
|
1532
1594
|
journal_id: string;
|
|
@@ -1547,8 +1609,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1547
1609
|
percentage: number;
|
|
1548
1610
|
}[];
|
|
1549
1611
|
}[] | undefined;
|
|
1550
|
-
pdf?: string | undefined;
|
|
1551
1612
|
}[];
|
|
1613
|
+
pdf?: string | undefined;
|
|
1552
1614
|
}): import("../types/api").RequestData<{
|
|
1553
1615
|
reference?: string | undefined;
|
|
1554
1616
|
due_date?: string | undefined;
|
|
@@ -1579,6 +1641,65 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1579
1641
|
}[] | undefined;
|
|
1580
1642
|
}[] | undefined;
|
|
1581
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
|
+
}>;
|
|
1582
1703
|
}>;
|
|
1583
1704
|
invoicing: import("../types/api").ApiFor<{
|
|
1584
1705
|
getInvoices(params: {
|
|
@@ -1586,6 +1707,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1586
1707
|
payment_status?: "all" | "paid" | "unpaid" | undefined;
|
|
1587
1708
|
date_from?: string | undefined;
|
|
1588
1709
|
date_to?: string | undefined;
|
|
1710
|
+
updated_after?: string | undefined;
|
|
1589
1711
|
page?: number | undefined;
|
|
1590
1712
|
size?: number | undefined;
|
|
1591
1713
|
} | undefined): import("../types/api").RequestData<{
|
|
@@ -1628,6 +1750,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1628
1750
|
model?: string | undefined;
|
|
1629
1751
|
name?: string | undefined;
|
|
1630
1752
|
} | undefined;
|
|
1753
|
+
outstanding_amount?: number | undefined;
|
|
1754
|
+
last_updated_on?: string | undefined;
|
|
1631
1755
|
}[]>;
|
|
1632
1756
|
getInvoiceById(invoiceId: string, params: {
|
|
1633
1757
|
include_pdf?: "true" | "false" | undefined;
|
|
@@ -1671,6 +1795,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1671
1795
|
model?: string | undefined;
|
|
1672
1796
|
name?: string | undefined;
|
|
1673
1797
|
} | undefined;
|
|
1798
|
+
outstanding_amount?: number | undefined;
|
|
1799
|
+
last_updated_on?: string | undefined;
|
|
1674
1800
|
}>;
|
|
1675
1801
|
createInvoice(invoice: {
|
|
1676
1802
|
currency: string;
|
|
@@ -1707,6 +1833,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1707
1833
|
model?: string | undefined;
|
|
1708
1834
|
name?: string | undefined;
|
|
1709
1835
|
} | undefined;
|
|
1836
|
+
outstanding_amount?: number | undefined;
|
|
1710
1837
|
}): import("../types/api").RequestData<{
|
|
1711
1838
|
id: string;
|
|
1712
1839
|
source_ref: {
|
|
@@ -1747,6 +1874,8 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
1747
1874
|
model?: string | undefined;
|
|
1748
1875
|
name?: string | undefined;
|
|
1749
1876
|
} | undefined;
|
|
1877
|
+
outstanding_amount?: number | undefined;
|
|
1878
|
+
last_updated_on?: string | undefined;
|
|
1750
1879
|
}>;
|
|
1751
1880
|
getProducts(): import("../types/api").RequestData<{
|
|
1752
1881
|
id: string;
|
|
@@ -2059,6 +2188,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2059
2188
|
currency?: string | undefined;
|
|
2060
2189
|
addresses?: {
|
|
2061
2190
|
address_type: "main" | "delivery" | "invoice";
|
|
2191
|
+
company_name?: string | undefined;
|
|
2062
2192
|
first_name?: string | undefined;
|
|
2063
2193
|
last_name?: string | undefined;
|
|
2064
2194
|
street?: string | undefined;
|
|
@@ -2152,6 +2282,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2152
2282
|
currency?: string | undefined;
|
|
2153
2283
|
addresses?: {
|
|
2154
2284
|
address_type: "main" | "delivery" | "invoice";
|
|
2285
|
+
company_name?: string | undefined;
|
|
2155
2286
|
first_name?: string | undefined;
|
|
2156
2287
|
last_name?: string | undefined;
|
|
2157
2288
|
street?: string | undefined;
|
|
@@ -2304,15 +2435,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2304
2435
|
};
|
|
2305
2436
|
order_number?: string | undefined;
|
|
2306
2437
|
customer?: {
|
|
2307
|
-
email: string;
|
|
2308
2438
|
first_name?: string | undefined;
|
|
2309
2439
|
last_name?: string | undefined;
|
|
2310
2440
|
phone?: string | undefined;
|
|
2311
2441
|
internal_notes?: string | undefined;
|
|
2442
|
+
email?: string | undefined;
|
|
2312
2443
|
id: string;
|
|
2313
2444
|
} | undefined;
|
|
2314
2445
|
billing_address?: {
|
|
2315
2446
|
address_type: "main" | "delivery" | "invoice";
|
|
2447
|
+
company_name?: string | undefined;
|
|
2316
2448
|
first_name?: string | undefined;
|
|
2317
2449
|
last_name?: string | undefined;
|
|
2318
2450
|
street?: string | undefined;
|
|
@@ -2326,6 +2458,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2326
2458
|
} | undefined;
|
|
2327
2459
|
shipping_address?: {
|
|
2328
2460
|
address_type: "main" | "delivery" | "invoice";
|
|
2461
|
+
company_name?: string | undefined;
|
|
2329
2462
|
first_name?: string | undefined;
|
|
2330
2463
|
last_name?: string | undefined;
|
|
2331
2464
|
street?: string | undefined;
|
|
@@ -2351,6 +2484,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2351
2484
|
total: number;
|
|
2352
2485
|
refunded_amount?: number | undefined;
|
|
2353
2486
|
detailed_refunds?: {
|
|
2487
|
+
id: string;
|
|
2488
|
+
source_ref: {
|
|
2489
|
+
id?: string | undefined;
|
|
2490
|
+
model?: string | undefined;
|
|
2491
|
+
};
|
|
2354
2492
|
created_on?: string | undefined;
|
|
2355
2493
|
total: number;
|
|
2356
2494
|
reason?: string | undefined;
|
|
@@ -2367,6 +2505,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2367
2505
|
total: number;
|
|
2368
2506
|
}[] | undefined;
|
|
2369
2507
|
other?: number | undefined;
|
|
2508
|
+
shipping_refunds?: {
|
|
2509
|
+
untaxed_amount: number;
|
|
2510
|
+
tax_amount: number;
|
|
2511
|
+
total: number;
|
|
2512
|
+
}[] | undefined;
|
|
2370
2513
|
}[] | undefined;
|
|
2371
2514
|
currency: string;
|
|
2372
2515
|
note?: string | undefined;
|
|
@@ -2376,6 +2519,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2376
2519
|
id?: string | undefined;
|
|
2377
2520
|
model?: string | undefined;
|
|
2378
2521
|
};
|
|
2522
|
+
created_on?: string | undefined;
|
|
2379
2523
|
variant?: {
|
|
2380
2524
|
id: string;
|
|
2381
2525
|
sku?: string | undefined;
|
|
@@ -2384,6 +2528,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2384
2528
|
quantity: number;
|
|
2385
2529
|
unit_price: number;
|
|
2386
2530
|
description: string;
|
|
2531
|
+
tax_id?: string | undefined;
|
|
2387
2532
|
tax_rate: number;
|
|
2388
2533
|
untaxed_amount: number;
|
|
2389
2534
|
tax_amount: number;
|
|
@@ -2393,22 +2538,42 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2393
2538
|
description: string;
|
|
2394
2539
|
amount: number;
|
|
2395
2540
|
}[] | undefined;
|
|
2541
|
+
gift_card?: boolean | undefined;
|
|
2396
2542
|
}[];
|
|
2397
2543
|
other_fees?: {
|
|
2544
|
+
created_on?: string | undefined;
|
|
2398
2545
|
type: "other" | "shipping";
|
|
2399
2546
|
tax_rate: number;
|
|
2547
|
+
tax_id?: string | undefined;
|
|
2548
|
+
discounts?: {
|
|
2549
|
+
name: string;
|
|
2550
|
+
description: string;
|
|
2551
|
+
amount: number;
|
|
2552
|
+
}[] | undefined;
|
|
2400
2553
|
untaxed_amount: number;
|
|
2401
2554
|
tax_amount: number;
|
|
2402
2555
|
total: number;
|
|
2403
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;
|
|
2404
2569
|
}[]>;
|
|
2405
2570
|
createOrder(order: {
|
|
2406
2571
|
customer: {
|
|
2407
|
-
email: string;
|
|
2408
2572
|
first_name?: string | undefined;
|
|
2409
2573
|
last_name?: string | undefined;
|
|
2410
2574
|
phone?: string | undefined;
|
|
2411
2575
|
internal_notes?: string | undefined;
|
|
2576
|
+
email: string;
|
|
2412
2577
|
};
|
|
2413
2578
|
billing_address: {
|
|
2414
2579
|
first_name: string;
|
|
@@ -2451,15 +2616,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2451
2616
|
};
|
|
2452
2617
|
order_number?: string | undefined;
|
|
2453
2618
|
customer?: {
|
|
2454
|
-
email: string;
|
|
2455
2619
|
first_name?: string | undefined;
|
|
2456
2620
|
last_name?: string | undefined;
|
|
2457
2621
|
phone?: string | undefined;
|
|
2458
2622
|
internal_notes?: string | undefined;
|
|
2623
|
+
email?: string | undefined;
|
|
2459
2624
|
id: string;
|
|
2460
2625
|
} | undefined;
|
|
2461
2626
|
billing_address?: {
|
|
2462
2627
|
address_type: "main" | "delivery" | "invoice";
|
|
2628
|
+
company_name?: string | undefined;
|
|
2463
2629
|
first_name?: string | undefined;
|
|
2464
2630
|
last_name?: string | undefined;
|
|
2465
2631
|
street?: string | undefined;
|
|
@@ -2473,6 +2639,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2473
2639
|
} | undefined;
|
|
2474
2640
|
shipping_address?: {
|
|
2475
2641
|
address_type: "main" | "delivery" | "invoice";
|
|
2642
|
+
company_name?: string | undefined;
|
|
2476
2643
|
first_name?: string | undefined;
|
|
2477
2644
|
last_name?: string | undefined;
|
|
2478
2645
|
street?: string | undefined;
|
|
@@ -2498,6 +2665,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2498
2665
|
total: number;
|
|
2499
2666
|
refunded_amount?: number | undefined;
|
|
2500
2667
|
detailed_refunds?: {
|
|
2668
|
+
id: string;
|
|
2669
|
+
source_ref: {
|
|
2670
|
+
id?: string | undefined;
|
|
2671
|
+
model?: string | undefined;
|
|
2672
|
+
};
|
|
2501
2673
|
created_on?: string | undefined;
|
|
2502
2674
|
total: number;
|
|
2503
2675
|
reason?: string | undefined;
|
|
@@ -2514,6 +2686,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2514
2686
|
total: number;
|
|
2515
2687
|
}[] | undefined;
|
|
2516
2688
|
other?: number | undefined;
|
|
2689
|
+
shipping_refunds?: {
|
|
2690
|
+
untaxed_amount: number;
|
|
2691
|
+
tax_amount: number;
|
|
2692
|
+
total: number;
|
|
2693
|
+
}[] | undefined;
|
|
2517
2694
|
}[] | undefined;
|
|
2518
2695
|
currency: string;
|
|
2519
2696
|
note?: string | undefined;
|
|
@@ -2523,6 +2700,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2523
2700
|
id?: string | undefined;
|
|
2524
2701
|
model?: string | undefined;
|
|
2525
2702
|
};
|
|
2703
|
+
created_on?: string | undefined;
|
|
2526
2704
|
variant?: {
|
|
2527
2705
|
id: string;
|
|
2528
2706
|
sku?: string | undefined;
|
|
@@ -2531,6 +2709,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2531
2709
|
quantity: number;
|
|
2532
2710
|
unit_price: number;
|
|
2533
2711
|
description: string;
|
|
2712
|
+
tax_id?: string | undefined;
|
|
2534
2713
|
tax_rate: number;
|
|
2535
2714
|
untaxed_amount: number;
|
|
2536
2715
|
tax_amount: number;
|
|
@@ -2540,14 +2719,34 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2540
2719
|
description: string;
|
|
2541
2720
|
amount: number;
|
|
2542
2721
|
}[] | undefined;
|
|
2722
|
+
gift_card?: boolean | undefined;
|
|
2543
2723
|
}[];
|
|
2544
2724
|
other_fees?: {
|
|
2725
|
+
created_on?: string | undefined;
|
|
2545
2726
|
type: "other" | "shipping";
|
|
2546
2727
|
tax_rate: number;
|
|
2728
|
+
tax_id?: string | undefined;
|
|
2729
|
+
discounts?: {
|
|
2730
|
+
name: string;
|
|
2731
|
+
description: string;
|
|
2732
|
+
amount: number;
|
|
2733
|
+
}[] | undefined;
|
|
2547
2734
|
untaxed_amount: number;
|
|
2548
2735
|
tax_amount: number;
|
|
2549
2736
|
total: number;
|
|
2550
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;
|
|
2551
2750
|
}>;
|
|
2552
2751
|
getOrder(orderId: string): import("../types/api").RequestData<{
|
|
2553
2752
|
id: string;
|
|
@@ -2557,15 +2756,16 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2557
2756
|
};
|
|
2558
2757
|
order_number?: string | undefined;
|
|
2559
2758
|
customer?: {
|
|
2560
|
-
email: string;
|
|
2561
2759
|
first_name?: string | undefined;
|
|
2562
2760
|
last_name?: string | undefined;
|
|
2563
2761
|
phone?: string | undefined;
|
|
2564
2762
|
internal_notes?: string | undefined;
|
|
2763
|
+
email?: string | undefined;
|
|
2565
2764
|
id: string;
|
|
2566
2765
|
} | undefined;
|
|
2567
2766
|
billing_address?: {
|
|
2568
2767
|
address_type: "main" | "delivery" | "invoice";
|
|
2768
|
+
company_name?: string | undefined;
|
|
2569
2769
|
first_name?: string | undefined;
|
|
2570
2770
|
last_name?: string | undefined;
|
|
2571
2771
|
street?: string | undefined;
|
|
@@ -2579,6 +2779,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2579
2779
|
} | undefined;
|
|
2580
2780
|
shipping_address?: {
|
|
2581
2781
|
address_type: "main" | "delivery" | "invoice";
|
|
2782
|
+
company_name?: string | undefined;
|
|
2582
2783
|
first_name?: string | undefined;
|
|
2583
2784
|
last_name?: string | undefined;
|
|
2584
2785
|
street?: string | undefined;
|
|
@@ -2604,6 +2805,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2604
2805
|
total: number;
|
|
2605
2806
|
refunded_amount?: number | undefined;
|
|
2606
2807
|
detailed_refunds?: {
|
|
2808
|
+
id: string;
|
|
2809
|
+
source_ref: {
|
|
2810
|
+
id?: string | undefined;
|
|
2811
|
+
model?: string | undefined;
|
|
2812
|
+
};
|
|
2607
2813
|
created_on?: string | undefined;
|
|
2608
2814
|
total: number;
|
|
2609
2815
|
reason?: string | undefined;
|
|
@@ -2620,6 +2826,11 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2620
2826
|
total: number;
|
|
2621
2827
|
}[] | undefined;
|
|
2622
2828
|
other?: number | undefined;
|
|
2829
|
+
shipping_refunds?: {
|
|
2830
|
+
untaxed_amount: number;
|
|
2831
|
+
tax_amount: number;
|
|
2832
|
+
total: number;
|
|
2833
|
+
}[] | undefined;
|
|
2623
2834
|
}[] | undefined;
|
|
2624
2835
|
currency: string;
|
|
2625
2836
|
note?: string | undefined;
|
|
@@ -2629,6 +2840,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2629
2840
|
id?: string | undefined;
|
|
2630
2841
|
model?: string | undefined;
|
|
2631
2842
|
};
|
|
2843
|
+
created_on?: string | undefined;
|
|
2632
2844
|
variant?: {
|
|
2633
2845
|
id: string;
|
|
2634
2846
|
sku?: string | undefined;
|
|
@@ -2637,6 +2849,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2637
2849
|
quantity: number;
|
|
2638
2850
|
unit_price: number;
|
|
2639
2851
|
description: string;
|
|
2852
|
+
tax_id?: string | undefined;
|
|
2640
2853
|
tax_rate: number;
|
|
2641
2854
|
untaxed_amount: number;
|
|
2642
2855
|
tax_amount: number;
|
|
@@ -2646,15 +2859,67 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2646
2859
|
description: string;
|
|
2647
2860
|
amount: number;
|
|
2648
2861
|
}[] | undefined;
|
|
2862
|
+
gift_card?: boolean | undefined;
|
|
2649
2863
|
}[];
|
|
2650
2864
|
other_fees?: {
|
|
2865
|
+
created_on?: string | undefined;
|
|
2651
2866
|
type: "other" | "shipping";
|
|
2652
2867
|
tax_rate: number;
|
|
2868
|
+
tax_id?: string | undefined;
|
|
2869
|
+
discounts?: {
|
|
2870
|
+
name: string;
|
|
2871
|
+
description: string;
|
|
2872
|
+
amount: number;
|
|
2873
|
+
}[] | undefined;
|
|
2653
2874
|
untaxed_amount: number;
|
|
2654
2875
|
tax_amount: number;
|
|
2655
2876
|
total: number;
|
|
2656
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;
|
|
2657
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
|
+
}[]>;
|
|
2658
2923
|
}>;
|
|
2659
2924
|
custom: import("../types/api").ApiFor<{
|
|
2660
2925
|
get(name: string, resource: string, params?: any): import("../types/api").RequestData<any>;
|
|
@@ -2680,12 +2945,15 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2680
2945
|
link_createdon: string;
|
|
2681
2946
|
link_mappings?: {
|
|
2682
2947
|
name: string;
|
|
2683
|
-
description
|
|
2684
|
-
|
|
2948
|
+
description?: string | undefined;
|
|
2949
|
+
display_order?: number | undefined;
|
|
2950
|
+
challenge_question?: string | undefined;
|
|
2685
2951
|
values: {
|
|
2686
2952
|
source_id: string;
|
|
2687
2953
|
target_id: string;
|
|
2688
2954
|
}[];
|
|
2955
|
+
sub_mapping_name: string;
|
|
2956
|
+
sub_mapping_description?: string | undefined;
|
|
2689
2957
|
}[] | undefined;
|
|
2690
2958
|
link_metadata?: Record<string, never> | undefined;
|
|
2691
2959
|
enabled_flows?: {
|
|
@@ -2712,7 +2980,12 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2712
2980
|
}[] | undefined;
|
|
2713
2981
|
} | undefined;
|
|
2714
2982
|
values: Record<string, never>;
|
|
2715
|
-
enabled_on
|
|
2983
|
+
enabled_on?: string | undefined;
|
|
2984
|
+
trigger: {
|
|
2985
|
+
id: string;
|
|
2986
|
+
type: "timer" | "event";
|
|
2987
|
+
cronschedule?: string | undefined;
|
|
2988
|
+
};
|
|
2716
2989
|
}[] | undefined;
|
|
2717
2990
|
}>;
|
|
2718
2991
|
getDataByDataStoreName: (dataStoreName: string, params?: object) => Promise<{
|
|
@@ -2730,6 +3003,7 @@ declare const Consumer: (internalApi: InternalAPI, body: operations[chiftOperati
|
|
|
2730
3003
|
id: string;
|
|
2731
3004
|
created_on: string;
|
|
2732
3005
|
}[]>;
|
|
3006
|
+
deleteDataStoreData: (dataStoreId: string, dataStoreDataId: string) => Promise<SimpleResponseModel>;
|
|
2733
3007
|
logData: (logs: ConsumerLog[]) => Promise<SimpleResponseModel>;
|
|
2734
3008
|
};
|
|
2735
3009
|
export { Consumer };
|