@teamleader/focus-api-specification 1.144.0 → 1.146.0

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.
@@ -3,7 +3,7 @@ info:
3
3
  title: Teamleader API
4
4
  description: This is the documentation of the Teamleader Focus API. If you have any feedback, or are you missing functionality to support your use case? Let us know via [api@teamleader.eu](mailto:api@teamleader.eu).
5
5
  contact: {}
6
- version: 1.144.0
6
+ version: 1.146.0
7
7
  servers:
8
8
  - url: https://api.focus.teamleader.eu
9
9
  variables: {}
@@ -12862,15 +12862,14 @@ paths:
12862
12862
  type: object
12863
12863
  oneOf: &ref_68
12864
12864
  - type: object
12865
- title: With method & reference
12865
+ title: With method & optional reference
12866
12866
  properties:
12867
12867
  method:
12868
12868
  type: string
12869
12869
  enum:
12870
- - sepa_direct_debit
12871
12870
  - direct_debit
12872
12871
  - credit_card
12873
- example: sepa_direct_debit
12872
+ example: credit_card
12874
12873
  reference:
12875
12874
  type: string
12876
12875
  nullable: true
@@ -12887,6 +12886,19 @@ paths:
12887
12886
  - bank_transfer
12888
12887
  - payment_card
12889
12888
  example: cash
12889
+ - type: object
12890
+ title: SEPA direct debit
12891
+ properties:
12892
+ method:
12893
+ type: string
12894
+ enum:
12895
+ - sepa_direct_debit
12896
+ example: sepa_direct_debit
12897
+ reference:
12898
+ type: string
12899
+ example: AB1234
12900
+ required:
12901
+ - reference
12890
12902
  file:
12891
12903
  type: object
12892
12904
  nullable: true
@@ -13327,6 +13339,13 @@ paths:
13327
13339
  type: string
13328
13340
  nullable: true
13329
13341
  example: Some comments about the invoice
13342
+ expected_payment_method:
13343
+ type: object
13344
+ nullable: true
13345
+ allOf:
13346
+ - title: ExpectedPaymentMethod
13347
+ type: object
13348
+ oneOf: *ref_68
13330
13349
  custom_fields:
13331
13350
  type: array
13332
13351
  items:
@@ -26482,6 +26501,7 @@ paths:
26482
26501
  - fixed_price
26483
26502
  - unit_price
26484
26503
  - non_billable
26504
+ - parent_fixed_price
26485
26505
  example: unit_price
26486
26506
  billing_status:
26487
26507
  allOf:
@@ -26826,6 +26846,7 @@ paths:
26826
26846
  - fixed_price
26827
26847
  - unit_price
26828
26848
  - non_billable
26849
+ - parent_fixed_price
26829
26850
  example: unit_price
26830
26851
  billing_status:
26831
26852
  allOf:
@@ -27130,10 +27151,12 @@ paths:
27130
27151
  example: Protects metal from rust and corrosion, penetrates stuck parts, displaces moisture and lubricates almost anything.
27131
27152
  billing_method:
27132
27153
  type: string
27154
+ description: '`parent_fixed_price` is only valid if the parent is fixed price.'
27133
27155
  enum:
27134
27156
  - fixed_price
27135
27157
  - unit_price
27136
27158
  - non_billable
27159
+ - parent_fixed_price
27137
27160
  example: unit_price
27138
27161
  quantity:
27139
27162
  type: number
@@ -27332,10 +27355,12 @@ paths:
27332
27355
  example: on_hold
27333
27356
  billing_method:
27334
27357
  type: string
27358
+ description: '`parent_fixed_price` is only valid if the parent is fixed price.'
27335
27359
  enum:
27336
27360
  - fixed_price
27337
27361
  - unit_price
27338
27362
  - non_billable
27363
+ - parent_fixed_price
27339
27364
  example: unit_price
27340
27365
  quantity:
27341
27366
  type: number
@@ -3,7 +3,7 @@ info:
3
3
  title: Teamleader API
4
4
  description: This is the documentation of the Teamleader Focus API. If you have any feedback, or are you missing functionality to support your use case? Let us know via [api@teamleader.eu](mailto:api@teamleader.eu).
5
5
  contact: {}
6
- version: 1.144.0
6
+ version: 1.146.0
7
7
  servers:
