Advertisement
Guest User

preview

a guest
May 4th, 2015
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2.     "items": [
  3.         {
  4.             "office_description": {
  5.                 "id": "MIAC01",
  6.                 "city": {
  7.                     "iata_code": "MIA",
  8.                     "iata_type": "CITY",
  9.                     "name": "NORTH MIAMI BEACH",
  10.                     "geo_location": {
  11.                         "latitude": 25,
  12.                         "longitude": -80
  13.                     }
  14.                 },
  15.                 "address": "18080 COLLINS AVE",
  16.                 "bussiness_hour": {
  17.                     "from": "08:00",
  18.                     "to": "17:00"
  19.                 },
  20.                 "phones": [
  21.                     "3059355140"
  22.                 ]
  23.             },
  24.             "rentable_cars": [
  25.                 {
  26.                     "id": "563007167",
  27.                     "drop_off_office_description": {
  28.                         "id": "NYCC02",
  29.                         "city": {
  30.                             "iata_code": "NYC",
  31.                             "iata_type": "CITY",
  32.                             "name": "BROOKLYN",
  33.                             "geo_location": {
  34.                                 "latitude": 40,
  35.                                 "longitude": -73
  36.                             }
  37.                         },
  38.                         "address": "239 STATE ST",
  39.                         "bussiness_hour": {
  40.                             "from": "07:30",
  41.                             "to": "18:00"
  42.                         },
  43.                         "phones": [
  44.                             "3477631902"
  45.                         ]
  46.                     },
  47.                     "car_description": {
  48.                         "model": "Rio",
  49.                         "image": "http://www.nationalcar.com/national/common/images/fleet/cars/T_ECAR_US.jpg",
  50.                         "specifications": {
  51.                             "transmission": "Automatic",
  52.                             "air_conditioned": true,
  53.                             "total_passengers": 4,
  54.                             "total_doors": 4,
  55.                             "small_bagagge": 1,
  56.                             "big_baggage": 2,
  57.                             "distance": {
  58.                                 "amount": 0,
  59.                                 "unit": "Unlimited",
  60.                                 "period": "Total"
  61.                             }
  62.                         }
  63.                     },
  64.                     "age_policy": {
  65.                         "minimun": 21,
  66.                         "maximun": 24,
  67.                         "penalties": [
  68.                             {
  69.                                 "minimun": 21,
  70.                                 "maximun": 24,
  71.                                 "value": 0,
  72.                                 "type": "AMOUNT"
  73.                             }
  74.                         ]
  75.                     },
  76.                     "payment_types": {
  77.                         "at_destination": {
  78.                             "price": {
  79.                                 "currency": {
  80.                                     "code": "USD",
  81.                                     "mask": "U$S",
  82.                                     "ratio": 1
  83.                                 },
  84.                                 "charges": 268,
  85.                                 "daily": 67,
  86.                                 "total": 603,
  87.                                 "pre_payment_information": {
  88.                                     "currency": {
  89.                                         "code": "ARS",
  90.                                         "mask": "$",
  91.                                         "ratio": 0.11223344997550028
  92.                                     },
  93.                                     "rate": "8.91",
  94.                                     "total": 5319
  95.                                 }
  96.                             },
  97.                             "payment_options": {
  98.                                 "at_destination": [
  99.                                     {
  100.                                         "id": "VI",
  101.                                         "card": {
  102.                                             "type": "CREDIT",
  103.                                             "code": "VI",
  104.                                             "description": "Visa",
  105.                                             "company": "VI"
  106.                                         },
  107.                                         "accepts_cash": false
  108.                                     },
  109.                                     {
  110.                                         "id": "CA",
  111.                                         "card": {
  112.                                             "type": "CREDIT",
  113.                                             "code": "CA",
  114.                                             "description": "MasterCard",
  115.                                             "company": "CA"
  116.                                         },
  117.                                         "accepts_cash": false
  118.                                     }
  119.                                 ]
  120.                             }
  121.                         }
  122.                     },
  123.                     "base": true,
  124.                     "inclusions": [
  125.                         {
  126.                             "code": "SLI",
  127.                             "description": "Responsabilidad Civil",
  128.                             "type": "INSURANCE"
  129.                         },
  130.                         {
  131.                             "code": "LDW",
  132.                             "description": "Cobertura total por daño y/o robo",
  133.                             "type": "INSURANCE"
  134.                         },
  135.                         {
  136.                             "code": "FST",
  137.                             "description": "Impuesto estatal de Florida",
  138.                             "type": "TAX"
  139.                         },
  140.                         {
  141.                             "code": "Drop Charge",
  142.                             "description": "Drop Charge",
  143.                             "type": "TAX"
  144.                         },
  145.                         {
  146.                             "code": "RS",
  147.                             "description": "Cargos de alquiler",
  148.                             "type": "TAX"
  149.                         },
  150.                         {
  151.                             "code": "VAT",
  152.                             "description": "IVA",
  153.                             "type": "TAX"
  154.                         }
  155.                     ],
  156.                     "optionals": [],
  157.                     "has_optionals": false
  158.                 }
  159.             ]
  160.         },
  161.         {
  162.             "office_description": {
  163.                 "id": "MIAS01",
  164.                 "city": {
  165.                     "iata_code": "MIA",
  166.                     "iata_type": "CITY",
  167.                     "name": "MIAMI BEACH",
  168.                     "geo_location": {
  169.                         "latitude": 25,
  170.                         "longitude": -80
  171.                     }
  172.                 },
  173.                 "address": "4332 COLLINS AVE SUITE 104",
  174.                 "bussiness_hour": {
  175.                     "from": "08:00",
  176.                     "to": "17:00"
  177.                 },
  178.                 "phones": [
  179.                     "8888266890"
  180.                 ]
  181.             },
  182.             "rentable_cars": [
  183.                 {
  184.                     "id": "-1192871462",
  185.                     "drop_off_office_description": {
  186.                         "id": "NYCC02",
  187.                         "city": {
  188.                             "iata_code": "NYC",
  189.                             "iata_type": "CITY",
  190.                             "name": "BROOKLYN",
  191.                             "geo_location": {
  192.                                 "latitude": 40,
  193.                                 "longitude": -73
  194.                             }
  195.                         },
  196.                         "address": "239 STATE ST",
  197.                         "bussiness_hour": {
  198.                             "from": "07:30",
  199.                             "to": "18:00"
  200.                         },
  201.                         "phones": [
  202.                             "3477631902"
  203.                         ]
  204.                     },
  205.                     "car_description": {
  206.                         "model": "Rio",
  207.                         "image": "http://www.nationalcar.com/national/common/images/fleet/cars/T_ECAR_US.jpg",
  208.                         "specifications": {
  209.                             "transmission": "Automatic",
  210.                             "air_conditioned": true,
  211.                             "total_passengers": 4,
  212.                             "total_doors": 4,
  213.                             "small_bagagge": 1,
  214.                             "big_baggage": 2,
  215.                             "distance": {
  216.                                 "amount": 0,
  217.                                 "unit": "Unlimited",
  218.                                 "period": "Total"
  219.                             }
  220.                         }
  221.                     },
  222.                     "age_policy": {
  223.                         "minimun": 21,
  224.                         "maximun": 24,
  225.                         "penalties": [
  226.                             {
  227.                                 "minimun": 21,
  228.                                 "maximun": 24,
  229.                                 "value": 0,
  230.                                 "type": "AMOUNT"
  231.                             }
  232.                         ]
  233.                     },
  234.                     "payment_types": {
  235.                         "at_destination": {
  236.                             "price": {
  237.                                 "currency": {
  238.                                     "code": "USD",
  239.                                     "mask": "U$S",
  240.                                     "ratio": 1
  241.                                 },
  242.                                 "charges": 268,
  243.                                 "daily": 67,
  244.                                 "total": 603,
  245.                                 "pre_payment_information": {
  246.                                     "currency": {
  247.                                         "code": "ARS",
  248.                                         "mask": "$",
  249.                                         "ratio": 0.11223344997550028
  250.                                     },
  251.                                     "rate": "8.91",
  252.                                     "total": 5319
  253.                                 }
  254.                             },
  255.                             "payment_options": {
  256.                                 "at_destination": [
  257.                                     {
  258.                                         "id": "VI",
  259.                                         "card": {
  260.                                             "type": "CREDIT",
  261.                                             "code": "VI",
  262.                                             "description": "Visa",
  263.                                             "company": "VI"
  264.                                         },
  265.                                         "accepts_cash": false
  266.                                     },
  267.                                     {
  268.                                         "id": "CA",
  269.                                         "card": {
  270.                                             "type": "CREDIT",
  271.                                             "code": "CA",
  272.                                             "description": "MasterCard",
  273.                                             "company": "CA"
  274.                                         },
  275.                                         "accepts_cash": false
  276.                                     }
  277.                                 ]
  278.                             }
  279.                         }
  280.                     },
  281.                     "base": true,
  282.                     "inclusions": [
  283.                         {
  284.                             "code": "LDW",
  285.                             "description": "Cobertura total por daño y/o robo",
  286.                             "type": "INSURANCE"
  287.                         },
  288.                         {
  289.                             "code": "SLI",
  290.                             "description": "Responsabilidad Civil",
  291.                             "type": "INSURANCE"
  292.                         },
  293.                         {
  294.                             "code": "Drop Charge",
  295.                             "description": "Drop Charge",
  296.                             "type": "TAX"
  297.                         },
  298.                         {
  299.                             "code": "FST",
  300.                             "description": "Impuesto estatal de Florida",
  301.                             "type": "TAX"
  302.                         },
  303.                         {
  304.                             "code": "VAT",
  305.                             "description": "IVA",
  306.                             "type": "TAX"
  307.                         },
  308.                         {
  309.                             "code": "RS",
  310.                             "description": "Cargos de alquiler",
  311.                             "type": "TAX"
  312.                         }
  313.                     ],
  314.                     "optionals": [],
  315.                     "has_optionals": false
  316.                 }
  317.             ]
  318.         }
  319.     ],
  320.     "form": {
  321.         "passengers": [
  322.             {
  323.                 "required": true,
  324.                 "first_name": {
  325.                     "required": true,
  326.                     "data_type": "string",
  327.                     "validations": [
  328.                         {
  329.                             "regex": "^.+$",
  330.                             "error_code": "empty_validator"
  331.                         },
  332.                         {
  333.                             "regex": "^.{3,28}$",
  334.                             "error_code": "rangelength_validator"
  335.                         },
  336.                         {
  337.                             "regex": "^[a-zA-ZÁÉÍÓÚáéíóúäëïöüÄËÏÖÜÇçḈḉḐḑȨȩḜḝĢģḨḩĶķĻļŅņŖŗŞşŢţãõũÃÕŨñÑÂâÊêÔôÛûÎî ]+$",
  338.                             "error_code": "notnumeric_validator"
  339.                         }
  340.                     ]
  341.                 },
  342.                 "last_name": {
  343.                     "required": true,
  344.                     "data_type": "string",
  345.                     "validations": [
  346.                         {
  347.                             "regex": "^.+$",
  348.                             "error_code": "empty_validator"
  349.                         },
  350.                         {
  351.                             "regex": "^.{3,28}$",
  352.                             "error_code": "rangelength_validator"
  353.                         },
  354.                         {
  355.                             "regex": "^[a-zA-ZÁÉÍÓÚáéíóúäëïöüÄËÏÖÜÇçḈḉḐḑȨȩḜḝĢģḨḩĶķĻļŅņŖŗŞşŢţãõũÃÕŨñÑÂâÊêÔôÛûÎî ]+$",
  356.                             "error_code": "notnumeric_validator"
  357.                         }
  358.                     ]
  359.                 },
  360.                 "birthdate": {
  361.                     "required": true,
  362.                     "data_type": "date",
  363.                     "to": "2000-05-04",
  364.                     "format": "yyyy-mm-dd"
  365.                 }
  366.             }
  367.         ],
  368.         "contact": {
  369.             "required": true,
  370.             "email": {
  371.                 "required": true,
  372.                 "data_type": "string",
  373.                 "validations": [
  374.                     {
  375.                         "regex": "^.+$",
  376.                         "error_code": "empty_validator"
  377.                     },
  378.                     {
  379.                         "regex": "^.{5,100}$",
  380.                         "error_code": "rangelength_validator"
  381.                     },
  382.                     {
  383.                         "regex": "^\\w[\\w\\.-]*@([\\w-]+\\.)+[\\w-]{2,6}$",
  384.                         "error_code": "email_validator"
  385.                     }
  386.                 ]
  387.             },
  388.             "phones": [
  389.                 {
  390.                     "required": true,
  391.                     "type": {
  392.                         "required": true,
  393.                         "data_type": "discrete",
  394.                         "options": [
  395.                             {
  396.                                 "value": "Celular",
  397.                                 "description": "Celular"
  398.                             },
  399.                             {
  400.                                 "value": "Home",
  401.                                 "description": "Casa"
  402.                             },
  403.                             {
  404.                                 "value": "Work",
  405.                                 "description": "Trabajo"
  406.                             },
  407.                             {
  408.                                 "value": "Other",
  409.                                 "description": "Otro"
  410.                             }
  411.                         ]
  412.                     },
  413.                     "number": {
  414.                         "required": true,
  415.                         "data_type": "string",
  416.                         "validations": [
  417.                             {
  418.                                 "regex": "^.+$",
  419.                                 "error_code": "empty_validator"
  420.                             },
  421.                             {
  422.                                 "regex": "^.{5,25}$",
  423.                                 "error_code": "rangelength_validator"
  424.                             },
  425.                             {
  426.                                 "regex": "^.*[0-9].*[0-9].*[0-9].*[0-9].*[0-9].*$",
  427.                                 "error_code": "phone_validator"
  428.                             }
  429.                         ]
  430.                     },
  431.                     "country_code": {
  432.                         "required": false,
  433.                         "data_type": "string",
  434.                         "validations": [
  435.                             {
  436.                                 "regex": "^.+$",
  437.                                 "error_code": "empty_validator"
  438.                             },
  439.                             {
  440.                                 "regex": "^.{1,8}$",
  441.                                 "error_code": "rangelength_validator"
  442.                             },
  443.                             {
  444.                                 "regex": "^.*[0-9|\\-].*$",
  445.                                 "error_code": "phone_country_validator"
  446.                             }
  447.                         ]
  448.                     },
  449.                     "area_code": {
  450.                         "required": false,
  451.                         "data_type": "string",
  452.                         "validations": [
  453.                             {
  454.                                 "regex": "^.+$",
  455.                                 "error_code": "empty_validator"
  456.                             },
  457.                             {
  458.                                 "regex": "^.{1,5}$",
  459.                                 "error_code": "rangelength_validator"
  460.                             },
  461.                             {
  462.                                 "regex": "^.*[0-9].*$",
  463.                                 "error_code": "phone_area_validator"
  464.                             }
  465.                         ]
  466.                     }
  467.                 }
  468.             ],
  469.             "flight_information": {
  470.                 "required": false,
  471.                 "airline_name": {
  472.                     "required": false,
  473.                     "data_type": "string",
  474.                     "validations": [
  475.                         {
  476.                             "regex": "^[0-9a-zA-ZÁÉÍÓÚáéíóúäëïöüÄËÏÖÜÇçḈḉḐḑȨȩḜḝĢģḨḩĶķĻļŅņŖŗŞşŢţãõũÃÕŨñÑÂâÊêÔôÛûÎî \\.\\-#&\\(\\)\\/]+$",
  477.                             "error_code": "extended_alphanumeric_validator"
  478.                         },
  479.                         {
  480.                             "regex": "^.{0,50}$",
  481.                             "error_code": "length_validator"
  482.                         }
  483.                     ]
  484.                 },
  485.                 "airline_code": {
  486.                     "required": false,
  487.                     "data_type": "string",
  488.                     "validations": [
  489.                         {
  490.                             "regex": "^[0-9a-zA-ZÁÉÍÓÚáéíóúäëïöüÄËÏÖÜÇçḈḉḐḑȨȩḜḝĢģḨḩĶķĻļŅņŖŗŞşŢţãõũÃÕŨñÑÂâÊêÔôÛûÎî ]+$",
  491.                             "error_code": "alphanumeric_validator"
  492.                         },
  493.                         {
  494.                             "regex": "^(.{2})?$",
  495.                             "error_code": "empty_or_fixlength_validator"
  496.                         }
  497.                     ]
  498.                 },
  499.                 "flight_number": {
  500.                     "required": false,
  501.                     "data_type": "integer"
  502.                 }
  503.             }
  504.         },
  505.         "checkout_method": {
  506.             "at_destination": {
  507.                 "payment": {
  508.                     "required": true,
  509.                     "card": {
  510.                         "required": true,
  511.                         "number": {
  512.                             "required": false,
  513.                             "data_type": "string",
  514.                             "validations": [
  515.                                 {
  516.                                     "regex": "^.+$",
  517.                                     "error_code": "empty_validator"
  518.                                 },
  519.                                 {
  520.                                     "error_code": "creditcardnumber_validation"
  521.                                 }
  522.                             ]
  523.                         },
  524.                         "expiration": {
  525.                             "required": true,
  526.                             "data_type": "date",
  527.                             "to": "2035-05",
  528.                             "format": "yyyy-mm"
  529.                         },
  530.                         "security_code": {
  531.                             "required": false,
  532.                             "data_type": "string",
  533.                             "validations": [
  534.                                 {
  535.                                     "regex": "^.+$",
  536.                                     "error_code": "empty_validator"
  537.                                 },
  538.                                 {
  539.                                     "error_code": "creditcardcode_validation"
  540.                                 }
  541.                             ]
  542.                         },
  543.                         "owner_name": {
  544.                             "required": false,
  545.                             "data_type": "string",
  546.                             "validations": [
  547.                                 {
  548.                                     "regex": "^.+$",
  549.                                     "error_code": "empty_validator"
  550.                                 },
  551.                                 {
  552.                                     "regex": "^.{5,50}$",
  553.                                     "error_code": "rangelength_validator"
  554.                                 },
  555.                                 {
  556.                                     "regex": "^[a-zA-ZÁÉÍÓÚáéíóúäëïöüÄËÏÖÜÇçḈḉḐḑȨȩḜḝĢģḨḩĶķĻļŅņŖŗŞşŢţãõũÃÕŨñÑÂâÊêÔôÛûÎî ]+$",
  557.                                     "error_code": "notnumeric_validator"
  558.                                 }
  559.                             ]
  560.                         },
  561.                         "owner_document": {
  562.                             "required": true,
  563.                             "number": {
  564.                                 "required": false,
  565.                                 "data_type": "string",
  566.                                 "validations": [
  567.                                     {
  568.                                         "regex": "^.+$",
  569.                                         "error_code": "empty_validator"
  570.                                     },
  571.                                     {
  572.                                         "regex": "^.{7,8}$",
  573.                                         "error_code": "rangelength_validator"
  574.                                     },
  575.                                     {
  576.                                         "regex": "^([0-9]*)$",
  577.                                         "error_code": "numeric_validator"
  578.                                     }
  579.                                 ]
  580.                             },
  581.                             "gender": {
  582.                                 "required": false,
  583.                                 "data_type": "discrete",
  584.                                 "options": [
  585.                                     {
  586.                                         "value": "MALE",
  587.                                         "description": "Hombre"
  588.                                     },
  589.                                     {
  590.                                         "value": "FEMALE",
  591.                                         "description": "Mujer"
  592.                                     }
  593.                                 ]
  594.                             }
  595.                         }
  596.                     },
  597.                     "invoice": {
  598.                         "required": true,
  599.                         "fiscal_status": {
  600.                             "required": true,
  601.                             "data_type": "discrete",
  602.                             "options": [
  603.                                 {
  604.                                     "value": "ConsumidorFinal",
  605.                                     "description": "Consumidor Final"
  606.                                 },
  607.                                 {
  608.                                     "value": "IvaInscripto",
  609.                                     "description": "Iva Inscripto"
  610.                                 },
  611.                                 {
  612.                                     "value": "IvaExento",
  613.                                     "description": "Iva Exento"
  614.                                 },
  615.                                 {
  616.                                     "value": "Monotributo",
  617.                                     "description": "Monotributo"
  618.                                 }
  619.                             ]
  620.                         },
  621.                         "fiscal_name": {
  622.                             "required": false,
  623.                             "data_type": "string",
  624.                             "validations": [
  625.                                 {
  626.                                     "regex": "^.+$",
  627.                                     "error_code": "empty_validator"
  628.                                 },
  629.                                 {
  630.                                     "regex": "^.{3,150}$",
  631.                                     "error_code": "rangelength_validator"
  632.                                 },
  633.                                 {
  634.                                     "regex": "^[0-9a-zA-ZÁÉÍÓÚáéíóúäëïöüÄËÏÖÜÇçḈḉḐḑȨȩḜḝĢģḨḩĶķĻļŅņŖŗŞşŢţãõũÃÕŨñÑÂâÊêÔôÛûÎî \\.\\-#&\\(\\)\\/]+$",
  635.                                     "error_code": "extended_alphanumeric_validator"
  636.                                 }
  637.                             ]
  638.                         },
  639.                         "fiscal_id": {
  640.                             "required": false,
  641.                             "data_type": "string",
  642.                             "validations": [
  643.                                 {
  644.                                     "regex": "^.+$",
  645.                                     "error_code": "empty_validator"
  646.                                 },
  647.                                 {
  648.                                     "regex": "^\\d{2}(-|)\\d{8}(-|)\\d{1}$",
  649.                                     "error_code": "cuitcuil_validation"
  650.                                 }
  651.                             ]
  652.                         },
  653.                         "address": {
  654.                             "required": true,
  655.                             "country": {
  656.                                 "required": false,
  657.                                 "data_type": "string",
  658.                                 "validations": [
  659.                                     {
  660.                                         "regex": "^.+$",
  661.                                         "error_code": "empty_validator"
  662.                                     }
  663.                                 ]
  664.                             },
  665.                             "state": {
  666.                                 "required": false,
  667.                                 "data_type": "string",
  668.                                 "validations": [
  669.                                     {
  670.                                         "regex": "^.+$",
  671.                                         "error_code": "empty_validator"
  672.                                     },
  673.                                     {
  674.                                         "regex": "^.{0,50}$",
  675.                                         "error_code": "rangelength_validator"
  676.                                     }
  677.                                 ]
  678.                             },
  679.                             "city": {
  680.                                 "required": false,
  681.                                 "data_type": "integer"
  682.                             },
  683.                             "street": {
  684.                                 "required": false,
  685.                                 "data_type": "string",
  686.                                 "validations": [
  687.                                     {
  688.                                         "regex": "^.+$",
  689.                                         "error_code": "empty_validator"
  690.                                     },
  691.                                     {
  692.                                         "regex": "^.{0,240}$",
  693.                                         "error_code": "rangelength_validator"
  694.                                     }
  695.                                 ]
  696.                             },
  697.                             "number": {
  698.                                 "required": false,
  699.                                 "data_type": "string",
  700.                                 "validations": [
  701.                                     {
  702.                                         "regex": "^.{0,10}$",
  703.                                         "error_code": "rangelength_validator"
  704.                                     },
  705.                                     {
  706.                                         "regex": "^([0-9]*)$",
  707.                                         "error_code": "numeric_validator"
  708.                                     },
  709.                                     {
  710.                                         "regex": "^.+$",
  711.                                         "error_code": "empty_validator"
  712.                                     }
  713.                                 ]
  714.                             },
  715.                             "floor": {
  716.                                 "required": false,
  717.                                 "data_type": "string",
  718.                                 "validations": [
  719.                                     {
  720.                                         "regex": "^.{0,10}$",
  721.                                         "error_code": "rangelength_validator"
  722.                                     },
  723.                                     {
  724.                                         "regex": "^([0-9]*)$",
  725.                                         "error_code": "numeric_validator"
  726.                                     }
  727.                                 ]
  728.                             },
  729.                             "department": {
  730.                                 "required": false,
  731.                                 "data_type": "string",
  732.                                 "validations": [
  733.                                     {
  734.                                         "regex": "^.{0,5}$",
  735.                                         "error_code": "rangelength_validator"
  736.                                     }
  737.                                 ]
  738.                             },
  739.                             "postal_code": {
  740.                                 "required": false,
  741.                                 "data_type": "string",
  742.                                 "validations": [
  743.                                     {
  744.                                         "regex": "^.+$",
  745.                                         "error_code": "empty_validator"
  746.                                     }
  747.                                 ]
  748.                             }
  749.                         }
  750.                     },
  751.                     "installment": {
  752.                         "required": false,
  753.                         "payment_id": {
  754.                             "required": true,
  755.                             "data_type": "integer"
  756.                         }
  757.                     }
  758.                 },
  759.                 "vouchers": [
  760.                     {
  761.                         "required": false,
  762.                         "data_type": "string",
  763.                         "validations": [
  764.                             {
  765.                                 "regex": "^.+$",
  766.                                 "error_code": "empty_validator"
  767.                             },
  768.                             {
  769.                                 "regex": "^.{0,20}$",
  770.                                 "error_code": "rangelength_validator"
  771.                             },
  772.                             {
  773.                                 "regex": "^[0-9a-zA-ZÁÉÍÓÚáéíóúäëïöüÄËÏÖÜÇçḈḉḐḑȨȩḜḝĢģḨḩĶķĻļŅņŖŗŞşŢţãõũÃÕŨñÑÂâÊêÔôÛûÎî ]+$",
  774.                                 "error_code": "alphanumeric_validator"
  775.                             }
  776.                         ]
  777.                     }
  778.                 ],
  779.                 "required": false
  780.             },
  781.             "pre_payment": {
  782.                 "payment": {
  783.                     "required": true,
  784.                     "card": {
  785.                         "required": true,
  786.                         "number": {
  787.                             "required": false,
  788.                             "data_type": "string",
  789.                             "validations": [
  790.                                 {
  791.                                     "regex": "^.+$",
  792.                                     "error_code": "empty_validator"
  793.                                 },
  794.                                 {
  795.                                     "error_code": "creditcardnumber_validation"
  796.                                 }
  797.                             ]
  798.                         },
  799.                         "expiration": {
  800.                             "required": true,
  801.                             "data_type": "date",
  802.                             "to": "2035-05",
  803.                             "format": "yyyy-mm"
  804.                         },
  805.                         "security_code": {
  806.                             "required": false,
  807.                             "data_type": "string",
  808.                             "validations": [
  809.                                 {
  810.                                     "regex": "^.+$",
  811.                                     "error_code": "empty_validator"
  812.                                 },
  813.                                 {
  814.                                     "error_code": "creditcardcode_validation"
  815.                                 }
  816.                             ]
  817.                         },
  818.                         "owner_name": {
  819.                             "required": false,
  820.                             "data_type": "string",
  821.                             "validations": [
  822.                                 {
  823.                                     "regex": "^.+$",
  824.                                     "error_code": "empty_validator"
  825.                                 },
  826.                                 {
  827.                                     "regex": "^.{5,50}$",
  828.                                     "error_code": "rangelength_validator"
  829.                                 },
  830.                                 {
  831.                                     "regex": "^[a-zA-ZÁÉÍÓÚáéíóúäëïöüÄËÏÖÜÇçḈḉḐḑȨȩḜḝĢģḨḩĶķĻļŅņŖŗŞşŢţãõũÃÕŨñÑÂâÊêÔôÛûÎî ]+$",
  832.                                     "error_code": "notnumeric_validator"
  833.                                 }
  834.                             ]
  835.                         },
  836.                         "owner_document": {
  837.                             "required": true,
  838.                             "number": {
  839.                                 "required": false,
  840.                                 "data_type": "string",
  841.                                 "validations": [
  842.                                     {
  843.                                         "regex": "^.+$",
  844.                                         "error_code": "empty_validator"
  845.                                     },
  846.                                     {
  847.                                         "regex": "^.{7,8}$",
  848.                                         "error_code": "rangelength_validator"
  849.                                     },
  850.                                     {
  851.                                         "regex": "^([0-9]*)$",
  852.                                         "error_code": "numeric_validator"
  853.                                     }
  854.                                 ]
  855.                             },
  856.                             "gender": {
  857.                                 "required": false,
  858.                                 "data_type": "discrete",
  859.                                 "options": [
  860.                                     {
  861.                                         "value": "MALE",
  862.                                         "description": "Hombre"
  863.                                     },
  864.                                     {
  865.                                         "value": "FEMALE",
  866.                                         "description": "Mujer"
  867.                                     }
  868.                                 ]
  869.                             }
  870.                         }
  871.                     },
  872.                     "invoice": {
  873.                         "required": true,
  874.                         "fiscal_status": {
  875.                             "required": true,
  876.                             "data_type": "discrete",
  877.                             "options": [
  878.                                 {
  879.                                     "value": "ConsumidorFinal",
  880.                                     "description": "Consumidor Final"
  881.                                 },
  882.                                 {
  883.                                     "value": "IvaInscripto",
  884.                                     "description": "Iva Inscripto"
  885.                                 },
  886.                                 {
  887.                                     "value": "IvaExento",
  888.                                     "description": "Iva Exento"
  889.                                 },
  890.                                 {
  891.                                     "value": "Monotributo",
  892.                                     "description": "Monotributo"
  893.                                 }
  894.                             ]
  895.                         },
  896.                         "fiscal_name": {
  897.                             "required": false,
  898.                             "data_type": "string",
  899.                             "validations": [
  900.                                 {
  901.                                     "regex": "^.+$",
  902.                                     "error_code": "empty_validator"
  903.                                 },
  904.                                 {
  905.                                     "regex": "^.{3,150}$",
  906.                                     "error_code": "rangelength_validator"
  907.                                 },
  908.                                 {
  909.                                     "regex": "^[0-9a-zA-ZÁÉÍÓÚáéíóúäëïöüÄËÏÖÜÇçḈḉḐḑȨȩḜḝĢģḨḩĶķĻļŅņŖŗŞşŢţãõũÃÕŨñÑÂâÊêÔôÛûÎî \\.\\-#&\\(\\)\\/]+$",
  910.                                     "error_code": "extended_alphanumeric_validator"
  911.                                 }
  912.                             ]
  913.                         },
  914.                         "fiscal_id": {
  915.                             "required": false,
  916.                             "data_type": "string",
  917.                             "validations": [
  918.                                 {
  919.                                     "regex": "^.+$",
  920.                                     "error_code": "empty_validator"
  921.                                 },
  922.                                 {
  923.                                     "regex": "^\\d{2}(-|)\\d{8}(-|)\\d{1}$",
  924.                                     "error_code": "cuitcuil_validation"
  925.                                 }
  926.                             ]
  927.                         },
  928.                         "address": {
  929.                             "required": true,
  930.                             "country": {
  931.                                 "required": false,
  932.                                 "data_type": "string",
  933.                                 "validations": [
  934.                                     {
  935.                                         "regex": "^.+$",
  936.                                         "error_code": "empty_validator"
  937.                                     }
  938.                                 ]
  939.                             },
  940.                             "state": {
  941.                                 "required": false,
  942.                                 "data_type": "string",
  943.                                 "validations": [
  944.                                     {
  945.                                         "regex": "^.+$",
  946.                                         "error_code": "empty_validator"
  947.                                     },
  948.                                     {
  949.                                         "regex": "^.{0,50}$",
  950.                                         "error_code": "rangelength_validator"
  951.                                     }
  952.                                 ]
  953.                             },
  954.                             "city": {
  955.                                 "required": false,
  956.                                 "data_type": "integer"
  957.                             },
  958.                             "street": {
  959.                                 "required": false,
  960.                                 "data_type": "string",
  961.                                 "validations": [
  962.                                     {
  963.                                         "regex": "^.+$",
  964.                                         "error_code": "empty_validator"
  965.                                     },
  966.                                     {
  967.                                         "regex": "^.{0,240}$",
  968.                                         "error_code": "rangelength_validator"
  969.                                     }
  970.                                 ]
  971.                             },
  972.                             "number": {
  973.                                 "required": false,
  974.                                 "data_type": "string",
  975.                                 "validations": [
  976.                                     {
  977.                                         "regex": "^.{0,10}$",
  978.                                         "error_code": "rangelength_validator"
  979.                                     },
  980.                                     {
  981.                                         "regex": "^([0-9]*)$",
  982.                                         "error_code": "numeric_validator"
  983.                                     },
  984.                                     {
  985.                                         "regex": "^.+$",
  986.                                         "error_code": "empty_validator"
  987.                                     }
  988.                                 ]
  989.                             },
  990.                             "floor": {
  991.                                 "required": false,
  992.                                 "data_type": "string",
  993.                                 "validations": [
  994.                                     {
  995.                                         "regex": "^.{0,10}$",
  996.                                         "error_code": "rangelength_validator"
  997.                                     },
  998.                                     {
  999.                                         "regex": "^([0-9]*)$",
  1000.                                         "error_code": "numeric_validator"
  1001.                                     }
  1002.                                 ]
  1003.                             },
  1004.                             "department": {
  1005.                                 "required": false,
  1006.                                 "data_type": "string",
  1007.                                 "validations": [
  1008.                                     {
  1009.                                         "regex": "^.{0,5}$",
  1010.                                         "error_code": "rangelength_validator"
  1011.                                     }
  1012.                                 ]
  1013.                             },
  1014.                             "postal_code": {
  1015.                                 "required": false,
  1016.                                 "data_type": "string",
  1017.                                 "validations": [
  1018.                                     {
  1019.                                         "regex": "^.+$",
  1020.                                         "error_code": "empty_validator"
  1021.                                     }
  1022.                                 ]
  1023.                             }
  1024.                         }
  1025.                     },
  1026.                     "installment": {
  1027.                         "required": false,
  1028.                         "payment_id": {
  1029.                             "required": true,
  1030.                             "data_type": "integer"
  1031.                         }
  1032.                     }
  1033.                 },
  1034.                 "required": false
  1035.             }
  1036.         }
  1037.     }
  1038. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement