protobuf-platform 1.2.505 → 1.2.508
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/bonus/bonus.proto +4 -0
- package/bonus/bonus_pb.js +97 -1
- package/cashback/cashback.proto +36 -0
- package/cashback/cashback_grpc_pb.js +33 -0
- package/cashback/cashback_pb.js +1805 -125
- package/package.json +1 -1
- package/payment/payment.proto +21 -0
- package/payment/payment_grpc_pb.js +33 -0
- package/payment/payment_pb.js +610 -0
package/cashback/cashback_pb.js
CHANGED
|
@@ -38,12 +38,15 @@ goog.exportSymbol('proto.cashback.ClaimCashbackResponse', null, global);
|
|
|
38
38
|
goog.exportSymbol('proto.cashback.File', null, global);
|
|
39
39
|
goog.exportSymbol('proto.cashback.GetCashbackRequest', null, global);
|
|
40
40
|
goog.exportSymbol('proto.cashback.GetFileRequest', null, global);
|
|
41
|
+
goog.exportSymbol('proto.cashback.GetUserCashbackInformationRequest', null, global);
|
|
42
|
+
goog.exportSymbol('proto.cashback.GetUserCashbackInformationResponse', null, global);
|
|
41
43
|
goog.exportSymbol('proto.cashback.ItemsBunchRequest', null, global);
|
|
42
44
|
goog.exportSymbol('proto.cashback.PaginationRequest', null, global);
|
|
43
45
|
goog.exportSymbol('proto.cashback.PingRequest', null, global);
|
|
44
46
|
goog.exportSymbol('proto.cashback.PongResponse', null, global);
|
|
45
47
|
goog.exportSymbol('proto.cashback.ReactivateCashbackRequest', null, global);
|
|
46
48
|
goog.exportSymbol('proto.cashback.SearchRequest', null, global);
|
|
49
|
+
goog.exportSymbol('proto.cashback.UserCashbackInformationDefinitionItem', null, global);
|
|
47
50
|
goog.exportSymbol('proto.cashback.UserCashbackItem', null, global);
|
|
48
51
|
goog.exportSymbol('proto.cashback.UserCashbackItemsResponse', null, global);
|
|
49
52
|
goog.exportSymbol('proto.cashback.UserCashbackResponse', null, global);
|
|
@@ -594,6 +597,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
594
597
|
*/
|
|
595
598
|
proto.cashback.UserCashbackResponse.displayName = 'proto.cashback.UserCashbackResponse';
|
|
596
599
|
}
|
|
600
|
+
/**
|
|
601
|
+
* Generated by JsPbCodeGenerator.
|
|
602
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
603
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
604
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
605
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
606
|
+
* valid.
|
|
607
|
+
* @extends {jspb.Message}
|
|
608
|
+
* @constructor
|
|
609
|
+
*/
|
|
610
|
+
proto.cashback.GetUserCashbackInformationRequest = function(opt_data) {
|
|
611
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
612
|
+
};
|
|
613
|
+
goog.inherits(proto.cashback.GetUserCashbackInformationRequest, jspb.Message);
|
|
614
|
+
if (goog.DEBUG && !COMPILED) {
|
|
615
|
+
/**
|
|
616
|
+
* @public
|
|
617
|
+
* @override
|
|
618
|
+
*/
|
|
619
|
+
proto.cashback.GetUserCashbackInformationRequest.displayName = 'proto.cashback.GetUserCashbackInformationRequest';
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* Generated by JsPbCodeGenerator.
|
|
623
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
624
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
625
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
626
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
627
|
+
* valid.
|
|
628
|
+
* @extends {jspb.Message}
|
|
629
|
+
* @constructor
|
|
630
|
+
*/
|
|
631
|
+
proto.cashback.UserCashbackInformationDefinitionItem = function(opt_data) {
|
|
632
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
633
|
+
};
|
|
634
|
+
goog.inherits(proto.cashback.UserCashbackInformationDefinitionItem, jspb.Message);
|
|
635
|
+
if (goog.DEBUG && !COMPILED) {
|
|
636
|
+
/**
|
|
637
|
+
* @public
|
|
638
|
+
* @override
|
|
639
|
+
*/
|
|
640
|
+
proto.cashback.UserCashbackInformationDefinitionItem.displayName = 'proto.cashback.UserCashbackInformationDefinitionItem';
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
* Generated by JsPbCodeGenerator.
|
|
644
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
645
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
646
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
647
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
648
|
+
* valid.
|
|
649
|
+
* @extends {jspb.Message}
|
|
650
|
+
* @constructor
|
|
651
|
+
*/
|
|
652
|
+
proto.cashback.GetUserCashbackInformationResponse = function(opt_data) {
|
|
653
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cashback.GetUserCashbackInformationResponse.repeatedFields_, null);
|
|
654
|
+
};
|
|
655
|
+
goog.inherits(proto.cashback.GetUserCashbackInformationResponse, jspb.Message);
|
|
656
|
+
if (goog.DEBUG && !COMPILED) {
|
|
657
|
+
/**
|
|
658
|
+
* @public
|
|
659
|
+
* @override
|
|
660
|
+
*/
|
|
661
|
+
proto.cashback.GetUserCashbackInformationResponse.displayName = 'proto.cashback.GetUserCashbackInformationResponse';
|
|
662
|
+
}
|
|
597
663
|
|
|
598
664
|
|
|
599
665
|
|
|
@@ -2374,7 +2440,10 @@ proto.cashback.CashbackItem.toObject = function(includeInstance, msg) {
|
|
|
2374
2440
|
checkingAt: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
2375
2441
|
configList: jspb.Message.toObjectList(msg.getConfigList(),
|
|
2376
2442
|
proto.cashback.CashbackConfigItem.toObject, includeInstance),
|
|
2377
|
-
bonusTemplateId: jspb.Message.getFieldWithDefault(msg, 12, 0)
|
|
2443
|
+
bonusTemplateId: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
2444
|
+
content: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
2445
|
+
claimExpirationHours: jspb.Message.getFieldWithDefault(msg, 14, 0),
|
|
2446
|
+
loyaltyLevelId: jspb.Message.getFieldWithDefault(msg, 15, 0)
|
|
2378
2447
|
};
|
|
2379
2448
|
|
|
2380
2449
|
if (includeInstance) {
|
|
@@ -2456,6 +2525,18 @@ proto.cashback.CashbackItem.deserializeBinaryFromReader = function(msg, reader)
|
|
|
2456
2525
|
var value = /** @type {number} */ (reader.readInt32());
|
|
2457
2526
|
msg.setBonusTemplateId(value);
|
|
2458
2527
|
break;
|
|
2528
|
+
case 13:
|
|
2529
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2530
|
+
msg.setContent(value);
|
|
2531
|
+
break;
|
|
2532
|
+
case 14:
|
|
2533
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2534
|
+
msg.setClaimExpirationHours(value);
|
|
2535
|
+
break;
|
|
2536
|
+
case 15:
|
|
2537
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
2538
|
+
msg.setLoyaltyLevelId(value);
|
|
2539
|
+
break;
|
|
2459
2540
|
default:
|
|
2460
2541
|
reader.skipField();
|
|
2461
2542
|
break;
|
|
@@ -2563,6 +2644,27 @@ proto.cashback.CashbackItem.serializeBinaryToWriter = function(message, writer)
|
|
|
2563
2644
|
f
|
|
2564
2645
|
);
|
|
2565
2646
|
}
|
|
2647
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 13));
|
|
2648
|
+
if (f != null) {
|
|
2649
|
+
writer.writeString(
|
|
2650
|
+
13,
|
|
2651
|
+
f
|
|
2652
|
+
);
|
|
2653
|
+
}
|
|
2654
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 14));
|
|
2655
|
+
if (f != null) {
|
|
2656
|
+
writer.writeInt32(
|
|
2657
|
+
14,
|
|
2658
|
+
f
|
|
2659
|
+
);
|
|
2660
|
+
}
|
|
2661
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 15));
|
|
2662
|
+
if (f != null) {
|
|
2663
|
+
writer.writeInt32(
|
|
2664
|
+
15,
|
|
2665
|
+
f
|
|
2666
|
+
);
|
|
2667
|
+
}
|
|
2566
2668
|
};
|
|
2567
2669
|
|
|
2568
2670
|
|
|
@@ -2964,6 +3066,114 @@ proto.cashback.CashbackItem.prototype.hasBonusTemplateId = function() {
|
|
|
2964
3066
|
};
|
|
2965
3067
|
|
|
2966
3068
|
|
|
3069
|
+
/**
|
|
3070
|
+
* optional string content = 13;
|
|
3071
|
+
* @return {string}
|
|
3072
|
+
*/
|
|
3073
|
+
proto.cashback.CashbackItem.prototype.getContent = function() {
|
|
3074
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
|
3075
|
+
};
|
|
3076
|
+
|
|
3077
|
+
|
|
3078
|
+
/**
|
|
3079
|
+
* @param {string} value
|
|
3080
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
|
3081
|
+
*/
|
|
3082
|
+
proto.cashback.CashbackItem.prototype.setContent = function(value) {
|
|
3083
|
+
return jspb.Message.setField(this, 13, value);
|
|
3084
|
+
};
|
|
3085
|
+
|
|
3086
|
+
|
|
3087
|
+
/**
|
|
3088
|
+
* Clears the field making it undefined.
|
|
3089
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
|
3090
|
+
*/
|
|
3091
|
+
proto.cashback.CashbackItem.prototype.clearContent = function() {
|
|
3092
|
+
return jspb.Message.setField(this, 13, undefined);
|
|
3093
|
+
};
|
|
3094
|
+
|
|
3095
|
+
|
|
3096
|
+
/**
|
|
3097
|
+
* Returns whether this field is set.
|
|
3098
|
+
* @return {boolean}
|
|
3099
|
+
*/
|
|
3100
|
+
proto.cashback.CashbackItem.prototype.hasContent = function() {
|
|
3101
|
+
return jspb.Message.getField(this, 13) != null;
|
|
3102
|
+
};
|
|
3103
|
+
|
|
3104
|
+
|
|
3105
|
+
/**
|
|
3106
|
+
* optional int32 claim_expiration_hours = 14;
|
|
3107
|
+
* @return {number}
|
|
3108
|
+
*/
|
|
3109
|
+
proto.cashback.CashbackItem.prototype.getClaimExpirationHours = function() {
|
|
3110
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
|
|
3111
|
+
};
|
|
3112
|
+
|
|
3113
|
+
|
|
3114
|
+
/**
|
|
3115
|
+
* @param {number} value
|
|
3116
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
|
3117
|
+
*/
|
|
3118
|
+
proto.cashback.CashbackItem.prototype.setClaimExpirationHours = function(value) {
|
|
3119
|
+
return jspb.Message.setField(this, 14, value);
|
|
3120
|
+
};
|
|
3121
|
+
|
|
3122
|
+
|
|
3123
|
+
/**
|
|
3124
|
+
* Clears the field making it undefined.
|
|
3125
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
|
3126
|
+
*/
|
|
3127
|
+
proto.cashback.CashbackItem.prototype.clearClaimExpirationHours = function() {
|
|
3128
|
+
return jspb.Message.setField(this, 14, undefined);
|
|
3129
|
+
};
|
|
3130
|
+
|
|
3131
|
+
|
|
3132
|
+
/**
|
|
3133
|
+
* Returns whether this field is set.
|
|
3134
|
+
* @return {boolean}
|
|
3135
|
+
*/
|
|
3136
|
+
proto.cashback.CashbackItem.prototype.hasClaimExpirationHours = function() {
|
|
3137
|
+
return jspb.Message.getField(this, 14) != null;
|
|
3138
|
+
};
|
|
3139
|
+
|
|
3140
|
+
|
|
3141
|
+
/**
|
|
3142
|
+
* optional int32 loyalty_level_id = 15;
|
|
3143
|
+
* @return {number}
|
|
3144
|
+
*/
|
|
3145
|
+
proto.cashback.CashbackItem.prototype.getLoyaltyLevelId = function() {
|
|
3146
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
|
|
3147
|
+
};
|
|
3148
|
+
|
|
3149
|
+
|
|
3150
|
+
/**
|
|
3151
|
+
* @param {number} value
|
|
3152
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
|
3153
|
+
*/
|
|
3154
|
+
proto.cashback.CashbackItem.prototype.setLoyaltyLevelId = function(value) {
|
|
3155
|
+
return jspb.Message.setField(this, 15, value);
|
|
3156
|
+
};
|
|
3157
|
+
|
|
3158
|
+
|
|
3159
|
+
/**
|
|
3160
|
+
* Clears the field making it undefined.
|
|
3161
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
|
3162
|
+
*/
|
|
3163
|
+
proto.cashback.CashbackItem.prototype.clearLoyaltyLevelId = function() {
|
|
3164
|
+
return jspb.Message.setField(this, 15, undefined);
|
|
3165
|
+
};
|
|
3166
|
+
|
|
3167
|
+
|
|
3168
|
+
/**
|
|
3169
|
+
* Returns whether this field is set.
|
|
3170
|
+
* @return {boolean}
|
|
3171
|
+
*/
|
|
3172
|
+
proto.cashback.CashbackItem.prototype.hasLoyaltyLevelId = function() {
|
|
3173
|
+
return jspb.Message.getField(this, 15) != null;
|
|
3174
|
+
};
|
|
3175
|
+
|
|
3176
|
+
|
|
2967
3177
|
|
|
2968
3178
|
/**
|
|
2969
3179
|
* Oneof group definitions for this message. Each group defines the field
|
|
@@ -3232,7 +3442,10 @@ proto.cashback.CashbackItemRequest.toObject = function(includeInstance, msg) {
|
|
|
3232
3442
|
level: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
3233
3443
|
type: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
3234
3444
|
checkingAt: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
3235
|
-
bonusTemplateId: jspb.Message.getFieldWithDefault(msg, 10, 0)
|
|
3445
|
+
bonusTemplateId: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
3446
|
+
content: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
3447
|
+
claimExpirationHours: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
3448
|
+
loyaltyLevelId: jspb.Message.getFieldWithDefault(msg, 13, 0)
|
|
3236
3449
|
};
|
|
3237
3450
|
|
|
3238
3451
|
if (includeInstance) {
|
|
@@ -3305,6 +3518,18 @@ proto.cashback.CashbackItemRequest.deserializeBinaryFromReader = function(msg, r
|
|
|
3305
3518
|
var value = /** @type {number} */ (reader.readInt32());
|
|
3306
3519
|
msg.setBonusTemplateId(value);
|
|
3307
3520
|
break;
|
|
3521
|
+
case 11:
|
|
3522
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3523
|
+
msg.setContent(value);
|
|
3524
|
+
break;
|
|
3525
|
+
case 12:
|
|
3526
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
3527
|
+
msg.setClaimExpirationHours(value);
|
|
3528
|
+
break;
|
|
3529
|
+
case 13:
|
|
3530
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
3531
|
+
msg.setLoyaltyLevelId(value);
|
|
3532
|
+
break;
|
|
3308
3533
|
default:
|
|
3309
3534
|
reader.skipField();
|
|
3310
3535
|
break;
|
|
@@ -3397,6 +3622,27 @@ proto.cashback.CashbackItemRequest.serializeBinaryToWriter = function(message, w
|
|
|
3397
3622
|
f
|
|
3398
3623
|
);
|
|
3399
3624
|
}
|
|
3625
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 11));
|
|
3626
|
+
if (f != null) {
|
|
3627
|
+
writer.writeString(
|
|
3628
|
+
11,
|
|
3629
|
+
f
|
|
3630
|
+
);
|
|
3631
|
+
}
|
|
3632
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 12));
|
|
3633
|
+
if (f != null) {
|
|
3634
|
+
writer.writeInt32(
|
|
3635
|
+
12,
|
|
3636
|
+
f
|
|
3637
|
+
);
|
|
3638
|
+
}
|
|
3639
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 13));
|
|
3640
|
+
if (f != null) {
|
|
3641
|
+
writer.writeInt32(
|
|
3642
|
+
13,
|
|
3643
|
+
f
|
|
3644
|
+
);
|
|
3645
|
+
}
|
|
3400
3646
|
};
|
|
3401
3647
|
|
|
3402
3648
|
|
|
@@ -3724,66 +3970,174 @@ proto.cashback.CashbackItemRequest.prototype.hasBonusTemplateId = function() {
|
|
|
3724
3970
|
};
|
|
3725
3971
|
|
|
3726
3972
|
|
|
3973
|
+
/**
|
|
3974
|
+
* optional string content = 11;
|
|
3975
|
+
* @return {string}
|
|
3976
|
+
*/
|
|
3977
|
+
proto.cashback.CashbackItemRequest.prototype.getContent = function() {
|
|
3978
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
3979
|
+
};
|
|
3727
3980
|
|
|
3728
3981
|
|
|
3729
|
-
|
|
3730
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3731
3982
|
/**
|
|
3732
|
-
*
|
|
3733
|
-
*
|
|
3734
|
-
* Optional fields that are not set will be set to undefined.
|
|
3735
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
3736
|
-
* For the list of reserved names please see:
|
|
3737
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
3738
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
3739
|
-
* JSPB instance for transitional soy proto support:
|
|
3740
|
-
* http://goto/soy-param-migration
|
|
3741
|
-
* @return {!Object}
|
|
3983
|
+
* @param {string} value
|
|
3984
|
+
* @return {!proto.cashback.CashbackItemRequest} returns this
|
|
3742
3985
|
*/
|
|
3743
|
-
proto.cashback.
|
|
3744
|
-
return
|
|
3986
|
+
proto.cashback.CashbackItemRequest.prototype.setContent = function(value) {
|
|
3987
|
+
return jspb.Message.setField(this, 11, value);
|
|
3745
3988
|
};
|
|
3746
3989
|
|
|
3747
3990
|
|
|
3748
3991
|
/**
|
|
3749
|
-
*
|
|
3750
|
-
* @
|
|
3751
|
-
* the JSPB instance for transitional soy proto support:
|
|
3752
|
-
* http://goto/soy-param-migration
|
|
3753
|
-
* @param {!proto.cashback.GetCashbackRequest} msg The msg instance to transform.
|
|
3754
|
-
* @return {!Object}
|
|
3755
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3992
|
+
* Clears the field making it undefined.
|
|
3993
|
+
* @return {!proto.cashback.CashbackItemRequest} returns this
|
|
3756
3994
|
*/
|
|
3757
|
-
proto.cashback.
|
|
3758
|
-
|
|
3759
|
-
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
3760
|
-
};
|
|
3761
|
-
|
|
3762
|
-
if (includeInstance) {
|
|
3763
|
-
obj.$jspbMessageInstance = msg;
|
|
3764
|
-
}
|
|
3765
|
-
return obj;
|
|
3995
|
+
proto.cashback.CashbackItemRequest.prototype.clearContent = function() {
|
|
3996
|
+
return jspb.Message.setField(this, 11, undefined);
|
|
3766
3997
|
};
|
|
3767
|
-
}
|
|
3768
3998
|
|
|
3769
3999
|
|
|
3770
4000
|
/**
|
|
3771
|
-
*
|
|
3772
|
-
* @
|
|
3773
|
-
* @return {!proto.cashback.GetCashbackRequest}
|
|
4001
|
+
* Returns whether this field is set.
|
|
4002
|
+
* @return {boolean}
|
|
3774
4003
|
*/
|
|
3775
|
-
proto.cashback.
|
|
3776
|
-
|
|
3777
|
-
var msg = new proto.cashback.GetCashbackRequest;
|
|
3778
|
-
return proto.cashback.GetCashbackRequest.deserializeBinaryFromReader(msg, reader);
|
|
4004
|
+
proto.cashback.CashbackItemRequest.prototype.hasContent = function() {
|
|
4005
|
+
return jspb.Message.getField(this, 11) != null;
|
|
3779
4006
|
};
|
|
3780
4007
|
|
|
3781
4008
|
|
|
3782
4009
|
/**
|
|
3783
|
-
*
|
|
3784
|
-
*
|
|
3785
|
-
|
|
3786
|
-
|
|
4010
|
+
* optional int32 claim_expiration_hours = 12;
|
|
4011
|
+
* @return {number}
|
|
4012
|
+
*/
|
|
4013
|
+
proto.cashback.CashbackItemRequest.prototype.getClaimExpirationHours = function() {
|
|
4014
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
|
|
4015
|
+
};
|
|
4016
|
+
|
|
4017
|
+
|
|
4018
|
+
/**
|
|
4019
|
+
* @param {number} value
|
|
4020
|
+
* @return {!proto.cashback.CashbackItemRequest} returns this
|
|
4021
|
+
*/
|
|
4022
|
+
proto.cashback.CashbackItemRequest.prototype.setClaimExpirationHours = function(value) {
|
|
4023
|
+
return jspb.Message.setField(this, 12, value);
|
|
4024
|
+
};
|
|
4025
|
+
|
|
4026
|
+
|
|
4027
|
+
/**
|
|
4028
|
+
* Clears the field making it undefined.
|
|
4029
|
+
* @return {!proto.cashback.CashbackItemRequest} returns this
|
|
4030
|
+
*/
|
|
4031
|
+
proto.cashback.CashbackItemRequest.prototype.clearClaimExpirationHours = function() {
|
|
4032
|
+
return jspb.Message.setField(this, 12, undefined);
|
|
4033
|
+
};
|
|
4034
|
+
|
|
4035
|
+
|
|
4036
|
+
/**
|
|
4037
|
+
* Returns whether this field is set.
|
|
4038
|
+
* @return {boolean}
|
|
4039
|
+
*/
|
|
4040
|
+
proto.cashback.CashbackItemRequest.prototype.hasClaimExpirationHours = function() {
|
|
4041
|
+
return jspb.Message.getField(this, 12) != null;
|
|
4042
|
+
};
|
|
4043
|
+
|
|
4044
|
+
|
|
4045
|
+
/**
|
|
4046
|
+
* optional int32 loyalty_level_id = 13;
|
|
4047
|
+
* @return {number}
|
|
4048
|
+
*/
|
|
4049
|
+
proto.cashback.CashbackItemRequest.prototype.getLoyaltyLevelId = function() {
|
|
4050
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
|
|
4051
|
+
};
|
|
4052
|
+
|
|
4053
|
+
|
|
4054
|
+
/**
|
|
4055
|
+
* @param {number} value
|
|
4056
|
+
* @return {!proto.cashback.CashbackItemRequest} returns this
|
|
4057
|
+
*/
|
|
4058
|
+
proto.cashback.CashbackItemRequest.prototype.setLoyaltyLevelId = function(value) {
|
|
4059
|
+
return jspb.Message.setField(this, 13, value);
|
|
4060
|
+
};
|
|
4061
|
+
|
|
4062
|
+
|
|
4063
|
+
/**
|
|
4064
|
+
* Clears the field making it undefined.
|
|
4065
|
+
* @return {!proto.cashback.CashbackItemRequest} returns this
|
|
4066
|
+
*/
|
|
4067
|
+
proto.cashback.CashbackItemRequest.prototype.clearLoyaltyLevelId = function() {
|
|
4068
|
+
return jspb.Message.setField(this, 13, undefined);
|
|
4069
|
+
};
|
|
4070
|
+
|
|
4071
|
+
|
|
4072
|
+
/**
|
|
4073
|
+
* Returns whether this field is set.
|
|
4074
|
+
* @return {boolean}
|
|
4075
|
+
*/
|
|
4076
|
+
proto.cashback.CashbackItemRequest.prototype.hasLoyaltyLevelId = function() {
|
|
4077
|
+
return jspb.Message.getField(this, 13) != null;
|
|
4078
|
+
};
|
|
4079
|
+
|
|
4080
|
+
|
|
4081
|
+
|
|
4082
|
+
|
|
4083
|
+
|
|
4084
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4085
|
+
/**
|
|
4086
|
+
* Creates an object representation of this proto.
|
|
4087
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
4088
|
+
* Optional fields that are not set will be set to undefined.
|
|
4089
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
4090
|
+
* For the list of reserved names please see:
|
|
4091
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
4092
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
4093
|
+
* JSPB instance for transitional soy proto support:
|
|
4094
|
+
* http://goto/soy-param-migration
|
|
4095
|
+
* @return {!Object}
|
|
4096
|
+
*/
|
|
4097
|
+
proto.cashback.GetCashbackRequest.prototype.toObject = function(opt_includeInstance) {
|
|
4098
|
+
return proto.cashback.GetCashbackRequest.toObject(opt_includeInstance, this);
|
|
4099
|
+
};
|
|
4100
|
+
|
|
4101
|
+
|
|
4102
|
+
/**
|
|
4103
|
+
* Static version of the {@see toObject} method.
|
|
4104
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
4105
|
+
* the JSPB instance for transitional soy proto support:
|
|
4106
|
+
* http://goto/soy-param-migration
|
|
4107
|
+
* @param {!proto.cashback.GetCashbackRequest} msg The msg instance to transform.
|
|
4108
|
+
* @return {!Object}
|
|
4109
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
4110
|
+
*/
|
|
4111
|
+
proto.cashback.GetCashbackRequest.toObject = function(includeInstance, msg) {
|
|
4112
|
+
var f, obj = {
|
|
4113
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
4114
|
+
};
|
|
4115
|
+
|
|
4116
|
+
if (includeInstance) {
|
|
4117
|
+
obj.$jspbMessageInstance = msg;
|
|
4118
|
+
}
|
|
4119
|
+
return obj;
|
|
4120
|
+
};
|
|
4121
|
+
}
|
|
4122
|
+
|
|
4123
|
+
|
|
4124
|
+
/**
|
|
4125
|
+
* Deserializes binary data (in protobuf wire format).
|
|
4126
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
4127
|
+
* @return {!proto.cashback.GetCashbackRequest}
|
|
4128
|
+
*/
|
|
4129
|
+
proto.cashback.GetCashbackRequest.deserializeBinary = function(bytes) {
|
|
4130
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4131
|
+
var msg = new proto.cashback.GetCashbackRequest;
|
|
4132
|
+
return proto.cashback.GetCashbackRequest.deserializeBinaryFromReader(msg, reader);
|
|
4133
|
+
};
|
|
4134
|
+
|
|
4135
|
+
|
|
4136
|
+
/**
|
|
4137
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
4138
|
+
* given reader into the given message object.
|
|
4139
|
+
* @param {!proto.cashback.GetCashbackRequest} msg The message object to deserialize into.
|
|
4140
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3787
4141
|
* @return {!proto.cashback.GetCashbackRequest}
|
|
3788
4142
|
*/
|
|
3789
4143
|
proto.cashback.GetCashbackRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
@@ -5492,7 +5846,12 @@ proto.cashback.UserCashbackItem.toObject = function(includeInstance, msg) {
|
|
|
5492
5846
|
cashbackUserId: jspb.Message.getFieldWithDefault(msg, 18, 0),
|
|
5493
5847
|
gamesList: jspb.Message.toObjectList(msg.getGamesList(),
|
|
5494
5848
|
proto.cashback.CashbackGamePreview.toObject, includeInstance),
|
|
5495
|
-
userBonusId: jspb.Message.getFieldWithDefault(msg, 20, 0)
|
|
5849
|
+
userBonusId: jspb.Message.getFieldWithDefault(msg, 20, 0),
|
|
5850
|
+
rewardMinor: jspb.Message.getFieldWithDefault(msg, 21, 0),
|
|
5851
|
+
currencyScale: jspb.Message.getFieldWithDefault(msg, 22, 0),
|
|
5852
|
+
claimExpiresAt: jspb.Message.getFieldWithDefault(msg, 23, ""),
|
|
5853
|
+
loyaltyLevelId: jspb.Message.getFieldWithDefault(msg, 24, 0),
|
|
5854
|
+
isExpired: jspb.Message.getBooleanFieldWithDefault(msg, 25, false)
|
|
5496
5855
|
};
|
|
5497
5856
|
|
|
5498
5857
|
if (includeInstance) {
|
|
@@ -5611,6 +5970,26 @@ proto.cashback.UserCashbackItem.deserializeBinaryFromReader = function(msg, read
|
|
|
5611
5970
|
var value = /** @type {number} */ (reader.readInt32());
|
|
5612
5971
|
msg.setUserBonusId(value);
|
|
5613
5972
|
break;
|
|
5973
|
+
case 21:
|
|
5974
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
5975
|
+
msg.setRewardMinor(value);
|
|
5976
|
+
break;
|
|
5977
|
+
case 22:
|
|
5978
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
5979
|
+
msg.setCurrencyScale(value);
|
|
5980
|
+
break;
|
|
5981
|
+
case 23:
|
|
5982
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5983
|
+
msg.setClaimExpiresAt(value);
|
|
5984
|
+
break;
|
|
5985
|
+
case 24:
|
|
5986
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
5987
|
+
msg.setLoyaltyLevelId(value);
|
|
5988
|
+
break;
|
|
5989
|
+
case 25:
|
|
5990
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
5991
|
+
msg.setIsExpired(value);
|
|
5992
|
+
break;
|
|
5614
5993
|
default:
|
|
5615
5994
|
reader.skipField();
|
|
5616
5995
|
break;
|
|
@@ -5782,6 +6161,41 @@ proto.cashback.UserCashbackItem.serializeBinaryToWriter = function(message, writ
|
|
|
5782
6161
|
f
|
|
5783
6162
|
);
|
|
5784
6163
|
}
|
|
6164
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 21));
|
|
6165
|
+
if (f != null) {
|
|
6166
|
+
writer.writeInt64(
|
|
6167
|
+
21,
|
|
6168
|
+
f
|
|
6169
|
+
);
|
|
6170
|
+
}
|
|
6171
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 22));
|
|
6172
|
+
if (f != null) {
|
|
6173
|
+
writer.writeInt32(
|
|
6174
|
+
22,
|
|
6175
|
+
f
|
|
6176
|
+
);
|
|
6177
|
+
}
|
|
6178
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 23));
|
|
6179
|
+
if (f != null) {
|
|
6180
|
+
writer.writeString(
|
|
6181
|
+
23,
|
|
6182
|
+
f
|
|
6183
|
+
);
|
|
6184
|
+
}
|
|
6185
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 24));
|
|
6186
|
+
if (f != null) {
|
|
6187
|
+
writer.writeInt32(
|
|
6188
|
+
24,
|
|
6189
|
+
f
|
|
6190
|
+
);
|
|
6191
|
+
}
|
|
6192
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 25));
|
|
6193
|
+
if (f != null) {
|
|
6194
|
+
writer.writeBool(
|
|
6195
|
+
25,
|
|
6196
|
+
f
|
|
6197
|
+
);
|
|
6198
|
+
}
|
|
5785
6199
|
};
|
|
5786
6200
|
|
|
5787
6201
|
|
|
@@ -6400,115 +6814,295 @@ proto.cashback.UserCashbackItem.prototype.hasUserBonusId = function() {
|
|
|
6400
6814
|
};
|
|
6401
6815
|
|
|
6402
6816
|
|
|
6817
|
+
/**
|
|
6818
|
+
* optional int64 reward_minor = 21;
|
|
6819
|
+
* @return {number}
|
|
6820
|
+
*/
|
|
6821
|
+
proto.cashback.UserCashbackItem.prototype.getRewardMinor = function() {
|
|
6822
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0));
|
|
6823
|
+
};
|
|
6403
6824
|
|
|
6404
6825
|
|
|
6405
|
-
|
|
6406
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6407
6826
|
/**
|
|
6408
|
-
*
|
|
6409
|
-
*
|
|
6410
|
-
* Optional fields that are not set will be set to undefined.
|
|
6411
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6412
|
-
* For the list of reserved names please see:
|
|
6413
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6414
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6415
|
-
* JSPB instance for transitional soy proto support:
|
|
6416
|
-
* http://goto/soy-param-migration
|
|
6417
|
-
* @return {!Object}
|
|
6827
|
+
* @param {number} value
|
|
6828
|
+
* @return {!proto.cashback.UserCashbackItem} returns this
|
|
6418
6829
|
*/
|
|
6419
|
-
proto.cashback.
|
|
6420
|
-
return
|
|
6830
|
+
proto.cashback.UserCashbackItem.prototype.setRewardMinor = function(value) {
|
|
6831
|
+
return jspb.Message.setField(this, 21, value);
|
|
6421
6832
|
};
|
|
6422
6833
|
|
|
6423
6834
|
|
|
6424
6835
|
/**
|
|
6425
|
-
*
|
|
6426
|
-
* @
|
|
6427
|
-
* the JSPB instance for transitional soy proto support:
|
|
6428
|
-
* http://goto/soy-param-migration
|
|
6429
|
-
* @param {!proto.cashback.CashbackUserRequest} msg The msg instance to transform.
|
|
6430
|
-
* @return {!Object}
|
|
6431
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6836
|
+
* Clears the field making it undefined.
|
|
6837
|
+
* @return {!proto.cashback.UserCashbackItem} returns this
|
|
6432
6838
|
*/
|
|
6433
|
-
proto.cashback.
|
|
6434
|
-
|
|
6435
|
-
|
|
6436
|
-
cashbackType: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
6437
|
-
currency: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
6438
|
-
};
|
|
6839
|
+
proto.cashback.UserCashbackItem.prototype.clearRewardMinor = function() {
|
|
6840
|
+
return jspb.Message.setField(this, 21, undefined);
|
|
6841
|
+
};
|
|
6439
6842
|
|
|
6440
|
-
|
|
6441
|
-
|
|
6442
|
-
|
|
6443
|
-
|
|
6843
|
+
|
|
6844
|
+
/**
|
|
6845
|
+
* Returns whether this field is set.
|
|
6846
|
+
* @return {boolean}
|
|
6847
|
+
*/
|
|
6848
|
+
proto.cashback.UserCashbackItem.prototype.hasRewardMinor = function() {
|
|
6849
|
+
return jspb.Message.getField(this, 21) != null;
|
|
6444
6850
|
};
|
|
6445
|
-
}
|
|
6446
6851
|
|
|
6447
6852
|
|
|
6448
6853
|
/**
|
|
6449
|
-
*
|
|
6450
|
-
* @
|
|
6451
|
-
* @return {!proto.cashback.CashbackUserRequest}
|
|
6854
|
+
* optional int32 currency_scale = 22;
|
|
6855
|
+
* @return {number}
|
|
6452
6856
|
*/
|
|
6453
|
-
proto.cashback.
|
|
6454
|
-
|
|
6455
|
-
var msg = new proto.cashback.CashbackUserRequest;
|
|
6456
|
-
return proto.cashback.CashbackUserRequest.deserializeBinaryFromReader(msg, reader);
|
|
6857
|
+
proto.cashback.UserCashbackItem.prototype.getCurrencyScale = function() {
|
|
6858
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 22, 0));
|
|
6457
6859
|
};
|
|
6458
6860
|
|
|
6459
6861
|
|
|
6460
6862
|
/**
|
|
6461
|
-
*
|
|
6462
|
-
*
|
|
6463
|
-
* @param {!proto.cashback.CashbackUserRequest} msg The message object to deserialize into.
|
|
6464
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6465
|
-
* @return {!proto.cashback.CashbackUserRequest}
|
|
6863
|
+
* @param {number} value
|
|
6864
|
+
* @return {!proto.cashback.UserCashbackItem} returns this
|
|
6466
6865
|
*/
|
|
6467
|
-
proto.cashback.
|
|
6468
|
-
|
|
6469
|
-
if (reader.isEndGroup()) {
|
|
6470
|
-
break;
|
|
6471
|
-
}
|
|
6472
|
-
var field = reader.getFieldNumber();
|
|
6473
|
-
switch (field) {
|
|
6474
|
-
case 1:
|
|
6475
|
-
var value = /** @type {number} */ (reader.readInt32());
|
|
6476
|
-
msg.setUserId(value);
|
|
6477
|
-
break;
|
|
6478
|
-
case 2:
|
|
6479
|
-
var value = /** @type {string} */ (reader.readString());
|
|
6480
|
-
msg.setCashbackType(value);
|
|
6481
|
-
break;
|
|
6482
|
-
case 3:
|
|
6483
|
-
var value = /** @type {string} */ (reader.readString());
|
|
6484
|
-
msg.setCurrency(value);
|
|
6485
|
-
break;
|
|
6486
|
-
default:
|
|
6487
|
-
reader.skipField();
|
|
6488
|
-
break;
|
|
6489
|
-
}
|
|
6490
|
-
}
|
|
6491
|
-
return msg;
|
|
6866
|
+
proto.cashback.UserCashbackItem.prototype.setCurrencyScale = function(value) {
|
|
6867
|
+
return jspb.Message.setField(this, 22, value);
|
|
6492
6868
|
};
|
|
6493
6869
|
|
|
6494
6870
|
|
|
6495
6871
|
/**
|
|
6496
|
-
*
|
|
6497
|
-
* @return {!
|
|
6872
|
+
* Clears the field making it undefined.
|
|
6873
|
+
* @return {!proto.cashback.UserCashbackItem} returns this
|
|
6498
6874
|
*/
|
|
6499
|
-
proto.cashback.
|
|
6500
|
-
|
|
6501
|
-
proto.cashback.CashbackUserRequest.serializeBinaryToWriter(this, writer);
|
|
6502
|
-
return writer.getResultBuffer();
|
|
6875
|
+
proto.cashback.UserCashbackItem.prototype.clearCurrencyScale = function() {
|
|
6876
|
+
return jspb.Message.setField(this, 22, undefined);
|
|
6503
6877
|
};
|
|
6504
6878
|
|
|
6505
6879
|
|
|
6506
6880
|
/**
|
|
6507
|
-
*
|
|
6508
|
-
*
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
|
|
6881
|
+
* Returns whether this field is set.
|
|
6882
|
+
* @return {boolean}
|
|
6883
|
+
*/
|
|
6884
|
+
proto.cashback.UserCashbackItem.prototype.hasCurrencyScale = function() {
|
|
6885
|
+
return jspb.Message.getField(this, 22) != null;
|
|
6886
|
+
};
|
|
6887
|
+
|
|
6888
|
+
|
|
6889
|
+
/**
|
|
6890
|
+
* optional string claim_expires_at = 23;
|
|
6891
|
+
* @return {string}
|
|
6892
|
+
*/
|
|
6893
|
+
proto.cashback.UserCashbackItem.prototype.getClaimExpiresAt = function() {
|
|
6894
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, ""));
|
|
6895
|
+
};
|
|
6896
|
+
|
|
6897
|
+
|
|
6898
|
+
/**
|
|
6899
|
+
* @param {string} value
|
|
6900
|
+
* @return {!proto.cashback.UserCashbackItem} returns this
|
|
6901
|
+
*/
|
|
6902
|
+
proto.cashback.UserCashbackItem.prototype.setClaimExpiresAt = function(value) {
|
|
6903
|
+
return jspb.Message.setField(this, 23, value);
|
|
6904
|
+
};
|
|
6905
|
+
|
|
6906
|
+
|
|
6907
|
+
/**
|
|
6908
|
+
* Clears the field making it undefined.
|
|
6909
|
+
* @return {!proto.cashback.UserCashbackItem} returns this
|
|
6910
|
+
*/
|
|
6911
|
+
proto.cashback.UserCashbackItem.prototype.clearClaimExpiresAt = function() {
|
|
6912
|
+
return jspb.Message.setField(this, 23, undefined);
|
|
6913
|
+
};
|
|
6914
|
+
|
|
6915
|
+
|
|
6916
|
+
/**
|
|
6917
|
+
* Returns whether this field is set.
|
|
6918
|
+
* @return {boolean}
|
|
6919
|
+
*/
|
|
6920
|
+
proto.cashback.UserCashbackItem.prototype.hasClaimExpiresAt = function() {
|
|
6921
|
+
return jspb.Message.getField(this, 23) != null;
|
|
6922
|
+
};
|
|
6923
|
+
|
|
6924
|
+
|
|
6925
|
+
/**
|
|
6926
|
+
* optional int32 loyalty_level_id = 24;
|
|
6927
|
+
* @return {number}
|
|
6928
|
+
*/
|
|
6929
|
+
proto.cashback.UserCashbackItem.prototype.getLoyaltyLevelId = function() {
|
|
6930
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 24, 0));
|
|
6931
|
+
};
|
|
6932
|
+
|
|
6933
|
+
|
|
6934
|
+
/**
|
|
6935
|
+
* @param {number} value
|
|
6936
|
+
* @return {!proto.cashback.UserCashbackItem} returns this
|
|
6937
|
+
*/
|
|
6938
|
+
proto.cashback.UserCashbackItem.prototype.setLoyaltyLevelId = function(value) {
|
|
6939
|
+
return jspb.Message.setField(this, 24, value);
|
|
6940
|
+
};
|
|
6941
|
+
|
|
6942
|
+
|
|
6943
|
+
/**
|
|
6944
|
+
* Clears the field making it undefined.
|
|
6945
|
+
* @return {!proto.cashback.UserCashbackItem} returns this
|
|
6946
|
+
*/
|
|
6947
|
+
proto.cashback.UserCashbackItem.prototype.clearLoyaltyLevelId = function() {
|
|
6948
|
+
return jspb.Message.setField(this, 24, undefined);
|
|
6949
|
+
};
|
|
6950
|
+
|
|
6951
|
+
|
|
6952
|
+
/**
|
|
6953
|
+
* Returns whether this field is set.
|
|
6954
|
+
* @return {boolean}
|
|
6955
|
+
*/
|
|
6956
|
+
proto.cashback.UserCashbackItem.prototype.hasLoyaltyLevelId = function() {
|
|
6957
|
+
return jspb.Message.getField(this, 24) != null;
|
|
6958
|
+
};
|
|
6959
|
+
|
|
6960
|
+
|
|
6961
|
+
/**
|
|
6962
|
+
* optional bool is_expired = 25;
|
|
6963
|
+
* @return {boolean}
|
|
6964
|
+
*/
|
|
6965
|
+
proto.cashback.UserCashbackItem.prototype.getIsExpired = function() {
|
|
6966
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 25, false));
|
|
6967
|
+
};
|
|
6968
|
+
|
|
6969
|
+
|
|
6970
|
+
/**
|
|
6971
|
+
* @param {boolean} value
|
|
6972
|
+
* @return {!proto.cashback.UserCashbackItem} returns this
|
|
6973
|
+
*/
|
|
6974
|
+
proto.cashback.UserCashbackItem.prototype.setIsExpired = function(value) {
|
|
6975
|
+
return jspb.Message.setField(this, 25, value);
|
|
6976
|
+
};
|
|
6977
|
+
|
|
6978
|
+
|
|
6979
|
+
/**
|
|
6980
|
+
* Clears the field making it undefined.
|
|
6981
|
+
* @return {!proto.cashback.UserCashbackItem} returns this
|
|
6982
|
+
*/
|
|
6983
|
+
proto.cashback.UserCashbackItem.prototype.clearIsExpired = function() {
|
|
6984
|
+
return jspb.Message.setField(this, 25, undefined);
|
|
6985
|
+
};
|
|
6986
|
+
|
|
6987
|
+
|
|
6988
|
+
/**
|
|
6989
|
+
* Returns whether this field is set.
|
|
6990
|
+
* @return {boolean}
|
|
6991
|
+
*/
|
|
6992
|
+
proto.cashback.UserCashbackItem.prototype.hasIsExpired = function() {
|
|
6993
|
+
return jspb.Message.getField(this, 25) != null;
|
|
6994
|
+
};
|
|
6995
|
+
|
|
6996
|
+
|
|
6997
|
+
|
|
6998
|
+
|
|
6999
|
+
|
|
7000
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7001
|
+
/**
|
|
7002
|
+
* Creates an object representation of this proto.
|
|
7003
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7004
|
+
* Optional fields that are not set will be set to undefined.
|
|
7005
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7006
|
+
* For the list of reserved names please see:
|
|
7007
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7008
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7009
|
+
* JSPB instance for transitional soy proto support:
|
|
7010
|
+
* http://goto/soy-param-migration
|
|
7011
|
+
* @return {!Object}
|
|
7012
|
+
*/
|
|
7013
|
+
proto.cashback.CashbackUserRequest.prototype.toObject = function(opt_includeInstance) {
|
|
7014
|
+
return proto.cashback.CashbackUserRequest.toObject(opt_includeInstance, this);
|
|
7015
|
+
};
|
|
7016
|
+
|
|
7017
|
+
|
|
7018
|
+
/**
|
|
7019
|
+
* Static version of the {@see toObject} method.
|
|
7020
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7021
|
+
* the JSPB instance for transitional soy proto support:
|
|
7022
|
+
* http://goto/soy-param-migration
|
|
7023
|
+
* @param {!proto.cashback.CashbackUserRequest} msg The msg instance to transform.
|
|
7024
|
+
* @return {!Object}
|
|
7025
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7026
|
+
*/
|
|
7027
|
+
proto.cashback.CashbackUserRequest.toObject = function(includeInstance, msg) {
|
|
7028
|
+
var f, obj = {
|
|
7029
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
7030
|
+
cashbackType: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7031
|
+
currency: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
7032
|
+
};
|
|
7033
|
+
|
|
7034
|
+
if (includeInstance) {
|
|
7035
|
+
obj.$jspbMessageInstance = msg;
|
|
7036
|
+
}
|
|
7037
|
+
return obj;
|
|
7038
|
+
};
|
|
7039
|
+
}
|
|
7040
|
+
|
|
7041
|
+
|
|
7042
|
+
/**
|
|
7043
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7044
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7045
|
+
* @return {!proto.cashback.CashbackUserRequest}
|
|
7046
|
+
*/
|
|
7047
|
+
proto.cashback.CashbackUserRequest.deserializeBinary = function(bytes) {
|
|
7048
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7049
|
+
var msg = new proto.cashback.CashbackUserRequest;
|
|
7050
|
+
return proto.cashback.CashbackUserRequest.deserializeBinaryFromReader(msg, reader);
|
|
7051
|
+
};
|
|
7052
|
+
|
|
7053
|
+
|
|
7054
|
+
/**
|
|
7055
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7056
|
+
* given reader into the given message object.
|
|
7057
|
+
* @param {!proto.cashback.CashbackUserRequest} msg The message object to deserialize into.
|
|
7058
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7059
|
+
* @return {!proto.cashback.CashbackUserRequest}
|
|
7060
|
+
*/
|
|
7061
|
+
proto.cashback.CashbackUserRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
7062
|
+
while (reader.nextField()) {
|
|
7063
|
+
if (reader.isEndGroup()) {
|
|
7064
|
+
break;
|
|
7065
|
+
}
|
|
7066
|
+
var field = reader.getFieldNumber();
|
|
7067
|
+
switch (field) {
|
|
7068
|
+
case 1:
|
|
7069
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
7070
|
+
msg.setUserId(value);
|
|
7071
|
+
break;
|
|
7072
|
+
case 2:
|
|
7073
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7074
|
+
msg.setCashbackType(value);
|
|
7075
|
+
break;
|
|
7076
|
+
case 3:
|
|
7077
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7078
|
+
msg.setCurrency(value);
|
|
7079
|
+
break;
|
|
7080
|
+
default:
|
|
7081
|
+
reader.skipField();
|
|
7082
|
+
break;
|
|
7083
|
+
}
|
|
7084
|
+
}
|
|
7085
|
+
return msg;
|
|
7086
|
+
};
|
|
7087
|
+
|
|
7088
|
+
|
|
7089
|
+
/**
|
|
7090
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7091
|
+
* @return {!Uint8Array}
|
|
7092
|
+
*/
|
|
7093
|
+
proto.cashback.CashbackUserRequest.prototype.serializeBinary = function() {
|
|
7094
|
+
var writer = new jspb.BinaryWriter();
|
|
7095
|
+
proto.cashback.CashbackUserRequest.serializeBinaryToWriter(this, writer);
|
|
7096
|
+
return writer.getResultBuffer();
|
|
7097
|
+
};
|
|
7098
|
+
|
|
7099
|
+
|
|
7100
|
+
/**
|
|
7101
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7102
|
+
* format), writing to the given BinaryWriter.
|
|
7103
|
+
* @param {!proto.cashback.CashbackUserRequest} message
|
|
7104
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7105
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6512
7106
|
*/
|
|
6513
7107
|
proto.cashback.CashbackUserRequest.serializeBinaryToWriter = function(message, writer) {
|
|
6514
7108
|
var f = undefined;
|
|
@@ -7627,4 +8221,1090 @@ proto.cashback.UserCashbackResponse.prototype.hasData = function() {
|
|
|
7627
8221
|
};
|
|
7628
8222
|
|
|
7629
8223
|
|
|
8224
|
+
|
|
8225
|
+
|
|
8226
|
+
|
|
8227
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8228
|
+
/**
|
|
8229
|
+
* Creates an object representation of this proto.
|
|
8230
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8231
|
+
* Optional fields that are not set will be set to undefined.
|
|
8232
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8233
|
+
* For the list of reserved names please see:
|
|
8234
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8235
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8236
|
+
* JSPB instance for transitional soy proto support:
|
|
8237
|
+
* http://goto/soy-param-migration
|
|
8238
|
+
* @return {!Object}
|
|
8239
|
+
*/
|
|
8240
|
+
proto.cashback.GetUserCashbackInformationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
8241
|
+
return proto.cashback.GetUserCashbackInformationRequest.toObject(opt_includeInstance, this);
|
|
8242
|
+
};
|
|
8243
|
+
|
|
8244
|
+
|
|
8245
|
+
/**
|
|
8246
|
+
* Static version of the {@see toObject} method.
|
|
8247
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8248
|
+
* the JSPB instance for transitional soy proto support:
|
|
8249
|
+
* http://goto/soy-param-migration
|
|
8250
|
+
* @param {!proto.cashback.GetUserCashbackInformationRequest} msg The msg instance to transform.
|
|
8251
|
+
* @return {!Object}
|
|
8252
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8253
|
+
*/
|
|
8254
|
+
proto.cashback.GetUserCashbackInformationRequest.toObject = function(includeInstance, msg) {
|
|
8255
|
+
var f, obj = {
|
|
8256
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
8257
|
+
currency: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
8258
|
+
};
|
|
8259
|
+
|
|
8260
|
+
if (includeInstance) {
|
|
8261
|
+
obj.$jspbMessageInstance = msg;
|
|
8262
|
+
}
|
|
8263
|
+
return obj;
|
|
8264
|
+
};
|
|
8265
|
+
}
|
|
8266
|
+
|
|
8267
|
+
|
|
8268
|
+
/**
|
|
8269
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8270
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8271
|
+
* @return {!proto.cashback.GetUserCashbackInformationRequest}
|
|
8272
|
+
*/
|
|
8273
|
+
proto.cashback.GetUserCashbackInformationRequest.deserializeBinary = function(bytes) {
|
|
8274
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8275
|
+
var msg = new proto.cashback.GetUserCashbackInformationRequest;
|
|
8276
|
+
return proto.cashback.GetUserCashbackInformationRequest.deserializeBinaryFromReader(msg, reader);
|
|
8277
|
+
};
|
|
8278
|
+
|
|
8279
|
+
|
|
8280
|
+
/**
|
|
8281
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8282
|
+
* given reader into the given message object.
|
|
8283
|
+
* @param {!proto.cashback.GetUserCashbackInformationRequest} msg The message object to deserialize into.
|
|
8284
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8285
|
+
* @return {!proto.cashback.GetUserCashbackInformationRequest}
|
|
8286
|
+
*/
|
|
8287
|
+
proto.cashback.GetUserCashbackInformationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
8288
|
+
while (reader.nextField()) {
|
|
8289
|
+
if (reader.isEndGroup()) {
|
|
8290
|
+
break;
|
|
8291
|
+
}
|
|
8292
|
+
var field = reader.getFieldNumber();
|
|
8293
|
+
switch (field) {
|
|
8294
|
+
case 1:
|
|
8295
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
8296
|
+
msg.setUserId(value);
|
|
8297
|
+
break;
|
|
8298
|
+
case 2:
|
|
8299
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8300
|
+
msg.setCurrency(value);
|
|
8301
|
+
break;
|
|
8302
|
+
default:
|
|
8303
|
+
reader.skipField();
|
|
8304
|
+
break;
|
|
8305
|
+
}
|
|
8306
|
+
}
|
|
8307
|
+
return msg;
|
|
8308
|
+
};
|
|
8309
|
+
|
|
8310
|
+
|
|
8311
|
+
/**
|
|
8312
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8313
|
+
* @return {!Uint8Array}
|
|
8314
|
+
*/
|
|
8315
|
+
proto.cashback.GetUserCashbackInformationRequest.prototype.serializeBinary = function() {
|
|
8316
|
+
var writer = new jspb.BinaryWriter();
|
|
8317
|
+
proto.cashback.GetUserCashbackInformationRequest.serializeBinaryToWriter(this, writer);
|
|
8318
|
+
return writer.getResultBuffer();
|
|
8319
|
+
};
|
|
8320
|
+
|
|
8321
|
+
|
|
8322
|
+
/**
|
|
8323
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8324
|
+
* format), writing to the given BinaryWriter.
|
|
8325
|
+
* @param {!proto.cashback.GetUserCashbackInformationRequest} message
|
|
8326
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8327
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8328
|
+
*/
|
|
8329
|
+
proto.cashback.GetUserCashbackInformationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
8330
|
+
var f = undefined;
|
|
8331
|
+
f = message.getUserId();
|
|
8332
|
+
if (f !== 0) {
|
|
8333
|
+
writer.writeInt32(
|
|
8334
|
+
1,
|
|
8335
|
+
f
|
|
8336
|
+
);
|
|
8337
|
+
}
|
|
8338
|
+
f = message.getCurrency();
|
|
8339
|
+
if (f.length > 0) {
|
|
8340
|
+
writer.writeString(
|
|
8341
|
+
2,
|
|
8342
|
+
f
|
|
8343
|
+
);
|
|
8344
|
+
}
|
|
8345
|
+
};
|
|
8346
|
+
|
|
8347
|
+
|
|
8348
|
+
/**
|
|
8349
|
+
* optional int32 user_id = 1;
|
|
8350
|
+
* @return {number}
|
|
8351
|
+
*/
|
|
8352
|
+
proto.cashback.GetUserCashbackInformationRequest.prototype.getUserId = function() {
|
|
8353
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
8354
|
+
};
|
|
8355
|
+
|
|
8356
|
+
|
|
8357
|
+
/**
|
|
8358
|
+
* @param {number} value
|
|
8359
|
+
* @return {!proto.cashback.GetUserCashbackInformationRequest} returns this
|
|
8360
|
+
*/
|
|
8361
|
+
proto.cashback.GetUserCashbackInformationRequest.prototype.setUserId = function(value) {
|
|
8362
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
8363
|
+
};
|
|
8364
|
+
|
|
8365
|
+
|
|
8366
|
+
/**
|
|
8367
|
+
* optional string currency = 2;
|
|
8368
|
+
* @return {string}
|
|
8369
|
+
*/
|
|
8370
|
+
proto.cashback.GetUserCashbackInformationRequest.prototype.getCurrency = function() {
|
|
8371
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
8372
|
+
};
|
|
8373
|
+
|
|
8374
|
+
|
|
8375
|
+
/**
|
|
8376
|
+
* @param {string} value
|
|
8377
|
+
* @return {!proto.cashback.GetUserCashbackInformationRequest} returns this
|
|
8378
|
+
*/
|
|
8379
|
+
proto.cashback.GetUserCashbackInformationRequest.prototype.setCurrency = function(value) {
|
|
8380
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
8381
|
+
};
|
|
8382
|
+
|
|
8383
|
+
|
|
8384
|
+
|
|
8385
|
+
|
|
8386
|
+
|
|
8387
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8388
|
+
/**
|
|
8389
|
+
* Creates an object representation of this proto.
|
|
8390
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8391
|
+
* Optional fields that are not set will be set to undefined.
|
|
8392
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8393
|
+
* For the list of reserved names please see:
|
|
8394
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8395
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8396
|
+
* JSPB instance for transitional soy proto support:
|
|
8397
|
+
* http://goto/soy-param-migration
|
|
8398
|
+
* @return {!Object}
|
|
8399
|
+
*/
|
|
8400
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.toObject = function(opt_includeInstance) {
|
|
8401
|
+
return proto.cashback.UserCashbackInformationDefinitionItem.toObject(opt_includeInstance, this);
|
|
8402
|
+
};
|
|
8403
|
+
|
|
8404
|
+
|
|
8405
|
+
/**
|
|
8406
|
+
* Static version of the {@see toObject} method.
|
|
8407
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8408
|
+
* the JSPB instance for transitional soy proto support:
|
|
8409
|
+
* http://goto/soy-param-migration
|
|
8410
|
+
* @param {!proto.cashback.UserCashbackInformationDefinitionItem} msg The msg instance to transform.
|
|
8411
|
+
* @return {!Object}
|
|
8412
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8413
|
+
*/
|
|
8414
|
+
proto.cashback.UserCashbackInformationDefinitionItem.toObject = function(includeInstance, msg) {
|
|
8415
|
+
var f, obj = {
|
|
8416
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
8417
|
+
loyaltyLevelId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
8418
|
+
level: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
8419
|
+
type: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
8420
|
+
percentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
|
8421
|
+
min: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
|
|
8422
|
+
max: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
|
|
8423
|
+
claimExpirationHours: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
8424
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 9, 0)
|
|
8425
|
+
};
|
|
8426
|
+
|
|
8427
|
+
if (includeInstance) {
|
|
8428
|
+
obj.$jspbMessageInstance = msg;
|
|
8429
|
+
}
|
|
8430
|
+
return obj;
|
|
8431
|
+
};
|
|
8432
|
+
}
|
|
8433
|
+
|
|
8434
|
+
|
|
8435
|
+
/**
|
|
8436
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8437
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8438
|
+
* @return {!proto.cashback.UserCashbackInformationDefinitionItem}
|
|
8439
|
+
*/
|
|
8440
|
+
proto.cashback.UserCashbackInformationDefinitionItem.deserializeBinary = function(bytes) {
|
|
8441
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8442
|
+
var msg = new proto.cashback.UserCashbackInformationDefinitionItem;
|
|
8443
|
+
return proto.cashback.UserCashbackInformationDefinitionItem.deserializeBinaryFromReader(msg, reader);
|
|
8444
|
+
};
|
|
8445
|
+
|
|
8446
|
+
|
|
8447
|
+
/**
|
|
8448
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8449
|
+
* given reader into the given message object.
|
|
8450
|
+
* @param {!proto.cashback.UserCashbackInformationDefinitionItem} msg The message object to deserialize into.
|
|
8451
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8452
|
+
* @return {!proto.cashback.UserCashbackInformationDefinitionItem}
|
|
8453
|
+
*/
|
|
8454
|
+
proto.cashback.UserCashbackInformationDefinitionItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
8455
|
+
while (reader.nextField()) {
|
|
8456
|
+
if (reader.isEndGroup()) {
|
|
8457
|
+
break;
|
|
8458
|
+
}
|
|
8459
|
+
var field = reader.getFieldNumber();
|
|
8460
|
+
switch (field) {
|
|
8461
|
+
case 1:
|
|
8462
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
8463
|
+
msg.setId(value);
|
|
8464
|
+
break;
|
|
8465
|
+
case 2:
|
|
8466
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
8467
|
+
msg.setLoyaltyLevelId(value);
|
|
8468
|
+
break;
|
|
8469
|
+
case 3:
|
|
8470
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
8471
|
+
msg.setLevel(value);
|
|
8472
|
+
break;
|
|
8473
|
+
case 4:
|
|
8474
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8475
|
+
msg.setType(value);
|
|
8476
|
+
break;
|
|
8477
|
+
case 5:
|
|
8478
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
8479
|
+
msg.setPercentage(value);
|
|
8480
|
+
break;
|
|
8481
|
+
case 6:
|
|
8482
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
8483
|
+
msg.setMin(value);
|
|
8484
|
+
break;
|
|
8485
|
+
case 7:
|
|
8486
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
8487
|
+
msg.setMax(value);
|
|
8488
|
+
break;
|
|
8489
|
+
case 8:
|
|
8490
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
8491
|
+
msg.setClaimExpirationHours(value);
|
|
8492
|
+
break;
|
|
8493
|
+
case 9:
|
|
8494
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
8495
|
+
msg.setIsActive(value);
|
|
8496
|
+
break;
|
|
8497
|
+
default:
|
|
8498
|
+
reader.skipField();
|
|
8499
|
+
break;
|
|
8500
|
+
}
|
|
8501
|
+
}
|
|
8502
|
+
return msg;
|
|
8503
|
+
};
|
|
8504
|
+
|
|
8505
|
+
|
|
8506
|
+
/**
|
|
8507
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8508
|
+
* @return {!Uint8Array}
|
|
8509
|
+
*/
|
|
8510
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.serializeBinary = function() {
|
|
8511
|
+
var writer = new jspb.BinaryWriter();
|
|
8512
|
+
proto.cashback.UserCashbackInformationDefinitionItem.serializeBinaryToWriter(this, writer);
|
|
8513
|
+
return writer.getResultBuffer();
|
|
8514
|
+
};
|
|
8515
|
+
|
|
8516
|
+
|
|
8517
|
+
/**
|
|
8518
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8519
|
+
* format), writing to the given BinaryWriter.
|
|
8520
|
+
* @param {!proto.cashback.UserCashbackInformationDefinitionItem} message
|
|
8521
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8522
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8523
|
+
*/
|
|
8524
|
+
proto.cashback.UserCashbackInformationDefinitionItem.serializeBinaryToWriter = function(message, writer) {
|
|
8525
|
+
var f = undefined;
|
|
8526
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
|
8527
|
+
if (f != null) {
|
|
8528
|
+
writer.writeInt32(
|
|
8529
|
+
1,
|
|
8530
|
+
f
|
|
8531
|
+
);
|
|
8532
|
+
}
|
|
8533
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
8534
|
+
if (f != null) {
|
|
8535
|
+
writer.writeInt32(
|
|
8536
|
+
2,
|
|
8537
|
+
f
|
|
8538
|
+
);
|
|
8539
|
+
}
|
|
8540
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
8541
|
+
if (f != null) {
|
|
8542
|
+
writer.writeInt32(
|
|
8543
|
+
3,
|
|
8544
|
+
f
|
|
8545
|
+
);
|
|
8546
|
+
}
|
|
8547
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
8548
|
+
if (f != null) {
|
|
8549
|
+
writer.writeString(
|
|
8550
|
+
4,
|
|
8551
|
+
f
|
|
8552
|
+
);
|
|
8553
|
+
}
|
|
8554
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
|
8555
|
+
if (f != null) {
|
|
8556
|
+
writer.writeFloat(
|
|
8557
|
+
5,
|
|
8558
|
+
f
|
|
8559
|
+
);
|
|
8560
|
+
}
|
|
8561
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
|
8562
|
+
if (f != null) {
|
|
8563
|
+
writer.writeFloat(
|
|
8564
|
+
6,
|
|
8565
|
+
f
|
|
8566
|
+
);
|
|
8567
|
+
}
|
|
8568
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 7));
|
|
8569
|
+
if (f != null) {
|
|
8570
|
+
writer.writeFloat(
|
|
8571
|
+
7,
|
|
8572
|
+
f
|
|
8573
|
+
);
|
|
8574
|
+
}
|
|
8575
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 8));
|
|
8576
|
+
if (f != null) {
|
|
8577
|
+
writer.writeInt32(
|
|
8578
|
+
8,
|
|
8579
|
+
f
|
|
8580
|
+
);
|
|
8581
|
+
}
|
|
8582
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 9));
|
|
8583
|
+
if (f != null) {
|
|
8584
|
+
writer.writeInt32(
|
|
8585
|
+
9,
|
|
8586
|
+
f
|
|
8587
|
+
);
|
|
8588
|
+
}
|
|
8589
|
+
};
|
|
8590
|
+
|
|
8591
|
+
|
|
8592
|
+
/**
|
|
8593
|
+
* optional int32 id = 1;
|
|
8594
|
+
* @return {number}
|
|
8595
|
+
*/
|
|
8596
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.getId = function() {
|
|
8597
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
8598
|
+
};
|
|
8599
|
+
|
|
8600
|
+
|
|
8601
|
+
/**
|
|
8602
|
+
* @param {number} value
|
|
8603
|
+
* @return {!proto.cashback.UserCashbackInformationDefinitionItem} returns this
|
|
8604
|
+
*/
|
|
8605
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.setId = function(value) {
|
|
8606
|
+
return jspb.Message.setField(this, 1, value);
|
|
8607
|
+
};
|
|
8608
|
+
|
|
8609
|
+
|
|
8610
|
+
/**
|
|
8611
|
+
* Clears the field making it undefined.
|
|
8612
|
+
* @return {!proto.cashback.UserCashbackInformationDefinitionItem} returns this
|
|
8613
|
+
*/
|
|
8614
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.clearId = function() {
|
|
8615
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
8616
|
+
};
|
|
8617
|
+
|
|
8618
|
+
|
|
8619
|
+
/**
|
|
8620
|
+
* Returns whether this field is set.
|
|
8621
|
+
* @return {boolean}
|
|
8622
|
+
*/
|
|
8623
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.hasId = function() {
|
|
8624
|
+
return jspb.Message.getField(this, 1) != null;
|
|
8625
|
+
};
|
|
8626
|
+
|
|
8627
|
+
|
|
8628
|
+
/**
|
|
8629
|
+
* optional int32 loyalty_level_id = 2;
|
|
8630
|
+
* @return {number}
|
|
8631
|
+
*/
|
|
8632
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.getLoyaltyLevelId = function() {
|
|
8633
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
8634
|
+
};
|
|
8635
|
+
|
|
8636
|
+
|
|
8637
|
+
/**
|
|
8638
|
+
* @param {number} value
|
|
8639
|
+
* @return {!proto.cashback.UserCashbackInformationDefinitionItem} returns this
|
|
8640
|
+
*/
|
|
8641
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.setLoyaltyLevelId = function(value) {
|
|
8642
|
+
return jspb.Message.setField(this, 2, value);
|
|
8643
|
+
};
|
|
8644
|
+
|
|
8645
|
+
|
|
8646
|
+
/**
|
|
8647
|
+
* Clears the field making it undefined.
|
|
8648
|
+
* @return {!proto.cashback.UserCashbackInformationDefinitionItem} returns this
|
|
8649
|
+
*/
|
|
8650
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.clearLoyaltyLevelId = function() {
|
|
8651
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
8652
|
+
};
|
|
8653
|
+
|
|
8654
|
+
|
|
8655
|
+
/**
|
|
8656
|
+
* Returns whether this field is set.
|
|
8657
|
+
* @return {boolean}
|
|
8658
|
+
*/
|
|
8659
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.hasLoyaltyLevelId = function() {
|
|
8660
|
+
return jspb.Message.getField(this, 2) != null;
|
|
8661
|
+
};
|
|
8662
|
+
|
|
8663
|
+
|
|
8664
|
+
/**
|
|
8665
|
+
* optional int32 level = 3;
|
|
8666
|
+
* @return {number}
|
|
8667
|
+
*/
|
|
8668
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.getLevel = function() {
|
|
8669
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
8670
|
+
};
|
|
8671
|
+
|
|
8672
|
+
|
|
8673
|
+
/**
|
|
8674
|
+
* @param {number} value
|
|
8675
|
+
* @return {!proto.cashback.UserCashbackInformationDefinitionItem} returns this
|
|
8676
|
+
*/
|
|
8677
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.setLevel = function(value) {
|
|
8678
|
+
return jspb.Message.setField(this, 3, value);
|
|
8679
|
+
};
|
|
8680
|
+
|
|
8681
|
+
|
|
8682
|
+
/**
|
|
8683
|
+
* Clears the field making it undefined.
|
|
8684
|
+
* @return {!proto.cashback.UserCashbackInformationDefinitionItem} returns this
|
|
8685
|
+
*/
|
|
8686
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.clearLevel = function() {
|
|
8687
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
8688
|
+
};
|
|
8689
|
+
|
|
8690
|
+
|
|
8691
|
+
/**
|
|
8692
|
+
* Returns whether this field is set.
|
|
8693
|
+
* @return {boolean}
|
|
8694
|
+
*/
|
|
8695
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.hasLevel = function() {
|
|
8696
|
+
return jspb.Message.getField(this, 3) != null;
|
|
8697
|
+
};
|
|
8698
|
+
|
|
8699
|
+
|
|
8700
|
+
/**
|
|
8701
|
+
* optional string type = 4;
|
|
8702
|
+
* @return {string}
|
|
8703
|
+
*/
|
|
8704
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.getType = function() {
|
|
8705
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
8706
|
+
};
|
|
8707
|
+
|
|
8708
|
+
|
|
8709
|
+
/**
|
|
8710
|
+
* @param {string} value
|
|
8711
|
+
* @return {!proto.cashback.UserCashbackInformationDefinitionItem} returns this
|
|
8712
|
+
*/
|
|
8713
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.setType = function(value) {
|
|
8714
|
+
return jspb.Message.setField(this, 4, value);
|
|
8715
|
+
};
|
|
8716
|
+
|
|
8717
|
+
|
|
8718
|
+
/**
|
|
8719
|
+
* Clears the field making it undefined.
|
|
8720
|
+
* @return {!proto.cashback.UserCashbackInformationDefinitionItem} returns this
|
|
8721
|
+
*/
|
|
8722
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.clearType = function() {
|
|
8723
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
8724
|
+
};
|
|
8725
|
+
|
|
8726
|
+
|
|
8727
|
+
/**
|
|
8728
|
+
* Returns whether this field is set.
|
|
8729
|
+
* @return {boolean}
|
|
8730
|
+
*/
|
|
8731
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.hasType = function() {
|
|
8732
|
+
return jspb.Message.getField(this, 4) != null;
|
|
8733
|
+
};
|
|
8734
|
+
|
|
8735
|
+
|
|
8736
|
+
/**
|
|
8737
|
+
* optional float percentage = 5;
|
|
8738
|
+
* @return {number}
|
|
8739
|
+
*/
|
|
8740
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.getPercentage = function() {
|
|
8741
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
|
8742
|
+
};
|
|
8743
|
+
|
|
8744
|
+
|
|
8745
|
+
/**
|
|
8746
|
+
* @param {number} value
|
|
8747
|
+
* @return {!proto.cashback.UserCashbackInformationDefinitionItem} returns this
|
|
8748
|
+
*/
|
|
8749
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.setPercentage = function(value) {
|
|
8750
|
+
return jspb.Message.setField(this, 5, value);
|
|
8751
|
+
};
|
|
8752
|
+
|
|
8753
|
+
|
|
8754
|
+
/**
|
|
8755
|
+
* Clears the field making it undefined.
|
|
8756
|
+
* @return {!proto.cashback.UserCashbackInformationDefinitionItem} returns this
|
|
8757
|
+
*/
|
|
8758
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.clearPercentage = function() {
|
|
8759
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
8760
|
+
};
|
|
8761
|
+
|
|
8762
|
+
|
|
8763
|
+
/**
|
|
8764
|
+
* Returns whether this field is set.
|
|
8765
|
+
* @return {boolean}
|
|
8766
|
+
*/
|
|
8767
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.hasPercentage = function() {
|
|
8768
|
+
return jspb.Message.getField(this, 5) != null;
|
|
8769
|
+
};
|
|
8770
|
+
|
|
8771
|
+
|
|
8772
|
+
/**
|
|
8773
|
+
* optional float min = 6;
|
|
8774
|
+
* @return {number}
|
|
8775
|
+
*/
|
|
8776
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.getMin = function() {
|
|
8777
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
|
|
8778
|
+
};
|
|
8779
|
+
|
|
8780
|
+
|
|
8781
|
+
/**
|
|
8782
|
+
* @param {number} value
|
|
8783
|
+
* @return {!proto.cashback.UserCashbackInformationDefinitionItem} returns this
|
|
8784
|
+
*/
|
|
8785
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.setMin = function(value) {
|
|
8786
|
+
return jspb.Message.setField(this, 6, value);
|
|
8787
|
+
};
|
|
8788
|
+
|
|
8789
|
+
|
|
8790
|
+
/**
|
|
8791
|
+
* Clears the field making it undefined.
|
|
8792
|
+
* @return {!proto.cashback.UserCashbackInformationDefinitionItem} returns this
|
|
8793
|
+
*/
|
|
8794
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.clearMin = function() {
|
|
8795
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
8796
|
+
};
|
|
8797
|
+
|
|
8798
|
+
|
|
8799
|
+
/**
|
|
8800
|
+
* Returns whether this field is set.
|
|
8801
|
+
* @return {boolean}
|
|
8802
|
+
*/
|
|
8803
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.hasMin = function() {
|
|
8804
|
+
return jspb.Message.getField(this, 6) != null;
|
|
8805
|
+
};
|
|
8806
|
+
|
|
8807
|
+
|
|
8808
|
+
/**
|
|
8809
|
+
* optional float max = 7;
|
|
8810
|
+
* @return {number}
|
|
8811
|
+
*/
|
|
8812
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.getMax = function() {
|
|
8813
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
|
|
8814
|
+
};
|
|
8815
|
+
|
|
8816
|
+
|
|
8817
|
+
/**
|
|
8818
|
+
* @param {number} value
|
|
8819
|
+
* @return {!proto.cashback.UserCashbackInformationDefinitionItem} returns this
|
|
8820
|
+
*/
|
|
8821
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.setMax = function(value) {
|
|
8822
|
+
return jspb.Message.setField(this, 7, value);
|
|
8823
|
+
};
|
|
8824
|
+
|
|
8825
|
+
|
|
8826
|
+
/**
|
|
8827
|
+
* Clears the field making it undefined.
|
|
8828
|
+
* @return {!proto.cashback.UserCashbackInformationDefinitionItem} returns this
|
|
8829
|
+
*/
|
|
8830
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.clearMax = function() {
|
|
8831
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
8832
|
+
};
|
|
8833
|
+
|
|
8834
|
+
|
|
8835
|
+
/**
|
|
8836
|
+
* Returns whether this field is set.
|
|
8837
|
+
* @return {boolean}
|
|
8838
|
+
*/
|
|
8839
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.hasMax = function() {
|
|
8840
|
+
return jspb.Message.getField(this, 7) != null;
|
|
8841
|
+
};
|
|
8842
|
+
|
|
8843
|
+
|
|
8844
|
+
/**
|
|
8845
|
+
* optional int32 claim_expiration_hours = 8;
|
|
8846
|
+
* @return {number}
|
|
8847
|
+
*/
|
|
8848
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.getClaimExpirationHours = function() {
|
|
8849
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
8850
|
+
};
|
|
8851
|
+
|
|
8852
|
+
|
|
8853
|
+
/**
|
|
8854
|
+
* @param {number} value
|
|
8855
|
+
* @return {!proto.cashback.UserCashbackInformationDefinitionItem} returns this
|
|
8856
|
+
*/
|
|
8857
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.setClaimExpirationHours = function(value) {
|
|
8858
|
+
return jspb.Message.setField(this, 8, value);
|
|
8859
|
+
};
|
|
8860
|
+
|
|
8861
|
+
|
|
8862
|
+
/**
|
|
8863
|
+
* Clears the field making it undefined.
|
|
8864
|
+
* @return {!proto.cashback.UserCashbackInformationDefinitionItem} returns this
|
|
8865
|
+
*/
|
|
8866
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.clearClaimExpirationHours = function() {
|
|
8867
|
+
return jspb.Message.setField(this, 8, undefined);
|
|
8868
|
+
};
|
|
8869
|
+
|
|
8870
|
+
|
|
8871
|
+
/**
|
|
8872
|
+
* Returns whether this field is set.
|
|
8873
|
+
* @return {boolean}
|
|
8874
|
+
*/
|
|
8875
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.hasClaimExpirationHours = function() {
|
|
8876
|
+
return jspb.Message.getField(this, 8) != null;
|
|
8877
|
+
};
|
|
8878
|
+
|
|
8879
|
+
|
|
8880
|
+
/**
|
|
8881
|
+
* optional int32 is_active = 9;
|
|
8882
|
+
* @return {number}
|
|
8883
|
+
*/
|
|
8884
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.getIsActive = function() {
|
|
8885
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
8886
|
+
};
|
|
8887
|
+
|
|
8888
|
+
|
|
8889
|
+
/**
|
|
8890
|
+
* @param {number} value
|
|
8891
|
+
* @return {!proto.cashback.UserCashbackInformationDefinitionItem} returns this
|
|
8892
|
+
*/
|
|
8893
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.setIsActive = function(value) {
|
|
8894
|
+
return jspb.Message.setField(this, 9, value);
|
|
8895
|
+
};
|
|
8896
|
+
|
|
8897
|
+
|
|
8898
|
+
/**
|
|
8899
|
+
* Clears the field making it undefined.
|
|
8900
|
+
* @return {!proto.cashback.UserCashbackInformationDefinitionItem} returns this
|
|
8901
|
+
*/
|
|
8902
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.clearIsActive = function() {
|
|
8903
|
+
return jspb.Message.setField(this, 9, undefined);
|
|
8904
|
+
};
|
|
8905
|
+
|
|
8906
|
+
|
|
8907
|
+
/**
|
|
8908
|
+
* Returns whether this field is set.
|
|
8909
|
+
* @return {boolean}
|
|
8910
|
+
*/
|
|
8911
|
+
proto.cashback.UserCashbackInformationDefinitionItem.prototype.hasIsActive = function() {
|
|
8912
|
+
return jspb.Message.getField(this, 9) != null;
|
|
8913
|
+
};
|
|
8914
|
+
|
|
8915
|
+
|
|
8916
|
+
|
|
8917
|
+
/**
|
|
8918
|
+
* List of repeated fields within this message type.
|
|
8919
|
+
* @private {!Array<number>}
|
|
8920
|
+
* @const
|
|
8921
|
+
*/
|
|
8922
|
+
proto.cashback.GetUserCashbackInformationResponse.repeatedFields_ = [7];
|
|
8923
|
+
|
|
8924
|
+
|
|
8925
|
+
|
|
8926
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8927
|
+
/**
|
|
8928
|
+
* Creates an object representation of this proto.
|
|
8929
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8930
|
+
* Optional fields that are not set will be set to undefined.
|
|
8931
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8932
|
+
* For the list of reserved names please see:
|
|
8933
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8934
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8935
|
+
* JSPB instance for transitional soy proto support:
|
|
8936
|
+
* http://goto/soy-param-migration
|
|
8937
|
+
* @return {!Object}
|
|
8938
|
+
*/
|
|
8939
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.toObject = function(opt_includeInstance) {
|
|
8940
|
+
return proto.cashback.GetUserCashbackInformationResponse.toObject(opt_includeInstance, this);
|
|
8941
|
+
};
|
|
8942
|
+
|
|
8943
|
+
|
|
8944
|
+
/**
|
|
8945
|
+
* Static version of the {@see toObject} method.
|
|
8946
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8947
|
+
* the JSPB instance for transitional soy proto support:
|
|
8948
|
+
* http://goto/soy-param-migration
|
|
8949
|
+
* @param {!proto.cashback.GetUserCashbackInformationResponse} msg The msg instance to transform.
|
|
8950
|
+
* @return {!Object}
|
|
8951
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8952
|
+
*/
|
|
8953
|
+
proto.cashback.GetUserCashbackInformationResponse.toObject = function(includeInstance, msg) {
|
|
8954
|
+
var f, obj = {
|
|
8955
|
+
currency: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8956
|
+
currencyScale: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
8957
|
+
claimableAmountMinor: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
8958
|
+
title: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
8959
|
+
content: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
8960
|
+
nearestClaimExpiresAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
8961
|
+
definitionsList: jspb.Message.toObjectList(msg.getDefinitionsList(),
|
|
8962
|
+
proto.cashback.UserCashbackInformationDefinitionItem.toObject, includeInstance)
|
|
8963
|
+
};
|
|
8964
|
+
|
|
8965
|
+
if (includeInstance) {
|
|
8966
|
+
obj.$jspbMessageInstance = msg;
|
|
8967
|
+
}
|
|
8968
|
+
return obj;
|
|
8969
|
+
};
|
|
8970
|
+
}
|
|
8971
|
+
|
|
8972
|
+
|
|
8973
|
+
/**
|
|
8974
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8975
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8976
|
+
* @return {!proto.cashback.GetUserCashbackInformationResponse}
|
|
8977
|
+
*/
|
|
8978
|
+
proto.cashback.GetUserCashbackInformationResponse.deserializeBinary = function(bytes) {
|
|
8979
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8980
|
+
var msg = new proto.cashback.GetUserCashbackInformationResponse;
|
|
8981
|
+
return proto.cashback.GetUserCashbackInformationResponse.deserializeBinaryFromReader(msg, reader);
|
|
8982
|
+
};
|
|
8983
|
+
|
|
8984
|
+
|
|
8985
|
+
/**
|
|
8986
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8987
|
+
* given reader into the given message object.
|
|
8988
|
+
* @param {!proto.cashback.GetUserCashbackInformationResponse} msg The message object to deserialize into.
|
|
8989
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8990
|
+
* @return {!proto.cashback.GetUserCashbackInformationResponse}
|
|
8991
|
+
*/
|
|
8992
|
+
proto.cashback.GetUserCashbackInformationResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
8993
|
+
while (reader.nextField()) {
|
|
8994
|
+
if (reader.isEndGroup()) {
|
|
8995
|
+
break;
|
|
8996
|
+
}
|
|
8997
|
+
var field = reader.getFieldNumber();
|
|
8998
|
+
switch (field) {
|
|
8999
|
+
case 1:
|
|
9000
|
+
var value = /** @type {string} */ (reader.readString());
|
|
9001
|
+
msg.setCurrency(value);
|
|
9002
|
+
break;
|
|
9003
|
+
case 2:
|
|
9004
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
9005
|
+
msg.setCurrencyScale(value);
|
|
9006
|
+
break;
|
|
9007
|
+
case 3:
|
|
9008
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
9009
|
+
msg.setClaimableAmountMinor(value);
|
|
9010
|
+
break;
|
|
9011
|
+
case 4:
|
|
9012
|
+
var value = /** @type {string} */ (reader.readString());
|
|
9013
|
+
msg.setTitle(value);
|
|
9014
|
+
break;
|
|
9015
|
+
case 5:
|
|
9016
|
+
var value = /** @type {string} */ (reader.readString());
|
|
9017
|
+
msg.setContent(value);
|
|
9018
|
+
break;
|
|
9019
|
+
case 6:
|
|
9020
|
+
var value = /** @type {string} */ (reader.readString());
|
|
9021
|
+
msg.setNearestClaimExpiresAt(value);
|
|
9022
|
+
break;
|
|
9023
|
+
case 7:
|
|
9024
|
+
var value = new proto.cashback.UserCashbackInformationDefinitionItem;
|
|
9025
|
+
reader.readMessage(value,proto.cashback.UserCashbackInformationDefinitionItem.deserializeBinaryFromReader);
|
|
9026
|
+
msg.addDefinitions(value);
|
|
9027
|
+
break;
|
|
9028
|
+
default:
|
|
9029
|
+
reader.skipField();
|
|
9030
|
+
break;
|
|
9031
|
+
}
|
|
9032
|
+
}
|
|
9033
|
+
return msg;
|
|
9034
|
+
};
|
|
9035
|
+
|
|
9036
|
+
|
|
9037
|
+
/**
|
|
9038
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
9039
|
+
* @return {!Uint8Array}
|
|
9040
|
+
*/
|
|
9041
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.serializeBinary = function() {
|
|
9042
|
+
var writer = new jspb.BinaryWriter();
|
|
9043
|
+
proto.cashback.GetUserCashbackInformationResponse.serializeBinaryToWriter(this, writer);
|
|
9044
|
+
return writer.getResultBuffer();
|
|
9045
|
+
};
|
|
9046
|
+
|
|
9047
|
+
|
|
9048
|
+
/**
|
|
9049
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
9050
|
+
* format), writing to the given BinaryWriter.
|
|
9051
|
+
* @param {!proto.cashback.GetUserCashbackInformationResponse} message
|
|
9052
|
+
* @param {!jspb.BinaryWriter} writer
|
|
9053
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
9054
|
+
*/
|
|
9055
|
+
proto.cashback.GetUserCashbackInformationResponse.serializeBinaryToWriter = function(message, writer) {
|
|
9056
|
+
var f = undefined;
|
|
9057
|
+
f = message.getCurrency();
|
|
9058
|
+
if (f.length > 0) {
|
|
9059
|
+
writer.writeString(
|
|
9060
|
+
1,
|
|
9061
|
+
f
|
|
9062
|
+
);
|
|
9063
|
+
}
|
|
9064
|
+
f = message.getCurrencyScale();
|
|
9065
|
+
if (f !== 0) {
|
|
9066
|
+
writer.writeInt32(
|
|
9067
|
+
2,
|
|
9068
|
+
f
|
|
9069
|
+
);
|
|
9070
|
+
}
|
|
9071
|
+
f = message.getClaimableAmountMinor();
|
|
9072
|
+
if (f !== 0) {
|
|
9073
|
+
writer.writeInt64(
|
|
9074
|
+
3,
|
|
9075
|
+
f
|
|
9076
|
+
);
|
|
9077
|
+
}
|
|
9078
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
9079
|
+
if (f != null) {
|
|
9080
|
+
writer.writeString(
|
|
9081
|
+
4,
|
|
9082
|
+
f
|
|
9083
|
+
);
|
|
9084
|
+
}
|
|
9085
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
9086
|
+
if (f != null) {
|
|
9087
|
+
writer.writeString(
|
|
9088
|
+
5,
|
|
9089
|
+
f
|
|
9090
|
+
);
|
|
9091
|
+
}
|
|
9092
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
9093
|
+
if (f != null) {
|
|
9094
|
+
writer.writeString(
|
|
9095
|
+
6,
|
|
9096
|
+
f
|
|
9097
|
+
);
|
|
9098
|
+
}
|
|
9099
|
+
f = message.getDefinitionsList();
|
|
9100
|
+
if (f.length > 0) {
|
|
9101
|
+
writer.writeRepeatedMessage(
|
|
9102
|
+
7,
|
|
9103
|
+
f,
|
|
9104
|
+
proto.cashback.UserCashbackInformationDefinitionItem.serializeBinaryToWriter
|
|
9105
|
+
);
|
|
9106
|
+
}
|
|
9107
|
+
};
|
|
9108
|
+
|
|
9109
|
+
|
|
9110
|
+
/**
|
|
9111
|
+
* optional string currency = 1;
|
|
9112
|
+
* @return {string}
|
|
9113
|
+
*/
|
|
9114
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.getCurrency = function() {
|
|
9115
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
9116
|
+
};
|
|
9117
|
+
|
|
9118
|
+
|
|
9119
|
+
/**
|
|
9120
|
+
* @param {string} value
|
|
9121
|
+
* @return {!proto.cashback.GetUserCashbackInformationResponse} returns this
|
|
9122
|
+
*/
|
|
9123
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.setCurrency = function(value) {
|
|
9124
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
9125
|
+
};
|
|
9126
|
+
|
|
9127
|
+
|
|
9128
|
+
/**
|
|
9129
|
+
* optional int32 currency_scale = 2;
|
|
9130
|
+
* @return {number}
|
|
9131
|
+
*/
|
|
9132
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.getCurrencyScale = function() {
|
|
9133
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
9134
|
+
};
|
|
9135
|
+
|
|
9136
|
+
|
|
9137
|
+
/**
|
|
9138
|
+
* @param {number} value
|
|
9139
|
+
* @return {!proto.cashback.GetUserCashbackInformationResponse} returns this
|
|
9140
|
+
*/
|
|
9141
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.setCurrencyScale = function(value) {
|
|
9142
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
9143
|
+
};
|
|
9144
|
+
|
|
9145
|
+
|
|
9146
|
+
/**
|
|
9147
|
+
* optional int64 claimable_amount_minor = 3;
|
|
9148
|
+
* @return {number}
|
|
9149
|
+
*/
|
|
9150
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.getClaimableAmountMinor = function() {
|
|
9151
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
9152
|
+
};
|
|
9153
|
+
|
|
9154
|
+
|
|
9155
|
+
/**
|
|
9156
|
+
* @param {number} value
|
|
9157
|
+
* @return {!proto.cashback.GetUserCashbackInformationResponse} returns this
|
|
9158
|
+
*/
|
|
9159
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.setClaimableAmountMinor = function(value) {
|
|
9160
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
9161
|
+
};
|
|
9162
|
+
|
|
9163
|
+
|
|
9164
|
+
/**
|
|
9165
|
+
* optional string title = 4;
|
|
9166
|
+
* @return {string}
|
|
9167
|
+
*/
|
|
9168
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.getTitle = function() {
|
|
9169
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
9170
|
+
};
|
|
9171
|
+
|
|
9172
|
+
|
|
9173
|
+
/**
|
|
9174
|
+
* @param {string} value
|
|
9175
|
+
* @return {!proto.cashback.GetUserCashbackInformationResponse} returns this
|
|
9176
|
+
*/
|
|
9177
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.setTitle = function(value) {
|
|
9178
|
+
return jspb.Message.setField(this, 4, value);
|
|
9179
|
+
};
|
|
9180
|
+
|
|
9181
|
+
|
|
9182
|
+
/**
|
|
9183
|
+
* Clears the field making it undefined.
|
|
9184
|
+
* @return {!proto.cashback.GetUserCashbackInformationResponse} returns this
|
|
9185
|
+
*/
|
|
9186
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.clearTitle = function() {
|
|
9187
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
9188
|
+
};
|
|
9189
|
+
|
|
9190
|
+
|
|
9191
|
+
/**
|
|
9192
|
+
* Returns whether this field is set.
|
|
9193
|
+
* @return {boolean}
|
|
9194
|
+
*/
|
|
9195
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.hasTitle = function() {
|
|
9196
|
+
return jspb.Message.getField(this, 4) != null;
|
|
9197
|
+
};
|
|
9198
|
+
|
|
9199
|
+
|
|
9200
|
+
/**
|
|
9201
|
+
* optional string content = 5;
|
|
9202
|
+
* @return {string}
|
|
9203
|
+
*/
|
|
9204
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.getContent = function() {
|
|
9205
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
9206
|
+
};
|
|
9207
|
+
|
|
9208
|
+
|
|
9209
|
+
/**
|
|
9210
|
+
* @param {string} value
|
|
9211
|
+
* @return {!proto.cashback.GetUserCashbackInformationResponse} returns this
|
|
9212
|
+
*/
|
|
9213
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.setContent = function(value) {
|
|
9214
|
+
return jspb.Message.setField(this, 5, value);
|
|
9215
|
+
};
|
|
9216
|
+
|
|
9217
|
+
|
|
9218
|
+
/**
|
|
9219
|
+
* Clears the field making it undefined.
|
|
9220
|
+
* @return {!proto.cashback.GetUserCashbackInformationResponse} returns this
|
|
9221
|
+
*/
|
|
9222
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.clearContent = function() {
|
|
9223
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
9224
|
+
};
|
|
9225
|
+
|
|
9226
|
+
|
|
9227
|
+
/**
|
|
9228
|
+
* Returns whether this field is set.
|
|
9229
|
+
* @return {boolean}
|
|
9230
|
+
*/
|
|
9231
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.hasContent = function() {
|
|
9232
|
+
return jspb.Message.getField(this, 5) != null;
|
|
9233
|
+
};
|
|
9234
|
+
|
|
9235
|
+
|
|
9236
|
+
/**
|
|
9237
|
+
* optional string nearest_claim_expires_at = 6;
|
|
9238
|
+
* @return {string}
|
|
9239
|
+
*/
|
|
9240
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.getNearestClaimExpiresAt = function() {
|
|
9241
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
9242
|
+
};
|
|
9243
|
+
|
|
9244
|
+
|
|
9245
|
+
/**
|
|
9246
|
+
* @param {string} value
|
|
9247
|
+
* @return {!proto.cashback.GetUserCashbackInformationResponse} returns this
|
|
9248
|
+
*/
|
|
9249
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.setNearestClaimExpiresAt = function(value) {
|
|
9250
|
+
return jspb.Message.setField(this, 6, value);
|
|
9251
|
+
};
|
|
9252
|
+
|
|
9253
|
+
|
|
9254
|
+
/**
|
|
9255
|
+
* Clears the field making it undefined.
|
|
9256
|
+
* @return {!proto.cashback.GetUserCashbackInformationResponse} returns this
|
|
9257
|
+
*/
|
|
9258
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.clearNearestClaimExpiresAt = function() {
|
|
9259
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
9260
|
+
};
|
|
9261
|
+
|
|
9262
|
+
|
|
9263
|
+
/**
|
|
9264
|
+
* Returns whether this field is set.
|
|
9265
|
+
* @return {boolean}
|
|
9266
|
+
*/
|
|
9267
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.hasNearestClaimExpiresAt = function() {
|
|
9268
|
+
return jspb.Message.getField(this, 6) != null;
|
|
9269
|
+
};
|
|
9270
|
+
|
|
9271
|
+
|
|
9272
|
+
/**
|
|
9273
|
+
* repeated UserCashbackInformationDefinitionItem definitions = 7;
|
|
9274
|
+
* @return {!Array<!proto.cashback.UserCashbackInformationDefinitionItem>}
|
|
9275
|
+
*/
|
|
9276
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.getDefinitionsList = function() {
|
|
9277
|
+
return /** @type{!Array<!proto.cashback.UserCashbackInformationDefinitionItem>} */ (
|
|
9278
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cashback.UserCashbackInformationDefinitionItem, 7));
|
|
9279
|
+
};
|
|
9280
|
+
|
|
9281
|
+
|
|
9282
|
+
/**
|
|
9283
|
+
* @param {!Array<!proto.cashback.UserCashbackInformationDefinitionItem>} value
|
|
9284
|
+
* @return {!proto.cashback.GetUserCashbackInformationResponse} returns this
|
|
9285
|
+
*/
|
|
9286
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.setDefinitionsList = function(value) {
|
|
9287
|
+
return jspb.Message.setRepeatedWrapperField(this, 7, value);
|
|
9288
|
+
};
|
|
9289
|
+
|
|
9290
|
+
|
|
9291
|
+
/**
|
|
9292
|
+
* @param {!proto.cashback.UserCashbackInformationDefinitionItem=} opt_value
|
|
9293
|
+
* @param {number=} opt_index
|
|
9294
|
+
* @return {!proto.cashback.UserCashbackInformationDefinitionItem}
|
|
9295
|
+
*/
|
|
9296
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.addDefinitions = function(opt_value, opt_index) {
|
|
9297
|
+
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.cashback.UserCashbackInformationDefinitionItem, opt_index);
|
|
9298
|
+
};
|
|
9299
|
+
|
|
9300
|
+
|
|
9301
|
+
/**
|
|
9302
|
+
* Clears the list making it empty but non-null.
|
|
9303
|
+
* @return {!proto.cashback.GetUserCashbackInformationResponse} returns this
|
|
9304
|
+
*/
|
|
9305
|
+
proto.cashback.GetUserCashbackInformationResponse.prototype.clearDefinitionsList = function() {
|
|
9306
|
+
return this.setDefinitionsList([]);
|
|
9307
|
+
};
|
|
9308
|
+
|
|
9309
|
+
|
|
7630
9310
|
goog.object.extend(exports, proto.cashback);
|