8
8
  - url: https://api.focus.teamleader.eu
9
9
  variables: {}
@@ -22988,15 +22988,14 @@ components:
22988
22988
  type: object
22989
22989
  oneOf:
22990
22990
  - type: object
22991
- title: With method & reference
22991
+ title: With method & optional reference
22992
22992
  properties:
22993
22993
  method:
22994
22994
  type: string
22995
22995
  enum:
22996
- - sepa_direct_debit
22997
22996
  - direct_debit
22998
22997
  - credit_card
22999
- example: sepa_direct_debit
22998
+ example: credit_card
23000
22999
  reference:
23001
23000
  type: string
23002
23001
  nullable: true
@@ -23013,6 +23012,19 @@ components:
23013
23012
  - bank_transfer
23014
23013
  - payment_card
23015
23014
  example: cash
23015
+ - type: object
23016
+ title: SEPA direct debit
23017
+ properties:
23018
+ method:
23019
+ type: string
23020
+ enum:
23021
+ - sepa_direct_debit
23022
+ example: sepa_direct_debit
23023
+ reference:
23024
+ type: string
23025
+ example: AB1234
23026
+ required:
23027
+ - reference
23016
23028
  PeppolStatus:
23017
23029
  title: PeppolStatus
23018
23030
  enum:
@@ -23431,6 +23443,11 @@ components:
23431
23443
  type: string
23432
23444
  nullable: true
23433
23445
  example: Some comments about the invoice
23446
+ expected_payment_method:
23447
+ type: object
23448
+ nullable: true
23449
+ allOf:
23450
+ - $ref: '#/components/schemas/ExpectedPaymentMethod'
23434
23451
  custom_fields:
23435
23452
  type: array
23436
23453
  items:
@@ -28864,6 +28881,7 @@ components:
28864
28881
  - fixed_price
28865
28882
  - unit_price
28866
28883
  - non_billable
28884
+ - parent_fixed_price
28867
28885
  example: unit_price
28868
28886
  billing_status:
28869
28887
  allOf:
@@ -29021,6 +29039,7 @@ components:
29021
29039
  - fixed_price
29022
29040
  - unit_price
29023
29041
  - non_billable
29042
+ - parent_fixed_price
29024
29043
  example: unit_price
29025
29044
  billing_status:
29026
29045
  allOf:
@@ -29152,10 +29171,12 @@ components:
29152
29171
  example: Protects metal from rust and corrosion, penetrates stuck parts, displaces moisture and lubricates almost anything.
29153
29172
  billing_method:
29154
29173
  type: string
29174
+ description: '`parent_fixed_price` is only valid if the parent is fixed price.'
29155
29175
  enum:
29156
29176
  - fixed_price
29157
29177
  - unit_price
29158
29178
  - non_billable
29179
+ - parent_fixed_price
29159
29180
  example: unit_price
29160
29181
  quantity:
29161
29182
  type: number
@@ -29247,10 +29268,12 @@ components:
29247
29268
  example: on_hold
29248
29269
  billing_method:
29249
29270
  type: string
29271
+ description: '`parent_fixed_price` is only valid if the parent is fixed price.'
29250
29272
  enum:
29251
29273
  - fixed_price
29252
29274
  - unit_price
29253
29275
  - non_billable
29276
+ - parent_fixed_price
29254
29277
  example: unit_price
29255
29278
  quantity:
29256
29279
  type: number
@@ -0,0 +1,5 @@
1
+ ---
2
+ category: addition
3
+ ---
4
+
5
+ We added the `expected_payment_method` parameter to the `invoices.updateBooked` endpoint. When `method` is `sepa_direct_debit`, `reference` is required.
@@ -0,0 +1,5 @@
1
+ ---
2
+ category: addition
3
+ ---
4
+
5
+ Add `parent_fixed_price` as a valid `billing_method` for `materials.create` and `materials.update`. Also add them as a possible value for `billing_method` in `materials.info` and `materials.list`.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@teamleader/focus-api-specification",
3
3
  "description": "Teamleader Focus API Specification",
4
- "version": "1.144.0",
4
+ "version": "1.146.0",
5
5
  "author": "Teamleader <development@teamleader.eu> (https://www.teamleader.eu)",
6
6
  "bugs": {
7
7
  "url": "https://github.com/teamleadercrm/focus-api-specification/issues"