| 1 | package Shipment::CanadaPost::XSD; | ||
| 2 | 1 | $Shipment::CanadaPost::XSD::VERSION = '3.11'; | |
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 1 | our $common = q` | |
| 7 | <xsd:element name="links"> | ||
| 8 | <xsd:complexType> | ||
| 9 | <xsd:sequence> | ||
| 10 | <xsd:element ref="link" maxOccurs="unbounded"/> | ||
| 11 | </xsd:sequence> | ||
| 12 | </xsd:complexType> | ||
| 13 | </xsd:element> | ||
| 14 | |||
| 15 | <xsd:complexType name="LinkType"> | ||
| 16 | <xsd:attribute name="href" type="xsd:anyURI" use="required"/> | ||
| 17 | <xsd:attribute name="rel" type="RelType" use="required"/> | ||
| 18 | <xsd:attribute name="index" type="xsd:nonNegativeInteger" use="optional"/> | ||
| 19 | <xsd:attribute name="media-type" type="xsd:normalizedString" use="required"/> | ||
| 20 | </xsd:complexType> | ||
| 21 | |||
| 22 | <xsd:element name="link" type="LinkType"/> | ||
| 23 | <xsd:simpleType name="RelType"> | ||
| 24 | <xsd:restriction base="xsd:string"> | ||
| 25 | |||
| 26 | </xsd:restriction> | ||
| 27 | </xsd:simpleType> | ||
| 28 | |||
| 29 | <xsd:complexType name="CcDetailsType"> | ||
| 30 | <xsd:all> | ||
| 31 | <xsd:element name="cc-type" type="CcType" /> | ||
| 32 | <xsd:element name="cc-number" type="CcNumberType" /> | ||
| 33 | <xsd:element name="cc-name" type="CcNameType" /> | ||
| 34 | <xsd:element name="cc-expiry" type="CcExpiryType" /> | ||
| 35 | <xsd:element name="cc-cvv" type="CcCvvType" minOccurs="0" /> | ||
| 36 | <xsd:element name="cc-address-details" type="CcAddressDetailsType" minOccurs="0"/> | ||
| 37 | </xsd:all> | ||
| 38 | </xsd:complexType> | ||
| 39 | |||
| 40 | <xsd:simpleType name="CcType"> | ||
| 41 | <xsd:restriction base="xsd:normalizedString"> | ||
| 42 | <xsd:enumeration value="MC"/> | ||
| 43 | <xsd:enumeration value="VIS"/> | ||
| 44 | <xsd:enumeration value="AME"/> | ||
| 45 | <xsd:enumeration value="DC"/> | ||
| 46 | <xsd:enumeration value="DIS"/> | ||
| 47 | <xsd:enumeration value="ER"/> | ||
| 48 | </xsd:restriction> | ||
| 49 | </xsd:simpleType> | ||
| 50 | |||
| 51 | <xsd:simpleType name="CcNumberType"> | ||
| 52 | <xsd:restriction base="xsd:normalizedString"> | ||
| 53 | <xsd:pattern value="\d{1,25}" /> | ||
| 54 | </xsd:restriction> | ||
| 55 | </xsd:simpleType> | ||
| 56 | |||
| 57 | <xsd:simpleType name="CcMaskedNumberType"> | ||
| 58 | <xsd:restriction base="xsd:normalizedString"> | ||
| 59 | <xsd:minLength value="1" /> | ||
| 60 | <xsd:maxLength value="25" /> | ||
| 61 | </xsd:restriction> | ||
| 62 | </xsd:simpleType> | ||
| 63 | |||
| 64 | <xsd:simpleType name="CcNameType"> | ||
| 65 | <xsd:restriction base="xsd:normalizedString"> | ||
| 66 | <xsd:minLength value="1"/> | ||
| 67 | <xsd:maxLength value="40" /> | ||
| 68 | </xsd:restriction> | ||
| 69 | </xsd:simpleType> | ||
| 70 | |||
| 71 | <xsd:simpleType name="CcExpiryType"> | ||
| 72 | <xsd:restriction base="xsd:normalizedString"> | ||
| 73 | <xsd:pattern value="\d{2}/\d{2}" /> | ||
| 74 | </xsd:restriction> | ||
| 75 | </xsd:simpleType> | ||
| 76 | |||
| 77 | <xsd:simpleType name="CcCvvType"> | ||
| 78 | <xsd:restriction base="xsd:normalizedString"> | ||
| 79 | <xsd:minLength value="1"/> | ||
| 80 | <xsd:maxLength value="6" /> | ||
| 81 | </xsd:restriction> | ||
| 82 | </xsd:simpleType> | ||
| 83 | |||
| 84 | <xsd:simpleType name="CcAuthorizationCodeType"> | ||
| 85 | <xsd:restriction base="xsd:normalizedString"> | ||
| 86 | <xsd:minLength value="1"/> | ||
| 87 | <xsd:maxLength value="10" /> | ||
| 88 | </xsd:restriction> | ||
| 89 | </xsd:simpleType> | ||
| 90 | |||
| 91 | <xsd:simpleType name="CcAuthorizationAmountType"> | ||
| 92 | <xsd:restriction base="xsd:decimal"> | ||
| 93 | </xsd:restriction> | ||
| 94 | </xsd:simpleType> | ||
| 95 | |||
| 96 | <xsd:simpleType name="CurrencyType"> | ||
| 97 | <xsd:restriction base="xsd:normalizedString"> | ||
| 98 | <xsd:minLength value="1"/> | ||
| 99 | <xsd:maxLength value="3"/> | ||
| 100 | </xsd:restriction> | ||
| 101 | </xsd:simpleType> | ||
| 102 | |||
| 103 | <xsd:complexType name="CcAddressDetailsType"> | ||
| 104 | <xsd:all> | ||
| 105 | <xsd:element name="address-line-1"> | ||
| 106 | <xsd:simpleType> | ||
| 107 | <xsd:restriction base="xsd:normalizedString"> | ||
| 108 | <xsd:minLength value="1"/> | ||
| 109 | <xsd:maxLength value="44" /> | ||
| 110 | </xsd:restriction> | ||
| 111 | </xsd:simpleType> | ||
| 112 | </xsd:element> | ||
| 113 | <xsd:element name="address-line-2" minOccurs="0"> | ||
| 114 | <xsd:simpleType> | ||
| 115 | <xsd:restriction base="xsd:normalizedString"> | ||
| 116 | <xsd:maxLength value="44" /> | ||
| 117 | </xsd:restriction> | ||
| 118 | </xsd:simpleType> | ||
| 119 | </xsd:element> | ||
| 120 | <xsd:element name="city"> | ||
| 121 | <xsd:simpleType> | ||
| 122 | <xsd:restriction base="xsd:normalizedString"> | ||
| 123 | <xsd:minLength value="1"/> | ||
| 124 | <xsd:maxLength value="40" /> | ||
| 125 | </xsd:restriction> | ||
| 126 | </xsd:simpleType> | ||
| 127 | </xsd:element> | ||
| 128 | <xsd:element name="prov-state" type="ProvinceStateOrInternationalType" /> | ||
| 129 | <xsd:element name="postal-zip-code" type="PostalCodeOrZipOrInternationalType" minOccurs="0" /> | ||
| 130 | <xsd:element name="country-code" type="CountryCodeType" /> | ||
| 131 | </xsd:all> | ||
| 132 | </xsd:complexType> | ||
| 133 | |||
| 134 | <xsd:simpleType name="ThirdPartyAccountIdType"> | ||
| 135 | <xsd:restriction base="xsd:normalizedString"> | ||
| 136 | <xsd:minLength value="1"/> | ||
| 137 | <xsd:maxLength value="16" /> | ||
| 138 | </xsd:restriction> | ||
| 139 | </xsd:simpleType> | ||
| 140 | |||
| 141 | <xsd:simpleType name="ThirdPartyAccountCodeType"> | ||
| 142 | <xsd:restriction base="xsd:normalizedString"> | ||
| 143 | <xsd:enumeration value="PB"/> | ||
| 144 | <xsd:enumeration value="FP"/> | ||
| 145 | <xsd:enumeration value="NE"/> | ||
| 146 | </xsd:restriction> | ||
| 147 | </xsd:simpleType> | ||
| 148 | |||
| 149 | <xsd:simpleType name="AuthorizationCodeType"> | ||
| 150 | <xsd:restriction base="xsd:normalizedString"> | ||
| 151 | <xsd:minLength value="1"/> | ||
| 152 | <xsd:maxLength value="16" /> | ||
| 153 | </xsd:restriction> | ||
| 154 | </xsd:simpleType> | ||
| 155 | |||
| 156 | <xsd:simpleType name="AuthorizationAmountType"> | ||
| 157 | <xsd:restriction base="xsd:decimal"> | ||
| 158 | </xsd:restriction> | ||
| 159 | </xsd:simpleType> | ||
| 160 | |||
| 161 | <xsd:simpleType name="ProvinceStateOrInternationalType"> | ||
| 162 | <xsd:restriction base="xsd:normalizedString"> | ||
| 163 | <xsd:minLength value="1"/> | ||
| 164 | <xsd:maxLength value="20"/> | ||
| 165 | </xsd:restriction> | ||
| 166 | </xsd:simpleType> | ||
| 167 | |||
| 168 | |||
| 169 | |||
| 170 | <xsd:simpleType name="PostalCodeOrZipType"> | ||
| 171 | <xsd:restriction base="xsd:string"> | ||
| 172 | <xsd:pattern value="([A-Z]\d[A-Z]\d[A-Z]\d)|(\d{5}(-\d{4})?)"/> | ||
| 173 | </xsd:restriction> | ||
| 174 | </xsd:simpleType> | ||
| 175 | |||
| 176 | <xsd:simpleType name="PostalCodeOrZipOrInternationalType"> | ||
| 177 | <xsd:restriction base="xsd:normalizedString"> | ||
| 178 | <xsd:minLength value="1"/> | ||
| 179 | <xsd:maxLength value="14"/> | ||
| 180 | </xsd:restriction> | ||
| 181 | </xsd:simpleType> | ||
| 182 | |||
| 183 | <xsd:simpleType name="PostalCodeType"> | ||
| 184 | <xsd:restriction base="xsd:string"> | ||
| 185 | <xsd:pattern value="[A-Z]\d[A-Z]\d[A-Z]\d"/> | ||
| 186 | </xsd:restriction> | ||
| 187 | </xsd:simpleType> | ||
| 188 | |||
| 189 | <xsd:simpleType name="ZipCodeType"> | ||
| 190 | <xsd:restriction base="xsd:string"> | ||
| 191 | <xsd:pattern value="\d{5}(-\d{4})?"/> | ||
| 192 | </xsd:restriction> | ||
| 193 | </xsd:simpleType> | ||
| 194 | |||
| 195 | <xsd:simpleType name="CountryCodeType"> | ||
| 196 | <xsd:restriction base="xsd:string"> | ||
| 197 | <xsd:pattern value="[a-zA-Z][a-zA-Z]"/> | ||
| 198 | </xsd:restriction> | ||
| 199 | </xsd:simpleType> | ||
| 200 | |||
| 201 | <xsd:simpleType name="StateType"> | ||
| 202 | <xsd:restriction base="xsd:normalizedString"> | ||
| 203 | <xsd:minLength value="1"/> | ||
| 204 | <xsd:maxLength value="2"/> | ||
| 205 | </xsd:restriction> | ||
| 206 | </xsd:simpleType> | ||
| 207 | |||
| 208 | <xsd:simpleType name="ProvinceType"> | ||
| 209 | <xsd:restriction base="xsd:normalizedString"> | ||
| 210 | <xsd:minLength value="1"/> | ||
| 211 | <xsd:maxLength value="2"/> | ||
| 212 | </xsd:restriction> | ||
| 213 | </xsd:simpleType> | ||
| 214 | |||
| 215 | <xsd:simpleType name="PhoneNumberType"> | ||
| 216 | <xsd:restriction base="xsd:normalizedString"> | ||
| 217 | <xsd:maxLength value="25"/> | ||
| 218 | </xsd:restriction> | ||
| 219 | </xsd:simpleType> | ||
| 220 | |||
| 221 | <xsd:simpleType name="CustomerIDType"> | ||
| 222 | <xsd:restriction base="xsd:string"> | ||
| 223 | <xsd:pattern value="\d{1,10}" /> | ||
| 224 | </xsd:restriction> | ||
| 225 | </xsd:simpleType> | ||
| 226 | |||
| 227 | <xsd:simpleType name="ContractIDType"> | ||
| 228 | <xsd:restriction base="xsd:string"> | ||
| 229 | <xsd:pattern value="\d{1,10}" /> | ||
| 230 | </xsd:restriction> | ||
| 231 | </xsd:simpleType> | ||
| 232 | |||
| 233 | <xsd:simpleType name="MethodOfPaymentType"> | ||
| 234 | <xsd:restriction base="xsd:normalizedString"> | ||
| 235 | <xsd:maxLength value="15" /> | ||
| 236 | </xsd:restriction> | ||
| 237 | </xsd:simpleType> | ||
| 238 | |||
| 239 | <xsd:simpleType name="PoNumberType"> | ||
| 240 | <xsd:restriction base="xsd:string"> | ||
| 241 | <xsd:pattern value="[a-zA-Z0-9]{1,10}" /> | ||
| 242 | </xsd:restriction> | ||
| 243 | </xsd:simpleType> | ||
| 244 | |||
| 245 | <xsd:simpleType name="OutletIDType"> | ||
| 246 | <xsd:restriction base="xsd:normalizedString"> | ||
| 247 | <xsd:maxLength value="4" /> | ||
| 248 | </xsd:restriction> | ||
| 249 | </xsd:simpleType> | ||
| 250 | |||
| 251 | <xsd:simpleType name="CostTypeNonZero"> | ||
| 252 | <xsd:restriction base="xsd:decimal"> | ||
| 253 | <xsd:minExclusive value="0" /> | ||
| 254 | <xsd:maxInclusive value="999999.99" /> | ||
| 255 | <xsd:fractionDigits value="2" /> | ||
| 256 | </xsd:restriction> | ||
| 257 | </xsd:simpleType> | ||
| 258 | |||
| 259 | <xsd:simpleType name="CostTypeAllowsZero"> | ||
| 260 | <xsd:restriction base="xsd:decimal"> | ||
| 261 | <xsd:minInclusive value="0" /> | ||
| 262 | <xsd:maxInclusive value="999999.99" /> | ||
| 263 | <xsd:fractionDigits value="2" /> | ||
| 264 | </xsd:restriction> | ||
| 265 | </xsd:simpleType> | ||
| 266 | |||
| 267 | <xsd:simpleType name="CostTypeAllowsNegative"> | ||
| 268 | <xsd:restriction base="xsd:decimal"> | ||
| 269 | <xsd:minInclusive value="-999999.99" /> | ||
| 270 | <xsd:maxInclusive value="999999.99" /> | ||
| 271 | <xsd:fractionDigits value="2" /> | ||
| 272 | </xsd:restriction> | ||
| 273 | </xsd:simpleType> | ||
| 274 | |||
| 275 | <xsd:simpleType name="ServiceCodeType"> | ||
| 276 | <xsd:restriction base="xsd:normalizedString"> | ||
| 277 | <xsd:minLength value="1"/> | ||
| 278 | <xsd:maxLength value="32"/> | ||
| 279 | </xsd:restriction> | ||
| 280 | </xsd:simpleType> | ||
| 281 | |||
| 282 | <xsd:simpleType name="Time24HoursType"> | ||
| 283 | <xsd:restriction base="xsd:normalizedString"> | ||
| 284 | <xsd:pattern value="((0?\d)|(1\d)|(2[0-3])):[0-5]\d" /> | ||
| 285 | </xsd:restriction> | ||
| 286 | </xsd:simpleType> | ||
| 287 | |||
| 288 | |||
| 289 | <xsd:simpleType name="DimensionMeasurementType"> | ||
| 290 | <xsd:restriction base="xsd:decimal"> | ||
| 291 | <xsd:minExclusive value="0"/> | ||
| 292 | <xsd:maxInclusive value="999.9"/> | ||
| 293 | <xsd:fractionDigits value="1"/> | ||
| 294 | </xsd:restriction> | ||
| 295 | </xsd:simpleType> | ||
| 296 | |||
| 297 | <xsd:simpleType name="WeightType"> | ||
| 298 | <xsd:restriction base="xsd:decimal"> | ||
| 299 | <xsd:minExclusive value="0"/> | ||
| 300 | <xsd:maxInclusive value="99.999"/> | ||
| 301 | <xsd:fractionDigits value="3"/> | ||
| 302 | </xsd:restriction> | ||
| 303 | </xsd:simpleType> | ||
| 304 | |||
| 305 | <xsd:simpleType name="MeterNumberType"> | ||
| 306 | <xsd:restriction base="xsd:string"> | ||
| 307 | <xsd:pattern value="[0-9]{7}" /> | ||
| 308 | </xsd:restriction> | ||
| 309 | </xsd:simpleType> | ||
| 310 | |||
| 311 | <xsd:simpleType name="CustomsUnitOfMeasure"> | ||
| 312 | <xsd:restriction base="xsd:normalizedString"> | ||
| 313 | <xsd:length value="3" /> | ||
| 314 | </xsd:restriction> | ||
| 315 | </xsd:simpleType> | ||
| 316 | </xsd:schema> | ||
| 317 | `; | ||
| 318 | |||
| 319 | 1 | our $messages = q` | |
| 320 | <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.canadapost.ca/ws/messages" | ||
| 321 | xmlns="http://www.canadapost.ca/ws/messages" | ||
| 322 | elementFormDefault="qualified"> | ||
| 323 | <xsd:element name="messages"> | ||
| 324 | <xsd:complexType> | ||
| 325 | <xsd:sequence> | ||
| 326 | <xsd:element name="message" minOccurs="0" maxOccurs="unbounded"> | ||
| 327 | <xsd:complexType> | ||
| 328 | <xsd:all> | ||
| 329 | <xsd:element name="code" type="xsd:normalizedString"/> | ||
| 330 | <xsd:element name="description" type="xsd:normalizedString"/> | ||
| 331 | </xsd:all> | ||
| 332 | </xsd:complexType> | ||
| 333 | </xsd:element> | ||
| 334 | </xsd:sequence> | ||
| 335 | </xsd:complexType> | ||
| 336 | </xsd:element> | ||
| 337 | </xsd:schema> | ||
| 338 | `; | ||
| 339 | |||
| 340 | 1 | our $discovery = q` | |
| 341 | <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.canadapost.ca/ws/ship/rate-v4" | ||
| 342 | xmlns="http://www.canadapost.ca/ws/ship/rate-v4" elementFormDefault="qualified"> | ||
| 343 | |||
| 344 | <xsd:redefine schemaLocation="common.xsd"> | ||
| 345 | <xsd:simpleType name="RelType"> | ||
| 346 | <xsd:restriction base="RelType"> | ||
| 347 | <xsd:enumeration value="service"/> | ||
| 348 | <xsd:enumeration value="option"/> | ||
| 349 | </xsd:restriction> | ||
| 350 | </xsd:simpleType> | ||
| 351 | </xsd:redefine> | ||
| 352 | |||
| 353 | <xsd:element name="services"> | ||
| 354 | <xsd:complexType> | ||
| 355 | <xsd:sequence> | ||
| 356 | <xsd:element name="service" minOccurs="0" maxOccurs="unbounded"> | ||
| 357 | <xsd:complexType> | ||
| 358 | <xsd:all> | ||
| 359 | <xsd:element name="service-code" type="ServiceCodeType"/> | ||
| 360 | <xsd:element name="service-name" type="xsd:normalizedString"/> | ||
| 361 | <xsd:element name="link" type="LinkType"/> | ||
| 362 | </xsd:all> | ||
| 363 | </xsd:complexType> | ||
| 364 | </xsd:element> | ||
| 365 | </xsd:sequence> | ||
| 366 | </xsd:complexType> | ||
| 367 | </xsd:element> | ||
| 368 | |||
| 369 | <xsd:element name="option"> | ||
| 370 | <xsd:complexType> | ||
| 371 | <xsd:all> | ||
| 372 | <xsd:element name="option-code" type="xsd:normalizedString"/> | ||
| 373 | <xsd:element name="option-name" type="xsd:normalizedString"/> | ||
| 374 | <xsd:element name="option-class" type="xsd:normalizedString"/> | ||
| 375 | <xsd:element name="prints-on-label" type="xsd:boolean"/> | ||
| 376 | <xsd:element name="qualifier-required" type="xsd:boolean"/> | ||
| 377 | <xsd:element name="conflicting-options" minOccurs="0"> | ||
| 378 | <xsd:complexType> | ||
| 379 | <xsd:sequence> | ||
| 380 | <xsd:element name="option-code" type="xsd:normalizedString" maxOccurs="unbounded"/> | ||
| 381 | </xsd:sequence> | ||
| 382 | </xsd:complexType> | ||
| 383 | </xsd:element> | ||
| 384 | <xsd:element name="prerequisite-options" minOccurs="0"> | ||
| 385 | <xsd:complexType> | ||
| 386 | <xsd:sequence> | ||
| 387 | <xsd:element name="option-code" type="xsd:normalizedString" maxOccurs="unbounded"/> | ||
| 388 | </xsd:sequence> | ||
| 389 | </xsd:complexType> | ||
| 390 | </xsd:element> | ||
| 391 | </xsd:all> | ||
| 392 | </xsd:complexType> | ||
| 393 | </xsd:element> | ||
| 394 | |||
| 395 | <xsd:element name="service"> | ||
| 396 | <xsd:complexType> | ||
| 397 | <xsd:all> | ||
| 398 | <xsd:element name="service-code" type="ServiceCodeType"/> | ||
| 399 | <xsd:element name="service-name" type="xsd:normalizedString"/> | ||
| 400 | <xsd:element name="comment" type="xsd:normalizedString" minOccurs="0"/> | ||
| 401 | <xsd:element name="options" minOccurs="0"> | ||
| 402 | <xsd:complexType> | ||
| 403 | <xsd:sequence> | ||
| 404 | <xsd:element name="option" maxOccurs="unbounded"> | ||
| 405 | <xsd:complexType> | ||
| 406 | <xsd:all> | ||
| 407 | <xsd:element name="option-code" type="xsd:normalizedString"/> | ||
| 408 | <xsd:element name="option-name" type="xsd:normalizedString"/> | ||
| 409 | <xsd:element name="link" type="LinkType"/> | ||
| 410 | <xsd:element name="mandatory" type="xsd:boolean"/> | ||
| 411 | <xsd:element name="qualifier-required" type="xsd:boolean"/> | ||
| 412 | <xsd:element name="qualifier-max" type="xsd:decimal" minOccurs="0"/> | ||
| 413 | </xsd:all> | ||
| 414 | </xsd:complexType> | ||
| 415 | </xsd:element> | ||
| 416 | </xsd:sequence> | ||
| 417 | </xsd:complexType> | ||
| 418 | </xsd:element> | ||
| 419 | <xsd:element name="restrictions"> | ||
| 420 | <xsd:complexType> | ||
| 421 | <xsd:all> | ||
| 422 | <xsd:element name="weight-restriction" type="NumberRangeType"/> | ||
| 423 | <xsd:element name="dimensional-restrictions"> | ||
| 424 | <xsd:complexType> | ||
| 425 | <xsd:all> | ||
| 426 | <xsd:element name="length" type="NumberRangeType"/> | ||
| 427 | <xsd:element name="width" type="NumberRangeType"/> | ||
| 428 | <xsd:element name="height" type="NumberRangeType"/> | ||
| 429 | <xsd:element name="length-plus-girth-max" type="xsd:decimal" minOccurs="0"/> | ||
| 430 | <xsd:element name="length-height-width-sum-max" type="xsd:decimal" minOccurs="0"/> | ||
| 431 | <xsd:element name="oversize-limit" type="xsd:decimal" minOccurs="0"/> | ||
| 432 | </xsd:all> | ||
| 433 | </xsd:complexType> | ||
| 434 | </xsd:element> | ||
| 435 | <xsd:element name="density-factor" type="xsd:decimal" minOccurs="0"/> | ||
| 436 | <xsd:element name="can-ship-in-mailing-tube" type="xsd:boolean"/> | ||
| 437 | <xsd:element name="can-ship-unpackaged" type="xsd:boolean"/> | ||
| 438 | <xsd:element name="allowed-as-return-service" type="xsd:boolean"/> | ||
| 439 | </xsd:all> | ||
| 440 | </xsd:complexType> | ||
| 441 | </xsd:element> | ||
| 442 | </xsd:all> | ||
| 443 | </xsd:complexType> | ||
| 444 | </xsd:element> | ||
| 445 | |||
| 446 | <xsd:element name="options"> | ||
| 447 | <xsd:complexType> | ||
| 448 | <xsd:sequence> | ||
| 449 | <xsd:element name="option" minOccurs="0" maxOccurs="unbounded"> | ||
| 450 | <xsd:complexType> | ||
| 451 | <xsd:all> | ||
| 452 | <xsd:element name="option-code" type="xsd:token"/> | ||
| 453 | <xsd:element name="option-name" type="xsd:token"/> | ||
| 454 | <xsd:element name="link" type="LinkType"/> | ||
| 455 | <xsd:element name="qualifier-required" type="xsd:boolean"/> | ||
| 456 | </xsd:all> | ||
| 457 | </xsd:complexType> | ||
| 458 | </xsd:element> | ||
| 459 | </xsd:sequence> | ||
| 460 | </xsd:complexType> | ||
| 461 | </xsd:element> | ||
| 462 | |||
| 463 | <xsd:complexType name="NumberRangeType"> | ||
| 464 | <xsd:attribute name="min" type="xsd:decimal"/> | ||
| 465 | <xsd:attribute name="max" type="xsd:decimal"/> | ||
| 466 | </xsd:complexType> | ||
| 467 | `; | ||
| 468 | |||
| 469 | 1 | our $rating = q` | |
| 470 | <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.canadapost.ca/ws/ship/rate-v4" | ||
| 471 | xmlns="http://www.canadapost.ca/ws/ship/rate-v4" elementFormDefault="qualified"> | ||
| 472 | <xsd:include schemaLocation="common.xsd"/> | ||
| 473 | |||
| 474 | <xsd:element name="mailing-scenario"> | ||
| 475 | <xsd:complexType> | ||
| 476 | <xsd:all> | ||
| 477 | <xsd:element name="customer-number" type="CustomerIDType" minOccurs="0"/> | ||
| 478 | <xsd:element name="contract-id" type="ContractIDType" minOccurs="0"/> | ||
| 479 | <xsd:element name="promo-code" type="PromoCodeType" minOccurs="0"/> | ||
| 480 | <xsd:element name="quote-type" minOccurs="0"> | ||
| 481 | <xsd:simpleType> | ||
| 482 | <xsd:restriction base="xsd:string"> | ||
| 483 | <xsd:enumeration value="commercial"/> | ||
| 484 | <xsd:enumeration value="counter"/> | ||
| 485 | </xsd:restriction> | ||
| 486 | </xsd:simpleType> | ||
| 487 | </xsd:element> | ||
| 488 | <xsd:element name="expected-mailing-date" type="xsd:date" minOccurs="0"/> | ||
| 489 | <xsd:element name="options" minOccurs="0"> | ||
| 490 | <xsd:complexType> | ||
| 491 | <xsd:sequence> | ||
| 492 | <xsd:element name="option" maxOccurs="20"> | ||
| 493 | <xsd:complexType> | ||
| 494 | <xsd:all> | ||
| 495 | <xsd:element name="option-code"> | ||
| 496 | <xsd:simpleType> | ||
| 497 | <xsd:restriction base="xsd:normalizedString"> | ||
| 498 | <xsd:minLength value="1"/> | ||
| 499 | <xsd:maxLength value="10"/> | ||
| 500 | </xsd:restriction> | ||
| 501 | </xsd:simpleType> | ||
| 502 | </xsd:element> | ||
| 503 | <xsd:element name="option-amount" type="CostTypeNonZero" minOccurs="0"/> | ||
| 504 | </xsd:all> | ||
| 505 | </xsd:complexType> | ||
| 506 | </xsd:element> | ||
| 507 | </xsd:sequence> | ||
| 508 | </xsd:complexType> | ||
| 509 | </xsd:element> | ||
| 510 | <xsd:element name="parcel-characteristics"> | ||
| 511 | <xsd:complexType> | ||
| 512 | <xsd:all> | ||
| 513 | <xsd:element name="weight"> | ||
| 514 | <xsd:simpleType> | ||
| 515 | <xsd:restriction base="xsd:decimal"> | ||
| 516 | <xsd:minExclusive value="0"/> | ||
| 517 | <xsd:maxInclusive value="99.999"/> | ||
| 518 | <xsd:fractionDigits value="3"/> | ||
| 519 | </xsd:restriction> | ||
| 520 | </xsd:simpleType> | ||
| 521 | </xsd:element> | ||
| 522 | <xsd:element name="dimensions" minOccurs="0"> | ||
| 523 | <xsd:complexType> | ||
| 524 | <xsd:all> | ||
| 525 | <xsd:element name="length" type="DimensionMeasurementType"/> | ||
| 526 | <xsd:element name="width" type="DimensionMeasurementType"/> | ||
| 527 | <xsd:element name="height" type="DimensionMeasurementType"/> | ||
| 528 | </xsd:all> | ||
| 529 | </xsd:complexType> | ||
| 530 | </xsd:element> | ||
| 531 | <xsd:element name="unpackaged" type="xsd:boolean" minOccurs="0"/> | ||
| 532 | <xsd:element name="mailing-tube" type="xsd:boolean" minOccurs="0"/> | ||
| 533 | <xsd:element name="oversized" type="xsd:boolean" minOccurs="0"/> | ||
| 534 | </xsd:all> | ||
| 535 | </xsd:complexType> | ||
| 536 | </xsd:element> | ||
| 537 | <xsd:element name="services" minOccurs="0"> | ||
| 538 | <xsd:complexType> | ||
| 539 | <xsd:sequence> | ||
| 540 | <xsd:element name="service-code" type="ServiceCodeType" maxOccurs="20"/> | ||
| 541 | </xsd:sequence> | ||
| 542 | </xsd:complexType> | ||
| 543 | </xsd:element> | ||
| 544 | <xsd:element name="origin-postal-code" type="PostalCodeType"/> | ||
| 545 | <xsd:element name="destination"> | ||
| 546 | <xsd:complexType> | ||
| 547 | <xsd:choice> | ||
| 548 | <xsd:element name="domestic"> | ||
| 549 | <xsd:complexType> | ||
| 550 | <xsd:all> | ||
| 551 | <xsd:element name="postal-code" type="PostalCodeType"/> | ||
| 552 | </xsd:all> | ||
| 553 | </xsd:complexType> | ||
| 554 | </xsd:element> | ||
| 555 | <xsd:element name="united-states"> | ||
| 556 | <xsd:complexType> | ||
| 557 | <xsd:all> | ||
| 558 | <xsd:element name="zip-code" type="ZipCodeType"/> | ||
| 559 | </xsd:all> | ||
| 560 | </xsd:complexType> | ||
| 561 | </xsd:element> | ||
| 562 | <xsd:element name="international"> | ||
| 563 | <xsd:complexType> | ||
| 564 | <xsd:all> | ||
| 565 | <xsd:element name="country-code" type="CountryCodeType"/> | ||
| 566 | <xsd:element name="postal-code" type="IntlPostalCodeType" minOccurs="0"/> | ||
| 567 | </xsd:all> | ||
| 568 | </xsd:complexType> | ||
| 569 | </xsd:element> | ||
| 570 | </xsd:choice> | ||
| 571 | </xsd:complexType> | ||
| 572 | </xsd:element> | ||
| 573 | </xsd:all> | ||
| 574 | </xsd:complexType> | ||
| 575 | </xsd:element> | ||
| 576 | |||
| 577 | <xsd:element name="price-quotes"> | ||
| 578 | <xsd:complexType> | ||
| 579 | <xsd:sequence> | ||
| 580 | <xsd:element name="price-quote" minOccurs="0" maxOccurs="unbounded"> | ||
| 581 | <xsd:complexType> | ||
| 582 | <xsd:all> | ||
| 583 | <xsd:element name="service-code" type="ServiceCodeType"/> | ||
| 584 | <xsd:element name="service-link" type="LinkType"/> | ||
| 585 | <xsd:element name="service-name" type="xsd:normalizedString"/> | ||
| 586 | <xsd:element name="price-details"> | ||
| 587 | <xsd:complexType> | ||
| 588 | <xsd:all> | ||
| 589 | <xsd:element name="base" type="xsd:decimal"/> | ||
| 590 | <xsd:element name="taxes" minOccurs="0"> | ||
| 591 | <xsd:complexType> | ||
| 592 | <xsd:all> | ||
| 593 | <xsd:element name="gst" type="TaxType" minOccurs="0"/> | ||
| 594 | <xsd:element name="pst" type="TaxType" minOccurs="0"/> | ||
| 595 | <xsd:element name="hst" type="TaxType" minOccurs="0"/> | ||
| 596 | </xsd:all> | ||
| 597 | </xsd:complexType> | ||
| 598 | </xsd:element> | ||
| 599 | <xsd:element name="due" type="xsd:decimal"/> | ||
| 600 | <xsd:element name="options" minOccurs="0"> | ||
| 601 | <xsd:complexType> | ||
| 602 | <xsd:sequence> | ||
| 603 | <xsd:element name="option" maxOccurs="20"> | ||
| 604 | <xsd:complexType> | ||
| 605 | <xsd:all> | ||
| 606 | <xsd:element name="option-code" type="xsd:normalizedString"/> | ||
| 607 | <xsd:element name="option-name" type="xsd:normalizedString"/> | ||
| 608 | <xsd:element name="option-price" type="xsd:decimal"/> | ||
| 609 | <xsd:element name="qualifier" minOccurs="0"> | ||
| 610 | <xsd:complexType> | ||
| 611 | <xsd:all> | ||
| 612 | <xsd:element name="step-size" type="xsd:decimal" minOccurs="0"/> | ||
| 613 | <xsd:element name="step-cost" type="xsd:decimal" minOccurs="0"/> | ||
| 614 | <xsd:element name="included-amount" type="xsd:decimal" minOccurs="0"/> | ||
| 615 | <xsd:element name="max-value" type="xsd:decimal" minOccurs="0"/> | ||
| 616 | <xsd:element name="included" type="xsd:boolean" minOccurs="0"/> | ||
| 617 | <xsd:element name="percent" type="xsd:decimal" minOccurs="0"/> | ||
| 618 | </xsd:all> | ||
| 619 | </xsd:complexType> | ||
| 620 | </xsd:element> | ||
| 621 | </xsd:all> | ||
| 622 | </xsd:complexType> | ||
| 623 | </xsd:element> | ||
| 624 | </xsd:sequence> | ||
| 625 | </xsd:complexType> | ||
| 626 | </xsd:element> | ||
| 627 | <xsd:element name="adjustments" minOccurs="0"> | ||
| 628 | <xsd:complexType> | ||
| 629 | <xsd:sequence> | ||
| 630 | <xsd:element name="adjustment" maxOccurs="20"> | ||
| 631 | <xsd:complexType> | ||
| 632 | <xsd:all> | ||
| 633 | <xsd:element name="adjustment-code" type="xsd:normalizedString"/> | ||
| 634 | <xsd:element name="adjustment-name" type="xsd:normalizedString"/> | ||
| 635 | <xsd:element name="adjustment-cost" type="xsd:decimal"/> | ||
| 636 | <xsd:element name="qualifier" minOccurs="0"> | ||
| 637 | <xsd:complexType> | ||
| 638 | <xsd:all> | ||
| 639 | <xsd:element name="percent" type="xsd:decimal"/> | ||
| 640 | </xsd:all> | ||
| 641 | </xsd:complexType> | ||
| 642 | </xsd:element> | ||
| 643 | </xsd:all> | ||
| 644 | </xsd:complexType> | ||
| 645 | </xsd:element> | ||
| 646 | </xsd:sequence> | ||
| 647 | </xsd:complexType> | ||
| 648 | </xsd:element> | ||
| 649 | </xsd:all> | ||
| 650 | </xsd:complexType> | ||
| 651 | </xsd:element> | ||
| 652 | <xsd:element name="weight-details"> | ||
| 653 | <xsd:complexType> | ||
| 654 | <xsd:all> | ||
| 655 | <xsd:element name="cubed-weight" type="xsd:decimal" minOccurs="0"/> | ||
| 656 | </xsd:all> | ||
| 657 | </xsd:complexType> | ||
| 658 | </xsd:element> | ||
| 659 | <xsd:element name="service-standard"> | ||
| 660 | <xsd:complexType> | ||
| 661 | <xsd:all> | ||
| 662 | <xsd:element name="am-delivery" type="xsd:boolean"/> | ||
| 663 | <xsd:element name="guaranteed-delivery" type="xsd:boolean"/> | ||
| 664 | <xsd:element name="expected-transit-time" minOccurs="0"> | ||
| 665 | <xsd:simpleType> | ||
| 666 | <xsd:restriction base="xsd:integer"> | ||
| 667 | <xsd:minInclusive value="0" /> | ||
| 668 | <xsd:maxInclusive value="99" /> | ||
| 669 | </xsd:restriction> | ||
| 670 | </xsd:simpleType> | ||
| 671 | </xsd:element> | ||
| 672 | <xsd:element name="expected-delivery-date" type="xsd:date" minOccurs="0"/> | ||
| 673 | </xsd:all> | ||
| 674 | </xsd:complexType> | ||
| 675 | </xsd:element> | ||
| 676 | </xsd:all> | ||
| 677 | </xsd:complexType> | ||
| 678 | </xsd:element> | ||
| 679 | </xsd:sequence> | ||
| 680 | </xsd:complexType> | ||
| 681 | </xsd:element> | ||
| 682 | |||
| 683 | <xsd:complexType name="TaxType"> | ||
| 684 | <xsd:simpleContent> | ||
| 685 | <xsd:extension base="xsd:decimal"> | ||
| 686 | <xsd:attribute name="percent" type="xsd:decimal" use="optional"/> | ||
| 687 | </xsd:extension> | ||
| 688 | </xsd:simpleContent> | ||
| 689 | </xsd:complexType> | ||
| 690 | |||
| 691 | <xsd:simpleType name="PromoCodeType"> | ||
| 692 | <xsd:restriction base="xsd:normalizedString"> | ||
| 693 | <xsd:minLength value="1" /> | ||
| 694 | <xsd:maxLength value="10" /> | ||
| 695 | </xsd:restriction> | ||
| 696 | </xsd:simpleType> | ||
| 697 | <xsd:simpleType name="IntlPostalCodeType"> | ||
| 698 | <xsd:restriction base="xsd:normalizedString"> | ||
| 699 | <xsd:minLength value="1" /> | ||
| 700 | <xsd:maxLength value="10" /> | ||
| 701 | </xsd:restriction> | ||
| 702 | </xsd:simpleType> | ||
| 703 | `; | ||
| 704 | |||
| 705 | |||
| 706 | 1 | our $shipment = q` | |
| 707 | <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.canadapost.ca/ws/shipment-v8" xmlns="http://www.canadapost.ca/ws/shipment-v8" elementFormDefault="qualified"> | ||
| 708 | <xsd:annotation> | ||
| 709 | <xsd:documentation> | ||
| 710 | - Added customer-request-id to Create Shipment, to be used by Get Shipments. | ||
| 711 | - Added promo-code to Create Shipment. | ||
| 712 | - Added provide-pricing-info and provide-receipt-info flags to Create Shipment. | ||
| 713 | - Added pre-authorized-payment to Create Shipment. | ||
| 714 | - Get Shipment Receipt returns credit card receipt details or supplier account receipt details. | ||
| 715 | - Modified Get Shipments: | ||
| 716 | - added provideShipmentInfo url parameter in request to get a structured list similiar to Get Shipment. | ||
| 717 | - added customer-request-id in request that matches the change to the create request. | ||
| 718 | </xsd:documentation> | ||
| 719 | </xsd:annotation> | ||
| 720 | |||
| 721 | <xsd:include schemaLocation="common.xsd"/> | ||
| 722 | <!--<xsd:redefine schemaLocation="common.xsd"> | ||
| 723 | <xsd:simpleType name="RelType"> | ||
| 724 | <xsd:restriction base="RelType"> | ||
| 725 | <xsd:enumeration value="self"/> | ||
| 726 | <xsd:enumeration value="details"/> | ||
| 727 | <xsd:enumeration value="group"/> | ||
| 728 | <xsd:enumeration value="shipment"/> | ||
| 729 | <xsd:enumeration value="price"/> | ||
| 730 | <xsd:enumeration value="label"/> | ||
| 731 | <xsd:enumeration value="returnLabel"/> | ||
| 732 | <xsd:enumeration value="commercialInvoice"/> | ||
| 733 | <xsd:enumeration value="receipt"/> | ||
| 734 | <xsd:enumeration value="refund"/> | ||
| 735 | </xsd:restriction> | ||
| 736 | </xsd:simpleType> | ||
| 737 | </xsd:redefine>--> | ||
| 738 | |||
| 739 | |||
| 740 | <xsd:element name="shipment" type="ShipmentType"/> | ||
| 741 | |||
| 742 | <xsd:element name="shipment-info" type="ShipmentInfoType"/> | ||
| 743 | |||
| 744 | <xsd:element name="shipment-details" type="ShipmentDetailsType"/> | ||
| 745 | |||
| 746 | <xsd:element name="shipments" type="ShipmentsType" /> | ||
| 747 | |||
| 748 | <xsd:element name="shipment-price" type="ShipmentPriceType" /> | ||
| 749 | |||
| 750 | <xsd:element name="shipment-cc-receipt" type="ShipmentCCReceiptType" /> | ||
| 751 | |||
| 752 | <xsd:element name="shipment-receipt" type="ShipmentReceiptType" /> | ||
| 753 | |||
| 754 | <xsd:element name="shipment-refund-request" type="ShipmentRefundRequestType" /> | ||
| 755 | |||
| 756 | <xsd:element name="shipment-refund-request-info" type="ShipmentRefundRequestInfoType" /> | ||
| 757 | |||
| 758 | <xsd:element name="groups" type="GroupsType" /> | ||
| 759 | |||
| 760 | <xsd:complexType name="GroupsType"> | ||
| 761 | <xsd:sequence> | ||
| 762 | <xsd:element name="group" type="GroupType" minOccurs="0" maxOccurs="unbounded"/> | ||
| 763 | </xsd:sequence> | ||
| 764 | </xsd:complexType> | ||
| 765 | |||
| 766 | <xsd:complexType name="GroupType"> | ||
| 767 | <xsd:all> | ||
| 768 | <xsd:element name="group-id" type="GroupIDType"/> | ||
| 769 | <xsd:element ref="link" /> | ||
| 770 | </xsd:all> | ||
| 771 | </xsd:complexType> | ||
| 772 | |||
| 773 | |||
| 774 | <xsd:complexType name="ShipmentPriceType"> | ||
| 775 | <xsd:all> | ||
| 776 | <xsd:element name="service-code" type="ServiceCodeType"/> | ||
| 777 | <xsd:element name="base-amount" type="CostTypeNonZero"/> | ||
| 778 | <xsd:element name="priced-options" type="PricedOptionsType" minOccurs="0"/> | ||
| 779 | <xsd:element name="adjustments" type="AdjustmentsType" minOccurs="0"/> | ||
| 780 | <xsd:element name="pre-tax-amount" type="CostTypeAllowsZero"/> | ||
| 781 | <xsd:element name="gst-amount" type="CostTypeAllowsZero"/> | ||
| 782 | <xsd:element name="pst-amount" type="CostTypeAllowsZero"/> | ||
| 783 | <xsd:element name="hst-amount" type="CostTypeAllowsZero"/> | ||
| 784 | <xsd:element name="due-amount" type="CostTypeAllowsZero"/> | ||
| 785 | <xsd:element name="service-standard" type="ServiceStandardType"/> | ||
| 786 | <xsd:element name="rated-weight"> | ||
| 787 | <xsd:simpleType> | ||
| 788 | <xsd:restriction base="xsd:decimal"> | ||
| 789 | <xsd:minExclusive value="0"/> | ||
| 790 | <xsd:maxInclusive value="999.999"/> | ||
| 791 | <xsd:fractionDigits value="3"/> | ||
| 792 | </xsd:restriction> | ||
| 793 | </xsd:simpleType> | ||
| 794 | </xsd:element> | ||
| 795 | </xsd:all> | ||
| 796 | </xsd:complexType> | ||
| 797 | |||
| 798 | <xsd:complexType name="ServiceStandardType"> | ||
| 799 | <xsd:all> | ||
| 800 | <xsd:element name="am-delivery" type="xsd:boolean"/> | ||
| 801 | <xsd:element name="guaranteed-delivery" type="xsd:boolean"/> | ||
| 802 | <xsd:element name="expected-transmit-time" minOccurs="0"> | ||
| 803 | <xsd:simpleType> | ||
| 804 | <xsd:restriction base="xsd:integer"> | ||
| 805 | <xsd:minInclusive value="0"/> | ||
| 806 | <xsd:maxInclusive value="99"/> | ||
| 807 | </xsd:restriction> | ||
| 808 | </xsd:simpleType> | ||
| 809 | </xsd:element> | ||
| 810 | <xsd:element name="expected-delivery-date" type="xsd:date" minOccurs="0"/> | ||
| 811 | </xsd:all> | ||
| 812 | </xsd:complexType> | ||
| 813 | |||
| 814 | <xsd:complexType name="PricedOptionsType"> | ||
| 815 | <xsd:sequence> | ||
| 816 | <xsd:element name="priced-option" type="PricedOptionType" minOccurs="0" maxOccurs="unbounded"/> | ||
| 817 | </xsd:sequence> | ||
| 818 | </xsd:complexType> | ||
| 819 | |||
| 820 | <xsd:complexType name="PricedOptionType"> | ||
| 821 | <xsd:all> | ||
| 822 | <xsd:element name="option-code" type="xsd:normalizedString"/> | ||
| 823 | <xsd:element name="option-price" minOccurs="0" type="CostTypeAllowsNegative" /> | ||
| 824 | </xsd:all> | ||
| 825 | </xsd:complexType> | ||
| 826 | |||
| 827 | <xsd:complexType name="AdjustmentsType"> | ||
| 828 | <xsd:sequence> | ||
| 829 | <xsd:element name="adjustment" type="AdjustmentType" minOccurs="0" maxOccurs="unbounded"/> | ||
| 830 | </xsd:sequence> | ||
| 831 | </xsd:complexType> | ||
| 832 | |||
| 833 | <xsd:complexType name="AdjustmentType"> | ||
| 834 | <xsd:all> | ||
| 835 | <xsd:element name="adjustment-code" type="xsd:normalizedString"/> | ||
| 836 | <xsd:element name="adjustment-amount" type="CostTypeAllowsNegative"/> | ||
| 837 | </xsd:all> | ||
| 838 | </xsd:complexType> | ||
| 839 | |||
| 840 | <xsd:complexType name="ShipmentsType"> | ||
| 841 | <xsd:sequence> | ||
| 842 | <xsd:choice> | ||
| 843 | <xsd:element ref="link" minOccurs="0" maxOccurs="unbounded"/> | ||
| 844 | <xsd:element name="shipment-info" type="ShipmentInfoType" minOccurs="0" maxOccurs="unbounded"/> | ||
| 845 | </xsd:choice> | ||
| 846 | </xsd:sequence> | ||
| 847 | </xsd:complexType> | ||
| 848 | |||
| 849 | <xsd:complexType name="ShipmentInfoType"> | ||
| 850 | <xsd:all> | ||
| 851 | <xsd:element name="customer-request-id" type="CustomerRequestIdType" minOccurs="0" /> | ||
| 852 | <xsd:element name="shipment-id" type="ShipmentIDType"/> | ||
| 853 | <xsd:element name="shipment-status" type="ShipmentStatusType"/> | ||
| 854 | <xsd:element name="tracking-pin" type="TrackingPINType" minOccurs="0"/> | ||
| 855 | <xsd:element name="return-tracking-pin" type="TrackingPINType" minOccurs="0"/> | ||
| 856 | <xsd:element name="po-number" type="PoNumberType" minOccurs="0"/> | ||
| 857 | <xsd:element name="shipment-price" type="ShipmentPriceType" minOccurs="0"/> | ||
| 858 | <xsd:element name="shipment-receipt" type="ShipmentReceiptType" minOccurs="0"/> | ||
| 859 | <xsd:element ref="links"/> | ||
| 860 | </xsd:all> | ||
| 861 | </xsd:complexType> | ||
| 862 | |||
| 863 | <!-- group-id and transmit-shipment are mutually exclusive --> | ||
| 864 | <xsd:element name="groupIdOrTransmitShipment" abstract="true" /> | ||
| 865 | <xsd:element name="group-id" type="GroupIDType" substitutionGroup="groupIdOrTransmitShipment"/> | ||
| 866 | <xsd:element name="transmit-shipment" type="xsd:boolean" fixed="true" substitutionGroup="groupIdOrTransmitShipment"/> | ||
| 867 | |||
| 868 | <xsd:complexType name="ShipmentType"> | ||
| 869 | <xsd:all> | ||
| 870 | <xsd:element name="customer-request-id" type="CustomerRequestIdType" minOccurs="0" /> | ||
| 871 | <xsd:element ref="groupIdOrTransmitShipment" /> | ||
| 872 | <xsd:element name="quickship-label-requested" type="xsd:boolean" minOccurs="0"/> | ||
| 873 | <xsd:element name="cpc-pickup-indicator" type="xsd:boolean" fixed="true" minOccurs="0"/> | ||
| 874 | <xsd:element name="requested-shipping-point" type="PostalCodeType" minOccurs="0"/> | ||
| 875 | <xsd:element name="shipping-point-id" type="OutletIDType" minOccurs="0" /> | ||
| 876 | <xsd:element name="expected-mailing-date" type="xsd:date" minOccurs="0"/> | ||
| 877 | <xsd:element name="provide-pricing-info" type="xsd:boolean" fixed="true" minOccurs="0"/> | ||
| 878 | <xsd:element name="provide-receipt-info" type="xsd:boolean" fixed="true" minOccurs="0"/> | ||
| 879 | <xsd:element name="delivery-spec" type="DeliverySpecType"/> | ||
| 880 | <xsd:element name="return-spec" type="ReturnSpecType" minOccurs="0"/> | ||
| 881 | <xsd:element name="pre-authorized-payment" type="PreAuthorizedPaymentType" minOccurs="0"/> | ||
| 882 | </xsd:all> | ||
| 883 | </xsd:complexType> | ||
| 884 | |||
| 885 | |||
| 886 | <xsd:complexType name="DeliverySpecType"> | ||
| 887 | <xsd:all> | ||
| 888 | <xsd:element name="service-code" type="ServiceCodeType"/> | ||
| 889 | <xsd:element name="sender" type="SenderType"/> | ||
| 890 | <xsd:element name="destination" type="DestinationType"/> | ||
| 891 | <xsd:element name="options" minOccurs="0"> | ||
| 892 | <xsd:complexType> | ||
| 893 | <xsd:sequence> | ||
| 894 | <xsd:element name="option" type="OptionType" maxOccurs="20"/> | ||
| 895 | </xsd:sequence> | ||
| 896 | </xsd:complexType> | ||
| 897 | </xsd:element> | ||
| 898 | <xsd:element name="parcel-characteristics" type="ParcelCharacteristicsType"/> | ||
| 899 | <xsd:element name="notification" type="NotificationType" minOccurs="0"/> | ||
| 900 | <xsd:element name="print-preferences" type="PrintPreferencesType" minOccurs="0"/> | ||
| 901 | <xsd:element name="preferences" type="PreferencesType"/> | ||
| 902 | <xsd:element name="references" type="ReferencesType" minOccurs="0"/> | ||
| 903 | <xsd:element name="customs" type="CustomsType" minOccurs="0"/> | ||
| 904 | <xsd:element name="settlement-info" type="SettlementInfoType"/> | ||
| 905 | </xsd:all> | ||
| 906 | </xsd:complexType> | ||
| 907 | |||
| 908 | |||
| 909 | |||
| 910 | <xsd:complexType name="CustomsType"> | ||
| 911 | <xsd:all> | ||
| 912 | <xsd:element name="currency"> | ||
| 913 | <xsd:simpleType> | ||
| 914 | <xsd:restriction base="xsd:normalizedString"> | ||
| 915 | <xsd:minLength value="1"/> | ||
| 916 | <xsd:maxLength value="3"/> | ||
| 917 | </xsd:restriction> | ||
| 918 | </xsd:simpleType> | ||
| 919 | </xsd:element> | ||
| 920 | <xsd:element name="conversion-from-cad" minOccurs="0"> | ||
| 921 | <xsd:simpleType> | ||
| 922 | <xsd:restriction base="xsd:decimal"> | ||
| 923 | <xsd:minExclusive value="0"/> | ||
| 924 | <xsd:maxInclusive value="999.999999"/> | ||
| 925 | <xsd:fractionDigits value="6"/> | ||
| 926 | </xsd:restriction> | ||
| 927 | </xsd:simpleType> | ||
| 928 | </xsd:element> | ||
| 929 | <xsd:element name="reason-for-export"> | ||
| 930 | <xsd:simpleType> | ||
| 931 | <xsd:restriction base="xsd:normalizedString"> | ||
| 932 | <xsd:minLength value="1"/> | ||
| 933 | <xsd:maxLength value="3"/> | ||
| 934 | </xsd:restriction> | ||
| 935 | </xsd:simpleType> | ||
| 936 | </xsd:element> | ||
| 937 | <xsd:element name="other-reason" minOccurs="0"> | ||
| 938 | <xsd:simpleType> | ||
| 939 | <xsd:restriction base="xsd:normalizedString"> | ||
| 940 | <xsd:maxLength value="44"/> | ||
| 941 | </xsd:restriction> | ||
| 942 | </xsd:simpleType> | ||
| 943 | </xsd:element> | ||
| 944 | <xsd:element name="sku-list"> | ||
| 945 | <xsd:complexType> | ||
| 946 | <xsd:sequence> | ||
| 947 | <xsd:element name="item" type="SkuType" maxOccurs="500"/> | ||
| 948 | </xsd:sequence> | ||
| 949 | </xsd:complexType> | ||
| 950 | </xsd:element> | ||
| 951 | <xsd:element name="duties-and-taxes-prepaid" minOccurs="0"> | ||
| 952 | <xsd:simpleType> | ||
| 953 | <xsd:restriction base="xsd:decimal"> | ||
| 954 | <xsd:minExclusive value="0"/> | ||
| 955 | <xsd:maxInclusive value="99999.99"/> | ||
| 956 | <xsd:fractionDigits value="2"/> | ||
| 957 | </xsd:restriction> | ||
| 958 | </xsd:simpleType> | ||
| 959 | </xsd:element> | ||
| 960 | <xsd:element name="certificate-number" minOccurs="0"> | ||
| 961 | <xsd:simpleType> | ||
| 962 | <xsd:restriction base="xsd:normalizedString"> | ||
| 963 | <xsd:maxLength value="10"/> | ||
| 964 | </xsd:restriction> | ||
| 965 | </xsd:simpleType> | ||
| 966 | </xsd:element> | ||
| 967 | <xsd:element name="licence-number" minOccurs="0"> | ||
| 968 | <xsd:simpleType> | ||
| 969 | <xsd:restriction base="xsd:normalizedString"> | ||
| 970 | <xsd:maxLength value="10"/> | ||
| 971 | </xsd:restriction> | ||
| 972 | </xsd:simpleType> | ||
| 973 | </xsd:element> | ||
| 974 | <xsd:element name="invoice-number" minOccurs="0"> | ||
| 975 | <xsd:simpleType> | ||
| 976 | <xsd:restriction base="xsd:normalizedString"> | ||
| 977 | <xsd:maxLength value="10"/> | ||
| 978 | </xsd:restriction> | ||
| 979 | </xsd:simpleType> | ||
| 980 | </xsd:element> | ||
| 981 | </xsd:all> | ||
| 982 | </xsd:complexType> | ||
| 983 | |||
| 984 | <xsd:complexType name="SkuType"> | ||
| 985 | <xsd:all> | ||
| 986 | <xsd:element name="customs-number-of-units"> | ||
| 987 | <xsd:simpleType> | ||
| 988 | <xsd:restriction base="xsd:positiveInteger"> | ||
| 989 | <xsd:minInclusive value="1"/> | ||
| 990 | <xsd:maxInclusive value="9999"/> | ||
| 991 | </xsd:restriction> | ||
| 992 | </xsd:simpleType> | ||
| 993 | </xsd:element> | ||
| 994 | <xsd:element name="customs-description"> | ||
| 995 | <xsd:simpleType> | ||
| 996 | <xsd:restriction base="xsd:normalizedString"> | ||
| 997 | <xsd:minLength value="1"/> | ||
| 998 | <xsd:maxLength value="45"/> | ||
| 999 | </xsd:restriction> | ||
| 1000 | </xsd:simpleType> | ||
| 1001 | </xsd:element> | ||
| 1002 | <xsd:element name="sku" minOccurs="0"> | ||
| 1003 | <xsd:simpleType> | ||
| 1004 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1005 | <xsd:maxLength value="15"/> | ||
| 1006 | </xsd:restriction> | ||
| 1007 | </xsd:simpleType> | ||
| 1008 | </xsd:element> | ||
| 1009 | <xsd:element name="hs-tariff-code" minOccurs="0"> | ||
| 1010 | <xsd:simpleType> | ||
| 1011 | <xsd:restriction base="xsd:string"> | ||
| 1012 | <xsd:pattern value="\d{4}(\.\d{2}(\.\d{2}(\.\d{2})?)?)?"/> | ||
| 1013 | </xsd:restriction> | ||
| 1014 | </xsd:simpleType> | ||
| 1015 | </xsd:element> | ||
| 1016 | <xsd:element name="unit-weight"> | ||
| 1017 | <xsd:simpleType> | ||
| 1018 | <xsd:restriction base="xsd:decimal"> | ||
| 1019 | <xsd:minExclusive value="0"/> | ||
| 1020 | <xsd:maxInclusive value="99.999"/> | ||
| 1021 | <xsd:fractionDigits value="3"/> | ||
| 1022 | </xsd:restriction> | ||
| 1023 | </xsd:simpleType> | ||
| 1024 | </xsd:element> | ||
| 1025 | <xsd:element name="customs-value-per-unit"> | ||
| 1026 | <xsd:simpleType> | ||
| 1027 | <xsd:restriction base="xsd:decimal"> | ||
| 1028 | <xsd:minExclusive value="0"/> | ||
| 1029 | <xsd:maxInclusive value="99999.99"/> | ||
| 1030 | <xsd:fractionDigits value="2"/> | ||
| 1031 | </xsd:restriction> | ||
| 1032 | </xsd:simpleType> | ||
| 1033 | </xsd:element> | ||
| 1034 | <xsd:element name="customs-unit-of-measure" type="CustomsUnitOfMeasure" minOccurs="0"/> | ||
| 1035 | |||
| 1036 | <xsd:element name="country-of-origin" type="CountryCodeType" minOccurs="0"/> | ||
| 1037 | <xsd:element name="province-of-origin" type="ProvinceType" minOccurs="0"/> | ||
| 1038 | </xsd:all> | ||
| 1039 | </xsd:complexType> | ||
| 1040 | |||
| 1041 | <xsd:complexType name="SenderType"> | ||
| 1042 | <xsd:all> | ||
| 1043 | <xsd:element name="name" type="ContactNameType" minOccurs="0"/> | ||
| 1044 | <xsd:element name="company" type="CompanyNameType"/> | ||
| 1045 | <xsd:element name="contact-phone" type="PhoneNumberType" maxOccurs="1"/> | ||
| 1046 | <xsd:element name="address-details" type="AddressDetailsType"/> | ||
| 1047 | </xsd:all> | ||
| 1048 | </xsd:complexType> | ||
| 1049 | |||
| 1050 | <xsd:complexType name="DestinationType"> | ||
| 1051 | <xsd:all> | ||
| 1052 | <xsd:element name="name" type="ContactNameType" minOccurs="0"/> | ||
| 1053 | <xsd:element name="company" type="CompanyNameType" minOccurs="0"/> | ||
| 1054 | <xsd:element name="additional-address-info" minOccurs="0"> | ||
| 1055 | <xsd:simpleType> | ||
| 1056 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1057 | <xsd:maxLength value="44"/> | ||
| 1058 | </xsd:restriction> | ||
| 1059 | </xsd:simpleType> | ||
| 1060 | </xsd:element> | ||
| 1061 | <xsd:element name="client-voice-number" type="PhoneNumberType" minOccurs="0"/> | ||
| 1062 | <xsd:element name="address-details" type="DestinationAddressDetailsType"/> | ||
| 1063 | </xsd:all> | ||
| 1064 | </xsd:complexType> | ||
| 1065 | <xsd:complexType name="RecipientAddressType"> | ||
| 1066 | <xsd:all> | ||
| 1067 | <xsd:element name="name" type="ContactNameType" minOccurs="0"/> | ||
| 1068 | <xsd:element name="company" type="CompanyNameType" minOccurs="0"/> | ||
| 1069 | <xsd:element name="additional-address-info" minOccurs="0"> | ||
| 1070 | <xsd:simpleType> | ||
| 1071 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1072 | <xsd:maxLength value="44"/> | ||
| 1073 | </xsd:restriction> | ||
| 1074 | </xsd:simpleType> | ||
| 1075 | </xsd:element> | ||
| 1076 | <xsd:element name="client-voice-number" type="PhoneNumberType" minOccurs="0"/> | ||
| 1077 | <xsd:element name="address-details" type="DestinationAddressDetailsType"/> | ||
| 1078 | </xsd:all> | ||
| 1079 | </xsd:complexType> | ||
| 1080 | |||
| 1081 | <xsd:complexType name="ReturnSpecType"> | ||
| 1082 | <xsd:all> | ||
| 1083 | <xsd:element name="service-code" type="ServiceCodeType"/> | ||
| 1084 | <xsd:element name="return-recipient" type="ReturnRecipientType"/> | ||
| 1085 | <xsd:element name="return-notification" type="EmailType" minOccurs="0"/> | ||
| 1086 | </xsd:all> | ||
| 1087 | </xsd:complexType> | ||
| 1088 | |||
| 1089 | <xsd:complexType name="ReturnRecipientType"> | ||
| 1090 | <xsd:all> | ||
| 1091 | <xsd:element name="name" type="ContactNameType" minOccurs="0"/> | ||
| 1092 | <xsd:element name="company" type="CompanyNameType" minOccurs="0"/> | ||
| 1093 | <xsd:element name="address-details" type="DomesticAddressDetailsType"/> | ||
| 1094 | </xsd:all> | ||
| 1095 | </xsd:complexType> | ||
| 1096 | |||
| 1097 | <xsd:complexType name="DomesticAddressDetailsType"> | ||
| 1098 | <xsd:all> | ||
| 1099 | <xsd:element name="address-line-1"> | ||
| 1100 | <xsd:simpleType> | ||
| 1101 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1102 | <xsd:minLength value="1"/> | ||
| 1103 | <xsd:maxLength value="44"/> | ||
| 1104 | </xsd:restriction> | ||
| 1105 | </xsd:simpleType> | ||
| 1106 | </xsd:element> | ||
| 1107 | <xsd:element name="address-line-2" minOccurs="0"> | ||
| 1108 | <xsd:simpleType> | ||
| 1109 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1110 | <xsd:maxLength value="44"/> | ||
| 1111 | </xsd:restriction> | ||
| 1112 | </xsd:simpleType> | ||
| 1113 | </xsd:element> | ||
| 1114 | <xsd:element name="city"> | ||
| 1115 | <xsd:simpleType> | ||
| 1116 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1117 | <xsd:minLength value="1"/> | ||
| 1118 | <xsd:maxLength value="40"/> | ||
| 1119 | </xsd:restriction> | ||
| 1120 | </xsd:simpleType> | ||
| 1121 | </xsd:element> | ||
| 1122 | <xsd:element name="prov-state" type="ProvinceType"/> | ||
| 1123 | <xsd:element name="postal-zip-code" type="PostalCodeType"/> | ||
| 1124 | </xsd:all> | ||
| 1125 | </xsd:complexType> | ||
| 1126 | |||
| 1127 | <xsd:complexType name="AddressDetailsType"> | ||
| 1128 | <xsd:all> | ||
| 1129 | <xsd:element name="address-line-1"> | ||
| 1130 | <xsd:simpleType> | ||
| 1131 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1132 | <xsd:minLength value="1"/> | ||
| 1133 | <xsd:maxLength value="44"/> | ||
| 1134 | </xsd:restriction> | ||
| 1135 | </xsd:simpleType> | ||
| 1136 | </xsd:element> | ||
| 1137 | <xsd:element name="address-line-2" minOccurs="0"> | ||
| 1138 | <xsd:simpleType> | ||
| 1139 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1140 | <xsd:maxLength value="44"/> | ||
| 1141 | </xsd:restriction> | ||
| 1142 | </xsd:simpleType> | ||
| 1143 | </xsd:element> | ||
| 1144 | <xsd:element name="city"> | ||
| 1145 | <xsd:simpleType> | ||
| 1146 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1147 | <xsd:minLength value="1"/> | ||
| 1148 | <xsd:maxLength value="40"/> | ||
| 1149 | </xsd:restriction> | ||
| 1150 | </xsd:simpleType> | ||
| 1151 | </xsd:element> | ||
| 1152 | <xsd:element name="prov-state" type="ProvinceStateOrInternationalType"/> | ||
| 1153 | <xsd:element name="country-code" type="CountryCodeType"/> | ||
| 1154 | <xsd:element name="postal-zip-code" type="PostalCodeOrZipOrInternationalType" minOccurs="0"/> | ||
| 1155 | </xsd:all> | ||
| 1156 | </xsd:complexType> | ||
| 1157 | |||
| 1158 | <xsd:complexType name="DestinationAddressDetailsType"> | ||
| 1159 | <xsd:all> | ||
| 1160 | <xsd:element name="address-line-1" minOccurs="0"> | ||
| 1161 | <xsd:simpleType> | ||
| 1162 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1163 | <xsd:minLength value="1"/> | ||
| 1164 | <xsd:maxLength value="44"/> | ||
| 1165 | </xsd:restriction> | ||
| 1166 | </xsd:simpleType> | ||
| 1167 | </xsd:element> | ||
| 1168 | <xsd:element name="address-line-2" minOccurs="0"> | ||
| 1169 | <xsd:simpleType> | ||
| 1170 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1171 | <xsd:maxLength value="44"/> | ||
| 1172 | </xsd:restriction> | ||
| 1173 | </xsd:simpleType> | ||
| 1174 | </xsd:element> | ||
| 1175 | <xsd:element name="city" minOccurs="0"> | ||
| 1176 | <xsd:simpleType> | ||
| 1177 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1178 | <xsd:minLength value="1"/> | ||
| 1179 | <xsd:maxLength value="40"/> | ||
| 1180 | </xsd:restriction> | ||
| 1181 | </xsd:simpleType> | ||
| 1182 | </xsd:element> | ||
| 1183 | <xsd:element name="prov-state" type="ProvinceStateOrInternationalType" minOccurs="0"/> | ||
| 1184 | <xsd:element name="country-code" type="CountryCodeType"/> | ||
| 1185 | <xsd:element name="postal-zip-code" type="PostalCodeOrZipOrInternationalType" minOccurs="0"/> | ||
| 1186 | </xsd:all> | ||
| 1187 | </xsd:complexType> | ||
| 1188 | |||
| 1189 | <xsd:complexType name="OptionType"> | ||
| 1190 | <xsd:all> | ||
| 1191 | <xsd:element name="option-code"> | ||
| 1192 | <xsd:simpleType> | ||
| 1193 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1194 | <xsd:minLength value="1"/> | ||
| 1195 | <xsd:maxLength value="10"/> | ||
| 1196 | </xsd:restriction> | ||
| 1197 | </xsd:simpleType> | ||
| 1198 | </xsd:element> | ||
| 1199 | <xsd:element name="option-amount" type="CostTypeNonZero" minOccurs="0"/> | ||
| 1200 | <xsd:element name="option-qualifier-1" type="xsd:boolean" minOccurs="0"/> | ||
| 1201 | <xsd:element name="option-qualifier-2" minOccurs="0"> | ||
| 1202 | <xsd:simpleType> | ||
| 1203 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1204 | <xsd:maxLength value="12"/> | ||
| 1205 | </xsd:restriction> | ||
| 1206 | </xsd:simpleType> | ||
| 1207 | </xsd:element> | ||
| 1208 | </xsd:all> | ||
| 1209 | </xsd:complexType> | ||
| 1210 | |||
| 1211 | <xsd:complexType name="ParcelCharacteristicsType"> | ||
| 1212 | <xsd:all> | ||
| 1213 | <xsd:element name="weight"> | ||
| 1214 | <xsd:simpleType> | ||
| 1215 | <xsd:restriction base="xsd:decimal"> | ||
| 1216 | <xsd:minExclusive value="0"/> | ||
| 1217 | <xsd:maxInclusive value="999.999"/> | ||
| 1218 | <xsd:fractionDigits value="3"/> | ||
| 1219 | </xsd:restriction> | ||
| 1220 | </xsd:simpleType> | ||
| 1221 | </xsd:element> | ||
| 1222 | <xsd:element name="dimensions" minOccurs="0"> | ||
| 1223 | <xsd:complexType> | ||
| 1224 | <xsd:all> | ||
| 1225 | <xsd:element name="length" type="DimensionMeasurementType"/> | ||
| 1226 | <xsd:element name="width" type="DimensionMeasurementType"/> | ||
| 1227 | <xsd:element name="height" type="DimensionMeasurementType"/> | ||
| 1228 | </xsd:all> | ||
| 1229 | </xsd:complexType> | ||
| 1230 | </xsd:element> | ||
| 1231 | <xsd:element name="unpackaged" type="xsd:boolean" minOccurs="0"/> | ||
| 1232 | <xsd:element name="mailing-tube" type="xsd:boolean" minOccurs="0"/> | ||
| 1233 | <xsd:element name="oversized" type="xsd:boolean" minOccurs="0"/> | ||
| 1234 | </xsd:all> | ||
| 1235 | </xsd:complexType> | ||
| 1236 | |||
| 1237 | <xsd:complexType name="NotificationType"> | ||
| 1238 | <xsd:all> | ||
| 1239 | <xsd:element name="email" type="EmailType"/> | ||
| 1240 | <xsd:element name="on-shipment" type="xsd:boolean"/> | ||
| 1241 | <xsd:element name="on-exception" type="xsd:boolean"/> | ||
| 1242 | <xsd:element name="on-delivery" type="xsd:boolean"/> | ||
| 1243 | </xsd:all> | ||
| 1244 | </xsd:complexType> | ||
| 1245 | |||
| 1246 | <xsd:complexType name="PrintPreferencesType"> | ||
| 1247 | <xsd:all> | ||
| 1248 | <xsd:element name="output-format" minOccurs="0"> | ||
| 1249 | <xsd:simpleType> | ||
| 1250 | <xsd:restriction base="xsd:string"> | ||
| 1251 | <xsd:enumeration value="8.5x11"/> | ||
| 1252 | <xsd:enumeration value="4x6"/> | ||
| 1253 | </xsd:restriction> | ||
| 1254 | </xsd:simpleType> | ||
| 1255 | </xsd:element> | ||
| 1256 | <xsd:element name="encoding" minOccurs="0"> | ||
| 1257 | <xsd:simpleType> | ||
| 1258 | <xsd:restriction base="xsd:string"> | ||
| 1259 | <xsd:enumeration value="PDF"/> | ||
| 1260 | <xsd:enumeration value="ZPL"/> | ||
| 1261 | </xsd:restriction> | ||
| 1262 | </xsd:simpleType> | ||
| 1263 | </xsd:element> | ||
| 1264 | </xsd:all> | ||
| 1265 | </xsd:complexType> | ||
| 1266 | |||
| 1267 | <xsd:complexType name="PreferencesType"> | ||
| 1268 | <xsd:all> | ||
| 1269 | <xsd:element name="show-packing-instructions" type="xsd:boolean"/> | ||
| 1270 | <xsd:element name="show-postage-rate" type="xsd:boolean" minOccurs="0"/> | ||
| 1271 | <xsd:element name="show-insured-value" type="xsd:boolean" minOccurs="0"/> | ||
| 1272 | </xsd:all> | ||
| 1273 | </xsd:complexType> | ||
| 1274 | |||
| 1275 | <xsd:complexType name="ReferencesType"> | ||
| 1276 | <xsd:all> | ||
| 1277 | <xsd:element name="cost-centre" type="CostCentreIDType" minOccurs="0"/> | ||
| 1278 | <xsd:element name="customer-ref-1" minOccurs="0"> | ||
| 1279 | <xsd:simpleType> | ||
| 1280 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1281 | <xsd:maxLength value="35"/> | ||
| 1282 | </xsd:restriction> | ||
| 1283 | </xsd:simpleType> | ||
| 1284 | </xsd:element> | ||
| 1285 | <xsd:element name="customer-ref-2" minOccurs="0"> | ||
| 1286 | <xsd:simpleType> | ||
| 1287 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1288 | <xsd:maxLength value="35"/> | ||
| 1289 | </xsd:restriction> | ||
| 1290 | </xsd:simpleType> | ||
| 1291 | </xsd:element> | ||
| 1292 | </xsd:all> | ||
| 1293 | </xsd:complexType> | ||
| 1294 | |||
| 1295 | <xsd:complexType name="SettlementInfoType"> | ||
| 1296 | <xsd:all> | ||
| 1297 | <xsd:element name="paid-by-customer" type="CustomerIDType" minOccurs="0"/> | ||
| 1298 | <xsd:element name="contract-id" type="ContractIDType" minOccurs="0"/> | ||
| 1299 | <xsd:element name="cif-shipment" type="xsd:boolean" fixed="true" minOccurs="0" /> | ||
| 1300 | <xsd:element name="intended-method-of-payment" type="MethodOfPaymentType"/> | ||
| 1301 | <xsd:element name="promo-code" type="PromoCodeType" minOccurs="0" /> | ||
| 1302 | </xsd:all> | ||
| 1303 | </xsd:complexType> | ||
| 1304 | |||
| 1305 | <xsd:complexType name="PreAuthorizedPaymentType"> | ||
| 1306 | <xsd:all> | ||
| 1307 | <xsd:element name="account-number"> | ||
| 1308 | <xsd:simpleType> | ||
| 1309 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1310 | <xsd:minLength value="1"/> | ||
| 1311 | <xsd:maxLength value="16"/> | ||
| 1312 | </xsd:restriction> | ||
| 1313 | </xsd:simpleType> | ||
| 1314 | </xsd:element> | ||
| 1315 | <xsd:element name="auth-code"> | ||
| 1316 | <xsd:simpleType> | ||
| 1317 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1318 | <xsd:minLength value="1"/> | ||
| 1319 | <xsd:maxLength value="16"/> | ||
| 1320 | </xsd:restriction> | ||
| 1321 | </xsd:simpleType> | ||
| 1322 | </xsd:element> | ||
| 1323 | <xsd:element name="auth-timestamp" type="xsd:dateTime" /> | ||
| 1324 | <xsd:element name="charge-amount"> | ||
| 1325 | <xsd:simpleType> | ||
| 1326 | <xsd:restriction base="xsd:decimal"> | ||
| 1327 | <xsd:minExclusive value="0"/> | ||
| 1328 | <xsd:maxInclusive value="9999999.99"/> | ||
| 1329 | <xsd:fractionDigits value="2"/> | ||
| 1330 | </xsd:restriction> | ||
| 1331 | </xsd:simpleType> | ||
| 1332 | </xsd:element> | ||
| 1333 | </xsd:all> | ||
| 1334 | </xsd:complexType> | ||
| 1335 | |||
| 1336 | <xsd:simpleType name="CostCentreIDType"> | ||
| 1337 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1338 | <xsd:maxLength value="30"/> | ||
| 1339 | </xsd:restriction> | ||
| 1340 | </xsd:simpleType> | ||
| 1341 | |||
| 1342 | <xsd:simpleType name="EmailType"> | ||
| 1343 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1344 | <xsd:pattern value="(['_A-Za-z0-9\-\+]+)(\.['_A-Za-z0-9\-\+]+)*@([A-Za-z0-9-]+)(\.[A-Za-z0-9-]+)*(\.[A-Za-z]{2,5})"/> | ||
| 1345 | <xsd:maxLength value="60"/> | ||
| 1346 | </xsd:restriction> | ||
| 1347 | </xsd:simpleType> | ||
| 1348 | |||
| 1349 | <xsd:simpleType name="CompanyNameType"> | ||
| 1350 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1351 | <xsd:maxLength value="44"/> | ||
| 1352 | </xsd:restriction> | ||
| 1353 | </xsd:simpleType> | ||
| 1354 | |||
| 1355 | <xsd:simpleType name="ContactNameType"> | ||
| 1356 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1357 | <xsd:maxLength value="44"/> | ||
| 1358 | </xsd:restriction> | ||
| 1359 | </xsd:simpleType> | ||
| 1360 | |||
| 1361 | <xsd:simpleType name="GroupIDType"> | ||
| 1362 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1363 | <xsd:minLength value="1"/> | ||
| 1364 | <xsd:maxLength value="32"/> | ||
| 1365 | </xsd:restriction> | ||
| 1366 | </xsd:simpleType> | ||
| 1367 | |||
| 1368 | <xsd:simpleType name="TrackingPINType"> | ||
| 1369 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1370 | <xsd:minLength value="11"/> | ||
| 1371 | <xsd:maxLength value="16"/> | ||
| 1372 | </xsd:restriction> | ||
| 1373 | </xsd:simpleType> | ||
| 1374 | |||
| 1375 | <xsd:simpleType name="ShipmentIDType"> | ||
| 1376 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1377 | <xsd:maxLength value="32"/> | ||
| 1378 | </xsd:restriction> | ||
| 1379 | </xsd:simpleType> | ||
| 1380 | |||
| 1381 | <xsd:simpleType name="ShipmentStatusType"> | ||
| 1382 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1383 | <xsd:maxLength value="14"/> | ||
| 1384 | </xsd:restriction> | ||
| 1385 | </xsd:simpleType> | ||
| 1386 | |||
| 1387 | |||
| 1388 | <xsd:simpleType name="CustomerRequestIdType"> | ||
| 1389 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1390 | <xsd:maxLength value="35" /> | ||
| 1391 | </xsd:restriction> | ||
| 1392 | </xsd:simpleType> | ||
| 1393 | |||
| 1394 | <xsd:simpleType name="PromoCodeType"> | ||
| 1395 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1396 | <xsd:maxLength value="10" /> | ||
| 1397 | </xsd:restriction> | ||
| 1398 | </xsd:simpleType> | ||
| 1399 | |||
| 1400 | |||
| 1401 | <xsd:complexType name="ShipmentDetailsType"> | ||
| 1402 | <xsd:all> | ||
| 1403 | <xsd:element name="customer-request-id" type="CustomerRequestIdType" minOccurs="0" /> | ||
| 1404 | <xsd:element name="shipment-status" type="ShipmentStatusType"/> | ||
| 1405 | <xsd:element name="final-shipping-point" type="PostalCodeType"/> | ||
| 1406 | <xsd:element name="tracking-pin" type="TrackingPINType" minOccurs="0"/> | ||
| 1407 | <xsd:element name="po-number" type="PoNumberType" minOccurs="0"/> | ||
| 1408 | <xsd:element name="shipping-point-id" type="OutletIDType" minOccurs="0" /> | ||
| 1409 | <xsd:element name="cpc-pickup-indicator" type="xsd:boolean" fixed="true" minOccurs="0"/> | ||
| 1410 | |||
| 1411 | <!-- | ||
| 1412 | Redefine ShipmentType locally without the requested-shipping-point element because it is mandatory | ||
| 1413 | in the create shipment request but removed from the shipment details response. | ||
| 1414 | |||
| 1415 | <xsd:element name="shipment-detail" type="ShipmentType"/> | ||
| 1416 | --> | ||
| 1417 | <xsd:element name="shipment-detail"> | ||
| 1418 | <xsd:complexType> | ||
| 1419 | <xsd:all> | ||
| 1420 | <xsd:element ref="groupIdOrTransmitShipment" /> | ||
| 1421 | <xsd:element name="quickship-label-requested" type="xsd:boolean" minOccurs="0"/> | ||
| 1422 | <xsd:element name="expected-mailing-date" type="xsd:date" minOccurs="0"/> | ||
| 1423 | <xsd:element name="delivery-spec"> | ||
| 1424 | <xsd:complexType> | ||
| 1425 | <xsd:all> | ||
| 1426 | <xsd:element name="service-code" type="ServiceCodeType"/> | ||
| 1427 | <xsd:element name="sender" type="SenderType"/> | ||
| 1428 | <xsd:element name="destination" type="DestinationType"/> | ||
| 1429 | <xsd:element name="recipient" type="RecipientAddressType" minOccurs="0"/> | ||
| 1430 | <xsd:element name="options" minOccurs="0"> | ||
| 1431 | <xsd:complexType> | ||
| 1432 | <xsd:sequence> | ||
| 1433 | <xsd:element name="option" type="OptionType" maxOccurs="20"/> | ||
| 1434 | </xsd:sequence> | ||
| 1435 | </xsd:complexType> | ||
| 1436 | </xsd:element> | ||
| 1437 | <xsd:element name="parcel-characteristics" type="ParcelCharacteristicsType"/> | ||
| 1438 | <xsd:element name="notification" type="NotificationType" minOccurs="0"/> | ||
| 1439 | <xsd:element name="print-preferences" type="PrintPreferencesType" minOccurs="0"/> | ||
| 1440 | <xsd:element name="preferences" type="PreferencesType"/> | ||
| 1441 | <xsd:element name="references" type="ReferencesType" minOccurs="0"/> | ||
| 1442 | <xsd:element name="customs" type="CustomsType" minOccurs="0"/> | ||
| 1443 | <xsd:element name="settlement-info" type="SettlementInfoType"/> | ||
| 1444 | </xsd:all> | ||
| 1445 | </xsd:complexType> | ||
| 1446 | </xsd:element> | ||
| 1447 | <xsd:element name="return-spec" type="ReturnSpecType" minOccurs="0"/> | ||
| 1448 | <xsd:element name="refund-request-info" type="ShipmentRefundRequestInfoType" minOccurs="0"/> | ||
| 1449 | </xsd:all> | ||
| 1450 | </xsd:complexType> | ||
| 1451 | </xsd:element> | ||
| 1452 | </xsd:all> | ||
| 1453 | </xsd:complexType> | ||
| 1454 | |||
| 1455 | <xsd:complexType name="ShipmentCCReceiptType"> | ||
| 1456 | <xsd:all> | ||
| 1457 | <xsd:element name="cc-receipt-details"> | ||
| 1458 | <xsd:complexType> | ||
| 1459 | <xsd:all> | ||
| 1460 | <xsd:element name="merchant-name"> | ||
| 1461 | <xsd:simpleType> | ||
| 1462 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1463 | <xsd:maxLength value="44" /> | ||
| 1464 | </xsd:restriction> | ||
| 1465 | </xsd:simpleType> | ||
| 1466 | </xsd:element> | ||
| 1467 | <xsd:element name="merchant-url"> | ||
| 1468 | <xsd:simpleType> | ||
| 1469 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1470 | <xsd:maxLength value="60" /> | ||
| 1471 | </xsd:restriction> | ||
| 1472 | </xsd:simpleType> | ||
| 1473 | </xsd:element> | ||
| 1474 | <xsd:element name="name-on-card" type="CcNameType" minOccurs="0"/> | ||
| 1475 | <xsd:element name="auth-code" type="CcAuthorizationCodeType" /> | ||
| 1476 | <xsd:element name="auth-timestamp" type="xsd:dateTime" /> | ||
| 1477 | <xsd:element name="card-type" type="CcType" /> | ||
| 1478 | <xsd:element name="charge-amount" type="CcAuthorizationAmountType" /> | ||
| 1479 | <xsd:element name="currency" type="CurrencyType" /> | ||
| 1480 | <xsd:element name="transaction-type"> | ||
| 1481 | <xsd:simpleType> | ||
| 1482 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1483 | <xsd:maxLength value="44" /> | ||
| 1484 | </xsd:restriction> | ||
| 1485 | </xsd:simpleType> | ||
| 1486 | </xsd:element> | ||
| 1487 | </xsd:all> | ||
| 1488 | </xsd:complexType> | ||
| 1489 | </xsd:element> | ||
| 1490 | </xsd:all> | ||
| 1491 | </xsd:complexType> | ||
| 1492 | |||
| 1493 | <xsd:complexType name="ShipmentReceiptType"> | ||
| 1494 | <xsd:choice> | ||
| 1495 | <xsd:element name="cc-receipt-details"> | ||
| 1496 | <xsd:complexType> | ||
| 1497 | <xsd:all> | ||
| 1498 | <xsd:element name="merchant-name"> | ||
| 1499 | <xsd:simpleType> | ||
| 1500 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1501 | <xsd:maxLength value="44" /> | ||
| 1502 | </xsd:restriction> | ||
| 1503 | </xsd:simpleType> | ||
| 1504 | </xsd:element> | ||
| 1505 | <xsd:element name="merchant-url"> | ||
| 1506 | <xsd:simpleType> | ||
| 1507 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1508 | <xsd:maxLength value="60" /> | ||
| 1509 | </xsd:restriction> | ||
| 1510 | </xsd:simpleType> | ||
| 1511 | </xsd:element> | ||
| 1512 | <xsd:element name="name-on-card" type="CcNameType" minOccurs="0"/> | ||
| 1513 | <xsd:element name="auth-code" type="CcAuthorizationCodeType" /> | ||
| 1514 | <xsd:element name="auth-timestamp" type="xsd:dateTime" /> | ||
| 1515 | <xsd:element name="card-type" type="CcType" /> | ||
| 1516 | <xsd:element name="charge-amount" type="CcAuthorizationAmountType" /> | ||
| 1517 | <xsd:element name="currency" type="CurrencyType" /> | ||
| 1518 | <xsd:element name="transaction-type"> | ||
| 1519 | <xsd:simpleType> | ||
| 1520 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1521 | <xsd:maxLength value="44" /> | ||
| 1522 | </xsd:restriction> | ||
| 1523 | </xsd:simpleType> | ||
| 1524 | </xsd:element> | ||
| 1525 | </xsd:all> | ||
| 1526 | </xsd:complexType> | ||
| 1527 | </xsd:element> | ||
| 1528 | <xsd:element name="supplier-account-receipt-details"> | ||
| 1529 | <xsd:complexType> | ||
| 1530 | <xsd:all> | ||
| 1531 | <xsd:element name="merchant-name"> | ||
| 1532 | <xsd:simpleType> | ||
| 1533 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1534 | <xsd:maxLength value="44" /> | ||
| 1535 | </xsd:restriction> | ||
| 1536 | </xsd:simpleType> | ||
| 1537 | </xsd:element> | ||
| 1538 | <xsd:element name="merchant-url"> | ||
| 1539 | <xsd:simpleType> | ||
| 1540 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1541 | <xsd:maxLength value="60" /> | ||
| 1542 | </xsd:restriction> | ||
| 1543 | </xsd:simpleType> | ||
| 1544 | </xsd:element> | ||
| 1545 | <xsd:element name="auth-code" type="AuthorizationCodeType" /> | ||
| 1546 | <xsd:element name="auth-timestamp" type="xsd:dateTime" /> | ||
| 1547 | <xsd:element name="supplier-id" type="xsd:normalizedString" /> | ||
| 1548 | <xsd:element name="charge-amount" type="AuthorizationAmountType" /> | ||
| 1549 | <xsd:element name="currency" type="CurrencyType" /> | ||
| 1550 | <xsd:element name="transaction-type"> | ||
| 1551 | <xsd:simpleType> | ||
| 1552 | <xsd:restriction base="xsd:normalizedString"> | ||
| 1553 | <xsd:maxLength value="44" /> | ||
| 1554 | </xsd:restriction> | ||
| 1555 | </xsd:simpleType> | ||
| 1556 | </xsd:element> | ||
| 1557 | </xsd:all> | ||
| 1558 | </xsd:complexType> | ||
| 1559 | </xsd:element> | ||
| 1560 | </xsd:choice> | ||
| 1561 | </xsd:complexType> | ||
| 1562 | |||
| 1563 | <xsd:complexType name="ShipmentRefundRequestType"> | ||
| 1564 | <xsd:all> | ||
| 1565 | <xsd:element name="email" type="EmailType"/> | ||
| 1566 | </xsd:all> | ||
| 1567 | </xsd:complexType> | ||
| 1568 | |||
| 1569 | <xsd:complexType name="ShipmentRefundRequestInfoType"> | ||
| 1570 | <xsd:all> | ||
| 1571 | <xsd:element name="service-ticket-date" type="xsd:date"/> | ||
| 1572 | <xsd:element name="service-ticket-id" type="xsd:normalizedString"/> | ||
| 1573 | </xsd:all> | ||
| 1574 | </xsd:complexType> | ||
| 1575 | `; | ||
| 1576 | |||
| 1577 | __END__ | ||