Documentation ¶
Index ¶
- Variables
- type ChargebackFeedback
- func (*ChargebackFeedback) Descriptor() ([]byte, []int)deprecated
- func (x *ChargebackFeedback) GetChargebackReason() string
- func (x *ChargebackFeedback) GetFeedbackId() string
- func (x *ChargebackFeedback) GetIsChargeback() bool
- func (x *ChargebackFeedback) GetReportedAt() *timestamppb.Timestamp
- func (*ChargebackFeedback) ProtoMessage()
- func (x *ChargebackFeedback) ProtoReflect() protoreflect.Message
- func (x *ChargebackFeedback) Reset()
- func (x *ChargebackFeedback) String() string
- func (m *ChargebackFeedback) Validate() error
- func (m *ChargebackFeedback) ValidateAll() error
- type ChargebackFeedbackMultiError
- type ChargebackFeedbackValidationError
- func (e ChargebackFeedbackValidationError) Cause() error
- func (e ChargebackFeedbackValidationError) Error() string
- func (e ChargebackFeedbackValidationError) ErrorName() string
- func (e ChargebackFeedbackValidationError) Field() string
- func (e ChargebackFeedbackValidationError) Key() bool
- func (e ChargebackFeedbackValidationError) Reason() string
- type FraudFeedback
- func (*FraudFeedback) Descriptor() ([]byte, []int)deprecated
- func (x *FraudFeedback) GetFeedbackId() string
- func (x *FraudFeedback) GetFraudReason() string
- func (x *FraudFeedback) GetIsFraud() bool
- func (x *FraudFeedback) GetReportedAt() *timestamppb.Timestamp
- func (*FraudFeedback) ProtoMessage()
- func (x *FraudFeedback) ProtoReflect() protoreflect.Message
- func (x *FraudFeedback) Reset()
- func (x *FraudFeedback) String() string
- func (m *FraudFeedback) Validate() error
- func (m *FraudFeedback) ValidateAll() error
- type FraudFeedbackMultiError
- type FraudFeedbackValidationError
- func (e FraudFeedbackValidationError) Cause() error
- func (e FraudFeedbackValidationError) Error() string
- func (e FraudFeedbackValidationError) ErrorName() string
- func (e FraudFeedbackValidationError) Field() string
- func (e FraudFeedbackValidationError) Key() bool
- func (e FraudFeedbackValidationError) Reason() string
- type JourneyFeedback
- func (*JourneyFeedback) Descriptor() ([]byte, []int)deprecated
- func (x *JourneyFeedback) GetChargebackFeedback() *ChargebackFeedback
- func (x *JourneyFeedback) GetFraudFeedback() *FraudFeedback
- func (x *JourneyFeedback) GetJourneyId() string
- func (*JourneyFeedback) ProtoMessage()
- func (x *JourneyFeedback) ProtoReflect() protoreflect.Message
- func (x *JourneyFeedback) Reset()
- func (x *JourneyFeedback) String() string
- func (m *JourneyFeedback) Validate() error
- func (m *JourneyFeedback) ValidateAll() error
- type JourneyFeedbackMultiError
- type JourneyFeedbackValidationError
- func (e JourneyFeedbackValidationError) Cause() error
- func (e JourneyFeedbackValidationError) Error() string
- func (e JourneyFeedbackValidationError) ErrorName() string
- func (e JourneyFeedbackValidationError) Field() string
- func (e JourneyFeedbackValidationError) Key() bool
- func (e JourneyFeedbackValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
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 ¶
func (m ChargebackFeedbackMultiError) Error() string
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 ¶
func (e ChargebackFeedbackValidationError) Cause() error
Cause function returns cause value.
func (ChargebackFeedbackValidationError) Error ¶
func (e ChargebackFeedbackValidationError) Error() string
Error satisfies the builtin error interface
func (ChargebackFeedbackValidationError) ErrorName ¶
func (e ChargebackFeedbackValidationError) ErrorName() string
ErrorName returns error name.
func (ChargebackFeedbackValidationError) Field ¶
func (e ChargebackFeedbackValidationError) Field() string
Field function returns field value.
func (ChargebackFeedbackValidationError) Key ¶
func (e ChargebackFeedbackValidationError) Key() bool
Key function returns key value.
func (ChargebackFeedbackValidationError) Reason ¶
func (e ChargebackFeedbackValidationError) Reason() string
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 ¶
func (e FraudFeedbackValidationError) Cause() error
Cause function returns cause value.
func (FraudFeedbackValidationError) Error ¶
func (e FraudFeedbackValidationError) Error() string
Error satisfies the builtin error interface
func (FraudFeedbackValidationError) ErrorName ¶
func (e FraudFeedbackValidationError) ErrorName() string
ErrorName returns error name.
func (FraudFeedbackValidationError) Field ¶
func (e FraudFeedbackValidationError) Field() string
Field function returns field value.
func (FraudFeedbackValidationError) Key ¶
func (e FraudFeedbackValidationError) Key() bool
Key function returns key value.
func (FraudFeedbackValidationError) Reason ¶
func (e FraudFeedbackValidationError) Reason() string
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 ¶
func (m JourneyFeedbackMultiError) Error() string
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 ¶
func (e JourneyFeedbackValidationError) Cause() error
Cause function returns cause value.
func (JourneyFeedbackValidationError) Error ¶
func (e JourneyFeedbackValidationError) Error() string
Error satisfies the builtin error interface
func (JourneyFeedbackValidationError) ErrorName ¶
func (e JourneyFeedbackValidationError) ErrorName() string
ErrorName returns error name.
func (JourneyFeedbackValidationError) Field ¶
func (e JourneyFeedbackValidationError) Field() string
Field function returns field value.
func (JourneyFeedbackValidationError) Key ¶
func (e JourneyFeedbackValidationError) Key() bool
Key function returns key value.
func (JourneyFeedbackValidationError) Reason ¶
func (e JourneyFeedbackValidationError) Reason() string
Reason function returns reason value.