@headspace/protos-events 1.268.0 → 1.270.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts CHANGED
@@ -27693,6 +27693,144 @@ export class GiftRedeemed implements IGiftRedeemed {
27693
27693
  public toJSON(): { [k: string]: any };
27694
27694
  }
27695
27695
 
27696
+ /** Properties of a GiftEmailScheduled. */
27697
+ export interface IGiftEmailScheduled {
27698
+
27699
+ /** GiftEmailScheduled giftPurchaserHsUserId */
27700
+ giftPurchaserHsUserId?: (string|null);
27701
+
27702
+ /** GiftEmailScheduled giftPurchaseId */
27703
+ giftPurchaseId?: (string|null);
27704
+
27705
+ /** GiftEmailScheduled giftRecipientEmail */
27706
+ giftRecipientEmail?: (string|null);
27707
+
27708
+ /** GiftEmailScheduled giftRecipientFirstName */
27709
+ giftRecipientFirstName?: (string|null);
27710
+
27711
+ /** GiftEmailScheduled giftMessage */
27712
+ giftMessage?: (string|null);
27713
+
27714
+ /** GiftEmailScheduled giftTemplateId */
27715
+ giftTemplateId?: (string|null);
27716
+
27717
+ /** GiftEmailScheduled giftNumMonths */
27718
+ giftNumMonths?: (number|null);
27719
+
27720
+ /** GiftEmailScheduled timestamp */
27721
+ timestamp?: (number|Long|null);
27722
+
27723
+ /** GiftEmailScheduled giftRedemptionCode */
27724
+ giftRedemptionCode?: (string|null);
27725
+ }
27726
+
27727
+ /** Represents a GiftEmailScheduled. */
27728
+ export class GiftEmailScheduled implements IGiftEmailScheduled {
27729
+
27730
+ /**
27731
+ * Constructs a new GiftEmailScheduled.
27732
+ * @param [properties] Properties to set
27733
+ */
27734
+ constructor(properties?: IGiftEmailScheduled);
27735
+
27736
+ /** GiftEmailScheduled giftPurchaserHsUserId. */
27737
+ public giftPurchaserHsUserId: string;
27738
+
27739
+ /** GiftEmailScheduled giftPurchaseId. */
27740
+ public giftPurchaseId: string;
27741
+
27742
+ /** GiftEmailScheduled giftRecipientEmail. */
27743
+ public giftRecipientEmail: string;
27744
+
27745
+ /** GiftEmailScheduled giftRecipientFirstName. */
27746
+ public giftRecipientFirstName: string;
27747
+
27748
+ /** GiftEmailScheduled giftMessage. */
27749
+ public giftMessage: string;
27750
+
27751
+ /** GiftEmailScheduled giftTemplateId. */
27752
+ public giftTemplateId: string;
27753
+
27754
+ /** GiftEmailScheduled giftNumMonths. */
27755
+ public giftNumMonths: number;
27756
+
27757
+ /** GiftEmailScheduled timestamp. */
27758
+ public timestamp: (number|Long);
27759
+
27760
+ /** GiftEmailScheduled giftRedemptionCode. */
27761
+ public giftRedemptionCode: string;
27762
+
27763
+ /**
27764
+ * Creates a new GiftEmailScheduled instance using the specified properties.
27765
+ * @param [properties] Properties to set
27766
+ * @returns GiftEmailScheduled instance
27767
+ */
27768
+ public static create(properties?: IGiftEmailScheduled): GiftEmailScheduled;
27769
+
27770
+ /**
27771
+ * Encodes the specified GiftEmailScheduled message. Does not implicitly {@link GiftEmailScheduled.verify|verify} messages.
27772
+ * @param message GiftEmailScheduled message or plain object to encode
27773
+ * @param [writer] Writer to encode to
27774
+ * @returns Writer
27775
+ */
27776
+ public static encode(message: IGiftEmailScheduled, writer?: $protobuf.Writer): $protobuf.Writer;
27777
+
27778
+ /**
27779
+ * Encodes the specified GiftEmailScheduled message, length delimited. Does not implicitly {@link GiftEmailScheduled.verify|verify} messages.
27780
+ * @param message GiftEmailScheduled message or plain object to encode
27781
+ * @param [writer] Writer to encode to
27782
+ * @returns Writer
27783
+ */
27784
+ public static encodeDelimited(message: IGiftEmailScheduled, writer?: $protobuf.Writer): $protobuf.Writer;
27785
+
27786
+ /**
27787
+ * Decodes a GiftEmailScheduled message from the specified reader or buffer.
27788
+ * @param reader Reader or buffer to decode from
27789
+ * @param [length] Message length if known beforehand
27790
+ * @returns GiftEmailScheduled
27791
+ * @throws {Error} If the payload is not a reader or valid buffer
27792
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27793
+ */
27794
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GiftEmailScheduled;
27795
+
27796
+ /**
27797
+ * Decodes a GiftEmailScheduled message from the specified reader or buffer, length delimited.
27798
+ * @param reader Reader or buffer to decode from
27799
+ * @returns GiftEmailScheduled
27800
+ * @throws {Error} If the payload is not a reader or valid buffer
27801
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27802
+ */
27803
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GiftEmailScheduled;
27804
+
27805
+ /**
27806
+ * Verifies a GiftEmailScheduled message.
27807
+ * @param message Plain object to verify
27808
+ * @returns `null` if valid, otherwise the reason why it is not
27809
+ */
27810
+ public static verify(message: { [k: string]: any }): (string|null);
27811
+
27812
+ /**
27813
+ * Creates a GiftEmailScheduled message from a plain object. Also converts values to their respective internal types.
27814
+ * @param object Plain object
27815
+ * @returns GiftEmailScheduled
27816
+ */
27817
+ public static fromObject(object: { [k: string]: any }): GiftEmailScheduled;
27818
+
27819
+ /**
27820
+ * Creates a plain object from a GiftEmailScheduled message. Also converts values to other types if specified.
27821
+ * @param message GiftEmailScheduled
27822
+ * @param [options] Conversion options
27823
+ * @returns Plain object
27824
+ */
27825
+ public static toObject(message: GiftEmailScheduled, options?: $protobuf.IConversionOptions): { [k: string]: any };
27826
+
27827
+ /**
27828
+ * Converts this GiftEmailScheduled to JSON.
27829
+ * @returns JSON object
27830
+ */
27831
+ public toJSON(): { [k: string]: any };
27832
+ }
27833
+
27696
27834
  /** Properties of a GoogleSubscriptionPurchased. */
27697
27835
  export interface IGoogleSubscriptionPurchased {
27698
27836
 
package/lib/index.js CHANGED
@@ -75827,6 +75827,384 @@ $root.GiftRedeemed = (function() {
75827
75827
  return GiftRedeemed;
75828
75828
  })();
75829
75829
 
75830
+ $root.GiftEmailScheduled = (function() {
75831
+
75832
+ /**
75833
+ * Properties of a GiftEmailScheduled.
75834
+ * @exports IGiftEmailScheduled
75835
+ * @interface IGiftEmailScheduled
75836
+ * @property {string|null} [giftPurchaserHsUserId] GiftEmailScheduled giftPurchaserHsUserId
75837
+ * @property {string|null} [giftPurchaseId] GiftEmailScheduled giftPurchaseId
75838
+ * @property {string|null} [giftRecipientEmail] GiftEmailScheduled giftRecipientEmail
75839
+ * @property {string|null} [giftRecipientFirstName] GiftEmailScheduled giftRecipientFirstName
75840
+ * @property {string|null} [giftMessage] GiftEmailScheduled giftMessage
75841
+ * @property {string|null} [giftTemplateId] GiftEmailScheduled giftTemplateId
75842
+ * @property {number|null} [giftNumMonths] GiftEmailScheduled giftNumMonths
75843
+ * @property {number|Long|null} [timestamp] GiftEmailScheduled timestamp
75844
+ * @property {string|null} [giftRedemptionCode] GiftEmailScheduled giftRedemptionCode
75845
+ */
75846
+
75847
+ /**
75848
+ * Constructs a new GiftEmailScheduled.
75849
+ * @exports GiftEmailScheduled
75850
+ * @classdesc Represents a GiftEmailScheduled.
75851
+ * @implements IGiftEmailScheduled
75852
+ * @constructor
75853
+ * @param {IGiftEmailScheduled=} [properties] Properties to set
75854
+ */
75855
+ function GiftEmailScheduled(properties) {
75856
+ if (properties)
75857
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
75858
+ if (properties[keys[i]] != null)
75859
+ this[keys[i]] = properties[keys[i]];
75860
+ }
75861
+
75862
+ /**
75863
+ * GiftEmailScheduled giftPurchaserHsUserId.
75864
+ * @member {string} giftPurchaserHsUserId
75865
+ * @memberof GiftEmailScheduled
75866
+ * @instance
75867
+ */
75868
+ GiftEmailScheduled.prototype.giftPurchaserHsUserId = "";
75869
+
75870
+ /**
75871
+ * GiftEmailScheduled giftPurchaseId.
75872
+ * @member {string} giftPurchaseId
75873
+ * @memberof GiftEmailScheduled
75874
+ * @instance
75875
+ */
75876
+ GiftEmailScheduled.prototype.giftPurchaseId = "";
75877
+
75878
+ /**
75879
+ * GiftEmailScheduled giftRecipientEmail.
75880
+ * @member {string} giftRecipientEmail
75881
+ * @memberof GiftEmailScheduled
75882
+ * @instance
75883
+ */
75884
+ GiftEmailScheduled.prototype.giftRecipientEmail = "";
75885
+
75886
+ /**
75887
+ * GiftEmailScheduled giftRecipientFirstName.
75888
+ * @member {string} giftRecipientFirstName
75889
+ * @memberof GiftEmailScheduled
75890
+ * @instance
75891
+ */
75892
+ GiftEmailScheduled.prototype.giftRecipientFirstName = "";
75893
+
75894
+ /**
75895
+ * GiftEmailScheduled giftMessage.
75896
+ * @member {string} giftMessage
75897
+ * @memberof GiftEmailScheduled
75898
+ * @instance
75899
+ */
75900
+ GiftEmailScheduled.prototype.giftMessage = "";
75901
+
75902
+ /**
75903
+ * GiftEmailScheduled giftTemplateId.
75904
+ * @member {string} giftTemplateId
75905
+ * @memberof GiftEmailScheduled
75906
+ * @instance
75907
+ */
75908
+ GiftEmailScheduled.prototype.giftTemplateId = "";
75909
+
75910
+ /**
75911
+ * GiftEmailScheduled giftNumMonths.
75912
+ * @member {number} giftNumMonths
75913
+ * @memberof GiftEmailScheduled
75914
+ * @instance
75915
+ */
75916
+ GiftEmailScheduled.prototype.giftNumMonths = 0;
75917
+
75918
+ /**
75919
+ * GiftEmailScheduled timestamp.
75920
+ * @member {number|Long} timestamp
75921
+ * @memberof GiftEmailScheduled
75922
+ * @instance
75923
+ */
75924
+ GiftEmailScheduled.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
75925
+
75926
+ /**
75927
+ * GiftEmailScheduled giftRedemptionCode.
75928
+ * @member {string} giftRedemptionCode
75929
+ * @memberof GiftEmailScheduled
75930
+ * @instance
75931
+ */
75932
+ GiftEmailScheduled.prototype.giftRedemptionCode = "";
75933
+
75934
+ /**
75935
+ * Creates a new GiftEmailScheduled instance using the specified properties.
75936
+ * @function create
75937
+ * @memberof GiftEmailScheduled
75938
+ * @static
75939
+ * @param {IGiftEmailScheduled=} [properties] Properties to set
75940
+ * @returns {GiftEmailScheduled} GiftEmailScheduled instance
75941
+ */
75942
+ GiftEmailScheduled.create = function create(properties) {
75943
+ return new GiftEmailScheduled(properties);
75944
+ };
75945
+
75946
+ /**
75947
+ * Encodes the specified GiftEmailScheduled message. Does not implicitly {@link GiftEmailScheduled.verify|verify} messages.
75948
+ * @function encode
75949
+ * @memberof GiftEmailScheduled
75950
+ * @static
75951
+ * @param {IGiftEmailScheduled} message GiftEmailScheduled message or plain object to encode
75952
+ * @param {$protobuf.Writer} [writer] Writer to encode to
75953
+ * @returns {$protobuf.Writer} Writer
75954
+ */
75955
+ GiftEmailScheduled.encode = function encode(message, writer) {
75956
+ if (!writer)
75957
+ writer = $Writer.create();
75958
+ if (message.giftPurchaserHsUserId != null && message.hasOwnProperty("giftPurchaserHsUserId"))
75959
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.giftPurchaserHsUserId);
75960
+ if (message.giftPurchaseId != null && message.hasOwnProperty("giftPurchaseId"))
75961
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.giftPurchaseId);
75962
+ if (message.giftRecipientEmail != null && message.hasOwnProperty("giftRecipientEmail"))
75963
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.giftRecipientEmail);
75964
+ if (message.giftRecipientFirstName != null && message.hasOwnProperty("giftRecipientFirstName"))
75965
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.giftRecipientFirstName);
75966
+ if (message.giftMessage != null && message.hasOwnProperty("giftMessage"))
75967
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.giftMessage);
75968
+ if (message.giftTemplateId != null && message.hasOwnProperty("giftTemplateId"))
75969
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.giftTemplateId);
75970
+ if (message.giftNumMonths != null && message.hasOwnProperty("giftNumMonths"))
75971
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.giftNumMonths);
75972
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
75973
+ writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.timestamp);
75974
+ if (message.giftRedemptionCode != null && message.hasOwnProperty("giftRedemptionCode"))
75975
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.giftRedemptionCode);
75976
+ return writer;
75977
+ };
75978
+
75979
+ /**
75980
+ * Encodes the specified GiftEmailScheduled message, length delimited. Does not implicitly {@link GiftEmailScheduled.verify|verify} messages.
75981
+ * @function encodeDelimited
75982
+ * @memberof GiftEmailScheduled
75983
+ * @static
75984
+ * @param {IGiftEmailScheduled} message GiftEmailScheduled message or plain object to encode
75985
+ * @param {$protobuf.Writer} [writer] Writer to encode to
75986
+ * @returns {$protobuf.Writer} Writer
75987
+ */
75988
+ GiftEmailScheduled.encodeDelimited = function encodeDelimited(message, writer) {
75989
+ return this.encode(message, writer).ldelim();
75990
+ };
75991
+
75992
+ /**
75993
+ * Decodes a GiftEmailScheduled message from the specified reader or buffer.
75994
+ * @function decode
75995
+ * @memberof GiftEmailScheduled
75996
+ * @static
75997
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
75998
+ * @param {number} [length] Message length if known beforehand
75999
+ * @returns {GiftEmailScheduled} GiftEmailScheduled
76000
+ * @throws {Error} If the payload is not a reader or valid buffer
76001
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
76002
+ */
76003
+ GiftEmailScheduled.decode = function decode(reader, length) {
76004
+ if (!(reader instanceof $Reader))
76005
+ reader = $Reader.create(reader);
76006
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GiftEmailScheduled();
76007
+ while (reader.pos < end) {
76008
+ var tag = reader.uint32();
76009
+ switch (tag >>> 3) {
76010
+ case 1:
76011
+ message.giftPurchaserHsUserId = reader.string();
76012
+ break;
76013
+ case 2:
76014
+ message.giftPurchaseId = reader.string();
76015
+ break;
76016
+ case 3:
76017
+ message.giftRecipientEmail = reader.string();
76018
+ break;
76019
+ case 4:
76020
+ message.giftRecipientFirstName = reader.string();
76021
+ break;
76022
+ case 5:
76023
+ message.giftMessage = reader.string();
76024
+ break;
76025
+ case 6:
76026
+ message.giftTemplateId = reader.string();
76027
+ break;
76028
+ case 7:
76029
+ message.giftNumMonths = reader.int32();
76030
+ break;
76031
+ case 8:
76032
+ message.timestamp = reader.uint64();
76033
+ break;
76034
+ case 9:
76035
+ message.giftRedemptionCode = reader.string();
76036
+ break;
76037
+ default:
76038
+ reader.skipType(tag & 7);
76039
+ break;
76040
+ }
76041
+ }
76042
+ return message;
76043
+ };
76044
+
76045
+ /**
76046
+ * Decodes a GiftEmailScheduled message from the specified reader or buffer, length delimited.
76047
+ * @function decodeDelimited
76048
+ * @memberof GiftEmailScheduled
76049
+ * @static
76050
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
76051
+ * @returns {GiftEmailScheduled} GiftEmailScheduled
76052
+ * @throws {Error} If the payload is not a reader or valid buffer
76053
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
76054
+ */
76055
+ GiftEmailScheduled.decodeDelimited = function decodeDelimited(reader) {
76056
+ if (!(reader instanceof $Reader))
76057
+ reader = new $Reader(reader);
76058
+ return this.decode(reader, reader.uint32());
76059
+ };
76060
+
76061
+ /**
76062
+ * Verifies a GiftEmailScheduled message.
76063
+ * @function verify
76064
+ * @memberof GiftEmailScheduled
76065
+ * @static
76066
+ * @param {Object.<string,*>} message Plain object to verify
76067
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
76068
+ */
76069
+ GiftEmailScheduled.verify = function verify(message) {
76070
+ if (typeof message !== "object" || message === null)
76071
+ return "object expected";
76072
+ if (message.giftPurchaserHsUserId != null && message.hasOwnProperty("giftPurchaserHsUserId"))
76073
+ if (!$util.isString(message.giftPurchaserHsUserId))
76074
+ return "giftPurchaserHsUserId: string expected";
76075
+ if (message.giftPurchaseId != null && message.hasOwnProperty("giftPurchaseId"))
76076
+ if (!$util.isString(message.giftPurchaseId))
76077
+ return "giftPurchaseId: string expected";
76078
+ if (message.giftRecipientEmail != null && message.hasOwnProperty("giftRecipientEmail"))
76079
+ if (!$util.isString(message.giftRecipientEmail))
76080
+ return "giftRecipientEmail: string expected";
76081
+ if (message.giftRecipientFirstName != null && message.hasOwnProperty("giftRecipientFirstName"))
76082
+ if (!$util.isString(message.giftRecipientFirstName))
76083
+ return "giftRecipientFirstName: string expected";
76084
+ if (message.giftMessage != null && message.hasOwnProperty("giftMessage"))
76085
+ if (!$util.isString(message.giftMessage))
76086
+ return "giftMessage: string expected";
76087
+ if (message.giftTemplateId != null && message.hasOwnProperty("giftTemplateId"))
76088
+ if (!$util.isString(message.giftTemplateId))
76089
+ return "giftTemplateId: string expected";
76090
+ if (message.giftNumMonths != null && message.hasOwnProperty("giftNumMonths"))
76091
+ if (!$util.isInteger(message.giftNumMonths))
76092
+ return "giftNumMonths: integer expected";
76093
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
76094
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
76095
+ return "timestamp: integer|Long expected";
76096
+ if (message.giftRedemptionCode != null && message.hasOwnProperty("giftRedemptionCode"))
76097
+ if (!$util.isString(message.giftRedemptionCode))
76098
+ return "giftRedemptionCode: string expected";
76099
+ return null;
76100
+ };
76101
+
76102
+ /**
76103
+ * Creates a GiftEmailScheduled message from a plain object. Also converts values to their respective internal types.
76104
+ * @function fromObject
76105
+ * @memberof GiftEmailScheduled
76106
+ * @static
76107
+ * @param {Object.<string,*>} object Plain object
76108
+ * @returns {GiftEmailScheduled} GiftEmailScheduled
76109
+ */
76110
+ GiftEmailScheduled.fromObject = function fromObject(object) {
76111
+ if (object instanceof $root.GiftEmailScheduled)
76112
+ return object;
76113
+ var message = new $root.GiftEmailScheduled();
76114
+ if (object.giftPurchaserHsUserId != null)
76115
+ message.giftPurchaserHsUserId = String(object.giftPurchaserHsUserId);
76116
+ if (object.giftPurchaseId != null)
76117
+ message.giftPurchaseId = String(object.giftPurchaseId);
76118
+ if (object.giftRecipientEmail != null)
76119
+ message.giftRecipientEmail = String(object.giftRecipientEmail);
76120
+ if (object.giftRecipientFirstName != null)
76121
+ message.giftRecipientFirstName = String(object.giftRecipientFirstName);
76122
+ if (object.giftMessage != null)
76123
+ message.giftMessage = String(object.giftMessage);
76124
+ if (object.giftTemplateId != null)
76125
+ message.giftTemplateId = String(object.giftTemplateId);
76126
+ if (object.giftNumMonths != null)
76127
+ message.giftNumMonths = object.giftNumMonths | 0;
76128
+ if (object.timestamp != null)
76129
+ if ($util.Long)
76130
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
76131
+ else if (typeof object.timestamp === "string")
76132
+ message.timestamp = parseInt(object.timestamp, 10);
76133
+ else if (typeof object.timestamp === "number")
76134
+ message.timestamp = object.timestamp;
76135
+ else if (typeof object.timestamp === "object")
76136
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
76137
+ if (object.giftRedemptionCode != null)
76138
+ message.giftRedemptionCode = String(object.giftRedemptionCode);
76139
+ return message;
76140
+ };
76141
+
76142
+ /**
76143
+ * Creates a plain object from a GiftEmailScheduled message. Also converts values to other types if specified.
76144
+ * @function toObject
76145
+ * @memberof GiftEmailScheduled
76146
+ * @static
76147
+ * @param {GiftEmailScheduled} message GiftEmailScheduled
76148
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
76149
+ * @returns {Object.<string,*>} Plain object
76150
+ */
76151
+ GiftEmailScheduled.toObject = function toObject(message, options) {
76152
+ if (!options)
76153
+ options = {};
76154
+ var object = {};
76155
+ if (options.defaults) {
76156
+ object.giftPurchaserHsUserId = "";
76157
+ object.giftPurchaseId = "";
76158
+ object.giftRecipientEmail = "";
76159
+ object.giftRecipientFirstName = "";
76160
+ object.giftMessage = "";
76161
+ object.giftTemplateId = "";
76162
+ object.giftNumMonths = 0;
76163
+ if ($util.Long) {
76164
+ var long = new $util.Long(0, 0, true);
76165
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
76166
+ } else
76167
+ object.timestamp = options.longs === String ? "0" : 0;
76168
+ object.giftRedemptionCode = "";
76169
+ }
76170
+ if (message.giftPurchaserHsUserId != null && message.hasOwnProperty("giftPurchaserHsUserId"))
76171
+ object.giftPurchaserHsUserId = message.giftPurchaserHsUserId;
76172
+ if (message.giftPurchaseId != null && message.hasOwnProperty("giftPurchaseId"))
76173
+ object.giftPurchaseId = message.giftPurchaseId;
76174
+ if (message.giftRecipientEmail != null && message.hasOwnProperty("giftRecipientEmail"))
76175
+ object.giftRecipientEmail = message.giftRecipientEmail;
76176
+ if (message.giftRecipientFirstName != null && message.hasOwnProperty("giftRecipientFirstName"))
76177
+ object.giftRecipientFirstName = message.giftRecipientFirstName;
76178
+ if (message.giftMessage != null && message.hasOwnProperty("giftMessage"))
76179
+ object.giftMessage = message.giftMessage;
76180
+ if (message.giftTemplateId != null && message.hasOwnProperty("giftTemplateId"))
76181
+ object.giftTemplateId = message.giftTemplateId;
76182
+ if (message.giftNumMonths != null && message.hasOwnProperty("giftNumMonths"))
76183
+ object.giftNumMonths = message.giftNumMonths;
76184
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
76185
+ if (typeof message.timestamp === "number")
76186
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
76187
+ else
76188
+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
76189
+ if (message.giftRedemptionCode != null && message.hasOwnProperty("giftRedemptionCode"))
76190
+ object.giftRedemptionCode = message.giftRedemptionCode;
76191
+ return object;
76192
+ };
76193
+
76194
+ /**
76195
+ * Converts this GiftEmailScheduled to JSON.
76196
+ * @function toJSON
76197
+ * @memberof GiftEmailScheduled
76198
+ * @instance
76199
+ * @returns {Object.<string,*>} JSON object
76200
+ */
76201
+ GiftEmailScheduled.prototype.toJSON = function toJSON() {
76202
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
76203
+ };
76204
+
76205
+ return GiftEmailScheduled;
76206
+ })();
76207
+
75830
76208
  $root.GoogleSubscriptionPurchased = (function() {
75831
76209
 
75832
76210
  /**
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.268.0"
19
+ "version": "1.270.0"
20
20
  }