Documentation ¶
Index ¶
- Constants
- Variables
- type ChargeFailed
- func (*ChargeFailed) Descriptor() ([]byte, []int)deprecated
- func (x *ChargeFailed) GetAmount() int64
- func (x *ChargeFailed) GetChargeId() string
- func (x *ChargeFailed) GetCurrency() string
- func (x *ChargeFailed) GetCustomerId() string
- func (x *ChargeFailed) GetError() string
- func (*ChargeFailed) ProtoMessage()
- func (x *ChargeFailed) ProtoReflect() protoreflect.Message
- func (x *ChargeFailed) Reset()
- func (x *ChargeFailed) String() string
- type ChargeSuceeded
- func (*ChargeSuceeded) Descriptor() ([]byte, []int)deprecated
- func (x *ChargeSuceeded) GetAmount() int64
- func (x *ChargeSuceeded) GetChargeId() string
- func (x *ChargeSuceeded) GetCurrency() string
- func (x *ChargeSuceeded) GetCustomerId() string
- func (x *ChargeSuceeded) GetError() string
- func (*ChargeSuceeded) ProtoMessage()
- func (x *ChargeSuceeded) ProtoReflect() protoreflect.Message
- func (x *ChargeSuceeded) Reset()
- func (x *ChargeSuceeded) String() string
- type Event
- func (*Event) Descriptor() ([]byte, []int)deprecated
- func (x *Event) GetChargeFailed() *ChargeFailed
- func (x *Event) GetChargeSucceeded() *ChargeSuceeded
- func (x *Event) GetType() EventType
- func (*Event) ProtoMessage()
- func (x *Event) ProtoReflect() protoreflect.Message
- func (x *Event) Reset()
- func (x *Event) String() string
- type EventType
Constants ¶
View Source
const Topic = "stripe"
Variables ¶
View Source
var ( EventType_name = map[int32]string{ 0: "EventTypeUnknown", 1: "EventTypeChargeSucceeded", 2: "EventTypeChargeFailed", } EventType_value = map[string]int32{ "EventTypeUnknown": 0, "EventTypeChargeSucceeded": 1, "EventTypeChargeFailed": 2, } )
Enum value maps for EventType.
View Source
var File_stripe_events_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ChargeFailed ¶
type ChargeFailed struct { CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` Currency string `protobuf:"bytes,2,opt,name=currency,proto3" json:"currency,omitempty"` Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` // in minor units e.g. cents, pence, etc ChargeId string `protobuf:"bytes,4,opt,name=charge_id,json=chargeId,proto3" json:"charge_id,omitempty"` Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*ChargeFailed) Descriptor
deprecated
func (*ChargeFailed) Descriptor() ([]byte, []int)
Deprecated: Use ChargeFailed.ProtoReflect.Descriptor instead.
func (*ChargeFailed) GetAmount ¶
func (x *ChargeFailed) GetAmount() int64
func (*ChargeFailed) GetChargeId ¶
func (x *ChargeFailed) GetChargeId() string
func (*ChargeFailed) GetCurrency ¶
func (x *ChargeFailed) GetCurrency() string
func (*ChargeFailed) GetCustomerId ¶
func (x *ChargeFailed) GetCustomerId() string
func (*ChargeFailed) GetError ¶
func (x *ChargeFailed) GetError() string
func (*ChargeFailed) ProtoMessage ¶
func (*ChargeFailed) ProtoMessage()
func (*ChargeFailed) ProtoReflect ¶
func (x *ChargeFailed) ProtoReflect() protoreflect.Message
func (*ChargeFailed) Reset ¶
func (x *ChargeFailed) Reset()
func (*ChargeFailed) String ¶
func (x *ChargeFailed) String() string
type ChargeSuceeded ¶
type ChargeSuceeded struct { CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` Currency string `protobuf:"bytes,2,opt,name=currency,proto3" json:"currency,omitempty"` Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` // in minor units e.g. cents, pence, etc ChargeId string `protobuf:"bytes,4,opt,name=charge_id,json=chargeId,proto3" json:"charge_id,omitempty"` Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*ChargeSuceeded) Descriptor
deprecated
func (*ChargeSuceeded) Descriptor() ([]byte, []int)
Deprecated: Use ChargeSuceeded.ProtoReflect.Descriptor instead.
func (*ChargeSuceeded) GetAmount ¶
func (x *ChargeSuceeded) GetAmount() int64
func (*ChargeSuceeded) GetChargeId ¶
func (x *ChargeSuceeded) GetChargeId() string
func (*ChargeSuceeded) GetCurrency ¶
func (x *ChargeSuceeded) GetCurrency() string
func (*ChargeSuceeded) GetCustomerId ¶
func (x *ChargeSuceeded) GetCustomerId() string
func (*ChargeSuceeded) GetError ¶
func (x *ChargeSuceeded) GetError() string
func (*ChargeSuceeded) ProtoMessage ¶
func (*ChargeSuceeded) ProtoMessage()
func (*ChargeSuceeded) ProtoReflect ¶
func (x *ChargeSuceeded) ProtoReflect() protoreflect.Message
func (*ChargeSuceeded) Reset ¶
func (x *ChargeSuceeded) Reset()
func (*ChargeSuceeded) String ¶
func (x *ChargeSuceeded) String() string
type Event ¶
type Event struct { Type EventType `protobuf:"varint,1,opt,name=type,proto3,enum=stripeevents.EventType" json:"type,omitempty"` ChargeSucceeded *ChargeSuceeded `protobuf:"bytes,2,opt,name=charge_succeeded,json=chargeSucceeded,proto3" json:"charge_succeeded,omitempty"` ChargeFailed *ChargeFailed `protobuf:"bytes,3,opt,name=charge_failed,json=chargeFailed,proto3" json:"charge_failed,omitempty"` // contains filtered or unexported fields }
func (*Event) Descriptor
deprecated
func (*Event) GetChargeFailed ¶
func (x *Event) GetChargeFailed() *ChargeFailed
func (*Event) GetChargeSucceeded ¶
func (x *Event) GetChargeSucceeded() *ChargeSuceeded
func (*Event) ProtoMessage ¶
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶
func (x *Event) ProtoReflect() protoreflect.Message
type EventType ¶
type EventType int32
func (EventType) Descriptor ¶
func (EventType) Descriptor() protoreflect.EnumDescriptor
func (EventType) EnumDescriptor
deprecated
func (EventType) Number ¶
func (x EventType) Number() protoreflect.EnumNumber
func (EventType) Type ¶
func (EventType) Type() protoreflect.EnumType
Click to show internal directories.
Click to hide internal directories.