models

package
v0.0.0-...-76fafce Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PaymentspbAuthorizePaymentRequest

type PaymentspbAuthorizePaymentRequest struct {

	// amount
	Amount float64 `json:"amount,omitempty"`

	// customer Id
	CustomerID string `json:"customerId,omitempty"`
}

PaymentspbAuthorizePaymentRequest paymentspb authorize payment request

swagger:model paymentspbAuthorizePaymentRequest

func (*PaymentspbAuthorizePaymentRequest) ContextValidate

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

ContextValidate validates this paymentspb authorize payment request based on context it is used

func (*PaymentspbAuthorizePaymentRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*PaymentspbAuthorizePaymentRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PaymentspbAuthorizePaymentRequest) Validate

Validate validates this paymentspb authorize payment request

type PaymentspbAuthorizePaymentResponse

type PaymentspbAuthorizePaymentResponse struct {

	// id
	ID string `json:"id,omitempty"`
}

PaymentspbAuthorizePaymentResponse paymentspb authorize payment response

swagger:model paymentspbAuthorizePaymentResponse

func (*PaymentspbAuthorizePaymentResponse) ContextValidate

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

ContextValidate validates this paymentspb authorize payment response based on context it is used

func (*PaymentspbAuthorizePaymentResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*PaymentspbAuthorizePaymentResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*PaymentspbAuthorizePaymentResponse) Validate

Validate validates this paymentspb authorize payment response

type PaymentspbPayInvoiceResponse

type PaymentspbPayInvoiceResponse interface{}

PaymentspbPayInvoiceResponse paymentspb pay invoice response

swagger:model paymentspbPayInvoiceResponse

type ProtobufAny

type ProtobufAny struct {

	// at type
	AtType string `json:"@type,omitempty"`
}

ProtobufAny protobuf any

swagger:model protobufAny

func (*ProtobufAny) ContextValidate

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

ContextValidate validates this protobuf any based on context it is used

func (*ProtobufAny) MarshalBinary

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

MarshalBinary interface implementation

func (*ProtobufAny) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProtobufAny) Validate

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

Validate validates this protobuf any

type RPCStatus

type RPCStatus struct {

	// code
	Code int32 `json:"code,omitempty"`

	// details
	Details []*ProtobufAny `json:"details"`

	// message
	Message string `json:"message,omitempty"`
}

RPCStatus rpc status

swagger:model rpcStatus

func (*RPCStatus) ContextValidate

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

ContextValidate validate this rpc status based on the context it is used

func (*RPCStatus) MarshalBinary

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

MarshalBinary interface implementation

func (*RPCStatus) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*RPCStatus) Validate

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

Validate validates this rpc status

Jump to

Keyboard shortcuts

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