lib/braintree/error_codes.rb in braintree-2.10.0 vs lib/braintree/error_codes.rb in braintree-2.10.1
- old
+ new
@@ -1,11 +1,11 @@
module Braintree
# The ErrorCodes module provides constants for validation errors.
# The constants should be used to check for a specific validation error in a ValidationErrorCollection.
# The error messages returned from the server may change, but the codes will remain the same.
module ErrorCodes
- # See http://www.braintreepaymentsolutions.com/docs/ruby/addresses/validations
+ # See http://www.braintreepayments.com/docs/ruby/addresses/validations
module Address
CannotBeBlank = "81801"
CompanyIsTooLong = "81802"
CountryCodeAlpha2IsNotAccepted = "91814"
CountryCodeAlpha3IsNotAccepted = "91816"
@@ -23,11 +23,11 @@
StreetAddressIsRequired = "81811"
StreetAddressIsTooLong = "81812"
TooManyAddressesPerCustomer = "91818"
end
- # See http://www.braintreepaymentsolutions.com/docs/ruby/credit_cards/validations
+ # See http://www.braintreepayments.com/docs/ruby/credit_cards/validations
module CreditCard
BillingAddressConflict = "91701"
BillingAddressIdIsInvalid = "91702"
CardholderNameIsTooLong = "81723"
CreditCardTypeIsNotAccepted = "81703"
@@ -55,11 +55,11 @@
module Options
UpdateExistingTokenIsInvalid = "91723"
end
end
- # See http://www.braintreepaymentsolutions.com/docs/ruby/customers/validations
+ # See http://www.braintreepayments.com/docs/ruby/customers/validations
module Customer
CompanyIsTooLong = "81601"
CustomFieldIsInvalid = "91602"
CustomFieldIsTooLong = "81603"
EmailIsInvalid = "81604"
@@ -82,11 +82,11 @@
module Descriptor
PhoneFormatIsInvalid = "92202"
NameFormatIsInvalid = "92201"
end
- # See http://www.braintreepaymentsolutions.com/docs/ruby/subscriptions/validations
+ # See http://www.braintreepayments.com/docs/ruby/subscriptions/validations
module Subscription
BillingDayOfMonthCannotBeUpdated = "91918"
BillingDayOfMonthIsInvalid = "91914"
BillingDayOfMonthMustBeNumeric = "91913"
CannotAddDuplicateAddonOrDiscount = "91911"
@@ -140,10 +140,10 @@
QuantityIsInvalid = "92001"
QuantityMustBeGreaterThanZero = "92010"
end
end
- # See http://www.braintreepaymentsolutions.com/docs/ruby/transactions/validations
+ # See http://www.braintreepayments.com/docs/ruby/transactions/validations
module Transaction
AmountCannotBeNegative = "81501"
AmountIsInvalid = "81503"
AmountIsRequired = "81502"
AmountIsTooLarge = "81528"