Documentation ¶
Index ¶
- Variables
- type Card
- func (*Card) Descriptor() ([]byte, []int)deprecated
- func (x *Card) GetCvc() string
- func (x *Card) GetExpireMonth() string
- func (x *Card) GetExpireYear() string
- func (x *Card) GetFirstName() string
- func (x *Card) GetLastName() string
- func (x *Card) GetNumber() string
- func (x *Card) GetType() CardType
- func (*Card) ProtoMessage()
- func (x *Card) ProtoReflect() protoreflect.Message
- func (x *Card) Reset()
- func (x *Card) String() string
- type CardType
- type Charge
- func (*Charge) Descriptor() ([]byte, []int)deprecated
- func (x *Charge) GetChargeAmount() uint64
- func (x *Charge) GetCreated() int64
- func (x *Charge) GetCurrency() Currency
- func (x *Charge) GetEmail() string
- func (x *Charge) GetId() string
- func (x *Charge) GetPaid() bool
- func (x *Charge) GetPaymentProvider() PaymentProvider
- func (x *Charge) GetProviderChargeId() string
- func (x *Charge) GetRefundAmount() uint64
- func (x *Charge) GetRefunded() bool
- func (x *Charge) GetRefunds() []*Refund
- func (x *Charge) GetStatement() string
- func (x *Charge) GetUpdated() int64
- func (*Charge) ProtoMessage()
- func (x *Charge) ProtoReflect() protoreflect.Message
- func (x *Charge) Reset()
- func (x *Charge) String() string
- type ChargeList
- func (*ChargeList) Descriptor() ([]byte, []int)deprecated
- func (x *ChargeList) GetCharges() []*NewRefundResponse
- func (x *ChargeList) GetTotal() int32
- func (*ChargeList) ProtoMessage()
- func (x *ChargeList) ProtoReflect() protoreflect.Message
- func (x *ChargeList) Reset()
- func (x *ChargeList) String() string
- type ChargeStatus
- func (ChargeStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ChargeStatus) Enum() *ChargeStatus
- func (ChargeStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ChargeStatus) Number() protoreflect.EnumNumber
- func (x ChargeStatus) String() string
- func (ChargeStatus) Type() protoreflect.EnumType
- type Currency
- type GetRequest
- type GetResponse
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetLastKey() string
- func (x *ListRequest) GetLimit() int32
- func (x *ListRequest) GetSort() ListRequest_Sort
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- type ListRequest_Sort
- func (ListRequest_Sort) Descriptor() protoreflect.EnumDescriptor
- func (x ListRequest_Sort) Enum() *ListRequest_Sort
- func (ListRequest_Sort) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListRequest_Sort) Number() protoreflect.EnumNumber
- func (x ListRequest_Sort) String() string
- func (ListRequest_Sort) Type() protoreflect.EnumType
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse) GetCharges() []*Charge
- func (x *ListResponse) GetLastKey() string
- func (x *ListResponse) GetTotal() int32
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (x *ListResponse) String() string
- type NewChargeRequest
- func (*NewChargeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NewChargeRequest) GetCard() *Card
- func (x *NewChargeRequest) GetCurrency() Currency
- func (x *NewChargeRequest) GetEmail() string
- func (x *NewChargeRequest) GetMetadata() map[string]string
- func (x *NewChargeRequest) GetPaymentProvider() PaymentProvider
- func (x *NewChargeRequest) GetStatement() string
- func (x *NewChargeRequest) GetStoreId() string
- func (x *NewChargeRequest) GetTotal() uint64
- func (*NewChargeRequest) ProtoMessage()
- func (x *NewChargeRequest) ProtoReflect() protoreflect.Message
- func (x *NewChargeRequest) Reset()
- func (x *NewChargeRequest) String() string
- type NewChargeResponse
- type NewRefundRequest
- func (*NewRefundRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NewRefundRequest) GetAmount() uint64
- func (x *NewRefundRequest) GetId() string
- func (x *NewRefundRequest) GetReason() RefundReason
- func (x *NewRefundRequest) GetStoreId() string
- func (*NewRefundRequest) ProtoMessage()
- func (x *NewRefundRequest) ProtoReflect() protoreflect.Message
- func (x *NewRefundRequest) Reset()
- func (x *NewRefundRequest) String() string
- type NewRefundResponse
- type PaymentProvider
- func (PaymentProvider) Descriptor() protoreflect.EnumDescriptor
- func (x PaymentProvider) Enum() *PaymentProvider
- func (PaymentProvider) EnumDescriptor() ([]byte, []int)deprecated
- func (x PaymentProvider) Number() protoreflect.EnumNumber
- func (x PaymentProvider) String() string
- func (PaymentProvider) Type() protoreflect.EnumType
- type Refund
- func (*Refund) Descriptor() ([]byte, []int)deprecated
- func (x *Refund) GetCreated() int64
- func (x *Refund) GetProviderRefundId() string
- func (x *Refund) GetReason() RefundReason
- func (x *Refund) GetRefundAmount() uint64
- func (*Refund) ProtoMessage()
- func (x *Refund) ProtoReflect() protoreflect.Message
- func (x *Refund) Reset()
- func (x *Refund) String() string
- type RefundReason
- func (RefundReason) Descriptor() protoreflect.EnumDescriptor
- func (x RefundReason) Enum() *RefundReason
- func (RefundReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x RefundReason) Number() protoreflect.EnumNumber
- func (x RefundReason) String() string
- func (RefundReason) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( Currency_name = map[int32]string{}/* 129 elements not displayed */ Currency_value = map[string]int32{}/* 129 elements not displayed */ )
Enum value maps for Currency.
var ( ChargeStatus_name = map[int32]string{ 0: "CHARGE_STATUS_UNSPECIFIED", 1: "CHARGE_STATUS_PAID", 2: "CHARGE_STATUS_REFUNDED", } ChargeStatus_value = map[string]int32{ "CHARGE_STATUS_UNSPECIFIED": 0, "CHARGE_STATUS_PAID": 1, "CHARGE_STATUS_REFUNDED": 2, } )
Enum value maps for ChargeStatus.
var ( CardType_name = map[int32]string{ 0: "CARD_TYPE_UNSPECIFIED", 1: "CARD_TYPE_MASTERCARD", 2: "CARD_TYPE_VISA", 3: "CARD_TYPE_AMERICAN_EXPRESS", 4: "CARD_TYPE_JCB", 5: "CARD_TYPE_DISCOVER", 6: "CARD_TYPE_DINERS_CLUB", } CardType_value = map[string]int32{ "CARD_TYPE_UNSPECIFIED": 0, "CARD_TYPE_MASTERCARD": 1, "CARD_TYPE_VISA": 2, "CARD_TYPE_AMERICAN_EXPRESS": 3, "CARD_TYPE_JCB": 4, "CARD_TYPE_DISCOVER": 5, "CARD_TYPE_DINERS_CLUB": 6, } )
Enum value maps for CardType.
var ( PaymentProvider_name = map[int32]string{ 0: "PAYMENT_PROVIDER_UNSPECIFIED", 1: "PAYMENT_PROVIDER_STRIPE", 2: "PAYMENT_PROVIDER_PAYPAL", 3: "PAYMENT_PROVIDER_BRAINTREE", } PaymentProvider_value = map[string]int32{ "PAYMENT_PROVIDER_UNSPECIFIED": 0, "PAYMENT_PROVIDER_STRIPE": 1, "PAYMENT_PROVIDER_PAYPAL": 2, "PAYMENT_PROVIDER_BRAINTREE": 3, } )
Enum value maps for PaymentProvider.
var ( RefundReason_name = map[int32]string{ 0: "REFUND_REASON_UNSPECIFIED", 1: "REFUND_REASON_GENERAL_ERROR", 2: "REFUND_REASON_FRAUD", 3: "REFUND_REASON_DUPLICATE", 4: "REFUND_REASON_REQUESTED_BY_CUSTOMER", 5: "REFUND_REASON_EXPIRED_UNCAPTURED", } RefundReason_value = map[string]int32{ "REFUND_REASON_UNSPECIFIED": 0, "REFUND_REASON_GENERAL_ERROR": 1, "REFUND_REASON_FRAUD": 2, "REFUND_REASON_DUPLICATE": 3, "REFUND_REASON_REQUESTED_BY_CUSTOMER": 4, "REFUND_REASON_EXPIRED_UNCAPTURED": 5, } )
Enum value maps for RefundReason.
var ( ListRequest_Sort_name = map[int32]string{ 0: "SORT_UNSPECIFIED", 1: "SORT_NATURAL", 2: "SORT_CREATED_DESC", 3: "SORT_CREATED_ASC", 4: "SORT_UPDATED_DESC", 5: "SORT_UPDATED_ASC", } ListRequest_Sort_value = map[string]int32{ "SORT_UNSPECIFIED": 0, "SORT_NATURAL": 1, "SORT_CREATED_DESC": 2, "SORT_CREATED_ASC": 3, "SORT_UPDATED_DESC": 4, "SORT_UPDATED_ASC": 5, } )
Enum value maps for ListRequest_Sort.
var File_payment_v1_payment_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Card ¶
type Card struct { Number string `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"` ExpireMonth string `protobuf:"bytes,2,opt,name=expire_month,json=expireMonth,proto3" json:"expire_month,omitempty"` ExpireYear string `protobuf:"bytes,3,opt,name=expire_year,json=expireYear,proto3" json:"expire_year,omitempty"` FirstName string `protobuf:"bytes,4,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,5,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` Cvc string `protobuf:"bytes,6,opt,name=cvc,proto3" json:"cvc,omitempty"` Type CardType `protobuf:"varint,8,opt,name=type,proto3,enum=payment.v1.CardType" json:"type,omitempty"` // contains filtered or unexported fields }
func (*Card) Descriptor
deprecated
func (*Card) GetExpireMonth ¶
func (*Card) GetExpireYear ¶
func (*Card) GetFirstName ¶
func (*Card) GetLastName ¶
func (*Card) ProtoMessage ¶
func (*Card) ProtoMessage()
func (*Card) ProtoReflect ¶
func (x *Card) ProtoReflect() protoreflect.Message
type CardType ¶
type CardType int32
const ( CardType_CARD_TYPE_UNSPECIFIED CardType = 0 CardType_CARD_TYPE_MASTERCARD CardType = 1 CardType_CARD_TYPE_VISA CardType = 2 CardType_CARD_TYPE_AMERICAN_EXPRESS CardType = 3 CardType_CARD_TYPE_JCB CardType = 4 CardType_CARD_TYPE_DISCOVER CardType = 5 CardType_CARD_TYPE_DINERS_CLUB CardType = 6 )
func (CardType) Descriptor ¶
func (CardType) Descriptor() protoreflect.EnumDescriptor
func (CardType) EnumDescriptor
deprecated
func (CardType) Number ¶
func (x CardType) Number() protoreflect.EnumNumber
func (CardType) Type ¶
func (CardType) Type() protoreflect.EnumType
type Charge ¶
type Charge struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Statement string `protobuf:"bytes,2,opt,name=statement,proto3" json:"statement,omitempty"` ChargeAmount uint64 `protobuf:"varint,3,opt,name=charge_amount,json=chargeAmount,proto3" json:"charge_amount,omitempty"` RefundAmount uint64 `protobuf:"varint,4,opt,name=refund_amount,json=refundAmount,proto3" json:"refund_amount,omitempty"` Refunds []*Refund `protobuf:"bytes,5,rep,name=refunds,proto3" json:"refunds,omitempty"` Currency Currency `protobuf:"varint,6,opt,name=currency,proto3,enum=payment.v1.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"` PaymentProvider PaymentProvider `` /* 140-byte string literal not displayed */ ProviderChargeId string `protobuf:"bytes,11,opt,name=provider_charge_id,json=providerChargeId,proto3" json:"provider_charge_id,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"` // contains filtered or unexported fields }
func (*Charge) Descriptor
deprecated
func (*Charge) GetChargeAmount ¶
func (*Charge) GetCreated ¶
func (*Charge) GetCurrency ¶
func (*Charge) GetPaymentProvider ¶
func (x *Charge) GetPaymentProvider() PaymentProvider
func (*Charge) GetProviderChargeId ¶
func (*Charge) GetRefundAmount ¶
func (*Charge) GetRefunded ¶
func (*Charge) GetRefunds ¶
func (*Charge) GetStatement ¶
func (*Charge) GetUpdated ¶
func (*Charge) ProtoMessage ¶
func (*Charge) ProtoMessage()
func (*Charge) ProtoReflect ¶
func (x *Charge) ProtoReflect() protoreflect.Message
type ChargeList ¶
type ChargeList struct { Charges []*NewRefundResponse `protobuf:"bytes,1,rep,name=charges,proto3" json:"charges,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ChargeList) Descriptor
deprecated
func (*ChargeList) Descriptor() ([]byte, []int)
Deprecated: Use ChargeList.ProtoReflect.Descriptor instead.
func (*ChargeList) GetCharges ¶
func (x *ChargeList) GetCharges() []*NewRefundResponse
func (*ChargeList) GetTotal ¶
func (x *ChargeList) GetTotal() int32
func (*ChargeList) ProtoMessage ¶
func (*ChargeList) ProtoMessage()
func (*ChargeList) ProtoReflect ¶
func (x *ChargeList) ProtoReflect() protoreflect.Message
func (*ChargeList) Reset ¶
func (x *ChargeList) Reset()
func (*ChargeList) String ¶
func (x *ChargeList) String() string
type ChargeStatus ¶
type ChargeStatus int32
const ( ChargeStatus_CHARGE_STATUS_UNSPECIFIED ChargeStatus = 0 ChargeStatus_CHARGE_STATUS_PAID ChargeStatus = 1 ChargeStatus_CHARGE_STATUS_REFUNDED ChargeStatus = 2 )
func (ChargeStatus) Descriptor ¶
func (ChargeStatus) Descriptor() protoreflect.EnumDescriptor
func (ChargeStatus) Enum ¶
func (x ChargeStatus) Enum() *ChargeStatus
func (ChargeStatus) EnumDescriptor
deprecated
func (ChargeStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ChargeStatus.Descriptor instead.
func (ChargeStatus) Number ¶
func (x ChargeStatus) Number() protoreflect.EnumNumber
func (ChargeStatus) String ¶
func (x ChargeStatus) String() string
func (ChargeStatus) Type ¶
func (ChargeStatus) Type() protoreflect.EnumType
type Currency ¶
type Currency int32
const ( Currency_CURRENCY_UNSPECIFIED Currency = 0 Currency_CURRENCY_AFN Currency = 1 Currency_CURRENCY_ALL Currency = 2 Currency_CURRENCY_AMD Currency = 3 Currency_CURRENCY_ANG Currency = 4 Currency_CURRENCY_ARS Currency = 5 Currency_CURRENCY_AUD Currency = 6 Currency_CURRENCY_AWG Currency = 7 Currency_CURRENCY_AZN Currency = 8 Currency_CURRENCY_BAM Currency = 9 Currency_CURRENCY_BBD Currency = 10 Currency_CURRENCY_BGN Currency = 11 Currency_CURRENCY_BHD Currency = 12 Currency_CURRENCY_BMD Currency = 13 Currency_CURRENCY_BND Currency = 14 Currency_CURRENCY_BOB Currency = 15 Currency_CURRENCY_BRL Currency = 16 Currency_CURRENCY_BSD Currency = 17 Currency_CURRENCY_BWP Currency = 18 Currency_CURRENCY_BYN Currency = 19 Currency_CURRENCY_BYR Currency = 20 Currency_CURRENCY_BZD Currency = 21 Currency_CURRENCY_CAD Currency = 22 Currency_CURRENCY_CLP Currency = 23 Currency_CURRENCY_CNY Currency = 24 Currency_CURRENCY_COP Currency = 25 Currency_CURRENCY_CRC Currency = 26 Currency_CURRENCY_CUP Currency = 27 Currency_CURRENCY_CZK Currency = 28 Currency_CURRENCY_DKK Currency = 29 Currency_CURRENCY_DOP Currency = 30 Currency_CURRENCY_DZD Currency = 31 Currency_CURRENCY_EEK Currency = 32 Currency_CURRENCY_EGP Currency = 33 Currency_CURRENCY_EUR Currency = 34 Currency_CURRENCY_FJD Currency = 35 Currency_CURRENCY_FKP Currency = 36 Currency_CURRENCY_GBP Currency = 37 Currency_CURRENCY_GGP Currency = 38 Currency_CURRENCY_GHC Currency = 39 Currency_CURRENCY_GIP Currency = 40 Currency_CURRENCY_GTQ Currency = 41 Currency_CURRENCY_GYD Currency = 42 Currency_CURRENCY_HKD Currency = 43 Currency_CURRENCY_HNL Currency = 44 Currency_CURRENCY_HRK Currency = 45 Currency_CURRENCY_HUF Currency = 46 Currency_CURRENCY_IDR Currency = 47 Currency_CURRENCY_ILS Currency = 48 Currency_CURRENCY_IMP Currency = 49 Currency_CURRENCY_INR Currency = 50 Currency_CURRENCY_IQD Currency = 51 Currency_CURRENCY_IRR Currency = 52 Currency_CURRENCY_ISK Currency = 53 Currency_CURRENCY_JEP Currency = 54 Currency_CURRENCY_JMD Currency = 55 Currency_CURRENCY_JOD Currency = 56 Currency_CURRENCY_JPY Currency = 57 Currency_CURRENCY_KES Currency = 58 Currency_CURRENCY_KGS Currency = 59 Currency_CURRENCY_KHR Currency = 60 Currency_CURRENCY_KPW Currency = 61 Currency_CURRENCY_KRW Currency = 62 Currency_CURRENCY_KWD Currency = 63 Currency_CURRENCY_KYD Currency = 64 Currency_CURRENCY_KZT Currency = 65 Currency_CURRENCY_LAK Currency = 66 Currency_CURRENCY_LBP Currency = 67 Currency_CURRENCY_LKR Currency = 68 Currency_CURRENCY_LRD Currency = 69 Currency_CURRENCY_LTL Currency = 70 Currency_CURRENCY_LVL Currency = 71 Currency_CURRENCY_LYD Currency = 72 Currency_CURRENCY_MAD Currency = 73 Currency_CURRENCY_MKD Currency = 74 Currency_CURRENCY_MNT Currency = 75 Currency_CURRENCY_MUR Currency = 76 Currency_CURRENCY_MXN Currency = 77 Currency_CURRENCY_MWK Currency = 78 Currency_CURRENCY_MYR Currency = 79 Currency_CURRENCY_MZN Currency = 80 Currency_CURRENCY_NAD Currency = 81 Currency_CURRENCY_NGN Currency = 82 Currency_CURRENCY_NIO Currency = 83 Currency_CURRENCY_NOK Currency = 84 Currency_CURRENCY_NPR Currency = 85 Currency_CURRENCY_NZD Currency = 86 Currency_CURRENCY_OMR Currency = 87 Currency_CURRENCY_PAB Currency = 88 Currency_CURRENCY_PEN Currency = 89 Currency_CURRENCY_PHP Currency = 90 Currency_CURRENCY_PKR Currency = 91 Currency_CURRENCY_PLN Currency = 92 Currency_CURRENCY_PYG Currency = 93 Currency_CURRENCY_QAR Currency = 94 Currency_CURRENCY_RON Currency = 95 Currency_CURRENCY_RSD Currency = 96 Currency_CURRENCY_RUB Currency = 97 Currency_CURRENCY_RUR Currency = 98 Currency_CURRENCY_SAR Currency = 99 Currency_CURRENCY_SBD Currency = 100 Currency_CURRENCY_SCR Currency = 101 Currency_CURRENCY_SEK Currency = 102 Currency_CURRENCY_SGD Currency = 103 Currency_CURRENCY_SHP Currency = 104 Currency_CURRENCY_SOS Currency = 105 Currency_CURRENCY_SRD Currency = 106 Currency_CURRENCY_SVC Currency = 107 Currency_CURRENCY_SYP Currency = 108 Currency_CURRENCY_THB Currency = 109 Currency_CURRENCY_TND Currency = 110 Currency_CURRENCY_TRL Currency = 111 Currency_CURRENCY_TRY Currency = 112 Currency_CURRENCY_TTD Currency = 113 Currency_CURRENCY_TWD Currency = 114 Currency_CURRENCY_TZS Currency = 115 Currency_CURRENCY_UAH Currency = 116 Currency_CURRENCY_UGX Currency = 117 Currency_CURRENCY_AED Currency = 118 Currency_CURRENCY_UYU Currency = 119 Currency_CURRENCY_UZS Currency = 120 Currency_CURRENCY_VEF Currency = 121 Currency_CURRENCY_VND Currency = 122 Currency_CURRENCY_XCD Currency = 123 Currency_CURRENCY_YER Currency = 124 Currency_CURRENCY_ZAR Currency = 125 Currency_CURRENCY_ZMW Currency = 126 Currency_CURRENCY_ZWD Currency = 127 Currency_CURRENCY_USD Currency = 128 )
func (Currency) Descriptor ¶
func (Currency) Descriptor() protoreflect.EnumDescriptor
func (Currency) EnumDescriptor
deprecated
func (Currency) Number ¶
func (x Currency) Number() protoreflect.EnumNumber
func (Currency) Type ¶
func (Currency) Type() protoreflect.EnumType
type GetRequest ¶
type GetRequest struct { StoreId string `protobuf:"bytes,1,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetId ¶
func (x *GetRequest) GetId() string
func (*GetRequest) GetStoreId ¶
func (x *GetRequest) GetStoreId() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { Charge *Charge `protobuf:"bytes,1,opt,name=charge,proto3" json:"charge,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetCharge ¶
func (x *GetResponse) GetCharge() *Charge
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type ListRequest ¶
type ListRequest struct { LastKey string `protobuf:"bytes,1,opt,name=last_key,json=lastKey,proto3" json:"last_key,omitempty"` Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` Sort ListRequest_Sort `protobuf:"varint,4,opt,name=sort,proto3,enum=payment.v1.ListRequest_Sort" json:"sort,omitempty"` // contains filtered or unexported fields }
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetLastKey ¶
func (x *ListRequest) GetLastKey() string
func (*ListRequest) GetLimit ¶
func (x *ListRequest) GetLimit() int32
func (*ListRequest) GetSort ¶
func (x *ListRequest) GetSort() ListRequest_Sort
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListRequest_Sort ¶
type ListRequest_Sort int32
const ( ListRequest_SORT_UNSPECIFIED ListRequest_Sort = 0 ListRequest_SORT_NATURAL ListRequest_Sort = 1 ListRequest_SORT_CREATED_DESC ListRequest_Sort = 2 ListRequest_SORT_CREATED_ASC ListRequest_Sort = 3 ListRequest_SORT_UPDATED_DESC ListRequest_Sort = 4 ListRequest_SORT_UPDATED_ASC ListRequest_Sort = 5 )
func (ListRequest_Sort) Descriptor ¶
func (ListRequest_Sort) Descriptor() protoreflect.EnumDescriptor
func (ListRequest_Sort) Enum ¶
func (x ListRequest_Sort) Enum() *ListRequest_Sort
func (ListRequest_Sort) EnumDescriptor
deprecated
func (ListRequest_Sort) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListRequest_Sort.Descriptor instead.
func (ListRequest_Sort) Number ¶
func (x ListRequest_Sort) Number() protoreflect.EnumNumber
func (ListRequest_Sort) String ¶
func (x ListRequest_Sort) String() string
func (ListRequest_Sort) Type ¶
func (ListRequest_Sort) Type() protoreflect.EnumType
type ListResponse ¶
type ListResponse struct { Charges []*Charge `protobuf:"bytes,1,rep,name=charges,proto3" json:"charges,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` LastKey string `protobuf:"bytes,3,opt,name=last_key,json=lastKey,proto3" json:"last_key,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetCharges ¶
func (x *ListResponse) GetCharges() []*Charge
func (*ListResponse) GetLastKey ¶
func (x *ListResponse) GetLastKey() string
func (*ListResponse) GetTotal ¶
func (x *ListResponse) GetTotal() int32
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type NewChargeRequest ¶
type NewChargeRequest struct { StoreId string `protobuf:"bytes,1,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` Currency Currency `protobuf:"varint,2,opt,name=currency,proto3,enum=payment.v1.Currency" json:"currency,omitempty"` Total uint64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"` Card *Card `protobuf:"bytes,4,opt,name=card,proto3" json:"card,omitempty"` Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"` Statement string `protobuf:"bytes,6,opt,name=statement,proto3" json:"statement,omitempty"` PaymentProvider PaymentProvider `` /* 139-byte string literal not displayed */ Metadata map[string]string `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
func (*NewChargeRequest) Descriptor
deprecated
func (*NewChargeRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewChargeRequest.ProtoReflect.Descriptor instead.
func (*NewChargeRequest) GetCard ¶
func (x *NewChargeRequest) GetCard() *Card
func (*NewChargeRequest) GetCurrency ¶
func (x *NewChargeRequest) GetCurrency() Currency
func (*NewChargeRequest) GetEmail ¶
func (x *NewChargeRequest) GetEmail() string
func (*NewChargeRequest) GetMetadata ¶
func (x *NewChargeRequest) GetMetadata() map[string]string
func (*NewChargeRequest) GetPaymentProvider ¶
func (x *NewChargeRequest) GetPaymentProvider() PaymentProvider
func (*NewChargeRequest) GetStatement ¶
func (x *NewChargeRequest) GetStatement() string
func (*NewChargeRequest) GetStoreId ¶
func (x *NewChargeRequest) GetStoreId() string
func (*NewChargeRequest) GetTotal ¶
func (x *NewChargeRequest) GetTotal() uint64
func (*NewChargeRequest) ProtoMessage ¶
func (*NewChargeRequest) ProtoMessage()
func (*NewChargeRequest) ProtoReflect ¶
func (x *NewChargeRequest) ProtoReflect() protoreflect.Message
func (*NewChargeRequest) Reset ¶
func (x *NewChargeRequest) Reset()
func (*NewChargeRequest) String ¶
func (x *NewChargeRequest) String() string
type NewChargeResponse ¶
type NewChargeResponse struct { Charge *Charge `protobuf:"bytes,1,opt,name=charge,proto3" json:"charge,omitempty"` // contains filtered or unexported fields }
func (*NewChargeResponse) Descriptor
deprecated
func (*NewChargeResponse) Descriptor() ([]byte, []int)
Deprecated: Use NewChargeResponse.ProtoReflect.Descriptor instead.
func (*NewChargeResponse) GetCharge ¶
func (x *NewChargeResponse) GetCharge() *Charge
func (*NewChargeResponse) ProtoMessage ¶
func (*NewChargeResponse) ProtoMessage()
func (*NewChargeResponse) ProtoReflect ¶
func (x *NewChargeResponse) ProtoReflect() protoreflect.Message
func (*NewChargeResponse) Reset ¶
func (x *NewChargeResponse) Reset()
func (*NewChargeResponse) String ¶
func (x *NewChargeResponse) String() string
type NewRefundRequest ¶
type NewRefundRequest struct { StoreId string `protobuf:"bytes,1,opt,name=store_id,json=storeId,proto3" json:"store_id,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` Reason RefundReason `protobuf:"varint,4,opt,name=reason,proto3,enum=payment.v1.RefundReason" json:"reason,omitempty"` // contains filtered or unexported fields }
func (*NewRefundRequest) Descriptor
deprecated
func (*NewRefundRequest) Descriptor() ([]byte, []int)
Deprecated: Use NewRefundRequest.ProtoReflect.Descriptor instead.
func (*NewRefundRequest) GetAmount ¶
func (x *NewRefundRequest) GetAmount() uint64
func (*NewRefundRequest) GetId ¶
func (x *NewRefundRequest) GetId() string
func (*NewRefundRequest) GetReason ¶
func (x *NewRefundRequest) GetReason() RefundReason
func (*NewRefundRequest) GetStoreId ¶
func (x *NewRefundRequest) GetStoreId() string
func (*NewRefundRequest) ProtoMessage ¶
func (*NewRefundRequest) ProtoMessage()
func (*NewRefundRequest) ProtoReflect ¶
func (x *NewRefundRequest) ProtoReflect() protoreflect.Message
func (*NewRefundRequest) Reset ¶
func (x *NewRefundRequest) Reset()
func (*NewRefundRequest) String ¶
func (x *NewRefundRequest) String() string
type NewRefundResponse ¶
type NewRefundResponse struct { Charge *Charge `protobuf:"bytes,1,opt,name=charge,proto3" json:"charge,omitempty"` // contains filtered or unexported fields }
func (*NewRefundResponse) Descriptor
deprecated
func (*NewRefundResponse) Descriptor() ([]byte, []int)
Deprecated: Use NewRefundResponse.ProtoReflect.Descriptor instead.
func (*NewRefundResponse) GetCharge ¶
func (x *NewRefundResponse) GetCharge() *Charge
func (*NewRefundResponse) ProtoMessage ¶
func (*NewRefundResponse) ProtoMessage()
func (*NewRefundResponse) ProtoReflect ¶
func (x *NewRefundResponse) ProtoReflect() protoreflect.Message
func (*NewRefundResponse) Reset ¶
func (x *NewRefundResponse) Reset()
func (*NewRefundResponse) String ¶
func (x *NewRefundResponse) String() string
type PaymentProvider ¶
type PaymentProvider int32
const ( PaymentProvider_PAYMENT_PROVIDER_UNSPECIFIED PaymentProvider = 0 PaymentProvider_PAYMENT_PROVIDER_STRIPE PaymentProvider = 1 PaymentProvider_PAYMENT_PROVIDER_PAYPAL PaymentProvider = 2 PaymentProvider_PAYMENT_PROVIDER_BRAINTREE PaymentProvider = 3 )
func (PaymentProvider) Descriptor ¶
func (PaymentProvider) Descriptor() protoreflect.EnumDescriptor
func (PaymentProvider) Enum ¶
func (x PaymentProvider) Enum() *PaymentProvider
func (PaymentProvider) EnumDescriptor
deprecated
func (PaymentProvider) EnumDescriptor() ([]byte, []int)
Deprecated: Use PaymentProvider.Descriptor instead.
func (PaymentProvider) Number ¶
func (x PaymentProvider) Number() protoreflect.EnumNumber
func (PaymentProvider) String ¶
func (x PaymentProvider) String() string
func (PaymentProvider) Type ¶
func (PaymentProvider) Type() protoreflect.EnumType
type Refund ¶
type Refund struct { RefundAmount uint64 `protobuf:"varint,1,opt,name=refund_amount,json=refundAmount,proto3" json:"refund_amount,omitempty"` ProviderRefundId string `protobuf:"bytes,2,opt,name=provider_refund_id,json=providerRefundId,proto3" json:"provider_refund_id,omitempty"` Reason RefundReason `protobuf:"varint,3,opt,name=reason,proto3,enum=payment.v1.RefundReason" json:"reason,omitempty"` Created int64 `protobuf:"varint,4,opt,name=created,proto3" json:"created,omitempty"` // contains filtered or unexported fields }
func (*Refund) Descriptor
deprecated
func (*Refund) GetCreated ¶
func (*Refund) GetProviderRefundId ¶
func (*Refund) GetReason ¶
func (x *Refund) GetReason() RefundReason
func (*Refund) GetRefundAmount ¶
func (*Refund) ProtoMessage ¶
func (*Refund) ProtoMessage()
func (*Refund) ProtoReflect ¶
func (x *Refund) ProtoReflect() protoreflect.Message
type RefundReason ¶
type RefundReason int32
const ( RefundReason_REFUND_REASON_UNSPECIFIED RefundReason = 0 RefundReason_REFUND_REASON_GENERAL_ERROR RefundReason = 1 RefundReason_REFUND_REASON_FRAUD RefundReason = 2 RefundReason_REFUND_REASON_DUPLICATE RefundReason = 3 RefundReason_REFUND_REASON_REQUESTED_BY_CUSTOMER RefundReason = 4 RefundReason_REFUND_REASON_EXPIRED_UNCAPTURED RefundReason = 5 )
func (RefundReason) Descriptor ¶
func (RefundReason) Descriptor() protoreflect.EnumDescriptor
func (RefundReason) Enum ¶
func (x RefundReason) Enum() *RefundReason
func (RefundReason) EnumDescriptor
deprecated
func (RefundReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use RefundReason.Descriptor instead.
func (RefundReason) Number ¶
func (x RefundReason) Number() protoreflect.EnumNumber
func (RefundReason) String ¶
func (x RefundReason) String() string
func (RefundReason) Type ¶
func (RefundReason) Type() protoreflect.EnumType