plutus

package
v0.0.0-...-794a79b Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CardTokenType_name = map[int32]string{
	0: "ONEUSE",
	1: "RECURRENT",
}
View Source
var CardTokenType_value = map[string]int32{
	"ONEUSE":    0,
	"RECURRENT": 1,
}
View Source
var DiscountType_name = map[int32]string{
	0: "STATIC",
	1: "PERCENT",
}
View Source
var DiscountType_value = map[string]int32{
	"STATIC":  0,
	"PERCENT": 1,
}
View Source
var Provider_name = map[int32]string{
	0: "CULQI",
	1: "PAYPAL",
	2: "VISANET",
	3: "STRIPE",
	4: "DUMMY",
}
View Source
var Provider_value = map[string]int32{
	"CULQI":   0,
	"PAYPAL":  1,
	"VISANET": 2,
	"STRIPE":  3,
	"DUMMY":   4,
}
View Source
var SaleState_name = map[int32]string{
	0: "NULL",
	1: "DRAFT",
	2: "SIGNED",
	3: "PAIDOUT",
	4: "DONE",
}
View Source
var SaleState_value = map[string]int32{
	"NULL":    0,
	"DRAFT":   1,
	"SIGNED":  2,
	"PAIDOUT": 3,
	"DONE":    4,
}

Functions

func RegisterPlutusServer

func RegisterPlutusServer(s *grpc.Server, srv PlutusServer)

Types

type ActiveDiscountsRequest

type ActiveDiscountsRequest struct {
	Until                *timestamp.Timestamp `protobuf:"bytes,1,opt,name=until,proto3" json:"until,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*ActiveDiscountsRequest) Descriptor

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

func (*ActiveDiscountsRequest) GetUntil

func (*ActiveDiscountsRequest) ProtoMessage

func (*ActiveDiscountsRequest) ProtoMessage()

func (*ActiveDiscountsRequest) Reset

func (m *ActiveDiscountsRequest) Reset()

func (*ActiveDiscountsRequest) String

func (m *ActiveDiscountsRequest) String() string

func (*ActiveDiscountsRequest) XXX_DiscardUnknown

func (m *ActiveDiscountsRequest) XXX_DiscardUnknown()

func (*ActiveDiscountsRequest) XXX_Marshal

func (m *ActiveDiscountsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ActiveDiscountsRequest) XXX_Merge

func (m *ActiveDiscountsRequest) XXX_Merge(src proto.Message)

func (*ActiveDiscountsRequest) XXX_Size

func (m *ActiveDiscountsRequest) XXX_Size() int

func (*ActiveDiscountsRequest) XXX_Unmarshal

func (m *ActiveDiscountsRequest) XXX_Unmarshal(b []byte) error

type Card

type Card struct {
	Number               string   `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
	ExpMont              int32    `protobuf:"varint,2,opt,name=expMont,proto3" json:"expMont,omitempty"`
	ExpYear              int32    `protobuf:"varint,3,opt,name=expYear,proto3" json:"expYear,omitempty"`
	Cvc                  string   `protobuf:"bytes,4,opt,name=cvc,proto3" json:"cvc,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Card) Descriptor

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

func (*Card) GetCvc

func (m *Card) GetCvc() string

func (*Card) GetExpMont

func (m *Card) GetExpMont() int32

func (*Card) GetExpYear

func (m *Card) GetExpYear() int32

func (*Card) GetNumber

func (m *Card) GetNumber() string

func (*Card) ProtoMessage

func (*Card) ProtoMessage()

func (*Card) Reset

func (m *Card) Reset()

func (*Card) String

func (m *Card) String() string

func (*Card) XXX_DiscardUnknown

func (m *Card) XXX_DiscardUnknown()

func (*Card) XXX_Marshal

func (m *Card) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Card) XXX_Merge

func (m *Card) XXX_Merge(src proto.Message)

func (*Card) XXX_Size

func (m *Card) XXX_Size() int

func (*Card) XXX_Unmarshal

func (m *Card) XXX_Unmarshal(b []byte) error

type CardToken

type CardToken struct {
	Id                   string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type                 CardTokenType        `protobuf:"varint,2,opt,name=type,proto3,enum=CardTokenType" json:"type,omitempty"`
	Value                string               `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	Provider             Provider             `protobuf:"varint,6,opt,name=provider,proto3,enum=Provider" json:"provider,omitempty"`
	WithCard             *EncodedCardDetails  `protobuf:"bytes,4,opt,name=withCard,proto3" json:"withCard,omitempty"`
	CreatedAt            *timestamp.Timestamp `protobuf:"bytes,5,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*CardToken) Descriptor

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

func (*CardToken) GetCreatedAt

func (m *CardToken) GetCreatedAt() *timestamp.Timestamp

func (*CardToken) GetId

func (m *CardToken) GetId() string

func (*CardToken) GetProvider

func (m *CardToken) GetProvider() Provider

func (*CardToken) GetType

func (m *CardToken) GetType() CardTokenType

func (*CardToken) GetValue

func (m *CardToken) GetValue() string

func (*CardToken) GetWithCard

func (m *CardToken) GetWithCard() *EncodedCardDetails

func (*CardToken) ProtoMessage

func (*CardToken) ProtoMessage()

func (*CardToken) Reset

func (m *CardToken) Reset()

func (*CardToken) String

func (m *CardToken) String() string

func (*CardToken) XXX_DiscardUnknown

func (m *CardToken) XXX_DiscardUnknown()

func (*CardToken) XXX_Marshal

func (m *CardToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CardToken) XXX_Merge

func (m *CardToken) XXX_Merge(src proto.Message)

func (*CardToken) XXX_Size

func (m *CardToken) XXX_Size() int

func (*CardToken) XXX_Unmarshal

func (m *CardToken) XXX_Unmarshal(b []byte) error

type CardTokenByCustomer

type CardTokenByCustomer struct {
	Customer             *Customer `protobuf:"bytes,1,opt,name=customer,proto3" json:"customer,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*CardTokenByCustomer) Descriptor

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

func (*CardTokenByCustomer) GetCustomer

func (m *CardTokenByCustomer) GetCustomer() *Customer

func (*CardTokenByCustomer) ProtoMessage

func (*CardTokenByCustomer) ProtoMessage()

func (*CardTokenByCustomer) Reset

func (m *CardTokenByCustomer) Reset()

func (*CardTokenByCustomer) String

func (m *CardTokenByCustomer) String() string

func (*CardTokenByCustomer) XXX_DiscardUnknown

func (m *CardTokenByCustomer) XXX_DiscardUnknown()

func (*CardTokenByCustomer) XXX_Marshal

func (m *CardTokenByCustomer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CardTokenByCustomer) XXX_Merge

func (m *CardTokenByCustomer) XXX_Merge(src proto.Message)

func (*CardTokenByCustomer) XXX_Size

func (m *CardTokenByCustomer) XXX_Size() int

func (*CardTokenByCustomer) XXX_Unmarshal

func (m *CardTokenByCustomer) XXX_Unmarshal(b []byte) error

type CardTokenByID

type CardTokenByID struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CardTokenByID) Descriptor

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

func (*CardTokenByID) GetId

func (m *CardTokenByID) GetId() string

func (*CardTokenByID) ProtoMessage

func (*CardTokenByID) ProtoMessage()

func (*CardTokenByID) Reset

