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