@headspace/protos-events 1.723.0 → 1.724.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 +108 -0
- package/lib/index.js +264 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -40302,6 +40302,9 @@ export interface IGiftPurchased {
|
|
|
40302
40302
|
|
|
40303
40303
|
/** GiftPurchased giftRecipientEmailSendOn */
|
|
40304
40304
|
giftRecipientEmailSendOn?: (number|Long|null);
|
|
40305
|
+
|
|
40306
|
+
/** GiftPurchased paymentPlatform */
|
|
40307
|
+
paymentPlatform?: (gift.IGiftPaymentPlatform|null);
|
|
40305
40308
|
}
|
|
40306
40309
|
|
|
40307
40310
|
/** Represents a GiftPurchased. */
|
|
@@ -40346,6 +40349,9 @@ export class GiftPurchased implements IGiftPurchased {
|
|
|
40346
40349
|
/** GiftPurchased giftRecipientEmailSendOn. */
|
|
40347
40350
|
public giftRecipientEmailSendOn: (number|Long);
|
|
40348
40351
|
|
|
40352
|
+
/** GiftPurchased paymentPlatform. */
|
|
40353
|
+
public paymentPlatform?: (gift.IGiftPaymentPlatform|null);
|
|
40354
|
+
|
|
40349
40355
|
/**
|
|
40350
40356
|
* Creates a new GiftPurchased instance using the specified properties.
|
|
40351
40357
|
* @param [properties] Properties to set
|
|
@@ -69358,6 +69364,108 @@ export namespace gift {
|
|
|
69358
69364
|
GIFT_PRODUCT_SKU_TAX_MODE_INCLUSIVE = 2,
|
|
69359
69365
|
GIFT_PRODUCT_SKU_TAX_MODE_EXEMPT = 3
|
|
69360
69366
|
}
|
|
69367
|
+
|
|
69368
|
+
/** GiftPaymentPlatformName enum. */
|
|
69369
|
+
enum GiftPaymentPlatformName {
|
|
69370
|
+
GIFT_PAYMENT_PLATFORM_NAME_UNKNOWN = 0,
|
|
69371
|
+
GIFT_PAYMENT_PLATFORM_NAME_ZUORA = 1
|
|
69372
|
+
}
|
|
69373
|
+
|
|
69374
|
+
/** Properties of a GiftPaymentPlatform. */
|
|
69375
|
+
interface IGiftPaymentPlatform {
|
|
69376
|
+
|
|
69377
|
+
/** GiftPaymentPlatform name */
|
|
69378
|
+
name?: (gift.GiftPaymentPlatformName|null);
|
|
69379
|
+
|
|
69380
|
+
/** GiftPaymentPlatform externalId */
|
|
69381
|
+
externalId?: (string|null);
|
|
69382
|
+
}
|
|
69383
|
+
|
|
69384
|
+
/** Represents a GiftPaymentPlatform. */
|
|
69385
|
+
class GiftPaymentPlatform implements IGiftPaymentPlatform {
|
|
69386
|
+
|
|
69387
|
+
/**
|
|
69388
|
+
* Constructs a new GiftPaymentPlatform.
|
|
69389
|
+
* @param [properties] Properties to set
|
|
69390
|
+
*/
|
|
69391
|
+
constructor(properties?: gift.IGiftPaymentPlatform);
|
|
69392
|
+
|
|
69393
|
+
/** GiftPaymentPlatform name. */
|
|
69394
|
+
public name: gift.GiftPaymentPlatformName;
|
|
69395
|
+
|
|
69396
|
+
/** GiftPaymentPlatform externalId. */
|
|
69397
|
+
public externalId: string;
|
|
69398
|
+
|
|
69399
|
+
/**
|
|
69400
|
+
* Creates a new GiftPaymentPlatform instance using the specified properties.
|
|
69401
|
+
* @param [properties] Properties to set
|
|
69402
|
+
* @returns GiftPaymentPlatform instance
|
|
69403
|
+
*/
|
|
69404
|
+
public static create(properties?: gift.IGiftPaymentPlatform): gift.GiftPaymentPlatform;
|
|
69405
|
+
|
|
69406
|
+
/**
|
|
69407
|
+
* Encodes the specified GiftPaymentPlatform message. Does not implicitly {@link gift.GiftPaymentPlatform.verify|verify} messages.
|
|
69408
|
+
* @param message GiftPaymentPlatform message or plain object to encode
|
|
69409
|
+
* @param [writer] Writer to encode to
|
|
69410
|
+
* @returns Writer
|
|
69411
|
+
*/
|
|
69412
|
+
public static encode(message: gift.IGiftPaymentPlatform, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
69413
|
+
|
|
69414
|
+
/**
|
|
69415
|
+
* Encodes the specified GiftPaymentPlatform message, length delimited. Does not implicitly {@link gift.GiftPaymentPlatform.verify|verify} messages.
|
|
69416
|
+
* @param message GiftPaymentPlatform message or plain object to encode
|
|
69417
|
+
* @param [writer] Writer to encode to
|
|
69418
|
+
* @returns Writer
|
|
69419
|
+
*/
|
|
69420
|
+
public static encodeDelimited(message: gift.IGiftPaymentPlatform, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
69421
|
+
|
|
69422
|
+
/**
|
|
69423
|
+
* Decodes a GiftPaymentPlatform message from the specified reader or buffer.
|
|
69424
|
+
* @param reader Reader or buffer to decode from
|
|
69425
|
+
* @param [length] Message length if known beforehand
|
|
69426
|
+
* @returns GiftPaymentPlatform
|
|
69427
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
69428
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
69429
|
+
*/
|
|
69430
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gift.GiftPaymentPlatform;
|
|
69431
|
+
|
|
69432
|
+
/**
|
|
69433
|
+
* Decodes a GiftPaymentPlatform message from the specified reader or buffer, length delimited.
|
|
69434
|
+
* @param reader Reader or buffer to decode from
|
|
69435
|
+
* @returns GiftPaymentPlatform
|
|
69436
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
69437
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
69438
|
+
*/
|
|
69439
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gift.GiftPaymentPlatform;
|
|
69440
|
+
|
|
69441
|
+
/**
|
|
69442
|
+
* Verifies a GiftPaymentPlatform message.
|
|
69443
|
+
* @param message Plain object to verify
|
|
69444
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
69445
|
+
*/
|
|
69446
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
69447
|
+
|
|
69448
|
+
/**
|
|
69449
|
+
* Creates a GiftPaymentPlatform message from a plain object. Also converts values to their respective internal types.
|
|
69450
|
+
* @param object Plain object
|
|
69451
|
+
* @returns GiftPaymentPlatform
|
|
69452
|
+
*/
|
|
69453
|
+
public static fromObject(object: { [k: string]: any }): gift.GiftPaymentPlatform;
|
|
69454
|
+
|
|
69455
|
+
/**
|
|
69456
|
+
* Creates a plain object from a GiftPaymentPlatform message. Also converts values to other types if specified.
|
|
69457
|
+
* @param message GiftPaymentPlatform
|
|
69458
|
+
* @param [options] Conversion options
|
|
69459
|
+
* @returns Plain object
|
|
69460
|
+
*/
|
|
69461
|
+
public static toObject(message: gift.GiftPaymentPlatform, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
69462
|
+
|
|
69463
|
+
/**
|
|
69464
|
+
* Converts this GiftPaymentPlatform to JSON.
|
|
69465
|
+
* @returns JSON object
|
|
69466
|
+
*/
|
|
69467
|
+
public toJSON(): { [k: string]: any };
|
|
69468
|
+
}
|
|
69361
69469
|
}
|
|
69362
69470
|
|
|
69363
69471
|
/** Properties of a GingerProviderProfileUpdateRequested. */
|
package/lib/index.js
CHANGED
|
@@ -114861,6 +114861,7 @@ $root.GiftPurchased = (function() {
|
|
|
114861
114861
|
* @property {string|null} [productSkuSlug] GiftPurchased productSkuSlug
|
|
114862
114862
|
* @property {gift.GiftProductSkuTaxMode|null} [productSkuTaxMode] GiftPurchased productSkuTaxMode
|
|
114863
114863
|
* @property {number|Long|null} [giftRecipientEmailSendOn] GiftPurchased giftRecipientEmailSendOn
|
|
114864
|
+
* @property {gift.IGiftPaymentPlatform|null} [paymentPlatform] GiftPurchased paymentPlatform
|
|
114864
114865
|
*/
|
|
114865
114866
|
|
|
114866
114867
|
/**
|
|
@@ -114966,6 +114967,14 @@ $root.GiftPurchased = (function() {
|
|
|
114966
114967
|
*/
|
|
114967
114968
|
GiftPurchased.prototype.giftRecipientEmailSendOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
114968
114969
|
|
|
114970
|
+
/**
|
|
114971
|
+
* GiftPurchased paymentPlatform.
|
|
114972
|
+
* @member {gift.IGiftPaymentPlatform|null|undefined} paymentPlatform
|
|
114973
|
+
* @memberof GiftPurchased
|
|
114974
|
+
* @instance
|
|
114975
|
+
*/
|
|
114976
|
+
GiftPurchased.prototype.paymentPlatform = null;
|
|
114977
|
+
|
|
114969
114978
|
/**
|
|
114970
114979
|
* Creates a new GiftPurchased instance using the specified properties.
|
|
114971
114980
|
* @function create
|
|
@@ -115012,6 +115021,8 @@ $root.GiftPurchased = (function() {
|
|
|
115012
115021
|
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.productSkuTaxMode);
|
|
115013
115022
|
if (message.giftRecipientEmailSendOn != null && message.hasOwnProperty("giftRecipientEmailSendOn"))
|
|
115014
115023
|
writer.uint32(/* id 11, wireType 0 =*/88).uint64(message.giftRecipientEmailSendOn);
|
|
115024
|
+
if (message.paymentPlatform != null && message.hasOwnProperty("paymentPlatform"))
|
|
115025
|
+
$root.gift.GiftPaymentPlatform.encode(message.paymentPlatform, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
115015
115026
|
return writer;
|
|
115016
115027
|
};
|
|
115017
115028
|
|
|
@@ -115079,6 +115090,9 @@ $root.GiftPurchased = (function() {
|
|
|
115079
115090
|
case 11:
|
|
115080
115091
|
message.giftRecipientEmailSendOn = reader.uint64();
|
|
115081
115092
|
break;
|
|
115093
|
+
case 12:
|
|
115094
|
+
message.paymentPlatform = $root.gift.GiftPaymentPlatform.decode(reader, reader.uint32());
|
|
115095
|
+
break;
|
|
115082
115096
|
default:
|
|
115083
115097
|
reader.skipType(tag & 7);
|
|
115084
115098
|
break;
|
|
@@ -115154,6 +115168,11 @@ $root.GiftPurchased = (function() {
|
|
|
115154
115168
|
if (message.giftRecipientEmailSendOn != null && message.hasOwnProperty("giftRecipientEmailSendOn"))
|
|
115155
115169
|
if (!$util.isInteger(message.giftRecipientEmailSendOn) && !(message.giftRecipientEmailSendOn && $util.isInteger(message.giftRecipientEmailSendOn.low) && $util.isInteger(message.giftRecipientEmailSendOn.high)))
|
|
115156
115170
|
return "giftRecipientEmailSendOn: integer|Long expected";
|
|
115171
|
+
if (message.paymentPlatform != null && message.hasOwnProperty("paymentPlatform")) {
|
|
115172
|
+
var error = $root.gift.GiftPaymentPlatform.verify(message.paymentPlatform);
|
|
115173
|
+
if (error)
|
|
115174
|
+
return "paymentPlatform." + error;
|
|
115175
|
+
}
|
|
115157
115176
|
return null;
|
|
115158
115177
|
};
|
|
115159
115178
|
|
|
@@ -115221,6 +115240,11 @@ $root.GiftPurchased = (function() {
|
|
|
115221
115240
|
message.giftRecipientEmailSendOn = object.giftRecipientEmailSendOn;
|
|
115222
115241
|
else if (typeof object.giftRecipientEmailSendOn === "object")
|
|
115223
115242
|
message.giftRecipientEmailSendOn = new $util.LongBits(object.giftRecipientEmailSendOn.low >>> 0, object.giftRecipientEmailSendOn.high >>> 0).toNumber(true);
|
|
115243
|
+
if (object.paymentPlatform != null) {
|
|
115244
|
+
if (typeof object.paymentPlatform !== "object")
|
|
115245
|
+
throw TypeError(".GiftPurchased.paymentPlatform: object expected");
|
|
115246
|
+
message.paymentPlatform = $root.gift.GiftPaymentPlatform.fromObject(object.paymentPlatform);
|
|
115247
|
+
}
|
|
115224
115248
|
return message;
|
|
115225
115249
|
};
|
|
115226
115250
|
|
|
@@ -115257,6 +115281,7 @@ $root.GiftPurchased = (function() {
|
|
|
115257
115281
|
object.giftRecipientEmailSendOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
115258
115282
|
} else
|
|
115259
115283
|
object.giftRecipientEmailSendOn = options.longs === String ? "0" : 0;
|
|
115284
|
+
object.paymentPlatform = null;
|
|
115260
115285
|
}
|
|
115261
115286
|
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
115262
115287
|
object.hsUserId = message.hsUserId;
|
|
@@ -115286,6 +115311,8 @@ $root.GiftPurchased = (function() {
|
|
|
115286
115311
|
object.giftRecipientEmailSendOn = options.longs === String ? String(message.giftRecipientEmailSendOn) : message.giftRecipientEmailSendOn;
|
|
115287
115312
|
else
|
|
115288
115313
|
object.giftRecipientEmailSendOn = options.longs === String ? $util.Long.prototype.toString.call(message.giftRecipientEmailSendOn) : options.longs === Number ? new $util.LongBits(message.giftRecipientEmailSendOn.low >>> 0, message.giftRecipientEmailSendOn.high >>> 0).toNumber(true) : message.giftRecipientEmailSendOn;
|
|
115314
|
+
if (message.paymentPlatform != null && message.hasOwnProperty("paymentPlatform"))
|
|
115315
|
+
object.paymentPlatform = $root.gift.GiftPaymentPlatform.toObject(message.paymentPlatform, options);
|
|
115289
115316
|
return object;
|
|
115290
115317
|
};
|
|
115291
115318
|
|
|
@@ -196337,6 +196364,243 @@ $root.gift = (function() {
|
|
|
196337
196364
|
return values;
|
|
196338
196365
|
})();
|
|
196339
196366
|
|
|
196367
|
+
/**
|
|
196368
|
+
* GiftPaymentPlatformName enum.
|
|
196369
|
+
* @name gift.GiftPaymentPlatformName
|
|
196370
|
+
* @enum {string}
|
|
196371
|
+
* @property {number} GIFT_PAYMENT_PLATFORM_NAME_UNKNOWN=0 GIFT_PAYMENT_PLATFORM_NAME_UNKNOWN value
|
|
196372
|
+
* @property {number} GIFT_PAYMENT_PLATFORM_NAME_ZUORA=1 GIFT_PAYMENT_PLATFORM_NAME_ZUORA value
|
|
196373
|
+
*/
|
|
196374
|
+
gift.GiftPaymentPlatformName = (function() {
|
|
196375
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
196376
|
+
values[valuesById[0] = "GIFT_PAYMENT_PLATFORM_NAME_UNKNOWN"] = 0;
|
|
196377
|
+
values[valuesById[1] = "GIFT_PAYMENT_PLATFORM_NAME_ZUORA"] = 1;
|
|
196378
|
+
return values;
|
|
196379
|
+
})();
|
|
196380
|
+
|
|
196381
|
+
gift.GiftPaymentPlatform = (function() {
|
|
196382
|
+
|
|
196383
|
+
/**
|
|
196384
|
+
* Properties of a GiftPaymentPlatform.
|
|
196385
|
+
* @memberof gift
|
|
196386
|
+
* @interface IGiftPaymentPlatform
|
|
196387
|
+
* @property {gift.GiftPaymentPlatformName|null} [name] GiftPaymentPlatform name
|
|
196388
|
+
* @property {string|null} [externalId] GiftPaymentPlatform externalId
|
|
196389
|
+
*/
|
|
196390
|
+
|
|
196391
|
+
/**
|
|
196392
|
+
* Constructs a new GiftPaymentPlatform.
|
|
196393
|
+
* @memberof gift
|
|
196394
|
+
* @classdesc Represents a GiftPaymentPlatform.
|
|
196395
|
+
* @implements IGiftPaymentPlatform
|
|
196396
|
+
* @constructor
|
|
196397
|
+
* @param {gift.IGiftPaymentPlatform=} [properties] Properties to set
|
|
196398
|
+
*/
|
|
196399
|
+
function GiftPaymentPlatform(properties) {
|
|
196400
|
+
if (properties)
|
|
196401
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
196402
|
+
if (properties[keys[i]] != null)
|
|
196403
|
+
this[keys[i]] = properties[keys[i]];
|
|
196404
|
+
}
|
|
196405
|
+
|
|
196406
|
+
/**
|
|
196407
|
+
* GiftPaymentPlatform name.
|
|
196408
|
+
* @member {gift.GiftPaymentPlatformName} name
|
|
196409
|
+
* @memberof gift.GiftPaymentPlatform
|
|
196410
|
+
* @instance
|
|
196411
|
+
*/
|
|
196412
|
+
GiftPaymentPlatform.prototype.name = 0;
|
|
196413
|
+
|
|
196414
|
+
/**
|
|
196415
|
+
* GiftPaymentPlatform externalId.
|
|
196416
|
+
* @member {string} externalId
|
|
196417
|
+
* @memberof gift.GiftPaymentPlatform
|
|
196418
|
+
* @instance
|
|
196419
|
+
*/
|
|
196420
|
+
GiftPaymentPlatform.prototype.externalId = "";
|
|
196421
|
+
|
|
196422
|
+
/**
|
|
196423
|
+
* Creates a new GiftPaymentPlatform instance using the specified properties.
|
|
196424
|
+
* @function create
|
|
196425
|
+
* @memberof gift.GiftPaymentPlatform
|
|
196426
|
+
* @static
|
|
196427
|
+
* @param {gift.IGiftPaymentPlatform=} [properties] Properties to set
|
|
196428
|
+
* @returns {gift.GiftPaymentPlatform} GiftPaymentPlatform instance
|
|
196429
|
+
*/
|
|
196430
|
+
GiftPaymentPlatform.create = function create(properties) {
|
|
196431
|
+
return new GiftPaymentPlatform(properties);
|
|
196432
|
+
};
|
|
196433
|
+
|
|
196434
|
+
/**
|
|
196435
|
+
* Encodes the specified GiftPaymentPlatform message. Does not implicitly {@link gift.GiftPaymentPlatform.verify|verify} messages.
|
|
196436
|
+
* @function encode
|
|
196437
|
+
* @memberof gift.GiftPaymentPlatform
|
|
196438
|
+
* @static
|
|
196439
|
+
* @param {gift.IGiftPaymentPlatform} message GiftPaymentPlatform message or plain object to encode
|
|
196440
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
196441
|
+
* @returns {$protobuf.Writer} Writer
|
|
196442
|
+
*/
|
|
196443
|
+
GiftPaymentPlatform.encode = function encode(message, writer) {
|
|
196444
|
+
if (!writer)
|
|
196445
|
+
writer = $Writer.create();
|
|
196446
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
196447
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.name);
|
|
196448
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
196449
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.externalId);
|
|
196450
|
+
return writer;
|
|
196451
|
+
};
|
|
196452
|
+
|
|
196453
|
+
/**
|
|
196454
|
+
* Encodes the specified GiftPaymentPlatform message, length delimited. Does not implicitly {@link gift.GiftPaymentPlatform.verify|verify} messages.
|
|
196455
|
+
* @function encodeDelimited
|
|
196456
|
+
* @memberof gift.GiftPaymentPlatform
|
|
196457
|
+
* @static
|
|
196458
|
+
* @param {gift.IGiftPaymentPlatform} message GiftPaymentPlatform message or plain object to encode
|
|
196459
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
196460
|
+
* @returns {$protobuf.Writer} Writer
|
|
196461
|
+
*/
|
|
196462
|
+
GiftPaymentPlatform.encodeDelimited = function encodeDelimited(message, writer) {
|
|
196463
|
+
return this.encode(message, writer).ldelim();
|
|
196464
|
+
};
|
|
196465
|
+
|
|
196466
|
+
/**
|
|
196467
|
+
* Decodes a GiftPaymentPlatform message from the specified reader or buffer.
|
|
196468
|
+
* @function decode
|
|
196469
|
+
* @memberof gift.GiftPaymentPlatform
|
|
196470
|
+
* @static
|
|
196471
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
196472
|
+
* @param {number} [length] Message length if known beforehand
|
|
196473
|
+
* @returns {gift.GiftPaymentPlatform} GiftPaymentPlatform
|
|
196474
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
196475
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
196476
|
+
*/
|
|
196477
|
+
GiftPaymentPlatform.decode = function decode(reader, length) {
|
|
196478
|
+
if (!(reader instanceof $Reader))
|
|
196479
|
+
reader = $Reader.create(reader);
|
|
196480
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gift.GiftPaymentPlatform();
|
|
196481
|
+
while (reader.pos < end) {
|
|
196482
|
+
var tag = reader.uint32();
|
|
196483
|
+
switch (tag >>> 3) {
|
|
196484
|
+
case 1:
|
|
196485
|
+
message.name = reader.int32();
|
|
196486
|
+
break;
|
|
196487
|
+
case 2:
|
|
196488
|
+
message.externalId = reader.string();
|
|
196489
|
+
break;
|
|
196490
|
+
default:
|
|
196491
|
+
reader.skipType(tag & 7);
|
|
196492
|
+
break;
|
|
196493
|
+
}
|
|
196494
|
+
}
|
|
196495
|
+
return message;
|
|
196496
|
+
};
|
|
196497
|
+
|
|
196498
|
+
/**
|
|
196499
|
+
* Decodes a GiftPaymentPlatform message from the specified reader or buffer, length delimited.
|
|
196500
|
+
* @function decodeDelimited
|
|
196501
|
+
* @memberof gift.GiftPaymentPlatform
|
|
196502
|
+
* @static
|
|
196503
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
196504
|
+
* @returns {gift.GiftPaymentPlatform} GiftPaymentPlatform
|
|
196505
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
196506
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
196507
|
+
*/
|
|
196508
|
+
GiftPaymentPlatform.decodeDelimited = function decodeDelimited(reader) {
|
|
196509
|
+
if (!(reader instanceof $Reader))
|
|
196510
|
+
reader = new $Reader(reader);
|
|
196511
|
+
return this.decode(reader, reader.uint32());
|
|
196512
|
+
};
|
|
196513
|
+
|
|
196514
|
+
/**
|
|
196515
|
+
* Verifies a GiftPaymentPlatform message.
|
|
196516
|
+
* @function verify
|
|
196517
|
+
* @memberof gift.GiftPaymentPlatform
|
|
196518
|
+
* @static
|
|
196519
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
196520
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
196521
|
+
*/
|
|
196522
|
+
GiftPaymentPlatform.verify = function verify(message) {
|
|
196523
|
+
if (typeof message !== "object" || message === null)
|
|
196524
|
+
return "object expected";
|
|
196525
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
196526
|
+
switch (message.name) {
|
|
196527
|
+
default:
|
|
196528
|
+
return "name: enum value expected";
|
|
196529
|
+
case 0:
|
|
196530
|
+
case 1:
|
|
196531
|
+
break;
|
|
196532
|
+
}
|
|
196533
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
196534
|
+
if (!$util.isString(message.externalId))
|
|
196535
|
+
return "externalId: string expected";
|
|
196536
|
+
return null;
|
|
196537
|
+
};
|
|
196538
|
+
|
|
196539
|
+
/**
|
|
196540
|
+
* Creates a GiftPaymentPlatform message from a plain object. Also converts values to their respective internal types.
|
|
196541
|
+
* @function fromObject
|
|
196542
|
+
* @memberof gift.GiftPaymentPlatform
|
|
196543
|
+
* @static
|
|
196544
|
+
* @param {Object.<string,*>} object Plain object
|
|
196545
|
+
* @returns {gift.GiftPaymentPlatform} GiftPaymentPlatform
|
|
196546
|
+
*/
|
|
196547
|
+
GiftPaymentPlatform.fromObject = function fromObject(object) {
|
|
196548
|
+
if (object instanceof $root.gift.GiftPaymentPlatform)
|
|
196549
|
+
return object;
|
|
196550
|
+
var message = new $root.gift.GiftPaymentPlatform();
|
|
196551
|
+
switch (object.name) {
|
|
196552
|
+
case "GIFT_PAYMENT_PLATFORM_NAME_UNKNOWN":
|
|
196553
|
+
case 0:
|
|
196554
|
+
message.name = 0;
|
|
196555
|
+
break;
|
|
196556
|
+
case "GIFT_PAYMENT_PLATFORM_NAME_ZUORA":
|
|
196557
|
+
case 1:
|
|
196558
|
+
message.name = 1;
|
|
196559
|
+
break;
|
|
196560
|
+
}
|
|
196561
|
+
if (object.externalId != null)
|
|
196562
|
+
message.externalId = String(object.externalId);
|
|
196563
|
+
return message;
|
|
196564
|
+
};
|
|
196565
|
+
|
|
196566
|
+
/**
|
|
196567
|
+
* Creates a plain object from a GiftPaymentPlatform message. Also converts values to other types if specified.
|
|
196568
|
+
* @function toObject
|
|
196569
|
+
* @memberof gift.GiftPaymentPlatform
|
|
196570
|
+
* @static
|
|
196571
|
+
* @param {gift.GiftPaymentPlatform} message GiftPaymentPlatform
|
|
196572
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
196573
|
+
* @returns {Object.<string,*>} Plain object
|
|
196574
|
+
*/
|
|
196575
|
+
GiftPaymentPlatform.toObject = function toObject(message, options) {
|
|
196576
|
+
if (!options)
|
|
196577
|
+
options = {};
|
|
196578
|
+
var object = {};
|
|
196579
|
+
if (options.defaults) {
|
|
196580
|
+
object.name = options.enums === String ? "GIFT_PAYMENT_PLATFORM_NAME_UNKNOWN" : 0;
|
|
196581
|
+
object.externalId = "";
|
|
196582
|
+
}
|
|
196583
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
196584
|
+
object.name = options.enums === String ? $root.gift.GiftPaymentPlatformName[message.name] : message.name;
|
|
196585
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
196586
|
+
object.externalId = message.externalId;
|
|
196587
|
+
return object;
|
|
196588
|
+
};
|
|
196589
|
+
|
|
196590
|
+
/**
|
|
196591
|
+
* Converts this GiftPaymentPlatform to JSON.
|
|
196592
|
+
* @function toJSON
|
|
196593
|
+
* @memberof gift.GiftPaymentPlatform
|
|
196594
|
+
* @instance
|
|
196595
|
+
* @returns {Object.<string,*>} JSON object
|
|
196596
|
+
*/
|
|
196597
|
+
GiftPaymentPlatform.prototype.toJSON = function toJSON() {
|
|
196598
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
196599
|
+
};
|
|
196600
|
+
|
|
196601
|
+
return GiftPaymentPlatform;
|
|
196602
|
+
})();
|
|
196603
|
+
|
|
196340
196604
|
return gift;
|
|
196341
196605
|
})();
|
|
196342
196606
|
|
package/package.json
CHANGED