namespace delete ::aca namespace init ::aca namespace schema aca "company:division:grp" set exampleFileName "1094B_Request_BZDHT_20191231T235959999Z.xml" set patternFileName {1094[B|C]_Request_} ;# 1094B_Request_ append patternFileName {[B-DF-HJ-NP-TVZ]{2}} ;# BZ append patternFileName {[B-DF-HJ-NP-TV-Z0-9]{3}} ;# DHT append patternFileName {_[1-9][0-9]{3}} ;# _2019 append patternFileName {(0[1-9]|1[0-2])} ;# 12 append patternFileName {(0[1-9]|[1-2][0-9]|3[0-1])} ;# 31 append patternFileName {T(0[0-9]|1[0-9]|2[0-3])} ;# T23 append patternFileName {(0[0-9]|[1-5][0-9])} ;# 59 append patternFileName {(0[0-9]|[1-5][0-9])} ;# 59 append patternFileName {[0-9]{3}Z\.xml} ;# 999Z.xml type pattern aca::PaymentYrType {[1-9][0-9]{3}} type enum aca::PriorYearDataIndType {0 1} type pattern aca::EINType {[0-9]{9}} type enum aca::TransmissionTypeCdType {O C R} type pattern aca::TestFileCdType {([TP])?} type stringRestrict aca::OriginalReceiptIdType {maxLength 80} type enum aca::TransmitterForeighEntityIndType {0 1} type decimalRestrict aca::TotalPayeeRecordCntType {minInclusive 0} xsd::integer type decimalRestrict aca::TotalPayerRecordCntType {minInclusive 1} xsd::integer type stringRestrict aca::SoftwareIdType {maxLength 10} type enum aca::FormTypeCdType {1094/1095B 1094/1095C} type enum aca::BinaryFormatCdType {application/xml} type pattern aca::ChecksumAugmentationNumType {[0-9A-Fa-f]{64}} type decimalRestrict aca::AttachmentByteSizeNumType {minInclusive 0} xsd::integer type pattern aca::DocumentSystemFileNmType $patternFileName set IDSFileNamePattern {(EOM|EOY)_(Request|Response)} append IDSFileNamePattern {_(0000[1-9]|000[1-9][0-9]|00[1-9][0-9][0-9]|0[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9])} append IDSFileNamePattern {_[1-9][0-9]{3}(0[1-9]|1[0-2])(0[1-9]|[1-2][0-9]|3[0-1])} append IDSFileNamePattern {T(0[1-9]|1[0-9]|2[0-3])(0[1-9]|[1-5][0-9])(0[1-9]|[1-5][0-9])[0-9]{3}} append IDSFileNamePattern {Z_[1-9][0-9]{3}\-.+T[^\.]+(Z|[\+\-].+)_[0-9]{8}\.xml} type pattern aca::InternalDocumentSystemFileNameType $IDSFileNamePattern type pattern aca::ExchangeIdType {[0-9]{2}\.[a-zA-Z]{2}[a-zA-Z*]{1}\.[a-zA-Z0-9]{3}\.[0-9]{3}\.[0-9]{3}} type enum aca::EPDSubmissionSourceCdType {Individual Shop} type pattern aca::ExemptionCertificateNumType {[a-hA-H]{1}[a-zA-Z0-9]{5}[NYny]{1}} type enum aca::FileSourceCodeType {1 2 3 4 5 6 7 8 9 0} type enum aca::FileStatusCdType {Rejected Delivered-Success Delivered-Exception Delivery-Failed} type decimalRestrict aca::IdentifierType {totalDigits 16} xsd::integer type enum aca::IndicatorCodeType {Y N} type simple aca::IntegerNNType xsd::nonNegativeInteger proc ::aca::hello {} { return Hello } returns {string} proc ::aca::checkFileName {testString} { return [$::wsdb::types::aca::DocumentSystemFileNmType::validate $testString] } returns {isValid!boolean} set CheckReturnType { {Value!string {minOccurs 1}} {IsValid!boolean {minOccurs 1}} } element sequence aca::CheckTotalPayerResponse $CheckReturnType element sequence aca::CheckTotalPayeeResponse $CheckReturnType proc ::aca::CheckTotalPayer {testString} { return [list $testString [$::wsdb::types::aca::TotalPayerRecordCntType::validate $testString]] } returns { } proc ::aca::CheckTotalPayee {testString} { return [list $testString [$::wsdb::types::aca::TotalPayeeRecordCntType::validate $testString]] } returns { } namespace finalize ::aca return ::aca