authorization_models

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationCode

type AuthorizationCode struct {

	// A Login with Amazon (LWA) authorization code that can be exchanged for a refresh token and access token that authorize you to make calls to a Selling Partner API.
	AuthorizationCode string `json:"authorizationCode,omitempty"`
}

AuthorizationCode A Login with Amazon (LWA) authorization code.

swagger:model AuthorizationCode

func (*AuthorizationCode) ContextValidate

func (m *AuthorizationCode) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this authorization code based on context it is used

func (*AuthorizationCode) MarshalBinary

func (m *AuthorizationCode) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AuthorizationCode) UnmarshalBinary

func (m *AuthorizationCode) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AuthorizationCode) Validate

func (m *AuthorizationCode) Validate(formats strfmt.Registry) error

Validate validates this authorization code

type Error

type Error struct {

	// An error code that identifies the type of error that occurred.
	// Required: true
	Code *string `json:"code"`

	// Additional details that can help the caller understand or fix the issue.
	Details string `json:"details,omitempty"`

	// A message that describes the error condition in a human-readable form.
	// Required: true
	Message *string `json:"message"`
}

Error Error response returned when the request is unsuccessful.

swagger:model Error

func (*Error) ContextValidate

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type ErrorList

type ErrorList []*Error

ErrorList A list of error responses returned when a request is unsuccessful.

swagger:model ErrorList

func (ErrorList) ContextValidate

func (m ErrorList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this error list based on the context it is used

func (ErrorList) Validate

func (m ErrorList) Validate(formats strfmt.Registry) error

Validate validates this error list

type GetAuthorizationCodeResponse

type GetAuthorizationCodeResponse struct {

	// errors
	Errors ErrorList `json:"errors,omitempty"`

	// payload
	Payload *AuthorizationCode `json:"payload,omitempty"`
}

GetAuthorizationCodeResponse The response schema for the GetAuthorizationCode operation.

swagger:model GetAuthorizationCodeResponse

func (*GetAuthorizationCodeResponse) ContextValidate

func (m *GetAuthorizationCodeResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get authorization code response based on the context it is used

func (*GetAuthorizationCodeResponse) MarshalBinary

func (m *GetAuthorizationCodeResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetAuthorizationCodeResponse) UnmarshalBinary

func (m *GetAuthorizationCodeResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetAuthorizationCodeResponse) Validate

func (m *GetAuthorizationCodeResponse) Validate(formats strfmt.Registry) error

Validate validates this get authorization code response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL