payment.pb.go 107 KB
Newer Older
Lukas Möller's avatar
update  
Lukas Möller committed
1
2
3
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.26.0
Go Protoc Bot's avatar
update    
Go Protoc Bot committed
4
// 	protoc        v3.18.1
Lukas Möller's avatar
update  
Lukas Möller committed
5
6
7
8
9
// source: vseth/sip/payment/payment.proto

package payment

import (
Go Protoc Bot's avatar
update    
Go Protoc Bot committed
10
	empty "github.com/golang/protobuf/ptypes/empty"
Lukas Möller's avatar
update  
Lukas Möller committed
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
	timestamp "github.com/golang/protobuf/ptypes/timestamp"
	money "gitlab.ethz.ch/vseth/0403-isg/libraries/protostub-golang/vseth/type/money"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
)

const (
	// Verify that this generated code is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	// Verify that runtime/protoimpl is sufficiently up-to-date.
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

// PaymentMethod specifies the supported payment methods.
// This does not mean that all the payment methods are active.
type PaymentMethod int32

const (
	PaymentMethod_PAYMENT_METHOD_UNSPECIFIED PaymentMethod = 0
	PaymentMethod_GUTHABEN                   PaymentMethod = 1
	PaymentMethod_PAYREXX                    PaymentMethod = 10
	// @@experimental by isg till 12.11.2021
	PaymentMethod_DUMMY PaymentMethod = 99
)

// Enum value maps for PaymentMethod.
var (
	PaymentMethod_name = map[int32]string{
		0:  "PAYMENT_METHOD_UNSPECIFIED",
		1:  "GUTHABEN",
		10: "PAYREXX",
		99: "DUMMY",
	}
	PaymentMethod_value = map[string]int32{
		"PAYMENT_METHOD_UNSPECIFIED": 0,
		"GUTHABEN":                   1,
		"PAYREXX":                    10,
		"DUMMY":                      99,
	}
)

func (x PaymentMethod) Enum() *PaymentMethod {
	p := new(PaymentMethod)
	*p = x
	return p
}

func (x PaymentMethod) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (PaymentMethod) Descriptor() protoreflect.EnumDescriptor {
	return file_vseth_sip_payment_payment_proto_enumTypes[0].Descriptor()
}

func (PaymentMethod) Type() protoreflect.EnumType {
	return &file_vseth_sip_payment_payment_proto_enumTypes[0]
}

func (x PaymentMethod) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use PaymentMethod.Descriptor instead.
func (PaymentMethod) EnumDescriptor() ([]byte, []int) {
	return file_vseth_sip_payment_payment_proto_rawDescGZIP(), []int{0}
}

// Status describes the current status the order is in.
type Order_Status int32

const (
	Order_STATUS_UNSPECIFIED Order_Status = 0
	Order_CREATED            Order_Status = 1 // created
	Order_CLAIMED            Order_Status = 2 // user has claimed the order successfully
	Order_OPEN               Order_Status = 3 // products have been reserved (the order is now ready to be paid)
	Order_PAID               Order_Status = 4 // once the order has been settled
	Order_EXPIRED            Order_Status = 5 // expired
	Order_FAILED             Order_Status = 6 // reached an unresolvable state (e.g. contains product that cannot be bought by the user)
)

// Enum value maps for Order_Status.
var (
	Order_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "CREATED",
		2: "CLAIMED",
		3: "OPEN",
		4: "PAID",
		5: "EXPIRED",
		6: "FAILED",
	}
	Order_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"CREATED":            1,
		"CLAIMED":            2,
		"OPEN":               3,
		"PAID":               4,
		"EXPIRED":            5,
		"FAILED":             6,
	}
)

func (x Order_Status) Enum() *Order_Status {
	p := new(Order_Status)
	*p = x
	return p
}

func (x Order_Status) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Order_Status) Descriptor() protoreflect.EnumDescriptor {
	return file_vseth_sip_payment_payment_proto_enumTypes[1].Descriptor()
}

func (Order_Status) Type() protoreflect.EnumType {
	return &file_vseth_sip_payment_payment_proto_enumTypes[1]
}

func (x Order_Status) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Order_Status.Descriptor instead.
func (Order_Status) EnumDescriptor() ([]byte, []int) {
	return file_vseth_sip_payment_payment_proto_rawDescGZIP(), []int{0, 0}
}

// View describes different views of the resource.
type Order_View int32