func (m *CardTokenByID) Reset()

func (*CardTokenByID) String

func (m *CardTokenByID) String() string

func (*CardTokenByID) XXX_DiscardUnknown

func (m *CardTokenByID) XXX_DiscardUnknown()

func (*CardTokenByID) XXX_Marshal

func (m *CardTokenByID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CardTokenByID) XXX_Merge

func (m *CardTokenByID) XXX_Merge(src proto.Message)

func (*CardTokenByID) XXX_Size

func (m *CardTokenByID) XXX_Size() int

func (*CardTokenByID) XXX_Unmarshal

func (m *CardTokenByID) XXX_Unmarshal(b []byte) error

type CardTokenType

type CardTokenType int32
const (
	CardTokenType_ONEUSE    CardTokenType = 0
	CardTokenType_RECURRENT CardTokenType = 1
)

func (CardTokenType) EnumDescriptor

func (CardTokenType) EnumDescriptor() ([]byte, []int)

func (CardTokenType) String

func (x CardTokenType) String() string

type ChargeSaleAutoRequest

type ChargeSaleAutoRequest struct {
	SaleID               string   `protobuf:"bytes,1,opt,name=saleID,proto3" json:"saleID,omitempty"`
	CardTokenID          string   `protobuf:"bytes,2,opt,name=cardTokenID,proto3" json:"cardTokenID,omitempty"`
	Details              string   `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ChargeSaleAutoRequest) Descriptor

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

func (*ChargeSaleAutoRequest) GetCardTokenID

func (m *ChargeSaleAutoRequest) GetCardTokenID() string

func (*ChargeSaleAutoRequest) GetDetails

func (m *ChargeSaleAutoRequest) GetDetails() string

func (*ChargeSaleAutoRequest) GetSaleID

func (m *ChargeSaleAutoRequest) GetSaleID() string

func (*ChargeSaleAutoRequest) ProtoMessage

func (*ChargeSaleAutoRequest) ProtoMessage()

func (*ChargeSaleAutoRequest) Reset

func (m *ChargeSaleAutoRequest) Reset()

func (*ChargeSaleAutoRequest) String

func (m *ChargeSaleAutoRequest) String() string

func (*ChargeSaleAutoRequest) XXX_DiscardUnknown

func (m *ChargeSaleAutoRequest) XXX_DiscardUnknown()

func (*ChargeSaleAutoRequest) XXX_Marshal

func (m *ChargeSaleAutoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChargeSaleAutoRequest) XXX_Merge

func (m *ChargeSaleAutoRequest) XXX_Merge(src proto.Message)

func (*ChargeSaleAutoRequest) XXX_Size

func (m *ChargeSaleAutoRequest) XXX_Size() int

func (*ChargeSaleAutoRequest) XXX_Unmarshal

func (m *ChargeSaleAutoRequest) XXX_Unmarshal(b []byte) error

type ChargeSaleRequest

type ChargeSaleRequest struct {
	Provider             Provider `protobuf:"varint,4,opt,name=provider,proto3,enum=Provider" json:"provider,omitempty"`
	SaleID               string   `protobuf:"bytes,1,opt,name=saleID,proto3" json:"saleID,omitempty"`
	CardTokenID          string   `protobuf:"bytes,2,opt,name=cardTokenID,proto3" json:"cardTokenID,omitempty"`
	Details              string   `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ChargeSaleRequest) Descriptor

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

func (*ChargeSaleRequest) GetCardTokenID

func (m *ChargeSaleRequest) GetCardTokenID() string

func (*ChargeSaleRequest) GetDetails

func (m *ChargeSaleRequest) GetDetails() string

func (*ChargeSaleRequest) GetProvider

func (m *ChargeSaleRequest) GetProvider() Provider

func (*ChargeSaleRequest) GetSaleID

func (m *ChargeSaleRequest) GetSaleID() string

func (*ChargeSaleRequest) ProtoMessage

func (*ChargeSaleRequest) ProtoMessage()

func (*ChargeSaleRequest) Reset

func (m *ChargeSaleRequest) Reset()

func (*ChargeSaleRequest) String

func (m *ChargeSaleRequest) String() string

func (*ChargeSaleRequest) XXX_DiscardUnknown

func (m *ChargeSaleRequest) XXX_DiscardUnknown()

func (*ChargeSaleRequest) XXX_Marshal

func (m *ChargeSaleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChargeSaleRequest) XXX_Merge

func (m *ChargeSaleRequest) XXX_Merge(src proto.Message)

func (*ChargeSaleRequest) XXX_Size

func (m *ChargeSaleRequest) XXX_Size() int

func (*ChargeSaleRequest) XXX_Unmarshal

func (m *ChargeSaleRequest) XXX_Unmarshal(b []byte) error

type ChargeToken

type ChargeToken struct {
	Id                   string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Value                string               `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Message              string               `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	Provider             Provider             `protobuf:"varint,6,opt,name=provider,proto3,enum=Provider" json:"provider,omitempty"`
	WithCardToken        *CardToken           `protobuf:"bytes,4,opt,name=withCardToken,proto3" json:"withCardToken,omitempty"`
	CreatedAt            *timestamp.Timestamp `protobuf:"bytes,5,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*ChargeToken) Descriptor

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

func (*ChargeToken) GetCreatedAt

func (m *ChargeToken) GetCreatedAt() *timestamp.Timestamp

func (*ChargeToken) GetId

func (m *ChargeToken) GetId() string

func (*ChargeToken) GetMessage

func (m *ChargeToken) GetMessage() string

func (*ChargeToken) GetProvider

func (m *ChargeToken) GetProvider() Provider

func (*ChargeToken) GetValue

func (m *ChargeToken) GetValue() string

func (*ChargeToken) GetWithCardToken

func (m *ChargeToken) GetWithCardToken() *CardToken

func (*ChargeToken) ProtoMessage

func (*ChargeToken) ProtoMessage()

func (*ChargeToken) Reset

func (m *ChargeToken) Reset()

func (*ChargeToken) String

func (m *ChargeToken) String() string

func (*ChargeToken) XXX_DiscardUnknown

func (m *ChargeToken) XXX_DiscardUnknown()

func (*ChargeToken) XXX_Marshal

func (m *ChargeToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChargeToken) XXX_Merge

func (m *ChargeToken) XXX_Merge(src proto.Message)

func (*ChargeToken) XXX_Size

func (m *ChargeToken) XXX_Size() int

func (*ChargeToken) XXX_Unmarshal

func (m *ChargeToken) XXX_Unmarshal(b []byte) error

type ChargeWithNativeToken

type ChargeWithNativeToken struct {
	Provider             Provider `protobuf:"varint,4,opt,name=provider,proto3,enum=Provider" json:"provider,omitempty"`
	SaleID               string   `protobuf:"bytes,1,opt,name=saleID,proto3" json:"saleID,omitempty"`
	NativeToken          string   `protobuf:"bytes,2,opt,name=nativeToken,proto3" json:"nativeToken,omitempty"`
	Details              string   `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ChargeWithNativeToken) Descriptor

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

func (*ChargeWithNativeToken) GetDetails

func (m *ChargeWithNativeToken) GetDetails() string

func (*ChargeWithNativeToken) GetNativeToken

func (m *ChargeWithNativeToken) GetNativeToken() string

func (*ChargeWithNativeToken) GetProvider

func (m *ChargeWithNativeToken) GetProvider() Provider

func (*ChargeWithNativeToken) GetSaleID

func (m *ChargeWithNativeToken) GetSaleID() string

func (*ChargeWithNativeToken) ProtoMessage

func (*ChargeWithNativeToken) ProtoMessage()

func (*ChargeWithNativeToken) Reset

func (m *ChargeWithNativeToken) Reset()

func (*ChargeWithNativeToken) String

func (m *ChargeWithNativeToken) String() string

func (*ChargeWithNativeToken) XXX_DiscardUnknown

func (m *ChargeWithNativeToken) XXX_DiscardUnknown()

func (*ChargeWithNativeToken) XXX_Marshal

func (m *ChargeWithNativeToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ChargeWithNativeToken) XXX_Merge

func (m *ChargeWithNativeToken) XXX_Merge(src proto.Message)

func (*ChargeWithNativeToken) XXX_Size

func (m *ChargeWithNativeToken) XXX_Size() int

func (*ChargeWithNativeToken) XXX_Unmarshal

func (m *ChargeWithNativeToken) XXX_Unmarshal(b []byte) error

type Cost

type Cost struct {
	Amount               float64  `protobuf:"fixed64,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Currency             string   `protobuf:"bytes,2,opt,name=currency,proto3" json:"currency,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Cost) Descriptor

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

func (*Cost) GetAmount

func (m *Cost) GetAmount() float64

func (*Cost) GetCurrency

func (m *Cost) GetCurrency() string

func (*Cost) ProtoMessage

func (*Cost) ProtoMessage()

func (*Cost) Reset

func (m *Cost) Reset()

func (*Cost) String

func (m *Cost) String() string

func (*Cost) XXX_DiscardUnknown

func (m *Cost) XXX_DiscardUnknown()

func (*Cost) XXX_Marshal

func (m *Cost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Cost) XXX_Merge

func (m *Cost) XXX_Merge(src proto.Message)

func (*Cost) XXX_Size

func (m *Cost) XXX_Size() int

func (*Cost) XXX_Unmarshal

func (m *Cost) XXX_Unmarshal(b []byte) error

type Customer

type Customer struct {
	Id                   string    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Email                string    `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Name                 string    `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Person               string    `protobuf:"bytes,6,opt,name=person,proto3" json:"person,omitempty"`
	Phone                string    `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`
	Location             *Location `protobuf:"bytes,5,opt,name=location,proto3" json:"location,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*Customer) Descriptor

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

func (*Customer) GetEmail

func (m *Customer) GetEmail() string

func (*Customer) GetId

func (m *Customer) GetId() string

func (*Customer) GetLocation

func (m *Customer) GetLocation() *Location

func (*Customer) GetName

func (m *Customer) GetName() string

func (*Customer) GetPerson

func (m *Customer) GetPerson() string

func (*Customer) GetPhone

func (m *Customer) GetPhone() string

func (*Customer) ProtoMessage

func (*Customer) ProtoMessage()

func (*Customer) Reset

func (m *Customer) Reset()

func (*Customer) String

func (m *Customer) String() string

func (*Customer) XXX_DiscardUnknown

func (m *Customer) XXX_DiscardUnknown()

func (*Customer) XXX_Marshal

func (m *Customer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Customer) XXX_Merge

func (m *Customer) XXX_Merge(src proto.Message)

func (*Customer) XXX_Size

func (m *Customer) XXX_Size() int

func (*Customer) XXX_Unmarshal

func (m *Customer) XXX_Unmarshal(b []byte) error

type DeliverChannelResponse

type DeliverChannelResponse struct {
	Message              string   `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Code                 string   `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DeliverChannelResponse) Descriptor

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

func (*DeliverChannelResponse) GetCode

func (m *DeliverChannelResponse) GetCode() string

func (*DeliverChannelResponse) GetMessage

func (m *DeliverChannelResponse) GetMessage() string

func (*DeliverChannelResponse) ProtoMessage

func (*DeliverChannelResponse) ProtoMessage()

func (*DeliverChannelResponse) Reset

func (m *DeliverChannelResponse) Reset()

func (*DeliverChannelResponse) String

func (m *DeliverChannelResponse) String() string

func (*DeliverChannelResponse) XXX_DiscardUnknown

func (m *DeliverChannelResponse) XXX_DiscardUnknown()

func (*DeliverChannelResponse) XXX_Marshal

func (m *DeliverChannelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeliverChannelResponse) XXX_Merge

func (m *DeliverChannelResponse) XXX_Merge(src proto.Message)

func (*DeliverChannelResponse) XXX_Size

func (m *DeliverChannelResponse) XXX_Size() int

func (*DeliverChannelResponse) XXX_Unmarshal

func (m *DeliverChannelResponse) XXX_Unmarshal(b []byte) error

type DeliverSaleRequest

type DeliverSaleRequest struct {
	SaleID               string            `protobuf:"bytes,1,opt,name=saleID,proto3" json:"saleID,omitempty"`
	ChannelName          string            `protobuf:"bytes,2,opt,name=channelName,proto3" json:"channelName,omitempty"`
	Metadata             map[string]string `` /* 157-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*DeliverSaleRequest) Descriptor

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

func (*DeliverSaleRequest) GetChannelName

func (m *DeliverSaleRequest) GetChannelName() string

func (*DeliverSaleRequest) GetMetadata

func (m *DeliverSaleRequest) GetMetadata() map[string]string

func (*DeliverSaleRequest) GetSaleID

func (m *DeliverSaleRequest) GetSaleID() string

func (*DeliverSaleRequest) ProtoMessage

func (*DeliverSaleRequest) ProtoMessage()

func (*DeliverSaleRequest) Reset

func (m *DeliverSaleRequest) Reset()

func (*DeliverSaleRequest) String

func (m *DeliverSaleRequest) String() string

func (*DeliverSaleRequest) XXX_DiscardUnknown

func (m *DeliverSaleRequest) XXX_DiscardUnknown()

func (*DeliverSaleRequest) XXX_Marshal

func (m *DeliverSaleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeliverSaleRequest) XXX_Merge

func (m *DeliverSaleRequest) XXX_Merge(src proto.Message)

func (*DeliverSaleRequest) XXX_Size

func (m *DeliverSaleRequest) XXX_Size() int

func (*DeliverSaleRequest) XXX_Unmarshal

func (m *DeliverSaleRequest) XXX_Unmarshal(b []byte) error

type Discount

type Discount struct {
	Type                 DiscountType `protobuf:"varint,1,opt,name=type,proto3,enum=DiscountType" json:"type,omitempty"`
	Percent              float64      `protobuf:"fixed64,2,opt,name=percent,proto3" json:"percent,omitempty"`
	Amount               float64      `protobuf:"fixed64,3,opt,name=amount,proto3" json:"amount,omitempty"`
	Currency             string       `protobuf:"bytes,4,opt,name=currency,proto3" json:"currency,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*Discount) Descriptor

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

func (*Discount) GetAmount

func (m *Discount) GetAmount() float64

func (*Discount) GetCurrency

func (m *Discount) GetCurrency() string

func (*Discount) GetPercent

func (m *Discount) GetPercent() float64

func (*Discount) GetType

func (m *Discount) GetType() DiscountType

func (*Discount) ProtoMessage

func (*Discount) ProtoMessage()

func (*Discount) Reset

func (m *Discount) Reset()

func (*Discount) String

func (m *Discount) String() string

func (*Discount) XXX_DiscardUnknown

func (m *Discount) XXX_DiscardUnknown()

func (*Discount) XXX_Marshal

func (m *Discount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Discount) XXX_Merge

func (m *Discount) XXX_Merge(src proto.Message)

func (*Discount) XXX_Size

func (m *Discount) XXX_Size() int

func (*Discount) XXX_Unmarshal

func (m *Discount) XXX_Unmarshal(b []byte) error

type DiscountCode

type DiscountCode struct {
	Id                   string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Start                *timestamp.Timestamp `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
	End                  *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
	MaxUses              int32                `protobuf:"varint,4,opt,name=maxUses,proto3" json:"maxUses,omitempty"`
	Uses                 []*DiscountUseRecord `protobuf:"bytes,5,rep,name=uses,proto3" json:"uses,omitempty"`
	Code                 string               `protobuf:"bytes,6,opt,name=code,proto3" json:"code,omitempty"`
	Value                *Discount            `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*DiscountCode) Descriptor

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

func (*DiscountCode) GetCode

func (m *DiscountCode) GetCode() string

func (*DiscountCode) GetEnd

func (m *DiscountCode) GetEnd() *timestamp.Timestamp

func (*DiscountCode) GetId

func (m *DiscountCode) GetId() string

func (*DiscountCode) GetMaxUses

func (m *DiscountCode) GetMaxUses() int32

func (*DiscountCode) GetStart

func (m *DiscountCode) GetStart() *timestamp.Timestamp

func (*DiscountCode) GetUses

func (m *DiscountCode) GetUses() []*DiscountUseRecord

func (*DiscountCode) GetValue

func (m *DiscountCode) GetValue() *Discount

func (*DiscountCode) ProtoMessage

func (*DiscountCode) ProtoMessage()

func (*DiscountCode) Reset

func (m *DiscountCode) Reset()

func (*DiscountCode) String

func (m *DiscountCode) String() string

func (*DiscountCode) XXX_DiscardUnknown

func (m *DiscountCode) XXX_DiscardUnknown()

func (*DiscountCode) XXX_Marshal

func (m *DiscountCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DiscountCode) XXX_Merge

func (m *DiscountCode) XXX_Merge(src proto.Message)

func (*DiscountCode) XXX_Size

func (m *DiscountCode) XXX_Size() int

func (*DiscountCode) XXX_Unmarshal

func (m *DiscountCode) XXX_Unmarshal(b []byte) error

type DiscountCodeExist

type DiscountCodeExist struct {
	Ok                   bool     `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DiscountCodeExist) Descriptor

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

func (*DiscountCodeExist) GetOk

func (m *DiscountCodeExist) GetOk() bool

func (*DiscountCodeExist) ProtoMessage

func (*DiscountCodeExist) ProtoMessage()

func (*DiscountCodeExist) Reset

func (m *DiscountCodeExist) Reset()

func (*DiscountCodeExist) String

func (m *DiscountCodeExist) String() string

func (*DiscountCodeExist) XXX_DiscardUnknown

func (m *DiscountCodeExist) XXX_DiscardUnknown()

func (*DiscountCodeExist) XXX_Marshal

func (m *DiscountCodeExist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DiscountCodeExist) XXX_Merge

func (m *DiscountCodeExist) XXX_Merge(src proto.Message)

func (*DiscountCodeExist) XXX_Size

func (m *DiscountCodeExist) XXX_Size() int

func (*DiscountCodeExist) XXX_Unmarshal

func (m *DiscountCodeExist) XXX_Unmarshal(b []byte) error

type DiscountCodeID

type DiscountCodeID struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DiscountCodeID) Descriptor

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

func (*DiscountCodeID) GetId

func (m *DiscountCodeID) GetId() string

func (*DiscountCodeID) ProtoMessage

func (*DiscountCodeID) ProtoMessage()

func (*DiscountCodeID) Reset

func (m *DiscountCodeID) Reset()

func (*DiscountCodeID) String

func (m *DiscountCodeID) String() string

func (*DiscountCodeID) XXX_DiscardUnknown

func (m *DiscountCodeID) XXX_DiscardUnknown()

func (*DiscountCodeID) XXX_Marshal

func (m *DiscountCodeID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DiscountCodeID) XXX_Merge

func (m *DiscountCodeID) XXX_Merge(src proto.Message)

func (*DiscountCodeID) XXX_Size

func (m *DiscountCodeID) XXX_Size() int

func (*DiscountCodeID) XXX_Unmarshal

func (m *DiscountCodeID) XXX_Unmarshal(b []byte) error

type DiscountCodeRequest

type DiscountCodeRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DiscountCodeRequest) Descriptor

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

func (*DiscountCodeRequest) ProtoMessage

func (*DiscountCodeRequest) ProtoMessage()

func (*DiscountCodeRequest) Reset

func (m *DiscountCodeRequest) Reset()

func (*DiscountCodeRequest) String

func (m *DiscountCodeRequest) String() string

func (*DiscountCodeRequest) XXX_DiscardUnknown

func (m *DiscountCodeRequest) XXX_DiscardUnknown()

func (*DiscountCodeRequest) XXX_Marshal

func (m *DiscountCodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DiscountCodeRequest) XXX_Merge

func (m *DiscountCodeRequest) XXX_Merge(src proto.Message)

func (*DiscountCodeRequest) XXX_Size

func (m *DiscountCodeRequest) XXX_Size() int

func (*DiscountCodeRequest) XXX_Unmarshal

func (m *DiscountCodeRequest) XXX_Unmarshal(b []byte) error

type DiscountCodeValue

type DiscountCodeValue struct {
	Value                string   `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	CustomerID           string   `protobuf:"bytes,2,opt,name=customerID,proto3" json:"customerID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DiscountCodeValue) Descriptor

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

func (*DiscountCodeValue) GetCustomerID

func (m *DiscountCodeValue) GetCustomerID() string

func (*DiscountCodeValue) GetValue

func (m *DiscountCodeValue) GetValue() string

func (*DiscountCodeValue) ProtoMessage

func (*DiscountCodeValue) ProtoMessage()

func (*DiscountCodeValue) Reset

func (m *DiscountCodeValue) Reset()

func (*DiscountCodeValue) String

func (m *DiscountCodeValue) String() string

func (*DiscountCodeValue) XXX_DiscardUnknown

func (m *DiscountCodeValue) XXX_DiscardUnknown()

func (*DiscountCodeValue) XXX_Marshal

func (m *DiscountCodeValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DiscountCodeValue) XXX_Merge

func (m *DiscountCodeValue) XXX_Merge(src proto.Message)

func (*DiscountCodeValue) XXX_Size

func (m *DiscountCodeValue) XXX_Size() int

func (*DiscountCodeValue) XXX_Unmarshal

func (m *DiscountCodeValue) XXX_Unmarshal(b []byte) error

type DiscountCodes

type DiscountCodes struct {
	Discounts            []*DiscountCode `protobuf:"bytes,1,rep,name=discounts,proto3" json:"discounts,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

func (*DiscountCodes) Descriptor

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

func (*DiscountCodes) GetDiscounts

func (m *DiscountCodes) GetDiscounts() []*DiscountCode

func (*DiscountCodes) ProtoMessage

func (*DiscountCodes) ProtoMessage()

func (*DiscountCodes) Reset

func (m *DiscountCodes) Reset()

func (*DiscountCodes) String

func (m *DiscountCodes) String() string

func (*DiscountCodes) XXX_DiscardUnknown

func (m *DiscountCodes) XXX_DiscardUnknown()

func (*DiscountCodes) XXX_Marshal

func (m *DiscountCodes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DiscountCodes) XXX_Merge

func (m *DiscountCodes) XXX_Merge(src proto.Message)

func (*DiscountCodes) XXX_Size

func (m *DiscountCodes) XXX_Size() int

func (*DiscountCodes) XXX_Unmarshal

func (m *DiscountCodes) XXX_Unmarshal(b []byte) error

type DiscountType

type DiscountType int32
const (
	DiscountType_STATIC  DiscountType = 0
	DiscountType_PERCENT DiscountType = 1
)

func (DiscountType) EnumDescriptor

func (DiscountType) EnumDescriptor() ([]byte, []int)

func (DiscountType) String

func (x DiscountType) String() string

type DiscountUseRecord

type DiscountUseRecord struct {
	At                   *timestamp.Timestamp `protobuf:"bytes,1,opt,name=at,proto3" json:"at,omitempty"`
	By                   *Customer            `protobuf:"bytes,2,opt,name=by,proto3" json:"by,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*DiscountUseRecord) Descriptor

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

func (*DiscountUseRecord) GetAt

func (*DiscountUseRecord) GetBy

func (m *DiscountUseRecord) GetBy() *Customer

func (*DiscountUseRecord) ProtoMessage

func (*DiscountUseRecord) ProtoMessage()

func (*DiscountUseRecord) Reset

func (m *DiscountUseRecord) Reset()

func (*DiscountUseRecord) String

func (m *DiscountUseRecord) String() string

func (*DiscountUseRecord) XXX_DiscardUnknown

func (m *DiscountUseRecord) XXX_DiscardUnknown()

func (*DiscountUseRecord) XXX_Marshal

func (m *DiscountUseRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DiscountUseRecord) XXX_Merge

func (m *DiscountUseRecord) XXX_Merge(src proto.Message)

func (*DiscountUseRecord) XXX_Size

func (m *DiscountUseRecord) XXX_Size() int

func (*DiscountUseRecord) XXX_Unmarshal

func (m *DiscountUseRecord) XXX_Unmarshal(b []byte) error

type EncodedCardDetails

type EncodedCardDetails struct {
	Number               string    `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
	ExpirationYear       int32     `protobuf:"varint,2,opt,name=expirationYear,proto3" json:"expirationYear,omitempty"`
	Customer             *Customer `protobuf:"bytes,3,opt,name=customer,proto3" json:"customer,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*EncodedCardDetails) Descriptor

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

func (*EncodedCardDetails) GetCustomer

func (m *EncodedCardDetails) GetCustomer() *Customer

func (*EncodedCardDetails) GetExpirationYear

func (m *EncodedCardDetails) GetExpirationYear() int32

func (*EncodedCardDetails) GetNumber

func (m *EncodedCardDetails) GetNumber() string

func (*EncodedCardDetails) ProtoMessage

func (*EncodedCardDetails) ProtoMessage()

func (*EncodedCardDetails) Reset

func (m *EncodedCardDetails) Reset()

func (*EncodedCardDetails) String

func (m *EncodedCardDetails) String() string

func (*EncodedCardDetails) XXX_DiscardUnknown

func (m *EncodedCardDetails) XXX_DiscardUnknown()

func (*EncodedCardDetails) XXX_Marshal

func (m *EncodedCardDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EncodedCardDetails) XXX_Merge

func (m *EncodedCardDetails) XXX_Merge(src proto.Message)

func (*EncodedCardDetails) XXX_Size

func (m *EncodedCardDetails) XXX_Size() int

func (*EncodedCardDetails) XXX_Unmarshal

func (m *EncodedCardDetails) XXX_Unmarshal(b []byte) error

type FastSale

type FastSale struct {
	CustomerEmail        string     `protobuf:"bytes,1,opt,name=customerEmail,proto3" json:"customerEmail,omitempty"`
	Products             []*Product `protobuf:"bytes,2,rep,name=products,proto3" json:"products,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*FastSale) Descriptor

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

func (*FastSale) GetCustomerEmail

func (m *FastSale) GetCustomerEmail() string

func (*FastSale) GetProducts

func (m *FastSale) GetProducts() []*Product

func (*FastSale) ProtoMessage

func (*FastSale) ProtoMessage()

func (*FastSale) Reset

func (m *FastSale) Reset()

func (*FastSale) String

func (m *FastSale) String() string

func (*FastSale) XXX_DiscardUnknown

func (m *FastSale) XXX_DiscardUnknown()

func (*FastSale) XXX_Marshal

func (m *FastSale) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FastSale) XXX_Merge

func (m *FastSale) XXX_Merge(src proto.Message)

func (*FastSale) XXX_Size

func (m *FastSale) XXX_Size() int

func (*FastSale) XXX_Unmarshal

func (m *FastSale) XXX_Unmarshal(b []byte) error

type Location

type Location struct {
	Address              string   `protobuf:"bytes,1,opt,name=address,proto3" json:"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"`
	Zip                  string   `protobuf:"bytes,4,opt,name=zip,proto3" json:"zip,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Location) Descriptor

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

func (*Location) GetAddress

func (m *Location) GetAddress() string

func (*Location) GetCity

func (m *Location) GetCity() string

func (*Location) GetState

func (m *Location) GetState() string

func (*Location) GetZip

func (m *Location) GetZip() string

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) Reset

func (m *Location) Reset()

func (*Location) String

func (m *Location) String() string

func (*Location) XXX_DiscardUnknown

func (m *Location) XXX_DiscardUnknown()

func (*Location) XXX_Marshal

func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Location) XXX_Merge

func (m *Location) XXX_Merge(src proto.Message)

func (*Location) XXX_Size

func (m *Location) XXX_Size() int

func (*Location) XXX_Unmarshal

func (m *Location) XXX_Unmarshal(b []byte) error

type NewCardTokenAutoRequest

type NewCardTokenAutoRequest struct {
	Card                 *Card         `protobuf:"bytes,1,opt,name=card,proto3" json:"card,omitempty"`
	Customer             *Customer     `protobuf:"bytes,2,opt,name=customer,proto3" json:"customer,omitempty"`
	Type                 CardTokenType `protobuf:"varint,3,opt,name=type,proto3,enum=CardTokenType" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*NewCardTokenAutoRequest) Descriptor

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

func (*NewCardTokenAutoRequest) GetCard

func (m *NewCardTokenAutoRequest) GetCard() *Card

func (*NewCardTokenAutoRequest) GetCustomer

func (m *NewCardTokenAutoRequest) GetCustomer() *Customer

func (*NewCardTokenAutoRequest) GetType

func (*NewCardTokenAutoRequest) ProtoMessage

func (*NewCardTokenAutoRequest) ProtoMessage()

func (*NewCardTokenAutoRequest) Reset

func (m *NewCardTokenAutoRequest) Reset()

func (*NewCardTokenAutoRequest) String

func (m *NewCardTokenAutoRequest) String() string

func (*NewCardTokenAutoRequest) XXX_DiscardUnknown

func (m *NewCardTokenAutoRequest) XXX_DiscardUnknown()

func (*NewCardTokenAutoRequest) XXX_Marshal

func (m *NewCardTokenAutoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NewCardTokenAutoRequest) XXX_Merge

func (m *NewCardTokenAutoRequest) XXX_Merge(src proto.Message)

func (*NewCardTokenAutoRequest) XXX_Size

func (m *NewCardTokenAutoRequest) XXX_Size() int

func (*NewCardTokenAutoRequest) XXX_Unmarshal

func (m *NewCardTokenAutoRequest) XXX_Unmarshal(b []byte) error

type NewCardTokenNativeRequest

type NewCardTokenNativeRequest struct {
	Provider             Provider      `protobuf:"varint,4,opt,name=provider,proto3,enum=Provider" json:"provider,omitempty"`
	Token                string        `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Customer             *Customer     `protobuf:"bytes,2,opt,name=customer,proto3" json:"customer,omitempty"`
	Type                 CardTokenType `protobuf:"varint,3,opt,name=type,proto3,enum=CardTokenType" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*NewCardTokenNativeRequest) Descriptor

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

func (*NewCardTokenNativeRequest) GetCustomer

func (m *NewCardTokenNativeRequest) GetCustomer() *Customer

func (*NewCardTokenNativeRequest) GetProvider

func (m *NewCardTokenNativeRequest) GetProvider() Provider

func (*NewCardTokenNativeRequest) GetToken

func (m *NewCardTokenNativeRequest) GetToken() string

func (*NewCardTokenNativeRequest) GetType

func (*NewCardTokenNativeRequest) ProtoMessage

func (*NewCardTokenNativeRequest) ProtoMessage()

func (*NewCardTokenNativeRequest) Reset

func (m *NewCardTokenNativeRequest) Reset()

func (*NewCardTokenNativeRequest) String

func (m *NewCardTokenNativeRequest) String() string

func (*NewCardTokenNativeRequest) XXX_DiscardUnknown

func (m *NewCardTokenNativeRequest) XXX_DiscardUnknown()

func (*NewCardTokenNativeRequest) XXX_Marshal

func (m *NewCardTokenNativeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NewCardTokenNativeRequest) XXX_Merge

func (m *NewCardTokenNativeRequest) XXX_Merge(src proto.Message)

func (*NewCardTokenNativeRequest) XXX_Size

func (m *NewCardTokenNativeRequest) XXX_Size() int

func (*NewCardTokenNativeRequest) XXX_Unmarshal

func (m *NewCardTokenNativeRequest) XXX_Unmarshal(b []byte) error

type NewCardTokenRequest

type NewCardTokenRequest struct {
	Provider             Provider      `protobuf:"varint,4,opt,name=provider,proto3,enum=Provider" json:"provider,omitempty"`
	Card                 *Card         `protobuf:"bytes,1,opt,name=card,proto3" json:"card,omitempty"`
	Customer             *Customer     `protobuf:"bytes,2,opt,name=customer,proto3" json:"customer,omitempty"`
	Type                 CardTokenType `protobuf:"varint,3,opt,name=type,proto3,enum=CardTokenType" json:"type,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*NewCardTokenRequest) Descriptor

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

func (*NewCardTokenRequest) GetCard

func (m *NewCardTokenRequest) GetCard() *Card

func (*NewCardTokenRequest) GetCustomer

func (m *NewCardTokenRequest) GetCustomer() *Customer

func (*NewCardTokenRequest) GetProvider

func (m *NewCardTokenRequest) GetProvider() Provider

func (*NewCardTokenRequest) GetType

func (m *NewCardTokenRequest) GetType() CardTokenType

func (*NewCardTokenRequest) ProtoMessage

func (*NewCardTokenRequest) ProtoMessage()

func (*NewCardTokenRequest) Reset

func (m *NewCardTokenRequest) Reset()

func (*NewCardTokenRequest) String

func (m *NewCardTokenRequest) String() string

func (*NewCardTokenRequest) XXX_DiscardUnknown

func (m *NewCardTokenRequest) XXX_DiscardUnknown()

func (*NewCardTokenRequest) XXX_Marshal

func (m *NewCardTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NewCardTokenRequest) XXX_Merge

func (m *NewCardTokenRequest) XXX_Merge(src proto.Message)

func (*NewCardTokenRequest) XXX_Size

func (m *NewCardTokenRequest) XXX_Size() int

func (*NewCardTokenRequest) XXX_Unmarshal

func (m *NewCardTokenRequest) XXX_Unmarshal(b []byte) error

type NewSaleRequest

type NewSaleRequest struct {
	Customer             *Customer  `protobuf:"bytes,1,opt,name=customer,proto3" json:"customer,omitempty"`
	Products             []*Product `protobuf:"bytes,2,rep,name=products,proto3" json:"products,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*NewSaleRequest) Descriptor

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

func (*NewSaleRequest) GetCustomer

func (m *NewSaleRequest) GetCustomer() *Customer

func (*NewSaleRequest) GetProducts

func (m *NewSaleRequest) GetProducts() []*Product

func (*NewSaleRequest) ProtoMessage

func (*NewSaleRequest) ProtoMessage()

func (*NewSaleRequest) Reset

func (m *NewSaleRequest) Reset()

func (*NewSaleRequest) String

func (m *NewSaleRequest) String() string

func (*NewSaleRequest) XXX_DiscardUnknown

func (m *NewSaleRequest) XXX_DiscardUnknown()

func (*NewSaleRequest) XXX_Marshal

func (m *NewSaleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NewSaleRequest) XXX_Merge

func (m *NewSaleRequest) XXX_Merge(src proto.Message)

func (*NewSaleRequest) XXX_Size

func (m *NewSaleRequest) XXX_Size() int

func (*NewSaleRequest) XXX_Unmarshal

func (m *NewSaleRequest) XXX_Unmarshal(b []byte) error

type PlutusClient

type PlutusClient interface {
	NewCardToken(ctx context.Context, in *NewCardTokenRequest, opts ...grpc.CallOption) (*CardToken, error)
	NewCardTokenAuto(ctx context.Context, in *NewCardTokenAutoRequest, opts ...grpc.CallOption) (*CardToken, error)
	NewCardTokenFromNative(ctx context.Context, in *NewCardTokenNativeRequest, opts ...grpc.CallOption) (*CardToken, error)
	GetCardTokenOfCustomerByID(ctx context.Context, in *CardTokenByID, opts ...grpc.CallOption) (*CardToken, error)
	DeleteCardToken(ctx context.Context, in *CardTokenByID, opts ...grpc.CallOption) (*CardToken, error)
	NewFastSale(ctx context.Context, in *FastSale, opts ...grpc.CallOption) (*Sale, error)
	NewSale(ctx context.Context, in *NewSaleRequest, opts ...grpc.CallOption) (*Sale, error)
	GetSale(ctx context.Context, in *SaleIDRequest, opts ...grpc.CallOption) (*Sale, error)
	GetSales(ctx context.Context, in *SalesFilterRequest, opts ...grpc.CallOption) (*Sales, error)
	UpdateSale(ctx context.Context, in *SaleUpdateRequest, opts ...grpc.CallOption) (*Sale, error)
	DeliverSale(ctx context.Context, in *DeliverSaleRequest, opts ...grpc.CallOption) (*DeliverChannelResponse, error)
	ChargeSale(ctx context.Context, in *ChargeSaleRequest, opts ...grpc.CallOption) (*ChargeToken, error)
	ChargeSaleAuto(ctx context.Context, in *ChargeSaleAutoRequest, opts ...grpc.CallOption) (*ChargeToken, error)
	ChargeSaleWithNativeToken(ctx context.Context, in *ChargeWithNativeToken, opts ...grpc.CallOption) (*ChargeToken, error)
	DoneSale(ctx context.Context, in *SaleIDRequest, opts ...grpc.CallOption) (*Sale, error)
	CreateDiscountCode(ctx context.Context, in *DiscountCodeRequest, opts ...grpc.CallOption) (*DiscountCode, error)
	GetDiscountCode(ctx context.Context, in *DiscountCodeID, opts ...grpc.CallOption) (*DiscountCode, error)
	ValidateDiscountCode(ctx context.Context, in *DiscountCodeValue, opts ...grpc.CallOption) (*DiscountCodeExist, error)
	GetActiveDiscountCodes(ctx context.Context, in *ActiveDiscountsRequest, opts ...grpc.CallOption) (*DiscountCodes, error)
	DeleteDiscountCode(ctx context.Context, in *DiscountCodeID, opts ...grpc.CallOption) (*DiscountCodes, error)
}

PlutusClient is the client API for Plutus service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewPlutusClient

func NewPlutusClient(cc *grpc.ClientConn) PlutusClient

type PlutusServer

PlutusServer is the server API for Plutus service.

type Product

type Product struct {
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Details              string   `protobuf:"bytes,2,opt,name=details,proto3" json:"details,omitempty"`
	Cost                 *Cost    `protobuf:"bytes,3,opt,name=cost,proto3" json:"cost,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Product) Descriptor

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

func (*Product) GetCost

func (m *Product) GetCost() *Cost

func (*Product) GetDetails

func (m *Product) GetDetails() string

func (*Product) GetName

func (m *Product) GetName() string

func (*Product) ProtoMessage

func (*Product) ProtoMessage()

func (*Product) Reset

func (m *Product) Reset()

func (*Product) String

func (m *Product) String() string

func (*Product) XXX_DiscardUnknown

func (m *Product) XXX_DiscardUnknown()

func (*Product) XXX_Marshal

func (m *Product) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Product) XXX_Merge

func (m *Product) XXX_Merge(src proto.Message)

func (*Product) XXX_Size

func (m *Product) XXX_Size() int

func (*Product) XXX_Unmarshal

func (m *Product) XXX_Unmarshal(b []byte) error

type Provider

type Provider int32
const (
	Provider_CULQI   Provider = 0
	Provider_PAYPAL  Provider = 1
	Provider_VISANET Provider = 2
	Provider_STRIPE  Provider = 3
	Provider_DUMMY   Provider = 4
)

func (Provider) EnumDescriptor

func (Provider) EnumDescriptor() ([]byte, []int)

func (Provider) String

func (x Provider) String() string

type Sale

type Sale struct {
	Id                   string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	CreatedAt            *timestamp.Timestamp `protobuf:"bytes,2,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	UpdatedAt            *timestamp.Timestamp `protobuf:"bytes,3,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"`
	State                SaleState            `protobuf:"varint,4,opt,name=state,proto3,enum=SaleState" json:"state,omitempty"`
	Customer             *Customer            `protobuf:"bytes,5,opt,name=customer,proto3" json:"customer,omitempty"`
	Products             []*Product           `protobuf:"bytes,6,rep,name=products,proto3" json:"products,omitempty"`
	DiscountCodes        []*DiscountCode      `protobuf:"bytes,7,rep,name=discountCodes,proto3" json:"discountCodes,omitempty"`
	CardToken            *CardToken           `protobuf:"bytes,8,opt,name=cardToken,proto3" json:"cardToken,omitempty"`
	Charge               *ChargeToken         `protobuf:"bytes,9,opt,name=charge,proto3" json:"charge,omitempty"`
	CurrencyToPay        string               `protobuf:"bytes,10,opt,name=currencyToPay,proto3" json:"currencyToPay,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Sale) Descriptor

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

func (*Sale) GetCardToken

func (m *Sale) GetCardToken() *CardToken

func (*Sale) GetCharge

func (m *Sale) GetCharge() *ChargeToken

func (*Sale) GetCreatedAt

func (m *Sale) GetCreatedAt() *timestamp.Timestamp

func (*Sale) GetCurrencyToPay

func (m *Sale) GetCurrencyToPay() string

func (*Sale) GetCustomer

func (m *Sale) GetCustomer() *Customer

func (*Sale) GetDiscountCodes

func (m *Sale) GetDiscountCodes() []*DiscountCode

func (*Sale) GetId

func (m *Sale) GetId() string

func (*Sale) GetProducts

func (m *Sale) GetProducts() []*Product

func (*Sale) GetState

func (m *Sale) GetState() SaleState

func (*Sale) GetUpdatedAt

func (m *Sale) GetUpdatedAt() *timestamp.Timestamp

func (*Sale) ProtoMessage

func (*Sale) ProtoMessage()

func (*Sale) Reset

func (m *Sale) Reset()

func (*Sale) String

func (m *Sale) String() string

func (*Sale) XXX_DiscardUnknown

func (m *Sale) XXX_DiscardUnknown()

func (*Sale) XXX_Marshal

func (m *Sale) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Sale) XXX_Merge

func (m *Sale) XXX_Merge(src proto.Message)

func (*Sale) XXX_Size

func (m *Sale) XXX_Size() int

func (*Sale) XXX_Unmarshal

func (m *Sale) XXX_Unmarshal(b []byte) error

type SaleIDRequest

type SaleIDRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SaleIDRequest) Descriptor

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

func (*SaleIDRequest) GetId

func (m *SaleIDRequest) GetId() string

func (*SaleIDRequest) ProtoMessage

func (*SaleIDRequest) ProtoMessage()

func (*SaleIDRequest) Reset

func (m *SaleIDRequest) Reset()

func (*SaleIDRequest) String

func (m *SaleIDRequest) String() string

func (*SaleIDRequest) XXX_DiscardUnknown

func (m *SaleIDRequest) XXX_DiscardUnknown()

func (*SaleIDRequest) XXX_Marshal

func (m *SaleIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SaleIDRequest) XXX_Merge

func (m *SaleIDRequest) XXX_Merge(src proto.Message)

func (*SaleIDRequest) XXX_Size

func (m *SaleIDRequest) XXX_Size() int

func (*SaleIDRequest) XXX_Unmarshal

func (m *SaleIDRequest) XXX_Unmarshal(b []byte) error

type SaleState

type SaleState int32
const (
	SaleState_NULL    SaleState = 0
	SaleState_DRAFT   SaleState = 1
	SaleState_SIGNED  SaleState = 2
	SaleState_PAIDOUT SaleState = 3
	SaleState_DONE    SaleState = 4
)

func (SaleState) EnumDescriptor

func (SaleState) EnumDescriptor() ([]byte, []int)

func (SaleState) String

func (x SaleState) String() string

type SaleUpdateRequest

type SaleUpdateRequest struct {
	Id                   string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	UpdateData           *Sale    `protobuf:"bytes,2,opt,name=updateData,proto3" json:"updateData,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SaleUpdateRequest) Descriptor

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

func (*SaleUpdateRequest) GetId

func (m *SaleUpdateRequest) GetId() string

func (*SaleUpdateRequest) GetUpdateData

func (m *SaleUpdateRequest) GetUpdateData() *Sale

func (*SaleUpdateRequest) ProtoMessage

func (*SaleUpdateRequest) ProtoMessage()

func (*SaleUpdateRequest) Reset

func (m *SaleUpdateRequest) Reset()

func (*SaleUpdateRequest) String

func (m *SaleUpdateRequest) String() string

func (*SaleUpdateRequest) XXX_DiscardUnknown

func (m *SaleUpdateRequest) XXX_DiscardUnknown()

func (*SaleUpdateRequest) XXX_Marshal

func (m *SaleUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SaleUpdateRequest) XXX_Merge

func (m *SaleUpdateRequest) XXX_Merge(src proto.Message)

func (*SaleUpdateRequest) XXX_Size

func (m *SaleUpdateRequest) XXX_Size() int

func (*SaleUpdateRequest) XXX_Unmarshal

func (m *SaleUpdateRequest) XXX_Unmarshal(b []byte) error

type Sales

type Sales struct {
	Sales                []*Sale  `protobuf:"bytes,1,rep,name=sales,proto3" json:"sales,omitempty"`
	Total                int32    `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	Page                 int32    `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
	Next                 int32    `protobuf:"varint,4,opt,name=next,proto3" json:"next,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Sales) Descriptor

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

func (*Sales) GetNext

func (m *Sales) GetNext() int32

func (*Sales) GetPage

func (m *Sales) GetPage() int32

func (*Sales) GetSales

func (m *Sales) GetSales() []*Sale

func (*Sales) GetTotal

func (m *Sales) GetTotal() int32

func (*Sales) ProtoMessage

func (*Sales) ProtoMessage()

func (*Sales) Reset

func (m *Sales) Reset()

func (*Sales) String

func (m *Sales) String() string

func (*Sales) XXX_DiscardUnknown

func (m *Sales) XXX_DiscardUnknown()

func (*Sales) XXX_Marshal

func (m *Sales) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Sales) XXX_Merge

func (m *Sales) XXX_Merge(src proto.Message)

func (*Sales) XXX_Size

func (m *Sales) XXX_Size() int

func (*Sales) XXX_Unmarshal

func (m *Sales) XXX_Unmarshal(b []byte) error

type SalesFilterRequest

type SalesFilterRequest struct {
	Page                 int32                `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"`
	ItemsPerPage         int32                `protobuf:"varint,3,opt,name=itemsPerPage,proto3" json:"itemsPerPage,omitempty"`
	From                 *timestamp.Timestamp `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	To                   *timestamp.Timestamp `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	ByCardTokenID        string               `protobuf:"bytes,6,opt,name=byCardTokenID,proto3" json:"byCardTokenID,omitempty"`
	ByChargeTokenID      string               `protobuf:"bytes,7,opt,name=byChargeTokenID,proto3" json:"byChargeTokenID,omitempty"`
	ByStates             []SaleState          `protobuf:"varint,5,rep,packed,name=byStates,proto3,enum=SaleState" json:"byStates,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*SalesFilterRequest) Descriptor

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

func (*SalesFilterRequest) GetByCardTokenID

func (m *SalesFilterRequest) GetByCardTokenID() string

func (*SalesFilterRequest) GetByChargeTokenID

func (m *SalesFilterRequest) GetByChargeTokenID() string

func (*SalesFilterRequest) GetByStates

func (m *SalesFilterRequest) GetByStates() []SaleState

func (*SalesFilterRequest) GetFrom

func (m *SalesFilterRequest) GetFrom() *timestamp.Timestamp

func (*SalesFilterRequest) GetItemsPerPage

func (m *SalesFilterRequest) GetItemsPerPage() int32

func (*SalesFilterRequest) GetPage

func (m *SalesFilterRequest) GetPage() int32

func (*SalesFilterRequest) GetTo

func (*SalesFilterRequest) ProtoMessage

func (*SalesFilterRequest) ProtoMessage()

func (*SalesFilterRequest) Reset

func (m *SalesFilterRequest) Reset()

func (*SalesFilterRequest) String

func (m *SalesFilterRequest) String() string

func (*SalesFilterRequest) XXX_DiscardUnknown

func (m *SalesFilterRequest) XXX_DiscardUnknown()

func (*SalesFilterRequest) XXX_Marshal

func (m *SalesFilterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SalesFilterRequest) XXX_Merge

func (m *SalesFilterRequest) XXX_Merge(src proto.Message)

func (*SalesFilterRequest) XXX_Size

func (m *SalesFilterRequest) XXX_Size() int

func (*SalesFilterRequest) XXX_Unmarshal

func (m *SalesFilterRequest) XXX_Unmarshal(b []byte) error

type UnimplementedPlutusServer

type UnimplementedPlutusServer struct {
}

UnimplementedPlutusServer can be embedded to have forward compatible implementations.

func (*UnimplementedPlutusServer) ChargeSale

func (*UnimplementedPlutusServer) ChargeSaleAuto

func (*UnimplementedPlutusServer) ChargeSaleWithNativeToken

func (*UnimplementedPlutusServer) ChargeSaleWithNativeToken(ctx context.Context, req *ChargeWithNativeToken) (*ChargeToken, error)

func (*UnimplementedPlutusServer) CreateDiscountCode

func (*UnimplementedPlutusServer) DeleteCardToken

func (*UnimplementedPlutusServer) DeleteCardToken(ctx context.Context, req *CardTokenByID) (*CardToken, error)

func (*UnimplementedPlutusServer) DeleteDiscountCode

func (*UnimplementedPlutusServer) DeleteDiscountCode(ctx context.Context, req *DiscountCodeID) (*DiscountCodes, error)

func (*UnimplementedPlutusServer) DeliverSale

func (*UnimplementedPlutusServer) DoneSale

func (*UnimplementedPlutusServer) GetActiveDiscountCodes

func (*UnimplementedPlutusServer) GetActiveDiscountCodes(ctx context.Context, req *ActiveDiscountsRequest) (*DiscountCodes, error)

func (*UnimplementedPlutusServer) GetCardTokenOfCustomerByID

func (*UnimplementedPlutusServer) GetCardTokenOfCustomerByID(ctx context.Context, req *CardTokenByID) (*CardToken, error)

func (*UnimplementedPlutusServer) GetDiscountCode

func (*UnimplementedPlutusServer) GetSale

func (*UnimplementedPlutusServer) GetSales

func (*UnimplementedPlutusServer) NewCardToken

func (*UnimplementedPlutusServer) NewCardTokenAuto

func (*UnimplementedPlutusServer) NewCardTokenFromNative

func (*UnimplementedPlutusServer) NewCardTokenFromNative(ctx context.Context, req *NewCardTokenNativeRequest) (*CardToken, error)

func (*UnimplementedPlutusServer) NewFastSale

func (*UnimplementedPlutusServer) NewFastSale(ctx context.Context, req *FastSale) (*Sale, error)

func (*UnimplementedPlutusServer) NewSale

func (*UnimplementedPlutusServer) UpdateSale

func (*UnimplementedPlutusServer) ValidateDiscountCode

Jump to

Keyboard shortcuts

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