types

package
v0.0.0-...-a942fbd Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// GetInvoicePaymentInfoResponseNetworkEthereum captures enum value "ethereum"
	GetInvoicePaymentInfoResponseNetworkEthereum string = "ethereum"

	// GetInvoicePaymentInfoResponseNetworkBsc captures enum value "bsc"
	GetInvoicePaymentInfoResponseNetworkBsc string = "bsc"

	// GetInvoicePaymentInfoResponseNetworkPolygon captures enum value "polygon"
	GetInvoicePaymentInfoResponseNetworkPolygon string = "polygon"

	// GetInvoicePaymentInfoResponseNetworkSolana captures enum value "solana"
	GetInvoicePaymentInfoResponseNetworkSolana string = "solana"

	// GetInvoicePaymentInfoResponseNetworkNear captures enum value "near"
	GetInvoicePaymentInfoResponseNetworkNear string = "near"

	// GetInvoicePaymentInfoResponseNetworkGoerli captures enum value "goerli"
	GetInvoicePaymentInfoResponseNetworkGoerli string = "goerli"
)
View Source
const (

	// GetInvoiceResponseStatusUnpaid captures enum value "unpaid"
	GetInvoiceResponseStatusUnpaid string = "unpaid"

	// GetInvoiceResponseStatusPaid captures enum value "paid"
	GetInvoiceResponseStatusPaid string = "paid"

	// GetInvoiceResponseStatusNotified captures enum value "notified"
	GetInvoiceResponseStatusNotified string = "notified"
)
View Source
const (

	// PostCreateInvoicePayloadNetworkEthereum captures enum value "ethereum"
	PostCreateInvoicePayloadNetworkEthereum string = "ethereum"

	// PostCreateInvoicePayloadNetworkBsc captures enum value "bsc"
	PostCreateInvoicePayloadNetworkBsc string = "bsc"

	// PostCreateInvoicePayloadNetworkPolygon captures enum value "polygon"
	PostCreateInvoicePayloadNetworkPolygon string = "polygon"

	// PostCreateInvoicePayloadNetworkSolana captures enum value "solana"
	PostCreateInvoicePayloadNetworkSolana string = "solana"

	// PostCreateInvoicePayloadNetworkNear captures enum value "near"
	PostCreateInvoicePayloadNetworkNear string = "near"

	// PostCreateInvoicePayloadNetworkGoerli captures enum value "goerli"
	PostCreateInvoicePayloadNetworkGoerli string = "goerli"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GetInvoicePaymentInfoResponse

type GetInvoicePaymentInfoResponse struct {

	// amount
	// Example: 234535435345
	// Required: true
	Amount *int64 `json:"amount"`

	// jump url
	// Example: http://xxx/order/xxx
	// Required: true
	JumpURL *string `json:"jump_url"`

	// network
	// Example: ethereum
	// Required: true
	// Enum: [ethereum bsc polygon solana near goerli]
	Network *string `json:"network"`

	// recipient
	// Example: 0xe29c1B698F98BdFe6Ca4012dEE6FB350D73E40AE
	// Required: true
	// Max Length: 256
	// Min Length: 1
	Recipient *string `json:"recipient"`

	// 标题,在支付页面显示
	// Example: 支付订单NO:23435435646
	// Required: true
	// Max Length: 256
	// Min Length: 1
	Title *string `json:"title"`
}

GetInvoicePaymentInfoResponse get invoice payment info response

swagger:model getInvoicePaymentInfoResponse

func (*GetInvoicePaymentInfoResponse) ContextValidate

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

ContextValidate validates this get invoice payment info response based on context it is used

func (*GetInvoicePaymentInfoResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*GetInvoicePaymentInfoResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetInvoicePaymentInfoResponse) Validate

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

Validate validates this get invoice payment info response

type GetInvoiceResponse

type GetInvoiceResponse struct {

	// 用户自定义元数据,base64
	// Example: e29c1B698F98BdFe6Ca4012dEE6FB350D73E40AE
	// Required: true
	// Max Length: 512
	// Min Length: 0
	Metadata *string `json:"metadata"`

	// status
	// Example: success
	// Required: true
	// Enum: [unpaid paid notified]
	Status *string `json:"status"`

	// txn hash
	// Example: 0xa477aae4aa81df7c7b108bcc65450c7fa36b77f671b2768759e6485acd10f507
	// Required: true
	TxnHash *string `json:"txn_hash"`
}

GetInvoiceResponse get invoice response

swagger:model getInvoiceResponse

func (*GetInvoiceResponse) ContextValidate

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

ContextValidate validates this get invoice response based on context it is used

func (*GetInvoiceResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*GetInvoiceResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetInvoiceResponse) Validate

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

Validate validates this get invoice response

type GetUserInfoResponse

type GetUserInfoResponse struct {

	// Email address of user, if available
	// Example: user@example.com
	// Max Length: 255
	// Format: email
	Email strfmt.Email `json:"email,omitempty"`

	// Auth-Scopes of the user, if available
	// Example: ["app"]
	Scopes []string `json:"scopes"`

	// ID of user
	// Example: 82ebdfad-c586-4407-a873-4cc1c33d56fc
	// Required: true
	Sub *string `json:"sub"`

	// Unix timestamp the user's info was last updated at
	// Example: 1591960808
	// Required: true
	UpdatedAt *int64 `json:"updated_at"`
}

GetUserInfoResponse get user info response

swagger:model getUserInfoResponse

func (*GetUserInfoResponse) ContextValidate

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

ContextValidate validates this get user info response based on context it is used

func (*GetUserInfoResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*GetUserInfoResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetUserInfoResponse) Validate

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

Validate validates this get user info response

type HTTPValidationErrorDetail

type HTTPValidationErrorDetail struct {

	// Error describing field validation failure
	// Required: true
	Error *string `json:"error"`

	// Indicates how the invalid field was provided
	// Required: true
	In *string `json:"in"`

	// Key of field failing validation
	// Required: true
	Key *string `json:"key"`
}

HTTPValidationErrorDetail http validation error detail

swagger:model httpValidationErrorDetail

func (*HTTPValidationErrorDetail) ContextValidate

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

ContextValidate validates this http validation error detail based on context it is used

func (*HTTPValidationErrorDetail) MarshalBinary

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

MarshalBinary interface implementation

func (*HTTPValidationErrorDetail) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*HTTPValidationErrorDetail) Validate

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