const (
	// BASIC will return the resource without the following attributes: items
	Order_BASIC Order_View = 0
	// FULL will return the complete resource.
	Order_FULL Order_View = 1
	// WITH_ITEMS will return the BASIC resource with items. (currently equivalent to full)
	Order_WITH_ITEMS Order_View = 2
)

// Enum value maps for Order_View.
var (
	Order_View_name = map[int32]string{
		0: "BASIC",
		1: "FULL",
		2: "WITH_ITEMS",
	}
	Order_View_value = map[string]int32{
		"BASIC":      0,
		"FULL":       1,
		"WITH_ITEMS": 2,
	}
)

func (x Order_View) Enum() *Order_View {
	p := new(Order_View)
	*p = x
	return p
}

func (x Order_View) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Order_View) Descriptor() protoreflect.EnumDescriptor {
	return file_vseth_sip_payment_payment_proto_enumTypes[2].Descriptor()
}

func (Order_View) Type() protoreflect.EnumType {
	return &file_vseth_sip_payment_payment_proto_enumTypes[2]
}

func (x Order_View) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Order_View.Descriptor instead.
func (Order_View) EnumDescriptor() ([]byte, []int) {
	return file_vseth_sip_payment_payment_proto_rawDescGZIP(), []int{0, 1}
}

// SortBy specifies the sort order.
type Order_Filter_SortBy int32

const (
	Order_Filter_NAME         Order_Filter_SortBy = 0
	Order_Filter_NUMBER       Order_Filter_SortBy = 1
	Order_Filter_STATUS       Order_Filter_SortBy = 2
	Order_Filter_CREATED_TIME Order_Filter_SortBy = 3
	Order_Filter_EXPIRE_TIME  Order_Filter_SortBy = 4
	Order_Filter_UPDATE_TIME  Order_Filter_SortBy = 5
	Order_Filter_PAID_TIME    Order_Filter_SortBy = 6
	Order_Filter_CREATOR      Order_Filter_SortBy = 7
	Order_Filter_OPERATOR     Order_Filter_SortBy = 8
	Order_Filter_CUSTOMER     Order_Filter_SortBy = 9
)

// Enum value maps for Order_Filter_SortBy.
var (
	Order_Filter_SortBy_name = map[int32]string{
		0: "NAME",
		1: "NUMBER",
		2: "STATUS",
		3: "CREATED_TIME",
		4: "EXPIRE_TIME",
		5: "UPDATE_TIME",
		6: "PAID_TIME",
		7: "CREATOR",
		8: "OPERATOR",
		9: "CUSTOMER",
	}
	Order_Filter_SortBy_value = map[string]int32{
		"NAME":         0,
		"NUMBER":       1,
		"STATUS":       2,
		"CREATED_TIME": 3,
		"EXPIRE_TIME":  4,
		"UPDATE_TIME":  5,
		"PAID_TIME":    6,
		"CREATOR":      7,
		"OPERATOR":     8,
		"CUSTOMER":     9,
	}
)

func (x Order_Filter_SortBy) Enum() *Order_Filter_SortBy {
	p := new(Order_Filter_SortBy)
	*p = x
	return p
}

func (x Order_Filter_SortBy) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (Order_Filter_SortBy) Descriptor() protoreflect.EnumDescriptor {
	return file_vseth_sip_payment_payment_proto_enumTypes[3].Descriptor()
}

func (Order_Filter_SortBy) Type() protoreflect.EnumType {
	return &file_vseth_sip_payment_payment_proto_enumTypes[3]
}

func (x Order_Filter_SortBy) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use Order_Filter_SortBy.Descriptor instead.
func (Order_Filter_SortBy) EnumDescriptor() ([]byte, []int) {
	return file_vseth_sip_payment_payment_proto_rawDescGZIP(), []int{0, 0, 0}
}

// Status describes the status the payment gateway is currently in.
type PaymentGateway_Status int32

const (
	PaymentGateway_STATUS_UNSPECIFIED PaymentGateway_Status = 0
	PaymentGateway_OPEN               PaymentGateway_Status = 1
	PaymentGateway_PAID               PaymentGateway_Status = 2
	PaymentGateway_EXPIRED            PaymentGateway_Status = 3
)

// Enum value maps for PaymentGateway_Status.
var (
	PaymentGateway_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "OPEN",
		2: "PAID",
		3: "EXPIRED",
	}
	PaymentGateway_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"OPEN":               1,
		"PAID":               2,
		"EXPIRED":            3,
	}
)

func (x PaymentGateway_Status) Enum() *PaymentGateway_Status {
	p := new(PaymentGateway_Status)
	*p = x
	return p
}

func (x PaymentGateway_Status) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (PaymentGateway_Status) Descriptor() protoreflect.EnumDescriptor {
	return file_vseth_sip_payment_payment_proto_enumTypes[4].Descriptor()
}

func (PaymentGateway_Status) Type() protoreflect.EnumType {
	return &file_vseth_sip_payment_payment_proto_enumTypes[4]
}

func (x PaymentGateway_Status) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use PaymentGateway_Status.Descriptor instead.
func (PaymentGateway_Status) EnumDescriptor() ([]byte, []int) {
	return file_vseth_sip_payment_payment_proto_rawDescGZIP(), []int{8, 0}
}

// SortBy specifies the sort order.
type PaymentGateway_Filter_SortBy int32

const (
	PaymentGateway_Filter_NAME         PaymentGateway_Filter_SortBy = 0
	PaymentGateway_Filter_STATUS       PaymentGateway_Filter_SortBy = 1
	PaymentGateway_Filter_CREATED_TIME PaymentGateway_Filter_SortBy = 2
	PaymentGateway_Filter_EXPIRE_TIME  PaymentGateway_Filter_SortBy = 3
	PaymentGateway_Filter_UPDATE_TIME  PaymentGateway_Filter_SortBy = 4
	PaymentGateway_Filter_PAID_TIME    PaymentGateway_Filter_SortBy = 5
)

// Enum value maps for PaymentGateway_Filter_SortBy.
var (
	PaymentGateway_Filter_SortBy_name = map[int32]string{
		0: "NAME",
		1: "STATUS",
		2: "CREATED_TIME",
		3: "EXPIRE_TIME",
		4: "UPDATE_TIME",
		5: "PAID_TIME",
	}
	PaymentGateway_Filter_SortBy_value = map[string]int32{
		"NAME":         0,
		"STATUS":       1,
		"CREATED_TIME": 2,
		"EXPIRE_TIME":  3,
		"UPDATE_TIME":  4,
		"PAID_TIME":    5,
	}
)

func (x PaymentGateway_Filter_SortBy) Enum() *PaymentGateway_Filter_SortBy {
	p := new(PaymentGateway_Filter_SortBy)
	*p = x
	return p
}

func (x PaymentGateway_Filter_SortBy) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (PaymentGateway_Filter_SortBy) Descriptor() protoreflect.EnumDescriptor {
	return file_vseth_sip_payment_payment_proto_enumTypes[5].Descriptor()
}

func (PaymentGateway_Filter_SortBy) Type() protoreflect.EnumType {
	return &file_vseth_sip_payment_payment_proto_enumTypes[5]
}

func (x PaymentGateway_Filter_SortBy) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Use PaymentGateway_Filter_SortBy.Descriptor instead.
func (PaymentGateway_Filter_SortBy) EnumDescriptor() ([]byte, []int) {
	return file_vseth_sip_payment_payment_proto_rawDescGZIP(), []int{8, 0, 0}
}

type Order struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Output only. The name of the resource.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. The reference number of the order.
	Number string `protobuf:"bytes,2,opt,name=number,proto3" json:"number,omitempty"`
	// Output only. The current status of the order.
	Status Order_Status `protobuf:"varint,3,opt,name=status,proto3,enum=vseth.sip.payment.Order_Status" json:"status,omitempty"`
	// Output only. Whether or not the order has been booked in the accounting api.
	Booked bool `protobuf:"varint,17,opt,name=booked,proto3" json:"booked,omitempty"`
	// Output only. The time the order was created.
	CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Output only. The time after which the order can no longer be settled.
	// Equivalent to the time the first reservations of this order expires.
	ExpireTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
	// Output only. The time at which the last update occurred.
	UpdateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Output only. The time the order was paid.
	PaidTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=paid_time,json=paidTime,proto3" json:"paid_time,omitempty"`
	// Output only. The identifier of the user which created the order.
	Initiator string `protobuf:"bytes,8,opt,name=initiator,proto3" json:"initiator,omitempty"`
	// Output only. The identifier of the user that authenticated to settle the order.
	// The operator can differ from the customer (e.g. operator at a POS)
	Operator string `protobuf:"bytes,9,opt,name=operator,proto3" json:"operator,omitempty"`
	// Output only. The identifier of the user who claimed this order.
	// The customer might be unknown.
	Customer string `protobuf:"bytes,10,opt,name=customer,proto3" json:"customer,omitempty"`
	// Output only. The URL to the order checkout page. The user should be redirected
	// to this URL.
	OrderUrl string `protobuf:"bytes,11,opt,name=order_url,json=orderUrl,proto3" json:"order_url,omitempty"`
	// Required. This is the URL the user might open, after paying the item.
	CallbackUrl string `protobuf:"bytes,12,opt,name=callback_url,json=callbackUrl,proto3" json:"callback_url,omitempty"`
	// @@experimental by isg till 12.11.2021
	// Output only
	// URL to the receipt for this order. Only specified for paid orders.
	ReceiptUrl string `protobuf:"bytes,18,opt,name=receipt_url,json=receiptUrl,proto3" json:"receipt_url,omitempty"`
	// Required. The items of the order.
	Items []*OrderItem `protobuf:"bytes,13,rep,name=items,proto3" json:"items,omitempty"`
	// Output only.
	PaymentMethods []PaymentMethod `protobuf:"varint,14,rep,packed,name=payment_methods,json=paymentMethods,proto3,enum=vseth.sip.payment.PaymentMethod" json:"payment_methods,omitempty"`
	// Output only. Total price of the order.
	Total *money.Money `protobuf:"bytes,15,opt,name=total,proto3" json:"total,omitempty"`
	// Output only.
	View Order_View `protobuf:"varint,16,opt,name=view,proto3,enum=vseth.sip.payment.Order_View" json:"view,omitempty"`
}

