Debian Codegraph @

go/types/v1/payment_method.pb.go

raw symbols SCIP
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // versions:
3 // protoc-gen-go v1.36.5
4 // protoc (unknown)
5 // source: types/v1/payment_method.proto
6
7 package typesv1
8
9 import (
10 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
13 reflect "reflect"
14 sync "sync"
15 unsafe "unsafe"
16 )
17
18 const (
19 // Verify that this generated code is sufficiently up-to-date.
20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
21 // Verify that runtime/protoimpl is sufficiently up-to-date.
22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
23 )
24
25 type PaymentMethod_Card_Brand int32
26
27 const (
28 PaymentMethod_Card_unknown PaymentMethod_Card_Brand = 0
29 PaymentMethod_Card_amex PaymentMethod_Card_Brand = 1
30 PaymentMethod_Card_diners PaymentMethod_Card_Brand = 2
31 PaymentMethod_Card_discover PaymentMethod_Card_Brand = 3
32 PaymentMethod_Card_jcb PaymentMethod_Card_Brand = 4
33 PaymentMethod_Card_mastercard PaymentMethod_Card_Brand = 5
34 PaymentMethod_Card_unionpay PaymentMethod_Card_Brand = 6
35 PaymentMethod_Card_visa PaymentMethod_Card_Brand = 7
36 )
37
38 // Enum value maps for PaymentMethod_Card_Brand.
39 var (
40 PaymentMethod_Card_Brand_name = map[int32]string{
41 0: "unknown",
42 1: "amex",
43 2: "diners",
44 3: "discover",
45 4: "jcb",
46 5: "mastercard",
47 6: "unionpay",
48 7: "visa",
49 }
50 PaymentMethod_Card_Brand_value = map[string]int32{
51 "unknown": 0,
52 "amex": 1,
53 "diners": 2,
54 "discover": 3,
55 "jcb": 4,
56 "mastercard": 5,
57 "unionpay": 6,
58 "visa": 7,
59 }
60 )
61
62 func (x PaymentMethod_Card_Brand) Enum() *PaymentMethod_Card_Brand {
63 p := new(PaymentMethod_Card_Brand)
64 *p = x
65 return p
66 }
67
68 func (x PaymentMethod_Card_Brand) String() string {
69 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
70 }
71
72 func (PaymentMethod_Card_Brand) Descriptor() protoreflect.EnumDescriptor {
73 return file_types_v1_payment_method_proto_enumTypes[0].Descriptor()
74 }
75
76 func (PaymentMethod_Card_Brand) Type() protoreflect.EnumType {
77 return &file_types_v1_payment_method_proto_enumTypes[0]
78 }
79
80 func (x PaymentMethod_Card_Brand) Number() protoreflect.EnumNumber {
81 return protoreflect.EnumNumber(x)
82 }
83
84 // Deprecated: Use PaymentMethod_Card_Brand.Descriptor instead.
85 func (PaymentMethod_Card_Brand) EnumDescriptor() ([]byte, []int) {
86 return file_types_v1_payment_method_proto_rawDescGZIP(), []int{1, 0, 0}
87 }
88
89 type Address struct {
90 state protoimpl.MessageState `protogen:"open.v1"`
91 City string `protobuf:"bytes,1,opt,name=city,proto3" json:"city,omitempty"`
92 Country string `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"`
93 Line1 string `protobuf:"bytes,3,opt,name=line1,proto3" json:"line1,omitempty"`
94 Line2 string `protobuf:"bytes,4,opt,name=line2,proto3" json:"line2,omitempty"`
95 PostalCode string `protobuf:"bytes,5,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"`
96 State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state,omitempty"`
97 unknownFields protoimpl.UnknownFields
98 sizeCache protoimpl.SizeCache
99 }
100
101 func (x *Address) Reset() {
102 *x = Address{}
103 mi := &file_types_v1_payment_method_proto_msgTypes[0]
104 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
105 ms.StoreMessageInfo(mi)
106 }
107
108 func (x *Address) String() string {
109 return protoimpl.X.MessageStringOf(x)
110 }
111
112 func (*Address) ProtoMessage() {}
113
114 func (x *Address) ProtoReflect() protoreflect.Message {
115 mi := &file_types_v1_payment_method_proto_msgTypes[0]
116 if x != nil {
117 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
118 if ms.LoadMessageInfo() == nil {
119 ms.StoreMessageInfo(mi)
120 }
121 return ms
122 }
123 return mi.MessageOf(x)
124 }
125
126 // Deprecated: Use Address.ProtoReflect.Descriptor instead.
127 func (*Address) Descriptor() ([]byte, []int) {
128 return file_types_v1_payment_method_proto_rawDescGZIP(), []int{0}
129 }
130
131 func (x *Address) GetCity() string {
132 if x != nil {
133 return x.City
134 }
135 return ""
136 }
137
138 func (x *Address) GetCountry() string {
139 if x != nil {
140 return x.Country
141 }
142 return ""
143 }
144
145 func (x *Address) GetLine1() string {
146 if x != nil {
147 return x.Line1
148 }
149 return ""
150 }
151
152 func (x *Address) GetLine2() string {
153 if x != nil {
154 return x.Line2
155 }
156 return ""
157 }
158
159 func (x *Address) GetPostalCode() string {
160 if x != nil {
161 return x.PostalCode
162 }
163 return ""
164 }
165
166 func (x *Address) GetState() string {
167 if x != nil {
168 return x.State
169 }
170 return ""
171 }
172
173 type PaymentMethod struct {
174 state protoimpl.MessageState `protogen:"open.v1"`
175 CreatedAt *timestamppb.Timestamp `protobuf:"bytes,100,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
176 StripeId string `protobuf:"bytes,1,opt,name=stripe_id,json=stripeId,proto3" json:"stripe_id,omitempty"`
177 // Types that are valid to be assigned to Type:
178 //
179 // *PaymentMethod_Card_
180 Type isPaymentMethod_Type `protobuf_oneof:"type"`
181 BillingDetails *PaymentMethod_BillingDetails `protobuf:"bytes,3,opt,name=billing_details,json=billingDetails,proto3" json:"billing_details,omitempty"`
182 unknownFields protoimpl.UnknownFields
183 sizeCache protoimpl.SizeCache
184 }
185
186 func (x *PaymentMethod) Reset() {
187 *x = PaymentMethod{}
188 mi := &file_types_v1_payment_method_proto_msgTypes[1]
189 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
190 ms.StoreMessageInfo(mi)
191 }
192
193 func (x *PaymentMethod) String() string {
194 return protoimpl.X.MessageStringOf(x)
195 }
196
197 func (*PaymentMethod) ProtoMessage() {}
198
199 func (x *PaymentMethod) ProtoReflect() protoreflect.Message {
200 mi := &file_types_v1_payment_method_proto_msgTypes[1]
201 if x != nil {
202 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
203 if ms.LoadMessageInfo() == nil {
204 ms.StoreMessageInfo(mi)
205 }
206 return ms
207 }
208 return mi.MessageOf(x)
209 }
210
211 // Deprecated: Use PaymentMethod.ProtoReflect.Descriptor instead.
212 func (*PaymentMethod) Descriptor() ([]byte, []int) {
213 return file_types_v1_payment_method_proto_rawDescGZIP(), []int{1}
214 }
215
216 func (x *PaymentMethod) GetCreatedAt() *timestamppb.Timestamp {
217 if x != nil {
218 return x.CreatedAt
219 }
220 return nil
221 }
222
223 func (x *PaymentMethod) GetStripeId() string {
224 if x != nil {
225 return x.StripeId
226 }
227 return ""
228 }
229
230 func (x *PaymentMethod) GetType() isPaymentMethod_Type {
231 if x != nil {
232 return x.Type
233 }
234 return nil
235 }
236
237 func (x *PaymentMethod) GetCard() *PaymentMethod_Card {
238 if x != nil {
239 if x, ok := x.Type.(*PaymentMethod_Card_); ok {
240 return x.Card
241 }
242 }
243 return nil
244 }
245
246 func (x *PaymentMethod) GetBillingDetails() *PaymentMethod_BillingDetails {
247 if x != nil {
248 return x.BillingDetails
249 }
250 return nil
251 }
252
253 type isPaymentMethod_Type interface {
254 isPaymentMethod_Type()
255 }
256
257 type PaymentMethod_Card_ struct {
258 Card *PaymentMethod_Card `protobuf:"bytes,200,opt,name=card,proto3,oneof"`
259 }
260
261 func (*PaymentMethod_Card_) isPaymentMethod_Type() {}
262
263 type PaymentMethod_Card struct {
264 state protoimpl.MessageState `protogen:"open.v1"`
265 Brand PaymentMethod_Card_Brand `protobuf:"varint,1,opt,name=brand,proto3,enum=types.v1.PaymentMethod_Card_Brand" json:"brand,omitempty"`
266 Country string `protobuf:"bytes,2,opt,name=country,proto3" json:"country,omitempty"`
267 DisplayBrandh string `protobuf:"bytes,3,opt,name=display_brandh,json=displayBrandh,proto3" json:"display_brandh,omitempty"`
268 ExpMonth int64 `protobuf:"varint,4,opt,name=exp_month,json=expMonth,proto3" json:"exp_month,omitempty"`
269 ExpYear int64 `protobuf:"varint,5,opt,name=exp_year,json=expYear,proto3" json:"exp_year,omitempty"`
270 Last4 string `protobuf:"bytes,6,opt,name=last4,proto3" json:"last4,omitempty"`
271 unknownFields protoimpl.UnknownFields
272 sizeCache protoimpl.SizeCache
273 }
274
275 func (x *PaymentMethod_Card) Reset() {
276 *x = PaymentMethod_Card{}
277 mi := &file_types_v1_payment_method_proto_msgTypes[2]
278 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
279 ms.StoreMessageInfo(mi)
280 }
281
282 func (x *PaymentMethod_Card) String() string {
283 return protoimpl.X.MessageStringOf(x)
284 }
285
286 func (*PaymentMethod_Card) ProtoMessage() {}
287
288 func (x *PaymentMethod_Card) ProtoReflect() protoreflect.Message {
289 mi := &file_types_v1_payment_method_proto_msgTypes[2]
290 if x != nil {
291 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
292 if ms.LoadMessageInfo() == nil {
293 ms.StoreMessageInfo(mi)
294 }
295 return ms
296 }
297 return mi.MessageOf(x)
298 }
299
300 // Deprecated: Use PaymentMethod_Card.ProtoReflect.Descriptor instead.
301 func (*PaymentMethod_Card) Descriptor() ([]byte, []int) {
302 return file_types_v1_payment_method_proto_rawDescGZIP(), []int{1, 0}
303 }
304
305 func (x *PaymentMethod_Card) GetBrand() PaymentMethod_Card_Brand {
306 if x != nil {
307 return x.Brand
308 }
309 return PaymentMethod_Card_unknown
310 }
311
312 func (x *PaymentMethod_Card) GetCountry() string {
313 if x != nil {
314 return x.Country
315 }
316 return ""
317 }
318
319 func (x *PaymentMethod_Card) GetDisplayBrandh() string {
320 if x != nil {
321 return x.DisplayBrandh
322 }
323 return ""
324 }
325
326 func (x *PaymentMethod_Card) GetExpMonth() int64 {
327 if x != nil {
328 return x.ExpMonth
329 }
330 return 0
331 }
332
333 func (x *PaymentMethod_Card) GetExpYear() int64 {
334 if x != nil {
335 return x.ExpYear
336 }
337 return 0
338 }
339
340 func (x *PaymentMethod_Card) GetLast4() string {
341 if x != nil {
342 return x.Last4
343 }
344 return ""
345 }
346
347 type PaymentMethod_BillingDetails struct {
348 state protoimpl.MessageState `protogen:"open.v1"`
349 Address *Address `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
350 Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
351 Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
352 Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"`
353 unknownFields protoimpl.UnknownFields
354 sizeCache protoimpl.SizeCache
355 }
356
357 func (x *PaymentMethod_BillingDetails) Reset() {
358 *x = PaymentMethod_BillingDetails{}
359 mi := &file_types_v1_payment_method_proto_msgTypes[3]
360 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
361 ms.StoreMessageInfo(mi)
362 }
363
364 func (x *PaymentMethod_BillingDetails) String() string {
365 return protoimpl.X.MessageStringOf(x)
366 }
367
368 func (*PaymentMethod_BillingDetails) ProtoMessage() {}
369
370 func (x *PaymentMethod_BillingDetails) ProtoReflect() protoreflect.Message {
371 mi := &file_types_v1_payment_method_proto_msgTypes[3]
372 if x != nil {
373 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
374 if ms.LoadMessageInfo() == nil {
375 ms.StoreMessageInfo(mi)
376 }
377 return ms
378 }
379 return mi.MessageOf(x)
380 }
381
382 // Deprecated: Use PaymentMethod_BillingDetails.ProtoReflect.Descriptor instead.
383 func (*PaymentMethod_BillingDetails) Descriptor() ([]byte, []int) {
384 return file_types_v1_payment_method_proto_rawDescGZIP(), []int{1, 1}
385 }
386
387 func (x *PaymentMethod_BillingDetails) GetAddress() *Address {
388 if x != nil {
389 return x.Address
390 }
391 return nil
392 }
393
394 func (x *PaymentMethod_BillingDetails) GetEmail() string {
395 if x != nil {
396 return x.Email
397 }
398 return ""
399 }
400
401 func (x *PaymentMethod_BillingDetails) GetName() string {
402 if x != nil {
403 return x.Name
404 }
405 return ""
406 }
407
408 func (x *PaymentMethod_BillingDetails) GetPhone() string {
409 if x != nil {
410 return x.Phone
411 }
412 return ""
413 }
414
415 var File_types_v1_payment_method_proto protoreflect.FileDescriptor
416
417 var file_types_v1_payment_method_proto_rawDesc = string([]byte{
418 0x0a, 0x1d, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x79, 0x6d, 0x65,
419 0x6e, 0x74, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
420 0x08, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
421 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73,
422 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9a, 0x01, 0x0a, 0x07, 0x41,
423 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x74, 0x79, 0x18, 0x01,
424 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f,
425 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x75,
426 0x6e, 0x74, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x31, 0x18, 0x03, 0x20,
427 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x31, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x69,
428 0x6e, 0x65, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x65, 0x32,
429 0x12, 0x1f, 0x0a, 0x0b, 0x70, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18,
430 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x43, 0x6f, 0x64,
431 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
432 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0xb1, 0x05, 0x0a, 0x0d, 0x50, 0x61, 0x79, 0x6d,
433 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65,
434 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
435 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
436 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74,
437 0x65, 0x64, 0x41, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x74, 0x72, 0x69, 0x70, 0x65, 0x5f, 0x69,
438 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x74, 0x72, 0x69, 0x70, 0x65, 0x49,
439 0x64, 0x12, 0x33, 0x0a, 0x04, 0x63, 0x61, 0x72, 0x64, 0x18, 0xc8, 0x01, 0x20, 0x01, 0x28, 0x0b,
440 0x32, 0x1c, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6d,
441 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x48, 0x00,
442 0x52, 0x04, 0x63, 0x61, 0x72, 0x64, 0x12, 0x4f, 0x0a, 0x0f, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e,
443 0x67, 0x5f, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
444 0x26, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6d, 0x65,
445 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x2e, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67,
446 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x52, 0x0e, 0x62, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67,
447 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x1a, 0xba, 0x02, 0x0a, 0x04, 0x43, 0x61, 0x72, 0x64,
448 0x12, 0x38, 0x0a, 0x05, 0x62, 0x72, 0x61, 0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32,
449 0x22, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x61, 0x79, 0x6d, 0x65,
450 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x2e, 0x43, 0x61, 0x72, 0x64, 0x2e, 0x42, 0x72,
451 0x61, 0x6e, 0x64, 0x52, 0x05, 0x62, 0x72, 0x61, 0x6e, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f,
452 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x75,
453 0x6e, 0x74, 0x72, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f,
454 0x62, 0x72, 0x61, 0x6e, 0x64, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x69,
455 0x73, 0x70, 0x6c, 0x61, 0x79, 0x42, 0x72, 0x61, 0x6e, 0x64, 0x68, 0x12, 0x1b, 0x0a, 0x09, 0x65,
456 0x78, 0x70, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08,
457 0x65, 0x78, 0x70, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x65, 0x78, 0x70, 0x5f,
458 0x79, 0x65, 0x61, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x65, 0x78, 0x70, 0x59,
459 0x65, 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x61, 0x73, 0x74, 0x34, 0x18, 0x06, 0x20, 0x01,
460 0x28, 0x09, 0x52, 0x05, 0x6c, 0x61, 0x73, 0x74, 0x34, 0x22, 0x69, 0x0a, 0x05, 0x42, 0x72, 0x61,
461 0x6e, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x10, 0x00, 0x12,
462 0x08, 0x0a, 0x04, 0x61, 0x6d, 0x65, 0x78, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x64, 0x69, 0x6e,
463 0x65, 0x72, 0x73, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x76, 0x65,
464 0x72, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x6a, 0x63, 0x62, 0x10, 0x04, 0x12, 0x0e, 0x0a, 0x0a,
465 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x63, 0x61, 0x72, 0x64, 0x10, 0x05, 0x12, 0x0c, 0x0a, 0x08,
466 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x70, 0x61, 0x79, 0x10, 0x06, 0x12, 0x08, 0x0a, 0x04, 0x76, 0x69,
467 0x73, 0x61, 0x10, 0x07, 0x1a, 0x7d, 0x0a, 0x0e, 0x42, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x44,
468 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x2b, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
469 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e,
470 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72,
471 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01,
472 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
473 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a,
474 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x70, 0x68,
475 0x6f, 0x6e, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x42, 0x92, 0x01, 0x0a, 0x0c,
476 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x12, 0x50, 0x61,
477 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x50, 0x72, 0x6f, 0x74, 0x6f,
478 0x50, 0x01, 0x5a, 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x68,
479 0x75, 0x6d, 0x61, 0x6e, 0x6c, 0x6f, 0x67, 0x69, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f,
480 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x74, 0x79, 0x70, 0x65, 0x73, 0x76,
481 0x31, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x08, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e,
482 0x56, 0x31, 0xca, 0x02, 0x08, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x14,
483 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61,
484 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x09, 0x54, 0x79, 0x70, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x31,
485 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
486 })
487
488 var (
489 file_types_v1_payment_method_proto_rawDescOnce sync.Once
490 file_types_v1_payment_method_proto_rawDescData []byte
491 )
492
493 func file_types_v1_payment_method_proto_rawDescGZIP() []byte {
494 file_types_v1_payment_method_proto_rawDescOnce.Do(func() {
495 file_types_v1_payment_method_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_types_v1_payment_method_proto_rawDesc), len(file_types_v1_payment_method_proto_rawDesc)))
496 })
497 return file_types_v1_payment_method_proto_rawDescData
498 }
499
500 var file_types_v1_payment_method_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
501 var file_types_v1_payment_method_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
502 var file_types_v1_payment_method_proto_goTypes = []any{
503 (PaymentMethod_Card_Brand)(0), // 0: types.v1.PaymentMethod.Card.Brand
504 (*Address)(nil), // 1: types.v1.Address
505 (*PaymentMethod)(nil), // 2: types.v1.PaymentMethod
506 (*PaymentMethod_Card)(nil), // 3: types.v1.PaymentMethod.Card
507 (*PaymentMethod_BillingDetails)(nil), // 4: types.v1.PaymentMethod.BillingDetails
508 (*timestamppb.Timestamp)(nil), // 5: google.protobuf.Timestamp
509 }
510 var file_types_v1_payment_method_proto_depIdxs = []int32{
511 5, // 0: types.v1.PaymentMethod.created_at:type_name -> google.protobuf.Timestamp
512 3, // 1: types.v1.PaymentMethod.card:type_name -> types.v1.PaymentMethod.Card
513 4, // 2: types.v1.PaymentMethod.billing_details:type_name -> types.v1.PaymentMethod.BillingDetails
514 0, // 3: types.v1.PaymentMethod.Card.brand:type_name -> types.v1.PaymentMethod.Card.Brand
515 1, // 4: types.v1.PaymentMethod.BillingDetails.address:type_name -> types.v1.Address
516 5, // [5:5] is the sub-list for method output_type
517 5, // [5:5] is the sub-list for method input_type
518 5, // [5:5] is the sub-list for extension type_name
519 5, // [5:5] is the sub-list for extension extendee
520 0, // [0:5] is the sub-list for field type_name
521 }
522
523 func init() { file_types_v1_payment_method_proto_init() }
524 func file_types_v1_payment_method_proto_init() {
525 if File_types_v1_payment_method_proto != nil {
526 return
527 }
528 file_types_v1_payment_method_proto_msgTypes[1].OneofWrappers = []any{
529 (*PaymentMethod_Card_)(nil),
530 }
531 type x struct{}
532 out := protoimpl.TypeBuilder{
533 File: protoimpl.DescBuilder{
534 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
535 RawDescriptor: unsafe.Slice(unsafe.StringData(file_types_v1_payment_method_proto_rawDesc), len(file_types_v1_payment_method_proto_rawDesc)),
536 NumEnums: 1,
537 NumMessages: 4,
538 NumExtensions: 0,
539 NumServices: 0,
540 },
541 GoTypes: file_types_v1_payment_method_proto_goTypes,
542 DependencyIndexes: file_types_v1_payment_method_proto_depIdxs,
543 EnumInfos: file_types_v1_payment_method_proto_enumTypes,
544 MessageInfos: file_types_v1_payment_method_proto_msgTypes,
545 }.Build()
546 File_types_v1_payment_method_proto = out.File
547 file_types_v1_payment_method_proto_goTypes = nil
548 file_types_v1_payment_method_proto_depIdxs = nil
549 }