-
Notifications
You must be signed in to change notification settings - Fork 6
/
distribution.pb.go
1535 lines (1373 loc) · 63.3 KB
/
distribution.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
//*
// Distribution
//
// Manage distribution channels for you digital passes.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc v4.25.1
// source: io/common/distribution.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"
)
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)
)
type DistributionChannel int32
const (
DistributionChannel_NO_DISTRIBUTION DistributionChannel = 0
// Unique pass link is distributed via email (will use default PK email template if no custom Email Template is provided)
DistributionChannel_CHANNEL_EMAIL DistributionChannel = 1
// Unique pass link is distributed via SMS (will use default PK SMS template if no custom SMS Template is provided)
DistributionChannel_CHANNEL_SMS DistributionChannel = 2
)
// Enum value maps for DistributionChannel.
var (
DistributionChannel_name = map[int32]string{
0: "NO_DISTRIBUTION",
1: "CHANNEL_EMAIL",
2: "CHANNEL_SMS",
}
DistributionChannel_value = map[string]int32{
"NO_DISTRIBUTION": 0,
"CHANNEL_EMAIL": 1,
"CHANNEL_SMS": 2,
}
)
func (x DistributionChannel) Enum() *DistributionChannel {
p := new(DistributionChannel)
*p = x
return p
}
func (x DistributionChannel) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DistributionChannel) Descriptor() protoreflect.EnumDescriptor {
return file_io_common_distribution_proto_enumTypes[0].Descriptor()
}
func (DistributionChannel) Type() protoreflect.EnumType {
return &file_io_common_distribution_proto_enumTypes[0]
}
func (x DistributionChannel) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DistributionChannel.Descriptor instead.
func (DistributionChannel) EnumDescriptor() ([]byte, []int) {
return file_io_common_distribution_proto_rawDescGZIP(), []int{0}
}
type EmailTemplateOptions int32
const (
EmailTemplateOptions_EMAIL_TEMP_OPT_NONE EmailTemplateOptions = 0
// Hide default external Id field on top right of the template.
EmailTemplateOptions_EMAIL_TEMP_OPT_HIDE_EXT_ID EmailTemplateOptions = 1
// Hide default full name field on top left of the template.
EmailTemplateOptions_EMAIL_TEMP_OPT_HIDE_FULL_NAME EmailTemplateOptions = 2
)
// Enum value maps for EmailTemplateOptions.
var (
EmailTemplateOptions_name = map[int32]string{
0: "EMAIL_TEMP_OPT_NONE",
1: "EMAIL_TEMP_OPT_HIDE_EXT_ID",
2: "EMAIL_TEMP_OPT_HIDE_FULL_NAME",
}
EmailTemplateOptions_value = map[string]int32{
"EMAIL_TEMP_OPT_NONE": 0,
"EMAIL_TEMP_OPT_HIDE_EXT_ID": 1,
"EMAIL_TEMP_OPT_HIDE_FULL_NAME": 2,
}
)
func (x EmailTemplateOptions) Enum() *EmailTemplateOptions {
p := new(EmailTemplateOptions)
*p = x
return p
}
func (x EmailTemplateOptions) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (EmailTemplateOptions) Descriptor() protoreflect.EnumDescriptor {
return file_io_common_distribution_proto_enumTypes[1].Descriptor()
}
func (EmailTemplateOptions) Type() protoreflect.EnumType {
return &file_io_common_distribution_proto_enumTypes[1]
}
func (x EmailTemplateOptions) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use EmailTemplateOptions.Descriptor instead.
func (EmailTemplateOptions) EnumDescriptor() ([]byte, []int) {
return file_io_common_distribution_proto_rawDescGZIP(), []int{1}
}
type EmailDistributionRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Pass Id (22 characters).
// @tag: validateCreate:"required_without=ExternalId"
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validateCreate:"required_without=ExternalId"`
// External Id of the pass holder. Needs to provide Class Id as well.
// @tag: validateCreate:"omitempty"
ExternalId string `protobuf:"bytes,2,opt,name=externalId,proto3" json:"externalId,omitempty" validateCreate:"omitempty"`
// The class ID that the projects refers to (highest level protocol object; i.e. member program id, coupon campaign id, etc).
// @tag: validateCreate:"omitempty"
ClassId string `protobuf:"bytes,3,opt,name=classId,proto3" json:"classId,omitempty" validateCreate:"omitempty"`
// @tag: validateCreate:"required"
Protocol PassProtocol `protobuf:"varint,4,opt,name=protocol,proto3,enum=io.PassProtocol" json:"protocol,omitempty" validateCreate:"required"`
// @tag: validateCreate:"omitempty"
AlternativeEmail string `protobuf:"bytes,5,opt,name=alternativeEmail,proto3" json:"alternativeEmail,omitempty" validateCreate:"omitempty"`
}
func (x *EmailDistributionRequest) Reset() {
*x = EmailDistributionRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_io_common_distribution_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EmailDistributionRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EmailDistributionRequest) ProtoMessage() {}
func (x *EmailDistributionRequest) ProtoReflect() protoreflect.Message {
mi := &file_io_common_distribution_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 EmailDistributionRequest.ProtoReflect.Descriptor instead.
func (*EmailDistributionRequest) Descriptor() ([]byte, []int) {
return file_io_common_distribution_proto_rawDescGZIP(), []int{0}
}
func (x *EmailDistributionRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *EmailDistributionRequest) GetExternalId() string {
if x != nil {
return x.ExternalId
}
return ""
}
func (x *EmailDistributionRequest) GetClassId() string {
if x != nil {
return x.ClassId
}
return ""
}
func (x *EmailDistributionRequest) GetProtocol() PassProtocol {
if x != nil {
return x.Protocol
}
return PassProtocol_PASS_PROTOCOL_DO_NOT_USE
}
func (x *EmailDistributionRequest) GetAlternativeEmail() string {
if x != nil {
return x.AlternativeEmail
}
return ""
}
type SmartPassLinkRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The PassKit URL used to generate the link; found under your SmartPass link settings in the Portal: https://github.com/PassKit/smart-pass-link-from-csv-generator#how-to-use
// @tag: validateCreate:"required,url"
ProjectDistributionUrl *Url `protobuf:"bytes,1,opt,name=projectDistributionUrl,proto3" json:"projectDistributionUrl,omitempty" validateCreate:"required,url"`
// The fields for data to go into your SmartPass link: https://github.com/PassKit/smart-pass-link-from-csv-generator#available-field-names
// @tag: validateCreate:"required,min=1"
Fields map[string]string `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3" validateCreate:"required,min=1"`
}
func (x *SmartPassLinkRequest) Reset() {
*x = SmartPassLinkRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_io_common_distribution_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SmartPassLinkRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SmartPassLinkRequest) ProtoMessage() {}
func (x *SmartPassLinkRequest) ProtoReflect() protoreflect.Message {
mi := &file_io_common_distribution_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 SmartPassLinkRequest.ProtoReflect.Descriptor instead.
func (*SmartPassLinkRequest) Descriptor() ([]byte, []int) {
return file_io_common_distribution_proto_rawDescGZIP(), []int{1}
}
func (x *SmartPassLinkRequest) GetProjectDistributionUrl() *Url {
if x != nil {
return x.ProjectDistributionUrl
}
return nil
}
func (x *SmartPassLinkRequest) GetFields() map[string]string {
if x != nil {
return x.Fields
}
return nil
}
// DistributionSettings can be used by protocol top level elements to define the email / sms-es
type DistributionSettings struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
DistributionChannels []DistributionChannel `protobuf:"varint,1,rep,packed,name=distributionChannels,proto3,enum=io.DistributionChannel" json:"distributionChannels,omitempty"`
// Welcome email settings
WelcomeEmail *EmailTemplate `protobuf:"bytes,2,opt,name=welcomeEmail,proto3" json:"welcomeEmail,omitempty"`
// Welcome SMS settings
WelcomeSms *SmsTemplate `protobuf:"bytes,3,opt,name=welcomeSms,proto3" json:"welcomeSms,omitempty"`
}
func (x *DistributionSettings) Reset() {
*x = DistributionSettings{}
if protoimpl.UnsafeEnabled {
mi := &file_io_common_distribution_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DistributionSettings) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DistributionSettings) ProtoMessage() {}
func (x *DistributionSettings) ProtoReflect() protoreflect.Message {
mi := &file_io_common_distribution_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 DistributionSettings.ProtoReflect.Descriptor instead.
func (*DistributionSettings) Descriptor() ([]byte, []int) {
return file_io_common_distribution_proto_rawDescGZIP(), []int{2}
}
func (x *DistributionSettings) GetDistributionChannels() []DistributionChannel {
if x != nil {
return x.DistributionChannels
}
return nil
}
func (x *DistributionSettings) GetWelcomeEmail() *EmailTemplate {
if x != nil {
return x.WelcomeEmail
}
return nil
}
func (x *DistributionSettings) GetWelcomeSms() *SmsTemplate {
if x != nil {
return x.WelcomeSms
}
return nil
}
// EmailTemplate contains details for sending an email to a customer.
// Uses the default PassKit email provider and sending credentials
type EmailTemplate struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc..
Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
// Localized subject of the email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
LocalizedSubject *LocalizedString `protobuf:"bytes,2,opt,name=localizedSubject,proto3" json:"localizedSubject,omitempty"`
// Text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
BodyTextContent string `protobuf:"bytes,3,opt,name=bodyTextContent,proto3" json:"bodyTextContent,omitempty"`
// Localized text content of the email (for email clients that don't support HTML). The body text is rendered above pass install url text. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
LocalizedBodyTextContent *LocalizedString `protobuf:"bytes,4,opt,name=localizedBodyTextContent,proto3" json:"localizedBodyTextContent,omitempty"`
// Content for HTML email rendered above the pass install button. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
BodyHtmlContent string `protobuf:"bytes,5,opt,name=bodyHtmlContent,proto3" json:"bodyHtmlContent,omitempty"`
// Localized content for HTML email. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
LocalizedBodyHtmlContent *LocalizedString `protobuf:"bytes,6,opt,name=localizedBodyHtmlContent,proto3" json:"localizedBodyHtmlContent,omitempty"`
// 7 is reserved for custom email SMTP configuration
Configuration *EmailConfiguration `protobuf:"bytes,7,opt,name=configuration,proto3" json:"configuration,omitempty"`
// Text of the pass install button.
ButtonText string `protobuf:"bytes,8,opt,name=buttonText,proto3" json:"buttonText,omitempty"`
// Text color of the pass install button.
ButtonTextColor string `protobuf:"bytes,9,opt,name=buttonTextColor,proto3" json:"buttonTextColor,omitempty"`
// Color of the pass install button.
ButtonBackgroundColor string `protobuf:"bytes,10,opt,name=buttonBackgroundColor,proto3" json:"buttonBackgroundColor,omitempty"`
// Radius of the pass install button. The unit can be px or %. Default is px.
ButtonBorderRadius string `protobuf:"bytes,11,opt,name=buttonBorderRadius,proto3" json:"buttonBorderRadius,omitempty"`
// Footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
FooterTextContent string `protobuf:"bytes,12,opt,name=footerTextContent,proto3" json:"footerTextContent,omitempty"`
// Localized footer text content (for email clients that don't support HTML). The footer text is rendered below the pass install url text.
LocalizedFooterTextContent *LocalizedString `protobuf:"bytes,13,opt,name=localizedFooterTextContent,proto3" json:"localizedFooterTextContent,omitempty"`
// Footer HTML content rendered below the pass install button.
FooterHtmlContent string `protobuf:"bytes,14,opt,name=footerHtmlContent,proto3" json:"footerHtmlContent,omitempty"`
// Localized content for HTML footer content which is rendered below the pass install button.
LocalizedFooterHtmlContent *LocalizedString `protobuf:"bytes,15,opt,name=localizedFooterHtmlContent,proto3" json:"localizedFooterHtmlContent,omitempty"`
// Background color for the message content section.
MessageBackgroundColor string `protobuf:"bytes,16,opt,name=messageBackgroundColor,proto3" json:"messageBackgroundColor,omitempty"`
// Background color for the margin space surrounding the message content. This setting is relevant for PC viewers.
PageBackgroundColor string `protobuf:"bytes,17,opt,name=pageBackgroundColor,proto3" json:"pageBackgroundColor,omitempty"`
// Holds additional template options for rendering the email template.
TemplateOptions int32 `protobuf:"varint,18,opt,name=templateOptions,proto3" json:"templateOptions,omitempty"`
}
func (x *EmailTemplate) Reset() {
*x = EmailTemplate{}
if protoimpl.UnsafeEnabled {
mi := &file_io_common_distribution_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EmailTemplate) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EmailTemplate) ProtoMessage() {}
func (x *EmailTemplate) ProtoReflect() protoreflect.Message {
mi := &file_io_common_distribution_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 EmailTemplate.ProtoReflect.Descriptor instead.
func (*EmailTemplate) Descriptor() ([]byte, []int) {
return file_io_common_distribution_proto_rawDescGZIP(), []int{3}
}
func (x *EmailTemplate) GetSubject() string {
if x != nil {
return x.Subject
}
return ""
}
func (x *EmailTemplate) GetLocalizedSubject() *LocalizedString {
if x != nil {
return x.LocalizedSubject
}
return nil
}
func (x *EmailTemplate) GetBodyTextContent() string {
if x != nil {
return x.BodyTextContent
}
return ""
}
func (x *EmailTemplate) GetLocalizedBodyTextContent() *LocalizedString {
if x != nil {
return x.LocalizedBodyTextContent
}
return nil
}
func (x *EmailTemplate) GetBodyHtmlContent() string {
if x != nil {
return x.BodyHtmlContent
}
return ""
}
func (x *EmailTemplate) GetLocalizedBodyHtmlContent() *LocalizedString {
if x != nil {
return x.LocalizedBodyHtmlContent
}
return nil
}
func (x *EmailTemplate) GetConfiguration() *EmailConfiguration {
if x != nil {
return x.Configuration
}
return nil
}
func (x *EmailTemplate) GetButtonText() string {
if x != nil {
return x.ButtonText
}
return ""
}
func (x *EmailTemplate) GetButtonTextColor() string {
if x != nil {
return x.ButtonTextColor
}
return ""
}
func (x *EmailTemplate) GetButtonBackgroundColor() string {
if x != nil {
return x.ButtonBackgroundColor
}
return ""
}
func (x *EmailTemplate) GetButtonBorderRadius() string {
if x != nil {
return x.ButtonBorderRadius
}
return ""
}
func (x *EmailTemplate) GetFooterTextContent() string {
if x != nil {
return x.FooterTextContent
}
return ""
}
func (x *EmailTemplate) GetLocalizedFooterTextContent() *LocalizedString {
if x != nil {
return x.LocalizedFooterTextContent
}
return nil
}
func (x *EmailTemplate) GetFooterHtmlContent() string {
if x != nil {
return x.FooterHtmlContent
}
return ""
}
func (x *EmailTemplate) GetLocalizedFooterHtmlContent() *LocalizedString {
if x != nil {
return x.LocalizedFooterHtmlContent
}
return nil
}
func (x *EmailTemplate) GetMessageBackgroundColor() string {
if x != nil {
return x.MessageBackgroundColor
}
return ""
}
func (x *EmailTemplate) GetPageBackgroundColor() string {
if x != nil {
return x.PageBackgroundColor
}
return ""
}
func (x *EmailTemplate) GetTemplateOptions() int32 {
if x != nil {
return x.TemplateOptions
}
return 0
}
type EmailConfiguration struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Sender's email address.
EmailFrom string `protobuf:"bytes,1,opt,name=emailFrom,proto3" json:"emailFrom,omitempty"`
// Sender's company / organization name.
EmailFromName string `protobuf:"bytes,2,opt,name=emailFromName,proto3" json:"emailFromName,omitempty"`
// Indicates that PassKit is authorized to send from the emailFrom address (either via AWS or Google Cloud)
EmailFromVerifiedForSending bool `protobuf:"varint,3,opt,name=EmailFromVerifiedForSending,proto3" json:"EmailFromVerifiedForSending,omitempty"`
// Indicated that bodyHtmlContent is custom HTML provided by the user.
UseCustomHtml bool `protobuf:"varint,4,opt,name=useCustomHtml,proto3" json:"useCustomHtml,omitempty"`
}
func (x *EmailConfiguration) Reset() {
*x = EmailConfiguration{}
if protoimpl.UnsafeEnabled {
mi := &file_io_common_distribution_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EmailConfiguration) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EmailConfiguration) ProtoMessage() {}
func (x *EmailConfiguration) ProtoReflect() protoreflect.Message {
mi := &file_io_common_distribution_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 EmailConfiguration.ProtoReflect.Descriptor instead.
func (*EmailConfiguration) Descriptor() ([]byte, []int) {
return file_io_common_distribution_proto_rawDescGZIP(), []int{4}
}
func (x *EmailConfiguration) GetEmailFrom() string {
if x != nil {
return x.EmailFrom
}
return ""
}
func (x *EmailConfiguration) GetEmailFromName() string {
if x != nil {
return x.EmailFromName
}
return ""
}
func (x *EmailConfiguration) GetEmailFromVerifiedForSending() bool {
if x != nil {
return x.EmailFromVerifiedForSending
}
return false
}
func (x *EmailConfiguration) GetUseCustomHtml() bool {
if x != nil {
return x.UseCustomHtml
}
return false
}
// SMS contains details for a sending an sms to customers.
// Uses the default PassKit SMS provider and sending credentials.
type SmsTemplate struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
// localized content of the SMS; needs to be limited to 70 unicode characters. Can contain any of the fields from fields array: ${DISPLAY_NAME}, ${EMAIL_ADDRESS}, etc.
LocalizedContent *LocalizedString `protobuf:"bytes,2,opt,name=localizedContent,proto3" json:"localizedContent,omitempty"`
}
func (x *SmsTemplate) Reset() {
*x = SmsTemplate{}
if protoimpl.UnsafeEnabled {
mi := &file_io_common_distribution_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SmsTemplate) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SmsTemplate) ProtoMessage() {}
func (x *SmsTemplate) ProtoReflect() protoreflect.Message {
mi := &file_io_common_distribution_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 SmsTemplate.ProtoReflect.Descriptor instead.
func (*SmsTemplate) Descriptor() ([]byte, []int) {
return file_io_common_distribution_proto_rawDescGZIP(), []int{5}
}
func (x *SmsTemplate) GetContent() string {
if x != nil {
return x.Content
}
return ""
}
func (x *SmsTemplate) GetLocalizedContent() *LocalizedString {
if x != nil {
return x.LocalizedContent
}
return nil
}
type EnrolmentUrls struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Enrolment page of the base tier (tier with the lowest tier index).
PageUrl string `protobuf:"bytes,1,opt,name=pageUrl,proto3" json:"pageUrl,omitempty"`
// QR code image url of the the base tier.
QrCodeUrl string `protobuf:"bytes,2,opt,name=qrCodeUrl,proto3" json:"qrCodeUrl,omitempty"`
// Enrolment page for each tier.
TierEnrolmentUrls map[string]string `protobuf:"bytes,3,rep,name=tierEnrolmentUrls,proto3" json:"tierEnrolmentUrls,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// QR code for each tier.
TierEnrolmentQRs map[string]string `protobuf:"bytes,4,rep,name=tierEnrolmentQRs,proto3" json:"tierEnrolmentQRs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *EnrolmentUrls) Reset() {
*x = EnrolmentUrls{}
if protoimpl.UnsafeEnabled {
mi := &file_io_common_distribution_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EnrolmentUrls) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EnrolmentUrls) ProtoMessage() {}
func (x *EnrolmentUrls) ProtoReflect() protoreflect.Message {
mi := &file_io_common_distribution_proto_msgTypes[6]
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 EnrolmentUrls.ProtoReflect.Descriptor instead.
func (*EnrolmentUrls) Descriptor() ([]byte, []int) {
return file_io_common_distribution_proto_rawDescGZIP(), []int{6}
}
func (x *EnrolmentUrls) GetPageUrl() string {
if x != nil {
return x.PageUrl
}
return ""
}
func (x *EnrolmentUrls) GetQrCodeUrl() string {
if x != nil {
return x.QrCodeUrl
}
return ""
}
func (x *EnrolmentUrls) GetTierEnrolmentUrls() map[string]string {
if x != nil {
return x.TierEnrolmentUrls
}
return nil
}
func (x *EnrolmentUrls) GetTierEnrolmentQRs() map[string]string {
if x != nil {
return x.TierEnrolmentQRs
}
return nil
}
type DataCollectionFields struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Fields []*DataCollectionField `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
}
func (x *DataCollectionFields) Reset() {
*x = DataCollectionFields{}
if protoimpl.UnsafeEnabled {
mi := &file_io_common_distribution_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DataCollectionFields) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DataCollectionFields) ProtoMessage() {}
func (x *DataCollectionFields) ProtoReflect() protoreflect.Message {
mi := &file_io_common_distribution_proto_msgTypes[7]
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 DataCollectionFields.ProtoReflect.Descriptor instead.
func (*DataCollectionFields) Descriptor() ([]byte, []int) {
return file_io_common_distribution_proto_rawDescGZIP(), []int{7}
}
func (x *DataCollectionFields) GetFields() []*DataCollectionField {
if x != nil {
return x.Fields
}
return nil
}
type DataCollectionField struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// If PII key is set as an unique name of the field, collected data will be stored under PII (ex. surname, forename).
// Else, uniqueName (key) and value are stored under meta object.
UniqueName string `protobuf:"bytes,1,opt,name=uniqueName,proto3" json:"uniqueName,omitempty"`
FieldType FieldType `protobuf:"varint,2,opt,name=fieldType,proto3,enum=io.FieldType" json:"fieldType,omitempty"`
// If set true, the field is mandatory. If set false, the field is optional.
IsRequired bool `protobuf:"varint,3,opt,name=isRequired,proto3" json:"isRequired,omitempty"`
// A text used for the data collection field label and pass field title.
Label string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
// This translates label text into different language.
LocalizedLabel *LocalizedString `protobuf:"bytes,5,opt,name=localizedLabel,proto3" json:"localizedLabel,omitempty"`
// Data type you want to receive from your users.
DataType DataType `protobuf:"varint,6,opt,name=dataType,proto3,enum=io.DataType" json:"dataType,omitempty"`
// An optional default value or text. E.g. a default set of terms an conditions. Value can contain a protocol field in the format of ${member.externalId}.
DefaultValue string `protobuf:"bytes,7,opt,name=defaultValue,proto3" json:"defaultValue,omitempty"`
// This translates default value of the field into different languages.
LocalizedDefaultValue *LocalizedString `protobuf:"bytes,8,opt,name=localizedDefaultValue,proto3" json:"localizedDefaultValue,omitempty"`
// A regex which allows you to set set custom validation rules for the data stored.
Validation string `protobuf:"bytes,9,opt,name=validation,proto3" json:"validation,omitempty"`
// If false, a defaultValue or listOptions[0] will be used.
UserCanSetValue bool `protobuf:"varint,10,opt,name=userCanSetValue,proto3" json:"userCanSetValue,omitempty"`
// The currency code (e.g. USD, EUR) to display with money value if data type is set as currency.
CurrencyCode string `protobuf:"bytes,11,opt,name=currencyCode,proto3" json:"currencyCode,omitempty"`
// Default international telephone code determines the default country flag of the tel input field (e.g. +852, +44).
DefaultTelCountryCode string `protobuf:"bytes,12,opt,name=defaultTelCountryCode,proto3" json:"defaultTelCountryCode,omitempty"`
}
func (x *DataCollectionField) Reset() {
*x = DataCollectionField{}
if protoimpl.UnsafeEnabled {
mi := &file_io_common_distribution_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DataCollectionField) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DataCollectionField) ProtoMessage() {}
func (x *DataCollectionField) ProtoReflect() protoreflect.Message {
mi := &file_io_common_distribution_proto_msgTypes[8]
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 DataCollectionField.ProtoReflect.Descriptor instead.
func (*DataCollectionField) Descriptor() ([]byte, []int) {
return file_io_common_distribution_proto_rawDescGZIP(), []int{8}
}
func (x *DataCollectionField) GetUniqueName() string {
if x != nil {
return x.UniqueName
}
return ""
}
func (x *DataCollectionField) GetFieldType() FieldType {
if x != nil {
return x.FieldType
}
return FieldType_FIELD_TYPE_NONE
}
func (x *DataCollectionField) GetIsRequired() bool {
if x != nil {
return x.IsRequired
}
return false
}
func (x *DataCollectionField) GetLabel() string {
if x != nil {
return x.Label
}
return ""
}
func (x *DataCollectionField) GetLocalizedLabel() *LocalizedString {
if x != nil {
return x.LocalizedLabel
}
return nil
}
func (x *DataCollectionField) GetDataType() DataType {
if x != nil {
return x.DataType
}
return DataType_DATA_TYPE_NONE
}
func (x *DataCollectionField) GetDefaultValue() string {
if x != nil {
return x.DefaultValue
}
return ""
}
func (x *DataCollectionField) GetLocalizedDefaultValue() *LocalizedString {
if x != nil {
return x.LocalizedDefaultValue
}
return nil
}
func (x *DataCollectionField) GetValidation() string {
if x != nil {
return x.Validation
}
return ""
}
func (x *DataCollectionField) GetUserCanSetValue() bool {
if x != nil {
return x.UserCanSetValue
}
return false
}
func (x *DataCollectionField) GetCurrencyCode() string {
if x != nil {
return x.CurrencyCode
}
return ""
}
func (x *DataCollectionField) GetDefaultTelCountryCode() string {
if x != nil {
return x.DefaultTelCountryCode
}
return ""
}
type SmartPassCsvUploadRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Url used to prefix the smartpass link. Also includes the short code needed to lookup the parent project.
// @tag: validateCreate:"required"
DistributionUrl string `protobuf:"bytes,1,opt,name=distributionUrl,proto3" json:"distributionUrl,omitempty" validateCreate:"required"`
// @tag: validateCreate:"required"
CsvContent string `protobuf:"bytes,2,opt,name=csvContent,proto3" json:"csvContent,omitempty" validateCreate:"required"`
}
func (x *SmartPassCsvUploadRequest) Reset() {
*x = SmartPassCsvUploadRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_io_common_distribution_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SmartPassCsvUploadRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SmartPassCsvUploadRequest) ProtoMessage() {}
func (x *SmartPassCsvUploadRequest) ProtoReflect() protoreflect.Message {
mi := &file_io_common_distribution_proto_msgTypes[9]
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 SmartPassCsvUploadRequest.ProtoReflect.Descriptor instead.
func (*SmartPassCsvUploadRequest) Descriptor() ([]byte, []int) {
return file_io_common_distribution_proto_rawDescGZIP(), []int{9}
}
func (x *SmartPassCsvUploadRequest) GetDistributionUrl() string {
if x != nil {
return x.DistributionUrl
}
return ""
}