From dfb1a7155a1e40b1a48bc9cf3865e46d20f77471 Mon Sep 17 00:00:00 2001 From: YegorZh Date: Fri, 16 Jan 2026 14:26:54 +0000 Subject: [PATCH] fix: rename accountPurposeDescription to accountPurposeDetail --- openapi.json | 2 +- schemas/application/createApplication.json | 6 +++--- unit/e2e_tests/java/TestHelpers.java | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/openapi.json b/openapi.json index 7a4cff9..fcecda8 100644 --- a/openapi.json +++ b/openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Unit OpenAPI specifications", "description": "An OpenAPI specifications for unit-sdk clients", - "version": "0.3.1" + "version": "0.3.2" }, "servers": [ { diff --git a/schemas/application/createApplication.json b/schemas/application/createApplication.json index 64442ac..a18109a 100644 --- a/schemas/application/createApplication.json +++ b/schemas/application/createApplication.json @@ -886,7 +886,7 @@ "accountPurpose": { "$ref": "#/components/schemas/ThreadIndividualAccountPurpose" }, - "accountPurposeDescription": { + "accountPurposeDetail": { "type": "string" }, "sourceOfFunds": { @@ -1041,7 +1041,7 @@ "accountPurpose": { "$ref": "#/components/schemas/ThreadBusinessAccountPurpose" }, - "accountPurposeDescription": { + "accountPurposeDetail": { "type": "string" }, "businessDescription": { @@ -1167,7 +1167,7 @@ "accountPurpose": { "$ref": "#/components/schemas/ThreadBusinessAccountPurpose" }, - "accountPurposeDescription": { + "accountPurposeDetail": { "type": "string" }, "transactionVolume": { diff --git a/unit/e2e_tests/java/TestHelpers.java b/unit/e2e_tests/java/TestHelpers.java index f0bec19..cef7c4c 100644 --- a/unit/e2e_tests/java/TestHelpers.java +++ b/unit/e2e_tests/java/TestHelpers.java @@ -329,6 +329,7 @@ public static CreateApplicationRequest GenerateCreateIndividualThreadApplication // Thread application specific fields attr.setAccountPurpose(ThreadIndividualAccountPurpose.PAYROLL_OR_DIRECT_DEPOSIT); + attr.setAccountPurposeDetail("Receiving monthly salary payments"); attr.setSourceOfFunds(ThreadIndividualSourceOfFunds.SALARY_OR_WAGES); attr.setTransactionVolume(ThreadIndividualTransactionVolume.BETWEEN1_K_AND5_K); attr.setProfession(ThreadIndividualProfession.ENGINEER); @@ -409,6 +410,7 @@ public static CreateApplicationRequest GenerateCreateBusinessThreadApplicationRe // Thread-specific required fields attr.setAccountPurpose(ThreadBusinessAccountPurpose.RETAIL_SALES_IN_PERSON); + attr.setAccountPurposeDetail("Processing customer payments for retail operations"); attr.setSourceOfFunds(ThreadBusinessSourceOfFunds.SALES_OF_SERVICES); attr.setTransactionVolume(ThreadBusinessTransactionVolume.BETWEEN10_K_AND50_K); attr.setBusinessIndustry(ThreadBusinessIndustry.CONSTRUCTION); @@ -471,6 +473,7 @@ public static CreateApplicationRequest GenerateCreateSoleProprietorThreadApplica // Thread-specific required fields attr.setAccountPurpose(ThreadBusinessAccountPurpose.RETAIL_SALES_IN_PERSON); + attr.setAccountPurposeDetail("Managing consulting fees and client payments"); attr.setSourceOfFunds(ThreadBusinessSourceOfFunds.SALES_OF_SERVICES); attr.setTransactionVolume(ThreadSoleProprietorshipTransactionVolume.BETWEEN5_K_AND20_K); attr.setBusinessIndustry(ThreadBusinessIndustry.CONSTRUCTION);