func (x *Order) Reset() {
	*x = Order{}
	if protoimpl.UnsafeEnabled {
		mi := &file_vseth_sip_payment_payment_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *Order) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*Order) ProtoMessage() {}

func (x *Order) ProtoReflect() protoreflect.Message {
	mi := &file_vseth_sip_payment_payment_proto_msgTypes[0]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use Order.ProtoReflect.Descriptor instead.
func (*Order) Descriptor() ([]byte, []int) {
	return file_vseth_sip_payment_payment_proto_rawDescGZIP(), []int{0}
}

func (x *Order) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *Order) GetNumber() string {
	if x != nil {
		return x.Number
	}
	return ""
}

func (x *Order) GetStatus() Order_Status {
	if x != nil {
		return x.Status
	}
	return Order_STATUS_UNSPECIFIED
}

func (x *Order) GetBooked() bool {
	if x != nil {
		return x.Booked
	}
	return false
}

func (x *Order) GetCreateTime() *timestamp.Timestamp {
	if x != nil {
		return x.CreateTime
	}
	return nil
}

func (x *Order) GetExpireTime() *timestamp.Timestamp {
	if x != nil {
		return x.ExpireTime
	}
	return nil
}

func (x *Order) GetUpdateTime() *timestamp.Timestamp {
	if x != nil {
		return x.UpdateTime
	}
	return nil
}

func (x *Order) GetPaidTime() *timestamp.Timestamp {
	if x != nil {
		return x.PaidTime
	}
	return nil
}

func (x *Order) GetInitiator() string {
	if x != nil {
		return x.Initiator
	}
	return ""
}

func (x *Order) GetOperator() string {
	if x != nil {
		return x.Operator
	}
	return ""
}

func (x *Order) GetCustomer() string {
	if x != nil {
		return x.Customer
	}
	return ""
}

func (x *Order) GetOrderUrl() string {
	if x != nil {
		return x.OrderUrl
	}
	return ""
}

func (x *Order) GetCallbackUrl() string {
	if x != nil {
		return x.CallbackUrl
	}
	return ""
}

func (x *Order) GetReceiptUrl() string {
	if x != nil {
		return x.ReceiptUrl
	}
	return ""
}

func (x *Order) GetItems() []*OrderItem {
	if x != nil {
		return x.Items
	}
	return nil
}

func (x *Order) GetPaymentMethods() []PaymentMethod {
	if x != nil {
		return x.PaymentMethods
	}
	return nil
}

func (x *Order) GetTotal() *money.Money {
	if x != nil {
		return x.Total
	}
	return nil
}

func (x *Order) GetView() Order_View {
	if x != nil {
		return x.View
	}
	return Order_BASIC
}

