@alexochihua/protos 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -0
- package/buf.gen.yaml +14 -0
- package/buf.yaml +9 -0
- package/dist/generated/kapital/accounts/v1/accounts.d.ts +145 -0
- package/dist/generated/kapital/accounts/v1/accounts.js +787 -0
- package/dist/generated/kapital/accounts/v1/accounts.js.map +1 -0
- package/dist/generated/kapital/accounts/v1/accounts_types.d.ts +39 -0
- package/dist/generated/kapital/accounts/v1/accounts_types.js +314 -0
- package/dist/generated/kapital/accounts/v1/accounts_types.js.map +1 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_service.d.ts +145 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_service.js +771 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_service.js.map +1 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_types.d.ts +37 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_types.js +290 -0
- package/dist/generated/kapital/accumulates/v1/accumulates_types.js.map +1 -0
- package/dist/generated/kapital/cards/v1/cards.d.ts +507 -0
- package/dist/generated/kapital/cards/v1/cards.js +2996 -0
- package/dist/generated/kapital/cards/v1/cards.js.map +1 -0
- package/dist/generated/kapital/cards/v1/cards_types.d.ts +125 -0
- package/dist/generated/kapital/cards/v1/cards_types.js +1268 -0
- package/dist/generated/kapital/cards/v1/cards_types.js.map +1 -0
- package/dist/generated/kapital/common/v1/error.d.ts +24 -0
- package/dist/generated/kapital/common/v1/error.js +119 -0
- package/dist/generated/kapital/common/v1/error.js.map +1 -0
- package/dist/generated/kapital/common/v1/meta.d.ts +20 -0
- package/dist/generated/kapital/common/v1/meta.js +86 -0
- package/dist/generated/kapital/common/v1/meta.js.map +1 -0
- package/dist/generated/kapital/common/v1/pagination.d.ts +26 -0
- package/dist/generated/kapital/common/v1/pagination.js +149 -0
- package/dist/generated/kapital/common/v1/pagination.js.map +1 -0
- package/dist/generated/kapital/contracts/v1/contracts.d.ts +829 -0
- package/dist/generated/kapital/contracts/v1/contracts.js +5840 -0
- package/dist/generated/kapital/contracts/v1/contracts.js.map +1 -0
- package/dist/generated/kapital/contracts/v1/contracts_types.d.ts +293 -0
- package/dist/generated/kapital/contracts/v1/contracts_types.js +3101 -0
- package/dist/generated/kapital/contracts/v1/contracts_types.js.map +1 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.d.ts +57 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js +193 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts.js.map +1 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.d.ts +37 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js +283 -0
- package/dist/generated/kapital/credit_accounts/v1/credit_accounts_types.js.map +1 -0
- package/dist/generated/kapital/customers/v1/customers.d.ts +493 -0
- package/dist/generated/kapital/customers/v1/customers.js +2542 -0
- package/dist/generated/kapital/customers/v1/customers.js.map +1 -0
- package/dist/generated/kapital/customers/v1/customers_types.d.ts +95 -0
- package/dist/generated/kapital/customers/v1/customers_types.js +951 -0
- package/dist/generated/kapital/customers/v1/customers_types.js.map +1 -0
- package/dist/generated/kapital/payments/v1/payments.d.ts +145 -0
- package/dist/generated/kapital/payments/v1/payments.js +915 -0
- package/dist/generated/kapital/payments/v1/payments.js.map +1 -0
- package/dist/generated/kapital/payments/v1/payments_types.d.ts +26 -0
- package/dist/generated/kapital/payments/v1/payments_types.js +163 -0
- package/dist/generated/kapital/payments/v1/payments_types.js.map +1 -0
- package/dist/generated/kapital/products/v1/products.d.ts +234 -0
- package/dist/generated/kapital/products/v1/products.js +1369 -0
- package/dist/generated/kapital/products/v1/products.js.map +1 -0
- package/dist/generated/kapital/products/v1/products_types.d.ts +159 -0
- package/dist/generated/kapital/products/v1/products_types.js +1696 -0
- package/dist/generated/kapital/products/v1/products_types.js.map +1 -0
- package/dist/generated/kapital/transactions/v1/transactions.d.ts +122 -0
- package/dist/generated/kapital/transactions/v1/transactions.js +632 -0
- package/dist/generated/kapital/transactions/v1/transactions.js.map +1 -0
- package/dist/generated/kapital/transactions/v1/transactions_types.d.ts +99 -0
- package/dist/generated/kapital/transactions/v1/transactions_types.js +1023 -0
- package/dist/generated/kapital/transactions/v1/transactions_types.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +59 -0
- package/dist/index.js.map +1 -0
- package/dist/runtime/grpc.d.ts +2 -0
- package/dist/runtime/grpc.js +9 -0
- package/dist/runtime/grpc.js.map +1 -0
- package/package.json +195 -0
- package/proto/kapital/accounts/v1/accounts.proto +80 -0
- package/proto/kapital/accounts/v1/accounts_types.proto +31 -0
- package/proto/kapital/accumulates/v1/accumulates_service.proto +81 -0
- package/proto/kapital/accumulates/v1/accumulates_types.proto +30 -0
- package/proto/kapital/cards/v1/cards.proto +298 -0
- package/proto/kapital/cards/v1/cards_types.proto +117 -0
- package/proto/kapital/common/v1/error.proto +18 -0
- package/proto/kapital/common/v1/meta.proto +13 -0
- package/proto/kapital/common/v1/pagination.proto +18 -0
- package/proto/kapital/contracts/v1/contracts.proto +629 -0
- package/proto/kapital/contracts/v1/contracts_types.proto +316 -0
- package/proto/kapital/credit_accounts/v1/credit_accounts.proto +28 -0
- package/proto/kapital/credit_accounts/v1/credit_accounts_types.proto +29 -0
- package/proto/kapital/customers/v1/customers.proto +235 -0
- package/proto/kapital/customers/v1/customers_types.proto +87 -0
- package/proto/kapital/payments/v1/payments.proto +94 -0
- package/proto/kapital/payments/v1/payments_types.proto +18 -0
- package/proto/kapital/products/v1/products.proto +139 -0
- package/proto/kapital/products/v1/products_types.proto +156 -0
- package/proto/kapital/transactions/v1/transactions.proto +70 -0
- package/proto/kapital/transactions/v1/transactions_types.proto +91 -0
|
@@ -0,0 +1,1696 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.11.6
|
|
5
|
+
// protoc unknown
|
|
6
|
+
// source: kapital/products/v1/products_types.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Product = exports.ProductStatement = exports.ProductCommission = exports.ProductConfigurations = exports.PurchaseMethods = exports.DispositionMethods = exports.OriginationChannels = exports.CardUsageCoverage = exports.AccessMethods = exports.CardSettings = exports.CreditConfig = exports.ProductRule = exports.CurrencyAllocation = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
exports.protobufPackage = "kapital.products.v1";
|
|
12
|
+
function createBaseCurrencyAllocation() {
|
|
13
|
+
return { currency: "", currency_code: "", currency_label: "", order: 0, percentage: 0 };
|
|
14
|
+
}
|
|
15
|
+
exports.CurrencyAllocation = {
|
|
16
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
17
|
+
if (message.currency !== "") {
|
|
18
|
+
writer.uint32(10).string(message.currency);
|
|
19
|
+
}
|
|
20
|
+
if (message.currency_code !== "") {
|
|
21
|
+
writer.uint32(18).string(message.currency_code);
|
|
22
|
+
}
|
|
23
|
+
if (message.currency_label !== "") {
|
|
24
|
+
writer.uint32(26).string(message.currency_label);
|
|
25
|
+
}
|
|
26
|
+
if (message.order !== 0) {
|
|
27
|
+
writer.uint32(32).int32(message.order);
|
|
28
|
+
}
|
|
29
|
+
if (message.percentage !== 0) {
|
|
30
|
+
writer.uint32(41).double(message.percentage);
|
|
31
|
+
}
|
|
32
|
+
return writer;
|
|
33
|
+
},
|
|
34
|
+
decode(input, length) {
|
|
35
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
36
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
37
|
+
const message = createBaseCurrencyAllocation();
|
|
38
|
+
while (reader.pos < end) {
|
|
39
|
+
const tag = reader.uint32();
|
|
40
|
+
switch (tag >>> 3) {
|
|
41
|
+
case 1: {
|
|
42
|
+
if (tag !== 10) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.currency = reader.string();
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
case 2: {
|
|
49
|
+
if (tag !== 18) {
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
message.currency_code = reader.string();
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
55
|
+
case 3: {
|
|
56
|
+
if (tag !== 26) {
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
message.currency_label = reader.string();
|
|
60
|
+
continue;
|
|
61
|
+
}
|
|
62
|
+
case 4: {
|
|
63
|
+
if (tag !== 32) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.order = reader.int32();
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
case 5: {
|
|
70
|
+
if (tag !== 41) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.percentage = reader.double();
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
reader.skip(tag & 7);
|
|
81
|
+
}
|
|
82
|
+
return message;
|
|
83
|
+
},
|
|
84
|
+
create(base) {
|
|
85
|
+
return exports.CurrencyAllocation.fromPartial(base ?? {});
|
|
86
|
+
},
|
|
87
|
+
fromPartial(object) {
|
|
88
|
+
const message = createBaseCurrencyAllocation();
|
|
89
|
+
message.currency = object.currency ?? "";
|
|
90
|
+
message.currency_code = object.currency_code ?? "";
|
|
91
|
+
message.currency_label = object.currency_label ?? "";
|
|
92
|
+
message.order = object.order ?? 0;
|
|
93
|
+
message.percentage = object.percentage ?? 0;
|
|
94
|
+
return message;
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
function createBaseProductRule() {
|
|
98
|
+
return {
|
|
99
|
+
parameter: "",
|
|
100
|
+
operator: "",
|
|
101
|
+
value: "",
|
|
102
|
+
value_amount: 0,
|
|
103
|
+
value_percentage: 0,
|
|
104
|
+
value_number: 0,
|
|
105
|
+
value_days: [],
|
|
106
|
+
value_start: "",
|
|
107
|
+
value_end: "",
|
|
108
|
+
value_country_groups: [],
|
|
109
|
+
value_mcc_groups: [],
|
|
110
|
+
value_merchant_groups: [],
|
|
111
|
+
channels: [],
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
exports.ProductRule = {
|
|
115
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
116
|
+
if (message.parameter !== "") {
|
|
117
|
+
writer.uint32(10).string(message.parameter);
|
|
118
|
+
}
|
|
119
|
+
if (message.operator !== "") {
|
|
120
|
+
writer.uint32(18).string(message.operator);
|
|
121
|
+
}
|
|
122
|
+
if (message.value !== "") {
|
|
123
|
+
writer.uint32(26).string(message.value);
|
|
124
|
+
}
|
|
125
|
+
if (message.value_amount !== 0) {
|
|
126
|
+
writer.uint32(33).double(message.value_amount);
|
|
127
|
+
}
|
|
128
|
+
if (message.value_percentage !== 0) {
|
|
129
|
+
writer.uint32(41).double(message.value_percentage);
|
|
130
|
+
}
|
|
131
|
+
if (message.value_number !== 0) {
|
|
132
|
+
writer.uint32(49).double(message.value_number);
|
|
133
|
+
}
|
|
134
|
+
for (const v of message.value_days) {
|
|
135
|
+
writer.uint32(58).string(v);
|
|
136
|
+
}
|
|
137
|
+
if (message.value_start !== "") {
|
|
138
|
+
writer.uint32(66).string(message.value_start);
|
|
139
|
+
}
|
|
140
|
+
if (message.value_end !== "") {
|
|
141
|
+
writer.uint32(74).string(message.value_end);
|
|
142
|
+
}
|
|
143
|
+
for (const v of message.value_country_groups) {
|
|
144
|
+
writer.uint32(82).string(v);
|
|
145
|
+
}
|
|
146
|
+
for (const v of message.value_mcc_groups) {
|
|
147
|
+
writer.uint32(90).string(v);
|
|
148
|
+
}
|
|
149
|
+
for (const v of message.value_merchant_groups) {
|
|
150
|
+
writer.uint32(98).string(v);
|
|
151
|
+
}
|
|
152
|
+
for (const v of message.channels) {
|
|
153
|
+
writer.uint32(106).string(v);
|
|
154
|
+
}
|
|
155
|
+
return writer;
|
|
156
|
+
},
|
|
157
|
+
decode(input, length) {
|
|
158
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
159
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
160
|
+
const message = createBaseProductRule();
|
|
161
|
+
while (reader.pos < end) {
|
|
162
|
+
const tag = reader.uint32();
|
|
163
|
+
switch (tag >>> 3) {
|
|
164
|
+
case 1: {
|
|
165
|
+
if (tag !== 10) {
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
message.parameter = reader.string();
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
171
|
+
case 2: {
|
|
172
|
+
if (tag !== 18) {
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
message.operator = reader.string();
|
|
176
|
+
continue;
|
|
177
|
+
}
|
|
178
|
+
case 3: {
|
|
179
|
+
if (tag !== 26) {
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
message.value = reader.string();
|
|
183
|
+
continue;
|
|
184
|
+
}
|
|
185
|
+
case 4: {
|
|
186
|
+
if (tag !== 33) {
|
|
187
|
+
break;
|
|
188
|
+
}
|
|
189
|
+
message.value_amount = reader.double();
|
|
190
|
+
continue;
|
|
191
|
+
}
|
|
192
|
+
case 5: {
|
|
193
|
+
if (tag !== 41) {
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
message.value_percentage = reader.double();
|
|
197
|
+
continue;
|
|
198
|
+
}
|
|
199
|
+
case 6: {
|
|
200
|
+
if (tag !== 49) {
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
message.value_number = reader.double();
|
|
204
|
+
continue;
|
|
205
|
+
}
|
|
206
|
+
case 7: {
|
|
207
|
+
if (tag !== 58) {
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
message.value_days.push(reader.string());
|
|
211
|
+
continue;
|
|
212
|
+
}
|
|
213
|
+
case 8: {
|
|
214
|
+
if (tag !== 66) {
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
message.value_start = reader.string();
|
|
218
|
+
continue;
|
|
219
|
+
}
|
|
220
|
+
case 9: {
|
|
221
|
+
if (tag !== 74) {
|
|
222
|
+
break;
|
|
223
|
+
}
|
|
224
|
+
message.value_end = reader.string();
|
|
225
|
+
continue;
|
|
226
|
+
}
|
|
227
|
+
case 10: {
|
|
228
|
+
if (tag !== 82) {
|
|
229
|
+
break;
|
|
230
|
+
}
|
|
231
|
+
message.value_country_groups.push(reader.string());
|
|
232
|
+
continue;
|
|
233
|
+
}
|
|
234
|
+
case 11: {
|
|
235
|
+
if (tag !== 90) {
|
|
236
|
+
break;
|
|
237
|
+
}
|
|
238
|
+
message.value_mcc_groups.push(reader.string());
|
|
239
|
+
continue;
|
|
240
|
+
}
|
|
241
|
+
case 12: {
|
|
242
|
+
if (tag !== 98) {
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
message.value_merchant_groups.push(reader.string());
|
|
246
|
+
continue;
|
|
247
|
+
}
|
|
248
|
+
case 13: {
|
|
249
|
+
if (tag !== 106) {
|
|
250
|
+
break;
|
|
251
|
+
}
|
|
252
|
+
message.channels.push(reader.string());
|
|
253
|
+
continue;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
257
|
+
break;
|
|
258
|
+
}
|
|
259
|
+
reader.skip(tag & 7);
|
|
260
|
+
}
|
|
261
|
+
return message;
|
|
262
|
+
},
|
|
263
|
+
create(base) {
|
|
264
|
+
return exports.ProductRule.fromPartial(base ?? {});
|
|
265
|
+
},
|
|
266
|
+
fromPartial(object) {
|
|
267
|
+
const message = createBaseProductRule();
|
|
268
|
+
message.parameter = object.parameter ?? "";
|
|
269
|
+
message.operator = object.operator ?? "";
|
|
270
|
+
message.value = object.value ?? "";
|
|
271
|
+
message.value_amount = object.value_amount ?? 0;
|
|
272
|
+
message.value_percentage = object.value_percentage ?? 0;
|
|
273
|
+
message.value_number = object.value_number ?? 0;
|
|
274
|
+
message.value_days = object.value_days?.map((e) => e) || [];
|
|
275
|
+
message.value_start = object.value_start ?? "";
|
|
276
|
+
message.value_end = object.value_end ?? "";
|
|
277
|
+
message.value_country_groups = object.value_country_groups?.map((e) => e) || [];
|
|
278
|
+
message.value_mcc_groups = object.value_mcc_groups?.map((e) => e) || [];
|
|
279
|
+
message.value_merchant_groups = object.value_merchant_groups?.map((e) => e) || [];
|
|
280
|
+
message.channels = object.channels?.map((e) => e) || [];
|
|
281
|
+
return message;
|
|
282
|
+
},
|
|
283
|
+
};
|
|
284
|
+
function createBaseCreditConfig() {
|
|
285
|
+
return {
|
|
286
|
+
credit_type: "",
|
|
287
|
+
rate_type: "",
|
|
288
|
+
min_limit: 0,
|
|
289
|
+
max_limit: 0,
|
|
290
|
+
overdraft_enabled: false,
|
|
291
|
+
overdraft_type: "",
|
|
292
|
+
overdraft_amount: 0,
|
|
293
|
+
overdraft_percentage: 0,
|
|
294
|
+
ordinary_min_interest_rate: 0,
|
|
295
|
+
ordinary_max_interest_rate: 0,
|
|
296
|
+
late_interest_rate: 0,
|
|
297
|
+
disposition_interest_rate: 0,
|
|
298
|
+
delinquency_days_for_penalty: 0,
|
|
299
|
+
delinquency_days_for_suspension: 0,
|
|
300
|
+
cutoff_days: [],
|
|
301
|
+
days_between_cutoff_and_payment: 0,
|
|
302
|
+
refinancing_option: "",
|
|
303
|
+
decimals: 0,
|
|
304
|
+
rounding_type: "",
|
|
305
|
+
min_payment_method: "",
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
exports.CreditConfig = {
|
|
309
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
310
|
+
if (message.credit_type !== "") {
|
|
311
|
+
writer.uint32(10).string(message.credit_type);
|
|
312
|
+
}
|
|
313
|
+
if (message.rate_type !== "") {
|
|
314
|
+
writer.uint32(18).string(message.rate_type);
|
|
315
|
+
}
|
|
316
|
+
if (message.min_limit !== 0) {
|
|
317
|
+
writer.uint32(25).double(message.min_limit);
|
|
318
|
+
}
|
|
319
|
+
if (message.max_limit !== 0) {
|
|
320
|
+
writer.uint32(33).double(message.max_limit);
|
|
321
|
+
}
|
|
322
|
+
if (message.overdraft_enabled !== false) {
|
|
323
|
+
writer.uint32(40).bool(message.overdraft_enabled);
|
|
324
|
+
}
|
|
325
|
+
if (message.overdraft_type !== "") {
|
|
326
|
+
writer.uint32(50).string(message.overdraft_type);
|
|
327
|
+
}
|
|
328
|
+
if (message.overdraft_amount !== 0) {
|
|
329
|
+
writer.uint32(57).double(message.overdraft_amount);
|
|
330
|
+
}
|
|
331
|
+
if (message.overdraft_percentage !== 0) {
|
|
332
|
+
writer.uint32(65).double(message.overdraft_percentage);
|
|
333
|
+
}
|
|
334
|
+
if (message.ordinary_min_interest_rate !== 0) {
|
|
335
|
+
writer.uint32(73).double(message.ordinary_min_interest_rate);
|
|
336
|
+
}
|
|
337
|
+
if (message.ordinary_max_interest_rate !== 0) {
|
|
338
|
+
writer.uint32(81).double(message.ordinary_max_interest_rate);
|
|
339
|
+
}
|
|
340
|
+
if (message.late_interest_rate !== 0) {
|
|
341
|
+
writer.uint32(89).double(message.late_interest_rate);
|
|
342
|
+
}
|
|
343
|
+
if (message.disposition_interest_rate !== 0) {
|
|
344
|
+
writer.uint32(97).double(message.disposition_interest_rate);
|
|
345
|
+
}
|
|
346
|
+
if (message.delinquency_days_for_penalty !== 0) {
|
|
347
|
+
writer.uint32(104).int32(message.delinquency_days_for_penalty);
|
|
348
|
+
}
|
|
349
|
+
if (message.delinquency_days_for_suspension !== 0) {
|
|
350
|
+
writer.uint32(112).int32(message.delinquency_days_for_suspension);
|
|
351
|
+
}
|
|
352
|
+
writer.uint32(122).fork();
|
|
353
|
+
for (const v of message.cutoff_days) {
|
|
354
|
+
writer.int32(v);
|
|
355
|
+
}
|
|
356
|
+
writer.join();
|
|
357
|
+
if (message.days_between_cutoff_and_payment !== 0) {
|
|
358
|
+
writer.uint32(128).int32(message.days_between_cutoff_and_payment);
|
|
359
|
+
}
|
|
360
|
+
if (message.refinancing_option !== "") {
|
|
361
|
+
writer.uint32(138).string(message.refinancing_option);
|
|
362
|
+
}
|
|
363
|
+
if (message.decimals !== 0) {
|
|
364
|
+
writer.uint32(144).int32(message.decimals);
|
|
365
|
+
}
|
|
366
|
+
if (message.rounding_type !== "") {
|
|
367
|
+
writer.uint32(154).string(message.rounding_type);
|
|
368
|
+
}
|
|
369
|
+
if (message.min_payment_method !== "") {
|
|
370
|
+
writer.uint32(162).string(message.min_payment_method);
|
|
371
|
+
}
|
|
372
|
+
return writer;
|
|
373
|
+
},
|
|
374
|
+
decode(input, length) {
|
|
375
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
376
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
377
|
+
const message = createBaseCreditConfig();
|
|
378
|
+
while (reader.pos < end) {
|
|
379
|
+
const tag = reader.uint32();
|
|
380
|
+
switch (tag >>> 3) {
|
|
381
|
+
case 1: {
|
|
382
|
+
if (tag !== 10) {
|
|
383
|
+
break;
|
|
384
|
+
}
|
|
385
|
+
message.credit_type = reader.string();
|
|
386
|
+
continue;
|
|
387
|
+
}
|
|
388
|
+
case 2: {
|
|
389
|
+
if (tag !== 18) {
|
|
390
|
+
break;
|
|
391
|
+
}
|
|
392
|
+
message.rate_type = reader.string();
|
|
393
|
+
continue;
|
|
394
|
+
}
|
|
395
|
+
case 3: {
|
|
396
|
+
if (tag !== 25) {
|
|
397
|
+
break;
|
|
398
|
+
}
|
|
399
|
+
message.min_limit = reader.double();
|
|
400
|
+
continue;
|
|
401
|
+
}
|
|
402
|
+
case 4: {
|
|
403
|
+
if (tag !== 33) {
|
|
404
|
+
break;
|
|
405
|
+
}
|
|
406
|
+
message.max_limit = reader.double();
|
|
407
|
+
continue;
|
|
408
|
+
}
|
|
409
|
+
case 5: {
|
|
410
|
+
if (tag !== 40) {
|
|
411
|
+
break;
|
|
412
|
+
}
|
|
413
|
+
message.overdraft_enabled = reader.bool();
|
|
414
|
+
continue;
|
|
415
|
+
}
|
|
416
|
+
case 6: {
|
|
417
|
+
if (tag !== 50) {
|
|
418
|
+
break;
|
|
419
|
+
}
|
|
420
|
+
message.overdraft_type = reader.string();
|
|
421
|
+
continue;
|
|
422
|
+
}
|
|
423
|
+
case 7: {
|
|
424
|
+
if (tag !== 57) {
|
|
425
|
+
break;
|
|
426
|
+
}
|
|
427
|
+
message.overdraft_amount = reader.double();
|
|
428
|
+
continue;
|
|
429
|
+
}
|
|
430
|
+
case 8: {
|
|
431
|
+
if (tag !== 65) {
|
|
432
|
+
break;
|
|
433
|
+
}
|
|
434
|
+
message.overdraft_percentage = reader.double();
|
|
435
|
+
continue;
|
|
436
|
+
}
|
|
437
|
+
case 9: {
|
|
438
|
+
if (tag !== 73) {
|
|
439
|
+
break;
|
|
440
|
+
}
|
|
441
|
+
message.ordinary_min_interest_rate = reader.double();
|
|
442
|
+
continue;
|
|
443
|
+
}
|
|
444
|
+
case 10: {
|
|
445
|
+
if (tag !== 81) {
|
|
446
|
+
break;
|
|
447
|
+
}
|
|
448
|
+
message.ordinary_max_interest_rate = reader.double();
|
|
449
|
+
continue;
|
|
450
|
+
}
|
|
451
|
+
case 11: {
|
|
452
|
+
if (tag !== 89) {
|
|
453
|
+
break;
|
|
454
|
+
}
|
|
455
|
+
message.late_interest_rate = reader.double();
|
|
456
|
+
continue;
|
|
457
|
+
}
|
|
458
|
+
case 12: {
|
|
459
|
+
if (tag !== 97) {
|
|
460
|
+
break;
|
|
461
|
+
}
|
|
462
|
+
message.disposition_interest_rate = reader.double();
|
|
463
|
+
continue;
|
|
464
|
+
}
|
|
465
|
+
case 13: {
|
|
466
|
+
if (tag !== 104) {
|
|
467
|
+
break;
|
|
468
|
+
}
|
|
469
|
+
message.delinquency_days_for_penalty = reader.int32();
|
|
470
|
+
continue;
|
|
471
|
+
}
|
|
472
|
+
case 14: {
|
|
473
|
+
if (tag !== 112) {
|
|
474
|
+
break;
|
|
475
|
+
}
|
|
476
|
+
message.delinquency_days_for_suspension = reader.int32();
|
|
477
|
+
continue;
|
|
478
|
+
}
|
|
479
|
+
case 15: {
|
|
480
|
+
if (tag === 120) {
|
|
481
|
+
message.cutoff_days.push(reader.int32());
|
|
482
|
+
continue;
|
|
483
|
+
}
|
|
484
|
+
if (tag === 122) {
|
|
485
|
+
const end2 = reader.uint32() + reader.pos;
|
|
486
|
+
while (reader.pos < end2) {
|
|
487
|
+
message.cutoff_days.push(reader.int32());
|
|
488
|
+
}
|
|
489
|
+
continue;
|
|
490
|
+
}
|
|
491
|
+
break;
|
|
492
|
+
}
|
|
493
|
+
case 16: {
|
|
494
|
+
if (tag !== 128) {
|
|
495
|
+
break;
|
|
496
|
+
}
|
|
497
|
+
message.days_between_cutoff_and_payment = reader.int32();
|
|
498
|
+
continue;
|
|
499
|
+
}
|
|
500
|
+
case 17: {
|
|
501
|
+
if (tag !== 138) {
|
|
502
|
+
break;
|
|
503
|
+
}
|
|
504
|
+
message.refinancing_option = reader.string();
|
|
505
|
+
continue;
|
|
506
|
+
}
|
|
507
|
+
case 18: {
|
|
508
|
+
if (tag !== 144) {
|
|
509
|
+
break;
|
|
510
|
+
}
|
|
511
|
+
message.decimals = reader.int32();
|
|
512
|
+
continue;
|
|
513
|
+
}
|
|
514
|
+
case 19: {
|
|
515
|
+
if (tag !== 154) {
|
|
516
|
+
break;
|
|
517
|
+
}
|
|
518
|
+
message.rounding_type = reader.string();
|
|
519
|
+
continue;
|
|
520
|
+
}
|
|
521
|
+
case 20: {
|
|
522
|
+
if (tag !== 162) {
|
|
523
|
+
break;
|
|
524
|
+
}
|
|
525
|
+
message.min_payment_method = reader.string();
|
|
526
|
+
continue;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
530
|
+
break;
|
|
531
|
+
}
|
|
532
|
+
reader.skip(tag & 7);
|
|
533
|
+
}
|
|
534
|
+
return message;
|
|
535
|
+
},
|
|
536
|
+
create(base) {
|
|
537
|
+
return exports.CreditConfig.fromPartial(base ?? {});
|
|
538
|
+
},
|
|
539
|
+
fromPartial(object) {
|
|
540
|
+
const message = createBaseCreditConfig();
|
|
541
|
+
message.credit_type = object.credit_type ?? "";
|
|
542
|
+
message.rate_type = object.rate_type ?? "";
|
|
543
|
+
message.min_limit = object.min_limit ?? 0;
|
|
544
|
+
message.max_limit = object.max_limit ?? 0;
|
|
545
|
+
message.overdraft_enabled = object.overdraft_enabled ?? false;
|
|
546
|
+
message.overdraft_type = object.overdraft_type ?? "";
|
|
547
|
+
message.overdraft_amount = object.overdraft_amount ?? 0;
|
|
548
|
+
message.overdraft_percentage = object.overdraft_percentage ?? 0;
|
|
549
|
+
message.ordinary_min_interest_rate = object.ordinary_min_interest_rate ?? 0;
|
|
550
|
+
message.ordinary_max_interest_rate = object.ordinary_max_interest_rate ?? 0;
|
|
551
|
+
message.late_interest_rate = object.late_interest_rate ?? 0;
|
|
552
|
+
message.disposition_interest_rate = object.disposition_interest_rate ?? 0;
|
|
553
|
+
message.delinquency_days_for_penalty = object.delinquency_days_for_penalty ?? 0;
|
|
554
|
+
message.delinquency_days_for_suspension = object.delinquency_days_for_suspension ?? 0;
|
|
555
|
+
message.cutoff_days = object.cutoff_days?.map((e) => e) || [];
|
|
556
|
+
message.days_between_cutoff_and_payment = object.days_between_cutoff_and_payment ?? 0;
|
|
557
|
+
message.refinancing_option = object.refinancing_option ?? "";
|
|
558
|
+
message.decimals = object.decimals ?? 0;
|
|
559
|
+
message.rounding_type = object.rounding_type ?? "";
|
|
560
|
+
message.min_payment_method = object.min_payment_method ?? "";
|
|
561
|
+
return message;
|
|
562
|
+
},
|
|
563
|
+
};
|
|
564
|
+
function createBaseCardSettings() {
|
|
565
|
+
return { card_personalization: [], max_cards_per_client: 0 };
|
|
566
|
+
}
|
|
567
|
+
exports.CardSettings = {
|
|
568
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
569
|
+
for (const v of message.card_personalization) {
|
|
570
|
+
writer.uint32(10).string(v);
|
|
571
|
+
}
|
|
572
|
+
if (message.max_cards_per_client !== 0) {
|
|
573
|
+
writer.uint32(16).int32(message.max_cards_per_client);
|
|
574
|
+
}
|
|
575
|
+
return writer;
|
|
576
|
+
},
|
|
577
|
+
decode(input, length) {
|
|
578
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
579
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
580
|
+
const message = createBaseCardSettings();
|
|
581
|
+
while (reader.pos < end) {
|
|
582
|
+
const tag = reader.uint32();
|
|
583
|
+
switch (tag >>> 3) {
|
|
584
|
+
case 1: {
|
|
585
|
+
if (tag !== 10) {
|
|
586
|
+
break;
|
|
587
|
+
}
|
|
588
|
+
message.card_personalization.push(reader.string());
|
|
589
|
+
continue;
|
|
590
|
+
}
|
|
591
|
+
case 2: {
|
|
592
|
+
if (tag !== 16) {
|
|
593
|
+
break;
|
|
594
|
+
}
|
|
595
|
+
message.max_cards_per_client = reader.int32();
|
|
596
|
+
continue;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
600
|
+
break;
|
|
601
|
+
}
|
|
602
|
+
reader.skip(tag & 7);
|
|
603
|
+
}
|
|
604
|
+
return message;
|
|
605
|
+
},
|
|
606
|
+
create(base) {
|
|
607
|
+
return exports.CardSettings.fromPartial(base ?? {});
|
|
608
|
+
},
|
|
609
|
+
fromPartial(object) {
|
|
610
|
+
const message = createBaseCardSettings();
|
|
611
|
+
message.card_personalization = object.card_personalization?.map((e) => e) || [];
|
|
612
|
+
message.max_cards_per_client = object.max_cards_per_client ?? 0;
|
|
613
|
+
return message;
|
|
614
|
+
},
|
|
615
|
+
};
|
|
616
|
+
function createBaseAccessMethods() {
|
|
617
|
+
return { physical_card: false, physical_card_validity: "", digital_card: false, digital_card_validity: "" };
|
|
618
|
+
}
|
|
619
|
+
exports.AccessMethods = {
|
|
620
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
621
|
+
if (message.physical_card !== false) {
|
|
622
|
+
writer.uint32(8).bool(message.physical_card);
|
|
623
|
+
}
|
|
624
|
+
if (message.physical_card_validity !== "") {
|
|
625
|
+
writer.uint32(18).string(message.physical_card_validity);
|
|
626
|
+
}
|
|
627
|
+
if (message.digital_card !== false) {
|
|
628
|
+
writer.uint32(24).bool(message.digital_card);
|
|
629
|
+
}
|
|
630
|
+
if (message.digital_card_validity !== "") {
|
|
631
|
+
writer.uint32(34).string(message.digital_card_validity);
|
|
632
|
+
}
|
|
633
|
+
return writer;
|
|
634
|
+
},
|
|
635
|
+
decode(input, length) {
|
|
636
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
637
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
638
|
+
const message = createBaseAccessMethods();
|
|
639
|
+
while (reader.pos < end) {
|
|
640
|
+
const tag = reader.uint32();
|
|
641
|
+
switch (tag >>> 3) {
|
|
642
|
+
case 1: {
|
|
643
|
+
if (tag !== 8) {
|
|
644
|
+
break;
|
|
645
|
+
}
|
|
646
|
+
message.physical_card = reader.bool();
|
|
647
|
+
continue;
|
|
648
|
+
}
|
|
649
|
+
case 2: {
|
|
650
|
+
if (tag !== 18) {
|
|
651
|
+
break;
|
|
652
|
+
}
|
|
653
|
+
message.physical_card_validity = reader.string();
|
|
654
|
+
continue;
|
|
655
|
+
}
|
|
656
|
+
case 3: {
|
|
657
|
+
if (tag !== 24) {
|
|
658
|
+
break;
|
|
659
|
+
}
|
|
660
|
+
message.digital_card = reader.bool();
|
|
661
|
+
continue;
|
|
662
|
+
}
|
|
663
|
+
case 4: {
|
|
664
|
+
if (tag !== 34) {
|
|
665
|
+
break;
|
|
666
|
+
}
|
|
667
|
+
message.digital_card_validity = reader.string();
|
|
668
|
+
continue;
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
672
|
+
break;
|
|
673
|
+
}
|
|
674
|
+
reader.skip(tag & 7);
|
|
675
|
+
}
|
|
676
|
+
return message;
|
|
677
|
+
},
|
|
678
|
+
create(base) {
|
|
679
|
+
return exports.AccessMethods.fromPartial(base ?? {});
|
|
680
|
+
},
|
|
681
|
+
fromPartial(object) {
|
|
682
|
+
const message = createBaseAccessMethods();
|
|
683
|
+
message.physical_card = object.physical_card ?? false;
|
|
684
|
+
message.physical_card_validity = object.physical_card_validity ?? "";
|
|
685
|
+
message.digital_card = object.digital_card ?? false;
|
|
686
|
+
message.digital_card_validity = object.digital_card_validity ?? "";
|
|
687
|
+
return message;
|
|
688
|
+
},
|
|
689
|
+
};
|
|
690
|
+
function createBaseCardUsageCoverage() {
|
|
691
|
+
return { national_level: false, international_level: false };
|
|
692
|
+
}
|
|
693
|
+
exports.CardUsageCoverage = {
|
|
694
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
695
|
+
if (message.national_level !== false) {
|
|
696
|
+
writer.uint32(8).bool(message.national_level);
|
|
697
|
+
}
|
|
698
|
+
if (message.international_level !== false) {
|
|
699
|
+
writer.uint32(16).bool(message.international_level);
|
|
700
|
+
}
|
|
701
|
+
return writer;
|
|
702
|
+
},
|
|
703
|
+
decode(input, length) {
|
|
704
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
705
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
706
|
+
const message = createBaseCardUsageCoverage();
|
|
707
|
+
while (reader.pos < end) {
|
|
708
|
+
const tag = reader.uint32();
|
|
709
|
+
switch (tag >>> 3) {
|
|
710
|
+
case 1: {
|
|
711
|
+
if (tag !== 8) {
|
|
712
|
+
break;
|
|
713
|
+
}
|
|
714
|
+
message.national_level = reader.bool();
|
|
715
|
+
continue;
|
|
716
|
+
}
|
|
717
|
+
case 2: {
|
|
718
|
+
if (tag !== 16) {
|
|
719
|
+
break;
|
|
720
|
+
}
|
|
721
|
+
message.international_level = reader.bool();
|
|
722
|
+
continue;
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
726
|
+
break;
|
|
727
|
+
}
|
|
728
|
+
reader.skip(tag & 7);
|
|
729
|
+
}
|
|
730
|
+
return message;
|
|
731
|
+
},
|
|
732
|
+
create(base) {
|
|
733
|
+
return exports.CardUsageCoverage.fromPartial(base ?? {});
|
|
734
|
+
},
|
|
735
|
+
fromPartial(object) {
|
|
736
|
+
const message = createBaseCardUsageCoverage();
|
|
737
|
+
message.national_level = object.national_level ?? false;
|
|
738
|
+
message.international_level = object.international_level ?? false;
|
|
739
|
+
return message;
|
|
740
|
+
},
|
|
741
|
+
};
|
|
742
|
+
function createBaseOriginationChannels() {
|
|
743
|
+
return { branches: false, app: false, electronic_banking: false };
|
|
744
|
+
}
|
|
745
|
+
exports.OriginationChannels = {
|
|
746
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
747
|
+
if (message.branches !== false) {
|
|
748
|
+
writer.uint32(8).bool(message.branches);
|
|
749
|
+
}
|
|
750
|
+
if (message.app !== false) {
|
|
751
|
+
writer.uint32(16).bool(message.app);
|
|
752
|
+
}
|
|
753
|
+
if (message.electronic_banking !== false) {
|
|
754
|
+
writer.uint32(24).bool(message.electronic_banking);
|
|
755
|
+
}
|
|
756
|
+
return writer;
|
|
757
|
+
},
|
|
758
|
+
decode(input, length) {
|
|
759
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
760
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
761
|
+
const message = createBaseOriginationChannels();
|
|
762
|
+
while (reader.pos < end) {
|
|
763
|
+
const tag = reader.uint32();
|
|
764
|
+
switch (tag >>> 3) {
|
|
765
|
+
case 1: {
|
|
766
|
+
if (tag !== 8) {
|
|
767
|
+
break;
|
|
768
|
+
}
|
|
769
|
+
message.branches = reader.bool();
|
|
770
|
+
continue;
|
|
771
|
+
}
|
|
772
|
+
case 2: {
|
|
773
|
+
if (tag !== 16) {
|
|
774
|
+
break;
|
|
775
|
+
}
|
|
776
|
+
message.app = reader.bool();
|
|
777
|
+
continue;
|
|
778
|
+
}
|
|
779
|
+
case 3: {
|
|
780
|
+
if (tag !== 24) {
|
|
781
|
+
break;
|
|
782
|
+
}
|
|
783
|
+
message.electronic_banking = reader.bool();
|
|
784
|
+
continue;
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
788
|
+
break;
|
|
789
|
+
}
|
|
790
|
+
reader.skip(tag & 7);
|
|
791
|
+
}
|
|
792
|
+
return message;
|
|
793
|
+
},
|
|
794
|
+
create(base) {
|
|
795
|
+
return exports.OriginationChannels.fromPartial(base ?? {});
|
|
796
|
+
},
|
|
797
|
+
fromPartial(object) {
|
|
798
|
+
const message = createBaseOriginationChannels();
|
|
799
|
+
message.branches = object.branches ?? false;
|
|
800
|
+
message.app = object.app ?? false;
|
|
801
|
+
message.electronic_banking = object.electronic_banking ?? false;
|
|
802
|
+
return message;
|
|
803
|
+
},
|
|
804
|
+
};
|
|
805
|
+
function createBaseDispositionMethods() {
|
|
806
|
+
return { branches: false, national_atm_network: false, international_atm_network: false };
|
|
807
|
+
}
|
|
808
|
+
exports.DispositionMethods = {
|
|
809
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
810
|
+
if (message.branches !== false) {
|
|
811
|
+
writer.uint32(8).bool(message.branches);
|
|
812
|
+
}
|
|
813
|
+
if (message.national_atm_network !== false) {
|
|
814
|
+
writer.uint32(16).bool(message.national_atm_network);
|
|
815
|
+
}
|
|
816
|
+
if (message.international_atm_network !== false) {
|
|
817
|
+
writer.uint32(24).bool(message.international_atm_network);
|
|
818
|
+
}
|
|
819
|
+
return writer;
|
|
820
|
+
},
|
|
821
|
+
decode(input, length) {
|
|
822
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
823
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
824
|
+
const message = createBaseDispositionMethods();
|
|
825
|
+
while (reader.pos < end) {
|
|
826
|
+
const tag = reader.uint32();
|
|
827
|
+
switch (tag >>> 3) {
|
|
828
|
+
case 1: {
|
|
829
|
+
if (tag !== 8) {
|
|
830
|
+
break;
|
|
831
|
+
}
|
|
832
|
+
message.branches = reader.bool();
|
|
833
|
+
continue;
|
|
834
|
+
}
|
|
835
|
+
case 2: {
|
|
836
|
+
if (tag !== 16) {
|
|
837
|
+
break;
|
|
838
|
+
}
|
|
839
|
+
message.national_atm_network = reader.bool();
|
|
840
|
+
continue;
|
|
841
|
+
}
|
|
842
|
+
case 3: {
|
|
843
|
+
if (tag !== 24) {
|
|
844
|
+
break;
|
|
845
|
+
}
|
|
846
|
+
message.international_atm_network = reader.bool();
|
|
847
|
+
continue;
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
851
|
+
break;
|
|
852
|
+
}
|
|
853
|
+
reader.skip(tag & 7);
|
|
854
|
+
}
|
|
855
|
+
return message;
|
|
856
|
+
},
|
|
857
|
+
create(base) {
|
|
858
|
+
return exports.DispositionMethods.fromPartial(base ?? {});
|
|
859
|
+
},
|
|
860
|
+
fromPartial(object) {
|
|
861
|
+
const message = createBaseDispositionMethods();
|
|
862
|
+
message.branches = object.branches ?? false;
|
|
863
|
+
message.national_atm_network = object.national_atm_network ?? false;
|
|
864
|
+
message.international_atm_network = object.international_atm_network ?? false;
|
|
865
|
+
return message;
|
|
866
|
+
},
|
|
867
|
+
};
|
|
868
|
+
function createBasePurchaseMethods() {
|
|
869
|
+
return { card_present: false, card_not_present: false, ecommerce: false, wallet: false };
|
|
870
|
+
}
|
|
871
|
+
exports.PurchaseMethods = {
|
|
872
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
873
|
+
if (message.card_present !== false) {
|
|
874
|
+
writer.uint32(8).bool(message.card_present);
|
|
875
|
+
}
|
|
876
|
+
if (message.card_not_present !== false) {
|
|
877
|
+
writer.uint32(16).bool(message.card_not_present);
|
|
878
|
+
}
|
|
879
|
+
if (message.ecommerce !== false) {
|
|
880
|
+
writer.uint32(24).bool(message.ecommerce);
|
|
881
|
+
}
|
|
882
|
+
if (message.wallet !== false) {
|
|
883
|
+
writer.uint32(32).bool(message.wallet);
|
|
884
|
+
}
|
|
885
|
+
return writer;
|
|
886
|
+
},
|
|
887
|
+
decode(input, length) {
|
|
888
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
889
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
890
|
+
const message = createBasePurchaseMethods();
|
|
891
|
+
while (reader.pos < end) {
|
|
892
|
+
const tag = reader.uint32();
|
|
893
|
+
switch (tag >>> 3) {
|
|
894
|
+
case 1: {
|
|
895
|
+
if (tag !== 8) {
|
|
896
|
+
break;
|
|
897
|
+
}
|
|
898
|
+
message.card_present = reader.bool();
|
|
899
|
+
continue;
|
|
900
|
+
}
|
|
901
|
+
case 2: {
|
|
902
|
+
if (tag !== 16) {
|
|
903
|
+
break;
|
|
904
|
+
}
|
|
905
|
+
message.card_not_present = reader.bool();
|
|
906
|
+
continue;
|
|
907
|
+
}
|
|
908
|
+
case 3: {
|
|
909
|
+
if (tag !== 24) {
|
|
910
|
+
break;
|
|
911
|
+
}
|
|
912
|
+
message.ecommerce = reader.bool();
|
|
913
|
+
continue;
|
|
914
|
+
}
|
|
915
|
+
case 4: {
|
|
916
|
+
if (tag !== 32) {
|
|
917
|
+
break;
|
|
918
|
+
}
|
|
919
|
+
message.wallet = reader.bool();
|
|
920
|
+
continue;
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
924
|
+
break;
|
|
925
|
+
}
|
|
926
|
+
reader.skip(tag & 7);
|
|
927
|
+
}
|
|
928
|
+
return message;
|
|
929
|
+
},
|
|
930
|
+
create(base) {
|
|
931
|
+
return exports.PurchaseMethods.fromPartial(base ?? {});
|
|
932
|
+
},
|
|
933
|
+
fromPartial(object) {
|
|
934
|
+
const message = createBasePurchaseMethods();
|
|
935
|
+
message.card_present = object.card_present ?? false;
|
|
936
|
+
message.card_not_present = object.card_not_present ?? false;
|
|
937
|
+
message.ecommerce = object.ecommerce ?? false;
|
|
938
|
+
message.wallet = object.wallet ?? false;
|
|
939
|
+
return message;
|
|
940
|
+
},
|
|
941
|
+
};
|
|
942
|
+
function createBaseProductConfigurations() {
|
|
943
|
+
return {
|
|
944
|
+
credit: undefined,
|
|
945
|
+
card_settings: undefined,
|
|
946
|
+
access_methods: undefined,
|
|
947
|
+
card_usage_coverage: undefined,
|
|
948
|
+
origination_channels: undefined,
|
|
949
|
+
disposition_methods: undefined,
|
|
950
|
+
purchase_methods: undefined,
|
|
951
|
+
};
|
|
952
|
+
}
|
|
953
|
+
exports.ProductConfigurations = {
|
|
954
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
955
|
+
if (message.credit !== undefined) {
|
|
956
|
+
exports.CreditConfig.encode(message.credit, writer.uint32(10).fork()).join();
|
|
957
|
+
}
|
|
958
|
+
if (message.card_settings !== undefined) {
|
|
959
|
+
exports.CardSettings.encode(message.card_settings, writer.uint32(18).fork()).join();
|
|
960
|
+
}
|
|
961
|
+
if (message.access_methods !== undefined) {
|
|
962
|
+
exports.AccessMethods.encode(message.access_methods, writer.uint32(26).fork()).join();
|
|
963
|
+
}
|
|
964
|
+
if (message.card_usage_coverage !== undefined) {
|
|
965
|
+
exports.CardUsageCoverage.encode(message.card_usage_coverage, writer.uint32(34).fork()).join();
|
|
966
|
+
}
|
|
967
|
+
if (message.origination_channels !== undefined) {
|
|
968
|
+
exports.OriginationChannels.encode(message.origination_channels, writer.uint32(42).fork()).join();
|
|
969
|
+
}
|
|
970
|
+
if (message.disposition_methods !== undefined) {
|
|
971
|
+
exports.DispositionMethods.encode(message.disposition_methods, writer.uint32(50).fork()).join();
|
|
972
|
+
}
|
|
973
|
+
if (message.purchase_methods !== undefined) {
|
|
974
|
+
exports.PurchaseMethods.encode(message.purchase_methods, writer.uint32(58).fork()).join();
|
|
975
|
+
}
|
|
976
|
+
return writer;
|
|
977
|
+
},
|
|
978
|
+
decode(input, length) {
|
|
979
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
980
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
981
|
+
const message = createBaseProductConfigurations();
|
|
982
|
+
while (reader.pos < end) {
|
|
983
|
+
const tag = reader.uint32();
|
|
984
|
+
switch (tag >>> 3) {
|
|
985
|
+
case 1: {
|
|
986
|
+
if (tag !== 10) {
|
|
987
|
+
break;
|
|
988
|
+
}
|
|
989
|
+
message.credit = exports.CreditConfig.decode(reader, reader.uint32());
|
|
990
|
+
continue;
|
|
991
|
+
}
|
|
992
|
+
case 2: {
|
|
993
|
+
if (tag !== 18) {
|
|
994
|
+
break;
|
|
995
|
+
}
|
|
996
|
+
message.card_settings = exports.CardSettings.decode(reader, reader.uint32());
|
|
997
|
+
continue;
|
|
998
|
+
}
|
|
999
|
+
case 3: {
|
|
1000
|
+
if (tag !== 26) {
|
|
1001
|
+
break;
|
|
1002
|
+
}
|
|
1003
|
+
message.access_methods = exports.AccessMethods.decode(reader, reader.uint32());
|
|
1004
|
+
continue;
|
|
1005
|
+
}
|
|
1006
|
+
case 4: {
|
|
1007
|
+
if (tag !== 34) {
|
|
1008
|
+
break;
|
|
1009
|
+
}
|
|
1010
|
+
message.card_usage_coverage = exports.CardUsageCoverage.decode(reader, reader.uint32());
|
|
1011
|
+
continue;
|
|
1012
|
+
}
|
|
1013
|
+
case 5: {
|
|
1014
|
+
if (tag !== 42) {
|
|
1015
|
+
break;
|
|
1016
|
+
}
|
|
1017
|
+
message.origination_channels = exports.OriginationChannels.decode(reader, reader.uint32());
|
|
1018
|
+
continue;
|
|
1019
|
+
}
|
|
1020
|
+
case 6: {
|
|
1021
|
+
if (tag !== 50) {
|
|
1022
|
+
break;
|
|
1023
|
+
}
|
|
1024
|
+
message.disposition_methods = exports.DispositionMethods.decode(reader, reader.uint32());
|
|
1025
|
+
continue;
|
|
1026
|
+
}
|
|
1027
|
+
case 7: {
|
|
1028
|
+
if (tag !== 58) {
|
|
1029
|
+
break;
|
|
1030
|
+
}
|
|
1031
|
+
message.purchase_methods = exports.PurchaseMethods.decode(reader, reader.uint32());
|
|
1032
|
+
continue;
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1036
|
+
break;
|
|
1037
|
+
}
|
|
1038
|
+
reader.skip(tag & 7);
|
|
1039
|
+
}
|
|
1040
|
+
return message;
|
|
1041
|
+
},
|
|
1042
|
+
create(base) {
|
|
1043
|
+
return exports.ProductConfigurations.fromPartial(base ?? {});
|
|
1044
|
+
},
|
|
1045
|
+
fromPartial(object) {
|
|
1046
|
+
const message = createBaseProductConfigurations();
|
|
1047
|
+
message.credit = (object.credit !== undefined && object.credit !== null)
|
|
1048
|
+
? exports.CreditConfig.fromPartial(object.credit)
|
|
1049
|
+
: undefined;
|
|
1050
|
+
message.card_settings = (object.card_settings !== undefined && object.card_settings !== null)
|
|
1051
|
+
? exports.CardSettings.fromPartial(object.card_settings)
|
|
1052
|
+
: undefined;
|
|
1053
|
+
message.access_methods = (object.access_methods !== undefined && object.access_methods !== null)
|
|
1054
|
+
? exports.AccessMethods.fromPartial(object.access_methods)
|
|
1055
|
+
: undefined;
|
|
1056
|
+
message.card_usage_coverage = (object.card_usage_coverage !== undefined && object.card_usage_coverage !== null)
|
|
1057
|
+
? exports.CardUsageCoverage.fromPartial(object.card_usage_coverage)
|
|
1058
|
+
: undefined;
|
|
1059
|
+
message.origination_channels = (object.origination_channels !== undefined && object.origination_channels !== null)
|
|
1060
|
+
? exports.OriginationChannels.fromPartial(object.origination_channels)
|
|
1061
|
+
: undefined;
|
|
1062
|
+
message.disposition_methods = (object.disposition_methods !== undefined && object.disposition_methods !== null)
|
|
1063
|
+
? exports.DispositionMethods.fromPartial(object.disposition_methods)
|
|
1064
|
+
: undefined;
|
|
1065
|
+
message.purchase_methods = (object.purchase_methods !== undefined && object.purchase_methods !== null)
|
|
1066
|
+
? exports.PurchaseMethods.fromPartial(object.purchase_methods)
|
|
1067
|
+
: undefined;
|
|
1068
|
+
return message;
|
|
1069
|
+
},
|
|
1070
|
+
};
|
|
1071
|
+
function createBaseProductCommission() {
|
|
1072
|
+
return {
|
|
1073
|
+
application_conditions: [],
|
|
1074
|
+
commission_type: "",
|
|
1075
|
+
currency: "",
|
|
1076
|
+
exemptions: [],
|
|
1077
|
+
periodicity: "",
|
|
1078
|
+
rate_type: "",
|
|
1079
|
+
rate_value_amount: 0,
|
|
1080
|
+
rate_value_percentage: 0,
|
|
1081
|
+
vat_applicable: false,
|
|
1082
|
+
vat_percentage: 0,
|
|
1083
|
+
};
|
|
1084
|
+
}
|
|
1085
|
+
exports.ProductCommission = {
|
|
1086
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1087
|
+
for (const v of message.application_conditions) {
|
|
1088
|
+
writer.uint32(10).string(v);
|
|
1089
|
+
}
|
|
1090
|
+
if (message.commission_type !== "") {
|
|
1091
|
+
writer.uint32(18).string(message.commission_type);
|
|
1092
|
+
}
|
|
1093
|
+
if (message.currency !== "") {
|
|
1094
|
+
writer.uint32(26).string(message.currency);
|
|
1095
|
+
}
|
|
1096
|
+
for (const v of message.exemptions) {
|
|
1097
|
+
writer.uint32(34).string(v);
|
|
1098
|
+
}
|
|
1099
|
+
if (message.periodicity !== "") {
|
|
1100
|
+
writer.uint32(42).string(message.periodicity);
|
|
1101
|
+
}
|
|
1102
|
+
if (message.rate_type !== "") {
|
|
1103
|
+
writer.uint32(50).string(message.rate_type);
|
|
1104
|
+
}
|
|
1105
|
+
if (message.rate_value_amount !== 0) {
|
|
1106
|
+
writer.uint32(57).double(message.rate_value_amount);
|
|
1107
|
+
}
|
|
1108
|
+
if (message.rate_value_percentage !== 0) {
|
|
1109
|
+
writer.uint32(65).double(message.rate_value_percentage);
|
|
1110
|
+
}
|
|
1111
|
+
if (message.vat_applicable !== false) {
|
|
1112
|
+
writer.uint32(72).bool(message.vat_applicable);
|
|
1113
|
+
}
|
|
1114
|
+
if (message.vat_percentage !== 0) {
|
|
1115
|
+
writer.uint32(81).double(message.vat_percentage);
|
|
1116
|
+
}
|
|
1117
|
+
return writer;
|
|
1118
|
+
},
|
|
1119
|
+
decode(input, length) {
|
|
1120
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1121
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1122
|
+
const message = createBaseProductCommission();
|
|
1123
|
+
while (reader.pos < end) {
|
|
1124
|
+
const tag = reader.uint32();
|
|
1125
|
+
switch (tag >>> 3) {
|
|
1126
|
+
case 1: {
|
|
1127
|
+
if (tag !== 10) {
|
|
1128
|
+
break;
|
|
1129
|
+
}
|
|
1130
|
+
message.application_conditions.push(reader.string());
|
|
1131
|
+
continue;
|
|
1132
|
+
}
|
|
1133
|
+
case 2: {
|
|
1134
|
+
if (tag !== 18) {
|
|
1135
|
+
break;
|
|
1136
|
+
}
|
|
1137
|
+
message.commission_type = reader.string();
|
|
1138
|
+
continue;
|
|
1139
|
+
}
|
|
1140
|
+
case 3: {
|
|
1141
|
+
if (tag !== 26) {
|
|
1142
|
+
break;
|
|
1143
|
+
}
|
|
1144
|
+
message.currency = reader.string();
|
|
1145
|
+
continue;
|
|
1146
|
+
}
|
|
1147
|
+
case 4: {
|
|
1148
|
+
if (tag !== 34) {
|
|
1149
|
+
break;
|
|
1150
|
+
}
|
|
1151
|
+
message.exemptions.push(reader.string());
|
|
1152
|
+
continue;
|
|
1153
|
+
}
|
|
1154
|
+
case 5: {
|
|
1155
|
+
if (tag !== 42) {
|
|
1156
|
+
break;
|
|
1157
|
+
}
|
|
1158
|
+
message.periodicity = reader.string();
|
|
1159
|
+
continue;
|
|
1160
|
+
}
|
|
1161
|
+
case 6: {
|
|
1162
|
+
if (tag !== 50) {
|
|
1163
|
+
break;
|
|
1164
|
+
}
|
|
1165
|
+
message.rate_type = reader.string();
|
|
1166
|
+
continue;
|
|
1167
|
+
}
|
|
1168
|
+
case 7: {
|
|
1169
|
+
if (tag !== 57) {
|
|
1170
|
+
break;
|
|
1171
|
+
}
|
|
1172
|
+
message.rate_value_amount = reader.double();
|
|
1173
|
+
continue;
|
|
1174
|
+
}
|
|
1175
|
+
case 8: {
|
|
1176
|
+
if (tag !== 65) {
|
|
1177
|
+
break;
|
|
1178
|
+
}
|
|
1179
|
+
message.rate_value_percentage = reader.double();
|
|
1180
|
+
continue;
|
|
1181
|
+
}
|
|
1182
|
+
case 9: {
|
|
1183
|
+
if (tag !== 72) {
|
|
1184
|
+
break;
|
|
1185
|
+
}
|
|
1186
|
+
message.vat_applicable = reader.bool();
|
|
1187
|
+
continue;
|
|
1188
|
+
}
|
|
1189
|
+
case 10: {
|
|
1190
|
+
if (tag !== 81) {
|
|
1191
|
+
break;
|
|
1192
|
+
}
|
|
1193
|
+
message.vat_percentage = reader.double();
|
|
1194
|
+
continue;
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1198
|
+
break;
|
|
1199
|
+
}
|
|
1200
|
+
reader.skip(tag & 7);
|
|
1201
|
+
}
|
|
1202
|
+
return message;
|
|
1203
|
+
},
|
|
1204
|
+
create(base) {
|
|
1205
|
+
return exports.ProductCommission.fromPartial(base ?? {});
|
|
1206
|
+
},
|
|
1207
|
+
fromPartial(object) {
|
|
1208
|
+
const message = createBaseProductCommission();
|
|
1209
|
+
message.application_conditions = object.application_conditions?.map((e) => e) || [];
|
|
1210
|
+
message.commission_type = object.commission_type ?? "";
|
|
1211
|
+
message.currency = object.currency ?? "";
|
|
1212
|
+
message.exemptions = object.exemptions?.map((e) => e) || [];
|
|
1213
|
+
message.periodicity = object.periodicity ?? "";
|
|
1214
|
+
message.rate_type = object.rate_type ?? "";
|
|
1215
|
+
message.rate_value_amount = object.rate_value_amount ?? 0;
|
|
1216
|
+
message.rate_value_percentage = object.rate_value_percentage ?? 0;
|
|
1217
|
+
message.vat_applicable = object.vat_applicable ?? false;
|
|
1218
|
+
message.vat_percentage = object.vat_percentage ?? 0;
|
|
1219
|
+
return message;
|
|
1220
|
+
},
|
|
1221
|
+
};
|
|
1222
|
+
function createBaseProductStatement() {
|
|
1223
|
+
return {
|
|
1224
|
+
terms_and_conditions: "",
|
|
1225
|
+
important_messages: "",
|
|
1226
|
+
informative_notes: "",
|
|
1227
|
+
legal_notices: "",
|
|
1228
|
+
logo: "",
|
|
1229
|
+
card_image: "",
|
|
1230
|
+
};
|
|
1231
|
+
}
|
|
1232
|
+
exports.ProductStatement = {
|
|
1233
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1234
|
+
if (message.terms_and_conditions !== "") {
|
|
1235
|
+
writer.uint32(10).string(message.terms_and_conditions);
|
|
1236
|
+
}
|
|
1237
|
+
if (message.important_messages !== "") {
|
|
1238
|
+
writer.uint32(18).string(message.important_messages);
|
|
1239
|
+
}
|
|
1240
|
+
if (message.informative_notes !== "") {
|
|
1241
|
+
writer.uint32(26).string(message.informative_notes);
|
|
1242
|
+
}
|
|
1243
|
+
if (message.legal_notices !== "") {
|
|
1244
|
+
writer.uint32(34).string(message.legal_notices);
|
|
1245
|
+
}
|
|
1246
|
+
if (message.logo !== "") {
|
|
1247
|
+
writer.uint32(42).string(message.logo);
|
|
1248
|
+
}
|
|
1249
|
+
if (message.card_image !== "") {
|
|
1250
|
+
writer.uint32(50).string(message.card_image);
|
|
1251
|
+
}
|
|
1252
|
+
return writer;
|
|
1253
|
+
},
|
|
1254
|
+
decode(input, length) {
|
|
1255
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1256
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1257
|
+
const message = createBaseProductStatement();
|
|
1258
|
+
while (reader.pos < end) {
|
|
1259
|
+
const tag = reader.uint32();
|
|
1260
|
+
switch (tag >>> 3) {
|
|
1261
|
+
case 1: {
|
|
1262
|
+
if (tag !== 10) {
|
|
1263
|
+
break;
|
|
1264
|
+
}
|
|
1265
|
+
message.terms_and_conditions = reader.string();
|
|
1266
|
+
continue;
|
|
1267
|
+
}
|
|
1268
|
+
case 2: {
|
|
1269
|
+
if (tag !== 18) {
|
|
1270
|
+
break;
|
|
1271
|
+
}
|
|
1272
|
+
message.important_messages = reader.string();
|
|
1273
|
+
continue;
|
|
1274
|
+
}
|
|
1275
|
+
case 3: {
|
|
1276
|
+
if (tag !== 26) {
|
|
1277
|
+
break;
|
|
1278
|
+
}
|
|
1279
|
+
message.informative_notes = reader.string();
|
|
1280
|
+
continue;
|
|
1281
|
+
}
|
|
1282
|
+
case 4: {
|
|
1283
|
+
if (tag !== 34) {
|
|
1284
|
+
break;
|
|
1285
|
+
}
|
|
1286
|
+
message.legal_notices = reader.string();
|
|
1287
|
+
continue;
|
|
1288
|
+
}
|
|
1289
|
+
case 5: {
|
|
1290
|
+
if (tag !== 42) {
|
|
1291
|
+
break;
|
|
1292
|
+
}
|
|
1293
|
+
message.logo = reader.string();
|
|
1294
|
+
continue;
|
|
1295
|
+
}
|
|
1296
|
+
case 6: {
|
|
1297
|
+
if (tag !== 50) {
|
|
1298
|
+
break;
|
|
1299
|
+
}
|
|
1300
|
+
message.card_image = reader.string();
|
|
1301
|
+
continue;
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1305
|
+
break;
|
|
1306
|
+
}
|
|
1307
|
+
reader.skip(tag & 7);
|
|
1308
|
+
}
|
|
1309
|
+
return message;
|
|
1310
|
+
},
|
|
1311
|
+
create(base) {
|
|
1312
|
+
return exports.ProductStatement.fromPartial(base ?? {});
|
|
1313
|
+
},
|
|
1314
|
+
fromPartial(object) {
|
|
1315
|
+
const message = createBaseProductStatement();
|
|
1316
|
+
message.terms_and_conditions = object.terms_and_conditions ?? "";
|
|
1317
|
+
message.important_messages = object.important_messages ?? "";
|
|
1318
|
+
message.informative_notes = object.informative_notes ?? "";
|
|
1319
|
+
message.legal_notices = object.legal_notices ?? "";
|
|
1320
|
+
message.logo = object.logo ?? "";
|
|
1321
|
+
message.card_image = object.card_image ?? "";
|
|
1322
|
+
return message;
|
|
1323
|
+
},
|
|
1324
|
+
};
|
|
1325
|
+
function createBaseProduct() {
|
|
1326
|
+
return {
|
|
1327
|
+
id: "",
|
|
1328
|
+
name: "",
|
|
1329
|
+
description: "",
|
|
1330
|
+
effective_at: "",
|
|
1331
|
+
product_type: "",
|
|
1332
|
+
person_type: "",
|
|
1333
|
+
brand: "",
|
|
1334
|
+
bin: "",
|
|
1335
|
+
sub_bin: "",
|
|
1336
|
+
country: "",
|
|
1337
|
+
city: "",
|
|
1338
|
+
multi_currency: false,
|
|
1339
|
+
currencies: [],
|
|
1340
|
+
main_currency: "",
|
|
1341
|
+
active: false,
|
|
1342
|
+
product_key: "",
|
|
1343
|
+
currency_bin: "",
|
|
1344
|
+
currency_allocations: [],
|
|
1345
|
+
rules: [],
|
|
1346
|
+
configurations: undefined,
|
|
1347
|
+
commissions: [],
|
|
1348
|
+
statement: undefined,
|
|
1349
|
+
deleted: false,
|
|
1350
|
+
created_by: "",
|
|
1351
|
+
updated_by: "",
|
|
1352
|
+
created_at: "",
|
|
1353
|
+
updated_at: "",
|
|
1354
|
+
offers: [],
|
|
1355
|
+
};
|
|
1356
|
+
}
|
|
1357
|
+
exports.Product = {
|
|
1358
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1359
|
+
if (message.id !== "") {
|
|
1360
|
+
writer.uint32(10).string(message.id);
|
|
1361
|
+
}
|
|
1362
|
+
if (message.name !== "") {
|
|
1363
|
+
writer.uint32(18).string(message.name);
|
|
1364
|
+
}
|
|
1365
|
+
if (message.description !== "") {
|
|
1366
|
+
writer.uint32(26).string(message.description);
|
|
1367
|
+
}
|
|
1368
|
+
if (message.effective_at !== "") {
|
|
1369
|
+
writer.uint32(34).string(message.effective_at);
|
|
1370
|
+
}
|
|
1371
|
+
if (message.product_type !== "") {
|
|
1372
|
+
writer.uint32(42).string(message.product_type);
|
|
1373
|
+
}
|
|
1374
|
+
if (message.person_type !== "") {
|
|
1375
|
+
writer.uint32(50).string(message.person_type);
|
|
1376
|
+
}
|
|
1377
|
+
if (message.brand !== "") {
|
|
1378
|
+
writer.uint32(58).string(message.brand);
|
|
1379
|
+
}
|
|
1380
|
+
if (message.bin !== "") {
|
|
1381
|
+
writer.uint32(66).string(message.bin);
|
|
1382
|
+
}
|
|
1383
|
+
if (message.sub_bin !== "") {
|
|
1384
|
+
writer.uint32(74).string(message.sub_bin);
|
|
1385
|
+
}
|
|
1386
|
+
if (message.country !== "") {
|
|
1387
|
+
writer.uint32(82).string(message.country);
|
|
1388
|
+
}
|
|
1389
|
+
if (message.city !== "") {
|
|
1390
|
+
writer.uint32(90).string(message.city);
|
|
1391
|
+
}
|
|
1392
|
+
if (message.multi_currency !== false) {
|
|
1393
|
+
writer.uint32(96).bool(message.multi_currency);
|
|
1394
|
+
}
|
|
1395
|
+
for (const v of message.currencies) {
|
|
1396
|
+
writer.uint32(106).string(v);
|
|
1397
|
+
}
|
|
1398
|
+
if (message.main_currency !== "") {
|
|
1399
|
+
writer.uint32(114).string(message.main_currency);
|
|
1400
|
+
}
|
|
1401
|
+
if (message.active !== false) {
|
|
1402
|
+
writer.uint32(120).bool(message.active);
|
|
1403
|
+
}
|
|
1404
|
+
if (message.product_key !== "") {
|
|
1405
|
+
writer.uint32(130).string(message.product_key);
|
|
1406
|
+
}
|
|
1407
|
+
if (message.currency_bin !== "") {
|
|
1408
|
+
writer.uint32(138).string(message.currency_bin);
|
|
1409
|
+
}
|
|
1410
|
+
for (const v of message.currency_allocations) {
|
|
1411
|
+
exports.CurrencyAllocation.encode(v, writer.uint32(146).fork()).join();
|
|
1412
|
+
}
|
|
1413
|
+
for (const v of message.rules) {
|
|
1414
|
+
exports.ProductRule.encode(v, writer.uint32(154).fork()).join();
|
|
1415
|
+
}
|
|
1416
|
+
if (message.configurations !== undefined) {
|
|
1417
|
+
exports.ProductConfigurations.encode(message.configurations, writer.uint32(162).fork()).join();
|
|
1418
|
+
}
|
|
1419
|
+
for (const v of message.commissions) {
|
|
1420
|
+
writer.uint32(170).string(v);
|
|
1421
|
+
}
|
|
1422
|
+
if (message.statement !== undefined) {
|
|
1423
|
+
exports.ProductStatement.encode(message.statement, writer.uint32(178).fork()).join();
|
|
1424
|
+
}
|
|
1425
|
+
if (message.deleted !== false) {
|
|
1426
|
+
writer.uint32(184).bool(message.deleted);
|
|
1427
|
+
}
|
|
1428
|
+
if (message.created_by !== "") {
|
|
1429
|
+
writer.uint32(194).string(message.created_by);
|
|
1430
|
+
}
|
|
1431
|
+
if (message.updated_by !== "") {
|
|
1432
|
+
writer.uint32(202).string(message.updated_by);
|
|
1433
|
+
}
|
|
1434
|
+
if (message.created_at !== "") {
|
|
1435
|
+
writer.uint32(210).string(message.created_at);
|
|
1436
|
+
}
|
|
1437
|
+
if (message.updated_at !== "") {
|
|
1438
|
+
writer.uint32(218).string(message.updated_at);
|
|
1439
|
+
}
|
|
1440
|
+
for (const v of message.offers) {
|
|
1441
|
+
writer.uint32(226).string(v);
|
|
1442
|
+
}
|
|
1443
|
+
return writer;
|
|
1444
|
+
},
|
|
1445
|
+
decode(input, length) {
|
|
1446
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1447
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1448
|
+
const message = createBaseProduct();
|
|
1449
|
+
while (reader.pos < end) {
|
|
1450
|
+
const tag = reader.uint32();
|
|
1451
|
+
switch (tag >>> 3) {
|
|
1452
|
+
case 1: {
|
|
1453
|
+
if (tag !== 10) {
|
|
1454
|
+
break;
|
|
1455
|
+
}
|
|
1456
|
+
message.id = reader.string();
|
|
1457
|
+
continue;
|
|
1458
|
+
}
|
|
1459
|
+
case 2: {
|
|
1460
|
+
if (tag !== 18) {
|
|
1461
|
+
break;
|
|
1462
|
+
}
|
|
1463
|
+
message.name = reader.string();
|
|
1464
|
+
continue;
|
|
1465
|
+
}
|
|
1466
|
+
case 3: {
|
|
1467
|
+
if (tag !== 26) {
|
|
1468
|
+
break;
|
|
1469
|
+
}
|
|
1470
|
+
message.description = reader.string();
|
|
1471
|
+
continue;
|
|
1472
|
+
}
|
|
1473
|
+
case 4: {
|
|
1474
|
+
if (tag !== 34) {
|
|
1475
|
+
break;
|
|
1476
|
+
}
|
|
1477
|
+
message.effective_at = reader.string();
|
|
1478
|
+
continue;
|
|
1479
|
+
}
|
|
1480
|
+
case 5: {
|
|
1481
|
+
if (tag !== 42) {
|
|
1482
|
+
break;
|
|
1483
|
+
}
|
|
1484
|
+
message.product_type = reader.string();
|
|
1485
|
+
continue;
|
|
1486
|
+
}
|
|
1487
|
+
case 6: {
|
|
1488
|
+
if (tag !== 50) {
|
|
1489
|
+
break;
|
|
1490
|
+
}
|
|
1491
|
+
message.person_type = reader.string();
|
|
1492
|
+
continue;
|
|
1493
|
+
}
|
|
1494
|
+
case 7: {
|
|
1495
|
+
if (tag !== 58) {
|
|
1496
|
+
break;
|
|
1497
|
+
}
|
|
1498
|
+
message.brand = reader.string();
|
|
1499
|
+
continue;
|
|
1500
|
+
}
|
|
1501
|
+
case 8: {
|
|
1502
|
+
if (tag !== 66) {
|
|
1503
|
+
break;
|
|
1504
|
+
}
|
|
1505
|
+
message.bin = reader.string();
|
|
1506
|
+
continue;
|
|
1507
|
+
}
|
|
1508
|
+
case 9: {
|
|
1509
|
+
if (tag !== 74) {
|
|
1510
|
+
break;
|
|
1511
|
+
}
|
|
1512
|
+
message.sub_bin = reader.string();
|
|
1513
|
+
continue;
|
|
1514
|
+
}
|
|
1515
|
+
case 10: {
|
|
1516
|
+
if (tag !== 82) {
|
|
1517
|
+
break;
|
|
1518
|
+
}
|
|
1519
|
+
message.country = reader.string();
|
|
1520
|
+
continue;
|
|
1521
|
+
}
|
|
1522
|
+
case 11: {
|
|
1523
|
+
if (tag !== 90) {
|
|
1524
|
+
break;
|
|
1525
|
+
}
|
|
1526
|
+
message.city = reader.string();
|
|
1527
|
+
continue;
|
|
1528
|
+
}
|
|
1529
|
+
case 12: {
|
|
1530
|
+
if (tag !== 96) {
|
|
1531
|
+
break;
|
|
1532
|
+
}
|
|
1533
|
+
message.multi_currency = reader.bool();
|
|
1534
|
+
continue;
|
|
1535
|
+
}
|
|
1536
|
+
case 13: {
|
|
1537
|
+
if (tag !== 106) {
|
|
1538
|
+
break;
|
|
1539
|
+
}
|
|
1540
|
+
message.currencies.push(reader.string());
|
|
1541
|
+
continue;
|
|
1542
|
+
}
|
|
1543
|
+
case 14: {
|
|
1544
|
+
if (tag !== 114) {
|
|
1545
|
+
break;
|
|
1546
|
+
}
|
|
1547
|
+
message.main_currency = reader.string();
|
|
1548
|
+
continue;
|
|
1549
|
+
}
|
|
1550
|
+
case 15: {
|
|
1551
|
+
if (tag !== 120) {
|
|
1552
|
+
break;
|
|
1553
|
+
}
|
|
1554
|
+
message.active = reader.bool();
|
|
1555
|
+
continue;
|
|
1556
|
+
}
|
|
1557
|
+
case 16: {
|
|
1558
|
+
if (tag !== 130) {
|
|
1559
|
+
break;
|
|
1560
|
+
}
|
|
1561
|
+
message.product_key = reader.string();
|
|
1562
|
+
continue;
|
|
1563
|
+
}
|
|
1564
|
+
case 17: {
|
|
1565
|
+
if (tag !== 138) {
|
|
1566
|
+
break;
|
|
1567
|
+
}
|
|
1568
|
+
message.currency_bin = reader.string();
|
|
1569
|
+
continue;
|
|
1570
|
+
}
|
|
1571
|
+
case 18: {
|
|
1572
|
+
if (tag !== 146) {
|
|
1573
|
+
break;
|
|
1574
|
+
}
|
|
1575
|
+
message.currency_allocations.push(exports.CurrencyAllocation.decode(reader, reader.uint32()));
|
|
1576
|
+
continue;
|
|
1577
|
+
}
|
|
1578
|
+
case 19: {
|
|
1579
|
+
if (tag !== 154) {
|
|
1580
|
+
break;
|
|
1581
|
+
}
|
|
1582
|
+
message.rules.push(exports.ProductRule.decode(reader, reader.uint32()));
|
|
1583
|
+
continue;
|
|
1584
|
+
}
|
|
1585
|
+
case 20: {
|
|
1586
|
+
if (tag !== 162) {
|
|
1587
|
+
break;
|
|
1588
|
+
}
|
|
1589
|
+
message.configurations = exports.ProductConfigurations.decode(reader, reader.uint32());
|
|
1590
|
+
continue;
|
|
1591
|
+
}
|
|
1592
|
+
case 21: {
|
|
1593
|
+
if (tag !== 170) {
|
|
1594
|
+
break;
|
|
1595
|
+
}
|
|
1596
|
+
message.commissions.push(reader.string());
|
|
1597
|
+
continue;
|
|
1598
|
+
}
|
|
1599
|
+
case 22: {
|
|
1600
|
+
if (tag !== 178) {
|
|
1601
|
+
break;
|
|
1602
|
+
}
|
|
1603
|
+
message.statement = exports.ProductStatement.decode(reader, reader.uint32());
|
|
1604
|
+
continue;
|
|
1605
|
+
}
|
|
1606
|
+
case 23: {
|
|
1607
|
+
if (tag !== 184) {
|
|
1608
|
+
break;
|
|
1609
|
+
}
|
|
1610
|
+
message.deleted = reader.bool();
|
|
1611
|
+
continue;
|
|
1612
|
+
}
|
|
1613
|
+
case 24: {
|
|
1614
|
+
if (tag !== 194) {
|
|
1615
|
+
break;
|
|
1616
|
+
}
|
|
1617
|
+
message.created_by = reader.string();
|
|
1618
|
+
continue;
|
|
1619
|
+
}
|
|
1620
|
+
case 25: {
|
|
1621
|
+
if (tag !== 202) {
|
|
1622
|
+
break;
|
|
1623
|
+
}
|
|
1624
|
+
message.updated_by = reader.string();
|
|
1625
|
+
continue;
|
|
1626
|
+
}
|
|
1627
|
+
case 26: {
|
|
1628
|
+
if (tag !== 210) {
|
|
1629
|
+
break;
|
|
1630
|
+
}
|
|
1631
|
+
message.created_at = reader.string();
|
|
1632
|
+
continue;
|
|
1633
|
+
}
|
|
1634
|
+
case 27: {
|
|
1635
|
+
if (tag !== 218) {
|
|
1636
|
+
break;
|
|
1637
|
+
}
|
|
1638
|
+
message.updated_at = reader.string();
|
|
1639
|
+
continue;
|
|
1640
|
+
}
|
|
1641
|
+
case 28: {
|
|
1642
|
+
if (tag !== 226) {
|
|
1643
|
+
break;
|
|
1644
|
+
}
|
|
1645
|
+
message.offers.push(reader.string());
|
|
1646
|
+
continue;
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1650
|
+
break;
|
|
1651
|
+
}
|
|
1652
|
+
reader.skip(tag & 7);
|
|
1653
|
+
}
|
|
1654
|
+
return message;
|
|
1655
|
+
},
|
|
1656
|
+
create(base) {
|
|
1657
|
+
return exports.Product.fromPartial(base ?? {});
|
|
1658
|
+
},
|
|
1659
|
+
fromPartial(object) {
|
|
1660
|
+
const message = createBaseProduct();
|
|
1661
|
+
message.id = object.id ?? "";
|
|
1662
|
+
message.name = object.name ?? "";
|
|
1663
|
+
message.description = object.description ?? "";
|
|
1664
|
+
message.effective_at = object.effective_at ?? "";
|
|
1665
|
+
message.product_type = object.product_type ?? "";
|
|
1666
|
+
message.person_type = object.person_type ?? "";
|
|
1667
|
+
message.brand = object.brand ?? "";
|
|
1668
|
+
message.bin = object.bin ?? "";
|
|
1669
|
+
message.sub_bin = object.sub_bin ?? "";
|
|
1670
|
+
message.country = object.country ?? "";
|
|
1671
|
+
message.city = object.city ?? "";
|
|
1672
|
+
message.multi_currency = object.multi_currency ?? false;
|
|
1673
|
+
message.currencies = object.currencies?.map((e) => e) || [];
|
|
1674
|
+
message.main_currency = object.main_currency ?? "";
|
|
1675
|
+
message.active = object.active ?? false;
|
|
1676
|
+
message.product_key = object.product_key ?? "";
|
|
1677
|
+
message.currency_bin = object.currency_bin ?? "";
|
|
1678
|
+
message.currency_allocations = object.currency_allocations?.map((e) => exports.CurrencyAllocation.fromPartial(e)) || [];
|
|
1679
|
+
message.rules = object.rules?.map((e) => exports.ProductRule.fromPartial(e)) || [];
|
|
1680
|
+
message.configurations = (object.configurations !== undefined && object.configurations !== null)
|
|
1681
|
+
? exports.ProductConfigurations.fromPartial(object.configurations)
|
|
1682
|
+
: undefined;
|
|
1683
|
+
message.commissions = object.commissions?.map((e) => e) || [];
|
|
1684
|
+
message.statement = (object.statement !== undefined && object.statement !== null)
|
|
1685
|
+
? exports.ProductStatement.fromPartial(object.statement)
|
|
1686
|
+
: undefined;
|
|
1687
|
+
message.deleted = object.deleted ?? false;
|
|
1688
|
+
message.created_by = object.created_by ?? "";
|
|
1689
|
+
message.updated_by = object.updated_by ?? "";
|
|
1690
|
+
message.created_at = object.created_at ?? "";
|
|
1691
|
+
message.updated_at = object.updated_at ?? "";
|
|
1692
|
+
message.offers = object.offers?.map((e) => e) || [];
|
|
1693
|
+
return message;
|
|
1694
|
+
},
|
|
1695
|
+
};
|
|
1696
|
+
//# sourceMappingURL=products_types.js.map
|