| 1 | package NpsSDK::Constants; | ||
| 2 | |||
| 3 | use warnings; | ||
| 4 | use strict; | ||
| 5 | |||
| 6 | our $VERSION = '1.91'; # VERSION | ||
| 7 | our $LANGUAGE = "Perl"; | ||
| 8 | |||
| 9 | our $SANDBOX_ENV = 2; | ||
| 10 | our $STAGING_ENV = 1; | ||
| 11 | our $PRODUCTION_ENV = 0; | ||
| 12 | |||
| 13 | our $PRODUCTION_URL = "https://services2.nps.com.ar:443/ws.php"; | ||
| 14 | our $SANDBOX_URL = "https://sandbox.nps.com.ar:443/ws.php"; | ||
| 15 | our $STAGING_URL = "https://implementacion.nps.com.ar:443/ws.php"; | ||
| 16 | |||
| 17 | our %SANITIZE = ( | ||
| 18 | "psp_Person.FirstName.max_length"=> "128", | ||
| 19 | "psp_Person.LastName.max_length" => "64", | ||
| 20 | "psp_Person.MiddleName.max_length" => "64", | ||
| 21 | "psp_Person.PhoneNumber1.max_length" => "32", | ||
| 22 | "psp_Person.PhoneNumber2.max_length" => "32", | ||
| 23 | "psp_Person.Gender.max_length" => "1", | ||
| 24 | "psp_Person.Nationality.max_length" => "3", | ||
| 25 | "psp_Person.IDNumber.max_length" => "40", | ||
| 26 | "psp_Person.IDType.max_length" => "5", | ||
| 27 | "psp_Address.Street.max_length" => "128", | ||
| 28 | "psp_Address.HouseNumber.max_length" => "32", | ||
| 29 | "psp_Address.AdditionalInfo.max_length" => "128", | ||
| 30 | "psp_Address.City.max_length" => "40", | ||
| 31 | "psp_Address.StateProvince.max_length" => "40", | ||
| 32 | "psp_Address.Country.max_length" => "3", | ||
| 33 | "psp_Address.ZipCode.max_length" => "10", | ||
| 34 | "psp_OrderItem.Description.max_length" => "127", | ||
| 35 | "psp_OrderItem.Type.max_length" => "20", | ||
| 36 | "psp_OrderItem.SkuCode.max_length" => "48", | ||
| 37 | "psp_OrderItem.ManufacturerPartNumber.max_length" => "30", | ||
| 38 | "psp_OrderItem.Risk.max_length" => "1", | ||
| 39 | "psp_Leg.DepartureAirport.max_length" => "3", | ||
| 40 | "psp_Leg.ArrivalAirport.max_length" => "3", | ||
| 41 | "psp_Leg.CarrierCode.max_length" => "2", | ||
| 42 | "psp_Leg.FlightNumber.max_length" => "5", | ||
| 43 | "psp_Leg.FareBasisCode.max_length" => "15", | ||
| 44 | "psp_Leg.FareClassCode.max_length" => "3", | ||
| 45 | "psp_Leg.BaseFareCurrency.max_length" => "3", | ||
| 46 | "psp_Passenger.FirstName.max_length" => "50", | ||
| 47 | "psp_Passenger.LastName.max_length" => "30", | ||
| 48 | "psp_Passenger.MiddleName.max_length" => "30", | ||
| 49 | "psp_Passenger.Type.max_length" => "1", | ||
| 50 | "psp_Passenger.Nationality.max_length" => "3", | ||
| 51 | "psp_Passenger.IDNumber.max_length" => "40", | ||
| 52 | "psp_Passenger.IDType.max_length" => "10", | ||
| 53 | "psp_Passenger.IDCountry.max_length" => "3", | ||
| 54 | "psp_Passenger.LoyaltyNumber.max_length" => "20", | ||
| 55 | "psp_SellerDetails.IDNumber.max_length" => "40", | ||
| 56 | "psp_SellerDetails.IDType.max_length" => "10", | ||
| 57 | "psp_SellerDetails.Name.max_length" => "128", | ||
| 58 | "psp_SellerDetails.Invoice.max_length" => "32", | ||
| 59 | "psp_SellerDetails.PurchaseDescription.max_length" => "32", | ||
| 60 | "psp_SellerDetails.MCC.max_length" => "5", | ||
| 61 | "psp_SellerDetails.ChannelCode.max_length" => "3", | ||
| 62 | "psp_SellerDetails.GeoCode.max_length" => "5", | ||
| 63 | "psp_TaxesRequest.TypeId.max_length" => "5", | ||
| 64 | "psp_MerchantAdditionalDetails.Type.max_length" => "1", | ||
| 65 | "psp_MerchantAdditionalDetails.SdkInfo.max_length" => "48", | ||
| 66 | "psp_MerchantAdditionalDetails.ShoppingCartInfo.max_length" => "48", | ||
| 67 | "psp_MerchantAdditionalDetails.ShoppingCartPluginInfo.max_length" => "48", | ||
| 68 | "psp_CustomerAdditionalDetails.IPAddress.max_length" => "45", | ||
| 69 | "psp_CustomerAdditionalDetails.AccountID.max_length" => "128", | ||
| 70 | "psp_CustomerAdditionalDetails.DeviceFingerPrint.max_length" => "4000", | ||
| 71 | "psp_CustomerAdditionalDetails.BrowserLanguage.max_length" => "2", | ||
| 72 | "psp_CustomerAdditionalDetails.HttpUserAgent.max_length" => "255", | ||
| 73 | "psp_BillingDetails.Invoice.max_length" => "32", | ||
| 74 | "psp_BillingDetails.InvoiceCurrency.max_length" => "3", | ||
| 75 | "psp_ShippingDetails.TrackingNumber.max_length" => "24", | ||
| 76 | "psp_ShippingDetails.Method.max_length" => "3", | ||
| 77 | "psp_ShippingDetails.Carrier.max_length" => "3", | ||
| 78 | "psp_ShippingDetails.GiftMessage.max_length" => "200", | ||
| 79 | "psp_AirlineDetails.TicketNumber.max_length" => "14", | ||
| 80 | "psp_AirlineDetails.PNR.max_length" => "10", | ||
| 81 | "psp_VaultReference.PaymentMethodToken.max_length" => "64", | ||
| 82 | "psp_VaultReference.PaymentMethodId.max_length" => "64", | ||
| 83 | "psp_VaultReference.CustomerId.max_length" => "64", | ||
| 84 | "psp_CardInputDetails.Number.max_length"=> "19", | ||
| 85 | "psp_CardInputDetails.SecurityCode.max_length" => "4", | ||
| 86 | "psp_CardInputDetails.HolderName.max_length" => "26" | ||
| 87 | ); | ||
| 88 | |||
| 89 | 1; |