Documentation ¶
Overview ¶
Package paymentpb is a generated protocol buffer package.
It is generated from these files:
payment/paymentpb/payment.proto
It has these top-level messages:
Charge Refund Card ChargeRequest GetRequest RefundRequest ListRequest ChargeList
Index ¶
- Variables
- func RegisterPaymentServiceServer(s *grpc.Server, srv PaymentServiceServer)
- type Card
- func (*Card) Descriptor() ([]byte, []int)
- func (m *Card) GetCVC() string
- func (m *Card) GetExpireMonth() string
- func (m *Card) GetExpireYear() string
- func (m *Card) GetFirstName() string
- func (m *Card) GetLastName() string
- func (m *Card) GetNumber() string
- func (m *Card) GetType() CardType
- func (m *Card) Marshal() (dAtA []byte, err error)
- func (m *Card) MarshalTo(dAtA []byte) (int, error)
- func (*Card) ProtoMessage()
- func (m *Card) Reset()
- func (m *Card) Size() (n int)
- func (m *Card) String() string
- func (m *Card) Unmarshal(dAtA []byte) error
- type CardType
- type Charge
- func (*Charge) Descriptor() ([]byte, []int)
- func (m *Charge) GetChargeAmount() uint64
- func (m *Charge) GetCreated() int64
- func (m *Charge) GetCurrency() Currency
- func (m *Charge) GetEmail() string
- func (m *Charge) GetId() string
- func (m *Charge) GetPaid() bool
- func (m *Charge) GetProviderChargeId() string
- func (m *Charge) GetProviderId() PaymentProviderId
- func (m *Charge) GetRefundAmount() uint64
- func (m *Charge) GetRefunded() bool
- func (m *Charge) GetRefunds() []*Refund
- func (m *Charge) GetStatement() string
- func (m *Charge) GetUpdated() int64
- func (m *Charge) Marshal() (dAtA []byte, err error)
- func (m *Charge) MarshalTo(dAtA []byte) (int, error)
- func (*Charge) ProtoMessage()
- func (m *Charge) Reset()
- func (m *Charge) Size() (n int)
- func (m *Charge) String() string
- func (m *Charge) Unmarshal(dAtA []byte) error
- type ChargeList
- func (*ChargeList) Descriptor() ([]byte, []int)
- func (m *ChargeList) GetCharges() []*Charge
- func (m *ChargeList) GetTotal() int32
- func (m *ChargeList) Marshal() (dAtA []byte, err error)
- func (m *ChargeList) MarshalTo(dAtA []byte) (int, error)
- func (*ChargeList) ProtoMessage()
- func (m *ChargeList) Reset()
- func (m *ChargeList) Size() (n int)
- func (m *ChargeList) String() string
- func (m *ChargeList) Unmarshal(dAtA []byte) error
- type ChargeRequest
- func (*ChargeRequest) Descriptor() ([]byte, []int)
- func (m *ChargeRequest) GetCard() *Card
- func (m *ChargeRequest) GetCurrency() Currency
- func (m *ChargeRequest) GetEmail() string
- func (m *ChargeRequest) GetMetadata() map[string]string
- func (m *ChargeRequest) GetPaymentProviderId() PaymentProviderId
- func (m *ChargeRequest) GetStatement() string
- func (m *ChargeRequest) GetTotal() uint64
- func (m *ChargeRequest) Marshal() (dAtA []byte, err error)
- func (m *ChargeRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ChargeRequest) ProtoMessage()
- func (m *ChargeRequest) Reset()
- func (m *ChargeRequest) Size() (n int)
- func (m *ChargeRequest) String() string
- func (m *ChargeRequest) Unmarshal(dAtA []byte) error
- type ChargeStatus
- type Currency
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)
- func (m *GetRequest) GetId() string
- func (m *GetRequest) Marshal() (dAtA []byte, err error)
- func (m *GetRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetRequest) ProtoMessage()
- func (m *GetRequest) Reset()
- func (m *GetRequest) Size() (n int)
- func (m *GetRequest) String() string
- func (m *GetRequest) Unmarshal(dAtA []byte) error
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)
- func (m *ListRequest) GetLimit() int64
- func (m *ListRequest) GetPage() int64
- func (m *ListRequest) GetSort() ListRequest_Sort
- func (m *ListRequest) Marshal() (dAtA []byte, err error)
- func (m *ListRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ListRequest) ProtoMessage()
- func (m *ListRequest) Reset()
- func (m *ListRequest) Size() (n int)
- func (m *ListRequest) String() string
- func (m *ListRequest) Unmarshal(dAtA []byte) error
- type ListRequest_Sort
- type PaymentProviderId
- type PaymentServiceClient
- type PaymentServiceServer
- type Refund
- func (*Refund) Descriptor() ([]byte, []int)
- func (m *Refund) GetCreated() int64
- func (m *Refund) GetProviderRefundId() string
- func (m *Refund) GetReason() RefundReason
- func (m *Refund) GetRefundAmount() uint64
- func (m *Refund) Marshal() (dAtA []byte, err error)
- func (m *Refund) MarshalTo(dAtA []byte) (int, error)
- func (*Refund) ProtoMessage()
- func (m *Refund) Reset()
- func (m *Refund) Size() (n int)
- func (m *Refund) String() string
- func (m *Refund) Unmarshal(dAtA []byte) error
- type RefundReason
- type RefundRequest
- func (*RefundRequest) Descriptor() ([]byte, []int)
- func (m *RefundRequest) GetAmount() uint64
- func (m *RefundRequest) GetId() string
- func (m *RefundRequest) GetReason() RefundReason
- func (m *RefundRequest) Marshal() (dAtA []byte, err error)
- func (m *RefundRequest) MarshalTo(dAtA []byte) (int, error)
- func (*RefundRequest) ProtoMessage()
- func (m *RefundRequest) Reset()
- func (m *RefundRequest) Size() (n int)
- func (m *RefundRequest) String() string
- func (m *RefundRequest) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthPayment = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPayment = fmt.Errorf("proto: integer overflow") )
View Source
var CardType_name = map[int32]string{
0: "CARD_Reserved",
1: "Mastercard",
2: "Visa",
3: "AmericanExpress",
4: "JCB",
5: "Discover",
6: "DinersClub",
}
View Source
var CardType_value = map[string]int32{
"CARD_Reserved": 0,
"Mastercard": 1,
"Visa": 2,
"AmericanExpress": 3,
"JCB": 4,
"Discover": 5,
"DinersClub": 6,
}
View Source
var ChargeStatus_name = map[int32]string{
0: "Paid",
1: "Refunded",
}
View Source
var ChargeStatus_value = map[string]int32{
"Paid": 0,
"Refunded": 1,
}
View Source
var Currency_name = map[int32]string{}/* 129 elements not displayed */
View Source
var Currency_value = map[string]int32{}/* 129 elements not displayed */
View Source
var ListRequest_Sort_name = map[int32]string{
0: "Natural",
1: "CreatedDesc",
2: "CreatedAsc",
3: "UpdatedDesc",
4: "UpdatedAsc",
}
View Source
var ListRequest_Sort_value = map[string]int32{
"Natural": 0,
"CreatedDesc": 1,
"CreatedAsc": 2,
"UpdatedDesc": 3,
"UpdatedAsc": 4,
}
View Source
var PaymentProviderId_name = map[int32]string{
0: "PROVIDER_Reserved",
1: "Stripe",
2: "Paypal",
3: "Braintree",
}
View Source
var PaymentProviderId_value = map[string]int32{
"PROVIDER_Reserved": 0,
"Stripe": 1,
"Paypal": 2,
"Braintree": 3,
}
View Source
var RefundReason_name = map[int32]string{
0: "GeneralError",
1: "Fraud",
2: "Duplicate",
3: "RequestedByCustomer",
}
View Source
var RefundReason_value = map[string]int32{
"GeneralError": 0,
"Fraud": 1,
"Duplicate": 2,
"RequestedByCustomer": 3,
}
Functions ¶
func RegisterPaymentServiceServer ¶
func RegisterPaymentServiceServer(s *grpc.Server, srv PaymentServiceServer)
Types ¶
type Card ¶
type Card struct { Number string `protobuf:"bytes,1,opt,name=Number,proto3" json:"Number,omitempty" validate:"required,len=16"` ExpireMonth string `protobuf:"bytes,2,opt,name=ExpireMonth,proto3" json:"ExpireMonth,omitempty" validate:"required,len=2"` ExpireYear string `protobuf:"bytes,3,opt,name=ExpireYear,proto3" json:"ExpireYear,omitempty" validate:"required,len=4"` FirstName string `protobuf:"bytes,4,opt,name=FirstName,proto3" json:"FirstName,omitempty" validate:"omitempty,min=1"` LastName string `protobuf:"bytes,5,opt,name=LastName,proto3" json:"LastName,omitempty" validate:"omitempty,min=1"` CVC string `protobuf:"bytes,6,opt,name=CVC,proto3" json:"CVC,omitempty" validate:"omitempty,len=3"` Type CardType `protobuf:"varint,8,opt,name=type,proto3,enum=paymentpb.CardType" json:"type,omitempty" validate:"required,gte=1,lte=6"` }
func (*Card) Descriptor ¶
func (*Card) GetExpireMonth ¶
func (*Card) GetExpireYear ¶
func (*Card) GetFirstName ¶
func (*Card) GetLastName ¶
func (*Card) ProtoMessage ¶
func (*Card) ProtoMessage()
type Charge ¶
type Charge struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" bson:"_id"` Statement string `protobuf:"bytes,2,opt,name=statement,proto3" json:"statement,omitempty"` ChargeAmount uint64 `protobuf:"varint,3,opt,name=chargeAmount,proto3" json:"chargeAmount,omitempty"` RefundAmount uint64 `protobuf:"varint,4,opt,name=refundAmount,proto3" json:"refundAmount,omitempty"` Refunds []*Refund `protobuf:"bytes,5,rep,name=refunds" json:"refunds,omitempty"` Currency Currency `protobuf:"varint,6,opt,name=currency,proto3,enum=paymentpb.Currency" json:"currency,omitempty"` Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` Paid bool `protobuf:"varint,8,opt,name=paid,proto3" json:"paid,omitempty"` Refunded bool `protobuf:"varint,9,opt,name=refunded,proto3" json:"refunded,omitempty"` ProviderId PaymentProviderId `protobuf:"varint,10,opt,name=providerId,proto3,enum=paymentpb.PaymentProviderId" json:"providerId,omitempty"` ProviderChargeId string `protobuf:"bytes,11,opt,name=providerChargeId,proto3" json:"providerChargeId,omitempty"` Created int64 `protobuf:"varint,998,opt,name=created,proto3" json:"created,omitempty"` Updated int64 `protobuf:"varint,999,opt,name=updated,proto3" json:"updated,omitempty"` }
func (*Charge) Descriptor ¶
func (*Charge) GetChargeAmount ¶
func (*Charge) GetCreated ¶
func (*Charge) GetCurrency ¶
func (*Charge) GetProviderChargeId ¶
func (*Charge) GetProviderId ¶
func (m *Charge) GetProviderId() PaymentProviderId
func (*Charge) GetRefundAmount ¶
func (*Charge) GetRefunded ¶
func (*Charge) GetRefunds ¶
func (*Charge) GetStatement ¶
func (*Charge) GetUpdated ¶
func (*Charge) ProtoMessage ¶
func (*Charge) ProtoMessage()
type ChargeList ¶
type ChargeList struct { Charges []*Charge `protobuf:"bytes,1,rep,name=charges" json:"charges,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` }
func (*ChargeList) Descriptor ¶
func (*ChargeList) Descriptor() ([]byte, []int)
func (*ChargeList) GetCharges ¶
func (m *ChargeList) GetCharges() []*Charge
func (*ChargeList) GetTotal ¶
func (m *ChargeList) GetTotal() int32
func (*ChargeList) Marshal ¶
func (m *ChargeList) Marshal() (dAtA []byte, err error)
func (*ChargeList) ProtoMessage ¶
func (*ChargeList) ProtoMessage()
func (*ChargeList) Reset ¶
func (m *ChargeList) Reset()
func (*ChargeList) Size ¶
func (m *ChargeList) Size() (n int)
func (*ChargeList) String ¶
func (m *ChargeList) String() string
func (*ChargeList) Unmarshal ¶
func (m *ChargeList) Unmarshal(dAtA []byte) error
type ChargeRequest ¶
type ChargeRequest struct { Currency Currency `` /* 128-byte string literal not displayed */ Total uint64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty" validate:"required,gte=0"` Card *Card `protobuf:"bytes,3,opt,name=Card" json:"Card,omitempty" validate:"required,dive"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty" validate:"email"` Statement string `protobuf:"bytes,5,opt,name=statement,proto3" json:"statement,omitempty"` PaymentProviderId PaymentProviderId `` /* 153-byte string literal not displayed */ Metadata map[string]string `` /* 150-byte string literal not displayed */ }
func (*ChargeRequest) Descriptor ¶
func (*ChargeRequest) Descriptor() ([]byte, []int)
func (*ChargeRequest) GetCard ¶
func (m *ChargeRequest) GetCard() *Card
func (*ChargeRequest) GetCurrency ¶
func (m *ChargeRequest) GetCurrency() Currency
func (*ChargeRequest) GetEmail ¶
func (m *ChargeRequest) GetEmail() string
func (*ChargeRequest) GetMetadata ¶
func (m *ChargeRequest) GetMetadata() map[string]string
func (*ChargeRequest) GetPaymentProviderId ¶
func (m *ChargeRequest) GetPaymentProviderId() PaymentProviderId
func (*ChargeRequest) GetStatement ¶
func (m *ChargeRequest) GetStatement() string
func (*ChargeRequest) GetTotal ¶
func (m *ChargeRequest) GetTotal() uint64
func (*ChargeRequest) Marshal ¶
func (m *ChargeRequest) Marshal() (dAtA []byte, err error)
func (*ChargeRequest) ProtoMessage ¶
func (*ChargeRequest) ProtoMessage()
func (*ChargeRequest) Reset ¶
func (m *ChargeRequest) Reset()
func (*ChargeRequest) Size ¶
func (m *ChargeRequest) Size() (n int)
func (*ChargeRequest) String ¶
func (m *ChargeRequest) String() string
func (*ChargeRequest) Unmarshal ¶
func (m *ChargeRequest) Unmarshal(dAtA []byte) error
type ChargeStatus ¶
type ChargeStatus int32
const ( ChargeStatus_Paid ChargeStatus = 0 ChargeStatus_Refunded ChargeStatus = 1 )
func (ChargeStatus) EnumDescriptor ¶
func (ChargeStatus) EnumDescriptor() ([]byte, []int)
func (ChargeStatus) String ¶
func (x ChargeStatus) String() string
type Currency ¶
type Currency int32
const ( Currency_CUR_RESERVED Currency = 0 Currency_AFN Currency = 1 Currency_ALL Currency = 2 Currency_AMD Currency = 3 Currency_ANG Currency = 4 Currency_ARS Currency = 5 Currency_AUD Currency = 6 Currency_AWG Currency = 7 Currency_AZN Currency = 8 Currency_BAM Currency = 9 Currency_BBD Currency = 10 Currency_BGN Currency = 11 Currency_BHD Currency = 12 Currency_BMD Currency = 13 Currency_BND Currency = 14 Currency_BOB Currency = 15 Currency_BRL Currency = 16 Currency_BSD Currency = 17 Currency_BWP Currency = 18 Currency_BYN Currency = 19 Currency_BYR Currency = 20 Currency_BZD Currency = 21 Currency_CAD Currency = 22 Currency_CLP Currency = 23 Currency_CNY Currency = 24 Currency_COP Currency = 25 Currency_CRC Currency = 26 Currency_CUP Currency = 27 Currency_CZK Currency = 28 Currency_DKK Currency = 29 Currency_DOP Currency = 30 Currency_DZD Currency = 31 Currency_EEK Currency = 32 Currency_EGP Currency = 33 Currency_EUR Currency = 34 Currency_FJD Currency = 35 Currency_FKP Currency = 36 Currency_GBP Currency = 37 Currency_GGP Currency = 38 Currency_GHC Currency = 39 Currency_GIP Currency = 40 Currency_GTQ Currency = 41 Currency_GYD Currency = 42 Currency_HKD Currency = 43 Currency_HNL Currency = 44 Currency_HRK Currency = 45 Currency_HUF Currency = 46 Currency_IDR Currency = 47 Currency_ILS Currency = 48 Currency_IMP Currency = 49 Currency_INR Currency = 50 Currency_IQD Currency = 51 Currency_IRR Currency = 52 Currency_ISK Currency = 53 Currency_JEP Currency = 54 Currency_JMD Currency = 55 Currency_JOD Currency = 56 Currency_JPY Currency = 57 Currency_KES Currency = 58 Currency_KGS Currency = 59 Currency_KHR Currency = 60 Currency_KPW Currency = 61 Currency_KRW Currency = 62 Currency_KWD Currency = 63 Currency_KYD Currency = 64 Currency_KZT Currency = 65 Currency_LAK Currency = 66 Currency_LBP Currency = 67 Currency_LKR Currency = 68 Currency_LRD Currency = 69 Currency_LTL Currency = 70 Currency_LVL Currency = 71 Currency_LYD Currency = 72 Currency_MAD Currency = 73 Currency_MKD Currency = 74 Currency_MNT Currency = 75 Currency_MUR Currency = 76 Currency_MXN Currency = 77 Currency_MWK Currency = 78 Currency_MYR Currency = 79 Currency_MZN Currency = 80 Currency_NAD Currency = 81 Currency_NGN Currency = 82 Currency_NIO Currency = 83 Currency_NOK Currency = 84 Currency_NPR Currency = 85 Currency_NZD Currency = 86 Currency_OMR Currency = 87 Currency_PAB Currency = 88 Currency_PEN Currency = 89 Currency_PHP Currency = 90 Currency_PKR Currency = 91 Currency_PLN Currency = 92 Currency_PYG Currency = 93 Currency_QAR Currency = 94 Currency_RON Currency = 95 Currency_RSD Currency = 96 Currency_RUB Currency = 97 Currency_RUR Currency = 98 Currency_SAR Currency = 99 Currency_SBD Currency = 100 Currency_SCR Currency = 101 Currency_SEK Currency = 102 Currency_SGD Currency = 103 Currency_SHP Currency = 104 Currency_SOS Currency = 105 Currency_SRD Currency = 106 Currency_SVC Currency = 107 Currency_SYP Currency = 108 Currency_THB Currency = 109 Currency_TND Currency = 110 Currency_TRL Currency = 111 Currency_TRY Currency = 112 Currency_TTD Currency = 113 Currency_TWD Currency = 114 Currency_TZS Currency = 115 Currency_UAH Currency = 116 Currency_UGX Currency = 117 Currency_AED Currency = 118 Currency_UYU Currency = 119 Currency_UZS Currency = 120 Currency_VEF Currency = 121 Currency_VND Currency = 122 Currency_XCD Currency = 123 Currency_YER Currency = 124 Currency_ZAR Currency = 125 Currency_ZMW Currency = 126 Currency_ZWD Currency = 127 Currency_USD Currency = 128 )
func (Currency) EnumDescriptor ¶
type GetRequest ¶
type GetRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validate:"uuid4,required"`
}
func (*GetRequest) Descriptor ¶
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) GetId ¶
func (m *GetRequest) GetId() string
func (*GetRequest) Marshal ¶
func (m *GetRequest) Marshal() (dAtA []byte, err error)
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶
func (m *GetRequest) Reset()
func (*GetRequest) Size ¶
func (m *GetRequest) Size() (n int)
func (*GetRequest) String ¶
func (m *GetRequest) String() string
func (*GetRequest) Unmarshal ¶
func (m *GetRequest) Unmarshal(dAtA []byte) error
type ListRequest ¶
type ListRequest struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty" validate:"omitempty,required,gte=0"` Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty" validate:"omitempty,required,gt=0"` Sort ListRequest_Sort `` /* 136-byte string literal not displayed */ }
func (*ListRequest) Descriptor ¶
func (*ListRequest) Descriptor() ([]byte, []int)
func (*ListRequest) GetLimit ¶
func (m *ListRequest) GetLimit() int64
func (*ListRequest) GetPage ¶
func (m *ListRequest) GetPage() int64
func (*ListRequest) GetSort ¶
func (m *ListRequest) GetSort() ListRequest_Sort
func (*ListRequest) Marshal ¶
func (m *ListRequest) Marshal() (dAtA []byte, err error)
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) Reset ¶
func (m *ListRequest) Reset()
func (*ListRequest) Size ¶
func (m *ListRequest) Size() (n int)
func (*ListRequest) String ¶
func (m *ListRequest) String() string
func (*ListRequest) Unmarshal ¶
func (m *ListRequest) Unmarshal(dAtA []byte) error
type ListRequest_Sort ¶
type ListRequest_Sort int32
const ( ListRequest_Natural ListRequest_Sort = 0 ListRequest_CreatedDesc ListRequest_Sort = 1 ListRequest_CreatedAsc ListRequest_Sort = 2 ListRequest_UpdatedDesc ListRequest_Sort = 3 ListRequest_UpdatedAsc ListRequest_Sort = 4 )
func (ListRequest_Sort) EnumDescriptor ¶
func (ListRequest_Sort) EnumDescriptor() ([]byte, []int)
func (ListRequest_Sort) String ¶
func (x ListRequest_Sort) String() string
type PaymentProviderId ¶
type PaymentProviderId int32
const ( PaymentProviderId_PROVIDER_Reserved PaymentProviderId = 0 PaymentProviderId_Stripe PaymentProviderId = 1 PaymentProviderId_Paypal PaymentProviderId = 2 PaymentProviderId_Braintree PaymentProviderId = 3 )
func (PaymentProviderId) EnumDescriptor ¶
func (PaymentProviderId) EnumDescriptor() ([]byte, []int)
func (PaymentProviderId) String ¶
func (x PaymentProviderId) String() string
type PaymentServiceClient ¶
type PaymentServiceClient interface { NewCharge(ctx context.Context, in *ChargeRequest, opts ...grpc.CallOption) (*Charge, error) RefundCharge(ctx context.Context, in *RefundRequest, opts ...grpc.CallOption) (*Charge, error) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*Charge, error) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ChargeList, error) }
func NewPaymentServiceClient ¶
func NewPaymentServiceClient(cc *grpc.ClientConn) PaymentServiceClient
type PaymentServiceServer ¶
type PaymentServiceServer interface { NewCharge(context.Context, *ChargeRequest) (*Charge, error) RefundCharge(context.Context, *RefundRequest) (*Charge, error) Get(context.Context, *GetRequest) (*Charge, error) List(context.Context, *ListRequest) (*ChargeList, error) }
type Refund ¶
type Refund struct { RefundAmount uint64 `protobuf:"varint,1,opt,name=refundAmount,proto3" json:"refundAmount,omitempty"` ProviderRefundId string `protobuf:"bytes,2,opt,name=providerRefundId,proto3" json:"providerRefundId,omitempty"` Reason RefundReason `protobuf:"varint,3,opt,name=reason,proto3,enum=paymentpb.RefundReason" json:"reason,omitempty"` Created int64 `protobuf:"varint,4,opt,name=created,proto3" json:"created,omitempty"` }
func (*Refund) Descriptor ¶
func (*Refund) GetCreated ¶
func (*Refund) GetProviderRefundId ¶
func (*Refund) GetReason ¶
func (m *Refund) GetReason() RefundReason
func (*Refund) GetRefundAmount ¶
func (*Refund) ProtoMessage ¶
func (*Refund) ProtoMessage()
type RefundReason ¶
type RefundReason int32
const ( RefundReason_GeneralError RefundReason = 0 RefundReason_Fraud RefundReason = 1 RefundReason_Duplicate RefundReason = 2 RefundReason_RequestedByCustomer RefundReason = 3 )
func (RefundReason) EnumDescriptor ¶
func (RefundReason) EnumDescriptor() ([]byte, []int)
func (RefundReason) String ¶
func (x RefundReason) String() string
type RefundRequest ¶
type RefundRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validate:"uuid4,required"` Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` Reason RefundReason `` /* 127-byte string literal not displayed */ }
func (*RefundRequest) Descriptor ¶
func (*RefundRequest) Descriptor() ([]byte, []int)
func (*RefundRequest) GetAmount ¶
func (m *RefundRequest) GetAmount() uint64
func (*RefundRequest) GetId ¶
func (m *RefundRequest) GetId() string
func (*RefundRequest) GetReason ¶
func (m *RefundRequest) GetReason() RefundReason
func (*RefundRequest) Marshal ¶
func (m *RefundRequest) Marshal() (dAtA []byte, err error)
func (*RefundRequest) ProtoMessage ¶
func (*RefundRequest) ProtoMessage()
func (*RefundRequest) Reset ¶
func (m *RefundRequest) Reset()
func (*RefundRequest) Size ¶
func (m *RefundRequest) Size() (n int)
func (*RefundRequest) String ¶
func (m *RefundRequest) String() string
func (*RefundRequest) Unmarshal ¶
func (m *RefundRequest) Unmarshal(dAtA []byte) error
Click to show internal directories.
Click to hide internal directories.