stripe

package
v0.0.0-...-fb1a1ec Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetChargeFailed

func (x *Event) GetChargeFailed() *ChargeFailed

func (*Event) GetChargeSucceeded

func (x *Event) GetChargeSucceeded() *ChargeSuceeded

func (*Event) GetType

func (x *Event) GetType() EventType

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

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

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type EventType

type EventType int32
const (
	EventType_EventTypeUnknown         EventType = 0
	EventType_EventTypeChargeSucceeded EventType = 1
	EventType_EventTypeChargeFailed    EventType = 2
)

func (EventType) Descriptor

func (EventType) Descriptor() protoreflect.EnumDescriptor

func (EventType) Enum

func (x EventType) Enum() *EventType

func (EventType) EnumDescriptor deprecated

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

Deprecated: Use EventType.Descriptor instead.

func (EventType) Number

func (x EventType) Number() protoreflect.EnumNumber

func (EventType) String

func (x EventType) String() string

func (EventType) Type

Jump to

Keyboard shortcuts

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