Class: CzechPostB2bClient::ResponseCodes::BaseCode
- Inherits:
-
Object
- Object
- CzechPostB2bClient::ResponseCodes::BaseCode
- Defined in:
- lib/czech_post_b2b_client/response_codes.rb
Direct Known Subclasses
AddressAllowedForBalikovnaOnly, AddressIsNotValidForSubject, AddressNeedsPhoneNumber, AddressSuitableForLocalDelivery, AddressValidOnlyForNaPostu, AddressValidOnlyForNaPostuDuplicate, AddresseeCityRequired, AlreadyAssignedOrderNumber, BadAddressee, BadCODAmount, BadFormatReturnNumberDays, BadHeight, BadLength, BadPrefix, BadPrefixForAddress, BadPrice, BadVariableSymbol, BadWeight, BadWidth, BatchClosed, BatchInvalid, BatchUnfinished, CODAmountOutOfRange, CODAmountTooBig, CanceledOrderNumber, CustomGoodQuantityOutOfRange, CustomerIDNotInAccordanceWithParcelCode, DensityOutOfRange, DuplicateDuplicateParcelCode, DuplicateParcel, DuplicateParcelCode, DuplicitParcelCode, FullSequence, FullSequenceDuplicate, IllegalCombinationOfServices, InfoAddRequiredService75, InfoAddService1A, InfoAddService1B, InfoAddService1D, InfoAddService9, InfoAddressWasModified, InfoAddresseeToLong, InfoCancelCustCardNumber, InfoCancelCustCardNumberAddresseeDocument, InfoCancelHeight, InfoCancelLength, InfoCancelMobilePhoneOrEmailAddresseeDocument, InfoCancelPalettsNumber, InfoCancelPersonalIdentificationNumber, InfoCancelService1AB, InfoCancelService1ABForService40, InfoCancelService1AForPostCode, InfoCancelService1AForService40, InfoCancelService1AWith1B, InfoCancelService1B, InfoCancelService1BAddService1A, InfoCancelService1BForPostCode, InfoCancelService1BWith1A, InfoCancelService1D, InfoCancelService1E, InfoCancelService1V, InfoCancelService25, InfoCancelService27, InfoCancelService29, InfoCancelService30, InfoCancelService31, InfoCancelService34, InfoCancelService34InvalidPhoneNumber, InfoCancelService45, InfoCancelService45InvalidPhoneNumber, InfoCancelService46, InfoCancelService47, InfoCancelService5B, InfoCancelService5BAnd5C, InfoCancelService5BAnd5D, InfoCancelService5C, InfoCancelService5CAnd5D, InfoCancelService5D, InfoCancelService9, InfoCancelVSVoucher, InfoCancelWidth, InfoCityChanged, InfoInexactAddress, InfoInvalidAccount, InfoInvalidBankCode, InfoInvalidBirthDay, InfoInvalidCODAmount, InfoInvalidCategoryCustomDecalaration, InfoInvalidEmail, InfoInvalidMobilePhoneNumber, InfoInvalidPhoneNumber, InfoInvalidPrefixAccount, InfoInvalidPrice, InfoInvalidSpecificSymbol, InfoInvalidTelephoneNumber, InfoInvalidWeight, InfoMissingPartCityServiceDeliveryOnSundayOrHolidayMayNotBeRealized, InfoPriceIsNotNumber, InfoPriceIsTooBig, InfoService29And47, InfoSpecialPackagingRequest, InternalApplicationError, InvalidAddressAddresseeDocumentForParcelType, InvalidAddressAddresseeDocumentObjectNotFound, InvalidAddressAddresseeDocumentWrongCity, InvalidAddressForBalikovna, InvalidAddressForBigPackage, InvalidAddressForCODAmountOver20000, InvalidAddressForParcelType, InvalidAddressee, InvalidAmount, InvalidAmountCurrency, InvalidAmountType, InvalidCODAmount, InvalidCODCurrency, InvalidCODCurrencyAccordance, InvalidCategoryCustomDecalaration, InvalidContentCustomGood, InvalidCurrencyCustomDecalaration, InvalidCustomGoodNumber, InvalidCustomerCardNumber, InvalidCustomerId, InvalidDensity, InvalidEmail, InvalidHeight, InvalidHsCodeCustomGood, InvalidIsoCustomGood, InvalidIsoCustomGoodFormat, InvalidLength, InvalidLocation, InvalidMRNCode, InvalidMRNCodeControl, InvalidNumberClosure, InvalidOrderNumber, InvalidParcelBarcode, InvalidParcelBarcodeDuplicate, InvalidParcelCode, InvalidParcelCodeControl, InvalidParcelResponseCode, InvalidParcelTypeForID, InvalidPartnerCode, InvalidPayday, InvalidPhoneNumber, InvalidPostCode, InvalidPrefixAccordance, InvalidPrefixCombination, InvalidPrefixForDimensionsAndFragile, InvalidPrice, InvalidPriceCurrency, InvalidPriceCurrencyAccordance, InvalidPriceCustomGood, InvalidQuantityCustomGood, InvalidResponsibleConsignmentNumber, InvalidReturnNumberDays, InvalidService18, InvalidService19, InvalidServiceCombination, InvalidServicesForDimensions, InvalidSignNumber, InvalidSubisoCountry, InvalidTareWeight, InvalidTiming, InvalidTransmissionDate, InvalidTypePrefix, InvalidUseOfService36, InvalidUseOfService37, InvalidUseOfService38, InvalidWeight, InvalidWeightCustomGood, InvalidWeightCustomGoodSummary, InvalidWeightForService11, InvalidWidth, InvalidZPROOrderNumber, InvalidZPROOrderNumberFormat, InvalidostCodeOrCity, MIssingParcelCode, MissingAddressee, MissingAddresseeCity, MissingAddresseeStreet, MissingAddresseeZipCode, MissingCODAmount, MissingCODAmountType, MissingCategoryCustomDecalaration, MissingCompanyName, MissingContentCustomGood, MissingCurrencyCustomDeclaration, MissingHandlingInstructions, MissingHeight, MissingHsCodeCustomGood, MissingIsoCustomGood, MissingLength, MissingPalettsNumber, MissingParcelCustomGood, MissingParcelCustomGoods, MissingPhoneNumber, MissingPrefix, MissingPrice, MissingPriceCustomGood, MissingQuantityCustomGood, MissingRequiredAddresseeDocument, MissingRequiredAddresseeDocumentDuplicate, MissingRequiredAddresseeEmail, MissingRequiredEmail, MissingRequiredFirstNameAddresseeDocument, MissingRequiredMRNCode, MissingRequiredMobileNumber, MissingRequiredMobileNumberOrEmail, MissingRequiredParcelCode, MissingRequiredPayday, MissingRequiredPhoneNumber, MissingRequiredPhoneNumberOrEmail, MissingRequiredPhoneNumberOrWhat, MissingRequiredPrice, MissingRequiredService, MissingRequiredService10, MissingRequiredService1AB, MissingRequiredService1X, MissingRequiredService2X, MissingRequiredService3X, MissingRequiredService3XTrinity, MissingRequiredService4, MissingRequiredService4X, MissingRequiredService4x, MissingRequiredVoucherPrice, MissingRequiredZPROOrderNumber, MissingReturnInstructions, MissingReturnNumberDays, MissingSenderEmail, MissingSizeCategory, MissingSurname, MissingVariableSymbol, MissingVariableSymbolDuplicate, MissingWeightCustomGood, MissingWidth, NoContractService41, NoContractServiceReturnReceipt, NotExistingOrderNumber, Ok, OverenoVecerniDorucovani, PalettsNumberOutOfRange, ParcelCodeNotAllowed, ParcelCodeNotInAssignedRange, ParcelDoesNotMeetTheRequirementsForm, PriceAndCODAmountTooBig, PriceOutOfRange, PriceTooBig, PriceTooLow, ResponsibleConsignmentNumberCannotBeImported, ResponsibleConsignmentNumberOutOfRange, ServicesCombinationNotAllowed, TransmissionAlreadyClosed, TransmissionNotExists, TransmissionOpened, TransmissionUnfinished, UnauthorizedAccess, UnknownAddresseeCity, UnknownAddresseePostCode, UnknownPrefix, VariableSymbolIsNotNumber, WeightCustomGoodOutOfRange, WeightIsOutOfRange, WeightIsOutOfRangeDuplicate
Class Attribute Summary collapse
-
.code ⇒ Object
readonly
Returns the value of attribute code.
-
.description ⇒ Object
readonly
Returns the value of attribute description.
-
.text ⇒ Object
readonly
Returns the value of attribute text.
-
.type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Class Attribute Details
.code ⇒ Object (readonly)
Returns the value of attribute code.
15 16 17 |
# File 'lib/czech_post_b2b_client/response_codes.rb', line 15 def code @code end |
.description ⇒ Object (readonly)
Returns the value of attribute description.
23 24 25 |
# File 'lib/czech_post_b2b_client/response_codes.rb', line 23 def description @description end |
.text ⇒ Object (readonly)
Returns the value of attribute text.
19 20 21 |
# File 'lib/czech_post_b2b_client/response_codes.rb', line 19 def text @text end |
.type ⇒ Object (readonly)
Returns the value of attribute type.
35 36 37 |
# File 'lib/czech_post_b2b_client/response_codes.rb', line 35 def type @type end |
Class Method Details
.error? ⇒ Boolean
26 27 28 |
# File 'lib/czech_post_b2b_client/response_codes.rb', line 26 def self.error? @type == :error end |
.info? ⇒ Boolean
30 31 32 |
# File 'lib/czech_post_b2b_client/response_codes.rb', line 30 def self.info? @type == :info end |
.to_s ⇒ Object
38 39 40 |
# File 'lib/czech_post_b2b_client/response_codes.rb', line 38 def self.to_s "ResponseCode[#{code} #{text}] #{description}" end |