From 01d68958d63864562605e2ea303904be6c822e41 Mon Sep 17 00:00:00 2001 From: Kirill Sysoev Date: Tue, 20 Aug 2024 08:04:43 +0000 Subject: [PATCH] Updates API schema --- schema/get_account_status_resp.go | 2 -- schema/landing_company_resp.go | 30 ------------------------------ schema/tnc_approval.go | 29 ----------------------------- 3 files changed, 61 deletions(-) diff --git a/schema/get_account_status_resp.go b/schema/get_account_status_resp.go index 023cd94..1b4bfaa 100644 --- a/schema/get_account_status_resp.go +++ b/schema/get_account_status_resp.go @@ -95,8 +95,6 @@ type GetAccountStatusRespGetAccountStatus struct { // - `social_signup`: this client is using social signup. // - `trading_experience_not_complete`: client has not completed the trading // experience questionnaire. - // - `ukgc_funds_protection`: client has acknowledged UKGC funds protection - // notice. // - `unwelcome`: client cannot deposit or buy contracts, but can withdraw or sell // contracts. // - `withdrawal_locked`: deposits allowed but withdrawals are not allowed. diff --git a/schema/landing_company_resp.go b/schema/landing_company_resp.go index ae98c73..e2ee137 100644 --- a/schema/landing_company_resp.go +++ b/schema/landing_company_resp.go @@ -263,9 +263,6 @@ type LandingCompanyRespLandingCompany struct { // Flag to indicate whether to skip deposit verifcation or not. SkipDepositVerification *LandingCompanyRespLandingCompanySkipDepositVerification `json:"skip_deposit_verification,omitempty"` - // Flag to indicate ukgc funds protection setting. - UkgcFundsProtection *LandingCompanyRespLandingCompanyUkgcFundsProtection `json:"ukgc_funds_protection,omitempty"` - // Virtual Company VirtualCompany *string `json:"virtual_company,omitempty"` } @@ -2058,33 +2055,6 @@ func (j *LandingCompanyRespLandingCompanySkipDepositVerification) UnmarshalJSON( return nil } -type LandingCompanyRespLandingCompanyUkgcFundsProtection int - -var enumValues_LandingCompanyRespLandingCompanyUkgcFundsProtection = []interface{}{ - 0, - 1, -} - -// UnmarshalJSON implements json.Unmarshaler. -func (j *LandingCompanyRespLandingCompanyUkgcFundsProtection) UnmarshalJSON(b []byte) error { - var v int - if err := json.Unmarshal(b, &v); err != nil { - return err - } - var ok bool - for _, expected := range enumValues_LandingCompanyRespLandingCompanyUkgcFundsProtection { - if reflect.DeepEqual(v, expected) { - ok = true - break - } - } - if !ok { - return fmt.Errorf("invalid value (expected one of %#v): %#v", enumValues_LandingCompanyRespLandingCompanyUkgcFundsProtection, v) - } - *j = LandingCompanyRespLandingCompanyUkgcFundsProtection(v) - return nil -} - type LandingCompanyRespMsgType string const LandingCompanyRespMsgTypeLandingCompany LandingCompanyRespMsgType = "landing_company" diff --git a/schema/tnc_approval.go b/schema/tnc_approval.go index 2c80932..d71bcd7 100644 --- a/schema/tnc_approval.go +++ b/schema/tnc_approval.go @@ -24,9 +24,6 @@ type TncApproval struct { // Must be `1` TncApproval TncApprovalTncApproval `json:"tnc_approval"` - - // [Optional] For `ASK_UK_FUNDS_PROTECTION` in `cashier`. - UkgcFundsProtection *TncApprovalUkgcFundsProtection `json:"ukgc_funds_protection,omitempty"` } type TncApprovalAffiliateCocAgreement int @@ -85,32 +82,6 @@ func (j *TncApprovalTncApproval) UnmarshalJSON(b []byte) error { return nil } -type TncApprovalUkgcFundsProtection int - -var enumValues_TncApprovalUkgcFundsProtection = []interface{}{ - 1, -} - -// UnmarshalJSON implements json.Unmarshaler. -func (j *TncApprovalUkgcFundsProtection) UnmarshalJSON(b []byte) error { - var v int - if err := json.Unmarshal(b, &v); err != nil { - return err - } - var ok bool - for _, expected := range enumValues_TncApprovalUkgcFundsProtection { - if reflect.DeepEqual(v, expected) { - ok = true - break - } - } - if !ok { - return fmt.Errorf("invalid value (expected one of %#v): %#v", enumValues_TncApprovalUkgcFundsProtection, v) - } - *j = TncApprovalUkgcFundsProtection(v) - return nil -} - // UnmarshalJSON implements json.Unmarshaler. func (j *TncApproval) UnmarshalJSON(b []byte) error { var raw map[string]interface{}