@getyetty-sdk/sellsy 2026.3.15 → 2026.3.26
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/dist/index.d.mts +1072 -268
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +554 -28
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7596,6 +7596,11 @@ const DealsSchema = {
|
|
|
7596
7596
|
description: "Priority level of the calendar event",
|
|
7597
7597
|
minimum: 0,
|
|
7598
7598
|
maximum: 1
|
|
7599
|
+
},
|
|
7600
|
+
meet_link: {
|
|
7601
|
+
type: "string",
|
|
7602
|
+
description: "Meet link for the calendar event",
|
|
7603
|
+
nullable: true
|
|
7599
7604
|
}
|
|
7600
7605
|
}
|
|
7601
7606
|
},
|
|
@@ -10257,6 +10262,24 @@ const OcrSchema = {
|
|
|
10257
10262
|
description: "Source of the incoming document",
|
|
10258
10263
|
enum: ["ocr", "facturx"],
|
|
10259
10264
|
example: "ocr"
|
|
10265
|
+
},
|
|
10266
|
+
supplier: {
|
|
10267
|
+
type: "string",
|
|
10268
|
+
description: "Supplier name",
|
|
10269
|
+
nullable: true,
|
|
10270
|
+
example: "SELLSY"
|
|
10271
|
+
},
|
|
10272
|
+
total_excl_tax: {
|
|
10273
|
+
type: "string",
|
|
10274
|
+
description: "Total amount excluding tax",
|
|
10275
|
+
nullable: true,
|
|
10276
|
+
example: "35.00"
|
|
10277
|
+
},
|
|
10278
|
+
currency: {
|
|
10279
|
+
type: "string",
|
|
10280
|
+
description: "Currency code",
|
|
10281
|
+
nullable: true,
|
|
10282
|
+
example: "EUR"
|
|
10260
10283
|
}
|
|
10261
10284
|
}
|
|
10262
10285
|
};
|
|
@@ -10266,29 +10289,34 @@ const OcrPurInvoiceMetasSchema = {
|
|
|
10266
10289
|
properties: {
|
|
10267
10290
|
user_can_validate_pur_invoice: {
|
|
10268
10291
|
type: "boolean",
|
|
10269
|
-
description: "
|
|
10292
|
+
description: "User can validate a purchase invoice"
|
|
10270
10293
|
},
|
|
10271
10294
|
create_payment: {
|
|
10272
10295
|
type: "boolean",
|
|
10273
|
-
description: "
|
|
10296
|
+
description: "User can create a payment"
|
|
10274
10297
|
},
|
|
10275
|
-
|
|
10298
|
+
create_pur_invoice: {
|
|
10299
|
+
type: "boolean",
|
|
10300
|
+
description: "User can create a purchase invoice"
|
|
10301
|
+
},
|
|
10302
|
+
create_pur_credit_note: {
|
|
10276
10303
|
type: "boolean",
|
|
10277
|
-
description: "
|
|
10304
|
+
description: "User can create a purchase credit note"
|
|
10278
10305
|
},
|
|
10279
10306
|
create_fast: {
|
|
10280
10307
|
type: "boolean",
|
|
10281
|
-
description: "
|
|
10308
|
+
description: "User can create a fast purchase invoice"
|
|
10282
10309
|
},
|
|
10283
10310
|
import: {
|
|
10284
10311
|
type: "boolean",
|
|
10285
|
-
description: "
|
|
10312
|
+
description: "User can import a purchase invoice"
|
|
10286
10313
|
}
|
|
10287
10314
|
},
|
|
10288
10315
|
required: [
|
|
10289
10316
|
"user_can_validate_pur_invoice",
|
|
10290
10317
|
"create_payment",
|
|
10291
|
-
"
|
|
10318
|
+
"create_pur_invoice",
|
|
10319
|
+
"create_pur_credit_note",
|
|
10292
10320
|
"create_fast",
|
|
10293
10321
|
"import"
|
|
10294
10322
|
]
|
|
@@ -20084,7 +20112,7 @@ const InvoiceSchema = {
|
|
|
20084
20112
|
due_date: {
|
|
20085
20113
|
type: "string",
|
|
20086
20114
|
format: "date",
|
|
20087
|
-
description: "
|
|
20115
|
+
description: "Due date of the invoice.\n",
|
|
20088
20116
|
example: "2022-02-02"
|
|
20089
20117
|
},
|
|
20090
20118
|
created: {
|
|
@@ -20635,7 +20663,7 @@ const InvoiceOneSchema = {
|
|
|
20635
20663
|
due_date: {
|
|
20636
20664
|
type: "string",
|
|
20637
20665
|
format: "date",
|
|
20638
|
-
description: "
|
|
20666
|
+
description: "Due date of the invoice.\n",
|
|
20639
20667
|
example: "2022-02-02"
|
|
20640
20668
|
},
|
|
20641
20669
|
created: {
|
|
@@ -22467,9 +22495,11 @@ const InvoiceCreateSchema = { allOf: [{
|
|
|
22467
22495
|
due_date: {
|
|
22468
22496
|
type: "string",
|
|
22469
22497
|
format: "date",
|
|
22470
|
-
|
|
22498
|
+
deprecated: true,
|
|
22499
|
+
description: "Deprecated: Use `payment_terms` instead. <br/> Due date of the invoice.\n",
|
|
22471
22500
|
example: "2022-02-02"
|
|
22472
22501
|
},
|
|
22502
|
+
payment_terms: { $ref: "#/components/schemas/ProgressInvoiceCreate/properties/payment_terms" },
|
|
22473
22503
|
created: {
|
|
22474
22504
|
description: "Created date of invoice",
|
|
22475
22505
|
type: "string",
|
|
@@ -22816,12 +22846,6 @@ const DepositInvoiceCreateSchema = {
|
|
|
22816
22846
|
description: "Date of the invoice",
|
|
22817
22847
|
example: "2022-01-02"
|
|
22818
22848
|
},
|
|
22819
|
-
due_date: {
|
|
22820
|
-
type: "string",
|
|
22821
|
-
format: "date",
|
|
22822
|
-
description: "Due date of the invoice",
|
|
22823
|
-
example: "2022-02-02"
|
|
22824
|
-
},
|
|
22825
22849
|
subject: {
|
|
22826
22850
|
type: "string",
|
|
22827
22851
|
description: "Subject of the invoice"
|
|
@@ -22880,6 +22904,244 @@ const DepositInvoiceCreateSchema = {
|
|
|
22880
22904
|
maxLength: 13,
|
|
22881
22905
|
description: "Analytic code of document",
|
|
22882
22906
|
example: "divers"
|
|
22907
|
+
},
|
|
22908
|
+
payment_terms: {
|
|
22909
|
+
type: "object",
|
|
22910
|
+
description: "Payment terms of the invoice\n",
|
|
22911
|
+
anyOf: [
|
|
22912
|
+
{
|
|
22913
|
+
type: "object",
|
|
22914
|
+
title: "On order",
|
|
22915
|
+
properties: {
|
|
22916
|
+
id: {
|
|
22917
|
+
type: "integer",
|
|
22918
|
+
minimum: 1,
|
|
22919
|
+
description: "Payment terms id"
|
|
22920
|
+
},
|
|
22921
|
+
code: {
|
|
22922
|
+
type: "string",
|
|
22923
|
+
description: "Payment terms code",
|
|
22924
|
+
enum: ["onorder"]
|
|
22925
|
+
}
|
|
22926
|
+
},
|
|
22927
|
+
additionalProperties: false,
|
|
22928
|
+
required: ["id"]
|
|
22929
|
+
},
|
|
22930
|
+
{
|
|
22931
|
+
type: "object",
|
|
22932
|
+
title: "End of the month",
|
|
22933
|
+
properties: {
|
|
22934
|
+
id: {
|
|
22935
|
+
type: "integer",
|
|
22936
|
+
minimum: 1,
|
|
22937
|
+
description: "Payment terms id"
|
|
22938
|
+
},
|
|
22939
|
+
code: {
|
|
22940
|
+
type: "string",
|
|
22941
|
+
description: "Payment terms code",
|
|
22942
|
+
enum: ["endmonth"]
|
|
22943
|
+
}
|
|
22944
|
+
},
|
|
22945
|
+
additionalProperties: false,
|
|
22946
|
+
required: ["id"]
|
|
22947
|
+
},
|
|
22948
|
+
{
|
|
22949
|
+
type: "object",
|
|
22950
|
+
title: "Upon receipt",
|
|
22951
|
+
properties: {
|
|
22952
|
+
id: {
|
|
22953
|
+
type: "integer",
|
|
22954
|
+
minimum: 1,
|
|
22955
|
+
description: "Payment terms id"
|
|
22956
|
+
},
|
|
22957
|
+
code: {
|
|
22958
|
+
type: "string",
|
|
22959
|
+
description: "Payment terms code",
|
|
22960
|
+
enum: ["received"]
|
|
22961
|
+
}
|
|
22962
|
+
},
|
|
22963
|
+
additionalProperties: false,
|
|
22964
|
+
required: ["id"]
|
|
22965
|
+
},
|
|
22966
|
+
{
|
|
22967
|
+
type: "object",
|
|
22968
|
+
title: "On receipt of invoice",
|
|
22969
|
+
properties: {
|
|
22970
|
+
id: {
|
|
22971
|
+
type: "integer",
|
|
22972
|
+
minimum: 1,
|
|
22973
|
+
description: "Payment terms id"
|
|
22974
|
+
},
|
|
22975
|
+
code: {
|
|
22976
|
+
type: "string",
|
|
22977
|
+
description: "Payment terms code",
|
|
22978
|
+
enum: ["oninvoice"]
|
|
22979
|
+
}
|
|
22980
|
+
},
|
|
22981
|
+
additionalProperties: false,
|
|
22982
|
+
required: ["id"]
|
|
22983
|
+
},
|
|
22984
|
+
{
|
|
22985
|
+
type: "object",
|
|
22986
|
+
title: "Next month",
|
|
22987
|
+
properties: {
|
|
22988
|
+
id: {
|
|
22989
|
+
type: "integer",
|
|
22990
|
+
minimum: 1,
|
|
22991
|
+
description: "Payment terms id"
|
|
22992
|
+
},
|
|
22993
|
+
code: {
|
|
22994
|
+
type: "string",
|
|
22995
|
+
description: "Payment terms code",
|
|
22996
|
+
enum: ["nextmonth"]
|
|
22997
|
+
}
|
|
22998
|
+
},
|
|
22999
|
+
additionalProperties: false,
|
|
23000
|
+
required: ["id"]
|
|
23001
|
+
},
|
|
23002
|
+
{
|
|
23003
|
+
type: "object",
|
|
23004
|
+
title: "30 days",
|
|
23005
|
+
properties: {
|
|
23006
|
+
id: {
|
|
23007
|
+
type: "integer",
|
|
23008
|
+
minimum: 1,
|
|
23009
|
+
description: "Payment terms id"
|
|
23010
|
+
},
|
|
23011
|
+
end_of_month: {
|
|
23012
|
+
type: "boolean",
|
|
23013
|
+
description: "Is pay deadlines at end of the month"
|
|
23014
|
+
},
|
|
23015
|
+
code: {
|
|
23016
|
+
type: "string",
|
|
23017
|
+
description: "Payment terms code",
|
|
23018
|
+
enum: ["30days"]
|
|
23019
|
+
}
|
|
23020
|
+
},
|
|
23021
|
+
additionalProperties: false,
|
|
23022
|
+
required: ["id", "end_of_month"]
|
|
23023
|
+
},
|
|
23024
|
+
{
|
|
23025
|
+
type: "object",
|
|
23026
|
+
title: "45 days",
|
|
23027
|
+
properties: {
|
|
23028
|
+
id: {
|
|
23029
|
+
type: "integer",
|
|
23030
|
+
minimum: 1,
|
|
23031
|
+
description: "Payment terms id"
|
|
23032
|
+
},
|
|
23033
|
+
end_of_month: {
|
|
23034
|
+
type: "boolean",
|
|
23035
|
+
description: "Is pay deadlines at end of the month"
|
|
23036
|
+
},
|
|
23037
|
+
code: {
|
|
23038
|
+
type: "string",
|
|
23039
|
+
description: "Payment terms code",
|
|
23040
|
+
enum: ["45days"]
|
|
23041
|
+
}
|
|
23042
|
+
},
|
|
23043
|
+
additionalProperties: false,
|
|
23044
|
+
required: ["id", "end_of_month"]
|
|
23045
|
+
},
|
|
23046
|
+
{
|
|
23047
|
+
type: "object",
|
|
23048
|
+
title: "60 days",
|
|
23049
|
+
properties: {
|
|
23050
|
+
id: {
|
|
23051
|
+
type: "integer",
|
|
23052
|
+
minimum: 1,
|
|
23053
|
+
description: "Payment terms id"
|
|
23054
|
+
},
|
|
23055
|
+
end_of_month: {
|
|
23056
|
+
type: "boolean",
|
|
23057
|
+
description: "Is pay deadlines at end of the month"
|
|
23058
|
+
},
|
|
23059
|
+
code: {
|
|
23060
|
+
type: "string",
|
|
23061
|
+
description: "Payment terms code",
|
|
23062
|
+
enum: ["60days"]
|
|
23063
|
+
}
|
|
23064
|
+
},
|
|
23065
|
+
additionalProperties: false,
|
|
23066
|
+
required: ["id", "end_of_month"]
|
|
23067
|
+
},
|
|
23068
|
+
{
|
|
23069
|
+
type: "object",
|
|
23070
|
+
title: "X days",
|
|
23071
|
+
properties: {
|
|
23072
|
+
id: {
|
|
23073
|
+
type: "integer",
|
|
23074
|
+
minimum: 1,
|
|
23075
|
+
description: "Payment terms id"
|
|
23076
|
+
},
|
|
23077
|
+
x_days: {
|
|
23078
|
+
type: "integer",
|
|
23079
|
+
description: "Number of days for pay deadlines",
|
|
23080
|
+
minimum: 0,
|
|
23081
|
+
maximum: 1e3
|
|
23082
|
+
},
|
|
23083
|
+
code: {
|
|
23084
|
+
type: "string",
|
|
23085
|
+
enum: ["xdays"]
|
|
23086
|
+
}
|
|
23087
|
+
},
|
|
23088
|
+
additionalProperties: false,
|
|
23089
|
+
required: ["id", "x_days"]
|
|
23090
|
+
},
|
|
23091
|
+
{
|
|
23092
|
+
type: "object",
|
|
23093
|
+
title: "Scaled",
|
|
23094
|
+
properties: {
|
|
23095
|
+
id: {
|
|
23096
|
+
type: "integer",
|
|
23097
|
+
minimum: 1,
|
|
23098
|
+
description: "Payment terms id"
|
|
23099
|
+
},
|
|
23100
|
+
x_days: {
|
|
23101
|
+
type: "integer",
|
|
23102
|
+
description: "Number of days for pay deadlines"
|
|
23103
|
+
},
|
|
23104
|
+
description: {
|
|
23105
|
+
type: "string",
|
|
23106
|
+
description: "Details of payment terms",
|
|
23107
|
+
maxLength: 262144
|
|
23108
|
+
},
|
|
23109
|
+
code: {
|
|
23110
|
+
type: "string",
|
|
23111
|
+
enum: ["scaled"]
|
|
23112
|
+
}
|
|
23113
|
+
},
|
|
23114
|
+
additionalProperties: false,
|
|
23115
|
+
required: [
|
|
23116
|
+
"id",
|
|
23117
|
+
"x_days",
|
|
23118
|
+
"description"
|
|
23119
|
+
]
|
|
23120
|
+
},
|
|
23121
|
+
{
|
|
23122
|
+
type: "object",
|
|
23123
|
+
title: "User defined",
|
|
23124
|
+
properties: {
|
|
23125
|
+
id: {
|
|
23126
|
+
type: "integer",
|
|
23127
|
+
minimum: 1,
|
|
23128
|
+
description: "Payment terms id"
|
|
23129
|
+
},
|
|
23130
|
+
due_date: {
|
|
23131
|
+
type: "string",
|
|
23132
|
+
format: "date",
|
|
23133
|
+
description: "Due date of the payment term",
|
|
23134
|
+
example: "2022-01-02"
|
|
23135
|
+
},
|
|
23136
|
+
code: {
|
|
23137
|
+
type: "string",
|
|
23138
|
+
enum: ["custom"]
|
|
23139
|
+
}
|
|
23140
|
+
},
|
|
23141
|
+
additionalProperties: false,
|
|
23142
|
+
required: ["id", "due_date"]
|
|
23143
|
+
}
|
|
23144
|
+
]
|
|
22883
23145
|
}
|
|
22884
23146
|
},
|
|
22885
23147
|
required: ["parent", "rows"]
|
|
@@ -22998,7 +23260,8 @@ const DepositInvoiceUpdateSchema = {
|
|
|
22998
23260
|
maxLength: 13,
|
|
22999
23261
|
description: "Analytic code of document",
|
|
23000
23262
|
example: "divers"
|
|
23001
|
-
}
|
|
23263
|
+
},
|
|
23264
|
+
payment_terms: { $ref: "#/components/schemas/DepositInvoiceCreate/properties/payment_terms" }
|
|
23002
23265
|
}
|
|
23003
23266
|
};
|
|
23004
23267
|
const DepositInvoicePrepareInputSchema = {
|
|
@@ -38258,6 +38521,11 @@ const DealsWritableSchema = {
|
|
|
38258
38521
|
description: "Priority level of the calendar event",
|
|
38259
38522
|
minimum: 0,
|
|
38260
38523
|
maximum: 1
|
|
38524
|
+
},
|
|
38525
|
+
meet_link: {
|
|
38526
|
+
type: "string",
|
|
38527
|
+
description: "Meet link for the calendar event",
|
|
38528
|
+
nullable: true
|
|
38261
38529
|
}
|
|
38262
38530
|
}
|
|
38263
38531
|
},
|
|
@@ -39411,6 +39679,24 @@ const OcrWritableSchema = {
|
|
|
39411
39679
|
description: "Source of the incoming document",
|
|
39412
39680
|
enum: ["ocr", "facturx"],
|
|
39413
39681
|
example: "ocr"
|
|
39682
|
+
},
|
|
39683
|
+
supplier: {
|
|
39684
|
+
type: "string",
|
|
39685
|
+
description: "Supplier name",
|
|
39686
|
+
nullable: true,
|
|
39687
|
+
example: "SELLSY"
|
|
39688
|
+
},
|
|
39689
|
+
total_excl_tax: {
|
|
39690
|
+
type: "string",
|
|
39691
|
+
description: "Total amount excluding tax",
|
|
39692
|
+
nullable: true,
|
|
39693
|
+
example: "35.00"
|
|
39694
|
+
},
|
|
39695
|
+
currency: {
|
|
39696
|
+
type: "string",
|
|
39697
|
+
description: "Currency code",
|
|
39698
|
+
nullable: true,
|
|
39699
|
+
example: "EUR"
|
|
39414
39700
|
}
|
|
39415
39701
|
}
|
|
39416
39702
|
};
|
|
@@ -42132,7 +42418,7 @@ const InvoiceWritableSchema = {
|
|
|
42132
42418
|
due_date: {
|
|
42133
42419
|
type: "string",
|
|
42134
42420
|
format: "date",
|
|
42135
|
-
description: "
|
|
42421
|
+
description: "Due date of the invoice.\n",
|
|
42136
42422
|
example: "2022-02-02"
|
|
42137
42423
|
},
|
|
42138
42424
|
created: {
|
|
@@ -42500,7 +42786,7 @@ const InvoiceOneWritableSchema = {
|
|
|
42500
42786
|
due_date: {
|
|
42501
42787
|
type: "string",
|
|
42502
42788
|
format: "date",
|
|
42503
|
-
description: "
|
|
42789
|
+
description: "Due date of the invoice.\n",
|
|
42504
42790
|
example: "2022-02-02"
|
|
42505
42791
|
},
|
|
42506
42792
|
created: {
|
|
@@ -43727,9 +44013,11 @@ const InvoiceCreateWritableSchema = { allOf: [{
|
|
|
43727
44013
|
due_date: {
|
|
43728
44014
|
type: "string",
|
|
43729
44015
|
format: "date",
|
|
43730
|
-
|
|
44016
|
+
deprecated: true,
|
|
44017
|
+
description: "Deprecated: Use `payment_terms` instead. <br/> Due date of the invoice.\n",
|
|
43731
44018
|
example: "2022-02-02"
|
|
43732
44019
|
},
|
|
44020
|
+
payment_terms: { $ref: "#/components/schemas/ProgressInvoiceCreate/properties/payment_terms" },
|
|
43733
44021
|
created: {
|
|
43734
44022
|
description: "Created date of invoice",
|
|
43735
44023
|
type: "string",
|
|
@@ -44076,12 +44364,6 @@ const DepositInvoiceCreateWritableSchema = {
|
|
|
44076
44364
|
description: "Date of the invoice",
|
|
44077
44365
|
example: "2022-01-02"
|
|
44078
44366
|
},
|
|
44079
|
-
due_date: {
|
|
44080
|
-
type: "string",
|
|
44081
|
-
format: "date",
|
|
44082
|
-
description: "Due date of the invoice",
|
|
44083
|
-
example: "2022-02-02"
|
|
44084
|
-
},
|
|
44085
44367
|
subject: {
|
|
44086
44368
|
type: "string",
|
|
44087
44369
|
description: "Subject of the invoice"
|
|
@@ -44140,6 +44422,244 @@ const DepositInvoiceCreateWritableSchema = {
|
|
|
44140
44422
|
maxLength: 13,
|
|
44141
44423
|
description: "Analytic code of document",
|
|
44142
44424
|
example: "divers"
|
|
44425
|
+
},
|
|
44426
|
+
payment_terms: {
|
|
44427
|
+
type: "object",
|
|
44428
|
+
description: "Payment terms of the invoice\n",
|
|
44429
|
+
anyOf: [
|
|
44430
|
+
{
|
|
44431
|
+
type: "object",
|
|
44432
|
+
title: "On order",
|
|
44433
|
+
properties: {
|
|
44434
|
+
id: {
|
|
44435
|
+
type: "integer",
|
|
44436
|
+
minimum: 1,
|
|
44437
|
+
description: "Payment terms id"
|
|
44438
|
+
},
|
|
44439
|
+
code: {
|
|
44440
|
+
type: "string",
|
|
44441
|
+
description: "Payment terms code",
|
|
44442
|
+
enum: ["onorder"]
|
|
44443
|
+
}
|
|
44444
|
+
},
|
|
44445
|
+
additionalProperties: false,
|
|
44446
|
+
required: ["id"]
|
|
44447
|
+
},
|
|
44448
|
+
{
|
|
44449
|
+
type: "object",
|
|
44450
|
+
title: "End of the month",
|
|
44451
|
+
properties: {
|
|
44452
|
+
id: {
|
|
44453
|
+
type: "integer",
|
|
44454
|
+
minimum: 1,
|
|
44455
|
+
description: "Payment terms id"
|
|
44456
|
+
},
|
|
44457
|
+
code: {
|
|
44458
|
+
type: "string",
|
|
44459
|
+
description: "Payment terms code",
|
|
44460
|
+
enum: ["endmonth"]
|
|
44461
|
+
}
|
|
44462
|
+
},
|
|
44463
|
+
additionalProperties: false,
|
|
44464
|
+
required: ["id"]
|
|
44465
|
+
},
|
|
44466
|
+
{
|
|
44467
|
+
type: "object",
|
|
44468
|
+
title: "Upon receipt",
|
|
44469
|
+
properties: {
|
|
44470
|
+
id: {
|
|
44471
|
+
type: "integer",
|
|
44472
|
+
minimum: 1,
|
|
44473
|
+
description: "Payment terms id"
|
|
44474
|
+
},
|
|
44475
|
+
code: {
|
|
44476
|
+
type: "string",
|
|
44477
|
+
description: "Payment terms code",
|
|
44478
|
+
enum: ["received"]
|
|
44479
|
+
}
|
|
44480
|
+
},
|
|
44481
|
+
additionalProperties: false,
|
|
44482
|
+
required: ["id"]
|
|
44483
|
+
},
|
|
44484
|
+
{
|
|
44485
|
+
type: "object",
|
|
44486
|
+
title: "On receipt of invoice",
|
|
44487
|
+
properties: {
|
|
44488
|
+
id: {
|
|
44489
|
+
type: "integer",
|
|
44490
|
+
minimum: 1,
|
|
44491
|
+
description: "Payment terms id"
|
|
44492
|
+
},
|
|
44493
|
+
code: {
|
|
44494
|
+
type: "string",
|
|
44495
|
+
description: "Payment terms code",
|
|
44496
|
+
enum: ["oninvoice"]
|
|
44497
|
+
}
|
|
44498
|
+
},
|
|
44499
|
+
additionalProperties: false,
|
|
44500
|
+
required: ["id"]
|
|
44501
|
+
},
|
|
44502
|
+
{
|
|
44503
|
+
type: "object",
|
|
44504
|
+
title: "Next month",
|
|
44505
|
+
properties: {
|
|
44506
|
+
id: {
|
|
44507
|
+
type: "integer",
|
|
44508
|
+
minimum: 1,
|
|
44509
|
+
description: "Payment terms id"
|
|
44510
|
+
},
|
|
44511
|
+
code: {
|
|
44512
|
+
type: "string",
|
|
44513
|
+
description: "Payment terms code",
|
|
44514
|
+
enum: ["nextmonth"]
|
|
44515
|
+
}
|
|
44516
|
+
},
|
|
44517
|
+
additionalProperties: false,
|
|
44518
|
+
required: ["id"]
|
|
44519
|
+
},
|
|
44520
|
+
{
|
|
44521
|
+
type: "object",
|
|
44522
|
+
title: "30 days",
|
|
44523
|
+
properties: {
|
|
44524
|
+
id: {
|
|
44525
|
+
type: "integer",
|
|
44526
|
+
minimum: 1,
|
|
44527
|
+
description: "Payment terms id"
|
|
44528
|
+
},
|
|
44529
|
+
end_of_month: {
|
|
44530
|
+
type: "boolean",
|
|
44531
|
+
description: "Is pay deadlines at end of the month"
|
|
44532
|
+
},
|
|
44533
|
+
code: {
|
|
44534
|
+
type: "string",
|
|
44535
|
+
description: "Payment terms code",
|
|
44536
|
+
enum: ["30days"]
|
|
44537
|
+
}
|
|
44538
|
+
},
|
|
44539
|
+
additionalProperties: false,
|
|
44540
|
+
required: ["id", "end_of_month"]
|
|
44541
|
+
},
|
|
44542
|
+
{
|
|
44543
|
+
type: "object",
|
|
44544
|
+
title: "45 days",
|
|
44545
|
+
properties: {
|
|
44546
|
+
id: {
|
|
44547
|
+
type: "integer",
|
|
44548
|
+
minimum: 1,
|
|
44549
|
+
description: "Payment terms id"
|
|
44550
|
+
},
|
|
44551
|
+
end_of_month: {
|
|
44552
|
+
type: "boolean",
|
|
44553
|
+
description: "Is pay deadlines at end of the month"
|
|
44554
|
+
},
|
|
44555
|
+
code: {
|
|
44556
|
+
type: "string",
|
|
44557
|
+
description: "Payment terms code",
|
|
44558
|
+
enum: ["45days"]
|
|
44559
|
+
}
|
|
44560
|
+
},
|
|
44561
|
+
additionalProperties: false,
|
|
44562
|
+
required: ["id", "end_of_month"]
|
|
44563
|
+
},
|
|
44564
|
+
{
|
|
44565
|
+
type: "object",
|
|
44566
|
+
title: "60 days",
|
|
44567
|
+
properties: {
|
|
44568
|
+
id: {
|
|
44569
|
+
type: "integer",
|
|
44570
|
+
minimum: 1,
|
|
44571
|
+
description: "Payment terms id"
|
|
44572
|
+
},
|
|
44573
|
+
end_of_month: {
|
|
44574
|
+
type: "boolean",
|
|
44575
|
+
description: "Is pay deadlines at end of the month"
|
|
44576
|
+
},
|
|
44577
|
+
code: {
|
|
44578
|
+
type: "string",
|
|
44579
|
+
description: "Payment terms code",
|
|
44580
|
+
enum: ["60days"]
|
|
44581
|
+
}
|
|
44582
|
+
},
|
|
44583
|
+
additionalProperties: false,
|
|
44584
|
+
required: ["id", "end_of_month"]
|
|
44585
|
+
},
|
|
44586
|
+
{
|
|
44587
|
+
type: "object",
|
|
44588
|
+
title: "X days",
|
|
44589
|
+
properties: {
|
|
44590
|
+
id: {
|
|
44591
|
+
type: "integer",
|
|
44592
|
+
minimum: 1,
|
|
44593
|
+
description: "Payment terms id"
|
|
44594
|
+
},
|
|
44595
|
+
x_days: {
|
|
44596
|
+
type: "integer",
|
|
44597
|
+
description: "Number of days for pay deadlines",
|
|
44598
|
+
minimum: 0,
|
|
44599
|
+
maximum: 1e3
|
|
44600
|
+
},
|
|
44601
|
+
code: {
|
|
44602
|
+
type: "string",
|
|
44603
|
+
enum: ["xdays"]
|
|
44604
|
+
}
|
|
44605
|
+
},
|
|
44606
|
+
additionalProperties: false,
|
|
44607
|
+
required: ["id", "x_days"]
|
|
44608
|
+
},
|
|
44609
|
+
{
|
|
44610
|
+
type: "object",
|
|
44611
|
+
title: "Scaled",
|
|
44612
|
+
properties: {
|
|
44613
|
+
id: {
|
|
44614
|
+
type: "integer",
|
|
44615
|
+
minimum: 1,
|
|
44616
|
+
description: "Payment terms id"
|
|
44617
|
+
},
|
|
44618
|
+
x_days: {
|
|
44619
|
+
type: "integer",
|
|
44620
|
+
description: "Number of days for pay deadlines"
|
|
44621
|
+
},
|
|
44622
|
+
description: {
|
|
44623
|
+
type: "string",
|
|
44624
|
+
description: "Details of payment terms",
|
|
44625
|
+
maxLength: 262144
|
|
44626
|
+
},
|
|
44627
|
+
code: {
|
|
44628
|
+
type: "string",
|
|
44629
|
+
enum: ["scaled"]
|
|
44630
|
+
}
|
|
44631
|
+
},
|
|
44632
|
+
additionalProperties: false,
|
|
44633
|
+
required: [
|
|
44634
|
+
"id",
|
|
44635
|
+
"x_days",
|
|
44636
|
+
"description"
|
|
44637
|
+
]
|
|
44638
|
+
},
|
|
44639
|
+
{
|
|
44640
|
+
type: "object",
|
|
44641
|
+
title: "User defined",
|
|
44642
|
+
properties: {
|
|
44643
|
+
id: {
|
|
44644
|
+
type: "integer",
|
|
44645
|
+
minimum: 1,
|
|
44646
|
+
description: "Payment terms id"
|
|
44647
|
+
},
|
|
44648
|
+
due_date: {
|
|
44649
|
+
type: "string",
|
|
44650
|
+
format: "date",
|
|
44651
|
+
description: "Due date of the payment term",
|
|
44652
|
+
example: "2022-01-02"
|
|
44653
|
+
},
|
|
44654
|
+
code: {
|
|
44655
|
+
type: "string",
|
|
44656
|
+
enum: ["custom"]
|
|
44657
|
+
}
|
|
44658
|
+
},
|
|
44659
|
+
additionalProperties: false,
|
|
44660
|
+
required: ["id", "due_date"]
|
|
44661
|
+
}
|
|
44662
|
+
]
|
|
44143
44663
|
}
|
|
44144
44664
|
},
|
|
44145
44665
|
required: ["parent", "rows"]
|
|
@@ -44258,7 +44778,8 @@ const DepositInvoiceUpdateWritableSchema = {
|
|
|
44258
44778
|
maxLength: 13,
|
|
44259
44779
|
description: "Analytic code of document",
|
|
44260
44780
|
example: "divers"
|
|
44261
|
-
}
|
|
44781
|
+
},
|
|
44782
|
+
payment_terms: { $ref: "#/components/schemas/DepositInvoiceCreate/properties/payment_terms" }
|
|
44262
44783
|
}
|
|
44263
44784
|
};
|
|
44264
44785
|
const DepositInvoiceOneWritableSchema = { allOf: [{ $ref: "#/components/schemas/InvoiceOne/allOf/0" }, {
|
|
@@ -55435,7 +55956,12 @@ const CustomActivityOrder = { DATE: "date" };
|
|
|
55435
55956
|
*/
|
|
55436
55957
|
const OcrOrder = {
|
|
55437
55958
|
CREATED_AT: "created_at",
|
|
55438
|
-
COMPLETED_AT: "completed_at"
|
|
55959
|
+
COMPLETED_AT: "completed_at",
|
|
55960
|
+
LINKED_TYPE: "linked_type",
|
|
55961
|
+
SOURCE: "source",
|
|
55962
|
+
SUPPLIER: "supplier",
|
|
55963
|
+
TOTAL_EXCL_TAX: "total_excl_tax",
|
|
55964
|
+
STATE: "state"
|
|
55439
55965
|
};
|
|
55440
55966
|
/**
|
|
55441
55967
|
* The order field
|