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