checkout

package
v0.0.0-...-6907fd9 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_checkout_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Address

type Address struct {
	StreetAddress string `protobuf:"bytes,1,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"`
	City          string `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"`
	State         string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
	Country       string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"`
	ZipCode       string `protobuf:"bytes,5,opt,name=zip_code,json=zipCode,proto3" json:"zip_code,omitempty"`
	// contains filtered or unexported fields
}

func (*Address) Descriptor deprecated

func (*Address) Descriptor() ([]byte, []int)

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) FastRead

func (x *Address) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*Address) FastWrite

func (x *Address) FastWrite(buf []byte) (offset int)

func (*Address) GetCity

func (x *Address) GetCity() string

func (*Address) GetCountry

func (x *Address) GetCountry() string

func (*Address) GetState

func (x *Address) GetState() string

func (*Address) GetStreetAddress

func (x *Address) GetStreetAddress() string

func (*Address) GetZipCode

func (x *Address) GetZipCode() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

func (x *Address) ProtoReflect() protoreflect.Message

func (*Address) Reset

func (x *Address) Reset()

func (*Address) Size

func (x *Address) Size() (n int)

func (*Address) String

func (x *Address) String() string

type CheckoutReq

type CheckoutReq struct {
	UserId     uint32                  `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	Firstname  string                  `protobuf:"bytes,2,opt,name=firstname,proto3" json:"firstname,omitempty"`
	Lastname   string                  `protobuf:"bytes,3,opt,name=lastname,proto3" json:"lastname,omitempty"`
	Email      string                  `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	Address    *Address                `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
	CreditCard *payment.CreditCardInfo `protobuf:"bytes,6,opt,name=credit_card,json=creditCard,proto3" json:"credit_card,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckoutReq) Descriptor deprecated

func (*CheckoutReq) Descriptor() ([]byte, []int)

Deprecated: Use CheckoutReq.ProtoReflect.Descriptor instead.

func (*CheckoutReq) FastRead

func (x *CheckoutReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*CheckoutReq) FastWrite

func (x *CheckoutReq) FastWrite(buf []byte) (offset int)

func (*CheckoutReq) GetAddress

func (x *CheckoutReq) GetAddress() *Address

func (*CheckoutReq) GetCreditCard

func (x *CheckoutReq) GetCreditCard() *payment.CreditCardInfo

func (*CheckoutReq) GetEmail

func (x *CheckoutReq) GetEmail() string

func (*CheckoutReq) GetFirstname

func (x *CheckoutReq) GetFirstname() string

func (*CheckoutReq) GetLastname

func (x *CheckoutReq) GetLastname() string

func (*CheckoutReq) GetUserId

func (x *CheckoutReq) GetUserId() uint32

func (*CheckoutReq) ProtoMessage

func (*CheckoutReq) ProtoMessage()

func (*CheckoutReq) ProtoReflect

func (x *CheckoutReq) ProtoReflect() protoreflect.Message

func (*CheckoutReq) Reset

func (x *CheckoutReq) Reset()

func (*CheckoutReq) Size

func (x *CheckoutReq) Size() (n int)

func (*CheckoutReq) String

func (x *CheckoutReq) String() string

type CheckoutResp

type CheckoutResp struct {
	OrderId       string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	TransactionId string `protobuf:"bytes,2,opt,name=transaction_id,json=transactionId,proto3" json:"transaction_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckoutResp) Descriptor deprecated

func (*CheckoutResp) Descriptor() ([]byte, []int)

Deprecated: Use CheckoutResp.ProtoReflect.Descriptor instead.

func (*CheckoutResp) FastRead

func (x *CheckoutResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*CheckoutResp) FastWrite

func (x *CheckoutResp) FastWrite(buf []byte) (offset int)

func (*CheckoutResp) GetOrderId

func (x *CheckoutResp) GetOrderId() string

func (*CheckoutResp) GetTransactionId

func (x *CheckoutResp) GetTransactionId() string

func (*CheckoutResp) ProtoMessage

func (*CheckoutResp) ProtoMessage()

func (*CheckoutResp) ProtoReflect

func (x *CheckoutResp) ProtoReflect() protoreflect.Message

func (*CheckoutResp) Reset

func (x *CheckoutResp) Reset()

func (*CheckoutResp) Size

func (x *CheckoutResp) Size() (n int)

func (*CheckoutResp) String

func (x *CheckoutResp) String() string

type CheckoutService

type CheckoutService interface {
	Checkout(ctx context.Context, req *CheckoutReq) (res *CheckoutResp, err error)
}

Directories

Path Synopsis
Code generated by Kitex v0.8.0.
Code generated by Kitex v0.8.0.

Jump to

Keyboard shortcuts

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