protobuf-platform 1.2.697 → 1.2.699
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 +2 -0
- package/bonus/bonus_pb.js +49 -1
- package/cashback/cashback.proto +5 -0
- package/cashback/cashback_pb.js +196 -4
- package/loyalty/loyalty.proto +9 -0
- package/loyalty/loyalty_grpc_pb.js +23 -0
- package/loyalty/loyalty_pb.js +260 -0
- package/package.json +1 -1
- package/payment/payment.proto +8 -0
- package/payment/payment_grpc_pb.js +22 -0
- package/payment/payment_pb.js +242 -0
- package/promocode/promocode.proto +51 -0
- package/promocode/promocode_grpc_pb.js +110 -0
- package/promocode/promocode_pb.js +2154 -0
|
@@ -257,6 +257,72 @@ function deserialize_promocode_PrepareUserPromocodeGrantResponse(buffer_arg) {
|
|
|
257
257
|
return promocode_pb.PrepareUserPromocodeGrantResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
+
function serialize_promocode_ReadDepositUserPromocodeRequest(arg) {
|
|
261
|
+
if (!(arg instanceof promocode_pb.ReadDepositUserPromocodeRequest)) {
|
|
262
|
+
throw new Error('Expected argument of type promocode.ReadDepositUserPromocodeRequest');
|
|
263
|
+
}
|
|
264
|
+
return Buffer.from(arg.serializeBinary());
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
function deserialize_promocode_ReadDepositUserPromocodeRequest(buffer_arg) {
|
|
268
|
+
return promocode_pb.ReadDepositUserPromocodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
function serialize_promocode_RejectDepositUserPromocodeRequest(arg) {
|
|
272
|
+
if (!(arg instanceof promocode_pb.RejectDepositUserPromocodeRequest)) {
|
|
273
|
+
throw new Error('Expected argument of type promocode.RejectDepositUserPromocodeRequest');
|
|
274
|
+
}
|
|
275
|
+
return Buffer.from(arg.serializeBinary());
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
function deserialize_promocode_RejectDepositUserPromocodeRequest(buffer_arg) {
|
|
279
|
+
return promocode_pb.RejectDepositUserPromocodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
function serialize_promocode_ReserveDepositUserPromocodeRequest(arg) {
|
|
283
|
+
if (!(arg instanceof promocode_pb.ReserveDepositUserPromocodeRequest)) {
|
|
284
|
+
throw new Error('Expected argument of type promocode.ReserveDepositUserPromocodeRequest');
|
|
285
|
+
}
|
|
286
|
+
return Buffer.from(arg.serializeBinary());
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
function deserialize_promocode_ReserveDepositUserPromocodeRequest(buffer_arg) {
|
|
290
|
+
return promocode_pb.ReserveDepositUserPromocodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
function serialize_promocode_UserPromocodeItemsResponse(arg) {
|
|
294
|
+
if (!(arg instanceof promocode_pb.UserPromocodeItemsResponse)) {
|
|
295
|
+
throw new Error('Expected argument of type promocode.UserPromocodeItemsResponse');
|
|
296
|
+
}
|
|
297
|
+
return Buffer.from(arg.serializeBinary());
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
function deserialize_promocode_UserPromocodeItemsResponse(buffer_arg) {
|
|
301
|
+
return promocode_pb.UserPromocodeItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
function serialize_promocode_UserPromocodePaginationRequest(arg) {
|
|
305
|
+
if (!(arg instanceof promocode_pb.UserPromocodePaginationRequest)) {
|
|
306
|
+
throw new Error('Expected argument of type promocode.UserPromocodePaginationRequest');
|
|
307
|
+
}
|
|
308
|
+
return Buffer.from(arg.serializeBinary());
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
function deserialize_promocode_UserPromocodePaginationRequest(buffer_arg) {
|
|
312
|
+
return promocode_pb.UserPromocodePaginationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
function serialize_promocode_UserPromocodeUsageItem(arg) {
|
|
316
|
+
if (!(arg instanceof promocode_pb.UserPromocodeUsageItem)) {
|
|
317
|
+
throw new Error('Expected argument of type promocode.UserPromocodeUsageItem');
|
|
318
|
+
}
|
|
319
|
+
return Buffer.from(arg.serializeBinary());
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
function deserialize_promocode_UserPromocodeUsageItem(buffer_arg) {
|
|
323
|
+
return promocode_pb.UserPromocodeUsageItem.deserializeBinary(new Uint8Array(buffer_arg));
|
|
324
|
+
}
|
|
325
|
+
|
|
260
326
|
|
|
261
327
|
var PromocodeService = exports.PromocodeService = {
|
|
262
328
|
checkConnection: {
|
|
@@ -438,6 +504,50 @@ applyUserPromocode: {
|
|
|
438
504
|
responseSerialize: serialize_promocode_GetUserRegistrationPromocodeResponse,
|
|
439
505
|
responseDeserialize: deserialize_promocode_GetUserRegistrationPromocodeResponse,
|
|
440
506
|
},
|
|
507
|
+
reserveDepositUserPromocode: {
|
|
508
|
+
path: '/promocode.Promocode/reserveDepositUserPromocode',
|
|
509
|
+
requestStream: false,
|
|
510
|
+
responseStream: false,
|
|
511
|
+
requestType: promocode_pb.ReserveDepositUserPromocodeRequest,
|
|
512
|
+
responseType: promocode_pb.UserPromocodeUsageItem,
|
|
513
|
+
requestSerialize: serialize_promocode_ReserveDepositUserPromocodeRequest,
|
|
514
|
+
requestDeserialize: deserialize_promocode_ReserveDepositUserPromocodeRequest,
|
|
515
|
+
responseSerialize: serialize_promocode_UserPromocodeUsageItem,
|
|
516
|
+
responseDeserialize: deserialize_promocode_UserPromocodeUsageItem,
|
|
517
|
+
},
|
|
518
|
+
readDepositUserPromocode: {
|
|
519
|
+
path: '/promocode.Promocode/readDepositUserPromocode',
|
|
520
|
+
requestStream: false,
|
|
521
|
+
responseStream: false,
|
|
522
|
+
requestType: promocode_pb.ReadDepositUserPromocodeRequest,
|
|
523
|
+
responseType: promocode_pb.UserPromocodeUsageItem,
|
|
524
|
+
requestSerialize: serialize_promocode_ReadDepositUserPromocodeRequest,
|
|
525
|
+
requestDeserialize: deserialize_promocode_ReadDepositUserPromocodeRequest,
|
|
526
|
+
responseSerialize: serialize_promocode_UserPromocodeUsageItem,
|
|
527
|
+
responseDeserialize: deserialize_promocode_UserPromocodeUsageItem,
|
|
528
|
+
},
|
|
529
|
+
rejectDepositUserPromocode: {
|
|
530
|
+
path: '/promocode.Promocode/rejectDepositUserPromocode',
|
|
531
|
+
requestStream: false,
|
|
532
|
+
responseStream: false,
|
|
533
|
+
requestType: promocode_pb.RejectDepositUserPromocodeRequest,
|
|
534
|
+
responseType: promocode_pb.UserPromocodeUsageItem,
|
|
535
|
+
requestSerialize: serialize_promocode_RejectDepositUserPromocodeRequest,
|
|
536
|
+
requestDeserialize: deserialize_promocode_RejectDepositUserPromocodeRequest,
|
|
537
|
+
responseSerialize: serialize_promocode_UserPromocodeUsageItem,
|
|
538
|
+
responseDeserialize: deserialize_promocode_UserPromocodeUsageItem,
|
|
539
|
+
},
|
|
540
|
+
readListUserPromocodes: {
|
|
541
|
+
path: '/promocode.Promocode/readListUserPromocodes',
|
|
542
|
+
requestStream: false,
|
|
543
|
+
responseStream: false,
|
|
544
|
+
requestType: promocode_pb.UserPromocodePaginationRequest,
|
|
545
|
+
responseType: promocode_pb.UserPromocodeItemsResponse,
|
|
546
|
+
requestSerialize: serialize_promocode_UserPromocodePaginationRequest,
|
|
547
|
+
requestDeserialize: deserialize_promocode_UserPromocodePaginationRequest,
|
|
548
|
+
responseSerialize: serialize_promocode_UserPromocodeItemsResponse,
|
|
549
|
+
responseDeserialize: deserialize_promocode_UserPromocodeItemsResponse,
|
|
550
|
+
},
|
|
441
551
|
};
|
|
442
552
|
|
|
443
553
|
exports.PromocodeClient = grpc.makeGenericClientConstructor(PromocodeService, 'Promocode');
|