Validate validates this http validation error detail

type Nullables

type Nullables struct {

	// nullable bool
	NullableBool nullable.Bool `json:"nullableBool,omitempty"`

	// nullable bool slice
	NullableBoolSlice nullable.BoolSlice `json:"nullableBoolSlice,omitempty"`

	// nullable float
	NullableFloat nullable.Float32 `json:"nullableFloat,omitempty"`

	// nullable float32
	NullableFloat32 nullable.Float32 `json:"nullableFloat32,omitempty"`

	// nullable float32 slice
	NullableFloat32Slice nullable.Float32Slice `json:"nullableFloat32Slice,omitempty"`

	// nullable float64
	NullableFloat64 nullable.Float64 `json:"nullableFloat64,omitempty"`

	// nullable float64 slice
	NullableFloat64Slice nullable.Float64Slice `json:"nullableFloat64Slice,omitempty"`

	// nullable float slice
	NullableFloatSlice nullable.Float32Slice `json:"nullableFloatSlice,omitempty"`

	// nullable int
	NullableInt nullable.Int `json:"nullableInt,omitempty"`

	// nullable int16
	NullableInt16 nullable.Int16 `json:"nullableInt16,omitempty"`

	// nullable int16 slice
	NullableInt16Slice nullable.Int16Slice `json:"nullableInt16Slice,omitempty"`

	// nullable int32
	NullableInt32 nullable.Int32 `json:"nullableInt32,omitempty"`

	// nullable int32 slice
	NullableInt32Slice nullable.Int32Slice `json:"nullableInt32Slice,omitempty"`

	// nullable int64
	NullableInt64 nullable.Int64 `json:"nullableInt64,omitempty"`

	// nullable int64 slice
	NullableInt64Slice nullable.Int64Slice `json:"nullableInt64Slice,omitempty"`

	// nullable int slice
	NullableIntSlice nullable.IntSlice `json:"nullableIntSlice,omitempty"`

	// nullable string
	NullableString nullable.String `json:"nullableString,omitempty"`

	// nullable string slice
	NullableStringSlice nullable.StringSlice `json:"nullableStringSlice,omitempty"`
}

Nullables nullables

swagger:model nullables

func (*Nullables) ContextValidate

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

ContextValidate validate this nullables based on the context it is used

