-
Notifications
You must be signed in to change notification settings - Fork 6
/
member.pb.go
1875 lines (1690 loc) · 78 KB
/
member.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
//*
// Members
//
// Member information needs to be provided. Most member information is optional. If the Program has 'autoGenerateMemberID' set to true, then PassKit will take care of generating a 10 digit member ID for new members. Please note that the ID cannot be changed at a later stage.
// Member information is treated as PII and encrypted at rest. Member information is deleted or rendered unusable once the member record is deleted.
//
// addVoucher (to add a voucher to a member record).
// redeemVoucher (to redeem a coupon or voucher that a member might hold).
//
// cancelMembership: will probably need to be triggered from customer cancel page.
// renewMembership / extendMembership: will probably need to be triggered from customer website.
//
// listPromotions: lists history of all promotions for a member / tier / program
// extendMembershipFromStripe: contains a stripe_subscription_id, which we match against the member record (also would need to verify, the callback really comes from Stripe).
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.33.0
// protoc v4.25.1
// source: io/member/member.proto
package members
import (
reflect "reflect"
sync "sync"
io "github.com/PassKit/passkit-golang-grpc-sdk/io"
_ "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)
)
// List of allowed member statuses
type MemberStatus int32
const (
// Member has successfully enrolled in the program.
MemberStatus_ENROLLED MemberStatus = 0
// Member is active.
MemberStatus_ACTIVE MemberStatus = 1
// Member is checked in.
MemberStatus_CHECKED_IN MemberStatus = 2
// For expired members.
MemberStatus_EXPIRED MemberStatus = 3
// Member is checked out.
MemberStatus_CHECKED_OUT MemberStatus = 4
// For members who's records have been deleted.
MemberStatus_DELETED MemberStatus = 5
)
// Enum value maps for MemberStatus.
var (
MemberStatus_name = map[int32]string{
0: "ENROLLED",
1: "ACTIVE",
2: "CHECKED_IN",
3: "EXPIRED",
4: "CHECKED_OUT",
5: "DELETED",
}
MemberStatus_value = map[string]int32{
"ENROLLED": 0,
"ACTIVE": 1,
"CHECKED_IN": 2,
"EXPIRED": 3,
"CHECKED_OUT": 4,
"DELETED": 5,
}
)
func (x MemberStatus) Enum() *MemberStatus {
p := new(MemberStatus)
*p = x
return p
}
func (x MemberStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (MemberStatus) Descriptor() protoreflect.EnumDescriptor {
return file_io_member_member_proto_enumTypes[0].Descriptor()
}
func (MemberStatus) Type() protoreflect.EnumType {
return &file_io_member_member_proto_enumTypes[0]
}
func (x MemberStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use MemberStatus.Descriptor instead.
func (MemberStatus) EnumDescriptor() ([]byte, []int) {
return file_io_member_member_proto_rawDescGZIP(), []int{0}
}
// The member record
type Member struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Id assigned by PassKit to represent the member record. It will be used as the serial number in Apple Wallet and as the Object identifier for Google Wallet. This field is not writable.
// @tag: validateGeneric:"required" validateCreate:"-" validateUpdate:"-"
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validateGeneric:"required" validateCreate:"-" validateUpdate:"-"`
// This can be used to set the 'external' ID of the member (i.e. the member ID as it's being used in your system). If provided then this can be used to query & update members. This field will be treated as unique within the program, and cannot be updated at a later stage.
// @tag: validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"
ExternalId string `protobuf:"bytes,2,opt,name=externalId,proto3" json:"externalId,omitempty" validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"`
// Grouping Identifier can be used to group members under the same membership (i.e. couple).
// @tag: validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"
GroupingIdentifier string `protobuf:"bytes,3,opt,name=groupingIdentifier,proto3" json:"groupingIdentifier,omitempty" validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"`
// Indicates the ID of the tier this member is in.
// @tag: validateGeneric:"omitempty" validateCreate:"required" validateUpdate:"omitempty"
TierId string `protobuf:"bytes,4,opt,name=tierId,proto3" json:"tierId,omitempty" validateGeneric:"omitempty" validateCreate:"required" validateUpdate:"omitempty"`
// Indicates the ID of the program this member is in.
// @tag: validateGeneric:"omitempty" validateCreate:"required" validateUpdate:"omitempty"
ProgramId string `protobuf:"bytes,5,opt,name=programId,proto3" json:"programId,omitempty" validateGeneric:"omitempty" validateCreate:"required" validateUpdate:"omitempty"`
// Personal details of the member.
// @tag: validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"
Person *io.Person `protobuf:"bytes,6,opt,name=person,proto3" json:"person,omitempty" validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"`
// Any other meta fields for the member that are not covered in the protocol (i.e. you might want to captures sign-up location, and favorite coffee, for segmenting later on).
// @tag: validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"
MetaData map[string]string `protobuf:"bytes,7,rep,name=metaData,proto3" json:"metaData,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3" validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"`
// Indicates if the member opted out to receive marketing promotions (defaults to false).
// @tag: validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"
OptOut bool `protobuf:"varint,13,opt,name=optOut,proto3" json:"optOut,omitempty" validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"`
// Points is formatted differently based on what is set on a program level. Program points.balance field can be set to: `int`, `double` or `money`.
// @tag: validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"
Points float32 `protobuf:"fixed32,14,opt,name=points,proto3" json:"points,omitempty" validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"`
// Secondary Points is formatted differently based on what is set on a program level. Program secondaryPoints.balance field can be set to: `int`, `double` or `money`. Field can be utilised if your program tracks two points, i.e. loyalty point balance, and pre-paid cash balance.
// @tag: validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"
SecondaryPoints float32 `protobuf:"fixed32,15,opt,name=secondaryPoints,proto3" json:"secondaryPoints,omitempty" validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"`
// Tier points can be set for programs that award tiers based on dedicated tier points. Tier points indicates the current amount of tier points someone has, and can be used by a member to check how many more tier points are required to switch to the next tier.
// @tag: validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"
TierPoints uint32 `protobuf:"varint,16,opt,name=tierPoints,proto3" json:"tierPoints,omitempty" validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"`
// Indicates when the membership card expires. When the expiry date hits, it will automatically gray out the barcode. Records that have been expired for longer than 90 days will be permanently deleted. A pass that has expired can be reactivated by updating the expiry date.
// @tag: validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"
ExpiryDate *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=expiryDate,proto3" json:"expiryDate,omitempty" validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"`
// Member status.
Status MemberStatus `protobuf:"varint,19,opt,name=status,proto3,enum=members.MemberStatus" json:"status,omitempty"`
// Pass level overrides for proximity & images.
PassOverrides *io.PassOverrides `protobuf:"bytes,20,opt,name=passOverrides,proto3" json:"passOverrides,omitempty"`
// Pass Metadata.
PassMetaData *io.Metadata `protobuf:"bytes,21,opt,name=passMetaData,proto3" json:"passMetaData,omitempty"`
// placeholder for notes.
// @tag: validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"
Notes []*io.Note `protobuf:"bytes,26,rep,name=notes,proto3" json:"notes,omitempty" validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"`
// The date the current tier was awarded.
// @tag: validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"
CurrentTierAwarded *timestamppb.Timestamp `protobuf:"bytes,27,opt,name=currentTierAwarded,proto3" json:"currentTierAwarded,omitempty" validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"`
// The date the current tier expires.
// @tag: validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"
CurrentTierExpires *timestamppb.Timestamp `protobuf:"bytes,28,opt,name=currentTierExpires,proto3" json:"currentTierExpires,omitempty" validateGeneric:"omitempty" validateCreate:"omitempty" validateUpdate:"omitempty"`
// The date the member was created in the PassKit system.
// @tag: validateGeneric:"-" validateCreate:"-" validateUpdate:"-"
Created *timestamppb.Timestamp `protobuf:"bytes,29,opt,name=created,proto3" json:"created,omitempty" validateGeneric:"-" validateCreate:"-" validateUpdate:"-"`
// The date the member was last updated in the PassKit system.
// @tag: validateGeneric:"-" validateCreate:"-" validateUpdate:"-"
Updated *timestamppb.Timestamp `protobuf:"bytes,30,opt,name=updated,proto3" json:"updated,omitempty" validateGeneric:"-" validateCreate:"-" validateUpdate:"-"`
// Optional field that holds the member profile image. Can either be an image URL or base64 image string.
ProfileImage string `protobuf:"bytes,31,opt,name=profileImage,proto3" json:"profileImage,omitempty"`
// Optional field to provide the operation that you want to perform when sending a member in an update request. PUT will replace all values provided in the MemberRequest, whereas PATCH will ignore missing or falsey values. To maintain compatibility with previous releases, the default value is PATCH.
Operation io.Operation `protobuf:"varint,100,opt,name=operation,proto3,enum=io.Operation" json:"operation,omitempty"`
}
func (x *Member) Reset() {
*x = Member{}
if protoimpl.UnsafeEnabled {
mi := &file_io_member_member_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Member) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Member) ProtoMessage() {}
func (x *Member) ProtoReflect() protoreflect.Message {
mi := &file_io_member_member_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 Member.ProtoReflect.Descriptor instead.
func (*Member) Descriptor() ([]byte, []int) {
return file_io_member_member_proto_rawDescGZIP(), []int{0}
}
func (x *Member) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Member) GetExternalId() string {
if x != nil {
return x.ExternalId
}
return ""
}
func (x *Member) GetGroupingIdentifier() string {
if x != nil {
return x.GroupingIdentifier
}
return ""
}
func (x *Member) GetTierId() string {
if x != nil {
return x.TierId
}
return ""
}
func (x *Member) GetProgramId() string {
if x != nil {
return x.ProgramId
}
return ""
}
func (x *Member) GetPerson() *io.Person {
if x != nil {
return x.Person
}
return nil
}
func (x *Member) GetMetaData() map[string]string {
if x != nil {
return x.MetaData
}
return nil
}
func (x *Member) GetOptOut() bool {
if x != nil {
return x.OptOut
}
return false
}
func (x *Member) GetPoints() float32 {
if x != nil {
return x.Points
}
return 0
}
func (x *Member) GetSecondaryPoints() float32 {
if x != nil {
return x.SecondaryPoints
}
return 0
}
func (x *Member) GetTierPoints() uint32 {
if x != nil {
return x.TierPoints
}
return 0
}
func (x *Member) GetExpiryDate() *timestamppb.Timestamp {
if x != nil {
return x.ExpiryDate
}
return nil
}
func (x *Member) GetStatus() MemberStatus {
if x != nil {
return x.Status
}
return MemberStatus_ENROLLED
}
func (x *Member) GetPassOverrides() *io.PassOverrides {
if x != nil {
return x.PassOverrides
}
return nil
}
func (x *Member) GetPassMetaData() *io.Metadata {
if x != nil {
return x.PassMetaData
}
return nil
}
func (x *Member) GetNotes() []*io.Note {
if x != nil {
return x.Notes
}
return nil
}
func (x *Member) GetCurrentTierAwarded() *timestamppb.Timestamp {
if x != nil {
return x.CurrentTierAwarded
}
return nil
}
func (x *Member) GetCurrentTierExpires() *timestamppb.Timestamp {
if x != nil {
return x.CurrentTierExpires
}
return nil
}
func (x *Member) GetCreated() *timestamppb.Timestamp {
if x != nil {
return x.Created
}
return nil
}
func (x *Member) GetUpdated() *timestamppb.Timestamp {
if x != nil {
return x.Updated
}
return nil
}
func (x *Member) GetProfileImage() string {
if x != nil {
return x.ProfileImage
}
return ""
}
func (x *Member) GetOperation() io.Operation {
if x != nil {
return x.Operation
}
return io.Operation(0)
}
// Used to request a digital membership pass by PassKit ID.
type MemberRecordByExternalIdRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Program ID.
// @tag: validateGeneric:"required"
ProgramId string `protobuf:"bytes,1,opt,name=programId,proto3" json:"programId,omitempty" validateGeneric:"required"`
// External ID.
// @tag: validateGeneric:"required"
ExternalId string `protobuf:"bytes,2,opt,name=externalId,proto3" json:"externalId,omitempty" validateGeneric:"required"`
}
func (x *MemberRecordByExternalIdRequest) Reset() {
*x = MemberRecordByExternalIdRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_io_member_member_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MemberRecordByExternalIdRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MemberRecordByExternalIdRequest) ProtoMessage() {}
func (x *MemberRecordByExternalIdRequest) ProtoReflect() protoreflect.Message {
mi := &file_io_member_member_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 MemberRecordByExternalIdRequest.ProtoReflect.Descriptor instead.
func (*MemberRecordByExternalIdRequest) Descriptor() ([]byte, []int) {
return file_io_member_member_proto_rawDescGZIP(), []int{1}
}
func (x *MemberRecordByExternalIdRequest) GetProgramId() string {
if x != nil {
return x.ProgramId
}
return ""
}
func (x *MemberRecordByExternalIdRequest) GetExternalId() string {
if x != nil {
return x.ExternalId
}
return ""
}
// Member segment allows us to segment members for listing or updating
type MemberSegmentRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Optional filter object; defines the segment.
Filter *io.Filter `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"`
// Contains fields to update (optional: if used in update context).
NewValues *Member `protobuf:"bytes,2,opt,name=newValues,proto3" json:"newValues,omitempty"`
}
func (x *MemberSegmentRequest) Reset() {
*x = MemberSegmentRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_io_member_member_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MemberSegmentRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MemberSegmentRequest) ProtoMessage() {}
func (x *MemberSegmentRequest) ProtoReflect() protoreflect.Message {
mi := &file_io_member_member_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 MemberSegmentRequest.ProtoReflect.Descriptor instead.
func (*MemberSegmentRequest) Descriptor() ([]byte, []int) {
return file_io_member_member_proto_rawDescGZIP(), []int{2}
}
func (x *MemberSegmentRequest) GetFilter() *io.Filter {
if x != nil {
return x.Filter
}
return nil
}
func (x *MemberSegmentRequest) GetNewValues() *Member {
if x != nil {
return x.NewValues
}
return nil
}
// Used to set new expiry dates for all of active members in the tier.
type UpdateExpiryRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Indicates the ID of the program.
// @tag: validateUpdate:"required"
ProgramId string `protobuf:"bytes,1,opt,name=programId,proto3" json:"programId,omitempty" validateUpdate:"required"`
// Indicates the ID of the tier.
// @tag: validateUpdate:"required"
TierId string `protobuf:"bytes,2,opt,name=tierId,proto3" json:"tierId,omitempty" validateUpdate:"required"`
// Expiry date setting you want to apply for this update.
// @tag: validateUpdate:"required"
ExpirySettings *io.ExpirySettings `protobuf:"bytes,3,opt,name=expirySettings,proto3" json:"expirySettings,omitempty" validateUpdate:"required"`
// Timezone string in IANA timezone format applied for EXPIRE_ON_FIXED_DATE. If not provided Tier timezone is applied.
// @tag: validateUpdate:"omitempty,ianaTimeZone"
Timezone string `protobuf:"bytes,4,opt,name=timezone,proto3" json:"timezone,omitempty" validateUpdate:"omitempty,ianaTimeZone"`
}
func (x *UpdateExpiryRequest) Reset() {
*x = UpdateExpiryRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_io_member_member_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateExpiryRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateExpiryRequest) ProtoMessage() {}
func (x *UpdateExpiryRequest) ProtoReflect() protoreflect.Message {
mi := &file_io_member_member_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 UpdateExpiryRequest.ProtoReflect.Descriptor instead.
func (*UpdateExpiryRequest) Descriptor() ([]byte, []int) {
return file_io_member_member_proto_rawDescGZIP(), []int{3}
}
func (x *UpdateExpiryRequest) GetProgramId() string {
if x != nil {
return x.ProgramId
}
return ""
}
func (x *UpdateExpiryRequest) GetTierId() string {
if x != nil {
return x.TierId
}
return ""
}
func (x *UpdateExpiryRequest) GetExpirySettings() *io.ExpirySettings {
if x != nil {
return x.ExpirySettings
}
return nil
}
func (x *UpdateExpiryRequest) GetTimezone() string {
if x != nil {
return x.Timezone
}
return ""
}
// Used to update the expiry date of a member.
type MemberExpiry struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Internal PassKit ID.
// @tag: validateUpdate:"required_without=ExternalId"
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validateUpdate:"required_without=ExternalId"`
// External member ID.
// @tag: validateUpdate:"required_without=Id"
ExternalId string `protobuf:"bytes,2,opt,name=externalId,proto3" json:"externalId,omitempty" validateUpdate:"required_without=Id"`
// Required if externalId is set.
// @tag: validateUpdate:"required_without=Id"
ProgramId string `protobuf:"bytes,3,opt,name=programId,proto3" json:"programId,omitempty" validateUpdate:"required_without=Id"`
// Indicates when the membership card expires. When the expiry date hits, it will automatically gray out the barcode.
// @tag: validateUpdate:"required"
ExpiryDate *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=expiryDate,proto3" json:"expiryDate,omitempty" validateUpdate:"required"`
}
func (x *MemberExpiry) Reset() {
*x = MemberExpiry{}
if protoimpl.UnsafeEnabled {
mi := &file_io_member_member_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MemberExpiry) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MemberExpiry) ProtoMessage() {}
func (x *MemberExpiry) ProtoReflect() protoreflect.Message {
mi := &file_io_member_member_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 MemberExpiry.ProtoReflect.Descriptor instead.
func (*MemberExpiry) Descriptor() ([]byte, []int) {
return file_io_member_member_proto_rawDescGZIP(), []int{4}
}
func (x *MemberExpiry) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *MemberExpiry) GetExternalId() string {
if x != nil {
return x.ExternalId
}
return ""
}
func (x *MemberExpiry) GetProgramId() string {
if x != nil {
return x.ProgramId
}
return ""
}
func (x *MemberExpiry) GetExpiryDate() *timestamppb.Timestamp {
if x != nil {
return x.ExpiryDate
}
return nil
}
type MemberPoints struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Internal PassKit ID.
// @tag: validateGeneric:"required_without=ExternalId"
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validateGeneric:"required_without=ExternalId"`
// External member ID.
// @tag: validateGeneric:"required_without=Id"
ExternalId string `protobuf:"bytes,2,opt,name=externalId,proto3" json:"externalId,omitempty" validateGeneric:"required_without=Id"`
// Required if externalId is set.
// @tag: validateGeneric:"required_without=Id"
ProgramId string `protobuf:"bytes,3,opt,name=programId,proto3" json:"programId,omitempty" validateGeneric:"required_without=Id"`
// The latest point balance.
// @tag: validateGeneric:"required_without_all=SecondaryPoints TierPoints"
Points float32 `protobuf:"fixed32,4,opt,name=points,proto3" json:"points,omitempty" validateGeneric:"required_without_all=SecondaryPoints TierPoints"`
// The latest secondary point balance.
// @tag: validateGeneric:"required_without_all=Points TierPoints"
SecondaryPoints float32 `protobuf:"fixed32,5,opt,name=secondaryPoints,proto3" json:"secondaryPoints,omitempty" validateGeneric:"required_without_all=Points TierPoints"`
// The latest tier point balance.
// @tag: validateGeneric:"required_without_all=Points SecondaryPoints"
TierPoints uint32 `protobuf:"varint,6,opt,name=tierPoints,proto3" json:"tierPoints,omitempty" validateGeneric:"required_without_all=Points SecondaryPoints"`
}
func (x *MemberPoints) Reset() {
*x = MemberPoints{}
if protoimpl.UnsafeEnabled {
mi := &file_io_member_member_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MemberPoints) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MemberPoints) ProtoMessage() {}
func (x *MemberPoints) ProtoReflect() protoreflect.Message {
mi := &file_io_member_member_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 MemberPoints.ProtoReflect.Descriptor instead.
func (*MemberPoints) Descriptor() ([]byte, []int) {
return file_io_member_member_proto_rawDescGZIP(), []int{5}
}
func (x *MemberPoints) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *MemberPoints) GetExternalId() string {
if x != nil {
return x.ExternalId
}
return ""
}
func (x *MemberPoints) GetProgramId() string {
if x != nil {
return x.ProgramId
}
return ""
}
func (x *MemberPoints) GetPoints() float32 {
if x != nil {
return x.Points
}
return 0
}
func (x *MemberPoints) GetSecondaryPoints() float32 {
if x != nil {
return x.SecondaryPoints
}
return 0
}
func (x *MemberPoints) GetTierPoints() uint32 {
if x != nil {
return x.TierPoints
}
return 0
}
type EarnBurnPointsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Internal PassKit ID.
// @tag: validateGeneric:"required_without=ExternalId"
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validateGeneric:"required_without=ExternalId"`
// External member ID.
// @tag: validateGeneric:"required_without=Id"
ExternalId string `protobuf:"bytes,2,opt,name=externalId,proto3" json:"externalId,omitempty" validateGeneric:"required_without=Id"`
// Required if externalId is set.
// @tag: validateGeneric:"required_without=Id"
ProgramId string `protobuf:"bytes,3,opt,name=programId,proto3" json:"programId,omitempty" validateGeneric:"required_without=Id"`
// The amount of primary points earned or burnt. The amount needs to be greater than or equal to 0.
// @tag: validateGeneric:"required_without_all=SecondaryPoints TierPoints,gte=0"
Points float32 `protobuf:"fixed32,4,opt,name=points,proto3" json:"points,omitempty" validateGeneric:"required_without_all=SecondaryPoints TierPoints,gte=0"`
// The amount of secondary points earned or burnt. The amount needs to be greater than or equal to 0.
// @tag: validateGeneric:"required_without_all=Points TierPoints,gte=0"
SecondaryPoints float32 `protobuf:"fixed32,5,opt,name=secondaryPoints,proto3" json:"secondaryPoints,omitempty" validateGeneric:"required_without_all=Points TierPoints,gte=0"`
// The amount of tier points earned or burnt. The amount needs to be greater than or equal to 0.
// @tag: validateGeneric:"required_without_all=Points SecondaryPoints"
TierPoints uint32 `protobuf:"varint,6,opt,name=tierPoints,proto3" json:"tierPoints,omitempty" validateGeneric:"required_without_all=Points SecondaryPoints"`
// @tag: validateGeneric:"omitempty"
EventDetails *EventDetails `protobuf:"bytes,7,opt,name=eventDetails,proto3" json:"eventDetails,omitempty" validateGeneric:"omitempty"`
// Optional field to change the tierIf of the member.
// @tag: validateGeneric:"omitempty"
TierId string `protobuf:"bytes,8,opt,name=tierId,proto3" json:"tierId,omitempty" validateGeneric:"omitempty"`
}
func (x *EarnBurnPointsRequest) Reset() {
*x = EarnBurnPointsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_io_member_member_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EarnBurnPointsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EarnBurnPointsRequest) ProtoMessage() {}
func (x *EarnBurnPointsRequest) ProtoReflect() protoreflect.Message {
mi := &file_io_member_member_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 EarnBurnPointsRequest.ProtoReflect.Descriptor instead.
func (*EarnBurnPointsRequest) Descriptor() ([]byte, []int) {
return file_io_member_member_proto_rawDescGZIP(), []int{6}
}
func (x *EarnBurnPointsRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *EarnBurnPointsRequest) GetExternalId() string {
if x != nil {
return x.ExternalId
}
return ""
}
func (x *EarnBurnPointsRequest) GetProgramId() string {
if x != nil {
return x.ProgramId
}
return ""
}
func (x *EarnBurnPointsRequest) GetPoints() float32 {
if x != nil {
return x.Points
}
return 0
}
func (x *EarnBurnPointsRequest) GetSecondaryPoints() float32 {
if x != nil {
return x.SecondaryPoints
}
return 0
}
func (x *EarnBurnPointsRequest) GetTierPoints() uint32 {
if x != nil {
return x.TierPoints
}
return 0
}
func (x *EarnBurnPointsRequest) GetEventDetails() *EventDetails {
if x != nil {
return x.EventDetails
}
return nil
}
func (x *EarnBurnPointsRequest) GetTierId() string {
if x != nil {
return x.TierId
}
return ""
}
type SetPointsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Internal PassKit ID.
// @tag: validateGeneric:"required_without=ExternalId"
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" validateGeneric:"required_without=ExternalId"`
// External member ID.
// @tag: validateGeneric:"required_without=Id"
ExternalId string `protobuf:"bytes,2,opt,name=externalId,proto3" json:"externalId,omitempty" validateGeneric:"required_without=Id"`
// Required if externalId is set.
// @tag: validateGeneric:"required_without=Id"
ProgramId string `protobuf:"bytes,3,opt,name=programId,proto3" json:"programId,omitempty" validateGeneric:"required_without=Id"`
// The latest point balance.
// @tag: validateGeneric:"required_without_all=SecondaryPoints TierPoints ResetPoints ResetSecondaryPoints ResetTierPoints"
Points float32 `protobuf:"fixed32,4,opt,name=points,proto3" json:"points,omitempty" validateGeneric:"required_without_all=SecondaryPoints TierPoints ResetPoints ResetSecondaryPoints ResetTierPoints"`
// The latest secondary point balance.
SecondaryPoints float32 `protobuf:"fixed32,5,opt,name=secondaryPoints,proto3" json:"secondaryPoints,omitempty"`
// The latest tier point balance.
TierPoints uint32 `protobuf:"varint,6,opt,name=tierPoints,proto3" json:"tierPoints,omitempty"`
// Reset the point balance. If set true, the point balance will be 0. The default is false.
ResetPoints bool `protobuf:"varint,7,opt,name=resetPoints,proto3" json:"resetPoints,omitempty"`
// Reset the secondary points. If set true, the secondary point balance will be 0. The default is false.
ResetSecondaryPoints bool `protobuf:"varint,8,opt,name=resetSecondaryPoints,proto3" json:"resetSecondaryPoints,omitempty"`
// Reset the tier points. If set true, the tier point balance will be 0. The default is false.
ResetTierPoints bool `protobuf:"varint,9,opt,name=resetTierPoints,proto3" json:"resetTierPoints,omitempty"`
// @tag: validateGeneric:"omitempty"
EventDetails *EventDetails `protobuf:"bytes,10,opt,name=eventDetails,proto3" json:"eventDetails,omitempty" validateGeneric:"omitempty"`
// Optional field to change the tierIf of the member.
// @tag: validateGeneric:"omitempty"
TierId string `protobuf:"bytes,11,opt,name=tierId,proto3" json:"tierId,omitempty" validateGeneric:"omitempty"`
}
func (x *SetPointsRequest) Reset() {
*x = SetPointsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_io_member_member_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SetPointsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SetPointsRequest) ProtoMessage() {}
func (x *SetPointsRequest) ProtoReflect() protoreflect.Message {
mi := &file_io_member_member_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 SetPointsRequest.ProtoReflect.Descriptor instead.
func (*SetPointsRequest) Descriptor() ([]byte, []int) {
return file_io_member_member_proto_rawDescGZIP(), []int{7}
}
func (x *SetPointsRequest) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *SetPointsRequest) GetExternalId() string {
if x != nil {
return x.ExternalId
}
return ""
}
func (x *SetPointsRequest) GetProgramId() string {
if x != nil {
return x.ProgramId
}
return ""
}
func (x *SetPointsRequest) GetPoints() float32 {
if x != nil {
return x.Points
}
return 0
}
func (x *SetPointsRequest) GetSecondaryPoints() float32 {
if x != nil {
return x.SecondaryPoints
}
return 0
}
func (x *SetPointsRequest) GetTierPoints() uint32 {
if x != nil {
return x.TierPoints
}
return 0
}
func (x *SetPointsRequest) GetResetPoints() bool {
if x != nil {
return x.ResetPoints
}
return false
}
func (x *SetPointsRequest) GetResetSecondaryPoints() bool {
if x != nil {
return x.ResetSecondaryPoints
}
return false
}
func (x *SetPointsRequest) GetResetTierPoints() bool {
if x != nil {
return x.ResetTierPoints
}
return false
}
func (x *SetPointsRequest) GetEventDetails() *EventDetails {
if x != nil {
return x.EventDetails
}
return nil
}
func (x *SetPointsRequest) GetTierId() string {
if x != nil {
return x.TierId
}
return ""
}
type MemberCheckInOutRequest struct {