-
Notifications
You must be signed in to change notification settings - Fork 6
/
integration.pb.go
2180 lines (1950 loc) · 91.8 KB
/
integration.pb.go
1
2
3
4
5
6
7
8
9
10
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
//*
// Integrations
//
// You can hook a third party application with the PassKit platform.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc v4.25.1
// source: io/common/integration.proto
package io
import (
reflect "reflect"
sync "sync"
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2/options"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
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)
)
// Turn on and off the integration.
type IntegrationStatus int32
const (
IntegrationStatus_INTEGRATION_STATUS_NONE IntegrationStatus = 0
// Turn off the integration.
IntegrationStatus_INTEGRATION_DISABLED IntegrationStatus = 1
// Turn on the integration.
IntegrationStatus_INTEGRATION_ACTIVE IntegrationStatus = 2
// The status assigned by PassKit when the account or record is not satisfying the requirements to conduct integration process.
IntegrationStatus_INTEGRATION_SUSPENDED IntegrationStatus = 3
)
// Enum value maps for IntegrationStatus.
var (
IntegrationStatus_name = map[int32]string{
0: "INTEGRATION_STATUS_NONE",
1: "INTEGRATION_DISABLED",
2: "INTEGRATION_ACTIVE",
3: "INTEGRATION_SUSPENDED",
}
IntegrationStatus_value = map[string]int32{
"INTEGRATION_STATUS_NONE": 0,
"INTEGRATION_DISABLED": 1,
"INTEGRATION_ACTIVE": 2,
"INTEGRATION_SUSPENDED": 3,
}
)
func (x IntegrationStatus) Enum() *IntegrationStatus {
p := new(IntegrationStatus)
*p = x
return p
}
func (x IntegrationStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (IntegrationStatus) Descriptor() protoreflect.EnumDescriptor {
return file_io_common_integration_proto_enumTypes[0].Descriptor()
}
func (IntegrationStatus) Type() protoreflect.EnumType {
return &file_io_common_integration_proto_enumTypes[0]
}
func (x IntegrationStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use IntegrationStatus.Descriptor instead.
func (IntegrationStatus) EnumDescriptor() ([]byte, []int) {
return file_io_common_integration_proto_rawDescGZIP(), []int{0}
}
// Configuration of the third party app which can be integrated with PassKit.
type ConfigurationType int32
const (
ConfigurationType_CONFIGURATION_NONE ConfigurationType = 0
ConfigurationType_WEBHOOK ConfigurationType = 1
ConfigurationType_DB_MYSQL ConfigurationType = 2
ConfigurationType_ZOHO ConfigurationType = 3
ConfigurationType_BRAZE ConfigurationType = 4
ConfigurationType_CODEREADR ConfigurationType = 5
ConfigurationType_ZAPIER ConfigurationType = 6
ConfigurationType_MAILCHIMP ConfigurationType = 7
ConfigurationType_SPROUT ConfigurationType = 8
ConfigurationType_TESSITURA ConfigurationType = 9
ConfigurationType_ITERABLE ConfigurationType = 10
ConfigurationType_MOENGAGE ConfigurationType = 11
ConfigurationType_ORACLE_RESPONSYS ConfigurationType = 12
ConfigurationType__CONFIG_TYPE_1 ConfigurationType = 100
)
// Enum value maps for ConfigurationType.
var (
ConfigurationType_name = map[int32]string{
0: "CONFIGURATION_NONE",
1: "WEBHOOK",
2: "DB_MYSQL",
3: "ZOHO",
4: "BRAZE",
5: "CODEREADR",
6: "ZAPIER",
7: "MAILCHIMP",
8: "SPROUT",
9: "TESSITURA",
10: "ITERABLE",
11: "MOENGAGE",
12: "ORACLE_RESPONSYS",
100: "_CONFIG_TYPE_1",
}
ConfigurationType_value = map[string]int32{
"CONFIGURATION_NONE": 0,
"WEBHOOK": 1,
"DB_MYSQL": 2,
"ZOHO": 3,
"BRAZE": 4,
"CODEREADR": 5,
"ZAPIER": 6,
"MAILCHIMP": 7,
"SPROUT": 8,
"TESSITURA": 9,
"ITERABLE": 10,
"MOENGAGE": 11,
"ORACLE_RESPONSYS": 12,
"_CONFIG_TYPE_1": 100,
}
)
func (x ConfigurationType) Enum() *ConfigurationType {
p := new(ConfigurationType)
*p = x
return p
}
func (x ConfigurationType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ConfigurationType) Descriptor() protoreflect.EnumDescriptor {
return file_io_common_integration_proto_enumTypes[1].Descriptor()
}
func (ConfigurationType) Type() protoreflect.EnumType {
return &file_io_common_integration_proto_enumTypes[1]
}
func (x ConfigurationType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ConfigurationType.Descriptor instead.
func (ConfigurationType) EnumDescriptor() ([]byte, []int) {
return file_io_common_integration_proto_rawDescGZIP(), []int{1}
}
// IntegrationType allows to select the timing of integration occurs and the order of data processing.
type IntegrationType int32
const (
IntegrationType_INTEGRATION_TYPE_NONE IntegrationType = 0
// Trigger event occurs on a third party platform which triggers action (chain of events) inside the PassKit. E.g. Database update triggers PassKit to issue a pass.
IntegrationType_SOURCE_INTEGRATION IntegrationType = 1
// Pass holder data is processed by a third party application first then its outcome and original data are stored in PassKit.
IntegrationType_HOOK_BEFORE_OBJECT_RECORD_CREATION IntegrationType = 4
// A hook event occurs after pass holder's data is created on PassKit.
IntegrationType_HOOK_AFTER_OBJECT_RECORD_CREATION IntegrationType = 8
// A hook event occurs after pass holder record creation and before pass issue.
IntegrationType_HOOK_BEFORE_PASS_ISSUE IntegrationType = 16
// A hook event occurs after pass issue.
IntegrationType_HOOK_AFTER_PASS_ISSUE IntegrationType = 32
// A hook event occurs after pass has been installed on mobile.
IntegrationType_HOOK_AFTER_PASS_INSTALL IntegrationType = 64
// A hook event occurs after pass has been uninstalled from mobile.
IntegrationType_HOOK_AFTER_PASS_UNINSTALL IntegrationType = 128
// A hook event occurs before pass holder's record is updated on PassKit.
IntegrationType_HOOK_BEFORE_OBJECT_RECORD_UPDATE IntegrationType = 256
// A hook event occurs after pass holder's record is updated on PassKit.
IntegrationType_HOOK_AFTER_OBJECT_RECORD_UPDATE IntegrationType = 512
// A hook event occurs before the pass is updated. This includes changes in dynamic information (e.g. displayName), generic information (e.g. links, legal disclaimer), pass design (e.g. background color).
IntegrationType_HOOK_BEFORE_PASS_RECORD_UPDATE IntegrationType = 1024
// A hook event occurs after the pass is updated. This includes changes in dynamic information (e.g. displayName), generic information (e.g. links, legal disclaimer), pass design (e.g. background color).
IntegrationType_HOOK_AFTER_PASS_RECORD_UPDATE IntegrationType = 2048
// A hook event occurs before the information on the pass is updated.
IntegrationType_HOOK_BEFORE_PASS_UPDATE IntegrationType = 4096
// A hook event occurs after the information on the pass is updated.
IntegrationType_HOOK_AFTER_PASS_UPDATE IntegrationType = 8192
// A hook event occurs before a pass is deleted.
IntegrationType_HOOK_BEFORE_PASS_RECORD_DELETE IntegrationType = 16384
// A hook event occurs after a pass is deleted.
IntegrationType_HOOK_AFTER_PASS_RECORD_DELETE IntegrationType = 32768
)
// Enum value maps for IntegrationType.
var (
IntegrationType_name = map[int32]string{
0: "INTEGRATION_TYPE_NONE",
1: "SOURCE_INTEGRATION",
4: "HOOK_BEFORE_OBJECT_RECORD_CREATION",
8: "HOOK_AFTER_OBJECT_RECORD_CREATION",
16: "HOOK_BEFORE_PASS_ISSUE",
32: "HOOK_AFTER_PASS_ISSUE",
64: "HOOK_AFTER_PASS_INSTALL",
128: "HOOK_AFTER_PASS_UNINSTALL",
256: "HOOK_BEFORE_OBJECT_RECORD_UPDATE",
512: "HOOK_AFTER_OBJECT_RECORD_UPDATE",
1024: "HOOK_BEFORE_PASS_RECORD_UPDATE",
2048: "HOOK_AFTER_PASS_RECORD_UPDATE",
4096: "HOOK_BEFORE_PASS_UPDATE",
8192: "HOOK_AFTER_PASS_UPDATE",
16384: "HOOK_BEFORE_PASS_RECORD_DELETE",
32768: "HOOK_AFTER_PASS_RECORD_DELETE",
}
IntegrationType_value = map[string]int32{
"INTEGRATION_TYPE_NONE": 0,
"SOURCE_INTEGRATION": 1,
"HOOK_BEFORE_OBJECT_RECORD_CREATION": 4,
"HOOK_AFTER_OBJECT_RECORD_CREATION": 8,
"HOOK_BEFORE_PASS_ISSUE": 16,
"HOOK_AFTER_PASS_ISSUE": 32,
"HOOK_AFTER_PASS_INSTALL": 64,
"HOOK_AFTER_PASS_UNINSTALL": 128,
"HOOK_BEFORE_OBJECT_RECORD_UPDATE": 256,
"HOOK_AFTER_OBJECT_RECORD_UPDATE": 512,
"HOOK_BEFORE_PASS_RECORD_UPDATE": 1024,
"HOOK_AFTER_PASS_RECORD_UPDATE": 2048,
"HOOK_BEFORE_PASS_UPDATE": 4096,
"HOOK_AFTER_PASS_UPDATE": 8192,
"HOOK_BEFORE_PASS_RECORD_DELETE": 16384,
"HOOK_AFTER_PASS_RECORD_DELETE": 32768,
}
)
func (x IntegrationType) Enum() *IntegrationType {
p := new(IntegrationType)
*p = x
return p
}
func (x IntegrationType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (IntegrationType) Descriptor() protoreflect.EnumDescriptor {
return file_io_common_integration_proto_enumTypes[2].Descriptor()
}
func (IntegrationType) Type() protoreflect.EnumType {
return &file_io_common_integration_proto_enumTypes[2]
}
func (x IntegrationType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use IntegrationType.Descriptor instead.
func (IntegrationType) EnumDescriptor() ([]byte, []int) {
return file_io_common_integration_proto_rawDescGZIP(), []int{2}
}
// ProtocolIntgType contains hooks for protocol methods.
type ProtocolIntgType int32
const (
ProtocolIntgType_PROTOCOL_INTG_TYPE_NONE ProtocolIntgType = 0
// Member 0x1 - 0x400
ProtocolIntgType_HOOK_BEFORE_MEMBER_UPDATE_POINTS ProtocolIntgType = 1
ProtocolIntgType_HOOK_AFTER_MEMBER_UPDATE_POINTS ProtocolIntgType = 4
ProtocolIntgType_HOOK_BEFORE_MEMBER_TIER_UPDATE ProtocolIntgType = 8
ProtocolIntgType_HOOK_AFTER_MEMBER_TIER_UPDATE ProtocolIntgType = 16
ProtocolIntgType_HOOK_BEFORE_MEMBER_CHECK_IN ProtocolIntgType = 32
ProtocolIntgType_HOOK_AFTER_MEMBER_CHECK_IN ProtocolIntgType = 64
ProtocolIntgType_HOOK_BEFORE_MEMBER_CHECK_OUT ProtocolIntgType = 128
ProtocolIntgType_HOOK_AFTER_MEMBER_CHECK_OUT ProtocolIntgType = 256
// Coupon 0x800 - 0x100000
ProtocolIntgType_HOOK_BEFORE_COUPON_REDEEM ProtocolIntgType = 2048
ProtocolIntgType_HOOK_AFTER_COUPON_REDEEM ProtocolIntgType = 4096
ProtocolIntgType_HOOK_BEFORE_UPDATE_COUPON_OFFER ProtocolIntgType = 8192
ProtocolIntgType_HOOK_AFTER_UPDATE_COUPON_OFFER ProtocolIntgType = 16384
ProtocolIntgType_HOOK_BEFORE_CREATE_COUPON_OFFER ProtocolIntgType = 32768
ProtocolIntgType_HOOK_AFTER_CREATE_COUPON_OFFER ProtocolIntgType = 65536
// Generic 0x200000 - 0x40000000
ProtocolIntgType_HOOK_BEFORE_UPDATE_PII ProtocolIntgType = 2097152
ProtocolIntgType_HOOK_AFTER_UPDATE_PII ProtocolIntgType = 4194304
)
// Enum value maps for ProtocolIntgType.
var (
ProtocolIntgType_name = map[int32]string{
0: "PROTOCOL_INTG_TYPE_NONE",
1: "HOOK_BEFORE_MEMBER_UPDATE_POINTS",
4: "HOOK_AFTER_MEMBER_UPDATE_POINTS",
8: "HOOK_BEFORE_MEMBER_TIER_UPDATE",
16: "HOOK_AFTER_MEMBER_TIER_UPDATE",
32: "HOOK_BEFORE_MEMBER_CHECK_IN",
64: "HOOK_AFTER_MEMBER_CHECK_IN",
128: "HOOK_BEFORE_MEMBER_CHECK_OUT",
256: "HOOK_AFTER_MEMBER_CHECK_OUT",
2048: "HOOK_BEFORE_COUPON_REDEEM",
4096: "HOOK_AFTER_COUPON_REDEEM",
8192: "HOOK_BEFORE_UPDATE_COUPON_OFFER",
16384: "HOOK_AFTER_UPDATE_COUPON_OFFER",
32768: "HOOK_BEFORE_CREATE_COUPON_OFFER",
65536: "HOOK_AFTER_CREATE_COUPON_OFFER",
2097152: "HOOK_BEFORE_UPDATE_PII",
4194304: "HOOK_AFTER_UPDATE_PII",
}
ProtocolIntgType_value = map[string]int32{
"PROTOCOL_INTG_TYPE_NONE": 0,
"HOOK_BEFORE_MEMBER_UPDATE_POINTS": 1,
"HOOK_AFTER_MEMBER_UPDATE_POINTS": 4,
"HOOK_BEFORE_MEMBER_TIER_UPDATE": 8,
"HOOK_AFTER_MEMBER_TIER_UPDATE": 16,
"HOOK_BEFORE_MEMBER_CHECK_IN": 32,
"HOOK_AFTER_MEMBER_CHECK_IN": 64,
"HOOK_BEFORE_MEMBER_CHECK_OUT": 128,
"HOOK_AFTER_MEMBER_CHECK_OUT": 256,
"HOOK_BEFORE_COUPON_REDEEM": 2048,
"HOOK_AFTER_COUPON_REDEEM": 4096,
"HOOK_BEFORE_UPDATE_COUPON_OFFER": 8192,
"HOOK_AFTER_UPDATE_COUPON_OFFER": 16384,
"HOOK_BEFORE_CREATE_COUPON_OFFER": 32768,
"HOOK_AFTER_CREATE_COUPON_OFFER": 65536,
"HOOK_BEFORE_UPDATE_PII": 2097152,
"HOOK_AFTER_UPDATE_PII": 4194304,
}
)
func (x ProtocolIntgType) Enum() *ProtocolIntgType {
p := new(ProtocolIntgType)
*p = x
return p
}
func (x ProtocolIntgType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ProtocolIntgType) Descriptor() protoreflect.EnumDescriptor {
return file_io_common_integration_proto_enumTypes[3].Descriptor()
}
func (ProtocolIntgType) Type() protoreflect.EnumType {
return &file_io_common_integration_proto_enumTypes[3]
}
func (x ProtocolIntgType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ProtocolIntgType.Descriptor instead.
func (ProtocolIntgType) EnumDescriptor() ([]byte, []int) {
return file_io_common_integration_proto_rawDescGZIP(), []int{3}
}
// Name of pass event the third part app can subscribe to.
type PassEventId int32
const (
// The pass payload will not be sent.
PassEventId_PASS_EVENT_NONE PassEventId = 0
// The pass payload will be sent to destination when pass record is created and issued.
PassEventId_PASS_EVENT_RECORD_CREATED PassEventId = 1
// The pass payload will be sent to destination when pass is installed on a mobile device.
PassEventId_PASS_EVENT_INSTALLED PassEventId = 2
// The pass payload will be sent to destination when pass record or contents have been updated.
PassEventId_PASS_EVENT_RECORD_UPDATED PassEventId = 4
// The pass payload will be sent to destination when pass is uninstalled from a mobile device.
PassEventId_PASS_EVENT_UNINSTALLED PassEventId = 8
// The pass payload will be sent to destination when pass is invalidated or expired. When pass is invalidated or expired, a pass will lose its barcode and pass content cannot be updated anymore.
PassEventId_PASS_EVENT_INVALIDATED PassEventId = 16
// The pass payload will be sent to destination when pass record is deleted from the PassKit database.
PassEventId_PASS_EVENT_RECORD_DELETED PassEventId = 32
)
// Enum value maps for PassEventId.
var (
PassEventId_name = map[int32]string{
0: "PASS_EVENT_NONE",
1: "PASS_EVENT_RECORD_CREATED",
2: "PASS_EVENT_INSTALLED",
4: "PASS_EVENT_RECORD_UPDATED",
8: "PASS_EVENT_UNINSTALLED",
16: "PASS_EVENT_INVALIDATED",
32: "PASS_EVENT_RECORD_DELETED",
}
PassEventId_value = map[string]int32{
"PASS_EVENT_NONE": 0,
"PASS_EVENT_RECORD_CREATED": 1,
"PASS_EVENT_INSTALLED": 2,
"PASS_EVENT_RECORD_UPDATED": 4,
"PASS_EVENT_UNINSTALLED": 8,
"PASS_EVENT_INVALIDATED": 16,
"PASS_EVENT_RECORD_DELETED": 32,
}
)
func (x PassEventId) Enum() *PassEventId {
p := new(PassEventId)
*p = x
return p
}
func (x PassEventId) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PassEventId) Descriptor() protoreflect.EnumDescriptor {
return file_io_common_integration_proto_enumTypes[4].Descriptor()
}
func (PassEventId) Type() protoreflect.EnumType {
return &file_io_common_integration_proto_enumTypes[4]
}
func (x PassEventId) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PassEventId.Descriptor instead.
func (PassEventId) EnumDescriptor() ([]byte, []int) {
return file_io_common_integration_proto_rawDescGZIP(), []int{4}
}
// Protocol specific events for the Membership protocol.
type MembershipEventId int32
const (
MembershipEventId_MEMBER_EVENT_NONE MembershipEventId = 0
// The member payload will be sent to destination when member record is created.
MembershipEventId_MEMBER_EVENT_ENROLLED MembershipEventId = 1
// The member payload will be sent to destination when any of member field is updated.
MembershipEventId_MEMBER_EVENT_UPDATED MembershipEventId = 2
)
// Enum value maps for MembershipEventId.
var (
MembershipEventId_name = map[int32]string{
0: "MEMBER_EVENT_NONE",
1: "MEMBER_EVENT_ENROLLED",
2: "MEMBER_EVENT_UPDATED",
}
MembershipEventId_value = map[string]int32{
"MEMBER_EVENT_NONE": 0,
"MEMBER_EVENT_ENROLLED": 1,
"MEMBER_EVENT_UPDATED": 2,
}
)
func (x MembershipEventId) Enum() *MembershipEventId {
p := new(MembershipEventId)
*p = x
return p
}
func (x MembershipEventId) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MembershipEventId) Descriptor() protoreflect.EnumDescriptor {
return file_io_common_integration_proto_enumTypes[5].Descriptor()
}
func (MembershipEventId) Type() protoreflect.EnumType {
return &file_io_common_integration_proto_enumTypes[5]
}
func (x MembershipEventId) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MembershipEventId.Descriptor instead.
func (MembershipEventId) EnumDescriptor() ([]byte, []int) {
return file_io_common_integration_proto_rawDescGZIP(), []int{5}
}
// Protocol specific events for the Single Use Coupon protocol.
type CouponEventId int32
const (
CouponEventId_COUPON_EVENT_NONE CouponEventId = 0
// Triggered when coupon is issued.
CouponEventId_COUPON_EVENT_CREATED CouponEventId = 1
// Triggered when coupon is redeemed.
CouponEventId_COUPON_EVENT_REDEEMED CouponEventId = 2
// Triggered when any of coupon field is updated.
CouponEventId_COUPON_EVENT_UPDATED CouponEventId = 4
// Triggered when coupon record is deleted.
CouponEventId_COUPON_EVENT_DELETED CouponEventId = 8
)
// Enum value maps for CouponEventId.
var (
CouponEventId_name = map[int32]string{
0: "COUPON_EVENT_NONE",
1: "COUPON_EVENT_CREATED",
2: "COUPON_EVENT_REDEEMED",
4: "COUPON_EVENT_UPDATED",
8: "COUPON_EVENT_DELETED",
}
CouponEventId_value = map[string]int32{
"COUPON_EVENT_NONE": 0,
"COUPON_EVENT_CREATED": 1,
"COUPON_EVENT_REDEEMED": 2,
"COUPON_EVENT_UPDATED": 4,
"COUPON_EVENT_DELETED": 8,
}
)
func (x CouponEventId) Enum() *CouponEventId {
p := new(CouponEventId)
*p = x
return p
}
func (x CouponEventId) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CouponEventId) Descriptor() protoreflect.EnumDescriptor {
return file_io_common_integration_proto_enumTypes[6].Descriptor()
}
func (CouponEventId) Type() protoreflect.EnumType {
return &file_io_common_integration_proto_enumTypes[6]
}
func (x CouponEventId) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CouponEventId.Descriptor instead.
func (CouponEventId) EnumDescriptor() ([]byte, []int) {
return file_io_common_integration_proto_rawDescGZIP(), []int{6}
}
// Action method is an api call method (post, put, delete) used when data get integrated with the third party application.
// This enum will be useful if topic is not directly produced by debezium and want to know the original debezium event operation.
type ActionMethod int32
const (
ActionMethod_METHOD_NONE ActionMethod = 0
// Invokes POST request to create a record the third party app.
ActionMethod_METHOD_POST ActionMethod = 1
// Invokes PUT request to update existing record on the third party app.
ActionMethod_METHOD_PUT ActionMethod = 2
// Invokes DELETE request to delete existing record on the third party app.
ActionMethod_METHOD_DELETE ActionMethod = 3
)
// Enum value maps for ActionMethod.
var (
ActionMethod_name = map[int32]string{
0: "METHOD_NONE",
1: "METHOD_POST",
2: "METHOD_PUT",
3: "METHOD_DELETE",
}
ActionMethod_value = map[string]int32{
"METHOD_NONE": 0,
"METHOD_POST": 1,
"METHOD_PUT": 2,
"METHOD_DELETE": 3,
}
)
func (x ActionMethod) Enum() *ActionMethod {
p := new(ActionMethod)
*p = x
return p
}
func (x ActionMethod) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ActionMethod) Descriptor() protoreflect.EnumDescriptor {
return file_io_common_integration_proto_enumTypes[7].Descriptor()
}
func (ActionMethod) Type() protoreflect.EnumType {
return &file_io_common_integration_proto_enumTypes[7]
}
func (x ActionMethod) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ActionMethod.Descriptor instead.
func (ActionMethod) EnumDescriptor() ([]byte, []int) {
return file_io_common_integration_proto_rawDescGZIP(), []int{7}
}
// Array of subscribing membership protocol events.
type MembershipEventIds struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Ids []MembershipEventId `protobuf:"varint,1,rep,packed,name=ids,proto3,enum=io.MembershipEventId" json:"ids,omitempty"`
}
func (x *MembershipEventIds) Reset() {
*x = MembershipEventIds{}
if protoimpl.UnsafeEnabled {
mi := &file_io_common_integration_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MembershipEventIds) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MembershipEventIds) ProtoMessage() {}
func (x *MembershipEventIds) ProtoReflect() protoreflect.Message {
mi := &file_io_common_integration_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 MembershipEventIds.ProtoReflect.Descriptor instead.
func (*MembershipEventIds) Descriptor() ([]byte, []int) {
return file_io_common_integration_proto_rawDescGZIP(), []int{0}
}
func (x *MembershipEventIds) GetIds() []MembershipEventId {
if x != nil {
return x.Ids
}
return nil
}
// Array of subscribing coupon protocol events.
type CouponEventIds struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Ids []CouponEventId `protobuf:"varint,1,rep,packed,name=ids,proto3,enum=io.CouponEventId" json:"ids,omitempty"`
}
func (x *CouponEventIds) Reset() {
*x = CouponEventIds{}
if protoimpl.UnsafeEnabled {
mi := &file_io_common_integration_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CouponEventIds) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CouponEventIds) ProtoMessage() {}
func (x *CouponEventIds) ProtoReflect() protoreflect.Message {
mi := &file_io_common_integration_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 CouponEventIds.ProtoReflect.Descriptor instead.
func (*CouponEventIds) Descriptor() ([]byte, []int) {
return file_io_common_integration_proto_rawDescGZIP(), []int{1}
}
func (x *CouponEventIds) GetIds() []CouponEventId {
if x != nil {
return x.Ids
}
return nil
}
// Integration object contains configuration data to integrate PassKit application with third party application.
type IntegrationConfigs struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The uuid for the class object.
// @tag: validateGeneric:"required" validateCreate:"required" validateUpdate:"required"
ClassId string `protobuf:"bytes,1,opt,name=classId,proto3" json:"classId,omitempty" validateGeneric:"required" validateCreate:"required" validateUpdate:"required"`
// Key string is enum of ConfigurationType (e.g. WEBHOOK, DB_MYSQL, ZOHO). Value string is a json string of configuration object.
// @tag: validateGeneric:"omitempty" validateCreate:"required" validateUpdate:"required"
Configurations map[int32]string `protobuf:"bytes,2,rep,name=configurations,proto3" json:"configurations,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3" validateGeneric:"omitempty" validateCreate:"required" validateUpdate:"required"`
}
func (x *IntegrationConfigs) Reset() {
*x = IntegrationConfigs{}
if protoimpl.UnsafeEnabled {
mi := &file_io_common_integration_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IntegrationConfigs) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IntegrationConfigs) ProtoMessage() {}
func (x *IntegrationConfigs) ProtoReflect() protoreflect.Message {
mi := &file_io_common_integration_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 IntegrationConfigs.ProtoReflect.Descriptor instead.
func (*IntegrationConfigs) Descriptor() ([]byte, []int) {
return file_io_common_integration_proto_rawDescGZIP(), []int{2}
}
func (x *IntegrationConfigs) GetClassId() string {
if x != nil {
return x.ClassId
}
return ""
}
func (x *IntegrationConfigs) GetConfigurations() map[int32]string {
if x != nil {
return x.Configurations
}
return nil
}
type ProtocolIdInput struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The protocol which the class object belongs to.
// @tag: validateGeneric:"required" validateUpdate:"required"
Protocol PassProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=io.PassProtocol" json:"protocol,omitempty" validateGeneric:"required" validateUpdate:"required"`
// The class object Id which integration belongs to.
// @tag: validateGeneric:"required" validateUpdate:"required"
ClassId string `protobuf:"bytes,2,opt,name=classId,proto3" json:"classId,omitempty" validateGeneric:"required" validateUpdate:"required"`
}
func (x *ProtocolIdInput) Reset() {
*x = ProtocolIdInput{}
if protoimpl.UnsafeEnabled {
mi := &file_io_common_integration_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ProtocolIdInput) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ProtocolIdInput) ProtoMessage() {}
func (x *ProtocolIdInput) ProtoReflect() protoreflect.Message {
mi := &file_io_common_integration_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 ProtocolIdInput.ProtoReflect.Descriptor instead.
func (*ProtocolIdInput) Descriptor() ([]byte, []int) {
return file_io_common_integration_proto_rawDescGZIP(), []int{3}
}
func (x *ProtocolIdInput) GetProtocol() PassProtocol {
if x != nil {
return x.Protocol
}
return PassProtocol_PASS_PROTOCOL_DO_NOT_USE
}
func (x *ProtocolIdInput) GetClassId() string {
if x != nil {
return x.ClassId
}
return ""
}
type SubscriptionRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The protocol which the class object belongs to.
// @tag: validateGeneric:"required" validateUpdate:"required"
Protocol PassProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=io.PassProtocol" json:"protocol,omitempty" validateGeneric:"required" validateUpdate:"required"`
// The class object Id which integration belongs to.
// @tag: validateGeneric:"required" validateUpdate:"required"
SubscriptionId string `protobuf:"bytes,2,opt,name=subscriptionId,proto3" json:"subscriptionId,omitempty" validateGeneric:"required" validateUpdate:"required"`
}
func (x *SubscriptionRequest) Reset() {
*x = SubscriptionRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_io_common_integration_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SubscriptionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SubscriptionRequest) ProtoMessage() {}
func (x *SubscriptionRequest) ProtoReflect() protoreflect.Message {
mi := &file_io_common_integration_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 SubscriptionRequest.ProtoReflect.Descriptor instead.
func (*SubscriptionRequest) Descriptor() ([]byte, []int) {
return file_io_common_integration_proto_rawDescGZIP(), []int{4}
}
func (x *SubscriptionRequest) GetProtocol() PassProtocol {
if x != nil {
return x.Protocol
}
return PassProtocol_PASS_PROTOCOL_DO_NOT_USE
}
func (x *SubscriptionRequest) GetSubscriptionId() string {
if x != nil {
return x.SubscriptionId
}
return ""
}
type SubscriptionRequestByClassId struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The protocol which the class object belongs to.
// @tag: validateGeneric:"required" validateUpdate:"required"
Protocol PassProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=io.PassProtocol" json:"protocol,omitempty" validateGeneric:"required" validateUpdate:"required"`
// The uuid for the class object. For Membership it is ProgramId, Coupon is CampaignId, Flight is FlightId.
// @tag: validateGeneric:"required" validateCreate:"required" validateUpdate:"required"
ClassId string `protobuf:"bytes,2,opt,name=classId,proto3" json:"classId,omitempty" validateGeneric:"required" validateCreate:"required" validateUpdate:"required"`
// @tag: validateGeneric:"required" validateUpdate:"required"
ConfigType ConfigurationType `protobuf:"varint,3,opt,name=configType,proto3,enum=io.ConfigurationType" json:"configType,omitempty" validateGeneric:"required" validateUpdate:"required"`
// Identifies protocol specific event type.
// @tag: validateGeneric:"required" validateUpdate:"required"
//
// Types that are assignable to EventId:
//
// *SubscriptionRequestByClassId_PassEventId
// *SubscriptionRequestByClassId_MembershipEventId
// *SubscriptionRequestByClassId_CouponEventId
EventId isSubscriptionRequestByClassId_EventId `protobuf_oneof:"eventId" validateGeneric:"required" validateUpdate:"required"`
}
func (x *SubscriptionRequestByClassId) Reset() {
*x = SubscriptionRequestByClassId{}
if protoimpl.UnsafeEnabled {
mi := &file_io_common_integration_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SubscriptionRequestByClassId) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SubscriptionRequestByClassId) ProtoMessage() {}
func (x *SubscriptionRequestByClassId) ProtoReflect() protoreflect.Message {
mi := &file_io_common_integration_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 SubscriptionRequestByClassId.ProtoReflect.Descriptor instead.
func (*SubscriptionRequestByClassId) Descriptor() ([]byte, []int) {
return file_io_common_integration_proto_rawDescGZIP(), []int{5}
}
func (x *SubscriptionRequestByClassId) GetProtocol() PassProtocol {
if x != nil {
return x.Protocol
}
return PassProtocol_PASS_PROTOCOL_DO_NOT_USE
}
func (x *SubscriptionRequestByClassId) GetClassId() string {
if x != nil {
return x.ClassId
}
return ""
}
func (x *SubscriptionRequestByClassId) GetConfigType() ConfigurationType {
if x != nil {
return x.ConfigType
}
return ConfigurationType_CONFIGURATION_NONE
}
func (m *SubscriptionRequestByClassId) GetEventId() isSubscriptionRequestByClassId_EventId {
if m != nil {
return m.EventId
}
return nil
}
func (x *SubscriptionRequestByClassId) GetPassEventId() PassEventId {
if x, ok := x.GetEventId().(*SubscriptionRequestByClassId_PassEventId); ok {
return x.PassEventId
}
return PassEventId_PASS_EVENT_NONE
}
func (x *SubscriptionRequestByClassId) GetMembershipEventId() MembershipEventId {
if x, ok := x.GetEventId().(*SubscriptionRequestByClassId_MembershipEventId); ok {
return x.MembershipEventId
}
return MembershipEventId_MEMBER_EVENT_NONE
}
func (x *SubscriptionRequestByClassId) GetCouponEventId() CouponEventId {
if x, ok := x.GetEventId().(*SubscriptionRequestByClassId_CouponEventId); ok {
return x.CouponEventId
}
return CouponEventId_COUPON_EVENT_NONE
}
type isSubscriptionRequestByClassId_EventId interface {
isSubscriptionRequestByClassId_EventId()
}
type SubscriptionRequestByClassId_PassEventId struct {
// Identifies pass event type.
// @tag: validateGeneric:"omitempty" validateUpdate:"omitempty"
PassEventId PassEventId `protobuf:"varint,4,opt,name=passEventId,proto3,enum=io.PassEventId,oneof" validateGeneric:"omitempty" validateUpdate:"omitempty"`
}
type SubscriptionRequestByClassId_MembershipEventId struct {
// For membership protocol subscription.
// @tag: validateGeneric:"omitempty" validateUpdate:"omitempty"
MembershipEventId MembershipEventId `protobuf:"varint,5,opt,name=membershipEventId,proto3,enum=io.MembershipEventId,oneof" validateGeneric:"omitempty" validateUpdate:"omitempty"`
}