Skip to content

Commit de90ca1

Browse files
authored
fix: remove reconciled field in API v3 responses (#853)
1 parent 06e24ce commit de90ca1

File tree

4 files changed

+7
-14
lines changed

4 files changed

+7
-14
lines changed

api/docs.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5840,10 +5840,8 @@ const docTemplate = `{
58405840
"example": "Lunch"
58415841
},
58425842
"reconciled": {
5843-
"description": "DEPRECATED. Do not use, this field does not work as intended. See https://github.com/envelope-zero/backend/issues/528. Use reconciledSource and reconciledDestination instead. This field will be removed in 4.0.0",
5844-
"type": "boolean",
5845-
"default": false,
5846-
"example": true
5843+
"description": "Remove the reconciled field",
5844+
"type": "boolean"
58475845
},
58485846
"reconciledDestination": {
58495847
"description": "Is the transaction reconciled in the destination account?",

api/swagger.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5829,10 +5829,8 @@
58295829
"example": "Lunch"
58305830
},
58315831
"reconciled": {
5832-
"description": "DEPRECATED. Do not use, this field does not work as intended. See https://github.com/envelope-zero/backend/issues/528. Use reconciledSource and reconciledDestination instead. This field will be removed in 4.0.0",
5833-
"type": "boolean",
5834-
"default": false,
5835-
"example": true
5832+
"description": "Remove the reconciled field",
5833+
"type": "boolean"
58365834
},
58375835
"reconciledDestination": {
58385836
"description": "Is the transaction reconciled in the destination account?",

api/swagger.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -955,11 +955,7 @@ definitions:
955955
example: Lunch
956956
type: string
957957
reconciled:
958-
default: false
959-
description: DEPRECATED. Do not use, this field does not work as intended.
960-
See https://github.com/envelope-zero/backend/issues/528. Use reconciledSource
961-
and reconciledDestination instead. This field will be removed in 4.0.0
962-
example: true
958+
description: Remove the reconciled field
963959
type: boolean
964960
reconciledDestination:
965961
default: false

pkg/controllers/transaction_v3.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ type TransactionResponseV3 struct {
3535
// TransactionV3 is the representation of a Transaction in API v3.
3636
type TransactionV3 struct {
3737
models.Transaction
38-
Links struct {
38+
Reconciled bool `json:"reconciled,omitempty"` // Remove the reconciled field
39+
Links struct {
3940
Self string `json:"self" example:"https://example.com/api/v3/transactions/d430d7c3-d14c-4712-9336-ee56965a6673"` // The transaction itself
4041
} `json:"links"` // Links for the transaction
4142
}

0 commit comments

Comments
 (0)