@stashfin/grpc 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/package.json +1 -1
- package/ts/banking/aa/getaasupport.js +2 -2
- package/ts/banking/aa/getbanklist.js +2 -2
- package/ts/banking/aa/getcustomerbank.js +2 -2
- package/ts/banking/aa/getrpdlink.js +2 -2
- package/ts/banking/aa/initiate.js +2 -2
- package/ts/banking/aa/initiatepennydrop.js +2 -2
- package/ts/banking/aa/netbankinginitiate.js +2 -2
- package/ts/banking/aa/pollingrpd.js +2 -2
- package/ts/banking.js +2 -2
- package/ts/bureau/getbasicdetails.js +2 -2
- package/ts/bureau/getcibilwebtoken.js +2 -2
- package/ts/bureau/getdbrcolending.js +2 -2
- package/ts/bureau/getdemogs.js +2 -2
- package/ts/bureau/getobligation.js +2 -2
- package/ts/bureau/getreport.js +2 -2
- package/ts/bureau.js +2 -2
- package/ts/ckyc/ckycdownload.js +2 -2
- package/ts/ckyc/ckycsearch.js +2 -2
- package/ts/ckyc.js +2 -2
- package/ts/colender/disburseLoan.js +2 -2
- package/ts/colender/forecloseLoan.js +2 -2
- package/ts/colender/repayLoan.js +2 -2
- package/ts/colender.js +2 -2
- package/ts/customers/aa/getaatxnstatus.js +2 -2
- package/ts/customers/aa/getbanklist.js +2 -2
- package/ts/customers/aa/initiate.js +2 -2
- package/ts/customers/accidentprotectionplan.js +2 -2
- package/ts/customers/addaddress.js +2 -2
- package/ts/customers/addbankaccountdetails.js +2 -2
- package/ts/customers/addfathersname.js +2 -2
- package/ts/customers/addgstnumber.js +2 -2
- package/ts/customers/addmoredetails.js +2 -2
- package/ts/customers/addsuspendedcustomer.js +2 -2
- package/ts/customers/adduserapps.js +2 -2
- package/ts/customers/applyclijourney.js +2 -2
- package/ts/customers/bulksms.js +2 -2
- package/ts/customers/cb/cbapplicationrejecteddata.js +2 -2
- package/ts/customers/cb/cbpaynow.js +2 -2
- package/ts/customers/cb/cbsignup.js +2 -2
- package/ts/customers/cb/getcbtxnstatus.js +2 -2
- package/ts/customers/cb/getcreditbuilder.js +2 -2
- package/ts/customers/cb/getpaymentsummary.js +2 -2
- package/ts/customers/cb/insurancedetails.js +2 -2
- package/ts/customers/cb/lesscsimprove.js +2 -2
- package/ts/customers/cb/morecsimprove.js +2 -2
- package/ts/customers/cb/paynow.js +2 -2
- package/ts/customers/cb/savecreditbuilder.js +2 -2
- package/ts/customers/cb/updatecbstandalonecancellation.js +2 -2
- package/ts/customers/cb/updatecbstandaloneconfirmation.js +2 -2
- package/ts/customers/cb/updatecbstandalonejourney.js +2 -2
- package/ts/customers/cb/updatecbtxnstatus.js +2 -2
- package/ts/customers/changempin.js +2 -2
- package/ts/customers/createcustomerreference.js +2 -2
- package/ts/customers/createvanumber.js +2 -2
- package/ts/customers/customerinfo.js +2 -2
- package/ts/customers/deletedocument.js +2 -2
- package/ts/customers/deleteprofile.js +2 -2
- package/ts/customers/disablempin.js +2 -2
- package/ts/customers/enach/gettxnstatus.js +2 -2
- package/ts/customers/enach/getweburl.js +2 -2
- package/ts/customers/enach/updateenachtxnstatus.js +2 -2
- package/ts/customers/enach/updatetxnstatus.js +2 -2
- package/ts/customers/fetchrcprofile.js +2 -2
- package/ts/customers/floatingvideos.js +2 -2
- package/ts/customers/forceupdate.js +2 -2
- package/ts/customers/forgotmpin.js +2 -2
- package/ts/customers/forgotmpinverify.js +2 -2
- package/ts/customers/freedom/addressconfirmation.js +2 -2
- package/ts/customers/freedom/freedompaynow.js +2 -2
- package/ts/customers/freedom/getfreedomtxnstatus.js +2 -2
- package/ts/customers/freedom/updateadditionalverification.js +2 -2
- package/ts/customers/freedom/updatefreedomtxnstatus.js +2 -2
- package/ts/customers/getaddresslist.js +2 -2
- package/ts/customers/getappsubmittedscreen.js +2 -2
- package/ts/customers/getbankaccountdetails.js +2 -2
- package/ts/customers/getbasicinfo.js +2 -2
- package/ts/customers/getcities.js +2 -2
- package/ts/customers/getclistatus.js +2 -2
- package/ts/customers/getcompanyaccdetails.js +2 -2
- package/ts/customers/getcustomerbyid.js +2 -2
- package/ts/customers/getcustomerdetailsbymobile.js +2 -2
- package/ts/customers/getdashboard.js +2 -2
- package/ts/customers/getdashboardmaincard.js +2 -2
- package/ts/customers/getdocuments.js +2 -2
- package/ts/customers/getglobalpopups.js +2 -2
- package/ts/customers/getlimit.js +2 -2
- package/ts/customers/getloclimit.js +2 -2
- package/ts/customers/getmessengermode.js +2 -2
- package/ts/customers/getoccupationlist.js +2 -2
- package/ts/customers/getpaymentoptions.js +2 -2
- package/ts/customers/getprofessionalinfo.js +2 -2
- package/ts/customers/getprofile.js +2 -2
- package/ts/customers/getselfieetxnid.js +2 -2
- package/ts/customers/getstates.js +2 -2
- package/ts/customers/getstep.js +2 -2
- package/ts/customers/getsyncstatus.js +2 -2
- package/ts/customers/getvanumber.js +2 -2
- package/ts/customers/lamf/applylamf.js +2 -2
- package/ts/customers/lamf/sendlamfotp.js +2 -2
- package/ts/customers/lamf/sendlamfpledgeotp.js +2 -2
- package/ts/customers/lamf/updatelamfjourney.js +2 -2
- package/ts/customers/lamf/verifylamfotp.js +2 -2
- package/ts/customers/lamf/verifylamfpledgeotp.js +2 -2
- package/ts/customers/logout.js +2 -2
- package/ts/customers/pd/getbanklist.js +2 -2
- package/ts/customers/pd/validatebankaccount.js +2 -2
- package/ts/customers/profilebasic.js +2 -2
- package/ts/customers/profileupdatetnc.js +2 -2
- package/ts/customers/resetbanner.js +2 -2
- package/ts/customers/restoreaccount.js +2 -2
- package/ts/customers/rpd/getrpdlink.js +2 -2
- package/ts/customers/rpd/getrpdtransactionstatus.js +2 -2
- package/ts/customers/rpd/mockpayment.js +2 -2
- package/ts/customers/saveappslist.js +2 -2
- package/ts/customers/savebasicdetails.js +2 -2
- package/ts/customers/savelimit.js +2 -2
- package/ts/customers/saveunlocklimit.js +2 -2
- package/ts/customers/sendotp.js +2 -2
- package/ts/customers/sendotptoemail.js +2 -2
- package/ts/customers/setmpin.js +2 -2
- package/ts/customers/skipscreen.js +2 -2
- package/ts/customers/submituploadeddocuments.js +2 -2
- package/ts/customers/syncdecisionengine.js +2 -2
- package/ts/customers/updatecategory.js +2 -2
- package/ts/customers/updatecongratulationstep.js +2 -2
- package/ts/customers/updatecustomerbyid.js +2 -2
- package/ts/customers/updatedlnumber.js +2 -2
- package/ts/customers/updatedob.js +2 -2
- package/ts/customers/updatelocstatus.js +2 -2
- package/ts/customers/updatemobilesendotp.js +2 -2
- package/ts/customers/updatemobileverifyotp.js +2 -2
- package/ts/customers/updateokyctxn.js +2 -2
- package/ts/customers/updatesanctionamount.js +2 -2
- package/ts/customers/updateselfieetxn.js +2 -2
- package/ts/customers/updatesyncstatus.js +2 -2
- package/ts/customers/updatevehiclenumber.js +2 -2
- package/ts/customers/uploaddocuments.js +2 -2
- package/ts/customers/validatepan.js +2 -2
- package/ts/customers/verifympin.js +2 -2
- package/ts/customers/verifyotp.js +2 -2
- package/ts/customers/verifyotptoemail.js +2 -2
- package/ts/customers.js +2 -2
- package/ts/decisionengine/decisionengine.js +2 -2
- package/ts/decisionengine/decisionenginetrigger.js +2 -2
- package/ts/decisionengine/locdisbursalapproval.js +2 -2
- package/ts/decisionengine/saveconsent.js +2 -2
- package/ts/decisionengine.js +2 -2
- package/ts/deveqxcustomers.js +2 -2
- package/ts/devupi.js +2 -2
- package/ts/documents/getagreement.js +2 -2
- package/ts/documents/getfinancialdoc.js +2 -2
- package/ts/documents.js +2 -2
- package/ts/eqxcustomer.js +2 -2
- package/ts/eqxcustomers/authenticateuser.js +2 -2
- package/ts/eqxcustomers/creditguidance.js +2 -2
- package/ts/eqxcustomers/getbankaccount.js +2 -2
- package/ts/eqxcustomers/getcustomerbyid.js +2 -2
- package/ts/eqxcustomers/getcustomerbymobile.js +2 -2
- package/ts/eqxcustomers/getdashboard.js +2 -2
- package/ts/eqxcustomers/getdashboardmaincard.js +2 -2
- package/ts/eqxcustomers/getnotifications.js +2 -2
- package/ts/eqxcustomers/getstashscorecustomerprofile.js +2 -2
- package/ts/eqxcustomers/gettokens.js +2 -2
- package/ts/eqxcustomers/sendotp.js +2 -2
- package/ts/eqxcustomers/updatecustomer.js +2 -2
- package/ts/eqxcustomers/updatenotification.js +2 -2
- package/ts/eqxcustomers/updatepushid.js +2 -2
- package/ts/eqxcustomers/updatesubscriptionstatus.js +2 -2
- package/ts/eqxcustomers/verifyotp.js +2 -2
- package/ts/eqxcustomers/verifytoken.js +2 -2
- package/ts/example.js +2 -2
- package/ts/growth/checkplanstatus.js +2 -2
- package/ts/growth/getattachplandetails.js +2 -2
- package/ts/growth/getchrpaymentstatus.js +2 -2
- package/ts/growth/getchrpdfurl.js +2 -2
- package/ts/growth/getchrplans.d.ts +31 -94
- package/ts/growth/getchrplans.js +63 -568
- package/ts/growth/getchrreport.d.ts +67 -0
- package/ts/growth/getchrreport.js +504 -0
- package/ts/growth/getchrreportdata.d.ts +51 -0
- package/ts/growth/getchrreportdata.js +419 -4
- package/ts/growth/getcredithealthreport.js +2 -2
- package/ts/growth/initiatepayment.js +2 -2
- package/ts/growth/notifychrpayment.js +2 -2
- package/ts/growth/processchrpayment.js +2 -2
- package/ts/growth.js +2 -2
- package/ts/kyc/amldetails.js +2 -2
- package/ts/kyc/authbridgepancomprehend.js +2 -2
- package/ts/kyc/facematch.js +2 -2
- package/ts/kyc/fetchaadhaarbypan.js +2 -2
- package/ts/kyc/fetchemploymenthistory.js +2 -2
- package/ts/kyc/fetchuanlist.js +2 -2
- package/ts/kyc/getselfietxnid.js +2 -2
- package/ts/kyc/getselfieurl.js +2 -2
- package/ts/kyc/nsdlpanvalidate.js +2 -2
- package/ts/kyc.js +2 -2
- package/ts/lamf/getloandetails.js +2 -2
- package/ts/lamf/submitotp.js +2 -2
- package/ts/lamf/validateuser.js +2 -2
- package/ts/lamf.js +2 -2
- package/ts/loans/addreference.js +2 -2
- package/ts/loans/amortization.js +2 -2
- package/ts/loans/approveloan.js +2 -2
- package/ts/loans/banklist.js +2 -2
- package/ts/loans/calculateemi.js +2 -2
- package/ts/loans/cbloan.js +2 -2
- package/ts/loans/createlamfloan.js +2 -2
- package/ts/loans/createpenalty.js +2 -2
- package/ts/loans/creditlimit.js +2 -2
- package/ts/loans/emimoredetails.js +2 -2
- package/ts/loans/fcppayment.js +2 -2
- package/ts/loans/forecloseamount.js +2 -2
- package/ts/loans/foreclosepayment.js +2 -2
- package/ts/loans/futurepaymentmoredetails.js +2 -2
- package/ts/loans/getaddonslist.js +2 -2
- package/ts/loans/getbankdetails.js +2 -2
- package/ts/loans/getbilldetails.js +2 -2
- package/ts/loans/getcbloandetails.js +2 -2
- package/ts/loans/getchrdetails.js +2 -2
- package/ts/loans/getcustomerloanstatus.js +2 -2
- package/ts/loans/getforecloseamount.js +2 -2
- package/ts/loans/getloanbyid.js +2 -2
- package/ts/loans/getlocconfirms.js +2 -2
- package/ts/loans/getlocdetails.js +2 -2
- package/ts/loans/getlocdisburse.js +2 -2
- package/ts/loans/getloctenure.js +2 -2
- package/ts/loans/getlocwithdraw.js +2 -2
- package/ts/loans/getlocwithdrawform.js +2 -2
- package/ts/loans/getnextdueamount.js +2 -2
- package/ts/loans/getpaymentoptions.js +2 -2
- package/ts/loans/getpendingemiamount.js +2 -2
- package/ts/loans/getsetubilldetails.js +2 -2
- package/ts/loans/getsummarystaticfields.js +2 -2
- package/ts/loans/gettransactionstatus.js +2 -2
- package/ts/loans/getusedlimit.js +2 -2
- package/ts/loans/getvirtualaccountnumber.d.ts +35 -0
- package/ts/{upi/suggestvpa.js → loans/getvirtualaccountnumber.js} +42 -47
- package/ts/loans/getvirtualbankinfo.js +2 -2
- package/ts/loans/loansummary.js +2 -2
- package/ts/loans/manualpaymentallocation.js +2 -2
- package/ts/loans/paymentallocation.js +2 -2
- package/ts/loans/paymenthistory.js +2 -2
- package/ts/loans/paynow.js +2 -2
- package/ts/loans/refund.js +2 -2
- package/ts/loans/restructureloan.js +2 -2
- package/ts/loans/rollback.js +2 -2
- package/ts/loans/rollbackextrapayment.d.ts +37 -0
- package/ts/{upi/addvpa.js → loans/rollbackextrapayment.js} +53 -37
- package/ts/loans/sendemail.js +2 -2
- package/ts/loans/sendnocemail.js +2 -2
- package/ts/loans/transactionlist.js +2 -2
- package/ts/loans/updatecollectionview.js +2 -2
- package/ts/loans/updateinstallments.js +2 -2
- package/ts/loans/updateloan.js +2 -2
- package/ts/loans/updatetransactionstatus.js +2 -2
- package/ts/loans.js +2 -2
- package/ts/payments/checkpaymentstatus.js +2 -2
- package/ts/payments/fundtransfer.js +2 -2
- package/ts/payments/getpaymentoptions.js +2 -2
- package/ts/payments/initiatepayment.js +2 -2
- package/ts/payments/nachpresentation.js +2 -2
- package/ts/payments/nachregistration.js +2 -2
- package/ts/payments.js +2 -2
- package/ts/paymentsnode.js +2 -2
- package/ts/rewards/getoffers.js +2 -2
- package/ts/rewards/redeemoffer.js +2 -2
- package/ts/rewards.js +2 -2
- package/ts/stashcash/creditsc.js +2 -2
- package/ts/stashcash/debitsc.js +2 -2
- package/ts/stashcash/getscbalance.js +2 -2
- package/ts/stashcash/getschistory.js +2 -2
- package/ts/stashcash/reversesc.js +2 -2
- package/ts/stashcash.js +2 -2
- package/ts/upi/addaccount.js +2 -2
- package/ts/upi/blockvpa.js +2 -2
- package/ts/upi/checkderegisterpermission.js +2 -2
- package/ts/upi/checktransactionstatus.js +2 -2
- package/ts/upi/declinemandate.js +2 -2
- package/ts/upi/deregisterprofile.js +2 -2
- package/ts/upi/getaccountsbyprovider.js +2 -2
- package/ts/upi/getallmandates.js +2 -2
- package/ts/upi/getavailablevpa.js +2 -2
- package/ts/upi/getlistedaccountproviders.js +2 -2
- package/ts/upi/getmandatedetails.js +2 -2
- package/ts/upi/getmandatehistory.js +2 -2
- package/ts/upi/getpendingcollectrequest.js +2 -2
- package/ts/upi/getprofile.js +2 -2
- package/ts/upi/getrecentcontacts.js +2 -2
- package/ts/upi/gettransactions.js +2 -2
- package/ts/upi/getupinumbers.js +2 -2
- package/ts/upi/initiatemandateaction.js +2 -2
- package/ts/upi/initiatetransaction.js +2 -2
- package/ts/upi/listblockedvpa.js +2 -2
- package/ts/upi/unblockvpa.js +2 -2
- package/ts/upi/updatedevicebinding.js +2 -2
- package/ts/upi/updatedevicelinking.js +2 -2
- package/ts/upi/upinumberoperations.js +2 -2
- package/ts/upi/validateifsc.js +2 -2
- package/ts/upi/validatevpa.js +2 -2
- package/ts/upi.js +2 -2
- package/ts/banking/aa/checktransactionstatus.d.ts +0 -38
- package/ts/banking/aa/checktransactionstatus.js +0 -161
- package/ts/upi/addupinumber.d.ts +0 -39
- package/ts/upi/addupinumber.js +0 -177
- package/ts/upi/addvpa.d.ts +0 -36
- package/ts/upi/suggestvpa.d.ts +0 -35
package/ts/growth/getchrplans.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v1.181.
|
|
5
|
-
// protoc
|
|
4
|
+
// protoc-gen-ts_proto v1.181.1
|
|
5
|
+
// protoc v3.20.3
|
|
6
6
|
// source: growth/getchrplans.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
11
|
+
exports.chrPlansResponse = exports.PlanData = exports.chrPlansRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "growth.getchrplans";
|
|
15
|
-
function
|
|
15
|
+
function createBasechrPlansRequest() {
|
|
16
16
|
return {};
|
|
17
17
|
}
|
|
18
|
-
exports.
|
|
18
|
+
exports.chrPlansRequest = {
|
|
19
19
|
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
20
20
|
return writer;
|
|
21
21
|
},
|
|
22
22
|
decode(input, length) {
|
|
23
23
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
24
24
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
-
const message =
|
|
25
|
+
const message = createBasechrPlansRequest();
|
|
26
26
|
while (reader.pos < end) {
|
|
27
27
|
const tag = reader.uint32();
|
|
28
28
|
switch (tag >>> 3) {
|
|
@@ -42,257 +42,39 @@ exports.chrplansrequest = {
|
|
|
42
42
|
return obj;
|
|
43
43
|
},
|
|
44
44
|
create(base) {
|
|
45
|
-
return exports.
|
|
45
|
+
return exports.chrPlansRequest.fromPartial(base ?? {});
|
|
46
46
|
},
|
|
47
47
|
fromPartial(_) {
|
|
48
|
-
const message =
|
|
48
|
+
const message = createBasechrPlansRequest();
|
|
49
49
|
return message;
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
|
-
function
|
|
53
|
-
return {
|
|
52
|
+
function createBasePlanData() {
|
|
53
|
+
return { plan_id: 0, amount: 0, discount: 0, discounted_price: 0, is_active: false };
|
|
54
54
|
}
|
|
55
|
-
exports.
|
|
55
|
+
exports.PlanData = {
|
|
56
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
-
if (message.
|
|
58
|
-
writer.uint32(8).int32(message.
|
|
59
|
-
}
|
|
60
|
-
if (message.product_type !== "") {
|
|
61
|
-
writer.uint32(18).string(message.product_type);
|
|
62
|
-
}
|
|
63
|
-
if (message.duration_text !== "") {
|
|
64
|
-
writer.uint32(26).string(message.duration_text);
|
|
65
|
-
}
|
|
66
|
-
if (message.price !== "") {
|
|
67
|
-
writer.uint32(34).string(message.price);
|
|
68
|
-
}
|
|
69
|
-
if (message.discounted_price !== "") {
|
|
70
|
-
writer.uint32(42).string(message.discounted_price);
|
|
71
|
-
}
|
|
72
|
-
if (message.recommended !== 0) {
|
|
73
|
-
writer.uint32(48).int32(message.recommended);
|
|
74
|
-
}
|
|
75
|
-
return writer;
|
|
76
|
-
},
|
|
77
|
-
decode(input, length) {
|
|
78
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
79
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
80
|
-
const message = createBaseplan();
|
|
81
|
-
while (reader.pos < end) {
|
|
82
|
-
const tag = reader.uint32();
|
|
83
|
-
switch (tag >>> 3) {
|
|
84
|
-
case 1:
|
|
85
|
-
if (tag !== 8) {
|
|
86
|
-
break;
|
|
87
|
-
}
|
|
88
|
-
message.id = reader.int32();
|
|
89
|
-
continue;
|
|
90
|
-
case 2:
|
|
91
|
-
if (tag !== 18) {
|
|
92
|
-
break;
|
|
93
|
-
}
|
|
94
|
-
message.product_type = reader.string();
|
|
95
|
-
continue;
|
|
96
|
-
case 3:
|
|
97
|
-
if (tag !== 26) {
|
|
98
|
-
break;
|
|
99
|
-
}
|
|
100
|
-
message.duration_text = reader.string();
|
|
101
|
-
continue;
|
|
102
|
-
case 4:
|
|
103
|
-
if (tag !== 34) {
|
|
104
|
-
break;
|
|
105
|
-
}
|
|
106
|
-
message.price = reader.string();
|
|
107
|
-
continue;
|
|
108
|
-
case 5:
|
|
109
|
-
if (tag !== 42) {
|
|
110
|
-
break;
|
|
111
|
-
}
|
|
112
|
-
message.discounted_price = reader.string();
|
|
113
|
-
continue;
|
|
114
|
-
case 6:
|
|
115
|
-
if (tag !== 48) {
|
|
116
|
-
break;
|
|
117
|
-
}
|
|
118
|
-
message.recommended = reader.int32();
|
|
119
|
-
continue;
|
|
120
|
-
}
|
|
121
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
122
|
-
break;
|
|
123
|
-
}
|
|
124
|
-
reader.skipType(tag & 7);
|
|
125
|
-
}
|
|
126
|
-
return message;
|
|
127
|
-
},
|
|
128
|
-
fromJSON(object) {
|
|
129
|
-
return {
|
|
130
|
-
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
131
|
-
product_type: isSet(object.product_type) ? globalThis.String(object.product_type) : "",
|
|
132
|
-
duration_text: isSet(object.duration_text) ? globalThis.String(object.duration_text) : "",
|
|
133
|
-
price: isSet(object.price) ? globalThis.String(object.price) : "",
|
|
134
|
-
discounted_price: isSet(object.discounted_price) ? globalThis.String(object.discounted_price) : "",
|
|
135
|
-
recommended: isSet(object.recommended) ? globalThis.Number(object.recommended) : 0,
|
|
136
|
-
};
|
|
137
|
-
},
|
|
138
|
-
toJSON(message) {
|
|
139
|
-
const obj = {};
|
|
140
|
-
if (message.id !== 0) {
|
|
141
|
-
obj.id = Math.round(message.id);
|
|
142
|
-
}
|
|
143
|
-
if (message.product_type !== "") {
|
|
144
|
-
obj.product_type = message.product_type;
|
|
145
|
-
}
|
|
146
|
-
if (message.duration_text !== "") {
|
|
147
|
-
obj.duration_text = message.duration_text;
|
|
148
|
-
}
|
|
149
|
-
if (message.price !== "") {
|
|
150
|
-
obj.price = message.price;
|
|
151
|
-
}
|
|
152
|
-
if (message.discounted_price !== "") {
|
|
153
|
-
obj.discounted_price = message.discounted_price;
|
|
154
|
-
}
|
|
155
|
-
if (message.recommended !== 0) {
|
|
156
|
-
obj.recommended = Math.round(message.recommended);
|
|
157
|
-
}
|
|
158
|
-
return obj;
|
|
159
|
-
},
|
|
160
|
-
create(base) {
|
|
161
|
-
return exports.plan.fromPartial(base ?? {});
|
|
162
|
-
},
|
|
163
|
-
fromPartial(object) {
|
|
164
|
-
const message = createBaseplan();
|
|
165
|
-
message.id = object.id ?? 0;
|
|
166
|
-
message.product_type = object.product_type ?? "";
|
|
167
|
-
message.duration_text = object.duration_text ?? "";
|
|
168
|
-
message.price = object.price ?? "";
|
|
169
|
-
message.discounted_price = object.discounted_price ?? "";
|
|
170
|
-
message.recommended = object.recommended ?? 0;
|
|
171
|
-
return message;
|
|
172
|
-
},
|
|
173
|
-
};
|
|
174
|
-
function createBaseproduct() {
|
|
175
|
-
return { id: 0, type: "", title: "", feature_ids: [] };
|
|
176
|
-
}
|
|
177
|
-
exports.product = {
|
|
178
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
179
|
-
if (message.id !== 0) {
|
|
180
|
-
writer.uint32(8).int32(message.id);
|
|
181
|
-
}
|
|
182
|
-
if (message.type !== "") {
|
|
183
|
-
writer.uint32(18).string(message.type);
|
|
184
|
-
}
|
|
185
|
-
if (message.title !== "") {
|
|
186
|
-
writer.uint32(26).string(message.title);
|
|
187
|
-
}
|
|
188
|
-
writer.uint32(34).fork();
|
|
189
|
-
for (const v of message.feature_ids) {
|
|
190
|
-
writer.int32(v);
|
|
191
|
-
}
|
|
192
|
-
writer.ldelim();
|
|
193
|
-
return writer;
|
|
194
|
-
},
|
|
195
|
-
decode(input, length) {
|
|
196
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
197
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
198
|
-
const message = createBaseproduct();
|
|
199
|
-
while (reader.pos < end) {
|
|
200
|
-
const tag = reader.uint32();
|
|
201
|
-
switch (tag >>> 3) {
|
|
202
|
-
case 1:
|
|
203
|
-
if (tag !== 8) {
|
|
204
|
-
break;
|
|
205
|
-
}
|
|
206
|
-
message.id = reader.int32();
|
|
207
|
-
continue;
|
|
208
|
-
case 2:
|
|
209
|
-
if (tag !== 18) {
|
|
210
|
-
break;
|
|
211
|
-
}
|
|
212
|
-
message.type = reader.string();
|
|
213
|
-
continue;
|
|
214
|
-
case 3:
|
|
215
|
-
if (tag !== 26) {
|
|
216
|
-
break;
|
|
217
|
-
}
|
|
218
|
-
message.title = reader.string();
|
|
219
|
-
continue;
|
|
220
|
-
case 4:
|
|
221
|
-
if (tag === 32) {
|
|
222
|
-
message.feature_ids.push(reader.int32());
|
|
223
|
-
continue;
|
|
224
|
-
}
|
|
225
|
-
if (tag === 34) {
|
|
226
|
-
const end2 = reader.uint32() + reader.pos;
|
|
227
|
-
while (reader.pos < end2) {
|
|
228
|
-
message.feature_ids.push(reader.int32());
|
|
229
|
-
}
|
|
230
|
-
continue;
|
|
231
|
-
}
|
|
232
|
-
break;
|
|
233
|
-
}
|
|
234
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
235
|
-
break;
|
|
236
|
-
}
|
|
237
|
-
reader.skipType(tag & 7);
|
|
238
|
-
}
|
|
239
|
-
return message;
|
|
240
|
-
},
|
|
241
|
-
fromJSON(object) {
|
|
242
|
-
return {
|
|
243
|
-
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
244
|
-
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
245
|
-
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
246
|
-
feature_ids: globalThis.Array.isArray(object?.feature_ids)
|
|
247
|
-
? object.feature_ids.map((e) => globalThis.Number(e))
|
|
248
|
-
: [],
|
|
249
|
-
};
|
|
250
|
-
},
|
|
251
|
-
toJSON(message) {
|
|
252
|
-
const obj = {};
|
|
253
|
-
if (message.id !== 0) {
|
|
254
|
-
obj.id = Math.round(message.id);
|
|
255
|
-
}
|
|
256
|
-
if (message.type !== "") {
|
|
257
|
-
obj.type = message.type;
|
|
57
|
+
if (message.plan_id !== 0) {
|
|
58
|
+
writer.uint32(8).int32(message.plan_id);
|
|
258
59
|
}
|
|
259
|
-
if (message.
|
|
260
|
-
|
|
60
|
+
if (message.amount !== 0) {
|
|
61
|
+
writer.uint32(21).float(message.amount);
|
|
261
62
|
}
|
|
262
|
-
if (message.
|
|
263
|
-
|
|
63
|
+
if (message.discount !== 0) {
|
|
64
|
+
writer.uint32(29).float(message.discount);
|
|
264
65
|
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
create(base) {
|
|
268
|
-
return exports.product.fromPartial(base ?? {});
|
|
269
|
-
},
|
|
270
|
-
fromPartial(object) {
|
|
271
|
-
const message = createBaseproduct();
|
|
272
|
-
message.id = object.id ?? 0;
|
|
273
|
-
message.type = object.type ?? "";
|
|
274
|
-
message.title = object.title ?? "";
|
|
275
|
-
message.feature_ids = object.feature_ids?.map((e) => e) || [];
|
|
276
|
-
return message;
|
|
277
|
-
},
|
|
278
|
-
};
|
|
279
|
-
function createBasefeature() {
|
|
280
|
-
return { id: 0, text: "" };
|
|
281
|
-
}
|
|
282
|
-
exports.feature = {
|
|
283
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
284
|
-
if (message.id !== 0) {
|
|
285
|
-
writer.uint32(8).int32(message.id);
|
|
66
|
+
if (message.discounted_price !== 0) {
|
|
67
|
+
writer.uint32(37).float(message.discounted_price);
|
|
286
68
|
}
|
|
287
|
-
if (message.
|
|
288
|
-
writer.uint32(
|
|
69
|
+
if (message.is_active !== false) {
|
|
70
|
+
writer.uint32(40).bool(message.is_active);
|
|
289
71
|
}
|
|
290
72
|
return writer;
|
|
291
73
|
},
|
|
292
74
|
decode(input, length) {
|
|
293
75
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
294
76
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
295
|
-
const message =
|
|
77
|
+
const message = createBasePlanData();
|
|
296
78
|
while (reader.pos < end) {
|
|
297
79
|
const tag = reader.uint32();
|
|
298
80
|
switch (tag >>> 3) {
|
|
@@ -300,272 +82,31 @@ exports.feature = {
|
|
|
300
82
|
if (tag !== 8) {
|
|
301
83
|
break;
|
|
302
84
|
}
|
|
303
|
-
message.
|
|
304
|
-
continue;
|
|
305
|
-
case 2:
|
|
306
|
-
if (tag !== 18) {
|
|
307
|
-
break;
|
|
308
|
-
}
|
|
309
|
-
message.text = reader.string();
|
|
310
|
-
continue;
|
|
311
|
-
}
|
|
312
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
313
|
-
break;
|
|
314
|
-
}
|
|
315
|
-
reader.skipType(tag & 7);
|
|
316
|
-
}
|
|
317
|
-
return message;
|
|
318
|
-
},
|
|
319
|
-
fromJSON(object) {
|
|
320
|
-
return {
|
|
321
|
-
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
322
|
-
text: isSet(object.text) ? globalThis.String(object.text) : "",
|
|
323
|
-
};
|
|
324
|
-
},
|
|
325
|
-
toJSON(message) {
|
|
326
|
-
const obj = {};
|
|
327
|
-
if (message.id !== 0) {
|
|
328
|
-
obj.id = Math.round(message.id);
|
|
329
|
-
}
|
|
330
|
-
if (message.text !== "") {
|
|
331
|
-
obj.text = message.text;
|
|
332
|
-
}
|
|
333
|
-
return obj;
|
|
334
|
-
},
|
|
335
|
-
create(base) {
|
|
336
|
-
return exports.feature.fromPartial(base ?? {});
|
|
337
|
-
},
|
|
338
|
-
fromPartial(object) {
|
|
339
|
-
const message = createBasefeature();
|
|
340
|
-
message.id = object.id ?? 0;
|
|
341
|
-
message.text = object.text ?? "";
|
|
342
|
-
return message;
|
|
343
|
-
},
|
|
344
|
-
};
|
|
345
|
-
function createBaseplandetailsdata() {
|
|
346
|
-
return {
|
|
347
|
-
header: "",
|
|
348
|
-
message: "",
|
|
349
|
-
recommended_plan_status: false,
|
|
350
|
-
recommended_plan_data: undefined,
|
|
351
|
-
bureau_logo: "",
|
|
352
|
-
plans: [],
|
|
353
|
-
products: [],
|
|
354
|
-
features: [],
|
|
355
|
-
};
|
|
356
|
-
}
|
|
357
|
-
exports.plandetailsdata = {
|
|
358
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
359
|
-
if (message.header !== "") {
|
|
360
|
-
writer.uint32(10).string(message.header);
|
|
361
|
-
}
|
|
362
|
-
if (message.message !== "") {
|
|
363
|
-
writer.uint32(18).string(message.message);
|
|
364
|
-
}
|
|
365
|
-
if (message.recommended_plan_status !== false) {
|
|
366
|
-
writer.uint32(24).bool(message.recommended_plan_status);
|
|
367
|
-
}
|
|
368
|
-
if (message.recommended_plan_data !== undefined) {
|
|
369
|
-
exports.plandetailsdata_recommendedplan.encode(message.recommended_plan_data, writer.uint32(34).fork()).ldelim();
|
|
370
|
-
}
|
|
371
|
-
if (message.bureau_logo !== "") {
|
|
372
|
-
writer.uint32(42).string(message.bureau_logo);
|
|
373
|
-
}
|
|
374
|
-
for (const v of message.plans) {
|
|
375
|
-
exports.plan.encode(v, writer.uint32(50).fork()).ldelim();
|
|
376
|
-
}
|
|
377
|
-
for (const v of message.products) {
|
|
378
|
-
exports.product.encode(v, writer.uint32(58).fork()).ldelim();
|
|
379
|
-
}
|
|
380
|
-
for (const v of message.features) {
|
|
381
|
-
exports.feature.encode(v, writer.uint32(66).fork()).ldelim();
|
|
382
|
-
}
|
|
383
|
-
return writer;
|
|
384
|
-
},
|
|
385
|
-
decode(input, length) {
|
|
386
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
387
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
388
|
-
const message = createBaseplandetailsdata();
|
|
389
|
-
while (reader.pos < end) {
|
|
390
|
-
const tag = reader.uint32();
|
|
391
|
-
switch (tag >>> 3) {
|
|
392
|
-
case 1:
|
|
393
|
-
if (tag !== 10) {
|
|
394
|
-
break;
|
|
395
|
-
}
|
|
396
|
-
message.header = reader.string();
|
|
397
|
-
continue;
|
|
398
|
-
case 2:
|
|
399
|
-
if (tag !== 18) {
|
|
400
|
-
break;
|
|
401
|
-
}
|
|
402
|
-
message.message = reader.string();
|
|
403
|
-
continue;
|
|
404
|
-
case 3:
|
|
405
|
-
if (tag !== 24) {
|
|
406
|
-
break;
|
|
407
|
-
}
|
|
408
|
-
message.recommended_plan_status = reader.bool();
|
|
409
|
-
continue;
|
|
410
|
-
case 4:
|
|
411
|
-
if (tag !== 34) {
|
|
412
|
-
break;
|
|
413
|
-
}
|
|
414
|
-
message.recommended_plan_data = exports.plandetailsdata_recommendedplan.decode(reader, reader.uint32());
|
|
415
|
-
continue;
|
|
416
|
-
case 5:
|
|
417
|
-
if (tag !== 42) {
|
|
418
|
-
break;
|
|
419
|
-
}
|
|
420
|
-
message.bureau_logo = reader.string();
|
|
421
|
-
continue;
|
|
422
|
-
case 6:
|
|
423
|
-
if (tag !== 50) {
|
|
424
|
-
break;
|
|
425
|
-
}
|
|
426
|
-
message.plans.push(exports.plan.decode(reader, reader.uint32()));
|
|
427
|
-
continue;
|
|
428
|
-
case 7:
|
|
429
|
-
if (tag !== 58) {
|
|
430
|
-
break;
|
|
431
|
-
}
|
|
432
|
-
message.products.push(exports.product.decode(reader, reader.uint32()));
|
|
433
|
-
continue;
|
|
434
|
-
case 8:
|
|
435
|
-
if (tag !== 66) {
|
|
436
|
-
break;
|
|
437
|
-
}
|
|
438
|
-
message.features.push(exports.feature.decode(reader, reader.uint32()));
|
|
439
|
-
continue;
|
|
440
|
-
}
|
|
441
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
442
|
-
break;
|
|
443
|
-
}
|
|
444
|
-
reader.skipType(tag & 7);
|
|
445
|
-
}
|
|
446
|
-
return message;
|
|
447
|
-
},
|
|
448
|
-
fromJSON(object) {
|
|
449
|
-
return {
|
|
450
|
-
header: isSet(object.header) ? globalThis.String(object.header) : "",
|
|
451
|
-
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
452
|
-
recommended_plan_status: isSet(object.recommended_plan_status)
|
|
453
|
-
? globalThis.Boolean(object.recommended_plan_status)
|
|
454
|
-
: false,
|
|
455
|
-
recommended_plan_data: isSet(object.recommended_plan_data)
|
|
456
|
-
? exports.plandetailsdata_recommendedplan.fromJSON(object.recommended_plan_data)
|
|
457
|
-
: undefined,
|
|
458
|
-
bureau_logo: isSet(object.bureau_logo) ? globalThis.String(object.bureau_logo) : "",
|
|
459
|
-
plans: globalThis.Array.isArray(object?.plans) ? object.plans.map((e) => exports.plan.fromJSON(e)) : [],
|
|
460
|
-
products: globalThis.Array.isArray(object?.products) ? object.products.map((e) => exports.product.fromJSON(e)) : [],
|
|
461
|
-
features: globalThis.Array.isArray(object?.features) ? object.features.map((e) => exports.feature.fromJSON(e)) : [],
|
|
462
|
-
};
|
|
463
|
-
},
|
|
464
|
-
toJSON(message) {
|
|
465
|
-
const obj = {};
|
|
466
|
-
if (message.header !== "") {
|
|
467
|
-
obj.header = message.header;
|
|
468
|
-
}
|
|
469
|
-
if (message.message !== "") {
|
|
470
|
-
obj.message = message.message;
|
|
471
|
-
}
|
|
472
|
-
if (message.recommended_plan_status !== false) {
|
|
473
|
-
obj.recommended_plan_status = message.recommended_plan_status;
|
|
474
|
-
}
|
|
475
|
-
if (message.recommended_plan_data !== undefined) {
|
|
476
|
-
obj.recommended_plan_data = exports.plandetailsdata_recommendedplan.toJSON(message.recommended_plan_data);
|
|
477
|
-
}
|
|
478
|
-
if (message.bureau_logo !== "") {
|
|
479
|
-
obj.bureau_logo = message.bureau_logo;
|
|
480
|
-
}
|
|
481
|
-
if (message.plans?.length) {
|
|
482
|
-
obj.plans = message.plans.map((e) => exports.plan.toJSON(e));
|
|
483
|
-
}
|
|
484
|
-
if (message.products?.length) {
|
|
485
|
-
obj.products = message.products.map((e) => exports.product.toJSON(e));
|
|
486
|
-
}
|
|
487
|
-
if (message.features?.length) {
|
|
488
|
-
obj.features = message.features.map((e) => exports.feature.toJSON(e));
|
|
489
|
-
}
|
|
490
|
-
return obj;
|
|
491
|
-
},
|
|
492
|
-
create(base) {
|
|
493
|
-
return exports.plandetailsdata.fromPartial(base ?? {});
|
|
494
|
-
},
|
|
495
|
-
fromPartial(object) {
|
|
496
|
-
const message = createBaseplandetailsdata();
|
|
497
|
-
message.header = object.header ?? "";
|
|
498
|
-
message.message = object.message ?? "";
|
|
499
|
-
message.recommended_plan_status = object.recommended_plan_status ?? false;
|
|
500
|
-
message.recommended_plan_data =
|
|
501
|
-
(object.recommended_plan_data !== undefined && object.recommended_plan_data !== null)
|
|
502
|
-
? exports.plandetailsdata_recommendedplan.fromPartial(object.recommended_plan_data)
|
|
503
|
-
: undefined;
|
|
504
|
-
message.bureau_logo = object.bureau_logo ?? "";
|
|
505
|
-
message.plans = object.plans?.map((e) => exports.plan.fromPartial(e)) || [];
|
|
506
|
-
message.products = object.products?.map((e) => exports.product.fromPartial(e)) || [];
|
|
507
|
-
message.features = object.features?.map((e) => exports.feature.fromPartial(e)) || [];
|
|
508
|
-
return message;
|
|
509
|
-
},
|
|
510
|
-
};
|
|
511
|
-
function createBaseplandetailsdata_recommendedplan() {
|
|
512
|
-
return { label: "", benefits: [], cta_text: "", amount: 0, plan_id: 0 };
|
|
513
|
-
}
|
|
514
|
-
exports.plandetailsdata_recommendedplan = {
|
|
515
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
516
|
-
if (message.label !== "") {
|
|
517
|
-
writer.uint32(10).string(message.label);
|
|
518
|
-
}
|
|
519
|
-
for (const v of message.benefits) {
|
|
520
|
-
writer.uint32(18).string(v);
|
|
521
|
-
}
|
|
522
|
-
if (message.cta_text !== "") {
|
|
523
|
-
writer.uint32(26).string(message.cta_text);
|
|
524
|
-
}
|
|
525
|
-
if (message.amount !== 0) {
|
|
526
|
-
writer.uint32(33).double(message.amount);
|
|
527
|
-
}
|
|
528
|
-
if (message.plan_id !== 0) {
|
|
529
|
-
writer.uint32(40).int32(message.plan_id);
|
|
530
|
-
}
|
|
531
|
-
return writer;
|
|
532
|
-
},
|
|
533
|
-
decode(input, length) {
|
|
534
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
535
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
536
|
-
const message = createBaseplandetailsdata_recommendedplan();
|
|
537
|
-
while (reader.pos < end) {
|
|
538
|
-
const tag = reader.uint32();
|
|
539
|
-
switch (tag >>> 3) {
|
|
540
|
-
case 1:
|
|
541
|
-
if (tag !== 10) {
|
|
542
|
-
break;
|
|
543
|
-
}
|
|
544
|
-
message.label = reader.string();
|
|
85
|
+
message.plan_id = reader.int32();
|
|
545
86
|
continue;
|
|
546
87
|
case 2:
|
|
547
|
-
if (tag !==
|
|
88
|
+
if (tag !== 21) {
|
|
548
89
|
break;
|
|
549
90
|
}
|
|
550
|
-
message.
|
|
91
|
+
message.amount = reader.float();
|
|
551
92
|
continue;
|
|
552
93
|
case 3:
|
|
553
|
-
if (tag !==
|
|
94
|
+
if (tag !== 29) {
|
|
554
95
|
break;
|
|
555
96
|
}
|
|
556
|
-
message.
|
|
97
|
+
message.discount = reader.float();
|
|
557
98
|
continue;
|
|
558
99
|
case 4:
|
|
559
|
-
if (tag !==
|
|
100
|
+
if (tag !== 37) {
|
|
560
101
|
break;
|
|
561
102
|
}
|
|
562
|
-
message.
|
|
103
|
+
message.discounted_price = reader.float();
|
|
563
104
|
continue;
|
|
564
105
|
case 5:
|
|
565
106
|
if (tag !== 40) {
|
|
566
107
|
break;
|
|
567
108
|
}
|
|
568
|
-
message.
|
|
109
|
+
message.is_active = reader.bool();
|
|
569
110
|
continue;
|
|
570
111
|
}
|
|
571
112
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -577,68 +118,59 @@ exports.plandetailsdata_recommendedplan = {
|
|
|
577
118
|
},
|
|
578
119
|
fromJSON(object) {
|
|
579
120
|
return {
|
|
580
|
-
label: isSet(object.label) ? globalThis.String(object.label) : "",
|
|
581
|
-
benefits: globalThis.Array.isArray(object?.benefits) ? object.benefits.map((e) => globalThis.String(e)) : [],
|
|
582
|
-
cta_text: isSet(object.cta_text) ? globalThis.String(object.cta_text) : "",
|
|
583
|
-
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
584
121
|
plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
|
|
122
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
123
|
+
discount: isSet(object.discount) ? globalThis.Number(object.discount) : 0,
|
|
124
|
+
discounted_price: isSet(object.discounted_price) ? globalThis.Number(object.discounted_price) : 0,
|
|
125
|
+
is_active: isSet(object.is_active) ? globalThis.Boolean(object.is_active) : false,
|
|
585
126
|
};
|
|
586
127
|
},
|
|
587
128
|
toJSON(message) {
|
|
588
129
|
const obj = {};
|
|
589
|
-
if (message.
|
|
590
|
-
obj.
|
|
591
|
-
}
|
|
592
|
-
if (message.benefits?.length) {
|
|
593
|
-
obj.benefits = message.benefits;
|
|
594
|
-
}
|
|
595
|
-
if (message.cta_text !== "") {
|
|
596
|
-
obj.cta_text = message.cta_text;
|
|
130
|
+
if (message.plan_id !== 0) {
|
|
131
|
+
obj.plan_id = Math.round(message.plan_id);
|
|
597
132
|
}
|
|
598
133
|
if (message.amount !== 0) {
|
|
599
134
|
obj.amount = message.amount;
|
|
600
135
|
}
|
|
601
|
-
if (message.
|
|
602
|
-
obj.
|
|
136
|
+
if (message.discount !== 0) {
|
|
137
|
+
obj.discount = message.discount;
|
|
138
|
+
}
|
|
139
|
+
if (message.discounted_price !== 0) {
|
|
140
|
+
obj.discounted_price = message.discounted_price;
|
|
141
|
+
}
|
|
142
|
+
if (message.is_active !== false) {
|
|
143
|
+
obj.is_active = message.is_active;
|
|
603
144
|
}
|
|
604
145
|
return obj;
|
|
605
146
|
},
|
|
606
147
|
create(base) {
|
|
607
|
-
return exports.
|
|
148
|
+
return exports.PlanData.fromPartial(base ?? {});
|
|
608
149
|
},
|
|
609
150
|
fromPartial(object) {
|
|
610
|
-
const message =
|
|
611
|
-
message.label = object.label ?? "";
|
|
612
|
-
message.benefits = object.benefits?.map((e) => e) || [];
|
|
613
|
-
message.cta_text = object.cta_text ?? "";
|
|
614
|
-
message.amount = object.amount ?? 0;
|
|
151
|
+
const message = createBasePlanData();
|
|
615
152
|
message.plan_id = object.plan_id ?? 0;
|
|
153
|
+
message.amount = object.amount ?? 0;
|
|
154
|
+
message.discount = object.discount ?? 0;
|
|
155
|
+
message.discounted_price = object.discounted_price ?? 0;
|
|
156
|
+
message.is_active = object.is_active ?? false;
|
|
616
157
|
return message;
|
|
617
158
|
},
|
|
618
159
|
};
|
|
619
|
-
function
|
|
620
|
-
return {
|
|
160
|
+
function createBasechrPlansResponse() {
|
|
161
|
+
return { data: [] };
|
|
621
162
|
}
|
|
622
|
-
exports.
|
|
163
|
+
exports.chrPlansResponse = {
|
|
623
164
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
624
|
-
|
|
625
|
-
writer.uint32(10).
|
|
626
|
-
}
|
|
627
|
-
if (message.statusCode !== 0) {
|
|
628
|
-
writer.uint32(16).int32(message.statusCode);
|
|
629
|
-
}
|
|
630
|
-
if (message.data !== undefined) {
|
|
631
|
-
exports.plandetailsdata.encode(message.data, writer.uint32(26).fork()).ldelim();
|
|
632
|
-
}
|
|
633
|
-
if (message.message !== "") {
|
|
634
|
-
writer.uint32(34).string(message.message);
|
|
165
|
+
for (const v of message.data) {
|
|
166
|
+
exports.PlanData.encode(v, writer.uint32(10).fork()).ldelim();
|
|
635
167
|
}
|
|
636
168
|
return writer;
|
|
637
169
|
},
|
|
638
170
|
decode(input, length) {
|
|
639
171
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
640
172
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
641
|
-
const message =
|
|
173
|
+
const message = createBasechrPlansResponse();
|
|
642
174
|
while (reader.pos < end) {
|
|
643
175
|
const tag = reader.uint32();
|
|
644
176
|
switch (tag >>> 3) {
|
|
@@ -646,25 +178,7 @@ exports.chrplansresponse = {
|
|
|
646
178
|
if (tag !== 10) {
|
|
647
179
|
break;
|
|
648
180
|
}
|
|
649
|
-
message.
|
|
650
|
-
continue;
|
|
651
|
-
case 2:
|
|
652
|
-
if (tag !== 16) {
|
|
653
|
-
break;
|
|
654
|
-
}
|
|
655
|
-
message.statusCode = reader.int32();
|
|
656
|
-
continue;
|
|
657
|
-
case 3:
|
|
658
|
-
if (tag !== 26) {
|
|
659
|
-
break;
|
|
660
|
-
}
|
|
661
|
-
message.data = exports.plandetailsdata.decode(reader, reader.uint32());
|
|
662
|
-
continue;
|
|
663
|
-
case 4:
|
|
664
|
-
if (tag !== 34) {
|
|
665
|
-
break;
|
|
666
|
-
}
|
|
667
|
-
message.message = reader.string();
|
|
181
|
+
message.data.push(exports.PlanData.decode(reader, reader.uint32()));
|
|
668
182
|
continue;
|
|
669
183
|
}
|
|
670
184
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -675,40 +189,21 @@ exports.chrplansresponse = {
|
|
|
675
189
|
return message;
|
|
676
190
|
},
|
|
677
191
|
fromJSON(object) {
|
|
678
|
-
return {
|
|
679
|
-
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
680
|
-
statusCode: isSet(object.statusCode) ? globalThis.Number(object.statusCode) : 0,
|
|
681
|
-
data: isSet(object.data) ? exports.plandetailsdata.fromJSON(object.data) : undefined,
|
|
682
|
-
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
683
|
-
};
|
|
192
|
+
return { data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => exports.PlanData.fromJSON(e)) : [] };
|
|
684
193
|
},
|
|
685
194
|
toJSON(message) {
|
|
686
195
|
const obj = {};
|
|
687
|
-
if (message.
|
|
688
|
-
obj.
|
|
689
|
-
}
|
|
690
|
-
if (message.statusCode !== 0) {
|
|
691
|
-
obj.statusCode = Math.round(message.statusCode);
|
|
692
|
-
}
|
|
693
|
-
if (message.data !== undefined) {
|
|
694
|
-
obj.data = exports.plandetailsdata.toJSON(message.data);
|
|
695
|
-
}
|
|
696
|
-
if (message.message !== "") {
|
|
697
|
-
obj.message = message.message;
|
|
196
|
+
if (message.data?.length) {
|
|
197
|
+
obj.data = message.data.map((e) => exports.PlanData.toJSON(e));
|
|
698
198
|
}
|
|
699
199
|
return obj;
|
|
700
200
|
},
|
|
701
201
|
create(base) {
|
|
702
|
-
return exports.
|
|
202
|
+
return exports.chrPlansResponse.fromPartial(base ?? {});
|
|
703
203
|
},
|
|
704
204
|
fromPartial(object) {
|
|
705
|
-
const message =
|
|
706
|
-
message.
|
|
707
|
-
message.statusCode = object.statusCode ?? 0;
|
|
708
|
-
message.data = (object.data !== undefined && object.data !== null)
|
|
709
|
-
? exports.plandetailsdata.fromPartial(object.data)
|
|
710
|
-
: undefined;
|
|
711
|
-
message.message = object.message ?? "";
|
|
205
|
+
const message = createBasechrPlansResponse();
|
|
206
|
+
message.data = object.data?.map((e) => exports.PlanData.fromPartial(e)) || [];
|
|
712
207
|
return message;
|
|
713
208
|
},
|
|
714
209
|
};
|