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, DuplicitDocumentType, DuplicitParcelCode, FullSequence, FullSequenceDuplicate, IllegalCombinationOfServices, IncorrectParcelCount, InfoAddRequiredService75, InfoAddService1A, InfoAddService1B, InfoAddService1D, InfoAddService9, InfoAddressWasModified, InfoAddresseeToLong, InfoAvizoServiceAppended, 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, InfoCustomGoodsContentWasModified, InfoHsCodeWasModified, InfoInexactAddress, InfoInvalidAccount, InfoInvalidBankCode, InfoInvalidBirthDay, InfoInvalidCODAmount, InfoInvalidCategoryCustomDecalaration, InfoInvalidEmail, InfoInvalidIcFormat, InfoInvalidIcFormatOfAddresseeDocument, InfoInvalidMobilePhoneNumber, InfoInvalidPhoneNumber, InfoInvalidPrefixAccount, InfoInvalidPrice, InfoInvalidSpecificSymbol, InfoInvalidTelephoneNumber, InfoInvalidWeight, InfoMissingPartCityServiceDeliveryOnSundayOrHolidayMayNotBeRealized, InfoNonexistingZipCodeWasReplacedByConstant, InfoPriceIsNotNumber, InfoPriceIsTooBig, InfoService29And47, InfoService29CanceledDueMissingContactToAddressee, InfoService40CanceledDueMissingContactToAddressee, InfoService40CanceledNotAllowedTogetherWithService29, InfoService40CanceledPackageIsPosteRestante, InfoService7KCancelledNotArrangedForClient, InfoSpecialPackagingRequest, InternalApplicationError, InvalidAddressAddresseeDocumentForParcelType, InvalidAddressAddresseeDocumentObjectNotFound, InvalidAddressAddresseeDocumentWrongCity, InvalidAddressForBalikovna, InvalidAddressForBigPackage, InvalidAddressForCODAmountOver20000, InvalidAddressForParcelType, InvalidAddressee, InvalidAddresseeCountry, InvalidAddresseeZipCode, InvalidAmount, InvalidAmountCurrency, InvalidAmountType, InvalidCODAmount, InvalidCODCurrency, InvalidCODCurrencyAccordance, InvalidCategoryCustomDecalaration, InvalidCategoryOfCustomDeclaration, InvalidContentCustomGood, InvalidCurrencyCustomDecalaration, InvalidCustomGoodNumber, InvalidCustomGoodsContent, InvalidCustomerCardNumber, InvalidCustomerId, InvalidDensity, InvalidEmail, InvalidHeight, InvalidHsCode, 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, MissingDocumentType, MissingHandlingInstructions, MissingHeight, MissingHsCodeCustomGood, MissingIsoCustomGood, MissingLength, MissingLocationName, 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.
Instance Attribute Summary collapse
-
#details ⇒ Object
readonly
Returns the value of attribute details.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(details = '') ⇒ BaseCode
constructor
A new instance of BaseCode.
- #to_s ⇒ Object
Constructor Details
#initialize(details = '') ⇒ BaseCode
Returns a new instance of BaseCode.
28 29 30 |
# File 'lib/czech_post_b2b_client/response_codes.rb', line 28 def initialize(details = '') @details = details end |
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.
41 42 43 |
# File 'lib/czech_post_b2b_client/response_codes.rb', line 41 def type @type end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details.
26 27 28 |
# File 'lib/czech_post_b2b_client/response_codes.rb', line 26 def details @details end |
Class Method Details
.error? ⇒ Boolean
32 33 34 |
# File 'lib/czech_post_b2b_client/response_codes.rb', line 32 def self.error? @type == :error || @type == :chyba end |
.info? ⇒ Boolean
36 37 38 |
# File 'lib/czech_post_b2b_client/response_codes.rb', line 36 def self.info? @type == :info end |
.to_s ⇒ Object
44 45 46 |
# File 'lib/czech_post_b2b_client/response_codes.rb', line 44 def self.to_s "ResponseCode[#{code} #{text}] #{description}" end |
Instance Method Details
#to_s ⇒ Object
48 49 50 |
# File 'lib/czech_post_b2b_client/response_codes.rb', line 48 def to_s "#{self.class} -- #{details}" end |