@stashfin/grpc 1.0.27 → 1.0.29
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/customers/getprofile.d.ts +16 -16
- package/ts/customers/getprofile.js +11 -11
- package/ts/customers/getstep.d.ts +16 -16
- package/ts/customers/getstep.js +11 -11
- package/ts/customers/profilebasic.d.ts +16 -16
- package/ts/customers/profilebasic.js +11 -11
- package/ts/customers/profileupdatetnc.d.ts +16 -16
- package/ts/customers/profileupdatetnc.js +11 -11
- package/ts/customers/sendemailtoken.d.ts +16 -16
- package/ts/customers/sendemailtoken.js +11 -11
- package/ts/customers/sendotp.d.ts +16 -16
- package/ts/customers/sendotp.js +11 -11
- package/ts/customers/setmpin.d.ts +16 -16
- package/ts/customers/setmpin.js +11 -11
- package/ts/customers/step1.d.ts +25 -25
- package/ts/customers/step1.js +21 -21
- package/ts/customers/step10.d.ts +25 -25
- package/ts/customers/step10.js +21 -21
- package/ts/customers/step2.d.ts +25 -25
- package/ts/customers/step2.js +21 -21
- package/ts/customers/step7.d.ts +25 -25
- package/ts/customers/step7.js +21 -21
- package/ts/customers/step8.d.ts +25 -25
- package/ts/customers/step8.js +21 -21
- package/ts/customers/step9.d.ts +25 -25
- package/ts/customers/step9.js +21 -21
- package/ts/customers/stepstatic.d.ts +25 -25
- package/ts/customers/stepstatic.js +23 -21
- package/ts/customers/verifyemail.d.ts +35 -0
- package/ts/customers/verifyemail.js +117 -0
- package/ts/customers/verifympin.d.ts +16 -16
- package/ts/customers/verifympin.js +11 -11
- package/ts/customers/verifyotp.d.ts +16 -16
- package/ts/customers/verifyotp.js +11 -11
- package/ts/customers.d.ts +190 -176
- package/ts/customers.js +90 -80
- package/ts/stashcash/creditsc.d.ts +1 -1
- package/ts/stashcash/creditsc.js +5 -5
- package/ts/stashcash/debitsc.d.ts +55 -0
- package/ts/stashcash/debitsc.js +315 -0
- package/ts/stashcash/getschistory.d.ts +3 -3
- package/ts/stashcash/getschistory.js +27 -27
- package/ts/stashcash.d.ts +14 -0
- package/ts/stashcash.js +10 -0
package/ts/customers.js
CHANGED
|
@@ -22,6 +22,7 @@ const step7_1 = require("./customers/step7");
|
|
|
22
22
|
const step8_1 = require("./customers/step8");
|
|
23
23
|
const step9_1 = require("./customers/step9");
|
|
24
24
|
const stepstatic_1 = require("./customers/stepstatic");
|
|
25
|
+
const verifyemail_1 = require("./customers/verifyemail");
|
|
25
26
|
const verifympin_1 = require("./customers/verifympin");
|
|
26
27
|
const verifyotp_1 = require("./customers/verifyotp");
|
|
27
28
|
exports.protobufPackage = "service";
|
|
@@ -30,181 +31,190 @@ exports.customersService = {
|
|
|
30
31
|
path: "/service.customers/sendOtp",
|
|
31
32
|
requestStream: false,
|
|
32
33
|
responseStream: false,
|
|
33
|
-
requestSerialize: (value) => Buffer.from(sendotp_1.
|
|
34
|
-
requestDeserialize: (value) => sendotp_1.
|
|
35
|
-
responseSerialize: (value) => Buffer.from(sendotp_1.
|
|
36
|
-
responseDeserialize: (value) => sendotp_1.
|
|
34
|
+
requestSerialize: (value) => Buffer.from(sendotp_1.sendOtpRequest.encode(value).finish()),
|
|
35
|
+
requestDeserialize: (value) => sendotp_1.sendOtpRequest.decode(value),
|
|
36
|
+
responseSerialize: (value) => Buffer.from(sendotp_1.sendOtpRespone.encode(value).finish()),
|
|
37
|
+
responseDeserialize: (value) => sendotp_1.sendOtpRespone.decode(value),
|
|
37
38
|
},
|
|
38
39
|
verifyOtp: {
|
|
39
40
|
path: "/service.customers/verifyOtp",
|
|
40
41
|
requestStream: false,
|
|
41
42
|
responseStream: false,
|
|
42
|
-
requestSerialize: (value) => Buffer.from(verifyotp_1.
|
|
43
|
-
requestDeserialize: (value) => verifyotp_1.
|
|
44
|
-
responseSerialize: (value) => Buffer.from(verifyotp_1.
|
|
45
|
-
responseDeserialize: (value) => verifyotp_1.
|
|
43
|
+
requestSerialize: (value) => Buffer.from(verifyotp_1.verifyOtpReqeust.encode(value).finish()),
|
|
44
|
+
requestDeserialize: (value) => verifyotp_1.verifyOtpReqeust.decode(value),
|
|
45
|
+
responseSerialize: (value) => Buffer.from(verifyotp_1.verifyOtpResponse.encode(value).finish()),
|
|
46
|
+
responseDeserialize: (value) => verifyotp_1.verifyOtpResponse.decode(value),
|
|
46
47
|
},
|
|
47
48
|
setmpin: {
|
|
48
49
|
path: "/service.customers/setmpin",
|
|
49
50
|
requestStream: false,
|
|
50
51
|
responseStream: false,
|
|
51
|
-
requestSerialize: (value) => Buffer.from(setmpin_1.
|
|
52
|
-
requestDeserialize: (value) => setmpin_1.
|
|
53
|
-
responseSerialize: (value) => Buffer.from(setmpin_1.
|
|
54
|
-
responseDeserialize: (value) => setmpin_1.
|
|
52
|
+
requestSerialize: (value) => Buffer.from(setmpin_1.setMpinRequest.encode(value).finish()),
|
|
53
|
+
requestDeserialize: (value) => setmpin_1.setMpinRequest.decode(value),
|
|
54
|
+
responseSerialize: (value) => Buffer.from(setmpin_1.setMpinResponse.encode(value).finish()),
|
|
55
|
+
responseDeserialize: (value) => setmpin_1.setMpinResponse.decode(value),
|
|
55
56
|
},
|
|
56
57
|
verifyMpin: {
|
|
57
58
|
path: "/service.customers/verifyMpin",
|
|
58
59
|
requestStream: false,
|
|
59
60
|
responseStream: false,
|
|
60
|
-
requestSerialize: (value) => Buffer.from(verifympin_1.
|
|
61
|
-
requestDeserialize: (value) => verifympin_1.
|
|
62
|
-
responseSerialize: (value) => Buffer.from(verifympin_1.
|
|
63
|
-
responseDeserialize: (value) => verifympin_1.
|
|
61
|
+
requestSerialize: (value) => Buffer.from(verifympin_1.verifyMpinRequest.encode(value).finish()),
|
|
62
|
+
requestDeserialize: (value) => verifympin_1.verifyMpinRequest.decode(value),
|
|
63
|
+
responseSerialize: (value) => Buffer.from(verifympin_1.verifyMpinResponse.encode(value).finish()),
|
|
64
|
+
responseDeserialize: (value) => verifympin_1.verifyMpinResponse.decode(value),
|
|
64
65
|
},
|
|
65
66
|
profileUpdatetnc: {
|
|
66
67
|
path: "/service.customers/profileUpdatetnc",
|
|
67
68
|
requestStream: false,
|
|
68
69
|
responseStream: false,
|
|
69
|
-
requestSerialize: (value) => Buffer.from(profileupdatetnc_1.
|
|
70
|
-
requestDeserialize: (value) => profileupdatetnc_1.
|
|
71
|
-
responseSerialize: (value) => Buffer.from(profileupdatetnc_1.
|
|
72
|
-
responseDeserialize: (value) => profileupdatetnc_1.
|
|
70
|
+
requestSerialize: (value) => Buffer.from(profileupdatetnc_1.updateTncRequest.encode(value).finish()),
|
|
71
|
+
requestDeserialize: (value) => profileupdatetnc_1.updateTncRequest.decode(value),
|
|
72
|
+
responseSerialize: (value) => Buffer.from(profileupdatetnc_1.updateTncResponse.encode(value).finish()),
|
|
73
|
+
responseDeserialize: (value) => profileupdatetnc_1.updateTncResponse.decode(value),
|
|
73
74
|
},
|
|
74
75
|
updateProfileBasic: {
|
|
75
76
|
path: "/service.customers/updateProfileBasic",
|
|
76
77
|
requestStream: false,
|
|
77
78
|
responseStream: false,
|
|
78
|
-
requestSerialize: (value) => Buffer.from(profilebasic_1.
|
|
79
|
-
requestDeserialize: (value) => profilebasic_1.
|
|
80
|
-
responseSerialize: (value) => Buffer.from(profilebasic_1.
|
|
81
|
-
responseDeserialize: (value) => profilebasic_1.
|
|
79
|
+
requestSerialize: (value) => Buffer.from(profilebasic_1.updateProfileBasicRequest.encode(value).finish()),
|
|
80
|
+
requestDeserialize: (value) => profilebasic_1.updateProfileBasicRequest.decode(value),
|
|
81
|
+
responseSerialize: (value) => Buffer.from(profilebasic_1.updateProfileBasicResponse.encode(value).finish()),
|
|
82
|
+
responseDeserialize: (value) => profilebasic_1.updateProfileBasicResponse.decode(value),
|
|
82
83
|
},
|
|
83
84
|
getProfile: {
|
|
84
85
|
path: "/service.customers/getProfile",
|
|
85
86
|
requestStream: false,
|
|
86
87
|
responseStream: false,
|
|
87
|
-
requestSerialize: (value) => Buffer.from(getprofile_1.
|
|
88
|
-
requestDeserialize: (value) => getprofile_1.
|
|
89
|
-
responseSerialize: (value) => Buffer.from(getprofile_1.
|
|
90
|
-
responseDeserialize: (value) => getprofile_1.
|
|
88
|
+
requestSerialize: (value) => Buffer.from(getprofile_1.getCustomerProfileRequest.encode(value).finish()),
|
|
89
|
+
requestDeserialize: (value) => getprofile_1.getCustomerProfileRequest.decode(value),
|
|
90
|
+
responseSerialize: (value) => Buffer.from(getprofile_1.getCustomerProfileResponse.encode(value).finish()),
|
|
91
|
+
responseDeserialize: (value) => getprofile_1.getCustomerProfileResponse.decode(value),
|
|
91
92
|
},
|
|
92
93
|
getstep: {
|
|
93
94
|
path: "/service.customers/getstep",
|
|
94
95
|
requestStream: false,
|
|
95
96
|
responseStream: false,
|
|
96
|
-
requestSerialize: (value) => Buffer.from(getstep_1.
|
|
97
|
-
requestDeserialize: (value) => getstep_1.
|
|
98
|
-
responseSerialize: (value) => Buffer.from(getstep_1.
|
|
99
|
-
responseDeserialize: (value) => getstep_1.
|
|
97
|
+
requestSerialize: (value) => Buffer.from(getstep_1.getstepRequest.encode(value).finish()),
|
|
98
|
+
requestDeserialize: (value) => getstep_1.getstepRequest.decode(value),
|
|
99
|
+
responseSerialize: (value) => Buffer.from(getstep_1.getstepResponse.encode(value).finish()),
|
|
100
|
+
responseDeserialize: (value) => getstep_1.getstepResponse.decode(value),
|
|
100
101
|
},
|
|
101
102
|
step1: {
|
|
102
103
|
path: "/service.customers/step1",
|
|
103
104
|
requestStream: false,
|
|
104
105
|
responseStream: false,
|
|
105
|
-
requestSerialize: (value) => Buffer.from(step1_1.
|
|
106
|
-
requestDeserialize: (value) => step1_1.
|
|
107
|
-
responseSerialize: (value) => Buffer.from(step1_1.
|
|
108
|
-
responseDeserialize: (value) => step1_1.
|
|
106
|
+
requestSerialize: (value) => Buffer.from(step1_1.step1Request.encode(value).finish()),
|
|
107
|
+
requestDeserialize: (value) => step1_1.step1Request.decode(value),
|
|
108
|
+
responseSerialize: (value) => Buffer.from(step1_1.step1Response.encode(value).finish()),
|
|
109
|
+
responseDeserialize: (value) => step1_1.step1Response.decode(value),
|
|
109
110
|
},
|
|
110
111
|
step2: {
|
|
111
112
|
path: "/service.customers/step2",
|
|
112
113
|
requestStream: false,
|
|
113
114
|
responseStream: false,
|
|
114
|
-
requestSerialize: (value) => Buffer.from(step2_1.
|
|
115
|
-
requestDeserialize: (value) => step2_1.
|
|
116
|
-
responseSerialize: (value) => Buffer.from(step2_1.
|
|
117
|
-
responseDeserialize: (value) => step2_1.
|
|
115
|
+
requestSerialize: (value) => Buffer.from(step2_1.step2Request.encode(value).finish()),
|
|
116
|
+
requestDeserialize: (value) => step2_1.step2Request.decode(value),
|
|
117
|
+
responseSerialize: (value) => Buffer.from(step2_1.step2Response.encode(value).finish()),
|
|
118
|
+
responseDeserialize: (value) => step2_1.step2Response.decode(value),
|
|
118
119
|
},
|
|
119
120
|
step3: {
|
|
120
121
|
path: "/service.customers/step3",
|
|
121
122
|
requestStream: false,
|
|
122
123
|
responseStream: false,
|
|
123
|
-
requestSerialize: (value) => Buffer.from(stepstatic_1.
|
|
124
|
-
requestDeserialize: (value) => stepstatic_1.
|
|
125
|
-
responseSerialize: (value) => Buffer.from(stepstatic_1.
|
|
126
|
-
responseDeserialize: (value) => stepstatic_1.
|
|
124
|
+
requestSerialize: (value) => Buffer.from(stepstatic_1.stepstaticRequest.encode(value).finish()),
|
|
125
|
+
requestDeserialize: (value) => stepstatic_1.stepstaticRequest.decode(value),
|
|
126
|
+
responseSerialize: (value) => Buffer.from(stepstatic_1.stepstaticResponse.encode(value).finish()),
|
|
127
|
+
responseDeserialize: (value) => stepstatic_1.stepstaticResponse.decode(value),
|
|
127
128
|
},
|
|
128
129
|
step4: {
|
|
129
130
|
path: "/service.customers/step4",
|
|
130
131
|
requestStream: false,
|
|
131
132
|
responseStream: false,
|
|
132
|
-
requestSerialize: (value) => Buffer.from(stepstatic_1.
|
|
133
|
-
requestDeserialize: (value) => stepstatic_1.
|
|
134
|
-
responseSerialize: (value) => Buffer.from(stepstatic_1.
|
|
135
|
-
responseDeserialize: (value) => stepstatic_1.
|
|
133
|
+
requestSerialize: (value) => Buffer.from(stepstatic_1.stepstaticRequest.encode(value).finish()),
|
|
134
|
+
requestDeserialize: (value) => stepstatic_1.stepstaticRequest.decode(value),
|
|
135
|
+
responseSerialize: (value) => Buffer.from(stepstatic_1.stepstaticResponse.encode(value).finish()),
|
|
136
|
+
responseDeserialize: (value) => stepstatic_1.stepstaticResponse.decode(value),
|
|
136
137
|
},
|
|
137
138
|
step5: {
|
|
138
139
|
path: "/service.customers/step5",
|
|
139
140
|
requestStream: false,
|
|
140
141
|
responseStream: false,
|
|
141
|
-
requestSerialize: (value) => Buffer.from(stepstatic_1.
|
|
142
|
-
requestDeserialize: (value) => stepstatic_1.
|
|
143
|
-
responseSerialize: (value) => Buffer.from(stepstatic_1.
|
|
144
|
-
responseDeserialize: (value) => stepstatic_1.
|
|
142
|
+
requestSerialize: (value) => Buffer.from(stepstatic_1.stepstaticRequest.encode(value).finish()),
|
|
143
|
+
requestDeserialize: (value) => stepstatic_1.stepstaticRequest.decode(value),
|
|
144
|
+
responseSerialize: (value) => Buffer.from(stepstatic_1.stepstaticResponse.encode(value).finish()),
|
|
145
|
+
responseDeserialize: (value) => stepstatic_1.stepstaticResponse.decode(value),
|
|
145
146
|
},
|
|
146
147
|
step6: {
|
|
147
148
|
path: "/service.customers/step6",
|
|
148
149
|
requestStream: false,
|
|
149
150
|
responseStream: false,
|
|
150
|
-
requestSerialize: (value) => Buffer.from(stepstatic_1.
|
|
151
|
-
requestDeserialize: (value) => stepstatic_1.
|
|
152
|
-
responseSerialize: (value) => Buffer.from(stepstatic_1.
|
|
153
|
-
responseDeserialize: (value) => stepstatic_1.
|
|
151
|
+
requestSerialize: (value) => Buffer.from(stepstatic_1.stepstaticRequest.encode(value).finish()),
|
|
152
|
+
requestDeserialize: (value) => stepstatic_1.stepstaticRequest.decode(value),
|
|
153
|
+
responseSerialize: (value) => Buffer.from(stepstatic_1.stepstaticResponse.encode(value).finish()),
|
|
154
|
+
responseDeserialize: (value) => stepstatic_1.stepstaticResponse.decode(value),
|
|
154
155
|
},
|
|
155
156
|
step7: {
|
|
156
157
|
path: "/service.customers/step7",
|
|
157
158
|
requestStream: false,
|
|
158
159
|
responseStream: false,
|
|
159
|
-
requestSerialize: (value) => Buffer.from(step7_1.
|
|
160
|
-
requestDeserialize: (value) => step7_1.
|
|
161
|
-
responseSerialize: (value) => Buffer.from(step7_1.
|
|
162
|
-
responseDeserialize: (value) => step7_1.
|
|
160
|
+
requestSerialize: (value) => Buffer.from(step7_1.step7Request.encode(value).finish()),
|
|
161
|
+
requestDeserialize: (value) => step7_1.step7Request.decode(value),
|
|
162
|
+
responseSerialize: (value) => Buffer.from(step7_1.step7Response.encode(value).finish()),
|
|
163
|
+
responseDeserialize: (value) => step7_1.step7Response.decode(value),
|
|
163
164
|
},
|
|
164
165
|
step8: {
|
|
165
166
|
path: "/service.customers/step8",
|
|
166
167
|
requestStream: false,
|
|
167
168
|
responseStream: false,
|
|
168
|
-
requestSerialize: (value) => Buffer.from(step8_1.
|
|
169
|
-
requestDeserialize: (value) => step8_1.
|
|
170
|
-
responseSerialize: (value) => Buffer.from(step8_1.
|
|
171
|
-
responseDeserialize: (value) => step8_1.
|
|
169
|
+
requestSerialize: (value) => Buffer.from(step8_1.step8Request.encode(value).finish()),
|
|
170
|
+
requestDeserialize: (value) => step8_1.step8Request.decode(value),
|
|
171
|
+
responseSerialize: (value) => Buffer.from(step8_1.step8Response.encode(value).finish()),
|
|
172
|
+
responseDeserialize: (value) => step8_1.step8Response.decode(value),
|
|
172
173
|
},
|
|
173
174
|
step9: {
|
|
174
175
|
path: "/service.customers/step9",
|
|
175
176
|
requestStream: false,
|
|
176
177
|
responseStream: false,
|
|
177
|
-
requestSerialize: (value) => Buffer.from(step9_1.
|
|
178
|
-
requestDeserialize: (value) => step9_1.
|
|
179
|
-
responseSerialize: (value) => Buffer.from(step9_1.
|
|
180
|
-
responseDeserialize: (value) => step9_1.
|
|
178
|
+
requestSerialize: (value) => Buffer.from(step9_1.step9Request.encode(value).finish()),
|
|
179
|
+
requestDeserialize: (value) => step9_1.step9Request.decode(value),
|
|
180
|
+
responseSerialize: (value) => Buffer.from(step9_1.step9Response.encode(value).finish()),
|
|
181
|
+
responseDeserialize: (value) => step9_1.step9Response.decode(value),
|
|
181
182
|
},
|
|
182
183
|
step10: {
|
|
183
184
|
path: "/service.customers/step10",
|
|
184
185
|
requestStream: false,
|
|
185
186
|
responseStream: false,
|
|
186
|
-
requestSerialize: (value) => Buffer.from(step10_1.
|
|
187
|
-
requestDeserialize: (value) => step10_1.
|
|
188
|
-
responseSerialize: (value) => Buffer.from(step10_1.
|
|
189
|
-
responseDeserialize: (value) => step10_1.
|
|
187
|
+
requestSerialize: (value) => Buffer.from(step10_1.step10Request.encode(value).finish()),
|
|
188
|
+
requestDeserialize: (value) => step10_1.step10Request.decode(value),
|
|
189
|
+
responseSerialize: (value) => Buffer.from(step10_1.step10Response.encode(value).finish()),
|
|
190
|
+
responseDeserialize: (value) => step10_1.step10Response.decode(value),
|
|
190
191
|
},
|
|
191
192
|
step11: {
|
|
192
193
|
path: "/service.customers/step11",
|
|
193
194
|
requestStream: false,
|
|
194
195
|
responseStream: false,
|
|
195
|
-
requestSerialize: (value) => Buffer.from(stepstatic_1.
|
|
196
|
-
requestDeserialize: (value) => stepstatic_1.
|
|
197
|
-
responseSerialize: (value) => Buffer.from(stepstatic_1.
|
|
198
|
-
responseDeserialize: (value) => stepstatic_1.
|
|
196
|
+
requestSerialize: (value) => Buffer.from(stepstatic_1.stepstaticRequest.encode(value).finish()),
|
|
197
|
+
requestDeserialize: (value) => stepstatic_1.stepstaticRequest.decode(value),
|
|
198
|
+
responseSerialize: (value) => Buffer.from(stepstatic_1.stepstaticRequest.encode(value).finish()),
|
|
199
|
+
responseDeserialize: (value) => stepstatic_1.stepstaticRequest.decode(value),
|
|
199
200
|
},
|
|
200
201
|
sendEmailToken: {
|
|
201
202
|
path: "/service.customers/sendEmailToken",
|
|
202
203
|
requestStream: false,
|
|
203
204
|
responseStream: false,
|
|
204
|
-
requestSerialize: (value) => Buffer.from(sendemailtoken_1.
|
|
205
|
-
requestDeserialize: (value) => sendemailtoken_1.
|
|
206
|
-
responseSerialize: (value) => Buffer.from(sendemailtoken_1.
|
|
207
|
-
responseDeserialize: (value) => sendemailtoken_1.
|
|
205
|
+
requestSerialize: (value) => Buffer.from(sendemailtoken_1.sendEmailTokenRequest.encode(value).finish()),
|
|
206
|
+
requestDeserialize: (value) => sendemailtoken_1.sendEmailTokenRequest.decode(value),
|
|
207
|
+
responseSerialize: (value) => Buffer.from(sendemailtoken_1.sendEmailTokenResponse.encode(value).finish()),
|
|
208
|
+
responseDeserialize: (value) => sendemailtoken_1.sendEmailTokenResponse.decode(value),
|
|
209
|
+
},
|
|
210
|
+
verifyEmail: {
|
|
211
|
+
path: "/service.customers/verifyEmail",
|
|
212
|
+
requestStream: false,
|
|
213
|
+
responseStream: false,
|
|
214
|
+
requestSerialize: (value) => Buffer.from(verifyemail_1.verifyEmailRequest.encode(value).finish()),
|
|
215
|
+
requestDeserialize: (value) => verifyemail_1.verifyEmailRequest.decode(value),
|
|
216
|
+
responseSerialize: (value) => Buffer.from(verifyemail_1.verifyEmailResponse.encode(value).finish()),
|
|
217
|
+
responseDeserialize: (value) => verifyemail_1.verifyEmailResponse.decode(value),
|
|
208
218
|
},
|
|
209
219
|
};
|
|
210
220
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
package/ts/stashcash/creditsc.js
CHANGED
|
@@ -14,7 +14,7 @@ const long_1 = __importDefault(require("long"));
|
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
15
|
exports.protobufPackage = "stashcash.creditsc";
|
|
16
16
|
function createBaserequest() {
|
|
17
|
-
return { customer_id: 0, campaign_id: 0, amount: 0, sc_type: "", expiry:
|
|
17
|
+
return { customer_id: 0, campaign_id: 0, amount: 0, sc_type: "", expiry: undefined };
|
|
18
18
|
}
|
|
19
19
|
exports.request = {
|
|
20
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -30,7 +30,7 @@ exports.request = {
|
|
|
30
30
|
if (message.sc_type !== "") {
|
|
31
31
|
writer.uint32(34).string(message.sc_type);
|
|
32
32
|
}
|
|
33
|
-
if (message.expiry !==
|
|
33
|
+
if (message.expiry !== undefined) {
|
|
34
34
|
writer.uint32(42).string(message.expiry);
|
|
35
35
|
}
|
|
36
36
|
return writer;
|
|
@@ -86,7 +86,7 @@ exports.request = {
|
|
|
86
86
|
campaign_id: isSet(object.campaign_id) ? globalThis.Number(object.campaign_id) : 0,
|
|
87
87
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
88
88
|
sc_type: isSet(object.sc_type) ? globalThis.String(object.sc_type) : "",
|
|
89
|
-
expiry: isSet(object.expiry) ? globalThis.String(object.expiry) :
|
|
89
|
+
expiry: isSet(object.expiry) ? globalThis.String(object.expiry) : undefined,
|
|
90
90
|
};
|
|
91
91
|
},
|
|
92
92
|
toJSON(message) {
|
|
@@ -103,7 +103,7 @@ exports.request = {
|
|
|
103
103
|
if (message.sc_type !== "") {
|
|
104
104
|
obj.sc_type = message.sc_type;
|
|
105
105
|
}
|
|
106
|
-
if (message.expiry !==
|
|
106
|
+
if (message.expiry !== undefined) {
|
|
107
107
|
obj.expiry = message.expiry;
|
|
108
108
|
}
|
|
109
109
|
return obj;
|
|
@@ -117,7 +117,7 @@ exports.request = {
|
|
|
117
117
|
message.campaign_id = object.campaign_id ?? 0;
|
|
118
118
|
message.amount = object.amount ?? 0;
|
|
119
119
|
message.sc_type = object.sc_type ?? "";
|
|
120
|
-
message.expiry = object.expiry ??
|
|
120
|
+
message.expiry = object.expiry ?? undefined;
|
|
121
121
|
return message;
|
|
122
122
|
},
|
|
123
123
|
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "stashcash.debitsc";
|
|
3
|
+
export interface request {
|
|
4
|
+
customer_id: number;
|
|
5
|
+
flag: number;
|
|
6
|
+
campaign_id?: number | undefined;
|
|
7
|
+
amount?: number | undefined;
|
|
8
|
+
sc_type?: string | undefined;
|
|
9
|
+
}
|
|
10
|
+
export interface response {
|
|
11
|
+
status: string;
|
|
12
|
+
data?: response_Data | undefined;
|
|
13
|
+
}
|
|
14
|
+
export interface response_Data {
|
|
15
|
+
locked: number;
|
|
16
|
+
unlocked: number;
|
|
17
|
+
balance: number;
|
|
18
|
+
rupee_balance: number;
|
|
19
|
+
txn_id: number;
|
|
20
|
+
}
|
|
21
|
+
export declare const request: {
|
|
22
|
+
encode(message: request, writer?: _m0.Writer): _m0.Writer;
|
|
23
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): request;
|
|
24
|
+
fromJSON(object: any): request;
|
|
25
|
+
toJSON(message: request): unknown;
|
|
26
|
+
create<I extends Exact<DeepPartial<request>, I>>(base?: I): request;
|
|
27
|
+
fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request;
|
|
28
|
+
};
|
|
29
|
+
export declare const response: {
|
|
30
|
+
encode(message: response, writer?: _m0.Writer): _m0.Writer;
|
|
31
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): response;
|
|
32
|
+
fromJSON(object: any): response;
|
|
33
|
+
toJSON(message: response): unknown;
|
|
34
|
+
create<I extends Exact<DeepPartial<response>, I>>(base?: I): response;
|
|
35
|
+
fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response;
|
|
36
|
+
};
|
|
37
|
+
export declare const response_Data: {
|
|
38
|
+
encode(message: response_Data, writer?: _m0.Writer): _m0.Writer;
|
|
39
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): response_Data;
|
|
40
|
+
fromJSON(object: any): response_Data;
|
|
41
|
+
toJSON(message: response_Data): unknown;
|
|
42
|
+
create<I extends Exact<DeepPartial<response_Data>, I>>(base?: I): response_Data;
|
|
43
|
+
fromPartial<I extends Exact<DeepPartial<response_Data>, I>>(object: I): response_Data;
|
|
44
|
+
};
|
|
45
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
46
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
47
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
48
|
+
} : Partial<T>;
|
|
49
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
50
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
51
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
52
|
+
} & {
|
|
53
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
54
|
+
};
|
|
55
|
+
export {};
|