Documentation
¶
Index ¶
- Variables
- type Address
- func (*Address) Descriptor() ([]byte, []int)deprecated
- func (x *Address) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *Address) FastWrite(buf []byte) (offset int)
- func (x *Address) GetCity() string
- func (x *Address) GetCountry() string
- func (x *Address) GetState() string
- func (x *Address) GetStreetAddress() string
- func (x *Address) GetZipCode() string
- func (*Address) ProtoMessage()
- func (x *Address) ProtoReflect() protoreflect.Message
- func (x *Address) Reset()
- func (x *Address) Size() (n int)
- func (x *Address) String() string
- type CheckoutReq
- func (*CheckoutReq) Descriptor() ([]byte, []int)deprecated
- func (x *CheckoutReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *CheckoutReq) FastWrite(buf []byte) (offset int)
- func (x *CheckoutReq) GetAddress() *Address
- func (x *CheckoutReq) GetCreditCard() *payment.CreditCardInfo
- func (x *CheckoutReq) GetEmail() string
- func (x *CheckoutReq) GetFirstname() string
- func (x *CheckoutReq) GetLastname() string
- func (x *CheckoutReq) GetUserId() uint32
- func (*CheckoutReq) ProtoMessage()
- func (x *CheckoutReq) ProtoReflect() protoreflect.Message
- func (x *CheckoutReq) Reset()
- func (x *CheckoutReq) Size() (n int)
- func (x *CheckoutReq) String() string
- type CheckoutResp
- func (*CheckoutResp) Descriptor() ([]byte, []int)deprecated
- func (x *CheckoutResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *CheckoutResp) FastWrite(buf []byte) (offset int)
- func (x *CheckoutResp) GetOrderId() string
- func (x *CheckoutResp) GetTransactionId() string
- func (*CheckoutResp) ProtoMessage()
- func (x *CheckoutResp) ProtoReflect() protoreflect.Message
- func (x *CheckoutResp) Reset()
- func (x *CheckoutResp) Size() (n int)
- func (x *CheckoutResp) String() string
- type CheckoutService
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) GetCountry ¶
func (*Address) GetStreetAddress ¶
func (*Address) GetZipCode ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
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) 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) 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)
}
Click to show internal directories.
Click to hide internal directories.