From 0d081e63abbb50250fdc201e7c319b2edfeb6e87 Mon Sep 17 00:00:00 2001 From: Samuel Tariku Date: Tue, 29 Apr 2025 21:11:43 +0300 Subject: [PATCH] - --- docs/docs.go | 23 +++++++++++++++++++---- docs/swagger.json | 23 +++++++++++++++++++---- docs/swagger.yaml | 17 ++++++++++++++--- 3 files changed, 52 insertions(+), 11 deletions(-) diff --git a/docs/docs.go b/docs/docs.go index 116db7f..22547e0 100644 --- a/docs/docs.go +++ b/docs/docs.go @@ -2474,7 +2474,7 @@ const docTemplate = `{ } } }, - "patch": { + "put": { "description": "Updates the verified status of a transaction", "consumes": [ "application/json" @@ -3991,6 +3991,10 @@ const docTemplate = `{ "type": "number", "example": 100 }, + "branch_id": { + "type": "integer", + "example": 1 + }, "full_name": { "type": "string", "example": "John" @@ -4216,6 +4220,10 @@ const docTemplate = `{ "type": "integer", "example": 1 }, + "branch_id": { + "type": "integer", + "example": 1 + }, "cashout_id": { "type": "string", "example": "191212" @@ -4490,6 +4498,10 @@ const docTemplate = `{ "type": "number", "example": 100 }, + "approved_by": { + "type": "integer", + "example": 1 + }, "bank_code": { "type": "string" }, @@ -4508,6 +4520,9 @@ const docTemplate = `{ "type": "integer", "example": 1 }, + "created_at": { + "type": "string" + }, "full_name": { "type": "string", "example": "John Smith" @@ -4539,6 +4554,9 @@ const docTemplate = `{ "type": "integer", "example": 1 }, + "updated_at": { + "type": "string" + }, "verified": { "type": "boolean", "example": true @@ -4600,9 +4618,6 @@ const docTemplate = `{ }, "handlers.UpdateTransactionVerifiedReq": { "type": "object", - "required": [ - "verified" - ], "properties": { "verified": { "type": "boolean", diff --git a/docs/swagger.json b/docs/swagger.json index 131ed58..04fa088 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -2466,7 +2466,7 @@ } } }, - "patch": { + "put": { "description": "Updates the verified status of a transaction", "consumes": [ "application/json" @@ -3983,6 +3983,10 @@ "type": "number", "example": 100 }, + "branch_id": { + "type": "integer", + "example": 1 + }, "full_name": { "type": "string", "example": "John" @@ -4208,6 +4212,10 @@ "type": "integer", "example": 1 }, + "branch_id": { + "type": "integer", + "example": 1 + }, "cashout_id": { "type": "string", "example": "191212" @@ -4482,6 +4490,10 @@ "type": "number", "example": 100 }, + "approved_by": { + "type": "integer", + "example": 1 + }, "bank_code": { "type": "string" }, @@ -4500,6 +4512,9 @@ "type": "integer", "example": 1 }, + "created_at": { + "type": "string" + }, "full_name": { "type": "string", "example": "John Smith" @@ -4531,6 +4546,9 @@ "type": "integer", "example": 1 }, + "updated_at": { + "type": "string" + }, "verified": { "type": "boolean", "example": true @@ -4592,9 +4610,6 @@ }, "handlers.UpdateTransactionVerifiedReq": { "type": "object", - "required": [ - "verified" - ], "properties": { "verified": { "type": "boolean", diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 28c76fc..5c7a188 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -474,6 +474,9 @@ definitions: amount: example: 100 type: number + branch_id: + example: 1 + type: integer full_name: example: John type: string @@ -631,6 +634,9 @@ definitions: bet_id: example: 1 type: integer + branch_id: + example: 1 + type: integer cashout_id: example: "191212" type: string @@ -821,6 +827,9 @@ definitions: amount: example: 100 type: number + approved_by: + example: 1 + type: integer bank_code: type: string beneficiary_name: @@ -834,6 +843,8 @@ definitions: cashier_id: example: 1 type: integer + created_at: + type: string full_name: example: John Smith type: string @@ -855,6 +866,8 @@ definitions: type: example: 1 type: integer + updated_at: + type: string verified: example: true type: boolean @@ -902,8 +915,6 @@ definitions: verified: example: true type: boolean - required: - - verified type: object handlers.UpdateWalletActiveReq: properties: @@ -2698,7 +2709,7 @@ paths: summary: Gets transaction by id tags: - transaction - patch: + put: consumes: - application/json description: Updates the verified status of a transaction