Class: CzechPostB2bClient::ResponseCodes::BaseCode
- Inherits:
-
Object
- Object
- CzechPostB2bClient::ResponseCodes::BaseCode
show all
- 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, 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, NfoCancelService9, 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 Method Summary
collapse
Class Method Details
.code ⇒ Object
12
13
14
|
# File 'lib/czech_post_b2b_client/response_codes.rb', line 12
def self.code
@code
end
|
.description ⇒ Object
20
21
22
|
# File 'lib/czech_post_b2b_client/response_codes.rb', line 20
def self.description
@description
end
|
.error? ⇒ Boolean
24
25
26
|
# File 'lib/czech_post_b2b_client/response_codes.rb', line 24
def self.error?
@type == :error
end
|
.info? ⇒ Boolean
28
29
30
|
# File 'lib/czech_post_b2b_client/response_codes.rb', line 28
def self.info?
@type == :info
end
|
.text ⇒ Object
16
17
18
|
# File 'lib/czech_post_b2b_client/response_codes.rb', line 16
def self.text
@text
end
|
.to_s ⇒ Object
36
37
38
|
# File 'lib/czech_post_b2b_client/response_codes.rb', line 36
def self.to_s
"ResponseCode[#{code} #{text}] #{description}"
end
|
.type ⇒ Object
32
33
34
|
# File 'lib/czech_post_b2b_client/response_codes.rb', line 32
def self.type
@type
end
|