Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "items": [
- {
- "office_description": {
- "id": "MIAC01",
- "city": {
- "iata_code": "MIA",
- "iata_type": "CITY",
- "name": "NORTH MIAMI BEACH",
- "geo_location": {
- "latitude": 25,
- "longitude": -80
- }
- },
- "address": "18080 COLLINS AVE",
- "bussiness_hour": {
- "from": "08:00",
- "to": "17:00"
- },
- "phones": [
- "3059355140"
- ]
- },
- "rentable_cars": [
- {
- "id": "563007167",
- "drop_off_office_description": {
- "id": "NYCC02",
- "city": {
- "iata_code": "NYC",
- "iata_type": "CITY",
- "name": "BROOKLYN",
- "geo_location": {
- "latitude": 40,
- "longitude": -73
- }
- },
- "address": "239 STATE ST",
- "bussiness_hour": {
- "from": "07:30",
- "to": "18:00"
- },
- "phones": [
- "3477631902"
- ]
- },
- "car_description": {
- "model": "Rio",
- "image": "http://www.nationalcar.com/national/common/images/fleet/cars/T_ECAR_US.jpg",
- "specifications": {
- "transmission": "Automatic",
- "air_conditioned": true,
- "total_passengers": 4,
- "total_doors": 4,
- "small_bagagge": 1,
- "big_baggage": 2,
- "distance": {
- "amount": 0,
- "unit": "Unlimited",
- "period": "Total"
- }
- }
- },
- "age_policy": {
- "minimun": 21,
- "maximun": 24,
- "penalties": [
- {
- "minimun": 21,
- "maximun": 24,
- "value": 0,
- "type": "AMOUNT"
- }
- ]
- },
- "payment_types": {
- "at_destination": {
- "price": {
- "currency": {
- "code": "USD",
- "mask": "U$S",
- "ratio": 1
- },
- "charges": 268,
- "daily": 67,
- "total": 603,
- "pre_payment_information": {
- "currency": {
- "code": "ARS",
- "mask": "$",
- "ratio": 0.11223344997550028
- },
- "rate": "8.91",
- "total": 5319
- }
- },
- "payment_options": {
- "at_destination": [
- {
- "id": "VI",
- "card": {
- "type": "CREDIT",
- "code": "VI",
- "description": "Visa",
- "company": "VI"
- },
- "accepts_cash": false
- },
- {
- "id": "CA",
- "card": {
- "type": "CREDIT",
- "code": "CA",
- "description": "MasterCard",
- "company": "CA"
- },
- "accepts_cash": false
- }
- ]
- }
- }
- },
- "base": true,
- "inclusions": [
- {
- "code": "SLI",
- "description": "Responsabilidad Civil",
- "type": "INSURANCE"
- },
- {
- "code": "LDW",
- "description": "Cobertura total por daño y/o robo",
- "type": "INSURANCE"
- },
- {
- "code": "FST",
- "description": "Impuesto estatal de Florida",
- "type": "TAX"
- },
- {
- "code": "Drop Charge",
- "description": "Drop Charge",
- "type": "TAX"
- },
- {
- "code": "RS",
- "description": "Cargos de alquiler",
- "type": "TAX"
- },
- {
- "code": "VAT",
- "description": "IVA",
- "type": "TAX"
- }
- ],
- "optionals": [],
- "has_optionals": false
- }
- ]
- },
- {
- "office_description": {
- "id": "MIAS01",
- "city": {
- "iata_code": "MIA",
- "iata_type": "CITY",
- "name": "MIAMI BEACH",
- "geo_location": {
- "latitude": 25,
- "longitude": -80
- }
- },
- "address": "4332 COLLINS AVE SUITE 104",
- "bussiness_hour": {
- "from": "08:00",
- "to": "17:00"
- },
- "phones": [
- "8888266890"
- ]
- },
- "rentable_cars": [
- {
- "id": "-1192871462",
- "drop_off_office_description": {
- "id": "NYCC02",
- "city": {
- "iata_code": "NYC",
- "iata_type": "CITY",
- "name": "BROOKLYN",
- "geo_location": {
- "latitude": 40,
- "longitude": -73
- }
- },
- "address": "239 STATE ST",
- "bussiness_hour": {
- "from": "07:30",
- "to": "18:00"
- },
- "phones": [
- "3477631902"
- ]
- },
- "car_description": {
- "model": "Rio",
- "image": "http://www.nationalcar.com/national/common/images/fleet/cars/T_ECAR_US.jpg",
- "specifications": {
- "transmission": "Automatic",
- "air_conditioned": true,
- "total_passengers": 4,
- "total_doors": 4,
- "small_bagagge": 1,
- "big_baggage": 2,
- "distance": {
- "amount": 0,
- "unit": "Unlimited",
- "period": "Total"
- }
- }
- },
- "age_policy": {
- "minimun": 21,
- "maximun": 24,
- "penalties": [
- {
- "minimun": 21,
- "maximun": 24,
- "value": 0,
- "type": "AMOUNT"
- }
- ]
- },
- "payment_types": {
- "at_destination": {
- "price": {
- "currency": {
- "code": "USD",
- "mask": "U$S",
- "ratio": 1
- },
- "charges": 268,
- "daily": 67,
- "total": 603,
- "pre_payment_information": {
- "currency": {
- "code": "ARS",
- "mask": "$",
- "ratio": 0.11223344997550028
- },
- "rate": "8.91",
- "total": 5319
- }
- },
- "payment_options": {
- "at_destination": [
- {
- "id": "VI",
- "card": {
- "type": "CREDIT",
- "code": "VI",
- "description": "Visa",
- "company": "VI"
- },
- "accepts_cash": false
- },
- {
- "id": "CA",
- "card": {
- "type": "CREDIT",
- "code": "CA",
- "description": "MasterCard",
- "company": "CA"
- },
- "accepts_cash": false
- }
- ]
- }
- }
- },
- "base": true,
- "inclusions": [
- {
- "code": "LDW",
- "description": "Cobertura total por daño y/o robo",
- "type": "INSURANCE"
- },
- {
- "code": "SLI",
- "description": "Responsabilidad Civil",
- "type": "INSURANCE"
- },
- {
- "code": "Drop Charge",
- "description": "Drop Charge",
- "type": "TAX"
- },
- {
- "code": "FST",
- "description": "Impuesto estatal de Florida",
- "type": "TAX"
- },
- {
- "code": "VAT",
- "description": "IVA",
- "type": "TAX"
- },
- {
- "code": "RS",
- "description": "Cargos de alquiler",
- "type": "TAX"
- }
- ],
- "optionals": [],
- "has_optionals": false
- }
- ]
- }
- ],
- "form": {
- "passengers": [
- {
- "required": true,
- "first_name": {
- "required": true,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "regex": "^.{3,28}$",
- "error_code": "rangelength_validator"
- },
- {
- "regex": "^[a-zA-ZÁÉÍÓÚáéíóúäëïöüÄËÏÖÜÇçḈḉḐḑȨȩḜḝĢģḨḩĶķĻļŅņŖŗŞşŢţãõũÃÕŨñÑÂâÊêÔôÛûÎî ]+$",
- "error_code": "notnumeric_validator"
- }
- ]
- },
- "last_name": {
- "required": true,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "regex": "^.{3,28}$",
- "error_code": "rangelength_validator"
- },
- {
- "regex": "^[a-zA-ZÁÉÍÓÚáéíóúäëïöüÄËÏÖÜÇçḈḉḐḑȨȩḜḝĢģḨḩĶķĻļŅņŖŗŞşŢţãõũÃÕŨñÑÂâÊêÔôÛûÎî ]+$",
- "error_code": "notnumeric_validator"
- }
- ]
- },
- "birthdate": {
- "required": true,
- "data_type": "date",
- "to": "2000-05-04",
- "format": "yyyy-mm-dd"
- }
- }
- ],
- "contact": {
- "required": true,
- "email": {
- "required": true,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "regex": "^.{5,100}$",
- "error_code": "rangelength_validator"
- },
- {
- "regex": "^\\w[\\w\\.-]*@([\\w-]+\\.)+[\\w-]{2,6}$",
- "error_code": "email_validator"
- }
- ]
- },
- "phones": [
- {
- "required": true,
- "type": {
- "required": true,
- "data_type": "discrete",
- "options": [
- {
- "value": "Celular",
- "description": "Celular"
- },
- {
- "value": "Home",
- "description": "Casa"
- },
- {
- "value": "Work",
- "description": "Trabajo"
- },
- {
- "value": "Other",
- "description": "Otro"
- }
- ]
- },
- "number": {
- "required": true,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "regex": "^.{5,25}$",
- "error_code": "rangelength_validator"
- },
- {
- "regex": "^.*[0-9].*[0-9].*[0-9].*[0-9].*[0-9].*$",
- "error_code": "phone_validator"
- }
- ]
- },
- "country_code": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "regex": "^.{1,8}$",
- "error_code": "rangelength_validator"
- },
- {
- "regex": "^.*[0-9|\\-].*$",
- "error_code": "phone_country_validator"
- }
- ]
- },
- "area_code": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "regex": "^.{1,5}$",
- "error_code": "rangelength_validator"
- },
- {
- "regex": "^.*[0-9].*$",
- "error_code": "phone_area_validator"
- }
- ]
- }
- }
- ],
- "flight_information": {
- "required": false,
- "airline_name": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^[0-9a-zA-ZÁÉÍÓÚáéíóúäëïöüÄËÏÖÜÇçḈḉḐḑȨȩḜḝĢģḨḩĶķĻļŅņŖŗŞşŢţãõũÃÕŨñÑÂâÊêÔôÛûÎî \\.\\-#&\\(\\)\\/]+$",
- "error_code": "extended_alphanumeric_validator"
- },
- {
- "regex": "^.{0,50}$",
- "error_code": "length_validator"
- }
- ]
- },
- "airline_code": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^[0-9a-zA-ZÁÉÍÓÚáéíóúäëïöüÄËÏÖÜÇçḈḉḐḑȨȩḜḝĢģḨḩĶķĻļŅņŖŗŞşŢţãõũÃÕŨñÑÂâÊêÔôÛûÎî ]+$",
- "error_code": "alphanumeric_validator"
- },
- {
- "regex": "^(.{2})?$",
- "error_code": "empty_or_fixlength_validator"
- }
- ]
- },
- "flight_number": {
- "required": false,
- "data_type": "integer"
- }
- }
- },
- "checkout_method": {
- "at_destination": {
- "payment": {
- "required": true,
- "card": {
- "required": true,
- "number": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "error_code": "creditcardnumber_validation"
- }
- ]
- },
- "expiration": {
- "required": true,
- "data_type": "date",
- "to": "2035-05",
- "format": "yyyy-mm"
- },
- "security_code": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "error_code": "creditcardcode_validation"
- }
- ]
- },
- "owner_name": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "regex": "^.{5,50}$",
- "error_code": "rangelength_validator"
- },
- {
- "regex": "^[a-zA-ZÁÉÍÓÚáéíóúäëïöüÄËÏÖÜÇçḈḉḐḑȨȩḜḝĢģḨḩĶķĻļŅņŖŗŞşŢţãõũÃÕŨñÑÂâÊêÔôÛûÎî ]+$",
- "error_code": "notnumeric_validator"
- }
- ]
- },
- "owner_document": {
- "required": true,
- "number": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "regex": "^.{7,8}$",
- "error_code": "rangelength_validator"
- },
- {
- "regex": "^([0-9]*)$",
- "error_code": "numeric_validator"
- }
- ]
- },
- "gender": {
- "required": false,
- "data_type": "discrete",
- "options": [
- {
- "value": "MALE",
- "description": "Hombre"
- },
- {
- "value": "FEMALE",
- "description": "Mujer"
- }
- ]
- }
- }
- },
- "invoice": {
- "required": true,
- "fiscal_status": {
- "required": true,
- "data_type": "discrete",
- "options": [
- {
- "value": "ConsumidorFinal",
- "description": "Consumidor Final"
- },
- {
- "value": "IvaInscripto",
- "description": "Iva Inscripto"
- },
- {
- "value": "IvaExento",
- "description": "Iva Exento"
- },
- {
- "value": "Monotributo",
- "description": "Monotributo"
- }
- ]
- },
- "fiscal_name": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "regex": "^.{3,150}$",
- "error_code": "rangelength_validator"
- },
- {
- "regex": "^[0-9a-zA-ZÁÉÍÓÚáéíóúäëïöüÄËÏÖÜÇçḈḉḐḑȨȩḜḝĢģḨḩĶķĻļŅņŖŗŞşŢţãõũÃÕŨñÑÂâÊêÔôÛûÎî \\.\\-#&\\(\\)\\/]+$",
- "error_code": "extended_alphanumeric_validator"
- }
- ]
- },
- "fiscal_id": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "regex": "^\\d{2}(-|)\\d{8}(-|)\\d{1}$",
- "error_code": "cuitcuil_validation"
- }
- ]
- },
- "address": {
- "required": true,
- "country": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- }
- ]
- },
- "state": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "regex": "^.{0,50}$",
- "error_code": "rangelength_validator"
- }
- ]
- },
- "city": {
- "required": false,
- "data_type": "integer"
- },
- "street": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "regex": "^.{0,240}$",
- "error_code": "rangelength_validator"
- }
- ]
- },
- "number": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.{0,10}$",
- "error_code": "rangelength_validator"
- },
- {
- "regex": "^([0-9]*)$",
- "error_code": "numeric_validator"
- },
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- }
- ]
- },
- "floor": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.{0,10}$",
- "error_code": "rangelength_validator"
- },
- {
- "regex": "^([0-9]*)$",
- "error_code": "numeric_validator"
- }
- ]
- },
- "department": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.{0,5}$",
- "error_code": "rangelength_validator"
- }
- ]
- },
- "postal_code": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- }
- ]
- }
- }
- },
- "installment": {
- "required": false,
- "payment_id": {
- "required": true,
- "data_type": "integer"
- }
- }
- },
- "vouchers": [
- {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "regex": "^.{0,20}$",
- "error_code": "rangelength_validator"
- },
- {
- "regex": "^[0-9a-zA-ZÁÉÍÓÚáéíóúäëïöüÄËÏÖÜÇçḈḉḐḑȨȩḜḝĢģḨḩĶķĻļŅņŖŗŞşŢţãõũÃÕŨñÑÂâÊêÔôÛûÎî ]+$",
- "error_code": "alphanumeric_validator"
- }
- ]
- }
- ],
- "required": false
- },
- "pre_payment": {
- "payment": {
- "required": true,
- "card": {
- "required": true,
- "number": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "error_code": "creditcardnumber_validation"
- }
- ]
- },
- "expiration": {
- "required": true,
- "data_type": "date",
- "to": "2035-05",
- "format": "yyyy-mm"
- },
- "security_code": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "error_code": "creditcardcode_validation"
- }
- ]
- },
- "owner_name": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "regex": "^.{5,50}$",
- "error_code": "rangelength_validator"
- },
- {
- "regex": "^[a-zA-ZÁÉÍÓÚáéíóúäëïöüÄËÏÖÜÇçḈḉḐḑȨȩḜḝĢģḨḩĶķĻļŅņŖŗŞşŢţãõũÃÕŨñÑÂâÊêÔôÛûÎî ]+$",
- "error_code": "notnumeric_validator"
- }
- ]
- },
- "owner_document": {
- "required": true,
- "number": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "regex": "^.{7,8}$",
- "error_code": "rangelength_validator"
- },
- {
- "regex": "^([0-9]*)$",
- "error_code": "numeric_validator"
- }
- ]
- },
- "gender": {
- "required": false,
- "data_type": "discrete",
- "options": [
- {
- "value": "MALE",
- "description": "Hombre"
- },
- {
- "value": "FEMALE",
- "description": "Mujer"
- }
- ]
- }
- }
- },
- "invoice": {
- "required": true,
- "fiscal_status": {
- "required": true,
- "data_type": "discrete",
- "options": [
- {
- "value": "ConsumidorFinal",
- "description": "Consumidor Final"
- },
- {
- "value": "IvaInscripto",
- "description": "Iva Inscripto"
- },
- {
- "value": "IvaExento",
- "description": "Iva Exento"
- },
- {
- "value": "Monotributo",
- "description": "Monotributo"
- }
- ]
- },
- "fiscal_name": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "regex": "^.{3,150}$",
- "error_code": "rangelength_validator"
- },
- {
- "regex": "^[0-9a-zA-ZÁÉÍÓÚáéíóúäëïöüÄËÏÖÜÇçḈḉḐḑȨȩḜḝĢģḨḩĶķĻļŅņŖŗŞşŢţãõũÃÕŨñÑÂâÊêÔôÛûÎî \\.\\-#&\\(\\)\\/]+$",
- "error_code": "extended_alphanumeric_validator"
- }
- ]
- },
- "fiscal_id": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "regex": "^\\d{2}(-|)\\d{8}(-|)\\d{1}$",
- "error_code": "cuitcuil_validation"
- }
- ]
- },
- "address": {
- "required": true,
- "country": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- }
- ]
- },
- "state": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "regex": "^.{0,50}$",
- "error_code": "rangelength_validator"
- }
- ]
- },
- "city": {
- "required": false,
- "data_type": "integer"
- },
- "street": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- },
- {
- "regex": "^.{0,240}$",
- "error_code": "rangelength_validator"
- }
- ]
- },
- "number": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.{0,10}$",
- "error_code": "rangelength_validator"
- },
- {
- "regex": "^([0-9]*)$",
- "error_code": "numeric_validator"
- },
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- }
- ]
- },
- "floor": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.{0,10}$",
- "error_code": "rangelength_validator"
- },
- {
- "regex": "^([0-9]*)$",
- "error_code": "numeric_validator"
- }
- ]
- },
- "department": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.{0,5}$",
- "error_code": "rangelength_validator"
- }
- ]
- },
- "postal_code": {
- "required": false,
- "data_type": "string",
- "validations": [
- {
- "regex": "^.+$",
- "error_code": "empty_validator"
- }
- ]
- }
- }
- },
- "installment": {
- "required": false,
- "payment_id": {
- "required": true,
- "data_type": "integer"
- }
- }
- },
- "required": false
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement