Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): update via SDK Studio #1654

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
104 changes: 6 additions & 98 deletions accounts/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@ func (r AccountUpdateParamsSettingsDefaultNameservers) IsKnown() bool {
}

type AccountUpdateResponseEnvelope struct {
Errors []AccountUpdateResponseEnvelopeErrors `json:"errors,required"`
Messages []AccountUpdateResponseEnvelopeMessages `json:"messages,required"`
Result AccountUpdateResponse `json:"result,required"`
Errors []shared.UnnamedSchemaRef172 `json:"errors,required"`
Messages []shared.UnnamedSchemaRef172 `json:"messages,required"`
Result AccountUpdateResponse `json:"result,required"`
// Whether the API call was successful
Success AccountUpdateResponseEnvelopeSuccess `json:"success,required"`
JSON accountUpdateResponseEnvelopeJSON `json:"-"`
Expand All @@ -315,52 +315,6 @@ func (r accountUpdateResponseEnvelopeJSON) RawJSON() string {
return r.raw
}

type AccountUpdateResponseEnvelopeErrors struct {
Code int64 `json:"code,required"`
Message string `json:"message,required"`
JSON accountUpdateResponseEnvelopeErrorsJSON `json:"-"`
}

// accountUpdateResponseEnvelopeErrorsJSON contains the JSON metadata for the
// struct [AccountUpdateResponseEnvelopeErrors]
type accountUpdateResponseEnvelopeErrorsJSON struct {
Code apijson.Field
Message apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

func (r *AccountUpdateResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

func (r accountUpdateResponseEnvelopeErrorsJSON) RawJSON() string {
return r.raw
}

type AccountUpdateResponseEnvelopeMessages struct {
Code int64 `json:"code,required"`
Message string `json:"message,required"`
JSON accountUpdateResponseEnvelopeMessagesJSON `json:"-"`
}

// accountUpdateResponseEnvelopeMessagesJSON contains the JSON metadata for the
// struct [AccountUpdateResponseEnvelopeMessages]
type accountUpdateResponseEnvelopeMessagesJSON struct {
Code apijson.Field
Message apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

func (r *AccountUpdateResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

func (r accountUpdateResponseEnvelopeMessagesJSON) RawJSON() string {
return r.raw
}

// Whether the API call was successful
type AccountUpdateResponseEnvelopeSuccess bool

Expand Down Expand Up @@ -416,9 +370,9 @@ type AccountGetParams struct {
}

type AccountGetResponseEnvelope struct {
Errors []AccountGetResponseEnvelopeErrors `json:"errors,required"`
Messages []AccountGetResponseEnvelopeMessages `json:"messages,required"`
Result AccountGetResponse `json:"result,required"`
Errors []shared.UnnamedSchemaRef172 `json:"errors,required"`
Messages []shared.UnnamedSchemaRef172 `json:"messages,required"`
Result AccountGetResponse `json:"result,required"`
// Whether the API call was successful
Success AccountGetResponseEnvelopeSuccess `json:"success,required"`
JSON accountGetResponseEnvelopeJSON `json:"-"`
Expand All @@ -443,52 +397,6 @@ func (r accountGetResponseEnvelopeJSON) RawJSON() string {
return r.raw
}

type AccountGetResponseEnvelopeErrors struct {
Code int64 `json:"code,required"`
Message string `json:"message,required"`
JSON accountGetResponseEnvelopeErrorsJSON `json:"-"`
}

// accountGetResponseEnvelopeErrorsJSON contains the JSON metadata for the struct
// [AccountGetResponseEnvelopeErrors]
type accountGetResponseEnvelopeErrorsJSON struct {
Code apijson.Field
Message apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

func (r *AccountGetResponseEnvelopeErrors) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

func (r accountGetResponseEnvelopeErrorsJSON) RawJSON() string {
return r.raw
}

type AccountGetResponseEnvelopeMessages struct {
Code int64 `json:"code,required"`
Message string `json:"message,required"`
JSON accountGetResponseEnvelopeMessagesJSON `json:"-"`
}

// accountGetResponseEnvelopeMessagesJSON contains the JSON metadata for the struct
// [AccountGetResponseEnvelopeMessages]
type accountGetResponseEnvelopeMessagesJSON struct {
Code apijson.Field
Message apijson.Field
raw string
ExtraFields map[string]apijson.Field
}

func (r *AccountGetResponseEnvelopeMessages) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}

func (r accountGetResponseEnvelopeMessagesJSON) RawJSON() string {
return r.raw
}

// Whether the API call was successful
type AccountGetResponseEnvelopeSuccess bool

Expand Down
Loading