TodoPagoConectorSS 1.8.0 → 1.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/issue_template.md +34 -0
- data/.gitignore +37 -0
- data/README.md +1553 -0
- data/TodoPago/DataProvider.rb +273 -0
- data/TodoPago/DiscoverPaymentMethodsTest.rb +71 -0
- data/TodoPago/GetAuthorizeAnswerTest.rb +61 -0
- data/TodoPago/GetCredentialsTest.rb +70 -0
- data/TodoPago/GetOperationsTest.rb +72 -0
- data/TodoPago/MockClient.rb +195 -0
- data/TodoPago/ReturnRequestTest.rb +64 -0
- data/TodoPago/SendAuthorizeRequestTest.rb +63 -0
- data/TodoPago/coverage/.last_run.json +5 -0
- data/TodoPago/coverage/.resultset.json +892 -0
- data/TodoPago/coverage/.resultset.json.lock +0 -0
- data/TodoPago/coverage/assets/0.10.0/application.css +799 -0
- data/TodoPago/coverage/assets/0.10.0/application.js +1707 -0
- data/TodoPago/coverage/assets/0.10.0/colorbox/border.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/colorbox/controls.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/colorbox/loading.gif +0 -0
- data/TodoPago/coverage/assets/0.10.0/colorbox/loading_background.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/favicon_green.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/favicon_red.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/favicon_yellow.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/loading.gif +0 -0
- data/TodoPago/coverage/assets/0.10.0/magnify.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-icons_222222_256x240.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-icons_2e83ff_256x240.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-icons_454545_256x240.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-icons_888888_256x240.png +0 -0
- data/TodoPago/coverage/assets/0.10.0/smoothness/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/TodoPago/coverage/index.html +5510 -0
- data/TodoPago/test.rb +203 -0
- data/TodoPago/test_validations.rb +108 -0
- data/TodoPago/tests_coverage.rb +11 -0
- data/TodoPagoConector.gemspec +14 -0
- data/lib/Authorize.wsdl +320 -0
- data/lib/Classes/user.rb +30 -0
- data/lib/Connectors/RestConnector.rb +65 -0
- data/lib/Connectors/ServiceConnector.rb +32 -0
- data/lib/Connectors/SoapConnector.rb +139 -0
- data/lib/Exceptions/connection_exception.rb +6 -0
- data/lib/Exceptions/empty_field_exception.rb +6 -0
- data/lib/Exceptions/empty_field_password_exception.rb +8 -0
- data/lib/Exceptions/empty_field_user_exception.rb +8 -0
- data/lib/Exceptions/prueba.rb +5 -0
- data/lib/Exceptions/response_exception.rb +6 -0
- data/lib/FraudControlValidation.rb +406 -0
- data/lib/Operations.wsdl +319 -0
- data/lib/ServiceReferences/Authorize.wsdl +320 -0
- data/lib/ServiceReferences/EchoService.wsdl +125 -0
- data/lib/ServiceReferences/Operations.wsdl +319 -0
- data/lib/Validation/FraudControlValidation.rb +406 -0
- data/lib/config/postalCodes.json +26 -0
- data/lib/config/validations.json +623 -0
- data/lib/prueba.rb +4 -0
- data/lib/user.rb +41 -0
- metadata +65 -1
@@ -0,0 +1,26 @@
|
|
1
|
+
{
|
2
|
+
"A": "4400",
|
3
|
+
"B": "1900",
|
4
|
+
"C": "1000",
|
5
|
+
"D": "5700",
|
6
|
+
"E": "3100",
|
7
|
+
"F": "5300",
|
8
|
+
"G": "4200",
|
9
|
+
"H": "3500",
|
10
|
+
"J": "5400",
|
11
|
+
"K": "4700",
|
12
|
+
"L": "6300",
|
13
|
+
"M": "5500",
|
14
|
+
"N": "3300",
|
15
|
+
"P": "3600",
|
16
|
+
"Q": "8300",
|
17
|
+
"R": "8500",
|
18
|
+
"S": "3000",
|
19
|
+
"T": "4001",
|
20
|
+
"U": "9103",
|
21
|
+
"V": "9410",
|
22
|
+
"W": "3400",
|
23
|
+
"X": "5000",
|
24
|
+
"Y": "4600",
|
25
|
+
"Z": "9400"
|
26
|
+
}
|
@@ -0,0 +1,623 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"field" : "CSBTCITY",
|
4
|
+
"validate":[
|
5
|
+
{ "function":"notEmpty",
|
6
|
+
"message": "El campo CSBTCITY es requerido"
|
7
|
+
}
|
8
|
+
],
|
9
|
+
"format":[
|
10
|
+
{ "function":"clean"
|
11
|
+
},
|
12
|
+
{ "function":"truncate",
|
13
|
+
"params":["49"]
|
14
|
+
}
|
15
|
+
],
|
16
|
+
"required" : "1"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"field" : "CSBTCOUNTRY",
|
20
|
+
"format":[
|
21
|
+
{ "function":"hardcode",
|
22
|
+
"params":["AR"]
|
23
|
+
}
|
24
|
+
],
|
25
|
+
"required" : "1"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"field" : "CSBTCUSTOMERID",
|
29
|
+
"validate":[
|
30
|
+
{ "function":"notEmpty",
|
31
|
+
"default" : "random"
|
32
|
+
}
|
33
|
+
],
|
34
|
+
"format":[ { "function":"clean"
|
35
|
+
},
|
36
|
+
{ "function":"truncate",
|
37
|
+
"params":["49"]
|
38
|
+
}
|
39
|
+
],
|
40
|
+
"required" : "1"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"field" : "CSBTEMAIL",
|
44
|
+
"validate":[
|
45
|
+
{ "function":"notEmpty",
|
46
|
+
"message" : "El campo CSBTEMAIL es requerido"
|
47
|
+
},
|
48
|
+
|
49
|
+
{ "function":"email",
|
50
|
+
"params" : ["/^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z])+$/"],
|
51
|
+
"message" : "El campo CSBTEMAIL es invalido"
|
52
|
+
}
|
53
|
+
],
|
54
|
+
"format":[ { "function":"clean"
|
55
|
+
},
|
56
|
+
{ "function":"truncate",
|
57
|
+
"params":["99"]
|
58
|
+
}
|
59
|
+
|
60
|
+
],
|
61
|
+
"required" : "1"
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"field" : "CSBTIPADDRESS",
|
65
|
+
"validate":[
|
66
|
+
{ "function":"notEmpty",
|
67
|
+
"message" : "El campo CSBTIPADDRESS es requerido"
|
68
|
+
},
|
69
|
+
{ "function":"ip",
|
70
|
+
"params": ["^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$"],
|
71
|
+
"message" : "El campo CSBTIPADDRESS es invalido"
|
72
|
+
}
|
73
|
+
],
|
74
|
+
"required" : "1"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"field" : "CSBTPOSTALCODE",
|
78
|
+
"validate":[
|
79
|
+
{ "function":"notEmpty",
|
80
|
+
"default" : "findState"
|
81
|
+
}
|
82
|
+
],
|
83
|
+
"format":[ { "function":"clean"
|
84
|
+
},
|
85
|
+
{ "function":"truncate",
|
86
|
+
"params":["9"]
|
87
|
+
}
|
88
|
+
|
89
|
+
],
|
90
|
+
"required" : "1"
|
91
|
+
},
|
92
|
+
|
93
|
+
{
|
94
|
+
"field" : "CSBTSTATE",
|
95
|
+
"validate":[
|
96
|
+
{ "function":"notEmpty",
|
97
|
+
"default" : "C"
|
98
|
+
},
|
99
|
+
{ "function":"word",
|
100
|
+
"params": ["\w"],
|
101
|
+
"message":"El campo CSBTSTATE es invalido"
|
102
|
+
}
|
103
|
+
],
|
104
|
+
"format":[
|
105
|
+
{ "function":"truncate",
|
106
|
+
"params":["1"]
|
107
|
+
},
|
108
|
+
{ "function":"upper"
|
109
|
+
}
|
110
|
+
],
|
111
|
+
"required" : "1"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"field" : "CSBTFIRSTNAME",
|
115
|
+
"validate":[
|
116
|
+
{ "function":"notEmpty",
|
117
|
+
"message" : "El campo CSBTFIRSTNAME es requerido"
|
118
|
+
}
|
119
|
+
],
|
120
|
+
"format":[ { "function":"clean"
|
121
|
+
},
|
122
|
+
{ "function":"truncate",
|
123
|
+
"params":["59"]
|
124
|
+
}
|
125
|
+
],
|
126
|
+
"required" : "1"
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"field" : "CSBTLASTNAME",
|
130
|
+
"validate":[
|
131
|
+
{ "function":"notEmpty",
|
132
|
+
"message" : "El campo CSBTLASTNAME es requerido"
|
133
|
+
}
|
134
|
+
],
|
135
|
+
"format":[ { "function":"clean"
|
136
|
+
},
|
137
|
+
{ "function":"truncate",
|
138
|
+
"params":["59"]
|
139
|
+
}
|
140
|
+
|
141
|
+
],
|
142
|
+
"required" : "1"
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"field" : "CSBTPHONENUMBER",
|
146
|
+
"validate":[
|
147
|
+
{ "function":"notEmpty",
|
148
|
+
"message" : "El campo CSBTPHONENUMBER es requerido"
|
149
|
+
}
|
150
|
+
|
151
|
+
],
|
152
|
+
"format":[
|
153
|
+
{ "function":"truncate",
|
154
|
+
"params":["14"]
|
155
|
+
},
|
156
|
+
{ "function":"phoneSanitize"
|
157
|
+
}
|
158
|
+
],
|
159
|
+
"required" : "1"
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"field" : "CSBTSTREET1",
|
163
|
+
"validate":[
|
164
|
+
{ "function":"notEmpty",
|
165
|
+
"message" : "El campo CSBTSTREET1 es requerido"
|
166
|
+
}
|
167
|
+
],
|
168
|
+
"format":[ { "function":"clean"
|
169
|
+
},
|
170
|
+
{ "function":"truncate",
|
171
|
+
"params":["59"]
|
172
|
+
}
|
173
|
+
],
|
174
|
+
"required" : "1"
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"field" : "CSBTSTREET2",
|
178
|
+
"validate":[
|
179
|
+
{ "function":"notEmpty",
|
180
|
+
"message" : "El campo CSBTSTREET2 es requerido"
|
181
|
+
}
|
182
|
+
],
|
183
|
+
"format":[ { "function":"clean"
|
184
|
+
},
|
185
|
+
{ "function":"truncate",
|
186
|
+
"params":["59"]
|
187
|
+
}
|
188
|
+
|
189
|
+
]
|
190
|
+
},
|
191
|
+
{
|
192
|
+
"field" : "CSPTCURRENCY",
|
193
|
+
"format":[
|
194
|
+
{ "function":"hardcode",
|
195
|
+
"params":["ARS"]
|
196
|
+
}
|
197
|
+
]
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"field" : "CSPTGRANDTOTALAMOUNT",
|
201
|
+
"validate":[
|
202
|
+
{ "function":"notEmpty",
|
203
|
+
"message" : "El campo CSPTGRANDTOTALAMOUNT es requerido"
|
204
|
+
},
|
205
|
+
{ "function":"totalAmount",
|
206
|
+
"params": ["^([0-9]{0,12}).([0-9]{0,2})$"]
|
207
|
+
}
|
208
|
+
],
|
209
|
+
"required" : "1"
|
210
|
+
},
|
211
|
+
{
|
212
|
+
"field" : "CSMDD6",
|
213
|
+
"format":[
|
214
|
+
{ "function":"clean"
|
215
|
+
},
|
216
|
+
{ "function":"truncate",
|
217
|
+
"params":["254"]
|
218
|
+
}
|
219
|
+
]
|
220
|
+
},
|
221
|
+
{
|
222
|
+
"field" : "CSMDD7",
|
223
|
+
"format":[
|
224
|
+
{ "function":"clean"
|
225
|
+
},
|
226
|
+
{ "function":"truncate",
|
227
|
+
"params":["254"]
|
228
|
+
}
|
229
|
+
]
|
230
|
+
},
|
231
|
+
{
|
232
|
+
"field" : "CSMDD8",
|
233
|
+
"validate":[
|
234
|
+
{ "function":"notEmpty",
|
235
|
+
"default" : "N"
|
236
|
+
},
|
237
|
+
{ "function":"boolean",
|
238
|
+
"params":["^[YySsNn]$"],
|
239
|
+
"default" : "N"
|
240
|
+
}
|
241
|
+
|
242
|
+
],
|
243
|
+
"format":[
|
244
|
+
{
|
245
|
+
"function":"truncate",
|
246
|
+
"params":["1"]
|
247
|
+
}
|
248
|
+
]
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"field" : "CSMDD9",
|
252
|
+
"format":[
|
253
|
+
{ "function":"clean"
|
254
|
+
},
|
255
|
+
{
|
256
|
+
"function":"truncate",
|
257
|
+
"params":["254"]
|
258
|
+
}
|
259
|
+
]
|
260
|
+
},
|
261
|
+
{
|
262
|
+
"field" : "CSMDD10",
|
263
|
+
"format":[
|
264
|
+
{ "function":"clean"
|
265
|
+
},
|
266
|
+
{
|
267
|
+
"function":"truncate",
|
268
|
+
"params":["254"]
|
269
|
+
}
|
270
|
+
]
|
271
|
+
},
|
272
|
+
{
|
273
|
+
"field" : "CSMDD11",
|
274
|
+
"format":[
|
275
|
+
{ "function":"clean"
|
276
|
+
},
|
277
|
+
{
|
278
|
+
"function":"truncate",
|
279
|
+
"params":["254"]
|
280
|
+
}
|
281
|
+
]
|
282
|
+
},
|
283
|
+
{
|
284
|
+
"field" : "CSMDD44",
|
285
|
+
"format":[
|
286
|
+
{ "function":"clean"
|
287
|
+
},
|
288
|
+
{
|
289
|
+
"function":"truncate",
|
290
|
+
"params":["254"]
|
291
|
+
}
|
292
|
+
]
|
293
|
+
},
|
294
|
+
{
|
295
|
+
"field" : "CSSTCITY",
|
296
|
+
"validate":[
|
297
|
+
{ "function":"notEmpty",
|
298
|
+
"message": "El campo CSSTCITY es requerido"
|
299
|
+
}
|
300
|
+
],
|
301
|
+
"format":[
|
302
|
+
{ "function":"clean"
|
303
|
+
},
|
304
|
+
{ "function":"truncate",
|
305
|
+
"params":["49"]
|
306
|
+
}
|
307
|
+
],
|
308
|
+
"required" : "1"
|
309
|
+
},
|
310
|
+
{
|
311
|
+
"field" : "CSSTCOUNTRY",
|
312
|
+
|
313
|
+
"format":[
|
314
|
+
{ "function":"hardcode",
|
315
|
+
"params":["AR"]
|
316
|
+
}
|
317
|
+
],
|
318
|
+
"required" : "1"
|
319
|
+
},
|
320
|
+
{
|
321
|
+
"field" : "CSSTEMAIL",
|
322
|
+
"validate":[
|
323
|
+
{ "function":"notEmpty",
|
324
|
+
"message" : "El campo CSSTEMAIL es requerido"
|
325
|
+
},
|
326
|
+
|
327
|
+
{ "function":"email",
|
328
|
+
"params" : ["/^[A-Za-z0-9](([_\.\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\.\-]?[a-zA-Z0-9]+)*)\.([A-Za-z])+$/"],
|
329
|
+
"message" : "El campo CSSTEMAIL es invalido"
|
330
|
+
}
|
331
|
+
],
|
332
|
+
"format":[ { "function":"clean"
|
333
|
+
},
|
334
|
+
{ "function":"truncate",
|
335
|
+
"params":["99"]
|
336
|
+
}
|
337
|
+
|
338
|
+
],
|
339
|
+
"required" : "1"
|
340
|
+
},
|
341
|
+
{
|
342
|
+
"field" : "CSSTFIRSTNAME",
|
343
|
+
"validate":[
|
344
|
+
{ "function":"notEmpty",
|
345
|
+
"message" : "El campo CSSTFIRSTNAME es requerido"
|
346
|
+
}
|
347
|
+
],
|
348
|
+
"format":[
|
349
|
+
{ "function":"clean"
|
350
|
+
},
|
351
|
+
{ "function":"truncate",
|
352
|
+
"params":["59"]
|
353
|
+
}
|
354
|
+
],
|
355
|
+
"required" : "1"
|
356
|
+
},
|
357
|
+
{
|
358
|
+
"field" : "CSSTLASTNAME",
|
359
|
+
"validate":[
|
360
|
+
{ "function":"notEmpty",
|
361
|
+
"message" : "El campo CSSTLASTNAME es requerido"
|
362
|
+
}
|
363
|
+
],
|
364
|
+
"format":[
|
365
|
+
{ "function":"clean"
|
366
|
+
},
|
367
|
+
{ "function":"truncate",
|
368
|
+
"params":["59"]
|
369
|
+
}
|
370
|
+
],
|
371
|
+
"required" : "1"
|
372
|
+
},
|
373
|
+
{
|
374
|
+
"field" : "CSSTPHONENUMBER",
|
375
|
+
"validate":[
|
376
|
+
{ "function":"notEmpty",
|
377
|
+
"message" : "El campo CSSTPHONENUMBER es requerido"
|
378
|
+
}
|
379
|
+
|
380
|
+
],
|
381
|
+
"format":[
|
382
|
+
{ "function":"truncate",
|
383
|
+
"params":["14"]
|
384
|
+
},
|
385
|
+
{ "function":"phoneSanitize"
|
386
|
+
}
|
387
|
+
],
|
388
|
+
"required" : "1"
|
389
|
+
},
|
390
|
+
{
|
391
|
+
"field" : "CSSTPOSTALCODE",
|
392
|
+
"validate":[
|
393
|
+
{ "function":"notEmpty",
|
394
|
+
"default" : "findState"
|
395
|
+
}
|
396
|
+
],
|
397
|
+
"format":[
|
398
|
+
{ "function":"clean"
|
399
|
+
},
|
400
|
+
{ "function":"truncate",
|
401
|
+
"params":["9"]
|
402
|
+
}
|
403
|
+
],
|
404
|
+
"required" : "1"
|
405
|
+
},
|
406
|
+
{
|
407
|
+
"field" : "CSSTSTATE",
|
408
|
+
"validate":[
|
409
|
+
{ "function":"notEmpty",
|
410
|
+
"default" : "C"
|
411
|
+
},
|
412
|
+
{ "function":"word",
|
413
|
+
"params": ["\w"],
|
414
|
+
"message":"El campo CSBTSTATE es invalido"
|
415
|
+
}
|
416
|
+
],
|
417
|
+
"format":[
|
418
|
+
{ "function":"truncate",
|
419
|
+
"params":["1"]
|
420
|
+
},
|
421
|
+
{ "function":"upper"
|
422
|
+
}
|
423
|
+
],
|
424
|
+
"required" : "1"
|
425
|
+
},
|
426
|
+
{
|
427
|
+
"field" : "CSSTSTREET1",
|
428
|
+
"validate":[
|
429
|
+
{ "function":"notEmpty",
|
430
|
+
"message" : "El campo CSSTSTREET1 es requerido"
|
431
|
+
}
|
432
|
+
],
|
433
|
+
"format":[
|
434
|
+
{ "function":"clean"
|
435
|
+
},
|
436
|
+
{ "function":"truncate",
|
437
|
+
"params":["59"]
|
438
|
+
}
|
439
|
+
],
|
440
|
+
"required" : "1"
|
441
|
+
},
|
442
|
+
{
|
443
|
+
"field" : "CSSTSTREET2",
|
444
|
+
"validate":[
|
445
|
+
{ "function":"notEmpty",
|
446
|
+
"message" : "El campo CSSTSTREET2 es requerido"
|
447
|
+
}
|
448
|
+
],
|
449
|
+
"format":[
|
450
|
+
{ "function":"clean"
|
451
|
+
},
|
452
|
+
{ "function":"truncate",
|
453
|
+
"params":["59"]
|
454
|
+
}
|
455
|
+
]
|
456
|
+
},
|
457
|
+
{
|
458
|
+
"field" : "CSMDD12",
|
459
|
+
"format":[
|
460
|
+
{ "function":"clean"
|
461
|
+
},
|
462
|
+
{ "function":"truncate",
|
463
|
+
"params":["254"]
|
464
|
+
}
|
465
|
+
]
|
466
|
+
},
|
467
|
+
{
|
468
|
+
"field" : "CSMDD13",
|
469
|
+
"format":[
|
470
|
+
{ "function":"clean"
|
471
|
+
},
|
472
|
+
{ "function":"truncate",
|
473
|
+
"params":["254"]
|
474
|
+
}
|
475
|
+
]
|
476
|
+
},
|
477
|
+
{
|
478
|
+
"field" : "CSMDD14",
|
479
|
+
"validate":[
|
480
|
+
{ "function":"notEmpty",
|
481
|
+
"default" : "N"
|
482
|
+
},
|
483
|
+
{ "function":"boolean",
|
484
|
+
"params":["^[YySsNn]$"],
|
485
|
+
"default" : "N"
|
486
|
+
}
|
487
|
+
|
488
|
+
],
|
489
|
+
"format":[
|
490
|
+
{
|
491
|
+
"function":"truncate",
|
492
|
+
"params":["1"]
|
493
|
+
}
|
494
|
+
]
|
495
|
+
},
|
496
|
+
{
|
497
|
+
"field" : "CSMDD15",
|
498
|
+
"format":[
|
499
|
+
{ "function":"clean"
|
500
|
+
},
|
501
|
+
{ "function":"truncate",
|
502
|
+
"params":["254"]
|
503
|
+
}
|
504
|
+
]
|
505
|
+
},
|
506
|
+
{
|
507
|
+
"field" : "CSMDD16",
|
508
|
+
"format":[
|
509
|
+
{ "function":"clean"
|
510
|
+
},
|
511
|
+
{ "function":"truncate",
|
512
|
+
"params":["254"]
|
513
|
+
}
|
514
|
+
]
|
515
|
+
},
|
516
|
+
|
517
|
+
|
518
|
+
{
|
519
|
+
"field" : "CSITPRODUCTCODE",
|
520
|
+
"validate":[
|
521
|
+
{ "function":"notEmpty",
|
522
|
+
"message" : "El campo CSITPRODUCTCODE es requerido"
|
523
|
+
}
|
524
|
+
],
|
525
|
+
"format":[
|
526
|
+
{ "function":"csitFormat",
|
527
|
+
"params":["254"]
|
528
|
+
}
|
529
|
+
],
|
530
|
+
"required" : "1"
|
531
|
+
},
|
532
|
+
{
|
533
|
+
"field" : "CSITPRODUCTDESCRIPTION",
|
534
|
+
"validate":[
|
535
|
+
{ "function":"notEmpty",
|
536
|
+
"message" : "El campo CSITPRODUCTDESCRIPTION es requerido"
|
537
|
+
}
|
538
|
+
],
|
539
|
+
"format":[
|
540
|
+
{ "function":"csitFormat",
|
541
|
+
"params":["254"]
|
542
|
+
}
|
543
|
+
],
|
544
|
+
"required" : "1"
|
545
|
+
},
|
546
|
+
{
|
547
|
+
"field" : "CSITPRODUCTNAME",
|
548
|
+
"validate":[
|
549
|
+
{ "function":"notEmpty",
|
550
|
+
"message" : "El campo CSITPRODUCTNAME es requerido"
|
551
|
+
}
|
552
|
+
],
|
553
|
+
"format":[
|
554
|
+
{ "function":"csitFormat",
|
555
|
+
"params":["254"]
|
556
|
+
}
|
557
|
+
],
|
558
|
+
"required" : "1"
|
559
|
+
},
|
560
|
+
{
|
561
|
+
"field" : "CSITPRODUCTSKU",
|
562
|
+
"validate":[
|
563
|
+
{ "function":"notEmpty",
|
564
|
+
"message" : "El campo CSITPRODUCTSKU es requerido"
|
565
|
+
}
|
566
|
+
],
|
567
|
+
"format":[
|
568
|
+
{ "function":"csitFormat",
|
569
|
+
"params":["254"]
|
570
|
+
}
|
571
|
+
],
|
572
|
+
"required" : "1"
|
573
|
+
},
|
574
|
+
{
|
575
|
+
"field" : "CSITTOTALAMOUNT",
|
576
|
+
"validate":[
|
577
|
+
{ "function":"notEmpty",
|
578
|
+
"message" : "El campo CSITTOTALAMOUNT es requerido"
|
579
|
+
}
|
580
|
+
],
|
581
|
+
"format":[
|
582
|
+
{ "function":"csitFormat",
|
583
|
+
"params":["254"]
|
584
|
+
}
|
585
|
+
],
|
586
|
+
"required" : "1"
|
587
|
+
},
|
588
|
+
{
|
589
|
+
"field" : "CSITUNITPRICE",
|
590
|
+
"validate":[
|
591
|
+
{ "function":"notEmpty",
|
592
|
+
"message" : "El campo CSITUNITPRICE es requerido"
|
593
|
+
}
|
594
|
+
],
|
595
|
+
"format":[
|
596
|
+
{ "function":"csitFormat",
|
597
|
+
"params":["254"]
|
598
|
+
}
|
599
|
+
],
|
600
|
+
"required" : "1"
|
601
|
+
},
|
602
|
+
{
|
603
|
+
"field" : "CSITQUANTITY",
|
604
|
+
"validate":[
|
605
|
+
{ "function":"notEmpty",
|
606
|
+
"message" : "El campo CSITQUANTITY es requerido"
|
607
|
+
}
|
608
|
+
],
|
609
|
+
"format":[
|
610
|
+
{ "function":"csitFormat",
|
611
|
+
"params":["254"]
|
612
|
+
}
|
613
|
+
],
|
614
|
+
"required" : "1"
|
615
|
+
}
|
616
|
+
|
617
|
+
|
618
|
+
|
619
|
+
]
|
620
|
+
|
621
|
+
|
622
|
+
|
623
|
+
|