v2

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_journey_feedback_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ChargebackFeedback

type ChargebackFeedback struct {

	// A unique id for the feedback populated by the Moonsense servers.
	FeedbackId string `protobuf:"bytes,1,opt,name=feedback_id,json=feedbackId,proto3" json:"feedback_id,omitempty"`
	// A flag that indicates whether the journey contains a chargeback.
	IsChargeback bool `protobuf:"varint,2,opt,name=is_chargeback,json=isChargeback,proto3" json:"is_chargeback,omitempty"`
	// A timestamp that indicates when the chargeback was reported.
	ReportedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=reported_at,json=reportedAt,proto3" json:"reported_at,omitempty"`
	// A reason the journey was indicated to be fraudulent.
	ChargebackReason string `protobuf:"bytes,4,opt,name=chargeback_reason,json=chargebackReason,proto3" json:"chargeback_reason,omitempty"`
	// contains filtered or unexported fields
}

A method for tracking Chargebacks against a journey

func (*ChargebackFeedback) Descriptor deprecated

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

Deprecated: Use ChargebackFeedback.ProtoReflect.Descriptor instead.

func (*ChargebackFeedback) GetChargebackReason

func (x *ChargebackFeedback) GetChargebackReason() string

func (*ChargebackFeedback) GetFeedbackId

func (x *ChargebackFeedback) GetFeedbackId() string

func (*ChargebackFeedback) GetIsChargeback

func (x *ChargebackFeedback) GetIsChargeback() bool

func (*ChargebackFeedback) GetReportedAt

func (x *ChargebackFeedback) GetReportedAt() *timestamppb.Timestamp

func (*ChargebackFeedback) ProtoMessage

func (*ChargebackFeedback) ProtoMessage()

func (*ChargebackFeedback) ProtoReflect

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

func (*ChargebackFeedback) Reset

func (x *ChargebackFeedback) Reset()

func (*ChargebackFeedback) String

func (x *ChargebackFeedback) String() string

func (*ChargebackFeedback) Validate

func (m *ChargebackFeedback) Validate() error

Validate checks the field values on ChargebackFeedback with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ChargebackFeedback) ValidateAll

func (m *ChargebackFeedback) ValidateAll() error

ValidateAll checks the field values on ChargebackFeedback with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ChargebackFeedbackMultiError, or nil if none found.

type ChargebackFeedbackMultiError

type ChargebackFeedbackMultiError []error

ChargebackFeedbackMultiError is an error wrapping multiple validation errors returned by ChargebackFeedback.ValidateAll() if the designated constraints aren't met.

func (ChargebackFeedbackMultiError) AllErrors

func (m ChargebackFeedbackMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ChargebackFeedbackMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ChargebackFeedbackValidationError

type ChargebackFeedbackValidationError struct {
	// contains filtered or unexported fields
}

ChargebackFeedbackValidationError is the validation error returned by ChargebackFeedback.Validate if the designated constraints aren't met.

func (ChargebackFeedbackValidationError) Cause

Cause function returns cause value.

func (ChargebackFeedbackValidationError) Error

Error satisfies the builtin error interface

func (ChargebackFeedbackValidationError) ErrorName

ErrorName returns error name.

func (ChargebackFeedbackValidationError) Field

Field function returns field value.

func (ChargebackFeedbackValidationError) Key

Key function returns key value.

func (ChargebackFeedbackValidationError) Reason

Reason function returns reason value.

type FraudFeedback

type FraudFeedback struct {

	// A unique id for the feedback populated by the Moonsense servers.
	FeedbackId string `protobuf:"bytes,1,opt,name=feedback_id,json=feedbackId,proto3" json:"feedback_id,omitempty"`
	// A flag that indicates whether the journey contains fraud.
	IsFraud bool `protobuf:"varint,2,opt,name=is_fraud,json=isFraud,proto3" json:"is_fraud,omitempty"`
	// A timestamp that indicates when the fraud was reported.
	ReportedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=reported_at,json=reportedAt,proto3" json:"reported_at,omitempty"`
	// A reason the journey was indicated to be fraudulent.
	FraudReason string `protobuf:"bytes,4,opt,name=fraud_reason,json=fraudReason,proto3" json:"fraud_reason,omitempty"`
	// contains filtered or unexported fields
}

A method for tracking Fraud against a journey

func (*FraudFeedback) Descriptor deprecated

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

Deprecated: Use FraudFeedback.ProtoReflect.Descriptor instead.

func (*FraudFeedback) GetFeedbackId

func (x *FraudFeedback) GetFeedbackId() string

func (*FraudFeedback) GetFraudReason

func (x *FraudFeedback) GetFraudReason() string

func (*FraudFeedback) GetIsFraud

func (x *FraudFeedback) GetIsFraud() bool

func (*FraudFeedback) GetReportedAt

func (x *FraudFeedback) GetReportedAt() *timestamppb.Timestamp

func (*FraudFeedback) ProtoMessage

func (*FraudFeedback) ProtoMessage()

func (*FraudFeedback) ProtoReflect

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

func (*FraudFeedback) Reset

func (x *FraudFeedback) Reset()

func (*FraudFeedback) String

func (x *FraudFeedback) String() string

func (*FraudFeedback) Validate

func (m *FraudFeedback) Validate() error

Validate checks the field values on FraudFeedback with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*FraudFeedback) ValidateAll

func (m *FraudFeedback) ValidateAll() error

ValidateAll checks the field values on FraudFeedback with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FraudFeedbackMultiError, or nil if none found.

type FraudFeedbackMultiError

type FraudFeedbackMultiError []error

FraudFeedbackMultiError is an error wrapping multiple validation errors returned by FraudFeedback.ValidateAll() if the designated constraints aren't met.

func (FraudFeedbackMultiError) AllErrors

func (m FraudFeedbackMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FraudFeedbackMultiError) Error

func (m FraudFeedbackMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type FraudFeedbackValidationError

type FraudFeedbackValidationError struct {
	// contains filtered or unexported fields
}

FraudFeedbackValidationError is the validation error returned by FraudFeedback.Validate if the designated constraints aren't met.

func (FraudFeedbackValidationError) Cause

Cause function returns cause value.

func (FraudFeedbackValidationError) Error

Error satisfies the builtin error interface

func (FraudFeedbackValidationError) ErrorName

func (e FraudFeedbackValidationError) ErrorName() string

ErrorName returns error name.

func (FraudFeedbackValidationError) Field

Field function returns field value.

func (FraudFeedbackValidationError) Key

Key function returns key value.

func (FraudFeedbackValidationError) Reason

Reason function returns reason value.

type JourneyFeedback

type JourneyFeedback struct {

	// The journey id.
	JourneyId string `protobuf:"bytes,1,opt,name=journey_id,json=journeyId,proto3" json:"journey_id,omitempty"`
	// The fraud feedback. This is set if the
	// the journey has been reported as fraudulent.
	FraudFeedback *FraudFeedback `protobuf:"bytes,3,opt,name=fraud_feedback,json=fraudFeedback,proto3" json:"fraud_feedback,omitempty"`
	// The chargeback feedback. This is set if the
	// the journey has been reported as a chargeback.
	ChargebackFeedback *ChargebackFeedback `protobuf:"bytes,4,opt,name=chargeback_feedback,json=chargebackFeedback,proto3" json:"chargeback_feedback,omitempty"`
	// contains filtered or unexported fields
}

A method for tracking events against a journey

func (*JourneyFeedback) Descriptor deprecated

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

Deprecated: Use JourneyFeedback.ProtoReflect.Descriptor instead.

func (*JourneyFeedback) GetChargebackFeedback

func (x *JourneyFeedback) GetChargebackFeedback() *ChargebackFeedback

func (*JourneyFeedback) GetFraudFeedback

func (x *JourneyFeedback) GetFraudFeedback() *FraudFeedback

func (*JourneyFeedback) GetJourneyId

func (x *JourneyFeedback) GetJourneyId() string

func (*JourneyFeedback) ProtoMessage

func (*JourneyFeedback) ProtoMessage()

func (*JourneyFeedback) ProtoReflect

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

func (*JourneyFeedback) Reset

func (x *JourneyFeedback) Reset()

func (*JourneyFeedback) String

func (x *JourneyFeedback) String() string

func (*JourneyFeedback) Validate

func (m *JourneyFeedback) Validate() error

Validate checks the field values on JourneyFeedback with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*JourneyFeedback) ValidateAll

func (m *JourneyFeedback) ValidateAll() error

ValidateAll checks the field values on JourneyFeedback with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in JourneyFeedbackMultiError, or nil if none found.

type JourneyFeedbackMultiError

type JourneyFeedbackMultiError []error

JourneyFeedbackMultiError is an error wrapping multiple validation errors returned by JourneyFeedback.ValidateAll() if the designated constraints aren't met.

func (JourneyFeedbackMultiError) AllErrors

func (m JourneyFeedbackMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (JourneyFeedbackMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type JourneyFeedbackValidationError

type JourneyFeedbackValidationError struct {
	// contains filtered or unexported fields
}

JourneyFeedbackValidationError is the validation error returned by JourneyFeedback.Validate if the designated constraints aren't met.

func (JourneyFeedbackValidationError) Cause

Cause function returns cause value.

func (JourneyFeedbackValidationError) Error

Error satisfies the builtin error interface

func (JourneyFeedbackValidationError) ErrorName

func (e JourneyFeedbackValidationError) ErrorName() string

ErrorName returns error name.

func (JourneyFeedbackValidationError) Field

Field function returns field value.

func (JourneyFeedbackValidationError) Key

Key function returns key value.

func (JourneyFeedbackValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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