lib/braintree/error_codes.rb in braintree-2.22.0 vs lib/braintree/error_codes.rb in braintree-2.23.0
- old
+ new
@@ -4,24 +4,32 @@
# The error messages returned from the server may change, but the codes will remain the same.
module ErrorCodes
# See http://www.braintreepayments.com/docs/ruby/addresses/validations
module Address
CannotBeBlank = "81801"
+ CompanyIsInvalid = "91821"
CompanyIsTooLong = "81802"
CountryCodeAlpha2IsNotAccepted = "91814"
CountryCodeAlpha3IsNotAccepted = "91816"
CountryCodeNumericIsNotAccepted = "91817"
CountryNameIsNotAccepted = "91803"
+ ExtendedAddressIsInvalid = "91823"
ExtendedAddressIsTooLong = "81804"
+ FirstNameIsInvalid = "91819"
FirstNameIsTooLong = "81805"
InconsistentCountry = "91815"
+ LastNameIsInvalid = "91820"
LastNameIsTooLong = "81806"
+ LocalityIsInvalid = "91824"
LocalityIsTooLong = "81807"
PostalCodeInvalidCharacters = "81813"
+ PostalCodeIsInvalid = "91826"
PostalCodeIsRequired = "81808"
PostalCodeIsTooLong = "81809"
+ RegionIsInvalid = "91825"
RegionIsTooLong = "81810"
+ StreetAddressIsInvalid = "91822"
StreetAddressIsRequired = "81811"
StreetAddressIsTooLong = "81812"
TooManyAddressesPerCustomer = "91818"
end
@@ -41,31 +49,38 @@
ExpirationDateIsInvalid = "81710"
ExpirationDateIsRequired = "81709"
ExpirationDateYearIsInvalid = "81711"
ExpirationMonthIsInvalid = "81712"
ExpirationYearIsInvalid = "81713"
+ InvalidVenmoSDKPaymentMethodCode = "91727"
NumberHasInvalidLength = "81716"
+ NumberLengthIsInvalid = "81716"
NumberIsInvalid = "81715"
NumberIsRequired = "81714"
NumberMustBeTestNumber = "81717"
+ PaymentMethodConflict = "81725"
TokenInvalid = "91718"
+ TokenFormatIsInvalid = "91718"
TokenIsInUse = "91719"
TokenIsNotAllowed = "91721"
TokenIsRequired = "91722"
TokenIsTooLong = "91720"
+ VenmoSDKPaymentMethodCodeCardTypeIsNotAccepted = "91726"
module Options
UpdateExistingTokenIsInvalid = "91723"
+ VerificationMerchantAccountIdIsInvalid = "91728"
end
end
# See http://www.braintreepayments.com/docs/ruby/customers/validations
module Customer
CompanyIsTooLong = "81601"
CustomFieldIsInvalid = "91602"
CustomFieldIsTooLong = "81603"
EmailIsInvalid = "81604"
+ EmailFormatIsInvalid = "81604"
EmailIsRequired = "81606"
EmailIsTooLong = "81605"
FaxIsTooLong = "81607"
FirstNameIsTooLong = "81608"
IdIsInUse = "91609"
@@ -75,16 +90,20 @@
IdIsRequired = "91613"
IdIsTooLong = "91612"
LastNameIsTooLong = "81613"
PhoneIsTooLong = "81614"
WebsiteIsInvalid = "81616"
+ WebsiteFormatIsInvalid = "81616"
WebsiteIsTooLong = "81615"
end
module Descriptor
- PhoneFormatIsInvalid = "92202"
+ DynamicDescriptorsDisabled = "92203"
+ InternationalPhoneFormatIsInvalid = "92205"
+ InternationalNameFormatIsInvalid = "92204"
NameFormatIsInvalid = "92201"
+ PhoneFormatIsInvalid = "92202"
end
module SettlementBatchSummary
CustomFieldIsInvalid = "82303"
SettlementDateIsInvalid = "82302"
@@ -139,10 +158,11 @@
IdToRemoveIsIncorrectKind = "92021"
IdToRemoveIsNotPresent = "92016"
InconsistentNumberOfBillingCycles = "92018"
InheritedFromIdIsInvalid = "92013"
InheritedFromIdIsRequired = "92014"
+ Missing = "92024"
NumberOfBillingCyclesCannotBeBlank = "92017"
NumberOfBillingCyclesIsInvalid = "92005"
NumberOfBillingCyclesMustBeGreaterThanZero = "92019"
QuantityCannotBeBlank = "92004"
QuantityIsInvalid = "92001"
@@ -152,9 +172,10 @@
# See http://www.braintreepayments.com/docs/ruby/transactions/validations
module Transaction
AmountCannotBeNegative = "81501"
AmountIsInvalid = "81503"
+ AmountFormatIsInvalid = "81503"
AmountIsRequired = "81502"
AmountIsTooLarge = "81528"
AmountMustBeGreaterThanZero = "81531"
BillingAddressConflict = "91530"
CannotBeVoided = "91504"