func (*Nullables) MarshalBinary

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

MarshalBinary interface implementation

func (*Nullables) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Nullables) Validate

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

Validate validates this nullables

type OrderDir

type OrderDir string

OrderDir order dir

swagger:model orderDir

const (

	// OrderDirAsc captures enum value "asc"
	OrderDirAsc OrderDir = "asc"

	// OrderDirDesc captures enum value "desc"
	OrderDirDesc OrderDir = "desc"
)

func NewOrderDir

func NewOrderDir(value OrderDir) *OrderDir

func (OrderDir) ContextValidate

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

ContextValidate validates this order dir based on context it is used

func (OrderDir) Pointer

func (m OrderDir) Pointer() *OrderDir

Pointer returns a pointer to a freshly-allocated OrderDir.

func (OrderDir) Validate

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

Validate validates this order dir

type PostChangePasswordPayload

type PostChangePasswordPayload struct {

	// Current password of user
	// Example: correct horse battery staple
	// Required: true
	// Max Length: 500
	// Min Length: 1
	CurrentPassword *string `json:"currentPassword"`

	// New password to set for user
	// Example: correct horse battery staple
	// Required: true
	// Max Length: 500
	// Min Length: 1
	NewPassword *string `json:"newPassword"`
}

PostChangePasswordPayload post change password payload

swagger:model postChangePasswordPayload

func (*PostChangePasswordPayload) ContextValidate

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

ContextValidate validates this post change password payload based on context it is used

func (*PostChangePasswordPayload) MarshalBinary

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

MarshalBinary interface implementation

func (*PostChangePasswordPayload) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostChangePasswordPayload) Validate

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

Validate validates this post change password payload

type PostCreateInvoicePayload

type PostCreateInvoicePayload struct {

	// amount
	// Example: 234535435345
	// Required: true
	Amount *int64 `json:"amount"`

	// jump url
	// Example: http://xxx/order/xxx
	// Required: true
	JumpURL *string `json:"jump_url"`

	// 用户自定义元数据,base64
	// Example: e29c1B698F98BdFe6Ca4012dEE6FB350D73E40AE
	// Required: true
	// Max Length: 512
	// Min Length: 0
	Metadata *string `json:"metadata"`

	// 支付所用的区块链网络
	// Example: ethereum
	// Required: true
	// Enum: [ethereum bsc polygon solana near goerli]
	Network *string `json:"network"`

	// notify url
	// Example: http://xxx/order/xxx
	// Required: true
	NotifyURL *string `json:"notify_url"`

	// recipient
	// Example: 0xe29c1B698F98BdFe6Ca4012dEE6FB350D73E40AE
	// Required: true
	// Max Length: 256
	// Min Length: 1
	Recipient *string `json:"recipient"`

	// 标题,在支付页面显示
	// Example: 支付订单NO:23435435646
	// Required: true
	// Max Length: 256
	// Min Length: 1
	Title *string `json:"title"`
}

PostCreateInvoicePayload post create invoice payload

swagger:model postCreateInvoicePayload

func (*PostCreateInvoicePayload) ContextValidate

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

ContextValidate validates this post create invoice payload based on context it is used

func (*PostCreateInvoicePayload) MarshalBinary

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

MarshalBinary interface implementation

func (*PostCreateInvoicePayload) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostCreateInvoicePayload) Validate

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

Validate validates this post create invoice payload

type PostCreateInvoiceResponse

type PostCreateInvoiceResponse struct {

	// invoice id
	// Example: 7503cd8a-c921-4368-a32d-6c1d01d86da9
	// Required: true
	// Format: uuid4
	InvoiceID *strfmt.UUID4 `json:"invoice_id"`

	// 跳转到支付页面
	// Example: https://xxx.com
	// Required: true
	JumpURL *string `json:"jump_url"`
}

PostCreateInvoiceResponse post create invoice response

swagger:model postCreateInvoiceResponse

func (*PostCreateInvoiceResponse) ContextValidate

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

ContextValidate validates this post create invoice response based on context it is used

func (*PostCreateInvoiceResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*PostCreateInvoiceResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostCreateInvoiceResponse) Validate

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

Validate validates this post create invoice response

type PostForgotPasswordCompletePayload

type PostForgotPasswordCompletePayload struct {

	// New password to set for user
	// Example: correct horse battery staple
	// Required: true
	// Max Length: 500
	// Min Length: 1
	Password *string `json:"password"`

	// Password reset token sent via email
	// Example: ec16f032-3c44-4148-bbcc-45557466fa74
	// Required: true
	// Format: uuid4
	Token *strfmt.UUID4 `json:"token"`
}

PostForgotPasswordCompletePayload post forgot password complete payload

swagger:model postForgotPasswordCompletePayload

func (*PostForgotPasswordCompletePayload) ContextValidate

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

ContextValidate validates this post forgot password complete payload based on context it is used

func (*PostForgotPasswordCompletePayload) MarshalBinary

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

MarshalBinary interface implementation

func (*PostForgotPasswordCompletePayload) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostForgotPasswordCompletePayload) Validate

Validate validates this post forgot password complete payload

type PostForgotPasswordPayload

type PostForgotPasswordPayload struct {

	// Username to initiate password reset for
	// Example: user@example.com
	// Required: true
	// Max Length: 255
	// Min Length: 1
	// Format: email
	Username *strfmt.Email `json:"username"`
}

PostForgotPasswordPayload post forgot password payload

swagger:model postForgotPasswordPayload

func (*PostForgotPasswordPayload) ContextValidate

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

ContextValidate validates this post forgot password payload based on context it is used

func (*PostForgotPasswordPayload) MarshalBinary

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

MarshalBinary interface implementation

func (*PostForgotPasswordPayload) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostForgotPasswordPayload) Validate

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

Validate validates this post forgot password payload

type PostLoginPayload

type PostLoginPayload struct {

	// Password of user to authenticate as
	// Example: correct horse battery staple
	// Required: true
	// Max Length: 500
	// Min Length: 1
	Password *string `json:"password"`

	// Username of user to authenticate as
	// Example: user@example.com
	// Required: true
	// Max Length: 255
	// Min Length: 1
	// Format: email
	Username *strfmt.Email `json:"username"`
}

PostLoginPayload post login payload

swagger:model postLoginPayload

func (*PostLoginPayload) ContextValidate

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

ContextValidate validates this post login payload based on context it is used

func (*PostLoginPayload) MarshalBinary

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

MarshalBinary interface implementation

func (*PostLoginPayload) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostLoginPayload) Validate

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

Validate validates this post login payload

type PostLoginResponse

type PostLoginResponse struct {

	// Access token required for accessing protected API endpoints
	// Example: c1247d8d-0d65-41c4-bc86-ec041d2ac437
	// Required: true
	// Format: uuid4
	AccessToken *strfmt.UUID4 `json:"access_token"`

	// Access token expiry in seconds
	// Example: 86400
	// Required: true
	ExpiresIn *int64 `json:"expires_in"`

	// Refresh token for refreshing the access token once it expires
	// Example: 1dadb3bd-50d8-485d-83a3-6111392568f0
	// Required: true
	// Format: uuid4
	RefreshToken *strfmt.UUID4 `json:"refresh_token"`

	// Type of access token, will always be `bearer`
	// Example: bearer
	// Required: true
	TokenType *string `json:"token_type"`
}

PostLoginResponse post login response

swagger:model postLoginResponse

func (*PostLoginResponse) ContextValidate

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

ContextValidate validates this post login response based on context it is used

func (*PostLoginResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*PostLoginResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostLoginResponse) Validate

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

Validate validates this post login response

type PostLogoutPayload

type PostLogoutPayload struct {

	// Optional refresh token to delete while logging out
	// Example: 700ebed3-40f7-4211-bc83-a89b22b9875e
	// Format: uuid4
	RefreshToken strfmt.UUID4 `json:"refresh_token,omitempty"`
}

PostLogoutPayload post logout payload

swagger:model postLogoutPayload

func (*PostLogoutPayload) ContextValidate

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

ContextValidate validates this post logout payload based on context it is used

func (*PostLogoutPayload) MarshalBinary

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

MarshalBinary interface implementation

func (*PostLogoutPayload) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostLogoutPayload) Validate

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

Validate validates this post logout payload

type PostRefreshPayload

type PostRefreshPayload struct {

	// Refresh token to use for retrieving new token set
	// Example: 7503cd8a-c921-4368-a32d-6c1d01d86da9
	// Required: true
	// Format: uuid4
	RefreshToken *strfmt.UUID4 `json:"refresh_token"`
}

PostRefreshPayload post refresh payload

swagger:model postRefreshPayload

func (*PostRefreshPayload) ContextValidate

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

ContextValidate validates this post refresh payload based on context it is used

func (*PostRefreshPayload) MarshalBinary

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

MarshalBinary interface implementation

func (*PostRefreshPayload) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostRefreshPayload) Validate

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

Validate validates this post refresh payload

type PostRegisterPayload

type PostRegisterPayload struct {

	// Password to register with
	// Example: correct horse battery staple
	// Required: true
	// Max Length: 500
	// Min Length: 1
	Password *string `json:"password"`

	// Username to register with
	// Example: user@example.com
	// Required: true
	// Max Length: 255
	// Min Length: 1
	// Format: email
	Username *strfmt.Email `json:"username"`
}

PostRegisterPayload post register payload

swagger:model postRegisterPayload

func (*PostRegisterPayload) ContextValidate

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

ContextValidate validates this post register payload based on context it is used

func (*PostRegisterPayload) MarshalBinary

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

MarshalBinary interface implementation

func (*PostRegisterPayload) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostRegisterPayload) Validate

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

Validate validates this post register payload

type PostUpdatePushTokenPayload

type PostUpdatePushTokenPayload struct {

	// New push token for given provider.
	// Example: 1c91e550-8167-439c-8021-dee7de2f7e96
	// Required: true
	// Max Length: 500
	NewToken *string `json:"newToken"`

	// Old token that can be deleted if present.
	// Example: 495179de-b771-48f0-aab2-8d23701b0f02
	// Max Length: 500
	OldToken *string `json:"oldToken,omitempty"`

	// Identifier of the provider the token is for (eg. "fcm", "apn"). Currently only "fcm" is supported.
	// Example: fcm
	// Required: true
	// Max Length: 500
	Provider *string `json:"provider"`
}

PostUpdatePushTokenPayload post update push token payload

swagger:model postUpdatePushTokenPayload

func (*PostUpdatePushTokenPayload) ContextValidate

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

ContextValidate validates this post update push token payload based on context it is used

func (*PostUpdatePushTokenPayload) MarshalBinary

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

MarshalBinary interface implementation

func (*PostUpdatePushTokenPayload) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PostUpdatePushTokenPayload) Validate

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

Validate validates this post update push token payload

type PublicHTTPError

type PublicHTTPError struct {

	// HTTP status code returned for the error
	// Example: 403
	// Required: true
	// Maximum: 599
	// Minimum: 100
	Code *int64 `json:"status"`

	// More detailed, human-readable, optional explanation of the error
	// Example: User is lacking permission to access this resource
	Detail string `json:"detail,omitempty"`

	// Short, human-readable description of the error
	// Example: Forbidden
	// Required: true
	Title *string `json:"title"`

	// Type of error returned, should be used for client-side error handling
	// Example: generic
	// Required: true
	Type *string `json:"type"`
}

PublicHTTPError public Http error

swagger:model publicHttpError

func (*PublicHTTPError) ContextValidate

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

ContextValidate validates this public Http error based on context it is used

func (*PublicHTTPError) MarshalBinary

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

MarshalBinary interface implementation

func (*PublicHTTPError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PublicHTTPError) Validate

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

Validate validates this public Http error

type PublicHTTPValidationError

type PublicHTTPValidationError struct {
	PublicHTTPError

	// List of errors received while validating payload against schema
	// Required: true
	ValidationErrors []*HTTPValidationErrorDetail `json:"validationErrors"`
}

PublicHTTPValidationError public Http validation error

swagger:model publicHttpValidationError

func (*PublicHTTPValidationError) ContextValidate

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

ContextValidate validate this public Http validation error based on the context it is used

func (*PublicHTTPValidationError) MarshalBinary

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

MarshalBinary interface implementation

func (PublicHTTPValidationError) MarshalJSON

func (m PublicHTTPValidationError) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*PublicHTTPValidationError) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PublicHTTPValidationError) UnmarshalJSON

func (m *PublicHTTPValidationError) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*PublicHTTPValidationError) Validate

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

Validate validates this public Http validation error

type SwaggerSpec

type SwaggerSpec struct {
	Handlers map[string]map[string]bool
}

SwaggerSpec API documentation

func NewSwaggerSpec

func NewSwaggerSpec() *SwaggerSpec

NewSwaggerSpec creates a new SwaggerSpec instance

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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