type OrderItem struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Output only. The name of the resource.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Output only. The name of the order this item is associated with.
	Order string `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"`
	// Output only. The position number of this item.
	Number int32 `protobuf:"varint,3,opt,name=number,proto3" json:"number,omitempty"`
	// Output only. The user presentable name of the item in the specified language.
	DisplayName string `protobuf:"bytes,4,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Required. The resource name of the product.
	Product string `protobuf:"bytes,5,opt,name=product,proto3" json:"product,omitempty"`
	// Output only. The amount that one item costs.
	ItemAmount *money.Money `protobuf:"bytes,6,opt,name=item_amount,json=itemAmount,proto3" json:"item_amount,omitempty"`
	// Output only. The amount of VAT on this item.
	VatAmount *money.Money `protobuf:"bytes,7,opt,name=vat_amount,json=vatAmount,proto3" json:"vat_amount,omitempty"`
	// Output only. The code of the vat that has been applied.
	VatCode string `protobuf:"bytes,8,opt,name=vat_code,json=vatCode,proto3" json:"vat_code,omitempty"`
	// Output only.
	// Example: 7.7 means there is a vat of 7.7% in this item.
	VatPercent float32 `protobuf:"fixed32,9,opt,name=vat_percent,json=vatPercent,proto3" json:"vat_percent,omitempty"`
	// Output only. The BCP-47 language code of the OrderItem.
	// Example: de-CH or en-US
	LanguageCode string `protobuf:"bytes,10,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// Output only. Whether or not the order item has been refunded.
	Refunded bool `protobuf:"varint,11,opt,name=refunded,proto3" json:"refunded,omitempty"`
}

func (x *OrderItem) Reset() {
	*x = OrderItem{}
	if protoimpl.UnsafeEnabled {
		mi := &file_vseth_sip_payment_payment_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *OrderItem) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*OrderItem) ProtoMessage() {}

func (x *OrderItem) ProtoReflect() protoreflect.Message {
	mi := &file_vseth_sip_payment_payment_proto_msgTypes[1]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use OrderItem.ProtoReflect.Descriptor instead.
func (*OrderItem) Descriptor() ([]byte, []int) {
	return file_vseth_sip_payment_payment_proto_rawDescGZIP(), []int{1}
}

func (x *OrderItem) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *OrderItem) GetOrder() string {
	if x != nil {
		return x.Order
	}
	return ""
}

func (x *OrderItem) GetNumber() int32 {
	if x != nil {
		return x.Number
	}
	return 0
}

func (x *OrderItem) GetDisplayName() string {
	if x != nil {
		return x.DisplayName
	}
	return ""
}

func (x *OrderItem) GetProduct() string {
	if x != nil {
		return x.Product
	}
	return ""
}

func (x *OrderItem) GetItemAmount() *money.Money {
	if x != nil {
		return x.ItemAmount
	}
	return nil
}

func (x *OrderItem) GetVatAmount() *money.Money {
	if x != nil {
		return x.VatAmount
	}
	return nil
}

func (x *OrderItem) GetVatCode() string {
	if x != nil {
		return x.VatCode
	}
	return ""
}

func (x *OrderItem) GetVatPercent() float32 {
	if x != nil {
		return x.VatPercent
	}
	return 0
}

func (x *OrderItem) GetLanguageCode() string {
	if x != nil {
		return x.LanguageCode
	}
	return ""
}

func (x *OrderItem) GetRefunded() bool {
	if x != nil {
		return x.Refunded
	}
	return false
}

type ListOrdersRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Filter    *Order_Filter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
	PageSize  int32         `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken string        `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	View      Order_View    `protobuf:"varint,4,opt,name=view,proto3,enum=vseth.sip.payment.Order_View" json:"view,omitempty"`
	// Specify the BCP-47 language code of the order items.
	// Example: de-CH
	LanguageCode string `protobuf:"bytes,5,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// @@experimental by isg till 12.11.2021
	// Required. Whether or not to refresh the status of related gateways.
	// This may lead to requests to other services and could take a while.
	RefreshGatewayStatus bool `protobuf:"varint,6,opt,name=refresh_gateway_status,json=refreshGatewayStatus,proto3" json:"refresh_gateway_status,omitempty"`
}

func (x *ListOrdersRequest) Reset() {
	*x = ListOrdersRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_vseth_sip_payment_payment_proto_msgTypes[2]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *ListOrdersRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListOrdersRequest) ProtoMessage() {}

func (x *ListOrdersRequest) ProtoReflect() protoreflect.Message {
	mi := &file_vseth_sip_payment_payment_proto_msgTypes[2]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ListOrdersRequest.ProtoReflect.Descriptor instead.
func (*ListOrdersRequest) Descriptor() ([]byte, []int) {
	return file_vseth_sip_payment_payment_proto_rawDescGZIP(), []int{2}
}

func (x *ListOrdersRequest) GetFilter() *Order_Filter {
	if x != nil {
		return x.Filter
	}
	return nil
}

func (x *ListOrdersRequest) GetPageSize() int32 {
	if x != nil {
		return x.PageSize
	}
	return 0
}

func (x *ListOrdersRequest) GetPageToken() string {
	if x != nil {
		return x.PageToken
	}
	return ""
}

func (x *ListOrdersRequest) GetView() Order_View {
	if x != nil {
		return x.View
	}
	return Order_BASIC
}

func (x *ListOrdersRequest) GetLanguageCode() string {
	if x != nil {
		return x.LanguageCode
	}
	return ""
}

func (x *ListOrdersRequest) GetRefreshGatewayStatus() bool {
	if x != nil {
		return x.RefreshGatewayStatus
	}
	return false
}

type ListOrdersResponse struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Orders        []*Order `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"`
	NextPageToken string   `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// The total count of items in the list irrespective of pagination.
	TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
}

func (x *ListOrdersResponse) Reset() {
	*x = ListOrdersResponse{}
	if protoimpl.UnsafeEnabled {
		mi := &file_vseth_sip_payment_payment_proto_msgTypes[3]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *ListOrdersResponse) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*ListOrdersResponse) ProtoMessage() {}

func (x *ListOrdersResponse) ProtoReflect() protoreflect.Message {
	mi := &file_vseth_sip_payment_payment_proto_msgTypes[3]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use ListOrdersResponse.ProtoReflect.Descriptor instead.
func (*ListOrdersResponse) Descriptor() ([]byte, []int) {
	return file_vseth_sip_payment_payment_proto_rawDescGZIP(), []int{3}
}

func (x *ListOrdersResponse) GetOrders() []*Order {
	if x != nil {
		return x.Orders
	}
	return nil
}

func (x *ListOrdersResponse) GetNextPageToken() string {
	if x != nil {
		return x.NextPageToken
	}
	return ""
}

func (x *ListOrdersResponse) GetTotalSize() int32 {
	if x != nil {
		return x.TotalSize
	}
	return 0
}

type CreateOrderRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	Order *Order `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"`
}

func (x *CreateOrderRequest) Reset() {
	*x = CreateOrderRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_vseth_sip_payment_payment_proto_msgTypes[4]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *CreateOrderRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*CreateOrderRequest) ProtoMessage() {}

func (x *CreateOrderRequest) ProtoReflect() protoreflect.Message {
	mi := &file_vseth_sip_payment_payment_proto_msgTypes[4]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use CreateOrderRequest.ProtoReflect.Descriptor instead.
func (*CreateOrderRequest) Descriptor() ([]byte, []int) {
	return file_vseth_sip_payment_payment_proto_rawDescGZIP(), []int{4}
}

func (x *CreateOrderRequest) GetOrder() *Order {
	if x != nil {
		return x.Order
	}
	return nil
}

type GetOrderRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields

	// Required. The identifier of the order.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The view of the order requested.
	View Order_View `protobuf:"varint,2,opt,name=view,proto3,enum=vseth.sip.payment.Order_View" json:"view,omitempty"`
	// Specify the BCP-47 language code of the order items.
	// Example: de-CH
	LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// @@experimental by isg till 12.11.2021
	// Claim the order if it has not been claimed already.
	Claim bool `protobuf:"varint,4,opt,name=claim,proto3" json:"claim,omitempty"`
}

func (x *GetOrderRequest) Reset() {
	*x = GetOrderRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_vseth_sip_payment_payment_proto_msgTypes[5]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}

func (x *GetOrderRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*GetOrderRequest) ProtoMessage() {}

func (x *GetOrderRequest) ProtoReflect() protoreflect.Message {
	mi := &file_vseth_sip_payment_payment_proto_msgTypes[5]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}

// Deprecated: Use GetOrderRequest.ProtoReflect.Descriptor instead.
func (*GetOrderRequest) Descriptor() ([]byte, []int) {
	return file_vseth_sip_payment_payment_proto_rawDescGZIP(), []int{5}
}

func (x *GetOrderRequest) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}

func (x *GetOrderRequest) GetView() Order_View {
	if x != nil {
		return x.View
	}
	return Order_BASIC
}

func (x *GetOrderRequest) GetLanguageCode() string {
	if x != nil {
		return x.LanguageCode
	}
	return ""
}

func (x *GetOrderRequest) GetClaim() bool {
	if x != nil {
For faster browsing, not all history is shown. View entire blame